#[non_exhaustive]pub enum ObservabilityError {
AlreadyInitialized,
Subscriber(String),
Metrics(String),
Otel(String),
}Expand description
Errors raised while initializing telemetry.
The DomainError impl (category/code) is generated by the derive: every
variant is internal, with codes observability.<snake_variant>.
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.
AlreadyInitialized
A global subscriber/recorder was already installed in this process.
Subscriber(String)
Building or installing the tracing subscriber failed.
Metrics(String)
Installing the metrics recorder failed.
Otel(String)
Building the OpenTelemetry exporter/pipeline failed.
Trait Implementations§
Source§impl Debug for ObservabilityError
impl Debug for ObservabilityError
Source§impl Display for ObservabilityError
impl Display for ObservabilityError
Source§impl DomainError for ObservabilityError
impl DomainError for ObservabilityError
Source§fn category(&self) -> ErrorCategory
fn category(&self) -> ErrorCategory
The coarse classification of this error.
Source§fn is_retryable(&self) -> bool
fn is_retryable(&self) -> bool
Whether retrying might help. Defaults to the category’s policy.
Source§fn http_status(&self) -> u16
fn http_status(&self) -> u16
The HTTP status to surface. Defaults to the category’s status.
Source§impl Error for ObservabilityError
impl Error for ObservabilityError
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 ObservabilityError
impl RefUnwindSafe for ObservabilityError
impl Send for ObservabilityError
impl Sync for ObservabilityError
impl Unpin for ObservabilityError
impl UnsafeUnpin for ObservabilityError
impl UnwindSafe 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