pub trait TelemetrySink<Event>: Send + Sync {
// Required method
fn record(&self, event: &Event) -> Result<()>;
// Provided method
fn flush(&self) -> Result<()> { ... }
}Expand description
A lightweight sink used to record telemetry events emitted by extracted
components. The Event type is intentionally generic so downstream
consumers can supply their own event schema without depending on
vtcode-core internals.
Required Methods§
Provided Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".