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
The decision about whether or not to sample.
attributes: Vec<KeyValue>
Extra attributes to be added to the span by the sampler
trace_state: TraceState
Trace state from parent context, may be modified by samplers.
Trait Implementations§
source§impl Clone for SamplingResult
impl Clone for SamplingResult
source§fn clone(&self) -> SamplingResult
fn clone(&self) -> SamplingResult
Returns a copy 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 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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)