Enum tracing_axiom::Error
source · pub enum Error {
TraceError(TraceError),
InitErr(TryInitError),
MissingToken,
EmptyToken,
InvalidToken,
MissingDatasetName,
EmptyDatasetName,
InvalidUrl(ParseError),
EnvVarNotUnicode(String),
EnvVarMissing(&'static str),
}
Expand description
The error type for this crate.
Variants§
TraceError(TraceError)
Failed to configure the tracer.
InitErr(TryInitError)
Failed to initialize the tracing-subscriber registry.
MissingToken
The required Axiom API token is missing.
EmptyToken
The required Axiom API token is empty.
InvalidToken
The required Axiom token is missing.
MissingDatasetName
The required Axiom dataset name is missing.
EmptyDatasetName
The required Axiom dataset name is empty.
InvalidUrl(ParseError)
The required Axiom dataset name is invalid.
EnvVarNotUnicode(String)
The environment variable is malformed unicode.
EnvVarMissing(&'static str)
The environment variable is not present.
Trait Implementations§
source§impl Error for Error
impl Error for Error
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<ParseError> for Error
impl From<ParseError> for Error
source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
source§impl From<TraceError> for Error
impl From<TraceError> for Error
source§fn from(source: TraceError) -> Self
fn from(source: TraceError) -> Self
Converts to this type from the input type.
source§impl From<TryInitError> for Error
impl From<TryInitError> for Error
source§fn from(source: TryInitError) -> Self
fn from(source: TryInitError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
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>
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request