pub struct Builder { /* private fields */ }Expand description
Builder for provider attributes.
Implementations§
Source§impl Builder
impl Builder
Sourcepub fn with_simple_exporter<T: LogExporter + 'static>(self, exporter: T) -> Self
pub fn with_simple_exporter<T: LogExporter + 'static>(self, exporter: T) -> Self
The LogExporter that this provider should use.
Sourcepub fn with_batch_exporter<T: LogExporter + 'static, R: RuntimeChannel>(
self,
exporter: T,
runtime: R,
) -> Self
pub fn with_batch_exporter<T: LogExporter + 'static, R: RuntimeChannel>( self, exporter: T, runtime: R, ) -> Self
The LogExporter setup using a default BatchLogProcessor that this provider should use.
Sourcepub fn with_log_processor<T: LogProcessor + 'static>(self, processor: T) -> Self
pub fn with_log_processor<T: LogProcessor + 'static>(self, processor: T) -> Self
The LogProcessor that this provider should use.
Sourcepub fn with_resource(self, resource: Resource) -> Self
pub fn with_resource(self, resource: Resource) -> Self
The Resource to be associated with this Provider.
Sourcepub fn build(self) -> LoggerProvider
pub fn build(self) -> LoggerProvider
Create a new provider from this configuration.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Builder
impl !RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl !UnwindSafe for Builder
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