From a5ad5336f400cfef7cc2cee74d36087d1a7dee9e Mon Sep 17 00:00:00 2001 From: Marcin Jahn <10273406+marcinjahn@users.noreply.github.com> Date: Sat, 7 Dec 2024 21:45:33 +0100 Subject: [PATCH] fix: proper name of HeadersInspectionHandler activity --- src/http/httpClient/Middleware/HeadersInspectionHandler.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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