pub struct StdoutExporterBuilder<W, S, I> { /* private fields */ }
Available on crate feature
metrics
only.Expand description
Configuration for a given stdout exporter.
Implementations§
Source§impl<W, S, SO, I, IS, ISI> StdoutExporterBuilder<W, S, I>
impl<W, S, SO, I, IS, ISI> StdoutExporterBuilder<W, S, I>
Sourcepub fn with_writer<W2: Write>(
self,
writer: W2,
) -> StdoutExporterBuilder<W2, S, I>
pub fn with_writer<W2: Write>( self, writer: W2, ) -> StdoutExporterBuilder<W2, S, I>
Set the writer that this exporter will use.
Sourcepub fn with_do_not_print_time(self, do_not_print_time: bool) -> Self
pub fn with_do_not_print_time(self, do_not_print_time: bool) -> Self
Hide the timestamps from exported results
Sourcepub fn with_attribute_encoder<E>(self, attribute_encoder: E) -> Self
pub fn with_attribute_encoder<E>(self, attribute_encoder: E) -> Self
Set the attribute encoder that this exporter will use.
Sourcepub fn with_period(self, period: Duration) -> Self
pub fn with_period(self, period: Duration) -> Self
Set the frequency in which metrics are exported.
Sourcepub fn with_formatter<T>(self, formatter: T) -> Self
pub fn with_formatter<T>(self, formatter: T) -> Self
Set a formatter for serializing export batch data
Sourcepub fn init(self) -> PushController
pub fn init(self) -> PushController
Build a new push controller, returning errors if they arise.
Trait Implementations§
Auto Trait Implementations§
impl<W, S, I> !Freeze for StdoutExporterBuilder<W, S, I>
impl<W, S, I> !RefUnwindSafe for StdoutExporterBuilder<W, S, I>
impl<W, S, I> Send for StdoutExporterBuilder<W, S, I>
impl<W, S, I> Sync for StdoutExporterBuilder<W, S, I>
impl<W, S, I> Unpin for StdoutExporterBuilder<W, S, I>
impl<W, S, I> !UnwindSafe for StdoutExporterBuilder<W, S, I>
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
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Available on crate feature
trace
only.Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Available on crate feature
trace
only.