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.