diff --git a/src/Digdir.Library.Utils.AspNet/AspNetUtilitiesExtensions.cs b/src/Digdir.Library.Utils.AspNet/AspNetUtilitiesExtensions.cs index 0728a0bee..c47413c8f 100644 --- a/src/Digdir.Library.Utils.AspNet/AspNetUtilitiesExtensions.cs +++ b/src/Digdir.Library.Utils.AspNet/AspNetUtilitiesExtensions.cs @@ -63,7 +63,7 @@ public static WebApplicationBuilder ConfigureTelemetry(this WebApplicationBuilde tracing.AddAspNetCoreInstrumentation(options => { - options.Filter = (httpContext) => + options.Filter = httpContext => !httpContext.Request.Path.StartsWithSegments("/health"); });