Skip to main content

TelemetrySink

Trait TelemetrySink 

Source
pub trait TelemetrySink: Send + Sync {
    // Required method
    fn emit(&self, payload_json: String);
}
Expand description

Host-provided transport for runtime telemetry events.

The sink is intentionally synchronous and best-effort: core constructs the JSON payload and hands it off to the host implementation (CLI HTTP/UDP, Desktop fetch proxy, etc.).

Required Methods§

Source

fn emit(&self, payload_json: String)

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§