pub struct TraceSampling {
pub dropped_trace: bool,
pub priority: Option<i32>,
pub decision_maker: Option<MetaString>,
pub otlp_sampling_rate: Option<MetaString>,
}Expand description
Trace-level sampling metadata.
This struct stores sampling-related metadata that applies to the entire trace, typically set by the trace sampler and consumed by the encoder.
Fields§
§dropped_trace: boolWhether or not the trace was dropped during sampling.
priority: Option<i32>The sampling priority assigned to this trace.
Common values include:
2: Manual keep (user-requested)1: Auto keep (sampled in)0: Auto drop (sampled out)-1: Manual drop (user-requested drop)
decision_maker: Option<MetaString>The decision maker identifier indicating which sampler made the sampling decision.
Common values include:
-9: Probabilistic sampler-4: Errors samplerNone: No decision maker set
otlp_sampling_rate: Option<MetaString>The OTLP sampling rate applied to this trace, formatted as a string (e.g., “0.25”).
This corresponds to the _dd.otlp_sr tag and represents the effective sampling rate
from the OTLP ingest path.
Implementations§
Trait Implementations§
Source§impl Clone for TraceSampling
impl Clone for TraceSampling
Source§fn clone(&self) -> TraceSampling
fn clone(&self) -> TraceSampling
Returns a duplicate 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 TraceSampling
impl Debug for TraceSampling
Source§impl PartialEq for TraceSampling
impl PartialEq for TraceSampling
impl StructuralPartialEq for TraceSampling
Auto Trait Implementations§
impl Freeze for TraceSampling
impl RefUnwindSafe for TraceSampling
impl Send for TraceSampling
impl Sync for TraceSampling
impl Unpin for TraceSampling
impl UnwindSafe for TraceSampling
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: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::RequestSource§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> Track for T
impl<T> Track for T
§fn track_allocations(self, token: AllocationGroupToken) -> Tracked<Self>
fn track_allocations(self, token: AllocationGroupToken) -> Tracked<Self>
Instruments this type by attaching the given allocation group token, returning a
Tracked wrapper. Read more§fn in_current_allocation_group(self) -> Tracked<Self>
fn in_current_allocation_group(self) -> Tracked<Self>
Instruments this type by attaching the current allocation group, returning a
Tracked wrapper. Read more