From 74da9ca72f9fd56c150d29b19b22c77dbd906207 Mon Sep 17 00:00:00 2001 From: Marcin Jahn <10273406+marcinjahn@users.noreply.github.com> Date: Sat, 7 Dec 2024 21:41:06 +0100 Subject: [PATCH] Fix tracing names --- src/http/httpClient/Middleware/BodyInspectionHandler.cs | 2 +- src/http/httpClient/Middleware/HeadersInspectionHandler.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/http/httpClient/Middleware/BodyInspectionHandler.cs b/src/http/httpClient/Middleware/BodyInspectionHandler.cs index 9dc7c506..3b6656a1 100644 --- a/src/http/httpClient/Middleware/BodyInspectionHandler.cs +++ b/src/http/httpClient/Middleware/BodyInspectionHandler.cs @@ -48,7 +48,7 @@ CancellationToken cancellationToken obsOptions.TracerInstrumentationName ); activity = activitySource?.StartActivity( - $"{nameof(RedirectHandler)}_{nameof(SendAsync)}" + $"{nameof(BodyInspectionHandler)}_{nameof(SendAsync)}" ); activity?.SetTag("com.microsoft.kiota.handler.bodyInspection.enable", true); } diff --git a/src/http/httpClient/Middleware/HeadersInspectionHandler.cs b/src/http/httpClient/Middleware/HeadersInspectionHandler.cs index 569feead..1e3d6489 100644 --- a/src/http/httpClient/Middleware/HeadersInspectionHandler.cs +++ b/src/http/httpClient/Middleware/HeadersInspectionHandler.cs @@ -40,7 +40,7 @@ protected override async Task SendAsync(HttpRequestMessage if(request.GetRequestOption() is { } obsOptions) { var activitySource = ActivitySourceRegistry.DefaultInstance.GetOrCreateActivitySource(obsOptions.TracerInstrumentationName); - activity = activitySource?.StartActivity($"{nameof(RedirectHandler)}_{nameof(SendAsync)}"); + activity = activitySource?.StartActivity($"{nameof(HeadersInspectionHandler)}_{nameof(SendAsync)}"); activity?.SetTag("com.microsoft.kiota.handler.headersInspection.enable", true); } else