function parseTraceparentToContext
Since 0.2.0
parseTraceparentToContext(header: string | null): TelemetryContext

Parses a W3C traceparent value.

Parameters

header: string | null

Header value, or null when it is absent

Return Type

The parsed context, or an opaque context when invalid

Usage

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