Struct Instrument Descriptor

View as Markdown

Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-pii-redaction -p nemo-relay-ffi -p nemo-relay-types -p nemo-relay-plugin -p nemo-relay-worker-proto -p nemo-relay-worker.

pub struct InstrumentDescriptor {
    pub name: InstrumentName,
    pub kind: MetricKind,
    pub unit: Option<String>,
    pub description: Option<String>,
    pub boundaries: Option<HistogramBoundaries>,
}

Descriptor fields shared by all recordings of an instrument.

Fields

name: InstrumentName

Valid instrument name.

kind: MetricKind

OpenTelemetry instrument kind.

unit: Option<String>

Optional OpenTelemetry instrument unit.

description: Option<String>

Optional non-identifying description.

boundaries: Option<HistogramBoundaries>

Optional non-identifying histogram bucket boundaries.

Implementations

impl InstrumentDescriptor

impl InstrumentDescriptor

descriptor_key

pub fn descriptor_key(&self) -> String

Return the canonical name used to group an instrument within an envelope.

Trait Implementations

impl Clone for InstrumentDescriptor

impl Clone for InstrumentDescriptor

clone

fn clone(&self) -> InstrumentDescriptor

clone_from

fn clone_from(&mut self, source: &Self)

impl Debug for InstrumentDescriptor

impl Debug for InstrumentDescriptor

fmt

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

impl PartialEq for InstrumentDescriptor

impl PartialEq for InstrumentDescriptor

eq

fn eq(&self, other: &InstrumentDescriptor) -> bool

ne

fn ne(&self, other: &Rhs) -> bool

impl StructuralPartialEq for InstrumentDescriptor

impl StructuralPartialEq for InstrumentDescriptor