Struct relay_event_schema::protocol::MetricSummary
source · pub struct MetricSummary {
pub min: Annotated<f64>,
pub max: Annotated<f64>,
pub sum: Annotated<f64>,
pub count: Annotated<u64>,
pub tags: Annotated<Object<String>>,
}
Expand description
The metric summary of a single metric that is emitted by the SDK.
The summary contains specific aggregate values that the metric had during the span’s lifetime. A single span can have the same metric emitted multiple times, which is the reason for aggregates being computed in each summary.
Fields§
§min: Annotated<f64>
Minimum value of the metric.
max: Annotated<f64>
Maximum value of the metric.
sum: Annotated<f64>
Sum of all metric values.
count: Annotated<u64>
Count of all metric values.
Tags of the metric.
Implementations§
source§impl MetricSummary
impl MetricSummary
sourcepub fn merge(&mut self, other: MetricSummary)
pub fn merge(&mut self, other: MetricSummary)
Merges another MetricSummary
in this MetricsSummary
.
Trait Implementations§
source§impl Clone for MetricSummary
impl Clone for MetricSummary
source§fn clone(&self) -> MetricSummary
fn clone(&self) -> MetricSummary
Returns a copy 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 MetricSummary
impl Debug for MetricSummary
source§impl Default for MetricSummary
impl Default for MetricSummary
source§fn default() -> MetricSummary
fn default() -> MetricSummary
Returns the “default value” for a type. Read more
source§impl Empty for MetricSummary
impl Empty for MetricSummary
source§impl FromValue for MetricSummary
impl FromValue for MetricSummary
source§fn from_value(__value: Annotated<Value>) -> Annotated<Self>
fn from_value(__value: Annotated<Value>) -> Annotated<Self>
Creates a meta structure from an annotated boxed value.
source§impl IntoValue for MetricSummary
impl IntoValue for MetricSummary
source§fn into_value(self) -> Value
fn into_value(self) -> Value
Boxes the meta structure back into a value.
source§fn serialize_payload<S>(
&self,
__serializer: S,
__behavior: SkipSerialization,
) -> Result<S::Ok, S::Error>where
Self: Sized,
S: Serializer,
fn serialize_payload<S>(
&self,
__serializer: S,
__behavior: SkipSerialization,
) -> Result<S::Ok, S::Error>where
Self: Sized,
S: Serializer,
Efficiently serializes the payload directly.
source§fn extract_child_meta(&self) -> MetaMapwhere
Self: Sized,
fn extract_child_meta(&self) -> MetaMapwhere
Self: Sized,
Extracts children meta map out of a value.
§fn extract_meta_tree(value: &Annotated<Self>) -> MetaTreewhere
Self: Sized,
fn extract_meta_tree(value: &Annotated<Self>) -> MetaTreewhere
Self: Sized,
Extracts the meta tree out of annotated value. Read more
source§impl PartialEq for MetricSummary
impl PartialEq for MetricSummary
source§impl ProcessValue for MetricSummary
impl ProcessValue for MetricSummary
source§fn value_type(&self) -> EnumSet<ValueType>
fn value_type(&self) -> EnumSet<ValueType>
Returns the type of the value.
source§fn process_value<P>(
&mut self,
__meta: &mut Meta,
__processor: &mut P,
__state: &ProcessingState<'_>,
) -> ProcessingResultwhere
P: Processor,
fn process_value<P>(
&mut self,
__meta: &mut Meta,
__processor: &mut P,
__state: &ProcessingState<'_>,
) -> ProcessingResultwhere
P: Processor,
Executes a processor on this value.
source§fn process_child_values<P>(
&mut self,
__processor: &mut P,
__state: &ProcessingState<'_>,
) -> ProcessingResultwhere
P: Processor,
fn process_child_values<P>(
&mut self,
__processor: &mut P,
__state: &ProcessingState<'_>,
) -> ProcessingResultwhere
P: Processor,
Recurses into children of this value.
impl StructuralPartialEq for MetricSummary
Auto Trait Implementations§
impl Freeze for MetricSummary
impl RefUnwindSafe for MetricSummary
impl Send for MetricSummary
impl Sync for MetricSummary
impl Unpin for MetricSummary
impl UnwindSafe for MetricSummary
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)