pub struct Exemplar<T> {
pub filtered_attributes: Vec<KeyValue>,
pub time: SystemTime,
pub value: T,
pub span_id: [u8; 8],
pub trace_id: [u8; 16],
}
Expand description
A measurement sampled from a time series providing a typical example.
Fields§
§filtered_attributes: Vec<KeyValue>
The attributes recorded with the measurement but filtered out of the time series’ aggregated data.
time: SystemTime
The time when the measurement was recorded.
value: T
The measured value.
span_id: [u8; 8]
The ID of the span that was active during the measurement.
If no span was active or the span was not sampled this will be empty.
trace_id: [u8; 16]
The ID of the trace the active span belonged to during the measurement.
If no span was active or the span was not sampled this will be empty.
Trait Implementations§
Auto Trait Implementations§
impl<T> RefUnwindSafe for Exemplar<T>where T: RefUnwindSafe,
impl<T> Send for Exemplar<T>where T: Send,
impl<T> Sync for Exemplar<T>where T: Sync,
impl<T> Unpin for Exemplar<T>where T: Unpin,
impl<T> UnwindSafe for Exemplar<T>where T: UnwindSafe,
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