Struct opentelemetry::metrics::InstrumentConfig [−][src]
pub struct InstrumentConfig { /* fields omitted */ }
This is supported on crate feature
metrics
only.Expand description
Config contains some options for metrics of any kind.
Implementations
Create a new config from instrumentation name
pub fn with_instrumentation(
instrumentation_name: &'static str,
instrumentation_version: Option<&'static str>
) -> Self
pub fn with_instrumentation(
instrumentation_name: &'static str,
instrumentation_version: Option<&'static str>
) -> Self
Create a new config with instrumentation name and optional version
Description is an optional field describing the metric instrument.
Unit is an optional field describing the metric instrument data.
Instrumentation name is the name given to the Meter that created this instrument.
Instrumentation version returns the version of instrumentation
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for InstrumentConfig
impl Send for InstrumentConfig
impl Sync for InstrumentConfig
impl Unpin for InstrumentConfig
impl UnwindSafe for InstrumentConfig
Blanket Implementations
Mutably borrows from an owned value. Read more