Struct opentelemetry::sdk::export::metrics::stdout::StdoutExporterBuilder [−][src]
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]
W: Write + Debug + Send + Sync + 'static,
S: Fn(PushControllerWorker) -> SO,
I: Fn(Duration) -> IS,
IS: Stream<Item = ISI> + Send + 'static,
pub fn with_writer<W2: Write>(
self,
writer: W2
) -> StdoutExporterBuilder<W2, S, I>
[src]
self,
writer: W2
) -> StdoutExporterBuilder<W2, S, I>
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]
E: Encoder + Send + Sync + 'static,
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]
T: Fn(ExportBatch) -> Result<String> + Send + Sync + 'static,
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
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,