Struct opentelemetry::sdk::export::metrics::ExportLine
source · [−]pub struct ExportLine {
pub name: String,
pub sum: Option<ExportNumeric>,
pub last_value: Option<ExportNumeric>,
pub timestamp: Option<SystemTime>,
}
Available on crate feature
metrics
only.Expand description
Individually exported metric
Can be formatted using StdoutExporterBuilder::with_formatter
.
Fields
name: String
metric name
sum: Option<ExportNumeric>
populated if using sum aggregator
last_value: Option<ExportNumeric>
populated if using last value aggregator
timestamp: Option<SystemTime>
metric timestamp
Trait Implementations
sourceimpl Debug for ExportLine
impl Debug for ExportLine
sourceimpl Default for ExportLine
impl Default for ExportLine
sourcefn default() -> ExportLine
fn default() -> ExportLine
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl !RefUnwindSafe for ExportLine
impl !Send for ExportLine
impl !Sync for ExportLine
impl Unpin for ExportLine
impl !UnwindSafe for ExportLine
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