#[non_exhaustive]pub enum Error {
UploadSerializeRequest(Error),
UploadCompressRequest(Error),
UploadDeserializeResponse(Error),
UploadConnection(Box<dyn StdError + Send + Sync + 'static>),
Upload(String),
QuickPulseProcessSpan(TrySendError),
QuickPulseShutdown(TrySendError),
}
Expand description
Errors that occurred during span export.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
UploadSerializeRequest(Error)
Application Insights telemetry data failed to serialize to JSON. Telemetry reporting failed because of this.
Note: This is an error in this crate. If you spot this, please open an issue.
UploadCompressRequest(Error)
Application Insights telemetry data failed serialize or compress. Telemetry reporting failed because of this.
Note: This is an error in this crate. If you spot this, please open an issue.
UploadDeserializeResponse(Error)
Application Insights telemetry response failed to deserialize from JSON.
Telemetry reporting may have worked. But since we could not look into the response, we can’t be sure.
Note: This is an error in this crate. If you spot this, please open an issue.
UploadConnection(Box<dyn StdError + Send + Sync + 'static>)
Could not complete the HTTP request to Application Insights to send telemetry data. Telemetry reporting failed because of this.
Upload(String)
Application Insights returned at least one error for the reported telemetry data.
QuickPulseProcessSpan(TrySendError)
live-metrics
only.Failed to process span for live metrics.
QuickPulseShutdown(TrySendError)
live-metrics
only.Failed to stop live metrics.
Trait Implementations§
Source§impl Error for Error
impl Error for Error
1.30.0 · 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 ExportError for Error
impl ExportError for Error
Source§fn exporter_name(&self) -> &'static str
fn exporter_name(&self) -> &'static str
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
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 more