pub struct MeasurementsConfig {
pub builtin_measurements: Vec<BuiltinMeasurementKey>,
pub max_custom_measurements: usize,
}
Expand description
Configuration for measurements normalization.
Fields§
§builtin_measurements: Vec<BuiltinMeasurementKey>
A list of measurements that are built-in and are not subject to custom measurement limits.
max_custom_measurements: usize
The maximum number of measurements allowed per event that are not known measurements.
Implementations§
source§impl MeasurementsConfig
impl MeasurementsConfig
sourcepub const MEASUREMENT_MRI_OVERHEAD: usize = 29usize
pub const MEASUREMENT_MRI_OVERHEAD: usize = 29usize
The length of a full measurement MRI, minus the name and the unit. This length is the same for every measurement-mri.
Trait Implementations§
source§impl Clone for MeasurementsConfig
impl Clone for MeasurementsConfig
source§fn clone(&self) -> MeasurementsConfig
fn clone(&self) -> MeasurementsConfig
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 MeasurementsConfig
impl Debug for MeasurementsConfig
source§impl Default for MeasurementsConfig
impl Default for MeasurementsConfig
source§fn default() -> MeasurementsConfig
fn default() -> MeasurementsConfig
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for MeasurementsConfigwhere
MeasurementsConfig: Default,
impl<'de> Deserialize<'de> for MeasurementsConfigwhere
MeasurementsConfig: 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 Hash for MeasurementsConfig
impl Hash for MeasurementsConfig
source§impl PartialEq for MeasurementsConfig
impl PartialEq for MeasurementsConfig
source§impl Serialize for MeasurementsConfig
impl Serialize for MeasurementsConfig
impl StructuralPartialEq for MeasurementsConfig
Auto Trait Implementations§
impl Freeze for MeasurementsConfig
impl RefUnwindSafe for MeasurementsConfig
impl Send for MeasurementsConfig
impl Sync for MeasurementsConfig
impl Unpin for MeasurementsConfig
impl UnwindSafe for MeasurementsConfig
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more