Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/w3_trace_state/trace_state.ts>getEmptyTraceState

Implementation of the W3 Trace Context recommendation for Trace State
Latest
function getEmptyTraceState
import { getEmptyTraceState } from "https://deno.land/x/w3_trace_state@v1.1.0/trace_state.ts";

Generates an empty TraceState object.

Mostly this can be used if your code is the originating source of a tracestate header. Otherwise, getTraceStateFromHeader is probably what you want.