Skip to content

Commit

Permalink
Split isremote into two masks
Browse files Browse the repository at this point in the history
  • Loading branch information
estolfo committed Jan 11, 2024
1 parent 8a2733a commit 06fce08
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions opentelemetry/proto/trace/v1/trace.proto
Original file line number Diff line number Diff line change
Expand Up @@ -344,9 +344,10 @@ enum SpanFlags {
SPAN_FLAGS_TRACE_FLAGS_MASK = 0x000000FF;

// Bits 8 and 9 are used to indicate that the parent span or link span is remote.
// Bit 8 indicates whether the value is known. Bit 9 indicates whether the span
// or link is remote.
SPAN_FLAGS_CONTEXT_IS_REMOTE_MASK = 0x00000300;
// Bit 8 (`HAS_IS_REMOTE`) indicates whether the value is known.
// Bit 9 (`IS_REMOTE`) indicates whether the span or link is remote.
SPAN_FLAGS_CONTEXT_HAS_IS_REMOTE_MASK = 0x00000100;
SPAN_FLAGS_CONTEXT_IS_REMOTE_MASK = 0x00000200;

// Bits 10-31 are reserved for future use.
}

0 comments on commit 06fce08

Please sign in to comment.