-
Notifications
You must be signed in to change notification settings - Fork 374
[ASP.NET Core] .NET7+ ActivitySource selection logic #1741
Copy link
Copy link
Open
Labels
comp:instrumentation.aspnetcoreThings related to OpenTelemetry.Instrumentation.AspNetCoreThings related to OpenTelemetry.Instrumentation.AspNetCorequestionFurther information is requestedFurther information is requested
Description
Today if we detect .NET 7 or greater we resolve the ActivitySource to listen to using the IServiceProvider. This is to mirror what ASP.NET Core does under the hood. See: AddAspNetCoreInstrumentationSources.
@noahfalk Left a comment suggesting that we just listen to the default source by name.
Opening this issue to track the discussion further.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
comp:instrumentation.aspnetcoreThings related to OpenTelemetry.Instrumentation.AspNetCoreThings related to OpenTelemetry.Instrumentation.AspNetCorequestionFurther information is requestedFurther information is requested