Skip to main content
Module

x/tracecontext/traceparent.ts>parse

Blazing fast w3c Trace Contexts for any JS runtime
Latest
function parse
import { parse } from "https://deno.land/x/tracecontext@v0.2.0/traceparent.ts";

Allows you to parse an incoming value into the areas, easy for a server to continue the trace chain.

Examples

Example 1

const parent = parse(req.headers.traceparent); // 00-aa3ee2e08eb134a292fb799969f2de62-62994ea4677bc463-00
const child = parent.child();
String(child); // 00-aa3ee2e08eb134a292fb799969f2de62-5402ac6f6874d505-01

Parameters

value: string