pub fn spawn(
config: TelemetryConfig,
recorders: Vec<Arc<dyn TelemetryRecorder>>,
) -> Result<(TelemetryHandle, TelemetryConsumer), SpawnError>Expand description
Create a telemetry pipeline. Returns (handle, consumer):
handlerecords events (cloneable, non-blocking); events whose kind is disabled viaconfig.event_toggles/default_event_enablednever enter the channel.consumerdrives the pipeline in the background (tokio::spawnorawait): it redacts each event once, then forwards it to every recorder inrecorders, in order.
recorders is how the caller decides what happens to telemetry data —
this crate never constructs a network client on its own.