diff --git a/src/1-BuildingBlocks/Web.MVC/Configuration/Observation/OpenTelemetry/OpenTelemetryConfiguration.cs b/src/1-BuildingBlocks/Web.MVC/Configuration/Observation/OpenTelemetry/OpenTelemetryConfiguration.cs index 70402dd45..97c14840f 100644 --- a/src/1-BuildingBlocks/Web.MVC/Configuration/Observation/OpenTelemetry/OpenTelemetryConfiguration.cs +++ b/src/1-BuildingBlocks/Web.MVC/Configuration/Observation/OpenTelemetry/OpenTelemetryConfiguration.cs @@ -22,7 +22,7 @@ public static void AddOpenTelemetry(this WebApplicationBuilder builder) if (openTelemetrySettings == null) return; - if (openTelemetrySettings.IsEnabled()) + if (!openTelemetrySettings.IsEnabled()) return; builder