mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
Merge remote-tracking branch 'origin/main' into next
This commit is contained in:
commit
1de061b8fe
1 changed files with 5 additions and 5 deletions
|
|
@ -55,9 +55,9 @@ public static TBuilder ConfigureOpenTelemetry<TBuilder>(this TBuilder builder)
|
|||
builder.Services.AddOpenTelemetry()
|
||||
.WithMetrics(metrics =>
|
||||
{
|
||||
metrics.AddAspNetCoreInstrumentation()
|
||||
.AddHttpClientInstrumentation()
|
||||
.AddRuntimeInstrumentation();
|
||||
metrics.AddAspNetCoreInstrumentation();
|
||||
//.AddHttpClientInstrumentation() // increases App Insights bill
|
||||
//.AddRuntimeInstrumentation(); // increases App Insights bill
|
||||
})
|
||||
.WithTracing(tracing =>
|
||||
{
|
||||
|
|
@ -67,10 +67,10 @@ public static TBuilder ConfigureOpenTelemetry<TBuilder>(this TBuilder builder)
|
|||
options.Filter = context =>
|
||||
!context.Request.Path.StartsWithSegments(HealthEndpointPath)
|
||||
&& !context.Request.Path.StartsWithSegments(AlivenessEndpointPath)
|
||||
)
|
||||
);
|
||||
// Uncomment the following line to enable gRPC instrumentation (requires the OpenTelemetry.Instrumentation.GrpcNetClient package)
|
||||
//.AddGrpcClientInstrumentation()
|
||||
.AddHttpClientInstrumentation();
|
||||
//.AddHttpClientInstrumentation() // increases App Insights bill
|
||||
});
|
||||
|
||||
builder.AddOpenTelemetryExporters();
|
||||
|
|
|
|||
Loading…
Reference in a new issue