From d6ccbd5050ee2539e3ee69234460c1d2bec78a38 Mon Sep 17 00:00:00 2001 From: Andra Constantin Date: Wed, 9 Oct 2024 14:44:35 -0400 Subject: [PATCH] try removing object creation --- Backend/Otel/OtelKernel.cs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Backend/Otel/OtelKernel.cs b/Backend/Otel/OtelKernel.cs index c19161f81a..28a0270def 100644 --- a/Backend/Otel/OtelKernel.cs +++ b/Backend/Otel/OtelKernel.cs @@ -155,16 +155,16 @@ public override async void OnEnd(Activity data) { LocationApi? response = await locationProvider.GetLocation(); - var location = new - { - Country = response?.country, - Region = response?.regionName, - City = response?.city, - }; + // var location = new LocationApi + // { + // Country = response?.country, + // Region = response?.regionName, + // City = response?.city + // }; - data?.AddTag("country", location.Country); - data?.AddTag("regionName", location.Region); - data?.AddTag("city", location.City); + data?.AddTag("country", response?.country); + data?.AddTag("regionName", response?.regionName); + data?.AddTag("city", response?.city); } data?.SetTag("SESSIONID BAGGAGE", data?.GetBaggageItem("sessionId")); if (uriPath != null && uriPath.Contains(locationUri))