Disable Diagnostics and Activity #18955
Labels
area-hosting
Includes Hosting
area-networking
Includes servers, yarp, json patch, bedrock, websockets, http client factory, and http abstractions
[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)?
The text was updated successfully, but these errors were encountered: