Struct foundations::telemetry::settings::MetricsSettings
source · pub struct MetricsSettings {
pub service_name_format: ServiceNameFormat,
pub report_optional: bool,
}
Available on crate feature
metrics
and (crate features logging
or metrics
or telemetry
or tracing
) only.Expand description
Metrics settings.
Fields§
§service_name_format: ServiceNameFormat
How the metrics service identifier defined in ServiceInfo
is used
for this service.
report_optional: bool
Whether to report optional metrics in the telemetry server.
Trait Implementations§
source§impl Clone for MetricsSettings
impl Clone for MetricsSettings
source§fn clone(&self) -> MetricsSettings
fn clone(&self) -> MetricsSettings
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for MetricsSettings
impl Debug for MetricsSettings
source§impl Default for MetricsSettings
impl Default for MetricsSettings
source§impl<'de> Deserialize<'de> for MetricsSettingswhere
MetricsSettings: Default,
impl<'de> Deserialize<'de> for MetricsSettingswhere
MetricsSettings: Default,
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for MetricsSettings
impl Serialize for MetricsSettings
Auto Trait Implementations§
impl Freeze for MetricsSettings
impl RefUnwindSafe for MetricsSettings
impl Send for MetricsSettings
impl Sync for MetricsSettings
impl Unpin for MetricsSettings
impl UnwindSafe for MetricsSettings
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