pub enum ObservabilityError {
Filter(ParseError),
Output(Error),
Otlp(ExporterBuildError),
OTelSdk(OTelSdkError),
Subscriber,
}Expand description
Failure to configure, install, or flush observability.
Variants§
Filter(ParseError)
A local or OpenTelemetry filter is invalid.
Output(Error)
The configured local output could not be opened.
Otlp(ExporterBuildError)
The OTLP exporter could not be constructed.
OTelSdk(OTelSdkError)
The OpenTelemetry SDK could not flush or shut down.
Subscriber
Another process-global tracing subscriber is already installed.
Trait Implementations§
Source§impl Debug for ObservabilityError
impl Debug for ObservabilityError
Source§impl Display for ObservabilityError
impl Display for ObservabilityError
Source§impl Error for ObservabilityError
impl Error for ObservabilityError
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<Error> for ObservabilityError
impl From<Error> for ObservabilityError
Source§impl From<ExporterBuildError> for ObservabilityError
impl From<ExporterBuildError> for ObservabilityError
Source§fn from(source: ExporterBuildError) -> Self
fn from(source: ExporterBuildError) -> Self
Converts to this type from the input type.
Source§impl From<OTelSdkError> for ObservabilityError
impl From<OTelSdkError> for ObservabilityError
Source§fn from(source: OTelSdkError) -> Self
fn from(source: OTelSdkError) -> Self
Converts to this type from the input type.
Source§impl From<ParseError> for ObservabilityError
impl From<ParseError> for ObservabilityError
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl !RefUnwindSafe for ObservabilityError
impl !UnwindSafe for ObservabilityError
impl Freeze for ObservabilityError
impl Send for ObservabilityError
impl Sync for ObservabilityError
impl Unpin for ObservabilityError
impl UnsafeUnpin for ObservabilityError
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