Enum opentelemetry_api::trace::SamplingDecision
source · [−]pub enum SamplingDecision {
Drop,
RecordOnly,
RecordAndSample,
}
Available on crate feature
trace
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
sourceimpl Clone for SamplingDecision
impl Clone for SamplingDecision
sourcefn clone(&self) -> SamplingDecision
fn clone(&self) -> SamplingDecision
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 more
sourceimpl Debug for SamplingDecision
impl Debug for SamplingDecision
sourceimpl PartialEq<SamplingDecision> for SamplingDecision
impl PartialEq<SamplingDecision> for SamplingDecision
sourcefn eq(&self, other: &SamplingDecision) -> bool
fn eq(&self, other: &SamplingDecision) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl Eq for SamplingDecision
impl StructuralEq for SamplingDecision
impl StructuralPartialEq for SamplingDecision
Auto Trait Implementations
impl RefUnwindSafe for SamplingDecision
impl Send for SamplingDecision
impl Sync for SamplingDecision
impl Unpin for SamplingDecision
impl UnwindSafe for SamplingDecision
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
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.