method ISpan.spanContext
Since 0.2.0
ISpan.spanContext(): SpanContext

Returns the span's context (traceId, spanId, traceFlags).

Used by the middleware to inject the span's own traceparent into the response header so downstream hops see this server span as the parent.

Return Type

Usage

import { type ISpan } from "common/src/index.ts";