Struct opentelemetry::sdk::trace::SamplingResult
source · [−]pub struct SamplingResult {
pub decision: SamplingDecision,
pub attributes: Vec<KeyValue>,
pub trace_state: TraceState,
}
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
sourceimpl Clone for SamplingResult
impl Clone for SamplingResult
sourcefn clone(&self) -> SamplingResult
fn clone(&self) -> SamplingResult
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for SamplingResult
impl Debug for SamplingResult
sourceimpl PartialEq<SamplingResult> for SamplingResult
impl PartialEq<SamplingResult> for SamplingResult
sourcefn eq(&self, other: &SamplingResult) -> bool
fn eq(&self, other: &SamplingResult) -> bool
impl StructuralPartialEq for SamplingResult
Auto Trait Implementations
impl RefUnwindSafe for SamplingResult
impl Send for SamplingResult
impl Sync for SamplingResult
impl Unpin for SamplingResult
impl UnwindSafe for SamplingResult
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more