Skip to main content
Module

x/sentry/index.d.ts>getTraceData

The Official Sentry Deno SDK
Latest
function getTraceData
import { getTraceData } from "https://deno.land/x/sentry@8.30.0/index.d.ts";

Extracts trace propagation data from the current span or from the client's scope (via transaction or propagation context) and serializes it to sentry-trace and baggage values to strings. These values can be used to propagate a trace via our tracing Http headers or Html <meta> tags.

This function also applies some validation to the generated sentry-trace and baggage values to ensure that only valid strings are returned.

Returns

SerializedTraceData

an object with the tracing data values. The object keys are the name of the tracing key to be used as header or meta tag name.