Struct opentelemetry_sdk::logs::SimpleLogProcessor
source · pub struct SimpleLogProcessor { /* private fields */ }
Expand description
A LogProcessor that passes logs to the configured LogExporter
, as soon
as they are emitted, without any batching. This is typically useful for
debugging and testing. For scenarios requiring higher
performance/throughput, consider using BatchLogProcessor.
Trait Implementations§
source§impl Debug for SimpleLogProcessor
impl Debug for SimpleLogProcessor
source§impl LogProcessor for SimpleLogProcessor
impl LogProcessor for SimpleLogProcessor
source§fn emit(&self, data: &mut LogData)
fn emit(&self, data: &mut LogData)
Called when a log record is ready to processed and exported. Read more
source§fn force_flush(&self) -> LogResult<()>
fn force_flush(&self) -> LogResult<()>
Force the logs lying in the cache to be exported.
source§fn shutdown(&self) -> LogResult<()>
fn shutdown(&self) -> LogResult<()>
Shuts down the processor.
After shutdown returns the log processor should stop processing any logs.
It’s up to the implementation on when to drop the LogProcessor.
source§fn set_resource(&self, resource: &Resource)
fn set_resource(&self, resource: &Resource)
Set the resource for the log processor.
Auto Trait Implementations§
impl !Freeze for SimpleLogProcessor
impl RefUnwindSafe for SimpleLogProcessor
impl Send for SimpleLogProcessor
impl Sync for SimpleLogProcessor
impl Unpin for SimpleLogProcessor
impl UnwindSafe for SimpleLogProcessor
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