Skip to content

Commit

Permalink
fix: proper name of HeadersInspectionHandler activity
Browse files Browse the repository at this point in the history
  • Loading branch information
marcinjahn committed Dec 7, 2024
1 parent 48ac98b commit a5ad533
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/http/httpClient/Middleware/HeadersInspectionHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ protected override async Task<HttpResponseMessage> SendAsync(HttpRequestMessage
if(request.GetRequestOption<ObservabilityOptions>() 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
Expand Down

0 comments on commit a5ad533

Please sign in to comment.