pub struct MetricsClientConfig<'a, A> {
pub prefix: &'a str,
pub host: A,
pub default_tags: BTreeMap<String, String>,
pub sample_rate: f32,
pub aggregate: bool,
pub allow_high_cardinality_tags: bool,
}
Expand description
Client configuration used for initialization of MetricsClient
.
Fields§
§prefix: &'a str
Prefix which is appended to all metric names.
host: A
Host of the metrics upstream.
Tags that are added to all metrics.
sample_rate: f32
Sample rate for metrics, between 0.0 (= 0%) and 1.0 (= 100%)
aggregate: bool
If metrics should be batched or send immediately upstream.
If high cardinality tags should be removed from metrics.
Trait Implementations§
Auto Trait Implementations§
impl<'a, A> Freeze for MetricsClientConfig<'a, A>where
A: Freeze,
impl<'a, A> RefUnwindSafe for MetricsClientConfig<'a, A>where
A: RefUnwindSafe,
impl<'a, A> Send for MetricsClientConfig<'a, A>where
A: Send,
impl<'a, A> Sync for MetricsClientConfig<'a, A>where
A: Sync,
impl<'a, A> Unpin for MetricsClientConfig<'a, A>where
A: Unpin,
impl<'a, A> UnwindSafe for MetricsClientConfig<'a, A>where
A: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more