Skip to main content
Module

x/tracecontext/mod.ts

Blazing fast w3c Trace Contexts for any JS runtime
Latest
import * as tracecontext from "https://deno.land/x/tracecontext@v0.2.0/mod.ts";

Namespaces

A simple implementation of the W3C Trace Context specification level 2. @see https://www.w3.org/TR/trace-context-2/

Variables

The bitmask representing a random traceparent

The bitmask represenging a sampled traceparent

Functions

Returns if the traceparent is currently random.

Returns if the traceparent is currently being sampled.

Makes a new Traceparent which one can then toString() to get the value.

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

Modifies the flags of a Traceparent to sample the traceparent flag bit.

Modifies the flags of a Traceparent to unsample the traceparent flag bit.

Create a new tracestate instance.

Parse a tracestate header string into a tracestate instance.

Interfaces

The Traceparent type represents a W3C Trace Context traceparent header.