ReadonlyisReturns the current name of the page
Optional ReadonlyparentProvides access to the parent context of the current context.
The ID of the Span. It is globally unique with practically sufficient probability by being made as 8 randomly generated bytes, encoded as a 16 lowercase hex characters corresponding to 64 bits. If you update this value, it will only update for the current context, not the parent context.
OptionaltraceTrace flags to propagate.
It is represented as 1 byte (bitmap). Bit to represent whether trace is sampled or not. When set, the least significant bit documents that the caller may have recorded trace data. A caller who does not record trace data out-of-band leaves this flag unset.
see eW3CTraceFlags for valid flag values.
The current ID of the trace that this span belongs to. It is worldwide unique with practically sufficient probability by being made as 16 randomly generated bytes, encoded as a 32 lowercase hex characters corresponding to 128 bits.
ReadonlytraceReturns the current trace state which will be used to propgate context across different services. Updating (adding / removing keys) of the trace state will modify the current context.IOTelTraceState
Returns the unique identifier for a trace. All requests / spans from the same trace share the same traceId. Must be read from incoming headers or generated according to the W3C TraceContext specification, in a hex representation of 16-byte array. A.k.a. trace-id, TraceID or Distributed TraceID
Self-generated 8-bytes identifier of the incoming request. Must be a hex representation of 8-byte array. Also know as the parentId, used to link requests together https://www.w3.org/TR/trace-context/#parent-id
The spanId to set
Set the unique identifier for a trace. All requests / spans from the same trace share the same traceId. Must be conform to the W3C TraceContext specification, in a hex representation of 16-byte array. A.k.a. trace-id, TraceID or Distributed TraceID https://www.w3.org/TR/trace-context/#trace-id
The traceId to set
Returns true if the current context was initialized (propagated) from a remote parent.