Struct opentelemetry::sdk::export::metrics::stdout::StdoutExporterBuilder [−][src]
pub struct StdoutExporterBuilder<W, S, I> { /* fields omitted */ }
This is supported on crate feature
metrics
only.Configuration for a given stdout exporter.
Implementations
impl<W, S, SO, I, IS, ISI> StdoutExporterBuilder<W, S, I> where
W: Write + Debug + Send + Sync + 'static,
S: Fn(PushControllerWorker) -> SO,
I: Fn(Duration) -> IS,
IS: Stream<Item = ISI> + Send + 'static,
[src]
impl<W, S, SO, I, IS, ISI> StdoutExporterBuilder<W, S, I> where
W: Write + Debug + Send + Sync + 'static,
S: Fn(PushControllerWorker) -> SO,
I: Fn(Duration) -> IS,
IS: Stream<Item = ISI> + Send + 'static,
[src]pub fn with_writer<W2: Write>(
self,
writer: W2
) -> StdoutExporterBuilder<W2, S, I>
[src]
pub fn with_writer<W2: Write>(
self,
writer: W2
) -> StdoutExporterBuilder<W2, S, I>
[src]Set the writer that this exporter will use.
pub fn with_pretty_print(self, pretty_print: bool) -> Self
[src]
pub fn with_pretty_print(self, pretty_print: bool) -> Self
[src]Set if the writer should format with pretty print
pub fn with_do_not_print_time(self, do_not_print_time: bool) -> Self
[src]
pub fn with_do_not_print_time(self, do_not_print_time: bool) -> Self
[src]Hide the timestamps from exported results
pub fn with_label_encoder<E>(self, label_encoder: E) -> Self where
E: Encoder + Send + Sync + 'static,
[src]
pub fn with_label_encoder<E>(self, label_encoder: E) -> Self where
E: Encoder + Send + Sync + 'static,
[src]Set the label encoder that this exporter will use.
pub fn with_period(self, period: Duration) -> Self
[src]
pub fn with_period(self, period: Duration) -> Self
[src]Set the frequency in which metrics are exported.
pub fn with_formatter<T>(self, formatter: T) -> Self where
T: Fn(ExportBatch) -> Result<String> + Send + Sync + 'static,
[src]
pub fn with_formatter<T>(self, formatter: T) -> Self where
T: Fn(ExportBatch) -> Result<String> + Send + Sync + 'static,
[src]Set a formatter for serializing export batch data
pub fn init(self) -> PushController
[src]
pub fn init(self) -> PushController
[src]Build a new push controller, returning errors if they arise.
Trait Implementations
Auto Trait Implementations
impl<W, S, I> !RefUnwindSafe for StdoutExporterBuilder<W, S, I>
impl<W, S, I> Send for StdoutExporterBuilder<W, S, I> where
I: Send,
S: Send,
W: Send,
I: Send,
S: Send,
W: Send,
impl<W, S, I> Sync for StdoutExporterBuilder<W, S, I> where
I: Sync,
S: Sync,
W: Send,
I: Sync,
S: Sync,
W: Send,
impl<W, S, I> Unpin for StdoutExporterBuilder<W, S, I> where
I: Unpin,
S: Unpin,
W: Unpin,
I: Unpin,
S: Unpin,
W: Unpin,
impl<W, S, I> !UnwindSafe for StdoutExporterBuilder<W, S, I>
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,