[−][src]Struct nakadion::instrumentation::DriverBuilder
A Builder for a TelemetryDriver
Fields
name: Option<String>
An optional name that will also group the metrics under the name
Default is None
title: Option<String>
A title to be added when a Snapshot
with descriptions is created
Default is None
description: Option<String>
A description to be added when a Snapshot
with descriptions is created
Default is None
processing_strategy: ProcessingStrategy
Sets the ProcessingStrategy
dropped. The default is to drop observations older
than 30 seconds but not delta observations.
with_driver_metrics: bool
If true metrics for the TelemetryDriver
will be added to the
generated Snapshot
Default is true
Implementations
impl DriverBuilder
[src]
pub fn new<T>(name: T) -> DriverBuilder where
T: Into<String>,
[src]
T: Into<String>,
pub fn set_name<T>(self, name: T) -> DriverBuilder where
T: Into<String>,
[src]
T: Into<String>,
pub fn set_title<T>(self, title: T) -> DriverBuilder where
T: Into<String>,
[src]
T: Into<String>,
pub fn set_description<T>(self, description: T) -> DriverBuilder where
T: Into<String>,
[src]
T: Into<String>,
pub fn set_processing_strategy(
self,
processing_strategy: ProcessingStrategy
) -> DriverBuilder
[src]
self,
processing_strategy: ProcessingStrategy
) -> DriverBuilder
pub fn set_driver_metrics(self, enabled: bool) -> DriverBuilder
[src]
pub fn build(self) -> TelemetryDriver
[src]
Trait Implementations
impl Default for DriverBuilder
[src]
pub fn default() -> DriverBuilder
[src]
Auto Trait Implementations
impl RefUnwindSafe for DriverBuilder
[src]
impl Send for DriverBuilder
[src]
impl Sync for DriverBuilder
[src]
impl Unpin for DriverBuilder
[src]
impl UnwindSafe for DriverBuilder
[src]
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> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
[src]
T: Send + Sync + UnwindSafe + ?Sized,
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>,