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§async fn export(&self, batch: LogBatch<'_>) -> OTelSdkResult
async fn export(&self, batch: LogBatch<'_>) -> OTelSdkResult
Export logs to stdout
Source§fn shutdown(&self) -> OTelSdkResult
fn shutdown(&self) -> OTelSdkResult
Shuts down the exporter.
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