Skip to content

Commit

Permalink
Improved OTLP logging
Browse files Browse the repository at this point in the history
  • Loading branch information
miawinter98 committed Nov 25, 2024
1 parent 11295cf commit a218571
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Wave/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
});
Expand Down

0 comments on commit a218571

Please sign in to comment.