#[non_exhaustive]pub enum ObservabilityError {
BadFilter {
filter: String,
source: Box<dyn StdError + Send + Sync>,
},
OtelInit {
context: Option<String>,
source: Box<dyn StdError + Send + Sync>,
},
OtelDisabled,
}Expand description
Error returned by the public initialisation entry points
(init_logging, otel_layer::init_with_otel).
Marked #[non_exhaustive] so future variants (e.g. registry-already-
installed, exporter-handshake-failed) can be added without breaking
existing pattern matching.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
BadFilter
The log filter directive (passed via LoggingConfig::level)
could not be parsed by tracing-subscriber’s EnvFilter.
Fields
OtelInit
The OTLP / OpenTelemetry exporter pipeline failed to install. Common causes: TLS setup mismatch, the global tracer provider was already installed, or the collector endpoint was unreachable on the synchronous handshake.
Fields
OtelDisabled
The crate was built without the otel feature but the caller
asked for the OTel-aware initialiser. Rebuild with
--features otel (or, when consuming via the umbrella hwhkit
crate, --features otel) and try again.
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)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
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
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>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request