pub struct OpenTelemetry { /* private fields */ }Implementations§
Source§impl OpenTelemetry
impl OpenTelemetry
pub fn new() -> Self
pub fn is_enabled(&self) -> bool
pub fn with_metrics(self, metrics: impl Into<Option<SdkMeterProvider>>) -> Self
pub fn with_traces(self, traces: impl Into<Option<TracerProvider>>) -> Self
pub fn with_logs(self, logs: impl Into<Option<LoggerProvider>>) -> Self
Sourcepub fn flush(&self) -> Result<(), OpenTelemetryError>
pub fn flush(&self) -> Result<(), OpenTelemetryError>
Flushes all metrics, traces, and logs, warning; this blocks the current thread.
Sourcepub fn shutdown(&self) -> Result<(), OpenTelemetryError>
pub fn shutdown(&self) -> Result<(), OpenTelemetryError>
Shuts down all metrics, traces, and logs.
Trait Implementations§
Source§impl Clone for OpenTelemetry
impl Clone for OpenTelemetry
Source§fn clone(&self) -> OpenTelemetry
fn clone(&self) -> OpenTelemetry
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OpenTelemetry
impl Debug for OpenTelemetry
Source§impl Default for OpenTelemetry
impl Default for OpenTelemetry
Source§fn default() -> OpenTelemetry
fn default() -> OpenTelemetry
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for OpenTelemetry
impl !RefUnwindSafe for OpenTelemetry
impl Send for OpenTelemetry
impl Sync for OpenTelemetry
impl Unpin for OpenTelemetry
impl !UnwindSafe for OpenTelemetry
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