pub enum OTelSdkError {
AlreadyShutdown,
Timeout(Duration),
InternalFailure(String),
}
Expand description
Errors that can occur during SDK operations export(), force_flush() and shutdown().
Variants§
AlreadyShutdown
Shutdown has already been invoked.
While shutdown is idempotent and calling it multiple times has no
impact, this error suggests that another part of the application is
invoking shutdown
earlier than intended. Users should review their
code to identify unintended or duplicate shutdown calls and ensure it is
only triggered once at the correct place.
Timeout(Duration)
Operation timed out before completing.
This does not necessarily indicate a failure—operation may still be complete. If this occurs frequently, consider increasing the timeout duration to allow more time for completion.
InternalFailure(String)
Operation failed due to an internal error.
The error message is intended for logging purposes only and should not be used to make programmatic decisions. It is implementation-specific and subject to change without notice. Consumers of this error should not rely on its content beyond logging.