[http] Update Trace Instrumentation to align with changes in .NET 9.0
#2029
Labels
comp:instrumentation.http
Things related to OpenTelemetry.Instrumentation.Http
enhancement
New feature or request
Milestone
Component
OpenTelemetry.Instrumentation.Http
Is your feature request related to a problem?
Starting with
.NET 9.0
, HttpClient will automatically add tags to activities by default dotnet/runtime PR #104251, following the HTTP semantic conventions. To avoid redundant tagging within our instrumentation, we need to skip adding these tags for targets running on.NET 9.0
and above. This is the only adjustment required.We will continue supporting the
Enrich
andFilters
callbacks since the equivalent APIs are not affected by the changes in.NET 9.0
.It's essential to ensure consistent behavior in
.NET 9.0
compared to earlier versions to prevent breaking changes for users migrating to.NET 9.0
.What is the expected behavior?
Continued support for http instrumentation for users targeting
.NET9.0
Which alternative solutions or features have you considered?
NA
Additional context
No response
The text was updated successfully, but these errors were encountered: