Struct opentelemetry::sdk::export::metrics::stdout::StdoutExporterBuilder [−][src]
pub struct StdoutExporterBuilder<W, S, I> { /* fields omitted */ }
This is supported on crate feature
metrics
only.Expand description
Configuration for a given stdout exporter.
Implementations
Set the writer that this exporter will use.
Set if the writer should format with pretty print
Hide the timestamps from exported results
pub fn with_attribute_encoder<E>(self, attribute_encoder: E) -> Self where
E: Encoder + Send + Sync + 'static,
pub fn with_attribute_encoder<E>(self, attribute_encoder: E) -> Self where
E: Encoder + Send + Sync + 'static,
Set the attribute encoder that this exporter will use.
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,
pub fn with_formatter<T>(self, formatter: T) -> Self where
T: Fn(ExportBatch) -> Result<String> + Send + Sync + 'static,
Set a formatter for serializing export batch data
Build a new push controller, returning errors if they arise.