Merge remote-tracking branch 'origin/main' into next

This commit is contained in:
Collin Barrett 2025-08-27 18:53:24 -05:00
commit 1de061b8fe

View file

@ -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();