Struct opentelemetry::metrics::Descriptor [−][src]
pub struct Descriptor { /* fields omitted */ }
metrics
only.Expand description
Descriptor contains all the settings that describe an instrument, including its name, metric kind, number kind, and the configurable options.
Implementations
pub fn new(
name: String,
instrumentation_name: &'static str,
instrumentation_version: Option<&'static str>,
instrument_kind: InstrumentKind,
number_kind: NumberKind
) -> Self
pub fn new(
name: String,
instrumentation_name: &'static str,
instrumentation_version: Option<&'static str>,
instrument_kind: InstrumentKind,
number_kind: NumberKind
) -> Self
Create a new descriptor
The specific kind of instrument.
NumberKind returns whether this instrument is declared over int64, float64, or uint64 values.
A human-readable description of the metric instrument.
Assign a new description
The name of the library that provided instrumentation for this instrument.
The version of library that provided instrumentation for this instrument. Optional
Instrumentation library reference
The pre-computed hash of the descriptor data
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 Descriptor
impl Send for Descriptor
impl Sync for Descriptor
impl Unpin for Descriptor
impl UnwindSafe for Descriptor
Blanket Implementations
Mutably borrows from an owned value. Read more