refactor: reduce AppInsights bill

This commit is contained in:
Collin Barrett 2025-08-27 18:45:24 -05:00 committed by Collin Barrett
parent e90fc81713
commit 065cfde0cd

View file

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