pub struct TieredMetadataPolicy { /* private fields */ }Expand description
Policy used by a tiered metadata sink.
Implementations§
Source§impl TieredMetadataPolicy
impl TieredMetadataPolicy
Sourcepub const fn control_only() -> Self
pub const fn control_only() -> Self
Record control facts only.
Sourcepub const fn record_data() -> Self
pub const fn record_data() -> Self
Record every data-tier fact while still dropping high-cost data facts.
Sourcepub const fn sample_data_every(sample_rate: NonZeroUsize) -> Self
pub const fn sample_data_every(sample_rate: NonZeroUsize) -> Self
Record one data-tier fact every sample_rate observations.
Sourcepub const fn with_high_cost_data(self) -> Self
pub const fn with_high_cost_data(self) -> Self
Allow high-cost data-tier facts to pass through.
Trait Implementations§
Source§impl Clone for TieredMetadataPolicy
impl Clone for TieredMetadataPolicy
Source§fn clone(&self) -> TieredMetadataPolicy
fn clone(&self) -> TieredMetadataPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TieredMetadataPolicy
impl Debug for TieredMetadataPolicy
Source§impl Default for TieredMetadataPolicy
impl Default for TieredMetadataPolicy
Source§impl PartialEq for TieredMetadataPolicy
impl PartialEq for TieredMetadataPolicy
Source§fn eq(&self, other: &TieredMetadataPolicy) -> bool
fn eq(&self, other: &TieredMetadataPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for TieredMetadataPolicy
impl Eq for TieredMetadataPolicy
impl StructuralPartialEq for TieredMetadataPolicy
Auto Trait Implementations§
impl Freeze for TieredMetadataPolicy
impl RefUnwindSafe for TieredMetadataPolicy
impl Send for TieredMetadataPolicy
impl Sync for TieredMetadataPolicy
impl Unpin for TieredMetadataPolicy
impl UnsafeUnpin for TieredMetadataPolicy
impl UnwindSafe for TieredMetadataPolicy
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§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, _span: NoopSpan) -> Self
fn instrument(self, _span: NoopSpan) -> Self
Instruments this future with a span (no-op when disabled).
Source§fn in_current_span(self) -> Self
fn in_current_span(self) -> Self
Instruments this future with the current span (no-op when disabled).