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
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:
NotSupportedException: Multiple calls to UseOtlpExporter on the same IServiceCollection are not supported.
thrownew NotSupportedException("Multiple calls to UseOtlpExporter on the same IServiceCollection are not supported.");
NotSupportedException: Signal-specific AddOtlpExporter methods and the cross-cutting UseOtlpExporter method being invoked on the same IServiceCollection is not supported.
thrownew NotSupportedException("Signal-specific AddOtlpExporter methods and the cross-cutting UseOtlpExporter method being invoked on the same IServiceCollection is not supported.");
This was intentionally done but some users have run into issues:
In 1.8.0 we introduced the
UseOtlpExporter
extension which will turn onOtlpExporter
for all signals. IfUseOtlpExporter
is called more than once, orAddOtlpExporter
is called in addition, exceptions will be thrown:NotSupportedException: Multiple calls to UseOtlpExporter on the same IServiceCollection are not supported.
opentelemetry-dotnet/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Builder/OpenTelemetryBuilderServiceProviderExtensions.cs
Line 15 in 57c442c
NotSupportedException: Signal-specific AddOtlpExporter methods and the cross-cutting UseOtlpExporter method being invoked on the same IServiceCollection is not supported.
opentelemetry-dotnet/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Builder/OpenTelemetryBuilderServiceProviderExtensions.cs
Line 24 in 57c442c
This was intentionally done but some users have run into issues:
AddProcessor
instead ofAddOtlpExporter
dotnet/aspire#3697 (comment)Opening this issue to track the demand for changing the behavior.
The text was updated successfully, but these errors were encountered: