Skip to content

Commit

Permalink
try removing object creation
Browse files Browse the repository at this point in the history
  • Loading branch information
andracc committed Oct 9, 2024
1 parent 168f4db commit d6ccbd5
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions Backend/Otel/OtelKernel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit d6ccbd5

Please sign in to comment.