Skip to content

Commit

Permalink
Merge pull request #494 from marcinjahn/fix-header-activity
Browse files Browse the repository at this point in the history
fix: proper name of HeadersInspectionHandler activity
  • Loading branch information
andrueastman authored Dec 9, 2024
2 parents 74f9613 + a5ad533 commit 216801b
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 216801b

Please sign in to comment.