Trait LogRecordExporter
pub trait LogRecordExporter:
Send
+ Sync
+ 'static {
// Required method
fn emit(&self, event: &LogEvent);
// Provided method
fn force_flush(&self) -> Result<(), String> { ... }
}Expand description
Nonblocking exporter invoked for every canonical event before persistence.
Implementations own their queueing and must keep Self::emit off network
and file I/O. Self::force_flush is called when the binding is replaced
or cleared so buffered telemetry is not abandoned on configuration reload.
Required Methods§
Provided Methods§
fn force_flush(&self) -> Result<(), String>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".