Struct opentelemetry_stdout::LogExporter
source · 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