Skip to content

Commit

Permalink
Fix tracing names
Browse files Browse the repository at this point in the history
  • Loading branch information
marcinjahn committed Dec 7, 2024
1 parent 74e5e5d commit 74da9ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/http/httpClient/Middleware/BodyInspectionHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
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 74da9ca

Please sign in to comment.