pub struct LogExporter { /* private fields */ }
Available on crate feature
logs
only.Expand description
An OpenTelemetry exporter that writes Logs to stdout on export.
Trait Implementations§
Source§impl Debug for LogExporter
impl Debug for LogExporter
Source§impl Default for LogExporter
impl Default for LogExporter
Source§impl LogExporter for LogExporter
impl LogExporter for LogExporter
Source§fn export<'life0, 'life1, 'async_trait>(
&'life0 mut self,
batch: LogBatch<'life1>,
) -> Pin<Box<dyn Future<Output = LogResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn export<'life0, 'life1, 'async_trait>(
&'life0 mut self,
batch: LogBatch<'life1>,
) -> Pin<Box<dyn Future<Output = LogResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Export spans to stdout
Source§fn set_resource(&mut self, res: &Resource)
fn set_resource(&mut self, res: &Resource)
Set the resource for the exporter.
Auto Trait Implementations§
impl !Freeze for LogExporter
impl RefUnwindSafe for LogExporter
impl Send for LogExporter
impl Sync for LogExporter
impl Unpin for LogExporter
impl UnwindSafe for LogExporter
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