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

x/w3_trace_state/mod.ts

Implementation of the W3 Trace Context recommendation for Trace State
Latest
import * as w3TraceState from "https://deno.land/x/w3_trace_state@v1.1.0/mod.ts";

Functions

Adds a value to the TraceState. The key and value must be valid trace key/value pairs and an error will be thrown if they are not.

Removes a key from the TraceState. The key must be a valid trace key and an error will be thrown if it is not

Generates an empty TraceState object.

Generates an appropriately formatted TraceState header from a TraceState object.

Converts an appropriately formatted TraceState header into a TraceState object.

Extract a value from the TraceState. The key must be a valid trace key and an error will be thrown if it is not

Updates a value in the TraceState. The key and value must be valid trace key/value pairs and an error will be thrown if they are not.

Type Aliases

This type should be treated as if it is opaque and should only be interacted with via the functions in this module.