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
Using the single file publish causes this issue in the gRPC library grpc/grpc#24266.
#1616 also suggests that the OtlpExporter constructor is throwing an excption. I'm uncertain if it is the same one, but it is most likely the instantiation of the channel that is throwing here too.
Few things I'd like to suggest:
Delay the instantiation of the channel to the first call to export data. This would allow us to catch the exception on export and not crash the application.
Make a netstandard2.1 build of the OTLP exporter. This would enable us to use the grpc-dotnet library for .NET 3.1 and above instead of the native grpc library. This would:
Currently the constructor for the
OtlpExporter
instantiates a gRPC channel here:opentelemetry-dotnet/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/OtlpExporter.cs
Line 59 in 1630fb3
The channel constructor can throw an exception. I've encountered this when using a single file publish:
Using the single file publish causes this issue in the gRPC library grpc/grpc#24266.
#1616 also suggests that the
OtlpExporter
constructor is throwing an excption. I'm uncertain if it is the same one, but it is most likely the instantiation of the channel that is throwing here too.Few things I'd like to suggest:
netstandard2.1
build of the OTLP exporter. This would enable us to use the grpc-dotnet library for .NET 3.1 and above instead of the native grpc library. This would:The text was updated successfully, but these errors were encountered: