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]

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]

Set if the writer should format with pretty print

pub fn with_do_not_print_time(self, do_not_print_time: bool) -> Self[src]

Hide the timestamps from exported results

pub fn with_quantiles(self, quantiles: Vec<f64>) -> Self[src]

Set the quantiles that this exporter will use.

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]

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]

Set a formatter for serializing export batch data

pub fn try_init(self) -> Result<PushController>[src]

Build a new push controller, returning errors if they arise.

Trait Implementations

impl<W: Debug, S: Debug, I: Debug> Debug for StdoutExporterBuilder<W, S, I>[src]

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

impl<W, S, I> Sync for StdoutExporterBuilder<W, S, I> where
    I: Sync,
    S: Sync,
    W: Send

impl<W, S, I> Unpin for StdoutExporterBuilder<W, S, I> where
    I: Unpin,
    S: Unpin,
    W: Unpin

impl<W, S, I> !UnwindSafe for StdoutExporterBuilder<W, S, I>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,