diff --git a/Wave/Program.cs b/Wave/Program.cs index 2352d80..f9cc522 100644 --- a/Wave/Program.cs +++ b/Wave/Program.cs @@ -309,7 +309,7 @@ // Jaeger etc. if (builder.Configuration["OTLP_ENDPOINT_URL"] is {} otlpUrl) { otel.WithTracing(tracing => { - tracing.AddAspNetCoreInstrumentation(); + tracing.AddAspNetCoreInstrumentation(i => i.Filter = context => !string.Equals(context.Request.Path.Value, "/health", StringComparison.InvariantCultureIgnoreCase)); tracing.AddHttpClientInstrumentation(); tracing.AddOtlpExporter(options => options.Endpoint = new Uri(otlpUrl)); });