Skip to content

[ASP.NET Core] .NET7+ ActivitySource selection logic #1741

Open
@CodeBlanch

Description

@CodeBlanch

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    comp:instrumentation.aspnetcoreThings related to OpenTelemetry.Instrumentation.AspNetCorequestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions