diff --git a/src/http/httpClient/Middleware/BodyInspectionHandler.cs b/src/http/httpClient/Middleware/BodyInspectionHandler.cs index 9dc7c50..3b6656a 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 569feea..1e3d648 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