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(
&self,
batch: LogBatch<'_>,
) -> impl Future<Output = OTelSdkResult> + Send
fn export( &self, batch: LogBatch<'_>, ) -> impl Future<Output = OTelSdkResult> + Send
Export spans to stdout
Source§fn shutdown(&mut self) -> OTelSdkResult
fn shutdown(&mut 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