pub struct GlobalMeterProvider { /* private fields */ }
Available on crate feature
metrics
only.Expand description
Represents the globally configured MeterProvider
instance for this
application.
Implementations§
Source§impl GlobalMeterProvider
impl GlobalMeterProvider
Trait Implementations§
Source§impl Clone for GlobalMeterProvider
impl Clone for GlobalMeterProvider
Source§fn clone(&self) -> GlobalMeterProvider
fn clone(&self) -> GlobalMeterProvider
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for GlobalMeterProvider
impl Debug for GlobalMeterProvider
Source§impl MeterProvider for GlobalMeterProvider
impl MeterProvider for GlobalMeterProvider
Source§fn meter(&self, name: &'static str, version: Option<&'static str>) -> Meter
fn meter(&self, name: &'static str, version: Option<&'static str>) -> Meter
Available on crate feature
metrics
only.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 GlobalMeterProvider
impl !RefUnwindSafe for GlobalMeterProvider
impl Send for GlobalMeterProvider
impl Sync for GlobalMeterProvider
impl Unpin for GlobalMeterProvider
impl !UnwindSafe for GlobalMeterProvider
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.