All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.build.cjs.utils.meta.js.map Maven / Gradle / Ivy

There is a newer version: 8.39.0
Show newest version
{"version":3,"file":"meta.js","sources":["../../../src/utils/meta.ts"],"sourcesContent":["import type { Client, Scope, Span } from '@sentry/types';\nimport { getTraceData } from './traceData';\n\n/**\n * Returns a string of meta tags that represent the current trace data.\n *\n * You can use this to propagate a trace from your server-side rendered Html to the browser.\n * This function returns up to two meta tags, `sentry-trace` and `baggage`, depending on the\n * current trace data state.\n *\n * @example\n * Usage example:\n *\n * ```js\n * function renderHtml() {\n *   return `\n *     \n *       ${getTraceMetaTags()}\n *     \n *   `;\n * }\n * ```\n *\n */\nexport function getTraceMetaTags(span?: Span, scope?: Scope, client?: Client): string {\n  return Object.entries(getTraceData(span, scope, client))\n    .map(([key, value]) => ``)\n    .join('\\n');\n}\n"],"names":["getTraceData"],"mappings":";;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACO,SAAS,gBAAgB,CAAC,IAAI,EAAS,KAAK,EAAU,MAAM,EAAmB;AACtF,EAAE,OAAO,MAAM,CAAC,OAAO,CAACA,sBAAY,CAAC,IAAI,EAAE,KAAK,EAAE,MAAM,CAAC,CAAA;AACzD,KAAK,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,KAAK,CAAC,YAAY,EAAE,GAAG,CAAC,WAAW,EAAE,KAAK,CAAC,GAAG,CAAC,CAAA;AACrE,KAAK,IAAI,CAAC,IAAI,CAAC,CAAA;AACf;;;;"}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy