pub trait LogExporter: Send + Debug {
    // Required method
    fn export<'life0, 'async_trait>(
        &'life0 mut self,
        batch: Vec<LogData>
    ) -> Pin<Box<dyn Future<Output = Result<(), LogError>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: 'async_trait;

    // Provided method
    fn shutdown(&mut self) { ... }
}
Expand description

LogExporter defines the interface that log exporters should implement.

Required Methods§

source

fn export<'life0, 'async_trait>( &'life0 mut self, batch: Vec<LogData> ) -> Pin<Box<dyn Future<Output = Result<(), LogError>> + Send + 'async_trait>>where 'life0: 'async_trait, Self: 'async_trait,

Exports a batch of ResourceLogs.

Provided Methods§

source

fn shutdown(&mut self)

Shuts down the expoter.

Implementors§