dotnet / runtime

.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.

Home Page:https://docs.microsoft.com/dotnet/core/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Activity id of nettrace events are always 0

verdie-g opened this issue · comments

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();
  1. dotnet trace collect --process-id $PID --providers Microsoft-AspNetCore-Server-Kestrel --clreventlevel verbose
  2. 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

Tagging subscribers to this area: @tarekgh, @tommcdon, @pjanotti
See info in area-owners.md if you want to be subscribed.