diff --git a/services/FilterLists.ServiceDefaults/Extensions.cs b/services/FilterLists.ServiceDefaults/Extensions.cs index f6ed6dc50..17dd7e787 100644 --- a/services/FilterLists.ServiceDefaults/Extensions.cs +++ b/services/FilterLists.ServiceDefaults/Extensions.cs @@ -55,9 +55,9 @@ public static TBuilder ConfigureOpenTelemetry(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(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();