pub struct LogSink;Expand description
TelemetrySink that narrates events as tracing lines (→ stderr).
Trait Implementations§
Source§impl TelemetrySink for LogSink
impl TelemetrySink for LogSink
Source§fn emit(&self, event: TelemetryEvent)
fn emit(&self, event: TelemetryEvent)
Record one event.
Source§fn observe_lanes(&self, health: LaneHealth)
fn observe_lanes(&self, health: LaneHealth)
Record one daemon-wide health sample. Default: ignore it, so a sink that
only cares about runs needs no changes.
Source§fn observe_providers(&self, down: &[ProviderHealth])
fn observe_providers(&self, down: &[ProviderHealth])
Record which providers are currently out of service, sampled on the same
re-drive tick as
TelemetrySink::observe_lanes. Default: ignore it,
so an existing sink keeps compiling unchanged.Source§fn force_flush(&self)
fn force_flush(&self)
Flush any buffered export before shutdown. Default: nothing buffered.
Auto Trait Implementations§
impl Freeze for LogSink
impl RefUnwindSafe for LogSink
impl Send for LogSink
impl Sync for LogSink
impl Unpin for LogSink
impl UnsafeUnpin for LogSink
impl UnwindSafe for LogSink
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more