Enum SamplingDecision
pub enum SamplingDecision {
Drop,
RecordOnly,
RecordAndSample,
}
Available on crate feature
opentelemetry
only.Expand description
Decision about whether or not to sample
Variants§
Drop
Span will not be recorded and all events and attributes will be dropped.
RecordOnly
Span data wil be recorded, but not exported.
RecordAndSample
Span data will be recorded and exported.
Trait Implementations§
§impl Clone for SamplingDecision
impl Clone for SamplingDecision
§fn clone(&self) -> SamplingDecision
fn clone(&self) -> SamplingDecision
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 more§impl Debug for SamplingDecision
impl Debug for SamplingDecision
§impl PartialEq for SamplingDecision
impl PartialEq for SamplingDecision
impl Eq for SamplingDecision
impl StructuralPartialEq for SamplingDecision
Auto Trait Implementations§
impl Freeze for SamplingDecision
impl RefUnwindSafe for SamplingDecision
impl Send for SamplingDecision
impl Sync for SamplingDecision
impl Unpin for SamplingDecision
impl UnwindSafe for SamplingDecision
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.