ActiveTrace

data class ActiveTrace(val traceId: ByteString, val spanId: ByteString, val sampled: Boolean)

The distributed-trace context active on the current call.

When an app runs tracing, LogCapture consults a TraceContextProvider per event: a sampled trace's traceId/spanId are stamped onto the captured LogRecord so logs line up with spans. Byte sizes match OTLP / SpanRecord: 16-byte trace id, 8-byte span id.

Constructors

Link copied to clipboard
constructor(traceId: ByteString, spanId: ByteString, sampled: Boolean)

Properties

Link copied to clipboard

Whether the trace's sampler kept this trace.

Link copied to clipboard
val spanId: ByteString

8-byte (64-bit) span id.

Link copied to clipboard
val traceId: ByteString

16-byte (128-bit) trace id.