#[non_exhaustive]pub struct RuntimeObservability {
pub metrics: Arc<dyn MetricsCollector>,
pub tracer: Arc<dyn EventTracer>,
}Expand description
Explicit observability configuration for runtime construction.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.metrics: Arc<dyn MetricsCollector>Metrics collector used by runtime operations.
tracer: Arc<dyn EventTracer>Tracer used for runtime-level events.
Implementations§
Source§impl RuntimeObservability
impl RuntimeObservability
Sourcepub fn with_metrics(self, metrics: Arc<dyn MetricsCollector>) -> Self
pub fn with_metrics(self, metrics: Arc<dyn MetricsCollector>) -> Self
Override the metrics collector.
Sourcepub fn with_tracer(self, tracer: Arc<dyn EventTracer>) -> Self
pub fn with_tracer(self, tracer: Arc<dyn EventTracer>) -> Self
Override the tracer.
Trait Implementations§
Source§impl Clone for RuntimeObservability
impl Clone for RuntimeObservability
Source§fn clone(&self) -> RuntimeObservability
fn clone(&self) -> RuntimeObservability
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 !RefUnwindSafe for RuntimeObservability
impl !UnwindSafe for RuntimeObservability
impl Freeze for RuntimeObservability
impl Send for RuntimeObservability
impl Sync for RuntimeObservability
impl Unpin for RuntimeObservability
impl UnsafeUnpin for RuntimeObservability
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