Enum opentelemetry::metrics::MetricsError
source · [−]#[non_exhaustive]
pub enum MetricsError {
Other(String),
InvalidQuantile,
NaNInput,
NegativeInput,
InconsistentAggregator(String),
NoDataCollected,
MetricKindMismatch(String),
InconsistentState,
NoSubtraction,
ExportErr(Box<dyn ExportError + 'static, Global>),
}
metrics
only.Expand description
Errors returned by the metrics API.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Other(String)
Other errors not covered by specific cases.
InvalidQuantile
Errors when requesting quantiles out of the 0-1 range.
NaNInput
Errors when recording nan values.
NegativeInput
Errors when recording negative values in monotonic sums.
InconsistentAggregator(String)
Errors when merging aggregators of incompatible types.
NoDataCollected
Errors when requesting data when no data has been collected
MetricKindMismatch(String)
Errors when registering to instruments with the same name and kind
InconsistentState
Errors when processor logic is incorrect
NoSubtraction
Errors when aggregator cannot subtract
ExportErr(Box<dyn ExportError + 'static, Global>)
Fail to export metrics
Trait Implementations
sourceimpl Debug for MetricsError
impl Debug for MetricsError
sourceimpl Display for MetricsError
impl Display for MetricsError
sourceimpl Error for MetricsError
impl Error for MetricsError
1.30.0 · sourcefn 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 · sourcefn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()
sourceimpl From<MetricsError> for Error
impl From<MetricsError> for Error
sourcefn from(source: MetricsError) -> Error
fn from(source: MetricsError) -> Error
Converts to this type from the input type.
sourceimpl<T> From<PoisonError<T>> for MetricsError
impl<T> From<PoisonError<T>> for MetricsError
sourcefn from(err: PoisonError<T>) -> MetricsError
fn from(err: PoisonError<T>) -> MetricsError
Converts to this type from the input type.
sourceimpl<T> From<T> for MetricsErrorwhere
T: ExportError,
impl<T> From<T> for MetricsErrorwhere
T: ExportError,
sourcefn from(err: T) -> MetricsError
fn from(err: T) -> MetricsError
Converts to this type from the input type.
Auto Trait Implementations
impl !RefUnwindSafe for MetricsError
impl Send for MetricsError
impl Sync for MetricsError
impl Unpin for MetricsError
impl !UnwindSafe for MetricsError
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more