Struct opentelemetry::metrics::InstrumentConfig [−][src]
pub struct InstrumentConfig { /* fields omitted */ }
metrics
only.Config contains some options for metrics of any kind.
Implementations
impl InstrumentConfig
[src]
impl InstrumentConfig
[src]pub fn with_instrumentation_name(instrumentation_name: &'static str) -> Self
[src]
pub fn with_instrumentation_name(instrumentation_name: &'static str) -> Self
[src]Create a new config from instrumentation name
pub fn with_instrumentation(
instrumentation_name: &'static str,
instrumentation_version: Option<&'static str>
) -> Self
[src]
pub fn with_instrumentation(
instrumentation_name: &'static str,
instrumentation_version: Option<&'static str>
) -> Self
[src]Create a new config with instrumentation name and optional version
pub fn description(&self) -> Option<&String>
[src]
pub fn description(&self) -> Option<&String>
[src]Description is an optional field describing the metric instrument.
pub fn unit(&self) -> Option<&Unit>
[src]
pub fn unit(&self) -> Option<&Unit>
[src]Unit is an optional field describing the metric instrument data.
pub fn instrumentation_name(&self) -> &'static str
[src]
pub fn instrumentation_name(&self) -> &'static str
[src]Instrumentation name is the name given to the Meter that created this instrument.
pub fn instrumentation_version(&self) -> Option<&'static str>
[src]
pub fn instrumentation_version(&self) -> Option<&'static str>
[src]Instrumentation version returns the version of instrumentation
Trait Implementations
impl Clone for InstrumentConfig
[src]
impl Clone for InstrumentConfig
[src]fn clone(&self) -> InstrumentConfig
[src]
fn clone(&self) -> InstrumentConfig
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for InstrumentConfig
[src]
impl Debug for InstrumentConfig
[src]impl Hash for InstrumentConfig
[src]
impl Hash for InstrumentConfig
[src]impl PartialEq<InstrumentConfig> for InstrumentConfig
[src]
impl PartialEq<InstrumentConfig> for InstrumentConfig
[src]fn eq(&self, other: &InstrumentConfig) -> bool
[src]
fn eq(&self, other: &InstrumentConfig) -> bool
[src]This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(&self, other: &InstrumentConfig) -> bool
[src]
fn ne(&self, other: &InstrumentConfig) -> bool
[src]This method tests for !=
.
impl StructuralPartialEq for InstrumentConfig
[src]
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
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,