pub struct ObservabilityRuntime { /* private fields */ }Expand description
Shared observability handles.
Implementations§
Source§impl ObservabilityRuntime
impl ObservabilityRuntime
Sourcepub fn new(config: TelemetryConfig) -> Self
pub fn new(config: TelemetryConfig) -> Self
Creates the runtime without installing exporters.
Sourcepub fn initialize(&self)
pub fn initialize(&self)
Installs tracing and OTLP exporters. Exporter failures are captured for diagnostics.
Sourcepub fn agent_metrics(&self) -> AgentProtocolMetrics
pub fn agent_metrics(&self) -> AgentProtocolMetrics
Returns a recorder for low-cardinality agent protocol metrics.
Sourcepub fn status(&self) -> TelemetryStatus
pub fn status(&self) -> TelemetryStatus
Returns secret-free diagnostics for service status.
Trait Implementations§
Source§impl Clone for ObservabilityRuntime
impl Clone for ObservabilityRuntime
Source§fn clone(&self) -> ObservabilityRuntime
fn clone(&self) -> ObservabilityRuntime
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ObservabilityRuntime
impl RefUnwindSafe for ObservabilityRuntime
impl Send for ObservabilityRuntime
impl Sync for ObservabilityRuntime
impl Unpin for ObservabilityRuntime
impl UnsafeUnpin for ObservabilityRuntime
impl UnwindSafe for ObservabilityRuntime
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