Struct opentelemetry::trace::TraceFlags [−][src]
pub struct TraceFlags(_);
trace
only.Expand description
Flags that can be set on a SpanContext
.
The current version of the specification only supports a single flag called sampled
.
See the W3C TraceContext specification’s trace-flags section for more details.
Implementations
Trace flags with the sampled
flag set to 1
.
Spans that are not sampled will be ignored by most tracing tools.
See the sampled
section of the W3C TraceContext specification for details.
Returns true
if the sampled
flag is set
Returns copy of the current flags with the sampled
flag set.
Trait Implementations
Returns the “default value” for a type. Read more
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for TraceFlags
impl Send for TraceFlags
impl Sync for TraceFlags
impl Unpin for TraceFlags
impl UnwindSafe for TraceFlags
Blanket Implementations
Mutably borrows from an owned value. Read more