diff --git a/Backend/Otel/OtelKernel.cs b/Backend/Otel/OtelKernel.cs index 54465b0813..c2a06637eb 100644 --- a/Backend/Otel/OtelKernel.cs +++ b/Backend/Otel/OtelKernel.cs @@ -175,7 +175,6 @@ public override async void OnEnd(Activity data) { string? uriPath = (string?)data.GetTagItem("url.full"); string locationUri = LocationProvider.locationGetterUri; - if (uriPath == null || !uriPath.Contains(locationUri)) { LocationApi? response = await locationProvider.GetLocation(); @@ -192,22 +191,14 @@ public override async void OnEnd(Activity data) data?.AddTag("city", location.City); // data?.SetTag("SESSIONID BAGGAGE", data?.GetBaggageItem("sessionId")); - } - data?.SetTag("SESSIONID BAGGAGE", data?.GetBaggageItem("sessionId")); - - - if (uriPath != null && uriPath.Contains(locationUri)) { data?.SetTag("url.full", ""); data?.SetTag("url.redacted.ip", LocationProvider.locationGetterUri); } - } } } - } -