|
ORE Studio 0.0.4
|
Immutable context for trace propagation across boundaries. More...
#include <span_context.hpp>

Public Member Functions | |
| bool | is_valid () const |
| Checks if the context is valid (both trace_id and span_id valid). | |
| bool | is_sampled () const |
| Checks if this trace is marked as sampled. | |
| auto | operator<=> (const span_context &) const =default |
| Default comparison operator. | |
Public Attributes | |
| trace_id | trace |
| The trace identifier. All spans in a trace share this ID. | |
| span_id | span |
| The span identifier. Unique within a trace. | |
| std::uint8_t | trace_flags = 0x01 |
| W3C trace flags (8-bit). Bit 0 indicates if the trace is sampled. | |
Immutable context for trace propagation across boundaries.
A span_context contains the identifying information for a span and is designed to be propagated across process, service, and network boundaries. This is the core data structure used for distributed tracing context propagation, compatible with W3C Trace Context.
| std::uint8_t trace_flags = 0x01 |
W3C trace flags (8-bit). Bit 0 indicates if the trace is sampled.
0x01 = sampled (the trace should be recorded) 0x00 = not sampled