Closed
Description
[Question]
In ASP.NET Core 2 HostingApplicationDiagnostics only created Activity.Current if we manually subscribed DiagnosticsListener for events Microsoft.AspNetCore.Hosting.HttpRequestIn
.
In ASP.NET Core 3.1 it seems the Activity.Current is always created. That means if I have a Request-Id in the header, it is being used by the Activity by default. Is there a way to opt-out this behavior (other than turning off logging)?