Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/sentry/index.d.ts>getTraceMetaTags

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

Returns a string of meta tags that represent the current trace data.

You can use this to propagate a trace from your server-side rendered Html to the browser. This function returns up to two meta tags, sentry-trace and baggage, depending on the current trace data state.

Examples

Usage example:

function renderHtml() {
  return `
    <head>
      ${getTraceMetaTags()}
    </head>
  `;
}

Returns

string