-
Notifications
You must be signed in to change notification settings - Fork 784
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Review all exporters for unhandled exceptions #2872
Comments
I can work on Prometheus |
I reviewed the Prometheus exporter. If we want to proceed with caution, we can add a try/catch to the Exporter or add a null check.
|
This comment was marked as resolved.
This comment was marked as resolved.
https://github.com/open-telemetry/opentelemetry-dotnet/blob/main/src/OpenTelemetry/Metrics/MetricReader.cs#L112-L124 MetricReader is catching all exceptions, so even if a MetricExporter throws, it wont crash. (This is different from Trace/Log as the BatchExporterProcessor doesn't catch exceptions from Exporter.) |
#2905 another crash from OTLP. |
https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/error-handling.md#basic-error-handling-principles
"The SDK MUST NOT throw unhandled exceptions for errors in their own operations. For example, an exporter should not throw an exception when it cannot reach the endpoint to which it sends telemetry data."
This was exposed in #2870 where OTLP exporter crashed the whole process, but opening a dedicated issue to track fixing this. This is separate from the issue about when/how should SDK handle unhandled exceptions when user components behave bad.
This issue is only tracking the core components (as required by the spec) :
The text was updated successfully, but these errors were encountered: