You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[feature request] Add NET8.0 and NET10.0 as TargetFramework #3707
Currently OpenTelemetry.Instrumentation.ElasticsearchClient references OpenTelemetry as NetStandard2.0 which somewhere down the line refers to Microsoft.Extensions.DependencyInjection.Abstractions 10.0.0.0.
My project is a NET8.0 project and every other OpenTelemetry library reference correctly refers to the 8.0.0.0 version of this library. It is only the ElasticsearchClient instrumentation library that results in an error for missing file.
System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Extensions.DependencyInjection.Abstractions, Version=10.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'. The system cannot find the file specified.
What is the expected behavior?
A NET8.0 project referencing OpenTelemetry.Instrumentation.ElasticsearchClient should in turn reference OpenTelemetry as NET8.0, which then references OpenTelemetry.Api.ProviderBuilderExtensions as NET8.0 which finally references Microsoft.Extensions.DependencyInjection.Abstractions as NET8.0
Which alternative solutions or features have you considered?
I've considered forcing Microsoft.Extensions.DependencyInjection.Abstractions to be v10.0.0.0, but I'd like to keep the various libraries in sync if possible.
Additional context
No response
Tip
React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it. Learn more here.
Activity
[ElasticSearch] Add .NET TFMs