open-telemetry/opentelemetry-dotnet

[otlp] UseOtlpExporter and AddOtlpExporter extensions don't play nice together

Open

#5538 aperta il 16 apr 2024

Vedi su GitHub
 (4 commenti) (5 reazioni) (0 assegnatari)C# (889 fork)auto 404
help wantedpkg:OpenTelemetry.Exporter.OpenTelemetryProtocol

Metriche repository

Star
 (3725 star)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

In 1.8.0 we introduced the UseOtlpExporter extension which will turn on OtlpExporter for all signals. If UseOtlpExporter is called more than once, or AddOtlpExporter is called in addition, exceptions will be thrown:

This was intentionally done but some users have run into issues:

Opening this issue to track the demand for changing the behavior.

Guida contributor