SpanFlags
in package
SpanFlags represents constants used to interpret the Span.flags field, which is protobuf 'fixed32' type and is to be used as bit-fields. Each non-zero value defined in this enum is a bit-mask. To extract the bit-field, for example, use an expression like: (span.flags & SPAN_FLAGS_TRACE_FLAGS_MASK) See https://www.w3.org/TR/trace-context-2/#trace-flags for the flag definitions.
Note that Span flags were introduced in version 1.1 of the OpenTelemetry protocol. Older Span producers do not set this field, consequently consumers should not rely on the absence of a particular flag bit to indicate the presence of a particular feature.
Protobuf type opentelemetry.proto.trace.v1.SpanFlags
Table of Contents
Constants
- SPAN_FLAGS_CONTEXT_HAS_IS_REMOTE_MASK = 256
- Bits 8 and 9 are used to indicate that the parent span or link span is remote.
- SPAN_FLAGS_CONTEXT_IS_REMOTE_MASK = 512
- Generated from protobuf enum <code>SPAN_FLAGS_CONTEXT_IS_REMOTE_MASK = 512;</code>
- SPAN_FLAGS_DO_NOT_USE = 0
- The zero value for the enum. Should not be used for comparisons.
- SPAN_FLAGS_TRACE_FLAGS_MASK = 255
- Bits 0-7 are used for trace flags.
Properties
- $valueToName : mixed
Methods
Constants
SPAN_FLAGS_CONTEXT_HAS_IS_REMOTE_MASK
Bits 8 and 9 are used to indicate that the parent span or link span is remote.
public
mixed
SPAN_FLAGS_CONTEXT_HAS_IS_REMOTE_MASK
= 256
Bit 8 (HAS_IS_REMOTE
) indicates whether the value is known.
Bit 9 (IS_REMOTE
) indicates whether the span or link is remote.
Generated from protobuf enum SPAN_FLAGS_CONTEXT_HAS_IS_REMOTE_MASK = 256;
SPAN_FLAGS_CONTEXT_IS_REMOTE_MASK
Generated from protobuf enum <code>SPAN_FLAGS_CONTEXT_IS_REMOTE_MASK = 512;</code>
public
mixed
SPAN_FLAGS_CONTEXT_IS_REMOTE_MASK
= 512
SPAN_FLAGS_DO_NOT_USE
The zero value for the enum. Should not be used for comparisons.
public
mixed
SPAN_FLAGS_DO_NOT_USE
= 0
Instead use bitwise "and" with the appropriate mask as shown above.
Generated from protobuf enum SPAN_FLAGS_DO_NOT_USE = 0;
SPAN_FLAGS_TRACE_FLAGS_MASK
Bits 0-7 are used for trace flags.
public
mixed
SPAN_FLAGS_TRACE_FLAGS_MASK
= 255
Generated from protobuf enum SPAN_FLAGS_TRACE_FLAGS_MASK = 255;
Properties
$valueToName
private
static mixed
$valueToName
= [self::SPAN_FLAGS_DO_NOT_USE => 'SPAN_FLAGS_DO_NOT_USE', self::SPAN_FLAGS_TRACE_FLAGS_MASK => 'SPAN_FLAGS_TRACE_FLAGS_MASK', self::SPAN_FLAGS_CONTEXT_HAS_IS_REMOTE_MASK => 'SPAN_FLAGS_CONTEXT_HAS_IS_REMOTE_MASK', self::SPAN_FLAGS_CONTEXT_IS_REMOTE_MASK => 'SPAN_FLAGS_CONTEXT_IS_REMOTE_MASK']
Methods
name()
public
static name(mixed $value) : mixed
Parameters
- $value : mixed
value()
public
static value(mixed $name) : mixed
Parameters
- $name : mixed