pub struct NoopMeterCore { /* private fields */ }Available on crate feature
metrics only.Expand description
A no-op instance of a Meter
Implementations§
Source§impl NoopMeterCore
impl NoopMeterCore
Trait Implementations§
Source§impl Debug for NoopMeterCore
impl Debug for NoopMeterCore
Source§impl Default for NoopMeterCore
impl Default for NoopMeterCore
Source§fn default() -> NoopMeterCore
fn default() -> NoopMeterCore
Returns the “default value” for a type. Read more
Source§impl MeterCore for NoopMeterCore
impl MeterCore for NoopMeterCore
Source§fn new_sync_instrument(
&self,
_descriptor: Descriptor,
) -> Result<Arc<dyn SyncInstrumentCore>>
fn new_sync_instrument( &self, _descriptor: Descriptor, ) -> Result<Arc<dyn SyncInstrumentCore>>
Create a new synchronous instrument implementation.
Source§fn new_async_instrument(
&self,
_descriptor: Descriptor,
_runner: Option<AsyncRunner>,
) -> Result<Arc<dyn AsyncInstrumentCore>>
fn new_async_instrument( &self, _descriptor: Descriptor, _runner: Option<AsyncRunner>, ) -> Result<Arc<dyn AsyncInstrumentCore>>
Create a new asynchronous instrument implementation. Read more
Source§fn record_batch_with_context(
&self,
_cx: &Context,
_attributes: &[KeyValue],
_measurements: Vec<Measurement>,
)
fn record_batch_with_context( &self, _cx: &Context, _attributes: &[KeyValue], _measurements: Vec<Measurement>, )
Atomically record a batch of measurements.
Source§fn new_batch_observer(&self, _runner: AsyncRunner) -> Result<()>
fn new_batch_observer(&self, _runner: AsyncRunner) -> Result<()>
Register a batch observer
Auto Trait Implementations§
impl Freeze for NoopMeterCore
impl RefUnwindSafe for NoopMeterCore
impl Send for NoopMeterCore
impl Sync for NoopMeterCore
impl Unpin for NoopMeterCore
impl UnwindSafe for NoopMeterCore
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.