Activity id of nettrace events are always 0
verdie-g opened this issue · comments
Grégoire commented
Description
I noticed in all the nettrace collected from prod, all the ActivityId are RelatedActivityId are 0. One of the consequence is that the RequestStart/Stop events from ASP.NET Core can't be correlated.
Reproduction Steps
var builder = WebApplication.CreateBuilder(args);
var app = builder.Build();
app.MapGet("/", () => { });
app.Run();
dotnet trace collect --process-id $PID --providers Microsoft-AspNetCore-Server-Kestrel --clreventlevel verbose
- Open the nettrace and observe that all ActivityId are equal to Guid.Empty
Expected behavior
I would expect to have non-0 ActivityId to correlate requests.
Actual behavior
All ActivityIds are 0.
Regression?
No response
Known Workarounds
No response
Configuration
No response
Other information
No response
dotnet-policy-service commented
Tagging subscribers to this area: @tarekgh, @tommcdon, @pjanotti
See info in area-owners.md if you want to be subscribed.