Struct opentelemetry_api::global::GlobalMeterProvider
source · [−]pub struct GlobalMeterProvider { /* private fields */ }
Available on crate feature
metrics
only.Expand description
Represents the globally configured MeterProvider
instance for this
application.
Implementations
sourceimpl GlobalMeterProvider
impl GlobalMeterProvider
sourcepub fn new<P>(provider: P) -> Selfwhere
P: MeterProvider + Send + Sync + 'static,
pub fn new<P>(provider: P) -> Selfwhere
P: MeterProvider + Send + Sync + 'static,
Create a new global meter provider
Trait Implementations
sourceimpl Clone for GlobalMeterProvider
impl Clone for GlobalMeterProvider
sourcefn clone(&self) -> GlobalMeterProvider
fn clone(&self) -> GlobalMeterProvider
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for GlobalMeterProvider
impl Debug for GlobalMeterProvider
sourceimpl MeterProvider for GlobalMeterProvider
impl MeterProvider for GlobalMeterProvider
Auto Trait Implementations
impl !RefUnwindSafe for GlobalMeterProvider
impl Send for GlobalMeterProvider
impl Sync for GlobalMeterProvider
impl Unpin for GlobalMeterProvider
impl !UnwindSafe for GlobalMeterProvider
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