Enum opentelemetry::trace::TraceError
source · #[non_exhaustive]pub enum TraceError {
ExportFailed(Box<dyn ExportError>),
ExportTimedOut(Duration),
Other(Box<dyn Error + Send + Sync + 'static>),
}
Expand description
Errors returned by the trace API.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ExportFailed(Box<dyn ExportError>)
Export failed with the error returned by the exporter
ExportTimedOut(Duration)
Export failed to finish after certain period and processor stopped the export.
Other(Box<dyn Error + Send + Sync + 'static>)
Other errors propagated from trace SDK that weren’t covered above
Trait Implementations§
source§impl Debug for TraceError
impl Debug for TraceError
source§impl Display for TraceError
impl Display for TraceError
source§impl Error for TraceError
impl Error for TraceError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl From<&'static str> for TraceError
impl From<&'static str> for TraceError
source§impl From<Canceled> for TraceError
impl From<Canceled> for TraceError
source§impl From<String> for TraceError
impl From<String> for TraceError
source§impl<T> From<T> for TraceErrorwhere
T: ExportError,
impl<T> From<T> for TraceErrorwhere T: ExportError,
source§impl From<TraceError> for Error
impl From<TraceError> for Error
source§fn from(source: TraceError) -> Self
fn from(source: TraceError) -> Self
Converts to this type from the input type.
source§impl<T> From<TrySendError<T>> for TraceError
impl<T> From<TrySendError<T>> for TraceError
source§fn from(err: TrySendError<T>) -> Self
fn from(err: TrySendError<T>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for TraceError
impl Send for TraceError
impl Sync for TraceError
impl Unpin for TraceError
impl !UnwindSafe for TraceError
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more