flags property

  1. @TagNumber.new(16)
int get flags

Flags, a bit field. 8 least significant bits are the trace flags as defined in W3C Trace Context specification. Readers MUST not assume that 24 most significant bits will be zero. To read the 8-bit W3C trace flag, use flags & SPAN_FLAGS_TRACE_FLAGS_MASK.

When creating span messages, if the message is logically forwarded from another source with an equivalent flags fields (i.e., usually another OTLP span message), the field SHOULD be copied as-is. If creating from a source that does not have an equivalent flags field (such as a runtime representation of an OpenTelemetry span), the high 24 bits MUST be set to zero.

Optional.

See https://www.w3.org/TR/trace-context-2/#trace-flags for the flag definitions.

Implementation

@$pb.TagNumber(16)
$core.int get flags => $_getIZ(15);
  1. @TagNumber.new(16)
set flags (int v)

Implementation

@$pb.TagNumber(16)
set flags($core.int v) {
  $_setUnsignedInt32(15, v);
}