#[non_exhaustive]pub enum TraceError {
ExportFailed(Box<dyn ExportError>),
ExportTimedOut(Duration),
TracerProviderAlreadyShutdown,
Other(Box<dyn Error + Send + Sync + 'static>),
}
Available on crate feature
trace
only.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.
TracerProviderAlreadyShutdown
already shutdown error
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)>
Returns 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<T> From<PoisonError<T>> for TraceError
impl<T> From<PoisonError<T>> for TraceError
Source§fn from(err: PoisonError<T>) -> Self
fn from(err: PoisonError<T>) -> Self
Converts to this type from the input type.
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,
Auto Trait Implementations§
impl Freeze for TraceError
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
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Available on crate feature
trace
only.Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
Available on crate feature
trace
only.