opentelemetry-dotnet-contrib icon indicating copy to clipboard operation
opentelemetry-dotnet-contrib copied to clipboard

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

Open CodeBlanch opened this issue 2 years ago • 0 comments

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.

CodeBlanch avatar Jan 31 '23 17:01 CodeBlanch