Skip to content

[bug] Remove Explicit Dependency on System.Text.Json in OpenTelemetry.Exporter.OneCollector on net8.0 #2459

Open
@keegan-caruso

Description

@keegan-caruso

Component

OpenTelemetry.Exporter.OneCollector

Package Version

Package Name Version
OpenTelemetry.Exporter.OneCollector 1.10.0

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingcomp:exporter.onecollectorThings related to OpenTelemetry.Exporter.OneCollector

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions