pub struct MetricsConfig {
pub prefix: String,
pub host: String,
pub buffer_size: Option<usize>,
pub default_tags: BTreeMap<String, String>,
}Expand description
Client configuration used for initialization of the metrics sub-system.
Fields§
§prefix: StringPrefix which is appended to all metric names.
host: StringHost of the metrics upstream.
buffer_size: Option<usize>The buffer size to use for the socket.
Tags that are added to all metrics.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MetricsConfig
impl RefUnwindSafe for MetricsConfig
impl Send for MetricsConfig
impl Sync for MetricsConfig
impl Unpin for MetricsConfig
impl UnwindSafe for MetricsConfig
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