From 20e5565fa287f044ee9bcc89255b2c781522b785 Mon Sep 17 00:00:00 2001 From: Andra Constantin Date: Wed, 9 Oct 2024 14:15:08 -0400 Subject: [PATCH] removing spaces --- Backend/Otel/OtelKernel.cs | 9 --------- 1 file changed, 9 deletions(-) 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); } - } } } - } -