pub trait TelemetryBackend {
// Required methods
fn emit_snapshot(&mut self, snapshot: &MemorySnapshot);
fn emit_warning(&mut self, message: &str);
fn flush(&mut self);
}Expand description
Pluggable backend for telemetry integration.
Implement this trait to integrate with external monitoring systems
(Prometheus, DataDog, CloudWatch, etc.)
Required Methods§
Sourcefn emit_snapshot(&mut self, snapshot: &MemorySnapshot)
fn emit_snapshot(&mut self, snapshot: &MemorySnapshot)
Emit a memory snapshot to the telemetry system.
Sourcefn emit_warning(&mut self, message: &str)
fn emit_warning(&mut self, message: &str)
Emit a warning when memory usage approaches threshold.