pub struct SamplingResult {
pub decision: SamplingDecision,
pub attributes: Vec<KeyValue>,
pub trace_state: TraceState,
}
Available on crate feature
trace
only.Expand description
The result of sampling logic for a given Span
.
Fields§
§decision: SamplingDecision
SamplingDecision
reached by this result
attributes: Vec<KeyValue>
Extra attributes added by this result
trace_state: TraceState
Trace state from parent context, might be modified by sampler
Trait Implementations§
Source§impl Clone for SamplingResult
impl Clone for SamplingResult
Source§fn clone(&self) -> SamplingResult
fn clone(&self) -> SamplingResult
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SamplingResult
impl Debug for SamplingResult
Source§impl PartialEq for SamplingResult
impl PartialEq for SamplingResult
impl StructuralPartialEq for SamplingResult
Auto Trait Implementations§
impl Freeze for SamplingResult
impl RefUnwindSafe for SamplingResult
impl Send for SamplingResult
impl Sync for SamplingResult
impl Unpin for SamplingResult
impl UnwindSafe for SamplingResult
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> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Available on crate feature
trace
only.Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Available on crate feature
trace
only.