pub enum MetricData {
F64Gauge(Gauge),
F64Sum(Sum),
F64Histogram(Histogram),
F64ExponentialHistogram(ExponentialHistogram),
U64Gauge(Gauge),
U64Sum(Sum),
U64Histogram(Histogram),
U64ExponentialHistogram(ExponentialHistogram),
S64Gauge(Gauge),
S64Sum(Sum),
S64Histogram(Histogram),
S64ExponentialHistogram(ExponentialHistogram),
}Expand description
Metric data for all types.
Variants§
F64Gauge(Gauge)
Metric data for an f64 gauge.
F64Sum(Sum)
Metric data for an f64 sum.
F64Histogram(Histogram)
Metric data for an f64 histogram.
F64ExponentialHistogram(ExponentialHistogram)
Metric data for an f64 exponential-histogram.
U64Gauge(Gauge)
Metric data for an u64 gauge.
U64Sum(Sum)
Metric data for an u64 sum.
U64Histogram(Histogram)
Metric data for an u64 histogram.
U64ExponentialHistogram(ExponentialHistogram)
Metric data for an u64 exponential-histogram.
S64Gauge(Gauge)
Metric data for an s64 gauge.
S64Sum(Sum)
Metric data for an s64 sum.
S64Histogram(Histogram)
Metric data for an s64 histogram.
S64ExponentialHistogram(ExponentialHistogram)
Metric data for an s64 exponential-histogram.
Trait Implementations§
Source§impl Clone for MetricData
impl Clone for MetricData
Source§fn clone(&self) -> MetricData
fn clone(&self) -> MetricData
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MetricData
impl Debug for MetricData
Source§impl From<MetricData> for Box<dyn Aggregation>
impl From<MetricData> for Box<dyn Aggregation>
Source§fn from(value: MetricData) -> Self
fn from(value: MetricData) -> Self
Converts to this type from the input type.
impl ComponentType for MetricData
impl Lift for MetricData
impl Lower for MetricData
Auto Trait Implementations§
impl Freeze for MetricData
impl RefUnwindSafe for MetricData
impl Send for MetricData
impl Sync for MetricData
impl Unpin for MetricData
impl UnsafeUnpin for MetricData
impl UnwindSafe for MetricData
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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