[bug] Remove Explicit Dependency on System.Text.Json in OpenTelemetry.Exporter.OneCollector on net8.0 #2459
Labels
bug
Something isn't working
comp:exporter.onecollector
Things related to OpenTelemetry.Exporter.OneCollector
Component
OpenTelemetry.Exporter.OneCollector
Package Version
Runtime Version
net8.0
Description
On net8.0 and above, an explicit reference to System.Text.Json is not needed. It is included in the Framework. Removing this reference reduces explicit transitive dependencies.
Steps to Reproduce
Include OpenTelemetry.Exporter.OneCollector in a project using net8.0
Expected Result
OpenTelemetry.Exporter.OneCollector uses STJ from the framework and doesn't use an explicit dependency.
Actual Result
OpenTelemetry.Exporter.OneCollector uses STJ from an explicit dependency.
Additional Context
I can submit a fix if this is accepted.
The text was updated successfully, but these errors were encountered: