pub struct Contexts {
pub cached_contexts_limit: usize,
pub cached_tagsets_limit: usize,
pub string_interner_size: u64,
pub string_interner_size_bytes: Option<u64>,
pub allow_context_heap_allocs: bool,
pub minimum_sample_rate: f64,
}Expand description
Context cache sizing and sample-rate floor.
Fields§
§cached_contexts_limit: usizeMaximum number of metric contexts held in the cache. (not in Datadog Agent config schema)
Maximum number of tagsets held in the cache. (not in Datadog Agent config schema)
string_interner_size: u64Number of entries the context string interner holds.
string_interner_size_bytes: Option<u64>Byte budget for the context string interner, overriding the entry count when set. (not in Datadog Agent config schema)
allow_context_heap_allocs: boolWhether contexts may be heap-allocated when the interner is full. (not in Datadog Agent config schema)
minimum_sample_rate: f64Lowest sample rate accepted before a metric is rejected. (not in Datadog Agent config schema)
Trait Implementations§
impl StructuralPartialEq for Contexts
Auto Trait Implementations§
impl Freeze for Contexts
impl RefUnwindSafe for Contexts
impl Send for Contexts
impl Sync for Contexts
impl Unpin for Contexts
impl UnwindSafe for Contexts
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