HttpRequestException in Transport is unhandled and becomes fatal to host AppDomain. #747
Closed
1 of 2 tasks
Labels
comp:exporter.instana
Things related to OpenTelemetry.Instrumentation.Instana
Issue with OpenTelemetry.Exporter.Instana
List of all OpenTelemetry NuGet
packages and version that you are
using (e.g.
OpenTelemetry 1.0.2
):Runtime version (e.g.
net462
,net48
,netcoreapp3.1
,net6.0
etc. You canfind this information from the
*.csproj
file):Is this a feature request or a bug?
What is the expected behavior?
Failure to export OpenTelemetry traces to the Instana service should be handled so that it does not terminate my application. The other exporters I've looked at are handling export exceptions and logging to an EventSource. The Instana exporter should probably follow the same pattern.
What is the actual behavior?
If
OpenTelemetry.Exporter.Instana.Implementation.Transport.SendSpansAsync
results in anHttpRequestException
(or any other exception), the exception goes unhandled and terminates the host application.I don't know why the Instana service is closing the connection, and don't have a consistent way to reproduce it, but it seems pretty clear that the exporter should properly handle exceptions, likely following the same pattern as the other exporters.
Additional Context
I caught this in a handler for
AppDomain.CurrentDomain.UnhandledException
(UnhandledExceptionEventArgs.IsTerminating
==true
):The text was updated successfully, but these errors were encountered: