Skip to main content
Module

x/tracecontext/mod.ts>traceparent.sample

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

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

[!NOTE] You may wish to .child() before you sample, as is required by the spec