pub enum InitTracerError {
UnsupportedEnvProtocol(String),
InvalidEnvTimeout(String, ParseIntError),
ExporterBuildError(ExporterBuildError),
}
Expand description
Error types that can occur during OpenTelemetry tracer initialization.
This enum represents the various failure modes when setting up an OTLP tracer provider, including configuration errors and exporter build failures.
Variants§
UnsupportedEnvProtocol(String)
An unsupported protocol was specified in environment variables.
This error occurs when the OTEL_EXPORTER_OTLP_PROTOCOL
or
OTEL_EXPORTER_OTLP_TRACES_PROTOCOL
environment variable contains
a protocol that is not supported by this library.
InvalidEnvTimeout(String, ParseIntError)
An invalid timeout value was provided in environment variables.
This error occurs when the timeout specified in OTEL_EXPORTER_OTLP_TIMEOUT
or OTEL_EXPORTER_OTLP_TRACES_TIMEOUT
cannot be parsed as a valid integer.
ExporterBuildError(ExporterBuildError)
An error occurred while building the OTLP exporter.
This error wraps underlying exporter build errors that may occur during the construction of the OTLP span exporter.
Trait Implementations§
Source§impl Debug for InitTracerError
impl Debug for InitTracerError
Source§impl Display for InitTracerError
impl Display for InitTracerError
Source§impl Error for InitTracerError
impl Error for InitTracerError
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
Source§impl From<ExporterBuildError> for InitTracerError
impl From<ExporterBuildError> for InitTracerError
Source§fn from(source: ExporterBuildError) -> Self
fn from(source: ExporterBuildError) -> Self
Auto Trait Implementations§
impl Freeze for InitTracerError
impl RefUnwindSafe for InitTracerError
impl Send for InitTracerError
impl Sync for InitTracerError
impl Unpin for InitTracerError
impl UnwindSafe for InitTracerError
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> 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
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string
, but without panic on OOM.