Skip to content

Commit

Permalink
removed span id from header
Browse files Browse the repository at this point in the history
  • Loading branch information
coronabytes committed Aug 10, 2024
1 parent 17ae96f commit 54ed443
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Core.Observability/ObservabilityMiddleware.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public async Task InvokeAsync(HttpContext context)
}

if (options.TraceIdHeader != null)
context.Response.Headers.Append(options.TraceIdHeader, Activity.Current?.Id ?? context.TraceIdentifier);
context.Response.Headers.Append(options.TraceIdHeader, Activity.Current?.TraceId.ToHexString() ?? context.TraceIdentifier);

using (logger.BeginScope(tags))
{
Expand Down

0 comments on commit 54ed443

Please sign in to comment.