pub struct RuntimeTelemetry { /* private fields */ }Expand description
Runtime telemetry system
Uses RwLock for thread-safe interior mutability, enabling
the runtime to be shared across async tasks (Send + Sync).
Implementations§
Source§impl RuntimeTelemetry
impl RuntimeTelemetry
pub fn new(config: &TelemetryConfig) -> Self
Sourcepub fn resonator_registered(&self, handle: &ResonatorHandle)
pub fn resonator_registered(&self, handle: &ResonatorHandle)
Record Resonator registration
Sourcepub fn resonator_resumed(&self, handle: &ResonatorHandle)
pub fn resonator_resumed(&self, handle: &ResonatorHandle)
Record Resonator resume
Sourcepub fn coupling_established(&self, source: &str, target: &str, strength: f64)
pub fn coupling_established(&self, source: &str, target: &str, strength: f64)
Record coupling establishment
Sourcepub fn attention_allocated(&self, resonator: &str, amount: u64)
pub fn attention_allocated(&self, resonator: &str, amount: u64)
Record attention allocation
Sourcepub fn invariant_violated(&self, invariant: &str)
pub fn invariant_violated(&self, invariant: &str)
Record invariant violation
Auto Trait Implementations§
impl !Freeze for RuntimeTelemetry
impl RefUnwindSafe for RuntimeTelemetry
impl Send for RuntimeTelemetry
impl Sync for RuntimeTelemetry
impl Unpin for RuntimeTelemetry
impl UnwindSafe for RuntimeTelemetry
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