Struct opentelemetry_api::metrics::noop::NoopMeterCore
source · [−]pub struct NoopMeterCore { /* private fields */ }
metrics
only.Expand description
A no-op instance of a Meter
Implementations
sourceimpl NoopMeterCore
impl NoopMeterCore
Trait Implementations
sourceimpl Debug for NoopMeterCore
impl Debug for NoopMeterCore
sourceimpl Default for NoopMeterCore
impl Default for NoopMeterCore
sourcefn default() -> NoopMeterCore
fn default() -> NoopMeterCore
Returns the “default value” for a type. Read more
sourceimpl InstrumentProvider for NoopMeterCore
impl InstrumentProvider for NoopMeterCore
sourcefn register_callback(
&self,
_callback: Box<dyn Fn(&Context) + Send + Sync>
) -> Result<()>
fn register_callback(
&self,
_callback: Box<dyn Fn(&Context) + Send + Sync>
) -> Result<()>
Captures the function that will be called during data collection. Read more
sourcefn u64_counter(
&self,
_name: String,
_description: Option<String>,
_unit: Option<Unit>
) -> Result<Counter<u64>>
fn u64_counter(
&self,
_name: String,
_description: Option<String>,
_unit: Option<Unit>
) -> Result<Counter<u64>>
creates an instrument for recording increasing values.
sourcefn f64_counter(
&self,
_name: String,
_description: Option<String>,
_unit: Option<Unit>
) -> Result<Counter<f64>>
fn f64_counter(
&self,
_name: String,
_description: Option<String>,
_unit: Option<Unit>
) -> Result<Counter<f64>>
creates an instrument for recording increasing values.
sourcefn u64_observable_counter(
&self,
_name: String,
_description: Option<String>,
_unit: Option<Unit>
) -> Result<ObservableCounter<u64>>
fn u64_observable_counter(
&self,
_name: String,
_description: Option<String>,
_unit: Option<Unit>
) -> Result<ObservableCounter<u64>>
creates an instrument for recording increasing values via callback.
sourcefn f64_observable_counter(
&self,
_name: String,
_description: Option<String>,
_unit: Option<Unit>
) -> Result<ObservableCounter<f64>>
fn f64_observable_counter(
&self,
_name: String,
_description: Option<String>,
_unit: Option<Unit>
) -> Result<ObservableCounter<f64>>
creates an instrument for recording increasing values via callback.
sourcefn i64_up_down_counter(
&self,
_name: String,
_description: Option<String>,
_unit: Option<Unit>
) -> Result<UpDownCounter<i64>>
fn i64_up_down_counter(
&self,
_name: String,
_description: Option<String>,
_unit: Option<Unit>
) -> Result<UpDownCounter<i64>>
creates an instrument for recording changes of a value.
sourcefn f64_up_down_counter(
&self,
_name: String,
_description: Option<String>,
_unit: Option<Unit>
) -> Result<UpDownCounter<f64>>
fn f64_up_down_counter(
&self,
_name: String,
_description: Option<String>,
_unit: Option<Unit>
) -> Result<UpDownCounter<f64>>
creates an instrument for recording changes of a value.
sourcefn i64_observable_up_down_counter(
&self,
_name: String,
_description: Option<String>,
_unit: Option<Unit>
) -> Result<ObservableUpDownCounter<i64>>
fn i64_observable_up_down_counter(
&self,
_name: String,
_description: Option<String>,
_unit: Option<Unit>
) -> Result<ObservableUpDownCounter<i64>>
creates an instrument for recording changes of a value.
sourcefn f64_observable_up_down_counter(
&self,
_name: String,
_description: Option<String>,
_unit: Option<Unit>
) -> Result<ObservableUpDownCounter<f64>>
fn f64_observable_up_down_counter(
&self,
_name: String,
_description: Option<String>,
_unit: Option<Unit>
) -> Result<ObservableUpDownCounter<f64>>
creates an instrument for recording changes of a value via callback.
sourcefn u64_observable_gauge(
&self,
_name: String,
_description: Option<String>,
_unit: Option<Unit>
) -> Result<ObservableGauge<u64>>
fn u64_observable_gauge(
&self,
_name: String,
_description: Option<String>,
_unit: Option<Unit>
) -> Result<ObservableGauge<u64>>
creates an instrument for recording the current value via callback.
sourcefn i64_observable_gauge(
&self,
_name: String,
_description: Option<String>,
_unit: Option<Unit>
) -> Result<ObservableGauge<i64>>
fn i64_observable_gauge(
&self,
_name: String,
_description: Option<String>,
_unit: Option<Unit>
) -> Result<ObservableGauge<i64>>
creates an instrument for recording the current value via callback.
sourcefn f64_observable_gauge(
&self,
_name: String,
_description: Option<String>,
_unit: Option<Unit>
) -> Result<ObservableGauge<f64>>
fn f64_observable_gauge(
&self,
_name: String,
_description: Option<String>,
_unit: Option<Unit>
) -> Result<ObservableGauge<f64>>
creates an instrument for recording the current value via callback.
sourcefn f64_histogram(
&self,
_name: String,
_description: Option<String>,
_unit: Option<Unit>
) -> Result<Histogram<f64>>
fn f64_histogram(
&self,
_name: String,
_description: Option<String>,
_unit: Option<Unit>
) -> Result<Histogram<f64>>
creates an instrument for recording a distribution of values.
Auto Trait Implementations
impl RefUnwindSafe for NoopMeterCore
impl Send for NoopMeterCore
impl Sync for NoopMeterCore
impl Unpin for NoopMeterCore
impl UnwindSafe for NoopMeterCore
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more