pub struct NoopMeterProvider { /* private fields */ }Available on crate feature
metrics only.Expand description
A no-op instance of a MetricProvider
Implementations§
Trait Implementations§
Source§impl Debug for NoopMeterProvider
impl Debug for NoopMeterProvider
Source§impl Default for NoopMeterProvider
impl Default for NoopMeterProvider
Source§fn default() -> NoopMeterProvider
fn default() -> NoopMeterProvider
Returns the “default value” for a type. Read more
Source§impl MeterProvider for NoopMeterProvider
impl MeterProvider for NoopMeterProvider
Source§fn meter(&self, name: &'static str, version: Option<&'static str>) -> Meter
fn meter(&self, name: &'static str, version: Option<&'static str>) -> Meter
Creates an implementation of the
Meter interface. The
instrumentation name must be the name of the library providing
instrumentation. This name may be the same as the instrumented code only if
that code provides built-in instrumentation. If the instrumentation name is
empty, then a implementation defined default name will be used instead.Auto Trait Implementations§
impl Freeze for NoopMeterProvider
impl RefUnwindSafe for NoopMeterProvider
impl Send for NoopMeterProvider
impl Sync for NoopMeterProvider
impl Unpin for NoopMeterProvider
impl UnwindSafe for NoopMeterProvider
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
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Available on crate feature
trace only.Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Available on crate feature
trace only.