pub struct MetricsExportConfig {
pub service_name: String,
pub service_version: String,
pub environment: String,
pub resource_attributes: Vec<(String, String)>,
pub scope_name: String,
pub scope_version: String,
pub start_time: u64,
}Expand description
Configuration for metrics export encoding.
Typically constructed by the runtime crates, not by end users.
Fields§
§service_name: StringService name, version, environment, plus any custom attributes. Converted to OTel KeyValue internally.
service_version: String§environment: String§resource_attributes: Vec<(String, String)>§scope_name: StringInstrumentation scope name.
scope_version: StringInstrumentation scope version.
start_time: u64Start time for cumulative metrics (nanos since epoch).
Trait Implementations§
Source§impl Clone for MetricsExportConfig
impl Clone for MetricsExportConfig
Source§fn clone(&self) -> MetricsExportConfig
fn clone(&self) -> MetricsExportConfig
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 moreAuto Trait Implementations§
impl Freeze for MetricsExportConfig
impl RefUnwindSafe for MetricsExportConfig
impl Send for MetricsExportConfig
impl Sync for MetricsExportConfig
impl Unpin for MetricsExportConfig
impl UnsafeUnpin for MetricsExportConfig
impl UnwindSafe for MetricsExportConfig
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