From 746689fdd932c007cf7a0b714a980ac6a15df868 Mon Sep 17 00:00:00 2001 From: Hamed Shirbandi Date: Thu, 5 Dec 2024 09:23:31 +0100 Subject: [PATCH] fix: observation bug --- .../Observation/OpenTelemetry/OpenTelemetryConfiguration.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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