diff --git a/src/Digdir.Library.Utils.AspNet/AspNetUtilitiesExtensions.cs b/src/Digdir.Library.Utils.AspNet/AspNetUtilitiesExtensions.cs index dd108c44b..0728a0bee 100644 --- a/src/Digdir.Library.Utils.AspNet/AspNetUtilitiesExtensions.cs +++ b/src/Digdir.Library.Utils.AspNet/AspNetUtilitiesExtensions.cs @@ -15,6 +15,8 @@ namespace Digdir.Library.Utils.AspNet; public static class AspNetUtilitiesExtensions { + private const string MassTransitSource = "MassTransit"; + public static IServiceCollection AddAspNetHealthChecks(this IServiceCollection services, Action? configure = null) { var optionsBuilder = services.AddOptions(); @@ -67,6 +69,7 @@ public static WebApplicationBuilder ConfigureTelemetry(this WebApplicationBuilde tracing.AddHttpClientInstrumentation(); tracing.AddNpgsql(); + tracing.AddSource(MassTransitSource); // MassTransit ActivitySource }) .WithMetrics(metrics => {