pub enum SetParentError {
LayerNotFound,
AlreadyStarted,
SpanDisabled,
}Expand description
An error returned if OpenTelemetrySpanExt::set_parent could not set the parent.
Variants§
LayerNotFound
The layer could not be found and therefore the action could not be carried out. This can
happen with some advanced layers that do not handle downcasting well, for example
tracing_subscriber::reload::Layer.
AlreadyStarted
The span has been already started.
Someone already called a context-starting method such as OpenTelemetrySpanExt::context
or the span has been entered and automatic context starting was not configured out.
SpanDisabled
The span is filtered out by tracing filters.
If the filtered out span had children, they will not be connected to the parent span either.
Trait Implementations§
Source§impl Debug for SetParentError
impl Debug for SetParentError
Source§impl Display for SetParentError
impl Display for SetParentError
Source§impl Error for SetParentError
impl Error for SetParentError
1.30.0 · 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()
Auto Trait Implementations§
impl Freeze for SetParentError
impl RefUnwindSafe for SetParentError
impl Send for SetParentError
impl Sync for SetParentError
impl Unpin for SetParentError
impl UnwindSafe for SetParentError
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