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AYjnD,aACdinD,EAAY3kC,aAAanf,KAAKo5B,GAAiC,CAAEx7B,OAAQ,MAG3EkmD,EAAY/kC,eAAiB,GAC7B+kC,EAAY55B,iBAAmBA,GAE/BluB,GAAmB8nD,GAInB,IAAK,MAAM7pD,KAAS8oB,aAAaqhC,MAC/B,IACET,GAAY1pD,EACd,CAAE,MAAOkU,GAAQ,CAInB4U,aAAaqhC,MAAQ,EAIvB,CA2GAC","sources":["webpack://lange/./snippets/sentry/visibility.ts","webpack://lange/webpack/bootstrap","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/utils/worldwide.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/carrier.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/utils/debug-logger.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/utils/is.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/utils/object.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/utils/randomSafeContext.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/utils/misc.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/utils/time.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/session.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/utils/merge.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/utils/propagationContext.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/utils/normalizationHints.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/utils/stacktrace.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/utils/normalize.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/utils/string.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/scope.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/tracing/constants.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/utils/chain-and-copy-promiselike.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/asyncContext/stackStrategy.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/defaultScopes.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/asyncContext/index.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/currentScopes.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/constants.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/utils/safeCallback.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/utils/syncpromise.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/eventProcessors.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/utils/debug-ids.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/utils/dsn.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/utils/envelope.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/utils/errorSpanAttribution.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/conventions/dist/attributes.mjs","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/utils/baggage.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/attributes.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/types/spanStatus.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/utils/weakRef.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/tracing/utils.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/utils/spanOnScope.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/utils/spanUtils.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/tracing/spanstatus.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/tracing/sentryNonRecordingSpan.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/tracing/dynamicSamplingContext.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/semanticAttributes.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/utils/scopeData.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/utils/prepareEvent.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/exports.ts","webpack://lange/./snippets/sentry/bfcache.ts","webpack://lange/./snippets/sentry/page.ts","webpack://lange/./snippets/sentry/server-timing.ts","webpack://lange/./snippets/sentry/shopify-context.ts","webpack://lange/./snippets/sentry/test.ts","webpack://lange/./snippets/sentry/top-frame.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/utils/isBrowser.ts","webpack://lange/./snippets/sentry/webdriver.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/utils/supports.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/instrument/handlers.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/instrument/fetch.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/integration.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/breadcrumbs.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/utils/breadcrumb-log-level.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/utils/url.ts","webpack://lange/../node_modules/@sentry/browser-utils/node_modules/@sentry/core/src/utils/worldwide.ts","webpack://lange/../node_modules/@sentry/browser-utils/node_modules/@sentry/core/src/carrier.ts","webpack://lange/../node_modules/@sentry/browser-utils/node_modules/@sentry/core/src/instrument/handlers.ts","webpack://lange/../node_modules/@sentry/browser-utils/node_modules/@sentry/core/src/utils/object.ts","webpack://lange/../node_modules/@sentry/browser-utils/node_modules/@sentry/core/src/utils/randomSafeContext.ts","webpack://lange/../node_modules/@sentry/browser-utils/node_modules/@sentry/core/src/utils/misc.ts","webpack://lange/../node_modules/@sentry/browser-utils/src/types.ts","webpack://lange/../node_modules/@sentry/browser-utils/src/instrumentation/dom.ts","webpack://lange/../node_modules/@sentry/browser-utils/node_modules/@sentry/core/src/utils/time.ts","webpack://lange/../node_modules/@sentry/browser-utils/node_modules/@sentry/core/src/utils/is.ts","webpack://lange/../node_modules/@sentry/browser-utils/src/instrumentation/xhr.ts","webpack://lange/../node_modules/@sentry/browser-utils/src/instrumentation/history.ts","webpack://lange/../node_modules/@sentry/browser-utils/src/htmlTreeAsString.ts","webpack://lange/../node_modules/@sentry/browser-utils/src/getLocationHref.ts","webpack://lange/../node_modules/@sentry/browser/src/helpers.ts","webpack://lange/../node_modules/@sentry/browser/src/integrations/breadcrumbs.ts","webpack://lange/../node_modules/@sentry/browser-utils/src/component-name.ts","webpack://lange/../node_modules/@sentry/browser/src/integrations/browserapierrors.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/instrument/console.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/utils/severity.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/integrations/captureconsole.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/integrations/extraerrordata.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/integrations/console.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/integrations/eventFilters.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/utils/eventUtils.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/integrations/functiontostring.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/integrations/conversationId.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/integrations/dedupe.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/api.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/envelope.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/logs/envelope.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/logs/internal.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/metrics/envelope.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/metrics/internal.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/tracing/spans/beforeSendSpan.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/tracing/spans/envelope.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/tracing/spans/spanJsonToStreamedSpan.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/utils/timer.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/utils/promisebuffer.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/utils/should-ignore-span.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/utils/data-collection/resolveDataCollectionOptions.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/client.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/utils/warnAboutIgnoredTransactionOptions.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/tracing/spans/extractGenAiSpans.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/tracing/spans/hasSpanStreamingEnabled.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/utils/parseSampleRate.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/utils/transactionEvent.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/utils/clientreport.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/sdk.ts","webpack://lange/../node_modules/@sentry/browser-utils/node_modules/@sentry/core/src/session.ts","webpack://lange/../node_modules/@sentry/browser-utils/node_modules/@sentry/core/src/utils/merge.ts","webpack://lange/../node_modules/@sentry/browser-utils/node_modules/@sentry/core/src/scope.ts","webpack://lange/../node_modules/@sentry/browser-utils/node_modules/@sentry/core/src/utils/propagationContext.ts","webpack://lange/../node_modules/@sentry/browser-utils/node_modules/@sentry/core/src/utils/string.ts","webpack://lange/../node_modules/@sentry/browser-utils/node_modules/@sentry/core/src/tracing/constants.ts","webpack://lange/../node_modules/@sentry/browser-utils/node_modules/@sentry/core/src/utils/chain-and-copy-promiselike.ts","webpack://lange/../node_modules/@sentry/browser-utils/node_modules/@sentry/core/src/asyncContext/stackStrategy.ts","webpack://lange/../node_modules/@sentry/browser-utils/node_modules/@sentry/core/src/defaultScopes.ts","webpack://lange/../node_modules/@sentry/browser-utils/node_modules/@sentry/core/src/asyncContext/index.ts","webpack://lange/../node_modules/@sentry/browser-utils/node_modules/@sentry/core/src/currentScopes.ts","webpack://lange/../node_modules/@sentry/browser-utils/src/routing.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/utils/ipAddress.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/utils/eventbuilder.ts","webpack://lange/../node_modules/@sentry/browser/src/eventbuilder.ts","webpack://lange/../node_modules/@sentry/browser/src/client.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/utils/sdkMetadata.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/utils/env.ts","webpack://lange/../node_modules/@sentry/browser-utils/src/web-vitals/utils.ts","webpack://lange/../node_modules/@sentry/browser/src/integrations/browsersession.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/tracing/spans/captureSpan.ts","webpack://lange/../node_modules/@sentry/browser/src/integrations/culturecontext.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/instrument/globalError.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/instrument/globalUnhandledRejection.ts","webpack://lange/../node_modules/@sentry/browser/src/integrations/globalhandlers.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/utils/data-collection/filtering-snippets.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/utils/data-collection/filterKeyValueData.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/utils/data-collection/filterUrlQuery.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/utils/data-collection/filterQueryParams.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/utils/data-collection/filterCollectedUrl.ts","webpack://lange/../node_modules/@sentry/browser/src/integrations/httpcontext.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/utils/aggregate-errors.ts","webpack://lange/../node_modules/@sentry/browser/src/integrations/linkederrors.ts","webpack://lange/../node_modules/@sentry/browser/src/stack-parsers.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/utils/ratelimit.ts","webpack://lange/../node_modules/@sentry/browser/node_modules/@sentry/core/src/transports/base.ts","webpack://lange/../node_modules/@sentry/browser-utils/node_modules/@sentry/core/src/utils/supports.ts","webpack://lange/../node_modules/@sentry/browser-utils/src/getNativeImplementation.ts","webpack://lange/../node_modules/@sentry/browser/src/transports/fetch.ts","webpack://lange/../node_modules/@sentry/browser/src/normalizeStringifyValue.ts","webpack://lange/../node_modules/@sentry/browser-utils/src/is.ts","webpack://lange/../node_modules/@sentry/browser/src/utils/detectBrowserExtension.ts","webpack://lange/../node_modules/@sentry/browser/src/sdk.ts","webpack://lange/./snippets/sentry/breadcrumbs.ts","webpack://lange/./snippets/sentry/browser-automation-integration.ts","webpack://lange/./snippets/sentry/ddg-integration.ts","webpack://lange/./snippets/sentry/deny-urls.ts","webpack://lange/./snippets/sentry/gladly-integration.ts","webpack://lange/./snippets/sentry/ignore-errors.ts","webpack://lange/./snippets/sentry/injected-recursion-filter.ts","webpack://lange/./snippets/sentry/monkey-patch-integration.ts","webpack://lange/./snippets/sentry/paypal-integration.ts","webpack://lange/./snippets/sentry/redact-url-params-integration.ts","webpack://lange/./snippets/sentry/shopify-customer-privacy-integration.ts","webpack://lange/./snippets/sentry/shopify-shop-events-listener-integration.ts","webpack://lange/./snippets/sentry/shopify-wpm-integration.ts","webpack://lange/./snippets/sentry/stale-page-integration.ts","webpack://lange/./snippets/sentry/init.ts"],"sourcesContent":["/**\n * Logs each time the page is hidden or shown again, so the change shows up as a breadcrumb on any\n * error captured later. When a visitor switches away mid-request, the browser can slow or pause the\n * page, and an error that follows can look like a slow network when the page was in the background.\n * A hidden breadcrumb followed by a visible one tells those apart.\n */\nfunction onVisibilityChange(_event: DocumentEventMap['visibilitychange']) {\n  console.log('Page visibility changed', document.visibilityState);\n}\n\naddEventListener('visibilitychange', onVisibilityChange);\n","// The module cache\nlet __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tlet cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tlet module = __webpack_module_cache__[moduleId] = {\n\t\t// no module.id needed\n\t\t// no module.loaded needed\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId](module, module.exports, __webpack_require__);\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n","/**\n * NOTE: In order to avoid circular dependencies, if you add a function to this module and it needs to print something,\n * you must either a) use `console.log` rather than the `debug` singleton, or b) put your function elsewhere.\n *\n * Note: This file was originally called `global.ts`, but was changed to unblock users which might be doing\n * string replaces with bundlers like Vite for `global` (would break imports that rely on importing from utils/src/global).\n *\n * Why worldwide?\n *\n * Why not?\n */\n\n/* eslint-disable @typescript-eslint/no-explicit-any */\n\nimport type { Integration } from '../types/integration';\nimport type { Carrier } from '../carrier';\nimport type { SdkSource } from './env';\n\n/** Internal global with common properties and Sentry extensions  */\nexport type InternalGlobal = {\n  navigator?: { userAgent?: string; maxTouchPoints?: number };\n  console: Console;\n  PerformanceObserver?: any;\n  Sentry?: any;\n  onerror?: {\n    (event: object | string, source?: string, lineno?: number, colno?: number, error?: Error): any;\n    __SENTRY_INSTRUMENTED__?: true;\n  };\n  onunhandledrejection?: {\n    (event: unknown): boolean;\n    __SENTRY_INSTRUMENTED__?: true;\n  };\n  SENTRY_ENVIRONMENT?: string;\n  SENTRY_DSN?: string;\n  SENTRY_RELEASE?: {\n    id?: string;\n  };\n  SENTRY_SDK_SOURCE?: SdkSource;\n  /**\n   * Debug IDs are indirectly injected by Sentry CLI or bundler plugins to directly reference a particular source map\n   * for resolving of a source file. The injected code will place an entry into the record for each loaded bundle/JS\n   * file.\n   */\n  _sentryDebugIds?: Record<string, string>;\n  /**\n   * Native debug IDs implementation (e.g., from Vercel).\n   * This uses the same format as _sentryDebugIds but with a different global name.\n   * Keys are `error.stack` strings, values are debug IDs.\n   */\n  _debugIds?: Record<string, string>;\n  /**\n   * Raw module metadata that is injected by bundler plugins.\n   *\n   * Keys are `error.stack` strings, values are the metadata.\n   */\n  _sentryModuleMetadata?: Record<string, any>;\n  _sentryWrappedDepth?: number;\n  /**\n   * Bundler and runtime instrumentation detection.\n   */\n  __SENTRY_ORCHESTRION__?: {\n    /** Empty array signifies runtime hooked */\n    runtime?: string[];\n    /**\n     * The resolved `file:` URL of a transformed file for each runtime-injected\n     * module, keyed by module name (e.g. `@mastra/core`). Lets an integration\n     * anchor `createRequire` on the app's actual copy of a dependency without\n     * relying on `process.cwd()` or the CJS `require.cache` — the latter is\n     * always empty for ESM-loaded modules. Only the runtime `--import`/hook path\n     * populates this; the bundler path inlines modules and records none.\n     */\n    runtimeFiles?: Record<string, string>;\n    /**\n     * Module names recorded as each bundler-transformed module loads (the\n     * injected snippet calls `orchestrionModuleInjected`). The bundler plugin's\n     * entry banner ensures an empty `Set` at boot, so a defined set — even\n     * empty — signifies the plugin ran.\n     */\n    bundler?: Set<string>;\n    /**\n     * Channel-subscriber integration factories stored by the snippet the\n     * bundler transform splices into each instrumented module, keyed by module\n     * name. A factory shared by several packages (e.g. pg/pg-pool) appears\n     * under several keys; integration-name deduplication collapses them at\n     * setup. A bundler-only SDK (e.g. `@sentry/cloudflare`) reads these at\n     * `init()` and instantiates them.\n     */\n    integrations?: Map<string, () => Integration>;\n    /**\n     * Set once `registerDiagnosticsChannelInjection()` has run but could not\n     * install the runtime module hooks — most commonly because\n     * `@sentry/server-runtime-injection` was bundled into the app (which strips its vendored\n     * code transformer) or the Node runtime lacks the required module-hook API.\n     * Dedupes the one-time warning and short-circuits repeat calls.\n     */\n    runtimeUnavailable?: boolean;\n    /**\n     * Module namespaces stashed by build-time provider imports, keyed by module\n     * name (e.g. `@mastra/observability`). A bundler plugin can splice a static\n     * `import * as ns from '<pkg>'` into an integration and record `ns` here, so\n     * the integration can read a bundled peer dependency it cannot `createRequire`\n     * in a bundled runtime such as Cloudflare Workers.\n     */\n    providedModules?: Record<string, Record<string, unknown>>;\n  };\n} & Carrier;\n\n/** Get's the global object for the current JavaScript runtime */\nexport const GLOBAL_OBJ = globalThis as unknown as InternalGlobal;\n","import type { AsyncContextStack } from './asyncContext/stackStrategy';\nimport type { AsyncContextStrategy } from './asyncContext/types';\nimport type { Client } from './client';\nimport type { Scope } from './scope';\nimport type { SegmentSpanCaptureStrategy } from './tracing/segmentSpanCaptureStrategy';\nimport type { SerializedLog } from './types/log';\nimport type { SerializedMetric } from './types/metric';\nimport { SDK_VERSION } from './utils/version';\nimport { GLOBAL_OBJ } from './utils/worldwide';\n\n/**\n * An object that contains globally accessible properties and maintains a scope stack.\n * @hidden\n */\nexport interface Carrier {\n  __SENTRY__?: VersionedCarrier;\n}\n\ntype VersionedCarrier = {\n  version?: string;\n} & Record<Exclude<string, 'version'>, SentryCarrier>;\n\nexport interface SentryCarrier {\n  acs?: AsyncContextStrategy;\n  stack?: AsyncContextStack;\n\n  globalScope?: Scope;\n  defaultIsolationScope?: Scope;\n  defaultCurrentScope?: Scope;\n  loggerSettings?: { enabled: boolean };\n  /**\n   * A map of Sentry clients to their log buffers.\n   * This is used to store logs that are sent to Sentry.\n   */\n  clientToLogBufferMap?: WeakMap<Client, Array<SerializedLog>>;\n\n  /**\n   * A map of Sentry clients to their metric buffers.\n   * This is used to store metrics that are sent to Sentry.\n   */\n  clientToMetricBufferMap?: WeakMap<Client, Array<SerializedMetric>>;\n\n  /** Strategy for assembling segment spans into transactions; set by SDKs that defer capture. */\n  segmentSpanCaptureStrategy?: SegmentSpanCaptureStrategy;\n\n  /** Supplies trace context from a non-Sentry source (e.g. OpenTelemetry); set by `openTelemetryIntegration`. */\n  externalPropagationContextProvider?: () => { traceId: string; spanId: string } | undefined;\n\n  /** Overwrites TextEncoder used in `@sentry/core`, need for `react-native@0.73` and older */\n  encodePolyfill?: (input: string) => Uint8Array;\n  /** Overwrites TextDecoder used in `@sentry/core`, need for `react-native@0.73` and older */\n  decodePolyfill?: (input: Uint8Array) => string;\n}\n\n/**\n * Returns the global shim registry.\n *\n * FIXME: This function is problematic, because despite always returning a valid Carrier,\n * it has an optional `__SENTRY__` property, which then in turn requires us to always perform an unnecessary check\n * at the call-site. We always access the carrier through this function, so we can guarantee that `__SENTRY__` is there.\n **/\nexport function getMainCarrier(): Carrier {\n  // This ensures a Sentry carrier exists\n  getSentryCarrier(GLOBAL_OBJ);\n  return GLOBAL_OBJ;\n}\n\n/** Will either get the existing sentry carrier, or create a new one. */\nexport function getSentryCarrier(carrier: Carrier): SentryCarrier {\n  const __SENTRY__ = (carrier.__SENTRY__ = carrier.__SENTRY__ || {});\n\n  // For now: First SDK that sets the .version property wins\n  __SENTRY__.version = __SENTRY__.version || SDK_VERSION;\n\n  // Intentionally populating and returning the version of \"this\" SDK instance\n  // rather than what's set in .version so that \"this\" SDK always gets its carrier\n  return (__SENTRY__[SDK_VERSION] = __SENTRY__[SDK_VERSION] || {});\n}\n\n/**\n * Returns a global singleton contained in the global `__SENTRY__[]` object.\n *\n * If the singleton doesn't already exist in `__SENTRY__`, it will be created using the given factory\n * function and added to the `__SENTRY__` object.\n *\n * @param name name of the global singleton on __SENTRY__\n * @param creator creator Factory function to create the singleton if it doesn't already exist on `__SENTRY__`\n * @param obj (Optional) The global object on which to look for `__SENTRY__`, if not `GLOBAL_OBJ`'s return value\n * @returns the singleton\n */\nexport function getGlobalSingleton<Prop extends keyof SentryCarrier>(\n  name: Prop,\n  creator: () => NonNullable<SentryCarrier[Prop]>,\n  obj = GLOBAL_OBJ,\n): NonNullable<SentryCarrier[Prop]> {\n  const __SENTRY__ = (obj.__SENTRY__ = obj.__SENTRY__ || {});\n  const carrier = (__SENTRY__[SDK_VERSION] = __SENTRY__[SDK_VERSION] || {});\n  // Note: We do not want to set `carrier.version` here, as this may be called before any `init` is called, e.g. for the default scopes\n  return carrier[name] || (carrier[name] = creator());\n}\n","import { getGlobalSingleton } from '../carrier';\nimport { DEBUG_BUILD } from '../debug-build';\nimport type { ConsoleLevel } from '../types/instrument';\nimport { GLOBAL_OBJ } from './worldwide';\n\nexport interface SentryDebugLogger {\n  disable(): void;\n  enable(): void;\n  isEnabled(): boolean;\n  log(...args: Parameters<typeof console.log>): void;\n  warn(...args: Parameters<typeof console.warn>): void;\n  error(...args: Parameters<typeof console.error>): void;\n}\n\nexport const CONSOLE_LEVELS: readonly ConsoleLevel[] = [\n  'debug',\n  'info',\n  'warn',\n  'error',\n  'log',\n  'assert',\n  'trace',\n] as const;\n\n/** Prefix for logging strings */\nconst PREFIX = 'Sentry Logger ';\n\n/** This may be mutated by the console instrumentation. */\nexport const originalConsoleMethods: Partial<{\n  log(...args: Parameters<typeof console.log>): void;\n  info(...args: Parameters<typeof console.info>): void;\n  warn(...args: Parameters<typeof console.warn>): void;\n  error(...args: Parameters<typeof console.error>): void;\n  debug(...args: Parameters<typeof console.debug>): void;\n  assert(...args: Parameters<typeof console.assert>): void;\n  trace(...args: Parameters<typeof console.trace>): void;\n}> = {};\n\n/**\n * Temporarily disable sentry console instrumentations.\n *\n * @param callback The function to run against the original `console` messages\n * @returns The results of the callback\n */\nexport function consoleSandbox<T>(callback: () => T): T {\n  if (!('console' in GLOBAL_OBJ)) {\n    return callback();\n  }\n\n  const console = GLOBAL_OBJ.console;\n  const wrappedFuncs: Partial<Record<ConsoleLevel, (...args: unknown[]) => void>> = {};\n\n  const wrappedLevels = Object.keys(originalConsoleMethods) as ConsoleLevel[];\n\n  // Restore all wrapped console methods\n  wrappedLevels.forEach(level => {\n    const originalConsoleMethod = originalConsoleMethods[level];\n    wrappedFuncs[level] = console[level] as (...args: unknown[]) => void;\n    console[level] = originalConsoleMethod as (...args: unknown[]) => void;\n  });\n\n  try {\n    return callback();\n  } finally {\n    // Revert restoration to wrapped state\n    wrappedLevels.forEach(level => {\n      console[level] = wrappedFuncs[level] as (...args: unknown[]) => void;\n    });\n  }\n}\n\nfunction enable(): void {\n  _getLoggerSettings().enabled = true;\n}\n\nfunction disable(): void {\n  _getLoggerSettings().enabled = false;\n}\n\nfunction isEnabled(): boolean {\n  return _getLoggerSettings().enabled;\n}\n\nfunction log(...args: Parameters<typeof console.log>): void {\n  _maybeLog('log', ...args);\n}\n\nfunction warn(...args: Parameters<typeof console.warn>): void {\n  _maybeLog('warn', ...args);\n}\n\nfunction error(...args: Parameters<typeof console.error>): void {\n  _maybeLog('error', ...args);\n}\n\nfunction _maybeLog(level: ConsoleLevel, ...args: Parameters<(typeof console)[typeof level]>): void {\n  if (!DEBUG_BUILD) {\n    return;\n  }\n\n  if (isEnabled()) {\n    consoleSandbox(() => {\n      GLOBAL_OBJ.console[level](`${PREFIX}[${level}]:`, ...args);\n    });\n  }\n}\n\nfunction _getLoggerSettings(): { enabled: boolean } {\n  if (!DEBUG_BUILD) {\n    return { enabled: false };\n  }\n\n  return getGlobalSingleton('loggerSettings', () => ({ enabled: false }));\n}\n\n/**\n * This is a logger singleton which either logs things or no-ops if logging is not enabled.\n */\nexport const debug = {\n  /** Enable logging. */\n  enable,\n  /** Disable logging. */\n  disable,\n  /** Check if logging is enabled. */\n  isEnabled,\n  /** Log a message. */\n  log,\n  /** Log a warning. */\n  warn,\n  /** Log an error. */\n  error,\n} satisfies SentryDebugLogger;\n","/* eslint-disable @typescript-eslint/no-explicit-any */\n\nimport type { Primitive } from '../types/misc';\nimport type { ParameterizedString } from '../types/parameterize';\nimport type { PolymorphicEvent } from '../types/polymorphics';\nimport type { VNode, VueViewModel } from '../types/vue';\n\n// eslint-disable-next-line @typescript-eslint/unbound-method\nconst objectToString = Object.prototype.toString;\n\n/**\n * Checks whether given value's type is one of a few Error or Error-like\n * {@link isError}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isError(wat: unknown): wat is Error {\n  switch (objectToString.call(wat)) {\n    case '[object Error]':\n    case '[object Exception]':\n    case '[object DOMException]':\n    case '[object WebAssembly.Exception]':\n      return true;\n    default:\n      return isInstanceOf(wat, Error);\n  }\n}\n/**\n * Checks whether given value is an instance of the given built-in class.\n *\n * @param wat The value to be checked\n * @param className\n * @returns A boolean representing the result.\n */\nfunction isBuiltin(wat: unknown, className: string): boolean {\n  return objectToString.call(wat) === `[object ${className}]`;\n}\n\n/**\n * Checks whether given value's type is ErrorEvent\n * {@link isErrorEvent}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isErrorEvent(wat: unknown): boolean {\n  return isBuiltin(wat, 'ErrorEvent');\n}\n\n/**\n * Checks whether given value's type is DOMError\n * {@link isDOMError}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isDOMError(wat: unknown): boolean {\n  return isBuiltin(wat, 'DOMError');\n}\n\n/**\n * Checks whether given value's type is DOMException\n * {@link isDOMException}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isDOMException(wat: unknown): boolean {\n  return isBuiltin(wat, 'DOMException');\n}\n\n/**\n * Checks whether given value's type is a string\n * {@link isString}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isString(wat: unknown): wat is string {\n  return isBuiltin(wat, 'String');\n}\n\n/**\n * Checks whether given string is parameterized\n * {@link isParameterizedString}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isParameterizedString(wat: unknown): wat is ParameterizedString {\n  return (\n    typeof wat === 'object' &&\n    wat !== null &&\n    '__sentry_template_string__' in wat &&\n    '__sentry_template_values__' in wat\n  );\n}\n\n/**\n * Checks whether given value is a primitive (undefined, null, number, boolean, string, bigint, symbol)\n * {@link isPrimitive}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isPrimitive(wat: unknown): wat is Primitive {\n  return wat === null || isParameterizedString(wat) || (typeof wat !== 'object' && typeof wat !== 'function');\n}\n\n/**\n * Checks whether given value's type is an object literal, or a class instance.\n * {@link isPlainObject}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isPlainObject(wat: unknown): wat is Record<string, unknown> {\n  return isBuiltin(wat, 'Object');\n}\n\n/**\n * Checks whether given value is a non-null object (i.e. `typeof` is `'object'` and it is not `null`).\n * Unlike {@link isPlainObject}, this also accepts arrays and class instances - it only rules out\n * `null`, primitives, and functions.\n * {@link isObjectLike}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isObjectLike(wat: unknown): wat is Record<PropertyKey, unknown> {\n  return typeof wat === 'object' && wat !== null;\n}\n\n/**\n * Checks whether given value's type is an Event instance\n * {@link isEvent}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isEvent(wat: unknown): wat is PolymorphicEvent {\n  return typeof Event !== 'undefined' && isInstanceOf(wat, Event);\n}\n\n/**\n * Checks whether given value's type is an Element instance\n * {@link isElement}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n * @deprecated This is browser-specific and will be removed from `@sentry/core` in a future major version.\n * Import `isElement` from `@sentry/browser-utils` instead.\n */\nexport function isElement(wat: unknown): boolean {\n  return typeof Element !== 'undefined' && isInstanceOf(wat, Element);\n}\n\n/**\n * Checks whether given value's type is an regexp\n * {@link isRegExp}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isRegExp(wat: unknown): wat is RegExp {\n  return isBuiltin(wat, 'RegExp');\n}\n\n/**\n * Checks whether given value has a then function.\n * @param wat A value to be checked.\n */\nexport function isThenable(wat: any): wat is PromiseLike<any> {\n  // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n  return Boolean(wat?.then && typeof wat.then === 'function');\n}\n\n/**\n * Checks whether given value's type is a React SyntheticEvent\n * {@link isSyntheticEvent}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n * @deprecated This is React-specific and will be removed from `@sentry/core` in a future major version.\n * Use the equivalent helper that ships with `@sentry/react` instead.\n */\nexport function isSyntheticEvent(wat: unknown): boolean {\n  return isPlainObject(wat) && 'nativeEvent' in wat && 'preventDefault' in wat && 'stopPropagation' in wat;\n}\n\n/**\n * Checks whether given value's type is an instance of provided constructor.\n * {@link isInstanceOf}.\n *\n * @param wat A value to be checked.\n * @param base A constructor to be used in a check.\n * @returns A boolean representing the result.\n */\ntype Constructor<T> = { new (...args: never[]): T };\n\nexport function isInstanceOf<T>(wat: unknown, base: Constructor<T>): wat is T;\nexport function isInstanceOf(wat: unknown, base: unknown): boolean;\nexport function isInstanceOf<T>(wat: unknown, base: unknown): wat is T {\n  try {\n    return wat instanceof (base as Constructor<T>);\n  } catch {\n    return false;\n  }\n}\n\n/**\n * Checks whether given value's type is a Vue ViewModel or a VNode.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n * @deprecated This is Vue-specific and will be removed from `@sentry/core` in a future major version.\n * Use the equivalent helper that ships with `@sentry/vue` instead.\n */\nexport function isVueViewModel(wat: unknown): wat is VueViewModel | VNode {\n  // Not using Object.prototype.toString because in Vue 3 it would read the instance's Symbol(Symbol.toStringTag) property.\n  // We also need to check for __v_isVNode because Vue 3 component render instances have an internal __v_isVNode property.\n  return !!(\n    typeof wat === 'object' &&\n    wat !== null &&\n    ((wat as VueViewModel).__isVue || (wat as VueViewModel)._isVue || (wat as { __v_isVNode?: boolean }).__v_isVNode)\n  );\n}\n\n/**\n * Checks whether the given parameter is a Standard Web API Request instance.\n *\n * Returns false if Request is not available in the current runtime.\n */\nexport function isRequest(request: unknown): request is Request {\n  return typeof Request !== 'undefined' && isInstanceOf(request, Request);\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { DEBUG_BUILD } from '../debug-build';\nimport type { WrappedFunction } from '../types/wrappedfunction';\nimport { debug } from './debug-logger';\nimport { isError, isEvent, isObjectLike, isPrimitive } from './is';\n\n/**\n * Replace a method in an object with a wrapped version of itself.\n *\n * If the method on the passed object is not a function, the wrapper will not be applied.\n *\n * @param source An object that contains a method to be wrapped.\n * @param name The name of the method to be wrapped.\n * @param replacementFactory A higher-order function that takes the original version of the given method and returns a\n * wrapped version. Note: The function returned by `replacementFactory` needs to be a non-arrow function, in order to\n * preserve the correct value of `this`, and the original method must be called using `origMethod.call(this, <other\n * args>)` or `origMethod.apply(this, [<other args>])` (rather than being called directly), again to preserve `this`.\n * @returns void\n */\n\nexport function fill(source: { [key: string]: any }, name: string, replacementFactory: (...args: any[]) => any): void {\n  if (!(name in source)) {\n    return;\n  }\n\n  // explicitly casting to unknown because we don't know the type of the method initially at all\n  const original = source[name] as unknown;\n\n  if (typeof original !== 'function') {\n    return;\n  }\n\n  const wrapped = replacementFactory(original) as WrappedFunction;\n\n  // Make sure it's a function first, as we need to attach an empty prototype for `defineProperties` to work\n  // otherwise it'll throw \"TypeError: Object.defineProperties called on non-object\"\n  if (typeof wrapped === 'function') {\n    markFunctionWrapped(wrapped, original);\n  }\n\n  try {\n    source[name] = wrapped;\n  } catch {\n    DEBUG_BUILD && debug.log(`Failed to replace method \"${name}\" in object`, source);\n  }\n}\n\n/**\n * Defines a non-enumerable property on the given object.\n *\n * @param obj The object on which to set the property\n * @param name The name of the property to be set\n * @param value The value to which to set the property\n */\nexport function addNonEnumerableProperty(obj: object, name: string | symbol, value: unknown): void {\n  try {\n    Object.defineProperty(obj, name, {\n      // enumerable: false, // the default, so we can save on bundle size by not explicitly setting it\n      value,\n      writable: true,\n      configurable: true,\n    });\n  } catch {\n    DEBUG_BUILD && debug.log(`Failed to add non-enumerable property \"${String(name)}\" to object`, obj);\n  }\n}\n\n/**\n * Remembers the original function on the wrapped function and\n * patches up the prototype.\n *\n * @param wrapped the wrapper function\n * @param original the original function that gets wrapped\n */\nexport function markFunctionWrapped(wrapped: WrappedFunction, original: WrappedFunction): void {\n  try {\n    const proto = original.prototype || {};\n    wrapped.prototype = original.prototype = proto;\n    addNonEnumerableProperty(wrapped, '__sentry_original__', original);\n  } catch {} // eslint-disable-line no-empty\n}\n\n/**\n * Wrap a method on an object by name, only if it is not already wrapped.\n *\n * Note: to set the wrapped method as a non-enumerable property, pass\n * false as the `enumerable` argument. This could be detected, but only\n * by either walking up the prototype chain, or iterating over all fields\n * in a `for(in)` loop. Neither are an acceptable performance impact for\n * the rare case where we might patch a non-enumerable method.\n */\nexport function wrapMethod<O extends {}, T extends string & keyof O>(\n  obj: O,\n  field: T,\n  wrapped: WrappedFunction,\n  enumerable: boolean = true,\n): void {\n  const original = obj[field];\n  if (typeof original !== 'function') {\n    throw new Error(`Cannot wrap method: ${field} is not a function`);\n  }\n  if (getOriginalFunction(original)) {\n    throw new Error(`Attempting to wrap method ${field} multiple times`);\n  }\n  markFunctionWrapped(wrapped, original);\n  Object.defineProperty(obj, field, {\n    writable: true,\n    configurable: true,\n    enumerable,\n    value: wrapped,\n  });\n}\n\n/**\n * This extracts the original function if available.  See\n * `markFunctionWrapped` for more information.\n *\n * @param func the function to unwrap\n * @returns the unwrapped version of the function if available.\n */\n// eslint-disable-next-line @typescript-eslint/ban-types\nexport function getOriginalFunction<T extends Function>(func: WrappedFunction<T>): T | undefined {\n  return func.__sentry_original__;\n}\n\n/**\n * Transforms any `Error` or `Event` into a plain object with all of their enumerable properties, and some of their\n * non-enumerable properties attached.\n *\n * @param value Initial source that we have to transform in order for it to be usable by the serializer\n * @returns An Event or Error turned into an object - or the value argument itself, when value is neither an Event nor\n *  an Error.\n */\nexport function convertToPlainObject<V>(value: V): Record<string, unknown> | V {\n  if (isError(value)) {\n    return {\n      message: value.message,\n      name: value.name,\n      stack: value.stack,\n      ...getOwnProperties(value),\n    };\n  }\n\n  // This handles browser events specifically, where certain properties are non-enumerable and need to be unpacked.\n  if (isEvent(value)) {\n    const { type, target, currentTarget, detail } = value;\n    return {\n      type,\n      target,\n      currentTarget,\n      ...(detail ? { detail } : {}),\n      ...getOwnProperties(value),\n    };\n  }\n\n  return value;\n}\n\n/** Filters out all but an object's own properties */\nfunction getOwnProperties(obj: unknown): { [key: string]: unknown } {\n  if (isObjectLike(obj)) {\n    return Object.fromEntries(Object.entries(obj));\n  }\n  return {};\n}\n\n/**\n * Given any captured exception, extract its keys and create a sorted\n * and truncated list that will be used inside the event message.\n * eg. `Non-error exception captured with keys: foo, bar, baz`\n */\nexport function extractExceptionKeysForMessage(exception: Record<string, unknown>): string {\n  const keys = Object.keys(convertToPlainObject(exception));\n  keys.sort();\n\n  return !keys[0] ? '[object has no keys]' : keys.join(', ');\n}\n\n/**\n * Given any object, return a new object having removed all fields whose value was `undefined`.\n * Works recursively on objects and arrays.\n *\n * Attention: This function keeps circular references in the returned object.\n *\n * @deprecated This function is no longer used by the SDK and will be removed in a future major version.\n */\nexport function dropUndefinedKeys<T>(inputValue: T): T {\n  // This map keeps track of what already visited nodes map to.\n  // Our Set - based memoBuilder doesn't work here because we want to the output object to have the same circular\n  // references as the input object.\n  const memoizationMap = new Map<unknown, unknown>();\n\n  // This function just proxies `_dropUndefinedKeys` to keep the `memoBuilder` out of this function's API\n  return _dropUndefinedKeys(inputValue, memoizationMap);\n}\n\nfunction _dropUndefinedKeys<T>(inputValue: T, memoizationMap: Map<unknown, unknown>): T {\n  // Early return for primitive values\n  if (inputValue === null || typeof inputValue !== 'object') {\n    return inputValue;\n  }\n\n  // Check memo map first for all object types\n  const memoVal = memoizationMap.get(inputValue);\n  if (memoVal !== undefined) {\n    return memoVal as T;\n  }\n\n  // handle arrays\n  if (Array.isArray(inputValue)) {\n    const returnValue: unknown[] = [];\n    // Store mapping to handle circular references\n    memoizationMap.set(inputValue, returnValue);\n\n    inputValue.forEach(value => {\n      returnValue.push(_dropUndefinedKeys(value, memoizationMap));\n    });\n\n    return returnValue as unknown as T;\n  }\n\n  if (isPojo(inputValue)) {\n    const returnValue: { [key: string]: unknown } = {};\n    // Store mapping to handle circular references\n    memoizationMap.set(inputValue, returnValue);\n\n    const keys = Object.keys(inputValue);\n\n    keys.forEach(key => {\n      const val = inputValue[key];\n      if (val !== undefined) {\n        returnValue[key] = _dropUndefinedKeys(val, memoizationMap);\n      }\n    });\n\n    return returnValue as T;\n  }\n\n  // For other object types, return as is\n  return inputValue;\n}\n\nfunction isPojo(input: unknown): input is Record<string, unknown> {\n  // Plain objects have Object as constructor or no constructor\n  const constructor = (input as object).constructor;\n  return constructor === Object || constructor === undefined;\n}\n\n/**\n * Ensure that something is an object.\n *\n * Turns `undefined` and `null` into `String`s and all other primitives into instances of their respective wrapper\n * classes (String, Boolean, Number, etc.). Acts as the identity function on non-primitives.\n *\n * @param wat The subject of the objectification\n * @returns A version of `wat` which can safely be used with `Object` class methods\n */\nexport function objectify(wat: unknown): typeof Object {\n  let objectified;\n  switch (true) {\n    // this will catch both undefined and null\n    case wat == undefined:\n      objectified = new String(wat);\n      break;\n\n    // Though symbols and bigints do have wrapper classes (`Symbol` and `BigInt`, respectively), for whatever reason\n    // those classes don't have constructors which can be used with the `new` keyword. We therefore need to cast each as\n    // an object in order to wrap it.\n    case typeof wat === 'symbol' || typeof wat === 'bigint':\n      objectified = Object(wat);\n      break;\n\n    // this will catch the remaining primitives: `String`, `Number`, and `Boolean`\n    case isPrimitive(wat):\n      // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n      objectified = new (wat as any).constructor(wat);\n      break;\n\n    // by process of elimination, at this point we know that `wat` must already be an object\n    default:\n      objectified = wat;\n      break;\n  }\n  return objectified;\n}\n","import { GLOBAL_OBJ } from './worldwide';\n\nexport type RandomSafeContextRunner = <T>(callback: () => T) => T;\n\n// undefined = not yet resolved, null = no runner found, function = runner found\nlet RESOLVED_RUNNER: RandomSafeContextRunner | null | undefined;\n\n/**\n * Simple wrapper that allows SDKs to *secretly* set context wrapper to generate safe random IDs in cache components contexts\n */\nexport function withRandomSafeContext<T>(cb: () => T): T {\n  // Skips future symbol lookups if we've already resolved (or attempted to resolve) the runner once\n  if (RESOLVED_RUNNER !== undefined) {\n    return RESOLVED_RUNNER ? RESOLVED_RUNNER(cb) : cb();\n  }\n\n  const sym = Symbol.for('__SENTRY_SAFE_RANDOM_ID_WRAPPER__');\n  const globalWithSymbol: typeof GLOBAL_OBJ & { [sym]?: RandomSafeContextRunner } = GLOBAL_OBJ;\n\n  if (sym in globalWithSymbol && typeof globalWithSymbol[sym] === 'function') {\n    RESOLVED_RUNNER = globalWithSymbol[sym];\n    return RESOLVED_RUNNER(cb);\n  }\n\n  RESOLVED_RUNNER = null;\n  return cb();\n}\n\n/**\n * Identical to Math.random() but wrapped in withRandomSafeContext\n * to ensure safe random number generation in certain contexts (e.g., Next.js Cache Components).\n */\nexport function safeMathRandom(): number {\n  return withRandomSafeContext(() => Math.random());\n}\n\n/**\n * Identical to Date.now() but wrapped in withRandomSafeContext\n * to ensure safe time value generation in certain contexts (e.g., Next.js Cache Components).\n */\nexport function safeDateNow(): number {\n  return withRandomSafeContext(() => Date.now());\n}\n","import type { Event } from '../types/event';\nimport type { Exception } from '../types/exception';\nimport type { Mechanism } from '../types/mechanism';\nimport type { StackFrame } from '../types/stackframe';\nimport { addNonEnumerableProperty } from './object';\nimport { safeMathRandom, withRandomSafeContext } from './randomSafeContext';\nimport { snipLine } from './string';\nimport { GLOBAL_OBJ } from './worldwide';\n\ninterface CryptoInternal {\n  randomUUID?(): string;\n}\n\n/** An interface for common properties on global */\ninterface CryptoGlobal {\n  msCrypto?: CryptoInternal;\n  crypto?: CryptoInternal;\n}\n\nfunction getCrypto(): CryptoInternal | undefined {\n  const gbl = GLOBAL_OBJ as typeof GLOBAL_OBJ & CryptoGlobal;\n  return gbl.crypto || gbl.msCrypto;\n}\n\nlet emptyUuid: string | undefined;\n\nfunction getRandomByte(): number {\n  return safeMathRandom() * 16;\n}\n\n/**\n * UUID4 generator\n * @param crypto Object that provides the crypto API.\n * @returns string Generated UUID4.\n */\nexport function uuid4(crypto = getCrypto()): string {\n  try {\n    if (crypto?.randomUUID) {\n      // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n      return withRandomSafeContext(() => crypto.randomUUID!()).replace(/-/g, '');\n    }\n  } catch {\n    // some runtimes can crash invoking crypto\n    // https://github.com/getsentry/sentry-javascript/issues/8935\n  }\n\n  if (!emptyUuid) {\n    // http://stackoverflow.com/questions/105034/how-to-create-a-guid-uuid-in-javascript/2117523#2117523\n    // Concatenating the following numbers as strings results in '10000000100040008000100000000000'\n    emptyUuid = ([1e7] as unknown as string) + 1e3 + 4e3 + 8e3 + 1e11;\n  }\n\n  return emptyUuid.replace(/[018]/g, c =>\n    // eslint-disable-next-line no-bitwise\n    ((c as unknown as number) ^ ((getRandomByte() & 15) >> ((c as unknown as number) / 4))).toString(16),\n  );\n}\n\nfunction getFirstException(event: Event): Exception | undefined {\n  return event.exception?.values?.[0];\n}\n\n/**\n * Extracts either message or type+value from an event that can be used for user-facing logs\n * @returns event's description\n */\nexport function getEventDescription(event: Event): string {\n  const { message, event_id: eventId } = event;\n  if (message) {\n    return message;\n  }\n\n  const firstException = getFirstException(event);\n  if (firstException) {\n    if (firstException.type && firstException.value) {\n      return `${firstException.type}: ${firstException.value}`;\n    }\n    return firstException.type || firstException.value || eventId || '<unknown>';\n  }\n  return eventId || '<unknown>';\n}\n\n/**\n * Adds exception values, type and value to an synthetic Exception.\n * @param event The event to modify.\n * @param value Value of the exception.\n * @param type Type of the exception.\n * @hidden\n */\nexport function addExceptionTypeValue(event: Event, value?: string, type?: string): void {\n  const exception = (event.exception = event.exception || {});\n  const values = (exception.values = exception.values || []);\n  const firstException = (values[0] = values[0] || {});\n  if (!firstException.value) {\n    firstException.value = value || '';\n  }\n  if (!firstException.type) {\n    firstException.type = type || 'Error';\n  }\n}\n\n/**\n * Adds exception mechanism data to a given event. Uses defaults if the second parameter is not passed.\n *\n * @param event The event to modify.\n * @param newMechanism Mechanism data to add to the event.\n * @hidden\n */\nexport function addExceptionMechanism(event: Event, newMechanism?: Partial<Mechanism>): void {\n  const firstException = getFirstException(event);\n  if (!firstException) {\n    return;\n  }\n\n  applyExceptionMechanism(firstException, newMechanism);\n}\n\n/**\n * Adds exception mechanism data to the originally captured (root) exception of a given event.\n *\n * @hidden\n */\nexport function addExceptionMechanismToCapturedException(event: Event, newMechanism?: Partial<Mechanism>): void {\n  const exceptions = event.exception?.values;\n\n  // Exception groups identify the originally captured (root) exception with exception_id 0.\n  const capturedException = exceptions?.find(exception => exception.mechanism?.exception_id === 0) ?? exceptions?.[0];\n\n  if (!capturedException) {\n    return;\n  }\n\n  applyExceptionMechanism(capturedException, newMechanism);\n}\n\nfunction applyExceptionMechanism(exception: Exception, newMechanism?: Partial<Mechanism>): void {\n  const defaultMechanism = { type: 'generic', handled: true };\n  const currentMechanism = exception.mechanism;\n  exception.mechanism = { ...defaultMechanism, ...currentMechanism, ...newMechanism };\n\n  if (newMechanism && 'data' in newMechanism) {\n    exception.mechanism.data = { ...currentMechanism?.data, ...newMechanism.data };\n  }\n}\n\n// https://semver.org/#is-there-a-suggested-regular-expression-regex-to-check-a-semver-string\nconst SEMVER_REGEXP =\n  /^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$/;\n\n/**\n * Represents Semantic Versioning object\n */\ninterface SemVer {\n  major?: number;\n  minor?: number;\n  patch?: number;\n  prerelease?: string;\n  buildmetadata?: string;\n}\n\nfunction _parseInt(input: string | undefined): number {\n  return parseInt(input || '', 10);\n}\n\n/**\n * Parses input into a SemVer interface\n * @param input string representation of a semver version\n */\nexport function parseSemver(input: string): SemVer {\n  const match = input.match(SEMVER_REGEXP) || [];\n  const major = _parseInt(match[1]);\n  const minor = _parseInt(match[2]);\n  const patch = _parseInt(match[3]);\n  return {\n    buildmetadata: match[5],\n    major: isNaN(major) ? undefined : major,\n    minor: isNaN(minor) ? undefined : minor,\n    patch: isNaN(patch) ? undefined : patch,\n    prerelease: match[4],\n  };\n}\n\n/**\n * This function adds context (pre/post/line) lines to the provided frame\n *\n * @param lines string[] containing all lines\n * @param frame StackFrame that will be mutated\n * @param linesOfContext number of context lines we want to add pre/post\n */\nexport function addContextToFrame(lines: string[], frame: StackFrame, linesOfContext: number = 5): void {\n  // When there is no line number in the frame, attaching context is nonsensical and will even break grouping\n  if (frame.lineno === undefined) {\n    return;\n  }\n\n  const maxLines = lines.length;\n  const sourceLine = Math.max(Math.min(maxLines - 1, frame.lineno - 1), 0);\n\n  frame.pre_context = lines\n    .slice(Math.max(0, sourceLine - linesOfContext), sourceLine)\n    .map((line: string) => snipLine(line, 0));\n\n  // We guard here to ensure this is not larger than the existing number of lines\n  const lineIndex = Math.min(maxLines - 1, sourceLine);\n\n  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n  frame.context_line = snipLine(lines[lineIndex]!, frame.colno || 0);\n\n  frame.post_context = lines\n    .slice(Math.min(sourceLine + 1, maxLines), sourceLine + 1 + linesOfContext)\n    .map((line: string) => snipLine(line, 0));\n}\n\n/**\n * Checks whether or not we've already captured the given exception (note: not an identical exception - the very object\n * in question), and marks it captured if not.\n *\n * This is useful because it's possible for an error to get captured by more than one mechanism. After we intercept and\n * record an error, we rethrow it (assuming we've intercepted it before it's reached the top-level global handlers), so\n * that we don't interfere with whatever effects the error might have had were the SDK not there. At that point, because\n * the error has been rethrown, it's possible for it to bubble up to some other code we've instrumented. If it's not\n * caught after that, it will bubble all the way up to the global handlers (which of course we also instrument). This\n * function helps us ensure that even if we encounter the same error more than once, we only record it the first time we\n * see it.\n *\n * The client runs this check for every captured exception, also when `dedupeIntegration` is not active.\n * `dedupeIntegration` drops equal events that come from different error objects.\n *\n * Note: It will ignore primitives (always return `false` and not mark them as seen), as properties can't be set on\n * them. {@link: Object.objectify} can be used on exceptions to convert any that are primitives into their equivalent\n * object wrapper forms so that this check will always work. However, because we need to flag the exact object which\n * will get rethrown, and because that rethrowing happens outside of the event processing pipeline, the objectification\n * must be done before the exception captured.\n *\n * @param A thrown exception to check or flag as having been seen\n * @returns `true` if the exception has already been captured, `false` if not (with the side effect of marking it seen)\n */\nexport function checkOrSetAlreadyCaught(exception: unknown): boolean {\n  if (isAlreadyCaptured(exception)) {\n    return true;\n  }\n\n  try {\n    // set it this way rather than by assignment so that it's not ennumerable and therefore isn't recorded by the\n    // `ExtraErrorData` integration\n    addNonEnumerableProperty(exception as { [key: string]: unknown }, '__sentry_captured__', true);\n  } catch {\n    // `exception` is a primitive, so we can't mark it seen\n  }\n\n  return false;\n}\n\n/**\n * Checks whether we've already captured the given exception (note: not an identical exception - the very object).\n * It is considered already captured if it has the `__sentry_captured__` property set to `true`.\n *\n * @internal Only considered for internal usage\n */\nexport function isAlreadyCaptured(exception: unknown): boolean | void {\n  try {\n    return (exception as { __sentry_captured__?: boolean }).__sentry_captured__;\n  } catch {} // eslint-disable-line no-empty\n}\n","import { safeDateNow, withRandomSafeContext } from './randomSafeContext';\nimport { GLOBAL_OBJ } from './worldwide';\n\nconst ONE_SECOND_IN_MS = 1000;\n\n/**\n * A partial definition of the [Performance Web API]{@link https://developer.mozilla.org/en-US/docs/Web/API/Performance}\n * for accessing a high-resolution monotonic clock.\n */\ninterface Performance {\n  /**\n   * The millisecond timestamp at which measurement began, measured in Unix time.\n   */\n  timeOrigin: number;\n  /**\n   * Returns the current millisecond timestamp, where 0 represents the start of measurement.\n   */\n  now(): number;\n}\n\n/**\n * Returns a timestamp in seconds since the UNIX epoch using the Date API.\n */\nexport function dateTimestampInSeconds(): number {\n  return safeDateNow() / ONE_SECOND_IN_MS;\n}\n\n/**\n * Returns a wrapper around the native Performance API browser implementation, or undefined for browsers that do not\n * support the API.\n *\n * Wrapping the native API works around differences in behavior from different browsers.\n */\nfunction createUnixTimestampInSecondsFunc(): () => number {\n  const { performance } = GLOBAL_OBJ as typeof GLOBAL_OBJ & { performance?: Performance };\n  // Some browser and environments don't have a performance or timeOrigin, so we fallback to\n  // using Date.now() to compute the starting time.\n  if (!performance?.now || !performance.timeOrigin) {\n    return dateTimestampInSeconds;\n  }\n\n  const timeOrigin = performance.timeOrigin;\n\n  // performance.now() is a monotonic clock, which means it starts at 0 when the process begins. To get the current\n  // wall clock time (actual UNIX timestamp), we need to add the starting time origin and the current time elapsed.\n  //\n  // TODO: This does not account for the case where the monotonic clock that powers performance.now() drifts from the\n  // wall clock time, which causes the returned timestamp to be inaccurate. We should investigate how to detect and\n  // correct for this.\n  // See: https://github.com/getsentry/sentry-javascript/issues/2590\n  // See: https://github.com/mdn/content/issues/4713\n  // See: https://dev.to/noamr/when-a-millisecond-is-not-a-millisecond-3h6\n  return () => {\n    return (timeOrigin + withRandomSafeContext(() => performance.now())) / ONE_SECOND_IN_MS;\n  };\n}\n\nlet _cachedTimestampInSeconds: (() => number) | undefined;\n\n/**\n * Returns a timestamp in seconds since the UNIX epoch using either the Performance or Date APIs, depending on the\n * availability of the Performance API.\n *\n * BUG: Note that because of how browsers implement the Performance API, the clock might stop when the computer is\n * asleep. This creates a skew between `dateTimestampInSeconds` and `timestampInSeconds`. The\n * skew can grow to arbitrary amounts like days, weeks or months.\n * See https://github.com/getsentry/sentry-javascript/issues/2590.\n */\nexport function timestampInSeconds(): number {\n  // We store this in a closure so that we don't have to create a new function every time this is called.\n  const func = _cachedTimestampInSeconds ?? (_cachedTimestampInSeconds = createUnixTimestampInSecondsFunc());\n  return func();\n}\n\n/**\n * Cached result of getBrowserTimeOrigin.\n */\nlet cachedTimeOrigin: number | null | undefined = null;\n\n/**\n * Gets the time origin and the mode used to determine it.\n *\n * Unfortunately browsers may report inaccurate time origin data through performance.timeOrigin,\n * which results in poor results in performance data. We only treat time origin data as reliable\n * if it is within a reasonable threshold of the current time.\n *\n * TODO: move to `@sentry/browser-utils` package.\n */\nfunction getBrowserTimeOrigin(): number | undefined {\n  const { performance } = GLOBAL_OBJ as typeof GLOBAL_OBJ & Window;\n  if (!performance?.now) {\n    return undefined;\n  }\n\n  const threshold = 300_000; // 5 minutes in milliseconds\n  const performanceNow = withRandomSafeContext(() => performance.now());\n  const dateNow = safeDateNow();\n\n  const timeOrigin = performance.timeOrigin;\n  if (typeof timeOrigin === 'number') {\n    const timeOriginDelta = Math.abs(timeOrigin + performanceNow - dateNow);\n    if (timeOriginDelta < threshold) {\n      return timeOrigin;\n    }\n  }\n\n  // timeOrigin is skewed or unavailable, fallback to subtracting\n  // `performance.now()` from `Date.now()`.\n  return dateNow - performanceNow;\n}\n\n/**\n * The number of milliseconds since the UNIX epoch. This value is only usable in a browser, and only when the\n * performance API is available.\n */\nexport function browserPerformanceTimeOrigin(): number | undefined {\n  if (cachedTimeOrigin === null) {\n    cachedTimeOrigin = getBrowserTimeOrigin();\n  }\n\n  return cachedTimeOrigin;\n}\n","import type { SerializedSession, Session, SessionContext, SessionStatus } from './types/session';\nimport { uuid4 } from './utils/misc';\nimport { timestampInSeconds } from './utils/time';\n\n/**\n * Creates a new `Session` object by setting certain default parameters. If optional @param context\n * is passed, the passed properties are applied to the session object.\n *\n * @param context (optional) additional properties to be applied to the returned session object\n *\n * @returns a new `Session` object\n */\nexport function makeSession(context?: Omit<SessionContext, 'started' | 'status'>): Session {\n  // Both timestamp and started are in seconds since the UNIX epoch.\n  const startingTime = timestampInSeconds();\n\n  const session: Session = {\n    sid: uuid4(),\n    init: true,\n    timestamp: startingTime,\n    started: startingTime,\n    duration: 0,\n    status: 'ok',\n    errors: 0,\n    ignoreDuration: false,\n    toJSON: () => sessionToJSON(session),\n  };\n\n  if (context) {\n    updateSession(session, context);\n  }\n\n  return session;\n}\n\n/**\n * Updates a session object with the properties passed in the context.\n *\n * Note that this function mutates the passed object and returns void.\n * (Had to do this instead of returning a new and updated session because closing and sending a session\n * makes an update to the session after it was passed to the sending logic.\n * @see Client.captureSession )\n *\n * @param session the `Session` to update\n * @param context the `SessionContext` holding the properties that should be updated in @param session\n */\n// eslint-disable-next-line complexity\nexport function updateSession(session: Session, context: SessionContext = {}): void {\n  if (context.user) {\n    if (!session.ipAddress && context.user.ip_address) {\n      session.ipAddress = context.user.ip_address;\n    }\n\n    if (!session.did && !context.did) {\n      session.did = context.user.id || context.user.email || context.user.username;\n    }\n  }\n\n  session.timestamp = context.timestamp || timestampInSeconds();\n\n  if (context.abnormal_mechanism) {\n    session.abnormal_mechanism = context.abnormal_mechanism;\n  }\n\n  if (context.ignoreDuration) {\n    session.ignoreDuration = context.ignoreDuration;\n  }\n  if (context.sid) {\n    // Good enough uuid validation. — Kamil\n    session.sid = context.sid.length === 32 ? context.sid : uuid4();\n  }\n  if (context.init !== undefined) {\n    session.init = context.init;\n  }\n  if (!session.did && context.did) {\n    session.did = `${context.did}`;\n  }\n  if (typeof context.started === 'number') {\n    session.started = context.started;\n  }\n  if (session.ignoreDuration) {\n    session.duration = undefined;\n  } else if (typeof context.duration === 'number') {\n    session.duration = context.duration;\n  } else {\n    const duration = session.timestamp - session.started;\n    session.duration = duration >= 0 ? duration : 0;\n  }\n  if (context.release) {\n    session.release = context.release;\n  }\n  if (context.environment) {\n    session.environment = context.environment;\n  }\n  if (!session.ipAddress && context.ipAddress) {\n    session.ipAddress = context.ipAddress;\n  }\n  if (!session.userAgent && context.userAgent) {\n    session.userAgent = context.userAgent;\n  }\n  if (typeof context.errors === 'number') {\n    session.errors = context.errors;\n  }\n  if (context.status) {\n    session.status = context.status;\n  }\n}\n\n/**\n * Closes a session by setting its status and updating the session object with it.\n * Internally calls `updateSession` to update the passed session object.\n *\n * Note that this function mutates the passed session (@see updateSession for explanation).\n *\n * @param session the `Session` object to be closed\n * @param status the `SessionStatus` with which the session was closed. If you don't pass a status,\n *               this function will keep the previously set status, unless it was `'ok'` in which case\n *               it is changed to `'exited'`.\n */\nexport function closeSession(session: Session, status?: Exclude<SessionStatus, 'ok'>): void {\n  let context = {};\n  if (status) {\n    context = { status };\n  } else if (session.status === 'ok') {\n    context = { status: 'exited' };\n  }\n\n  updateSession(session, context);\n}\n\n/**\n * Serializes a passed session object to a JSON object with a slightly different structure.\n * This is necessary because the Sentry backend requires a slightly different schema of a session\n * than the one the JS SDKs use internally.\n *\n * @param session the session to be converted\n *\n * @returns a JSON object of the passed session\n */\nfunction sessionToJSON(session: Session): SerializedSession {\n  return {\n    sid: `${session.sid}`,\n    init: session.init,\n    // Make sure that sec is converted to ms for date constructor\n    started: new Date(session.started * 1000).toISOString(),\n    timestamp: new Date(session.timestamp * 1000).toISOString(),\n    status: session.status,\n    errors: session.errors,\n    did: typeof session.did === 'number' || typeof session.did === 'string' ? `${session.did}` : undefined,\n    duration: session.duration,\n    abnormal_mechanism: session.abnormal_mechanism,\n    attrs: {\n      release: session.release,\n      environment: session.environment,\n      ip_address: session.ipAddress,\n      user_agent: session.userAgent,\n    },\n  };\n}\n","/**\n * Shallow merge two objects.\n * Does not mutate the passed in objects.\n * Undefined/empty values in the merge object will overwrite existing values.\n *\n * By default, this merges 2 levels deep.\n */\nexport function merge<T>(initialObj: T, mergeObj: T, levels = 2): T {\n  // If the merge value is not an object, or we have no merge levels left,\n  // we just set the value to the merge value\n  if (!mergeObj || typeof mergeObj !== 'object' || levels <= 0) {\n    return mergeObj;\n  }\n\n  // If the merge object is an empty object, and the initial object is not undefined, we return the initial object\n  if (initialObj && Object.keys(mergeObj).length === 0) {\n    return initialObj;\n  }\n\n  // Clone object\n  const output = { ...initialObj };\n\n  // Merge values into output, resursively\n  for (const key in mergeObj) {\n    if (Object.prototype.hasOwnProperty.call(mergeObj, key)) {\n      output[key] = merge(output[key], mergeObj[key], levels - 1);\n    }\n  }\n\n  return output;\n}\n","import { uuid4 } from './misc';\n\n/**\n * Generate a random, valid trace ID.\n */\nexport function generateTraceId(): string {\n  return uuid4();\n}\n\n/**\n * Generate a random, valid span ID.\n */\nexport function generateSpanId(): string {\n  return uuid4().substring(16);\n}\n","import { addNonEnumerableProperty } from './object';\n\n/**\n * Internal symbols for normalization behavior. JSON and other structured user payloads cannot\n * carry these keys, so they cannot spoof SDK-only normalization hints.\n * We use Symbol.for to ensure that the symbols are the same across different modules/files.\n */\nconst SENTRY_SKIP_NORMALIZATION = Symbol.for('sentry.skipNormalization');\nconst SENTRY_OVERRIDE_NORMALIZATION_DEPTH = Symbol.for('sentry.overrideNormalizationDepth');\n\n/** Marks an object so `normalize` returns it unchanged (already-normalized SDK data). */\nexport function setSkipNormalizationHint(obj: object): void {\n  addNonEnumerableProperty(obj, SENTRY_SKIP_NORMALIZATION, true);\n}\n\n/** Overrides remaining normalization depth from this object downward (e.g. Redux / Pinia state). */\nexport function setNormalizationDepthOverrideHint(obj: object, depth: number): void {\n  addNonEnumerableProperty(obj, SENTRY_OVERRIDE_NORMALIZATION_DEPTH, depth);\n}\n\n/** @internal */\nexport function hasSkipNormalizationHint(value: object) {\n  return Boolean((value as Record<symbol, unknown>)[SENTRY_SKIP_NORMALIZATION]);\n}\n\n/** @internal */\nexport function getNormalizationDepthOverrideHint(value: object): number | undefined {\n  const v = (value as Record<symbol, unknown>)[SENTRY_OVERRIDE_NORMALIZATION_DEPTH];\n  return typeof v === 'number' ? v : undefined;\n}\n","import type { Event } from '../types/event';\nimport type { StackFrame } from '../types/stackframe';\nimport type { StackLineParser, StackParser } from '../types/stacktrace';\nimport type { VNode, VueViewModel } from '../types/vue';\n\nconst STACKTRACE_FRAME_LIMIT = 50;\nexport const UNKNOWN_FUNCTION = '?';\n// Used to sanitize webpack (error: *) wrapped stack errors\nconst WEBPACK_ERROR_REGEXP = /\\(error: (.*)\\)/;\nconst STRIP_FRAME_REGEXP = /captureMessage|captureException/;\n\n/**\n * Creates a stack parser with the supplied line parsers\n *\n * StackFrames are returned in the correct order for Sentry Exception\n * frames and with Sentry SDK internal frames removed from the top and bottom\n *\n */\nexport function createStackParser(...parsers: StackLineParser[]): StackParser {\n  const sortedParsers = parsers.sort((a, b) => a[0] - b[0]).map(p => p[1]);\n\n  return (stack: string, skipFirstLines: number = 0, framesToPop: number = 0): StackFrame[] => {\n    const frames: StackFrame[] = [];\n    const lines = stack.split('\\n');\n\n    for (let i = skipFirstLines; i < lines.length; i++) {\n      let line = lines[i] as string;\n      // Truncate lines over 1kb because many of the regular expressions use\n      // backtracking which results in run time that increases exponentially\n      // with input size. Huge strings can result in hangs/Denial of Service:\n      // https://github.com/getsentry/sentry-javascript/issues/2286\n      if (line.length > 1024) {\n        line = line.slice(0, 1024);\n      }\n\n      // https://github.com/getsentry/sentry-javascript/issues/5459\n      // Remove webpack (error: *) wrappers\n      const cleanedLine = WEBPACK_ERROR_REGEXP.test(line) ? line.replace(WEBPACK_ERROR_REGEXP, '$1') : line;\n\n      // https://github.com/getsentry/sentry-javascript/issues/7813\n      // Skip Error: lines\n      // Using includes() instead of a regex to avoid O(n²) backtracking on long lines\n      // https://github.com/getsentry/sentry-javascript/issues/20052\n      if (cleanedLine.includes('Error: ')) {\n        continue;\n      }\n\n      for (const parser of sortedParsers) {\n        const frame = parser(cleanedLine);\n\n        if (frame) {\n          frames.push(frame);\n          break;\n        }\n      }\n\n      if (frames.length >= STACKTRACE_FRAME_LIMIT + framesToPop) {\n        break;\n      }\n    }\n\n    return stripSentryFramesAndReverse(frames.slice(framesToPop));\n  };\n}\n\n/**\n * Gets a stack parser implementation from Options.stackParser\n * @see Options\n *\n * If options contains an array of line parsers, it is converted into a parser\n */\nexport function stackParserFromStackParserOptions(stackParser: StackParser | StackLineParser[]): StackParser {\n  if (Array.isArray(stackParser)) {\n    return createStackParser(...stackParser);\n  }\n  return stackParser;\n}\n\n/**\n * Removes Sentry frames from the top and bottom of the stack if present and enforces a limit of max number of frames.\n * Assumes stack input is ordered from top to bottom and returns the reverse representation so call site of the\n * function that caused the crash is the last frame in the array.\n * @hidden\n */\nexport function stripSentryFramesAndReverse(stack: ReadonlyArray<StackFrame>): StackFrame[] {\n  if (!stack.length) {\n    return [];\n  }\n\n  const localStack = Array.from(stack);\n\n  // If stack starts with one of our API calls, remove it (starts, meaning it's the top of the stack - aka last call)\n  if (/sentryWrapped/.test(getLastStackFrame(localStack).function || '')) {\n    localStack.pop();\n  }\n\n  // Reversing in the middle of the procedure allows us to just pop the values off the stack\n  localStack.reverse();\n\n  // If stack ends with one of our internal API calls, remove it (ends, meaning it's the bottom of the stack - aka top-most call)\n  if (STRIP_FRAME_REGEXP.test(getLastStackFrame(localStack).function || '')) {\n    localStack.pop();\n\n    // When using synthetic events, we will have a 2 levels deep stack, as `new Error('Sentry syntheticException')`\n    // is produced within the scope itself, making it:\n    //\n    //   Sentry.captureException()\n    //   scope.captureException()\n    //\n    // instead of just the top `Sentry` call itself.\n    // This forces us to possibly strip an additional frame in the exact same was as above.\n    if (STRIP_FRAME_REGEXP.test(getLastStackFrame(localStack).function || '')) {\n      localStack.pop();\n    }\n  }\n\n  return localStack.slice(0, STACKTRACE_FRAME_LIMIT).map(frame => ({\n    ...frame,\n    filename: frame.filename || getLastStackFrame(localStack).filename,\n    function: frame.function || UNKNOWN_FUNCTION,\n  }));\n}\n\nfunction getLastStackFrame(arr: StackFrame[]): StackFrame {\n  return arr[arr.length - 1] || {};\n}\n\nconst defaultFunctionName = '<anonymous>';\n\n/**\n * Safely extract function name from itself\n */\nexport function getFunctionName(fn: unknown): string {\n  try {\n    if (!fn || typeof fn !== 'function') {\n      return defaultFunctionName;\n    }\n    return fn.name || defaultFunctionName;\n  } catch {\n    // Just accessing custom props in some Selenium environments\n    // can cause a \"Permission denied\" exception (see raven-js#495).\n    return defaultFunctionName;\n  }\n}\n\n/**\n * Get's stack frames from an event without needing to check for undefined properties.\n */\nexport function getFramesFromEvent(event: Event): StackFrame[] | undefined {\n  const exception = event.exception;\n\n  if (exception) {\n    const frames: StackFrame[] = [];\n    try {\n      // @ts-expect-error Object could be undefined\n      exception.values.forEach(value => {\n        // @ts-expect-error Value could be undefined\n        if (value.stacktrace.frames) {\n          // @ts-expect-error Value could be undefined\n          frames.push(...value.stacktrace.frames);\n        }\n      });\n      return frames;\n    } catch {\n      return undefined;\n    }\n  }\n  return undefined;\n}\n\n/**\n * Get the internal name of an internal Vue value, to represent it in a stacktrace.\n *\n * @param value The value to get the internal name of.\n * @deprecated This is Vue-specific and will be removed from `@sentry/core` in a future major version.\n * The `@sentry/vue` SDK inlines its own equivalent — there's no replacement export from core.\n */\nexport function getVueInternalName(value: VueViewModel | VNode): string {\n  // Check if it's a VNode (has __v_isVNode) or a component instance (has _isVue/__isVue)\n  const isVNode = '__v_isVNode' in value && value.__v_isVNode;\n\n  return isVNode ? '[VueVNode]' : '[VueViewModel]';\n}\n\n/**\n * Normalizes stack line paths by removing file:// prefix and leading slashes for Windows paths\n */\nexport function normalizeStackTracePath(path: string | undefined): string | undefined {\n  let filename = path?.startsWith('file://') ? path.slice(7) : path;\n  // If it's a Windows path, trim the leading slash so that `/C:/foo` becomes `C:/foo`\n  if (filename?.match(/\\/[A-Z]:/)) {\n    filename = filename.slice(1);\n  }\n  return filename;\n}\n","import type { Primitive } from '../types/misc';\nimport { getNormalizationDepthOverrideHint, hasSkipNormalizationHint } from './normalizationHints';\nimport { convertToPlainObject } from './object';\nimport { getFunctionName } from './stacktrace';\n\ntype Stringifier = (value: Exclude<unknown, string | number | boolean | null>) => string | undefined;\n\n// We store a custom stringifier in module scope, which is not bullet proof\n// however, we currently only really use this for browser-specific values, where this should work just fine, generally.\nlet stringifier: Stringifier | undefined;\n\n/**\n * Set a custom stringifier for the normalize function.\n * If this returns a non-empty string, it will be used instead of the default stringification.\n * Return undefined to fall back to the generic behavior.\n */\nexport function setNormalizeStringifier(newStringifier: Stringifier | undefined): void {\n  stringifier = newStringifier;\n}\n\ntype Prototype = { constructor?: (...args: unknown[]) => unknown };\n// This is a hack to placate TS, relying on the fact that technically, arrays are objects with integer keys. Normally we\n// think of those keys as actual numbers, but `arr['0']` turns out to work just as well as `arr[0]`, and doing it this\n// way lets us use a single type in the places where behave as if we are only dealing with objects, even if some of them\n// might be arrays.\ntype ObjOrArray<T> = { [key: string]: T };\n\ntype MemoFunc = [\n  // memoize\n  (obj: object) => boolean,\n  // unmemoize\n  (obj: object) => void,\n];\n\n/**\n * Recursively normalizes the given object.\n *\n * - Creates a copy to prevent original input mutation\n * - Skips non-enumerable properties\n * - When stringifying, calls `toJSON` if implemented\n * - Removes circular references\n * - Translates non-serializable values (`undefined`/`NaN`/functions) to serializable format\n * - Translates known global objects/classes to a string representations\n * - Takes care of `Error` object serialization\n * - Optionally limits depth of final output\n * - Optionally limits number of properties/elements included in any single object/array\n *\n * @param input The object to be normalized.\n * @param depth The max depth to which to normalize the object. (Anything deeper stringified whole.)\n * @param maxProperties The max number of elements or properties to be included in any single array or\n * object in the normalized output.\n * @returns A normalized version of the object, or `\"**non-serializable**\"` if any errors are thrown during normalization.\n */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport function normalize(input: unknown, depth: number = 100, maxProperties: number = +Infinity): any {\n  try {\n    // since we're at the outermost level, we don't provide a key\n    return visit('', input, depth, maxProperties);\n  } catch (err) {\n    return { ERROR: `**non-serializable** (${err})` };\n  }\n}\n\n/** JSDoc */\nexport function normalizeToSize<T>(\n  // eslint-disable-next-line @typescript-eslint/no-explicit-any\n  object: { [key: string]: any },\n  // Default Node.js REPL depth\n  depth: number = 3,\n  // 100kB, as 200kB is max payload size, so half sounds reasonable\n  maxSize: number = 100 * 1024,\n): T {\n  const normalized = normalize(object, depth);\n\n  if (jsonSize(normalized) > maxSize) {\n    return normalizeToSize(object, depth - 1, maxSize);\n  }\n\n  return normalized as T;\n}\n\n/**\n * Visits a node to perform normalization on it\n *\n * @param key The key corresponding to the given node\n * @param value The node to be visited\n * @param depth Optional number indicating the maximum recursion depth\n * @param maxProperties Optional maximum number of properties/elements included in any single object/array\n * @param memo Optional Memo class handling decycling\n */\nfunction visit(\n  key: string,\n  value: unknown,\n  depth: number = +Infinity,\n  maxProperties: number = +Infinity,\n  memo = memoBuilder(),\n): Primitive | ObjOrArray<unknown> {\n  const [memoize, unmemoize] = memo;\n\n  // Get the simple cases out of the way first\n  if (\n    value == null || // this matches null and undefined -> eqeq not eqeqeq\n    ['boolean', 'string'].includes(typeof value) ||\n    (typeof value === 'number' && Number.isFinite(value))\n  ) {\n    return value as Primitive;\n  }\n\n  const stringified = stringifyValue(key, value);\n\n  // Anything we could potentially dig into more (objects or arrays) will have come back as `\"[object XXXX]\"`.\n  // Everything else will have already been serialized, so if we don't see that pattern, we're done.\n  if (!stringified.startsWith('[object ')) {\n    return stringified;\n  }\n\n  // From here on, we can assert that `value` is either an object or an array.\n\n  // Do not normalize objects that we know have already been normalized. Hints use internal symbols\n  // (see normalizationHints.ts) so user-controlled JSON cannot spoof them.\n  if (hasSkipNormalizationHint(value)) {\n    return value as ObjOrArray<unknown>;\n  }\n\n  // Override remaining depth from this node (e.g. Redux / Pinia state). Set via setNormalizationDepthOverrideHint.\n  const overrideDepth = getNormalizationDepthOverrideHint(value);\n  const remainingDepth = overrideDepth !== undefined ? overrideDepth : depth;\n\n  // We're also done if we've reached the max depth\n  if (remainingDepth === 0) {\n    // At this point we know `serialized` is a string of the form `\"[object XXXX]\"`. Clean it up so it's just `\"[XXXX]\"`.\n    return stringified.replace('object ', '');\n  }\n\n  // If we've already visited this branch, bail out, as it's circular reference. If not, note that we're seeing it now.\n  if (memoize(value)) {\n    return '[Circular ~]';\n  }\n\n  // If the value has a `toJSON` method, we call it to extract more information\n  const valueWithToJSON = value as unknown & { toJSON?: () => unknown };\n  if (valueWithToJSON && typeof valueWithToJSON.toJSON === 'function') {\n    try {\n      const jsonValue = valueWithToJSON.toJSON();\n      // We need to normalize the return value of `.toJSON()` in case it has circular references\n      return visit('', jsonValue, remainingDepth - 1, maxProperties, memo);\n    } catch {\n      // pass (The built-in `toJSON` failed, but we can still try to do it ourselves)\n    }\n  }\n\n  // At this point we know we either have an object or an array, we haven't seen it before, and we're going to recurse\n  // because we haven't yet reached the max depth. Create an accumulator to hold the results of visiting each\n  // property/entry, and keep track of the number of items we add to it.\n  const normalized = (Array.isArray(value) ? [] : {}) as ObjOrArray<unknown>;\n  let numAdded = 0;\n\n  // Before we begin, convert`Error` and`Event` instances into plain objects, since some of each of their relevant\n  // properties are non-enumerable and otherwise would get missed.\n  const visitable = convertToPlainObject(value as ObjOrArray<unknown>);\n\n  for (const visitKey in visitable) {\n    // Avoid iterating over fields in the prototype if they've somehow been exposed to enumeration.\n    if (!Object.prototype.hasOwnProperty.call(visitable, visitKey)) {\n      continue;\n    }\n\n    if (numAdded >= maxProperties) {\n      normalized[visitKey] = '[MaxProperties ~]';\n      break;\n    }\n\n    // Recursively visit all the child nodes\n    const visitValue = visitable[visitKey];\n    normalized[visitKey] = visit(visitKey, visitValue, remainingDepth - 1, maxProperties, memo);\n\n    numAdded++;\n  }\n\n  // Once we've visited all the branches, remove the parent from memo storage\n  unmemoize(value);\n\n  // Return accumulated values\n  return normalized;\n}\n\n/* eslint-disable complexity */\n/**\n * Stringify the given value. Handles various known special values and types.\n *\n * Not meant to be used on simple primitives which already have a string representation, as it will, for example, turn\n * the number 1231 into \"[Object Number]\", nor on `null`, as it will throw.\n *\n * @param value The value to stringify\n * @returns A stringified representation of the given value\n */\nexport function stringifyValue(\n  key: unknown,\n  // this type is a tiny bit of a cheat, since this function does handle NaN (which is technically a number), but for\n  // our internal use, it'll do\n  value: Exclude<unknown, string | number | boolean | null>,\n): string {\n  try {\n    // Runtime-specific stringifications (browser, framework integrations) are registered on the\n    // async-context strategy. Consult them before the universal fallbacks below.\n    if (stringifier) {\n      const stringified = stringifier(value);\n      // Safe to ignore empty strings here as well, we wont stringify to this\n      if (stringified) {\n        return stringified;\n      }\n    }\n\n    if (typeof global !== 'undefined' && value === global) {\n      return '[Global]';\n    }\n\n    if (typeof value === 'number' && !Number.isFinite(value)) {\n      return `[${value}]`;\n    }\n\n    if (typeof value === 'function') {\n      return `[Function: ${getFunctionName(value)}]`;\n    }\n\n    if (typeof value === 'symbol') {\n      return `[${String(value)}]`;\n    }\n\n    // stringified BigInts are indistinguishable from regular numbers, so we need to label them to avoid confusion\n    if (typeof value === 'bigint') {\n      return `[BigInt: ${String(value)}]`;\n    }\n\n    // Now that we've knocked out all the special cases and the primitives, all we have left are objects. Simply casting\n    // them to strings means that instances of classes which haven't defined their `toStringTag` will just come out as\n    // `\"[object Object]\"`. If we instead look at the constructor's name (which is the same as the name of the class),\n    // we can make sure that only plain objects come out that way.\n    const objName = getConstructorName(value);\n\n    return `[object ${objName}]`;\n  } catch (err) {\n    return `**non-serializable** (${err})`;\n  }\n}\n/* eslint-enable complexity */\n\nfunction getConstructorName(value: unknown): string {\n  const prototype: Prototype | null = Object.getPrototypeOf(value);\n\n  return prototype?.constructor ? prototype.constructor.name : 'null prototype';\n}\n\n/** Calculates bytes size of input string */\nfunction utf8Length(value: string): number {\n  // eslint-disable-next-line no-bitwise\n  return ~-encodeURI(value).split(/%..|./).length;\n}\n\n/** Calculates bytes size of input object */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nfunction jsonSize(value: any): number {\n  return utf8Length(JSON.stringify(value));\n}\n\n/**\n * Normalizes URLs in exceptions and stacktraces to a base path so Sentry can fingerprint\n * across platforms and working directory.\n *\n * @param url The URL to be normalized.\n * @param basePath The application base path.\n * @returns The normalized URL.\n */\nexport function normalizeUrlToBase(url: string, basePath: string): string {\n  const escapedBase = basePath\n    // Backslash to forward\n    .replace(/\\\\/g, '/')\n    // Escape RegExp special characters\n    .replace(/[|\\\\{}()[\\]^$+*?.]/g, '\\\\$&');\n\n  let newUrl = url;\n  try {\n    newUrl = decodeURI(url);\n  } catch {\n    // Sometime this breaks\n  }\n  return (\n    newUrl\n      .replace(/\\\\/g, '/')\n      .replace(/webpack:\\/?/g, '') // Remove intermediate base path\n      // oxlint-disable-next-line sdk/no-regexp-constructor\n      .replace(new RegExp(`(file://)?/*${escapedBase}/*`, 'ig'), 'app:///')\n  );\n}\n\n/**\n * Helper to decycle json objects\n */\nfunction memoBuilder(): MemoFunc {\n  const inner = new WeakSet<object>();\n  function memoize(obj: object): boolean {\n    if (inner.has(obj)) {\n      return true;\n    }\n    inner.add(obj);\n    return false;\n  }\n\n  function unmemoize(obj: object): void {\n    inner.delete(obj);\n  }\n  return [memoize, unmemoize];\n}\n","import { isPrimitive, isRegExp, isString } from './is';\nimport { stringifyValue } from './normalize';\n\nexport { escapeStringForRegex } from '../vendor/escapeStringForRegex';\n\n/**\n * Coerce a value to a string without ever throwing. Strings pass through unchanged (so an\n * already-serialized value isn't double-encoded and a plain string isn't wrapped in quotes);\n * anything else is `JSON.stringify`-ed, falling back to `fallback` if that throws (e.g. on\n * circular references or `BigInt`). Returns `undefined` for values `JSON.stringify` itself drops\n * (top-level `undefined`, functions, symbols), matching `JSON.stringify`'s own runtime behavior.\n *\n * @param value the value to stringify\n * @param fallback returned when serialization throws, or, if a function, called with `value` to\n *   produce the fallback. Defaults to `'[unserializable]'`.\n */\nexport function stringify(\n  value: unknown,\n  fallback: string | ((value: unknown) => string) = '[unserializable]',\n): string | undefined {\n  if (typeof value === 'string') {\n    return value;\n  }\n  try {\n    return JSON.stringify(value);\n  } catch {\n    return typeof fallback === 'function' ? fallback(value) : fallback;\n  }\n}\n\n/**\n * Truncates given string to the maximum characters count\n *\n * @param str An object that contains serializable values\n * @param max Maximum number of characters in truncated string (0 = unlimited)\n * @returns string Encoded\n */\nexport function truncate(str: string, max: number = 0): string {\n  if (typeof str !== 'string' || max === 0) {\n    return str;\n  }\n  return str.length <= max ? str : `${str.slice(0, max)}...`;\n}\n\n/**\n * This is basically just `trim_line` from\n * https://github.com/getsentry/sentry/blob/master/src/sentry/lang/javascript/processor.py#L67\n *\n * @param str An object that contains serializable values\n * @param max Maximum number of characters in truncated string\n * @returns string Encoded\n */\nexport function snipLine(line: string, colno: number): string {\n  let newLine = line;\n  const lineLength = newLine.length;\n  if (lineLength <= 150) {\n    return newLine;\n  }\n  if (colno > lineLength) {\n    // eslint-disable-next-line no-param-reassign\n    colno = lineLength;\n  }\n\n  let start = Math.max(colno - 60, 0);\n  if (start < 5) {\n    start = 0;\n  }\n\n  let end = Math.min(start + 140, lineLength);\n  if (end > lineLength - 5) {\n    end = lineLength;\n  }\n  if (end === lineLength) {\n    start = Math.max(end - 140, 0);\n  }\n\n  newLine = newLine.slice(start, end);\n  if (start > 0) {\n    newLine = `'{snip} ${newLine}`;\n  }\n  if (end < lineLength) {\n    newLine += ' {snip}';\n  }\n\n  return newLine;\n}\n\n/**\n * Join values in array\n * @param input array of values to be joined together\n * @param delimiter string to be placed in-between values\n * @returns Joined values\n */\nexport function safeJoin(input: unknown[], delimiter?: string): string {\n  if (!Array.isArray(input)) {\n    return '';\n  }\n\n  const output = [];\n  // eslint-disable-next-line typescript/prefer-for-of\n  for (let i = 0; i < input.length; i++) {\n    const value = input[i];\n    if (isPrimitive(value)) {\n      output.push(String(value));\n    } else if (value instanceof Error) {\n      // While stringifyValue does not special-case errors, because we later handle them specifically based on the [object XXX] fallback,\n      // in this method we want to render them more nicely\n      output.push(value.message ? `${value.name}: ${value.message}` : value.name);\n    } else {\n      output.push(stringifyValue(undefined, value));\n    }\n  }\n\n  return output.join(delimiter);\n}\n\n/**\n * Checks if the given value matches a regex or string\n *\n * @param value The string to test\n * @param pattern Either a regex or a string against which `value` will be matched\n * @param requireExactStringMatch If true, `value` must match `pattern` exactly. If false, `value` will match\n * `pattern` if it contains `pattern`. Only applies to string-type patterns.\n */\nexport function isMatchingPattern(\n  value: string,\n  pattern: RegExp | string | ((value: string) => boolean),\n  requireExactStringMatch: boolean = false,\n): boolean {\n  if (!isString(value)) {\n    return false;\n  }\n\n  if (isRegExp(pattern)) {\n    return pattern.test(value);\n  }\n  if (isString(pattern)) {\n    return requireExactStringMatch ? value === pattern : value.includes(pattern);\n  }\n  if (typeof pattern === 'function') {\n    return pattern(value);\n  }\n\n  return false;\n}\n\n/**\n * Test the given string against an array of strings and regexes. By default, string matching is done on a\n * substring-inclusion basis rather than a strict equality basis\n *\n * @param testString The string to test\n * @param patterns The patterns against which to test the string\n * @param requireExactStringMatch If true, `testString` must match one of the given string patterns exactly in order to\n * count. If false, `testString` will match a string pattern if it contains that pattern.\n * @returns\n */\nexport function stringMatchesSomePattern(\n  testString: string,\n  patterns:\n    | Array<string | RegExp | ((value: string) => boolean)>\n    | Set<string | RegExp | ((value: string) => boolean)> = [],\n  requireExactStringMatch: boolean = false,\n): boolean {\n  for (const pattern of patterns) {\n    if (isMatchingPattern(testString, pattern, requireExactStringMatch)) {\n      return true;\n    }\n  }\n  return false;\n}\n","/* eslint-disable max-lines */\nimport type { AttributeObject, RawAttribute, RawAttributes } from './attributes';\nimport type { Client } from './client';\nimport { DEBUG_BUILD } from './debug-build';\nimport { updateSession } from './session';\nimport type { Attachment } from './types/attachment';\nimport type { Breadcrumb } from './types/breadcrumb';\nimport type { Context, Contexts } from './types/context';\nimport type { DynamicSamplingContext } from './types/envelope';\nimport type { Event, EventHint } from './types/event';\nimport type { EventProcessor } from './types/eventprocessor';\nimport type { Extra, Extras } from './types/extra';\nimport type { Primitive } from './types/misc';\nimport type { RequestEventData } from './types/request';\nimport type { Session } from './types/session';\nimport type { SeverityLevel } from './types/severity';\nimport type { PropagationContext } from './types/tracing';\nimport type { User } from './types/user';\nimport { debug } from './utils/debug-logger';\nimport { isPlainObject } from './utils/is';\nimport { addNonEnumerableProperty } from './utils/object';\nimport { merge } from './utils/merge';\nimport { uuid4 } from './utils/misc';\nimport { generateTraceId } from './utils/propagationContext';\nimport { safeMathRandom } from './utils/randomSafeContext';\nimport { truncate } from './utils/string';\nimport { dateTimestampInSeconds } from './utils/time';\n\n/**\n * Default value for maximum number of breadcrumbs added to an event.\n */\nconst DEFAULT_MAX_BREADCRUMBS = 100;\n\n/**\n * A context to be used for capturing an event.\n * This can either be a Scope, or a partial ScopeContext,\n * or a callback that receives the current scope and returns a new scope to use.\n */\nexport type CaptureContext = Scope | Partial<ScopeContext> | ((scope: Scope) => Scope);\n\n/**\n * Data that can be converted to a Scope.\n */\nexport interface ScopeContext {\n  user: User;\n  level: SeverityLevel;\n  extra: Extras;\n  contexts: Contexts;\n  tags: { [key: string]: Primitive };\n  attributes?: RawAttributes<Record<string, unknown>>;\n  fingerprint: string[];\n  propagationContext: PropagationContext;\n  conversationId?: string;\n}\n\nexport interface SdkProcessingMetadata {\n  [key: string]: unknown;\n  requestSession?: {\n    status: 'ok' | 'errored' | 'crashed';\n  };\n  normalizedRequest?: RequestEventData;\n  dynamicSamplingContext?: Partial<DynamicSamplingContext>;\n  capturedSpanScope?: Scope;\n  capturedSpanIsolationScope?: Scope;\n  spanCountBeforeProcessing?: number;\n  ipAddress?: string;\n}\n\n/**\n * Normalized data of the Scope, ready to be used.\n */\nexport interface ScopeData {\n  eventProcessors: EventProcessor[];\n  breadcrumbs: Breadcrumb[];\n  user: User;\n  tags: { [key: string]: Primitive };\n  attributes: RawAttributes<Record<string, unknown>>;\n  extra: Extras;\n  contexts: Contexts;\n  attachments: Attachment[];\n  propagationContext: PropagationContext;\n  sdkProcessingMetadata: SdkProcessingMetadata;\n  fingerprint: string[];\n  level?: SeverityLevel;\n  transactionName?: string;\n  conversationId?: string;\n}\n\n/**\n * Holds additional event information.\n */\nexport class Scope {\n  /** Flag if notifying is happening. */\n  protected _notifyingListeners: boolean;\n\n  /** Callback for client to receive scope changes. */\n  protected _scopeListeners: Array<(scope: Scope) => void>;\n\n  /** Callback list that will be called during event processing. */\n  protected _eventProcessors: EventProcessor[];\n\n  /** Array of breadcrumbs. */\n  protected _breadcrumbs: Breadcrumb[];\n\n  /** User */\n  protected _user: User;\n\n  /** Tags */\n  protected _tags: { [key: string]: Primitive };\n\n  /** Attributes */\n  protected _attributes: RawAttributes<Record<string, unknown>>;\n\n  /** Extra */\n  protected _extra: Extras;\n\n  /** Contexts */\n  protected _contexts: Contexts;\n\n  /** Attachments */\n  protected _attachments: Attachment[];\n\n  /** Propagation Context for distributed tracing */\n  protected _propagationContext: PropagationContext;\n\n  /**\n   * A place to stash data which is needed at some point in the SDK's event processing pipeline but which shouldn't get\n   * sent to Sentry\n   */\n  protected _sdkProcessingMetadata: SdkProcessingMetadata;\n\n  /** Fingerprint */\n  protected _fingerprint?: string[];\n\n  /** Severity */\n  protected _level?: SeverityLevel;\n\n  /**\n   * Transaction Name\n   *\n   * IMPORTANT: The transaction name on the scope has nothing to do with root spans/transaction objects.\n   * It's purpose is to assign a transaction to the scope that's added to non-transaction events.\n   */\n  protected _transactionName?: string;\n\n  /** Session */\n  protected _session?: Session;\n\n  /** The client on this scope */\n  protected _client?: Client;\n\n  /** Contains the last event id of a captured event.  */\n  protected _lastEventId?: string;\n\n  /** Conversation ID */\n  protected _conversationId?: string;\n\n  /**\n   * A place to stash references to objects that are associated with this scope but should not be serialized,\n   * such as the currently active span (core) or the OpenTelemetry context (opentelemetry).\n   * These are cloned as-is (shallow) when the scope is cloned, so they survive `clone()`.\n   *\n   * This is non-enumerable so it does not leak into `toJSON`, `Object.keys` or structural comparisons.\n   */\n  declare public refs: Record<string, unknown>;\n\n  // NOTE: Any field which gets added here should get added not only to the constructor but also to the `clone` method.\n\n  public constructor() {\n    this._notifyingListeners = false;\n    this._scopeListeners = [];\n    this._eventProcessors = [];\n    this._breadcrumbs = [];\n    this._attachments = [];\n    this._user = {};\n    this._tags = {};\n    this._attributes = {};\n    this._extra = {};\n    this._contexts = {};\n    this._sdkProcessingMetadata = {};\n    addNonEnumerableProperty(this, 'refs', {});\n    this._propagationContext = {\n      traceId: generateTraceId(),\n      sampleRand: safeMathRandom(),\n    };\n  }\n\n  /**\n   * Clone all data from this scope into a new scope.\n   */\n  public clone(): Scope {\n    const newScope = new Scope();\n    newScope._breadcrumbs = [...this._breadcrumbs];\n    newScope._tags = { ...this._tags };\n    newScope._attributes = { ...this._attributes };\n    newScope._extra = { ...this._extra };\n    newScope._contexts = { ...this._contexts };\n    if (this._contexts.flags) {\n      // We need to copy the `values` array so insertions on a cloned scope\n      // won't affect the original array.\n      newScope._contexts.flags = {\n        values: [...this._contexts.flags.values],\n      };\n    }\n\n    newScope._user = this._user;\n    newScope._level = this._level;\n    newScope._session = this._session;\n    newScope._transactionName = this._transactionName;\n    newScope._fingerprint = this._fingerprint;\n    newScope._eventProcessors = [...this._eventProcessors];\n    newScope._attachments = [...this._attachments];\n    newScope._sdkProcessingMetadata = { ...this._sdkProcessingMetadata };\n    newScope._propagationContext = { ...this._propagationContext };\n    newScope._client = this._client;\n    newScope._lastEventId = this._lastEventId;\n    newScope._conversationId = this._conversationId;\n    newScope.refs = { ...this.refs };\n\n    return newScope;\n  }\n\n  /**\n   * Update the client assigned to this scope.\n   * Note that not every scope will have a client assigned - isolation scopes & the global scope will generally not have a client,\n   * as well as manually created scopes.\n   */\n  public setClient(client: Client | undefined): void {\n    this._client = client;\n  }\n\n  /**\n   * Set the ID of the last captured error event.\n   * This is generally only captured on the isolation scope.\n   */\n  public setLastEventId(lastEventId: string | undefined): void {\n    this._lastEventId = lastEventId;\n  }\n\n  /**\n   * Get the client assigned to this scope.\n   */\n  public getClient<C extends Client>(): C | undefined {\n    return this._client as C | undefined;\n  }\n\n  /**\n   * Get the ID of the last captured error event.\n   * This is generally only available on the isolation scope.\n   */\n  public lastEventId(): string | undefined {\n    return this._lastEventId;\n  }\n\n  /**\n   * @inheritDoc\n   */\n  public addScopeListener(callback: (scope: Scope) => void): void {\n    this._scopeListeners.push(callback);\n  }\n\n  /**\n   * Add an event processor that will be called before an event is sent.\n   */\n  public addEventProcessor(callback: EventProcessor): this {\n    this._eventProcessors.push(callback);\n    return this;\n  }\n\n  /**\n   * Set the user for this scope.\n   * Set to `null` to unset the user.\n   */\n  public setUser(user: User | null): this {\n    // If null is passed we want to unset everything, but still define keys,\n    // so that later down in the pipeline any existing values are cleared.\n    this._user = user || {\n      email: undefined,\n      id: undefined,\n      ip_address: undefined,\n      username: undefined,\n    };\n\n    if (this._session) {\n      updateSession(this._session, { user });\n    }\n\n    this._notifyScopeListeners();\n    return this;\n  }\n\n  /**\n   * Get the user from this scope.\n   */\n  public getUser(): User | undefined {\n    return this._user;\n  }\n\n  /**\n   * Set the conversation ID for this scope.\n   * Set to `null` to unset the conversation ID.\n   */\n  public setConversationId(conversationId: string | null | undefined): this {\n    this._conversationId = conversationId || undefined;\n    this._notifyScopeListeners();\n    return this;\n  }\n\n  /**\n   * Set an object that will be merged into existing tags on the scope,\n   * and will be sent as tags data with the event.\n   */\n  public setTags(tags: { [key: string]: Primitive }): this {\n    this._tags = {\n      ...this._tags,\n      ...tags,\n    };\n    this._notifyScopeListeners();\n    return this;\n  }\n\n  /**\n   * Set a single tag that will be sent as tags data with the event.\n   */\n  public setTag(key: string, value: Primitive): this {\n    return this.setTags({ [key]: value });\n  }\n\n  /**\n   * Sets attributes onto the scope.\n   *\n   * These attributes are applied to logs, metrics and streamed spans.\n   *\n   * Supported attribute value types are `string`, `number`, `boolean`, `string[]`, `number[]` and `boolean[]`.\n   *\n   * @param newAttributes - The attributes to set on the scope, as key-value pairs.\n   *\n   * @example\n   * ```typescript\n   * scope.setAttributes({\n   *   is_admin: true,\n   *   payment_selection: 'credit_card',\n   *   render_duration: 150,\n   * });\n   * ```\n   */\n  public setAttributes<T extends Record<string, unknown>>(newAttributes: RawAttributes<T>): this {\n    this._attributes = {\n      ...this._attributes,\n      ...newAttributes,\n    };\n\n    this._notifyScopeListeners();\n    return this;\n  }\n\n  /**\n   * Sets an attribute onto the scope.\n   *\n   * These attributes are applied to logs, metrics and streamed spans.\n   *\n   * Supported attribute value types are `string`, `number`, `boolean`, `string[]`, `number[]` and `boolean[]`.\n   *\n   * @param key - The attribute key.\n   * @param value - The attribute value.\n   *\n   * @example\n   * ```typescript\n   * scope.setAttribute('is_admin', true);\n   * scope.setAttribute('render_duration', 150);\n   * ```\n   */\n  // eslint-disable-next-line @typescript-eslint/no-explicit-any\n  public setAttribute<T extends (RawAttribute<T> extends { value: any } | { unit: any } ? AttributeObject : unknown)>(\n    key: string,\n    value: RawAttribute<T>,\n  ): this {\n    return this.setAttributes({ [key]: value });\n  }\n\n  /**\n   * Removes the attribute with the given key from the scope.\n   *\n   * @param key - The attribute key.\n   *\n   * @example\n   * ```typescript\n   * scope.removeAttribute('is_admin');\n   * ```\n   */\n  public removeAttribute(key: string): this {\n    if (key in this._attributes) {\n      // eslint-disable-next-line @typescript-eslint/no-dynamic-delete\n      delete this._attributes[key];\n      this._notifyScopeListeners();\n    }\n    return this;\n  }\n\n  /**\n   * Set an object that will be merged into existing extra on the scope,\n   * and will be sent as extra data with the event.\n   */\n  public setExtras(extras: Extras): this {\n    this._extra = {\n      ...this._extra,\n      ...extras,\n    };\n    this._notifyScopeListeners();\n    return this;\n  }\n\n  /**\n   * Set a single key:value extra entry that will be sent as extra data with the event.\n   */\n  public setExtra(key: string, extra: Extra): this {\n    this._extra = { ...this._extra, [key]: extra };\n    this._notifyScopeListeners();\n    return this;\n  }\n\n  /**\n   * Sets the fingerprint on the scope to send with the events.\n   * @param {string[]} fingerprint Fingerprint to group events in Sentry.\n   */\n  public setFingerprint(fingerprint: string[]): this {\n    this._fingerprint = fingerprint;\n    this._notifyScopeListeners();\n    return this;\n  }\n\n  /**\n   * Sets the level on the scope for future events.\n   */\n  public setLevel(level: SeverityLevel): this {\n    this._level = level;\n    this._notifyScopeListeners();\n    return this;\n  }\n\n  /**\n   * Sets the transaction name on the scope so that the name of e.g. taken server route or\n   * the page location is attached to future events.\n   *\n   * IMPORTANT: Calling this function does NOT change the name of the currently active\n   * root span. If you want to change the name of the active root span, use\n   * `Sentry.updateSpanName(rootSpan, 'new name')` instead.\n   *\n   * By default, the SDK updates the scope's transaction name automatically on sensible\n   * occasions, such as a page navigation or when handling a new request on the server.\n   */\n  public setTransactionName(name?: string): this {\n    this._transactionName = name;\n    this._notifyScopeListeners();\n    return this;\n  }\n\n  /**\n   * Sets context data with the given name.\n   * Data passed as context will be normalized. You can also pass `null` to unset the context.\n   * Note that context data will not be merged - calling `setContext` will overwrite an existing context with the same key.\n   */\n  public setContext(key: string, context: Context | null): this {\n    if (context === null) {\n      // eslint-disable-next-line @typescript-eslint/no-dynamic-delete\n      delete this._contexts[key];\n    } else {\n      this._contexts[key] = context;\n    }\n\n    this._notifyScopeListeners();\n    return this;\n  }\n\n  /**\n   * Set the session for the scope.\n   */\n  public setSession(session?: Session): this {\n    if (!session) {\n      delete this._session;\n    } else {\n      this._session = session;\n    }\n    this._notifyScopeListeners();\n    return this;\n  }\n\n  /**\n   * Get the session from the scope.\n   */\n  public getSession(): Session | undefined {\n    return this._session;\n  }\n\n  /**\n   * Updates the scope with provided data. Can work in three variations:\n   * - plain object containing updatable attributes\n   * - Scope instance that'll extract the attributes from\n   * - callback function that'll receive the current scope as an argument and allow for modifications\n   */\n  public update(captureContext?: CaptureContext): this {\n    if (!captureContext) {\n      return this;\n    }\n\n    const scopeToMerge = typeof captureContext === 'function' ? captureContext(this) : captureContext;\n\n    const scopeInstance =\n      scopeToMerge instanceof Scope\n        ? scopeToMerge.getScopeData()\n        : isPlainObject(scopeToMerge)\n          ? (captureContext as ScopeContext)\n          : undefined;\n\n    const {\n      tags,\n      attributes,\n      extra,\n      user,\n      contexts,\n      level,\n      fingerprint = [],\n      propagationContext,\n      conversationId,\n    } = scopeInstance || {};\n\n    this._tags = { ...this._tags, ...tags };\n    this._attributes = { ...this._attributes, ...attributes };\n    this._extra = { ...this._extra, ...extra };\n    this._contexts = { ...this._contexts, ...contexts };\n\n    if (user && Object.keys(user).length) {\n      this._user = user;\n    }\n\n    if (level) {\n      this._level = level;\n    }\n\n    if (fingerprint.length) {\n      this._fingerprint = fingerprint;\n    }\n\n    if (propagationContext) {\n      this._propagationContext = propagationContext;\n    }\n\n    if (conversationId) {\n      this._conversationId = conversationId;\n    }\n\n    return this;\n  }\n\n  /**\n   * Adds a breadcrumb to the scope.\n   * By default, the last 100 breadcrumbs are kept.\n   */\n  public addBreadcrumb(breadcrumb: Breadcrumb, maxBreadcrumbs?: number): this {\n    const maxCrumbs = typeof maxBreadcrumbs === 'number' ? maxBreadcrumbs : DEFAULT_MAX_BREADCRUMBS;\n\n    // No data has been changed, so don't notify scope listeners\n    if (maxCrumbs <= 0) {\n      return this;\n    }\n\n    const mergedBreadcrumb: Breadcrumb = {\n      timestamp: dateTimestampInSeconds(),\n      ...breadcrumb,\n      // Breadcrumb messages can theoretically be infinitely large and they're held in memory so we truncate them not to leak (too much) memory\n      message: breadcrumb.message ? truncate(breadcrumb.message, 2048) : breadcrumb.message,\n    };\n\n    this._breadcrumbs.push(mergedBreadcrumb);\n    if (this._breadcrumbs.length > maxCrumbs) {\n      this._breadcrumbs = this._breadcrumbs.slice(-maxCrumbs);\n    }\n\n    this._notifyScopeListeners();\n\n    return this;\n  }\n\n  /**\n   * Get the last breadcrumb of the scope.\n   */\n  public getLastBreadcrumb(): Breadcrumb | undefined {\n    return this._breadcrumbs[this._breadcrumbs.length - 1];\n  }\n\n  /**\n   * Clear all breadcrumbs from the scope.\n   */\n  public clearBreadcrumbs(): this {\n    this._breadcrumbs = [];\n    this._notifyScopeListeners();\n    return this;\n  }\n\n  /**\n   * Add an attachment to the scope.\n   */\n  public addAttachment(attachment: Attachment): this {\n    this._attachments.push(attachment);\n    return this;\n  }\n\n  /**\n   * Clear all attachments from the scope.\n   */\n  public clearAttachments(): this {\n    this._attachments = [];\n    return this;\n  }\n\n  /**\n   * Get the data of this scope, which should be applied to an event during processing.\n   */\n  public getScopeData(): ScopeData {\n    return {\n      breadcrumbs: this._breadcrumbs,\n      attachments: this._attachments,\n      contexts: this._contexts,\n      tags: this._tags,\n      attributes: this._attributes,\n      extra: this._extra,\n      user: this._user,\n      level: this._level,\n      fingerprint: this._fingerprint || [],\n      eventProcessors: this._eventProcessors,\n      propagationContext: this._propagationContext,\n      sdkProcessingMetadata: this._sdkProcessingMetadata,\n      transactionName: this._transactionName,\n      conversationId: this._conversationId,\n    };\n  }\n\n  /**\n   * Add data which will be accessible during event processing but won't get sent to Sentry.\n   */\n  public setSDKProcessingMetadata(newData: SdkProcessingMetadata): this {\n    this._sdkProcessingMetadata = merge(this._sdkProcessingMetadata, newData, 2);\n    return this;\n  }\n\n  /**\n   * Add propagation context to the scope, used for distributed tracing\n   */\n  public setPropagationContext(context: PropagationContext): this {\n    this._propagationContext = context;\n    return this;\n  }\n\n  /**\n   * Get propagation context from the scope, used for distributed tracing\n   */\n  public getPropagationContext(): PropagationContext {\n    return this._propagationContext;\n  }\n\n  /**\n   * Capture an exception for this scope.\n   *\n   * @returns {string} The id of the captured Sentry event.\n   */\n  public captureException(exception: unknown, hint?: EventHint): string {\n    const eventId = hint?.event_id || uuid4();\n\n    if (!this._client) {\n      DEBUG_BUILD && debug.warn('No client configured on scope - will not capture exception!');\n      return eventId;\n    }\n\n    const syntheticException = new Error('Sentry syntheticException');\n\n    this._client.captureException(\n      exception,\n      {\n        originalException: exception,\n        syntheticException,\n        ...hint,\n        event_id: eventId,\n      },\n      this,\n    );\n\n    return eventId;\n  }\n\n  /**\n   * Capture a message for this scope.\n   *\n   * @returns {string} The id of the captured message.\n   */\n  public captureMessage(message: string, level?: SeverityLevel, hint?: EventHint): string {\n    const eventId = hint?.event_id || uuid4();\n\n    if (!this._client) {\n      DEBUG_BUILD && debug.warn('No client configured on scope - will not capture message!');\n      return eventId;\n    }\n\n    const syntheticException = hint?.syntheticException ?? new Error(message);\n\n    this._client.captureMessage(\n      message,\n      level,\n      {\n        originalException: message,\n        syntheticException,\n        ...hint,\n        event_id: eventId,\n      },\n      this,\n    );\n\n    return eventId;\n  }\n\n  /**\n   * Capture a Sentry event for this scope.\n   *\n   * @returns {string} The id of the captured event.\n   */\n  public captureEvent(event: Event, hint?: EventHint): string {\n    const eventId = event.event_id || hint?.event_id || uuid4();\n\n    if (!this._client) {\n      DEBUG_BUILD && debug.warn('No client configured on scope - will not capture event!');\n      return eventId;\n    }\n\n    this._client.captureEvent(event, { ...hint, event_id: eventId }, this);\n\n    return eventId;\n  }\n\n  /**\n   * This will be called on every set call.\n   */\n  protected _notifyScopeListeners(): void {\n    // We need this check for this._notifyingListeners to be able to work on scope during updates\n    // If this check is not here we'll produce endless recursion when something is done with the scope\n    // during the callback.\n    if (!this._notifyingListeners) {\n      this._notifyingListeners = true;\n      this._scopeListeners.forEach(callback => {\n        callback(this);\n      });\n      this._notifyingListeners = false;\n    }\n  }\n}\n","export const SUPPRESS_TRACING_KEY = '__SENTRY_SUPPRESS_TRACING__';\n","const isActualPromise = (p: unknown) =>\n  p instanceof Promise && !(p as unknown as ChainedPromiseLike<unknown>)[kChainedCopy];\n\ntype ChainedPromiseLike<T> = PromiseLike<T> & {\n  [kChainedCopy]: true;\n};\nconst kChainedCopy = Symbol('chained PromiseLike');\n\n/**\n * Copy the properties from a decorated promiselike object onto its chained\n * actual promise.\n */\nexport const chainAndCopyPromiseLike = <V, T extends PromiseLike<V>>(\n  original: T,\n  onSuccess: (value: V) => void,\n  onError: (e: unknown) => void,\n): T => {\n  const chained = original.then(\n    value => {\n      onSuccess(value);\n      return value;\n    },\n    err => {\n      onError(err);\n      throw err;\n    },\n  ) as T;\n\n  // if we're just dealing with \"normal\" Promise objects, return the chain\n  return isActualPromise(chained) && isActualPromise(original) ? chained : copyProps(original, chained);\n};\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nconst copyProps = <T extends Record<string, any>>(original: T, chained: T): T => {\n  if (!chained) return original;\n  let mutated = false;\n  //oxlint-disable-next-line guard-for-in\n  for (const key in original) {\n    if (key in chained) continue;\n    mutated = true;\n    const value = original[key];\n    if (typeof value === 'function') {\n      Object.defineProperty(chained, key, {\n        value: (...args: unknown[]) => value.apply(original, args),\n        enumerable: true,\n        configurable: true,\n        writable: true,\n      });\n    } else {\n      (chained as Record<string, unknown>)[key] = value;\n    }\n  }\n\n  if (mutated) Object.assign(chained, { [kChainedCopy]: true });\n  return chained;\n};\n","import type { Client } from '../client';\nimport { getDefaultCurrentScope, getDefaultIsolationScope } from '../defaultScopes';\nimport { Scope } from '../scope';\nimport { SUPPRESS_TRACING_KEY } from '../tracing/constants';\nimport { chainAndCopyPromiseLike } from '../utils/chain-and-copy-promiselike';\nimport { isThenable } from '../utils/is';\nimport { getMainCarrier, getSentryCarrier } from './../carrier';\nimport type { AsyncContextStrategy } from './types';\n\ninterface Layer {\n  client?: Client;\n  scope: Scope;\n}\n\n/**\n * This is an object that holds a stack of scopes.\n */\nexport class AsyncContextStack {\n  private readonly _stack: [Layer, ...Layer[]];\n  private _isolationScope: Scope;\n\n  public constructor(scope?: Scope, isolationScope?: Scope) {\n    let assignedScope;\n    if (!scope) {\n      assignedScope = new Scope();\n    } else {\n      assignedScope = scope;\n    }\n\n    let assignedIsolationScope;\n    if (!isolationScope) {\n      assignedIsolationScope = new Scope();\n    } else {\n      assignedIsolationScope = isolationScope;\n    }\n\n    // scope stack for domains or the process\n    this._stack = [{ scope: assignedScope }];\n    this._isolationScope = assignedIsolationScope;\n  }\n\n  /**\n   * Fork a scope for the stack.\n   */\n  public withScope<T>(callback: (scope: Scope) => T): T {\n    const scope = this._pushScope();\n\n    let maybePromiseResult: T;\n    try {\n      maybePromiseResult = callback(scope);\n    } catch (e) {\n      this._popScope();\n      throw e;\n    }\n\n    if (isThenable(maybePromiseResult)) {\n      return chainAndCopyPromiseLike(\n        maybePromiseResult as PromiseLike<Awaited<typeof maybePromiseResult>> & Record<string, unknown>,\n        () => this._popScope(),\n        () => this._popScope(),\n      ) as T;\n    }\n\n    this._popScope();\n    return maybePromiseResult;\n  }\n\n  /**\n   * Get the client of the stack.\n   */\n  public getClient<C extends Client>(): C | undefined {\n    return this.getStackTop().client as C;\n  }\n\n  /**\n   * Returns the scope of the top stack.\n   */\n  public getScope(): Scope {\n    return this.getStackTop().scope;\n  }\n\n  /**\n   * Get the isolation scope for the stack.\n   */\n  public getIsolationScope(): Scope {\n    return this._isolationScope;\n  }\n\n  /**\n   * Returns the topmost scope layer in the order domain > local > process.\n   */\n  public getStackTop(): Layer {\n    return this._stack[this._stack.length - 1] as Layer;\n  }\n\n  /**\n   * Push a scope to the stack.\n   */\n  private _pushScope(): Scope {\n    // We want to clone the content of prev scope\n    const scope = this.getScope().clone();\n    this._stack.push({\n      client: this.getClient(),\n      scope,\n    });\n    return scope;\n  }\n\n  /**\n   * Pop a scope from the stack.\n   */\n  private _popScope(): boolean {\n    if (this._stack.length <= 1) return false;\n    return !!this._stack.pop();\n  }\n}\n\n/**\n * Get the global async context stack.\n * This will be removed during the v8 cycle and is only here to make migration easier.\n */\nfunction getAsyncContextStack(): AsyncContextStack {\n  const registry = getMainCarrier();\n  const sentry = getSentryCarrier(registry);\n\n  return (sentry.stack = sentry.stack || new AsyncContextStack(getDefaultCurrentScope(), getDefaultIsolationScope()));\n}\n\nfunction withScope<T>(callback: (scope: Scope) => T): T {\n  return getAsyncContextStack().withScope(callback);\n}\n\nfunction withSetScope<T>(scope: Scope, callback: (scope: Scope) => T): T {\n  const stack = getAsyncContextStack();\n  return stack.withScope(() => {\n    stack.getStackTop().scope = scope;\n    return callback(scope);\n  });\n}\n\nfunction withIsolationScope<T>(callback: (isolationScope: Scope) => T): T {\n  return getAsyncContextStack().withScope(() => {\n    return callback(getAsyncContextStack().getIsolationScope());\n  });\n}\n\n/**\n * Get the stack-based async context strategy.\n */\nexport function getStackAsyncContextStrategy(): AsyncContextStrategy {\n  return {\n    suppressTracing: suppressTracingInStack,\n    withIsolationScope,\n    withScope,\n    withSetScope,\n    withSetIsolationScope: <T>(_isolationScope: Scope, callback: (isolationScope: Scope) => T) => {\n      return withIsolationScope(callback);\n    },\n    getCurrentScope: () => getAsyncContextStack().getScope(),\n    getIsolationScope: () => getAsyncContextStack().getIsolationScope(),\n  };\n}\n\n/**\n * In stack-based ACS, we do not wait for the callback to finish before we reset the metadata\n * the reason for this is that otherwise, in the stack this can lead to very weird behavior\n * as there is only a single top scope, if the callback takes longer to finish,\n * other, unrelated spans may also be suppressed, which we do not want\n * so instead, we only suppress tracing synchronoysly in the stack.\n */\nfunction suppressTracingInStack<T>(callback: () => T): T {\n  return withScope(scope => {\n    scope.setSDKProcessingMetadata({ [SUPPRESS_TRACING_KEY]: true });\n    const res = callback();\n    scope.setSDKProcessingMetadata({ [SUPPRESS_TRACING_KEY]: undefined });\n    return res;\n  });\n}\n","import { getGlobalSingleton } from './carrier';\nimport { Scope } from './scope';\n\n/** Get the default current scope. */\nexport function getDefaultCurrentScope(): Scope {\n  return getGlobalSingleton('defaultCurrentScope', () => new Scope());\n}\n\n/** Get the default isolation scope. */\nexport function getDefaultIsolationScope(): Scope {\n  return getGlobalSingleton('defaultIsolationScope', () => new Scope());\n}\n","import type { Carrier } from './../carrier';\nimport { getMainCarrier, getSentryCarrier } from './../carrier';\nimport { getStackAsyncContextStrategy } from './stackStrategy';\nimport type { AsyncContextStrategy } from './types';\n\n/**\n * @private Private API with no semver guarantees!\n *\n * Sets the global async context strategy\n */\nexport function setAsyncContextStrategy(strategy: AsyncContextStrategy | undefined): void {\n  // Get main carrier (global for every environment)\n  const registry = getMainCarrier();\n  const sentry = getSentryCarrier(registry);\n  sentry.acs = strategy;\n}\n\n/**\n * Get the current async context strategy.\n * If none has been setup, the default will be used.\n */\nexport function getAsyncContextStrategy(carrier: Carrier): AsyncContextStrategy {\n  const sentry = getSentryCarrier(carrier);\n\n  if (sentry.acs) {\n    return sentry.acs;\n  }\n\n  // Otherwise, use the default one (stack)\n  return getStackAsyncContextStrategy();\n}\n","import { getAsyncContextStrategy } from './asyncContext';\nimport { getGlobalSingleton, getMainCarrier, getSentryCarrier } from './carrier';\nimport type { Client } from './client';\nimport { Scope } from './scope';\nimport type { TraceContext } from './types/context';\nimport { generateSpanId } from './utils/propagationContext';\n\n/**\n * Register an external propagation context provider function.\n * When registered, trace context will be read from the external source (e.g. OpenTelemetry)\n * instead of from the Sentry scope's propagation context.\n */\nexport function registerExternalPropagationContext(fn: () => { traceId: string; spanId: string } | undefined): void {\n  // Kept on the carrier rather than in module state: bundlers routinely emit more than one copy of\n  // `@sentry/core` (e.g. one per Next.js server chunk), and the copy the integration registers on is\n  // usually not the copy that reads it back when an event is assembled.\n  getSentryCarrier(getMainCarrier()).externalPropagationContextProvider = fn;\n}\n\n/**\n * Get the external propagation context, if a provider has been registered.\n */\nexport function getExternalPropagationContext(): { traceId: string; spanId: string } | undefined {\n  return getSentryCarrier(getMainCarrier()).externalPropagationContextProvider?.();\n}\n\n/**\n * Check if an external propagation context provider has been registered.\n */\nexport function hasExternalPropagationContext(): boolean {\n  return getSentryCarrier(getMainCarrier()).externalPropagationContextProvider !== undefined;\n}\n\n/**\n * Get the currently active scope.\n */\nexport function getCurrentScope(): Scope {\n  const carrier = getMainCarrier();\n  const acs = getAsyncContextStrategy(carrier);\n  return acs.getCurrentScope();\n}\n\n/**\n * Get the currently active isolation scope.\n * The isolation scope is active for the current execution context.\n */\nexport function getIsolationScope(): Scope {\n  const carrier = getMainCarrier();\n  const acs = getAsyncContextStrategy(carrier);\n  return acs.getIsolationScope();\n}\n\n/**\n * Get the global scope.\n * This scope is applied to _all_ events.\n */\nexport function getGlobalScope(): Scope {\n  return getGlobalSingleton('globalScope', () => new Scope());\n}\n\n/**\n * Creates a new scope with and executes the given operation within.\n * The scope is automatically removed once the operation\n * finishes or throws.\n */\nexport function withScope<T>(callback: (scope: Scope) => T): T;\n/**\n * Set the given scope as the active scope in the callback.\n */\nexport function withScope<T>(scope: Scope | undefined, callback: (scope: Scope) => T): T;\n/**\n * Either creates a new active scope, or sets the given scope as active scope in the given callback.\n */\nexport function withScope<T>(\n  ...rest: [callback: (scope: Scope) => T] | [scope: Scope | undefined, callback: (scope: Scope) => T]\n): T {\n  const carrier = getMainCarrier();\n  const acs = getAsyncContextStrategy(carrier);\n\n  // If a scope is defined, we want to make this the active scope instead of the default one\n  if (rest.length === 2) {\n    const [scope, callback] = rest;\n\n    if (!scope) {\n      return acs.withScope(callback);\n    }\n\n    return acs.withSetScope(scope, callback);\n  }\n\n  return acs.withScope(rest[0]);\n}\n\n/**\n * Attempts to fork the current isolation scope and the current scope based on the current async context strategy. If no\n * async context strategy is set, the isolation scope and the current scope will not be forked (this is currently the\n * case, for example, in the browser).\n *\n * Usage of this function in environments without async context strategy is discouraged and may lead to unexpected behaviour.\n *\n * This function is intended for Sentry SDK and SDK integration development. It is not recommended to be used in \"normal\"\n * applications directly because it comes with pitfalls. Use at your own risk!\n */\nexport function withIsolationScope<T>(callback: (isolationScope: Scope) => T): T;\n/**\n * Set the provided isolation scope as active in the given callback. If no\n * async context strategy is set, the isolation scope and the current scope will not be forked (this is currently the\n * case, for example, in the browser).\n *\n * Usage of this function in environments without async context strategy is discouraged and may lead to unexpected behaviour.\n *\n * This function is intended for Sentry SDK and SDK integration development. It is not recommended to be used in \"normal\"\n * applications directly because it comes with pitfalls. Use at your own risk!\n *\n * If you pass in `undefined` as a scope, it will fork a new isolation scope, the same as if no scope is passed.\n */\nexport function withIsolationScope<T>(isolationScope: Scope | undefined, callback: (isolationScope: Scope) => T): T;\n/**\n * Either creates a new active isolation scope, or sets the given isolation scope as active scope in the given callback.\n */\nexport function withIsolationScope<T>(\n  ...rest:\n    | [callback: (isolationScope: Scope) => T]\n    | [isolationScope: Scope | undefined, callback: (isolationScope: Scope) => T]\n): T {\n  const carrier = getMainCarrier();\n  const acs = getAsyncContextStrategy(carrier);\n\n  // If a scope is defined, we want to make this the active scope instead of the default one\n  if (rest.length === 2) {\n    const [isolationScope, callback] = rest;\n\n    if (!isolationScope) {\n      return acs.withIsolationScope(callback);\n    }\n\n    return acs.withSetIsolationScope(isolationScope, callback);\n  }\n\n  return acs.withIsolationScope(rest[0]);\n}\n\n/**\n * Get the currently active client.\n */\nexport function getClient<C extends Client>(): C | undefined {\n  return getCurrentScope().getClient<C>();\n}\n\n/**\n * Get a trace context for the given scope.\n */\nexport function getTraceContextFromScope(scope: Scope): TraceContext {\n  const externalContext = getExternalPropagationContext();\n  if (externalContext) {\n    return { trace_id: externalContext.traceId, span_id: externalContext.spanId };\n  }\n\n  const propagationContext = scope.getPropagationContext();\n\n  const { traceId, parentSpanId, propagationSpanId } = propagationContext;\n\n  const traceContext: TraceContext = {\n    trace_id: traceId,\n    span_id: propagationSpanId || generateSpanId(),\n  };\n\n  if (parentSpanId) {\n    traceContext.parent_span_id = parentSpanId;\n  }\n\n  return traceContext;\n}\n","export const DEFAULT_ENVIRONMENT = 'production';\nexport const DEV_ENVIRONMENT = 'development';\n","import { DEBUG_BUILD } from '../debug-build';\nimport { debug } from './debug-logger';\nimport { isThenable } from './is';\n\n/**\n * Lets a `safeCallback` fallback signal \"the callback failed\" as opposed to \"the callback returned `null`\",\n * so the call site can report the drop as `callback_error`. Always return it, never throw it: a thrown\n * sentinel would have to be caught at every boundary, and some of those (e.g. `prepareEvent`) are public.\n */\nexport const CALLBACK_ERROR = Symbol.for('SentryCallbackError');\n\n/**\n * Invokes a user-provided callback (e.g. `beforeSend`, `tracesSampler`, an integration hook) so that\n * neither a synchronous throw nor a rejected promise escapes into the caller. On failure the error is\n * logged and `fallback(error)` supplies the result instead.\n *\n * Not for `startSpan` bodies: those must re-throw and are handled by `handleCallbackErrors`.\n *\n * @param message - Logged via `debug.error` together with the error. Pass it as `DEBUG_BUILD ? '...' : ''`\n *   so the string is tree-shaken from non-debug bundles.\n * @param fn - Invokes the callback.\n * @param fallback - Produces the result to use when the callback throws or rejects.\n */\nexport function safeCallback<T>(message: string, fn: () => T, fallback: (error: unknown) => T): T {\n  let result: T;\n  try {\n    result = fn();\n  } catch (error) {\n    return recover(message, error, fallback);\n  }\n\n  if (isThenable(result)) {\n    return result.then(undefined, (error: unknown) => recover(message, error, fallback)) as T;\n  }\n\n  return result;\n}\n\nfunction recover<T>(message: string, error: unknown, fallback: (error: unknown) => T): T {\n  DEBUG_BUILD && debug.error(message, error);\n  return fallback(error);\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { isThenable } from './is';\n\n/** SyncPromise internal states */\nconst STATE_PENDING = 0;\nconst STATE_RESOLVED = 1;\nconst STATE_REJECTED = 2;\n\ntype State = typeof STATE_PENDING | typeof STATE_RESOLVED | typeof STATE_REJECTED;\n\n// Overloads so we can call resolvedSyncPromise without arguments and generic argument\nexport function resolvedSyncPromise(): PromiseLike<void>;\nexport function resolvedSyncPromise<T>(value: T | PromiseLike<T>): PromiseLike<T>;\n\n/**\n * Creates a resolved sync promise.\n *\n * @param value the value to resolve the promise with\n * @returns the resolved sync promise\n */\nexport function resolvedSyncPromise<T>(value?: T | PromiseLike<T>): PromiseLike<T> {\n  return new SyncPromise(resolve => {\n    resolve(value);\n  });\n}\n\n/**\n * Creates a rejected sync promise.\n *\n * @param value the value to reject the promise with\n * @returns the rejected sync promise\n */\nexport function rejectedSyncPromise<T = never>(reason?: any): PromiseLike<T> {\n  return new SyncPromise((_, reject) => {\n    reject(reason);\n  });\n}\n\ntype Executor<T> = (resolve: (value?: T | PromiseLike<T> | null) => void, reject: (reason?: any) => void) => void;\n\n/**\n * Thenable class that behaves like a Promise and follows it's interface\n * but is not async internally\n */\nexport class SyncPromise<T> implements PromiseLike<T> {\n  private _state: State;\n  private _handlers: Array<[boolean, (value: T) => void, (reason: any) => any]>;\n  private _value: any;\n\n  public constructor(executor: Executor<T>) {\n    this._state = STATE_PENDING;\n    this._handlers = [];\n\n    this._runExecutor(executor);\n  }\n\n  /** @inheritdoc */\n  public then<TResult1 = T, TResult2 = never>(\n    onfulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | null,\n    onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null,\n  ): PromiseLike<TResult1 | TResult2> {\n    return new SyncPromise((resolve, reject) => {\n      this._handlers.push([\n        false,\n        result => {\n          if (!onfulfilled) {\n            // TODO: ¯\\_(ツ)_/¯\n            // TODO: FIXME\n            resolve(result as any);\n          } else {\n            try {\n              resolve(onfulfilled(result));\n            } catch (e) {\n              reject(e);\n            }\n          }\n        },\n        reason => {\n          if (!onrejected) {\n            reject(reason);\n          } else {\n            try {\n              resolve(onrejected(reason));\n            } catch (e) {\n              reject(e);\n            }\n          }\n        },\n      ]);\n      this._executeHandlers();\n    });\n  }\n\n  /** @inheritdoc */\n  public catch<TResult = never>(\n    onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | null,\n  ): PromiseLike<T | TResult> {\n    return this.then(val => val, onrejected);\n  }\n\n  /** @inheritdoc */\n  public finally<TResult>(onfinally?: (() => void) | null): PromiseLike<TResult> {\n    return new SyncPromise<TResult>((resolve, reject) => {\n      let val: TResult | any;\n      let isRejected: boolean;\n\n      return this.then(\n        value => {\n          isRejected = false;\n          val = value;\n          if (onfinally) {\n            onfinally();\n          }\n        },\n        reason => {\n          isRejected = true;\n          val = reason;\n          if (onfinally) {\n            onfinally();\n          }\n        },\n      ).then(() => {\n        if (isRejected) {\n          reject(val);\n          return;\n        }\n\n        resolve(val);\n      });\n    });\n  }\n\n  /** Excute the resolve/reject handlers. */\n  private _executeHandlers(): void {\n    if (this._state === STATE_PENDING) {\n      return;\n    }\n\n    const cachedHandlers = this._handlers.slice();\n    this._handlers = [];\n\n    cachedHandlers.forEach(handler => {\n      if (handler[0]) {\n        return;\n      }\n\n      if (this._state === STATE_RESOLVED) {\n        handler[1](this._value);\n      }\n\n      if (this._state === STATE_REJECTED) {\n        handler[2](this._value);\n      }\n\n      handler[0] = true;\n    });\n  }\n\n  /** Run the executor for the SyncPromise. */\n  private _runExecutor(executor: Executor<T>): void {\n    const setResult = (state: State, value?: T | PromiseLike<T> | any): void => {\n      if (this._state !== STATE_PENDING) {\n        return;\n      }\n\n      if (isThenable(value)) {\n        void (value as PromiseLike<T>).then(resolve, reject);\n        return;\n      }\n\n      this._state = state;\n      this._value = value;\n\n      this._executeHandlers();\n    };\n\n    const resolve = (value: unknown): void => {\n      setResult(STATE_RESOLVED, value);\n    };\n\n    const reject = (reason: unknown): void => {\n      setResult(STATE_REJECTED, reason);\n    };\n\n    try {\n      executor(resolve, reject);\n    } catch (e) {\n      reject(e);\n    }\n  }\n}\n","import { DEBUG_BUILD } from './debug-build';\nimport type { Event, EventHint } from './types/event';\nimport type { EventProcessor } from './types/eventprocessor';\nimport { debug } from './utils/debug-logger';\nimport { isThenable } from './utils/is';\nimport { safeCallback } from './utils/safeCallback';\nimport { rejectedSyncPromise, resolvedSyncPromise } from './utils/syncpromise';\n\ntype EventProcessorDropReason = 'event_processor' | 'callback_error';\n\n/**\n * Process an array of event processors, returning the processed event (or `null` if the event was dropped).\n */\nexport function notifyEventProcessors(\n  processors: EventProcessor[],\n  event: Event | null,\n  hint: EventHint,\n  index: number = 0,\n  onDrop?: (reason: EventProcessorDropReason) => void,\n): PromiseLike<Event | null> {\n  try {\n    const result = _notifyEventProcessors(event, hint, processors, index, onDrop);\n    return isThenable(result) ? result : resolvedSyncPromise(result);\n  } catch (error) {\n    return rejectedSyncPromise(error);\n  }\n}\n\nfunction _notifyEventProcessors(\n  event: Event | null,\n  hint: EventHint,\n  processors: EventProcessor[],\n  index: number,\n  onDrop?: (reason: EventProcessorDropReason) => void,\n): Event | null | PromiseLike<Event | null> {\n  const processor = processors[index];\n\n  if (!event || !processor) {\n    return event;\n  }\n\n  const processorName = `Event processor \"${processor.id || '?'}\"`;\n  let callbackError = false;\n\n  const result = safeCallback(\n    DEBUG_BUILD ? `${processorName} threw an error, dropping event:` : '',\n    () => processor({ ...event }, hint),\n    () => {\n      callbackError = true;\n      return null;\n    },\n  );\n\n  DEBUG_BUILD && result === null && debug.log(`${processorName} dropped event`);\n\n  if (isThenable(result)) {\n    return result.then(final => {\n      if (!final) {\n        onDrop?.(callbackError ? 'callback_error' : 'event_processor');\n        return null;\n      }\n      return _notifyEventProcessors(final, hint, processors, index + 1, onDrop);\n    });\n  }\n\n  if (!result) {\n    onDrop?.(callbackError ? 'callback_error' : 'event_processor');\n    return null;\n  }\n  return _notifyEventProcessors(result, hint, processors, index + 1, onDrop);\n}\n","import type { DebugImage } from '../types/debugMeta';\nimport type { StackParser } from '../types/stacktrace';\nimport { normalizeStackTracePath } from './stacktrace';\nimport { GLOBAL_OBJ } from './worldwide';\n\ntype StackString = string;\ntype CachedResult = [string, string];\n\nlet parsedStackResults: Record<StackString, CachedResult> | undefined;\nlet lastSentryKeysCount: number | undefined;\nlet lastNativeKeysCount: number | undefined;\nlet cachedFilenameDebugIds: Record<string, string> | undefined;\n\n/**\n * Clears the cached debug ID mappings.\n * Useful for testing or when the global debug ID state changes.\n */\nexport function clearDebugIdCache(): void {\n  parsedStackResults = undefined;\n  lastSentryKeysCount = undefined;\n  lastNativeKeysCount = undefined;\n  cachedFilenameDebugIds = undefined;\n}\n\n/**\n * Returns a map of filenames to debug identifiers.\n * Supports both proprietary _sentryDebugIds and native _debugIds (e.g., from Vercel) formats.\n */\nexport function getFilenameToDebugIdMap(stackParser: StackParser): Record<string, string> {\n  const sentryDebugIdMap = GLOBAL_OBJ._sentryDebugIds;\n  const nativeDebugIdMap = GLOBAL_OBJ._debugIds;\n\n  if (!sentryDebugIdMap && !nativeDebugIdMap) {\n    return {};\n  }\n\n  const sentryDebugIdKeys = sentryDebugIdMap ? Object.keys(sentryDebugIdMap) : [];\n  const nativeDebugIdKeys = nativeDebugIdMap ? Object.keys(nativeDebugIdMap) : [];\n\n  // If the count of registered globals hasn't changed since the last call, we\n  // can just return the cached result.\n  if (\n    cachedFilenameDebugIds &&\n    sentryDebugIdKeys.length === lastSentryKeysCount &&\n    nativeDebugIdKeys.length === lastNativeKeysCount\n  ) {\n    return cachedFilenameDebugIds;\n  }\n\n  lastSentryKeysCount = sentryDebugIdKeys.length;\n  lastNativeKeysCount = nativeDebugIdKeys.length;\n\n  // Build a map of filename -> debug_id from both sources\n  cachedFilenameDebugIds = {};\n\n  if (!parsedStackResults) {\n    parsedStackResults = {};\n  }\n\n  const processDebugIds = (debugIdKeys: string[], debugIdMap: Record<string, string>): void => {\n    for (const key of debugIdKeys) {\n      const debugId = debugIdMap[key];\n      const result = parsedStackResults?.[key];\n\n      if (result && cachedFilenameDebugIds && debugId) {\n        // Use cached filename but update with current debug ID\n        cachedFilenameDebugIds[result[0]] = debugId;\n        // Update cached result with new debug ID\n        if (parsedStackResults) {\n          parsedStackResults[key] = [result[0], debugId];\n        }\n      } else if (debugId) {\n        const parsedStack = stackParser(key);\n\n        for (let i = parsedStack.length - 1; i >= 0; i--) {\n          const stackFrame = parsedStack[i];\n          const filename = stackFrame?.filename;\n\n          if (filename && cachedFilenameDebugIds && parsedStackResults) {\n            cachedFilenameDebugIds[filename] = debugId;\n            parsedStackResults[key] = [filename, debugId];\n            break;\n          }\n        }\n      }\n    }\n  };\n\n  if (sentryDebugIdMap) {\n    processDebugIds(sentryDebugIdKeys, sentryDebugIdMap);\n  }\n\n  // Native _debugIds will override _sentryDebugIds if same file\n  if (nativeDebugIdMap) {\n    processDebugIds(nativeDebugIdKeys, nativeDebugIdMap);\n  }\n\n  return cachedFilenameDebugIds;\n}\n\n/**\n * Returns a list of debug images for the given resources.\n */\nexport function getDebugImagesForResources(\n  stackParser: StackParser,\n  resource_paths: ReadonlyArray<string>,\n): DebugImage[] {\n  const filenameDebugIdMap = getFilenameToDebugIdMap(stackParser);\n\n  if (!filenameDebugIdMap) {\n    return [];\n  }\n\n  const images: DebugImage[] = [];\n  for (const path of resource_paths) {\n    const normalizedPath = normalizeStackTracePath(path);\n    if (normalizedPath && filenameDebugIdMap[normalizedPath]) {\n      images.push({\n        type: 'sourcemap',\n        code_file: path,\n        debug_id: filenameDebugIdMap[normalizedPath],\n      });\n    }\n  }\n\n  return images;\n}\n","import type { Client } from '../client';\nimport { DEBUG_BUILD } from '../debug-build';\nimport type { DsnComponents, DsnLike, DsnProtocol } from '../types/dsn';\nimport { consoleSandbox, debug } from './debug-logger';\n\n/** Regular expression used to extract org ID from a DSN host. */\nconst ORG_ID_REGEX = /^o(\\d+)\\./;\n\n/** Regular expression used to parse a Dsn. */\nconst DSN_REGEX = /^(?:(\\w+):)\\/\\/(?:(\\w+)(?::(\\w+)?)?@)((?:\\[[:.%\\w]+\\]|[\\w.-]+))(?::(\\d+))?\\/(.+)/;\n\nfunction isValidProtocol(protocol?: string): protocol is DsnProtocol {\n  return protocol === 'http' || protocol === 'https';\n}\n\n/**\n * Renders the string representation of this Dsn.\n *\n * By default, this will render the public representation without the password\n * component. To get the deprecated private representation, set `withPassword`\n * to true.\n *\n * @param withPassword When set to true, the password will be included.\n */\nexport function dsnToString(dsn: DsnComponents, withPassword: boolean = false): string {\n  const { host, path, pass, port, projectId, protocol, publicKey } = dsn;\n  return (\n    `${protocol}://${publicKey}${withPassword && pass ? `:${pass}` : ''}` +\n    `@${host}${port ? `:${port}` : ''}/${path ? `${path}/` : path}${projectId}`\n  );\n}\n\n/**\n * Parses a Dsn from a given string.\n *\n * @param str A Dsn as string\n * @returns Dsn as DsnComponents or undefined if @param str is not a valid DSN string\n */\nexport function dsnFromString(str: string): DsnComponents | undefined {\n  const match = DSN_REGEX.exec(str);\n\n  if (!match) {\n    // This should be logged to the console\n    consoleSandbox(() => {\n      // eslint-disable-next-line no-console\n      console.error(`Invalid Sentry Dsn: ${str}`);\n    });\n    return undefined;\n  }\n\n  const [protocol, publicKey, pass = '', host = '', port = '', lastPath = ''] = match.slice(1);\n  let path = '';\n  let projectId = lastPath;\n\n  const split = projectId.split('/');\n  if (split.length > 1) {\n    path = split.slice(0, -1).join('/');\n    projectId = split.pop() as string;\n  }\n\n  if (projectId) {\n    const projectMatch = projectId.match(/^\\d+/);\n    if (projectMatch) {\n      projectId = projectMatch[0];\n    }\n  }\n\n  return dsnFromComponents({ host, pass, path, projectId, port, protocol: protocol as DsnProtocol, publicKey });\n}\n\nfunction dsnFromComponents(components: DsnComponents): DsnComponents {\n  return {\n    protocol: components.protocol,\n    publicKey: components.publicKey || '',\n    pass: components.pass || '',\n    host: components.host,\n    port: components.port || '',\n    path: components.path || '',\n    projectId: components.projectId,\n  };\n}\n\nfunction validateDsn(dsn: DsnComponents): boolean {\n  if (!DEBUG_BUILD) {\n    return true;\n  }\n\n  const { port, projectId, protocol } = dsn;\n\n  const requiredComponents: ReadonlyArray<keyof DsnComponents> = ['protocol', 'publicKey', 'host', 'projectId'];\n  const hasMissingRequiredComponent = requiredComponents.find(component => {\n    if (!dsn[component]) {\n      debug.error(`Invalid Sentry Dsn: ${component} missing`);\n      return true;\n    }\n    return false;\n  });\n\n  if (hasMissingRequiredComponent) {\n    return false;\n  }\n\n  if (!projectId.match(/^\\d+$/)) {\n    debug.error(`Invalid Sentry Dsn: Invalid projectId ${projectId}`);\n    return false;\n  }\n\n  if (!isValidProtocol(protocol)) {\n    debug.error(`Invalid Sentry Dsn: Invalid protocol ${protocol}`);\n    return false;\n  }\n\n  if (port && isNaN(parseInt(port, 10))) {\n    debug.error(`Invalid Sentry Dsn: Invalid port ${port}`);\n    return false;\n  }\n\n  return true;\n}\n\n/**\n * Extract the org ID from a DSN host.\n *\n * @param host The host from a DSN\n * @returns The org ID if found, undefined otherwise\n */\nexport function extractOrgIdFromDsnHost(host: string): string | undefined {\n  const match = host.match(ORG_ID_REGEX);\n\n  return match?.[1];\n}\n\n/**\n *  Returns the organization ID of the client.\n *\n *  The organization ID is extracted from the DSN. If the client options include a `orgId`, this will always take precedence.\n */\nexport function extractOrgIdFromClient(client: Client): string | undefined {\n  const options = client.getOptions();\n\n  const { host } = client.getDsn() || {};\n\n  let org_id: string | undefined;\n\n  if (options.orgId) {\n    org_id = String(options.orgId);\n  } else if (host) {\n    org_id = extractOrgIdFromDsnHost(host);\n  }\n\n  return org_id;\n}\n\n/**\n * Creates a valid Sentry Dsn object, identifying a Sentry instance and project.\n * @returns a valid DsnComponents object or `undefined` if @param from is an invalid DSN source\n */\nexport function makeDsn(from: DsnLike): DsnComponents | undefined {\n  const components = typeof from === 'string' ? dsnFromString(from) : dsnFromComponents(from);\n  if (!components || !validateDsn(components)) {\n    return undefined;\n  }\n  return components;\n}\n","import { getSentryCarrier } from '../carrier';\nimport type { Attachment } from '../types/attachment';\nimport type { DataCategory } from '../types/datacategory';\nimport type { DsnComponents } from '../types/dsn';\nimport type {\n  AttachmentItem,\n  BaseEnvelopeHeaders,\n  BaseEnvelopeItemHeaders,\n  Envelope,\n  EnvelopeItemType,\n  EventEnvelopeHeaders,\n} from '../types/envelope';\nimport type { Event, EventType } from '../types/event';\nimport type { SdkInfo } from '../types/sdkinfo';\nimport type { SdkMetadata } from '../types/sdkmetadata';\nimport { dsnToString } from './dsn';\nimport { normalize } from './normalize';\nimport { safeDateNow } from './randomSafeContext';\nimport { GLOBAL_OBJ } from './worldwide';\n\n/**\n * Creates an envelope.\n * Make sure to always explicitly provide the generic to this function\n * so that the envelope types resolve correctly.\n */\nexport function createEnvelope<E extends Envelope>(headers: E[0], items: E[1] = []): E {\n  return [headers, items] as E;\n}\n\n/**\n * Add an item to an envelope.\n * Make sure to always explicitly provide the generic to this function\n * so that the envelope types resolve correctly.\n */\nexport function addItemToEnvelope<E extends Envelope>(envelope: E, newItem: E[1][number]): E {\n  const [headers, items] = envelope;\n  return [headers, [...items, newItem]] as unknown as E;\n}\n\n/**\n * Convenience function to loop through the items and item types of an envelope.\n * (This function was mostly created because working with envelope types is painful at the moment)\n *\n * If the callback returns true, the rest of the items will be skipped.\n */\nexport function forEachEnvelopeItem<E extends Envelope>(\n  envelope: Envelope,\n  callback: (envelopeItem: E[1][number], envelopeItemType: E[1][number][0]['type']) => boolean | void,\n): boolean {\n  const envelopeItems = envelope[1];\n\n  for (const envelopeItem of envelopeItems) {\n    const envelopeItemType = envelopeItem[0].type;\n    const result = callback(envelopeItem, envelopeItemType);\n\n    if (result) {\n      return true;\n    }\n  }\n\n  return false;\n}\n\n/**\n * Returns true if the envelope contains any of the given envelope item types\n */\nexport function envelopeContainsItemType(envelope: Envelope, types: EnvelopeItemType[]): boolean {\n  return forEachEnvelopeItem(envelope, (_, type) => types.includes(type));\n}\n\n/**\n * Encode a string to UTF8 array.\n */\nfunction encodeUTF8(input: string): Uint8Array {\n  const carrier = getSentryCarrier(GLOBAL_OBJ);\n  return carrier.encodePolyfill ? carrier.encodePolyfill(input) : new TextEncoder().encode(input);\n}\n\n/**\n * Decode a UTF8 array to string.\n */\nfunction decodeUTF8(input: Uint8Array): string {\n  const carrier = getSentryCarrier(GLOBAL_OBJ);\n  return carrier.decodePolyfill ? carrier.decodePolyfill(input) : new TextDecoder().decode(input);\n}\n\n/**\n * Serializes an envelope.\n */\nexport function serializeEnvelope(envelope: Envelope): string | Uint8Array {\n  const [envHeaders, items] = envelope;\n  // Initially we construct our envelope as a string and only convert to binary chunks if we encounter binary data\n  let parts: string | Uint8Array[] = JSON.stringify(envHeaders);\n\n  function append(next: string | Uint8Array): void {\n    if (typeof parts === 'string') {\n      parts = typeof next === 'string' ? parts + next : [encodeUTF8(parts), next];\n    } else {\n      parts.push(typeof next === 'string' ? encodeUTF8(next) : next);\n    }\n  }\n\n  for (const item of items) {\n    const [itemHeaders, payload] = item;\n\n    append(`\\n${JSON.stringify(itemHeaders)}\\n`);\n\n    if (typeof payload === 'string' || payload instanceof Uint8Array) {\n      append(payload);\n    } else {\n      let stringifiedPayload: string;\n      try {\n        stringifiedPayload = JSON.stringify(payload);\n      } catch {\n        // In case, despite all our efforts to keep `payload` circular-dependency-free, `JSON.stringify()` still\n        // fails, we try again after normalizing it again with infinite normalization depth. This of course has a\n        // performance impact but in this case a performance hit is better than throwing.\n        stringifiedPayload = JSON.stringify(normalize(payload));\n      }\n      append(stringifiedPayload);\n    }\n  }\n\n  return typeof parts === 'string' ? parts : concatBuffers(parts);\n}\n\nfunction concatBuffers(buffers: Uint8Array[]): Uint8Array {\n  const totalLength = buffers.reduce((acc, buf) => acc + buf.length, 0);\n\n  const merged = new Uint8Array(totalLength);\n  let offset = 0;\n  for (const buffer of buffers) {\n    merged.set(buffer, offset);\n    offset += buffer.length;\n  }\n\n  return merged;\n}\n\n/**\n * Parses an envelope\n */\nexport function parseEnvelope(env: string | Uint8Array): Envelope {\n  let buffer = typeof env === 'string' ? encodeUTF8(env) : env;\n\n  function readBinary(length: number): Uint8Array {\n    const bin = buffer.subarray(0, length);\n    // Replace the buffer with the remaining data excluding trailing newline\n    buffer = buffer.subarray(length + 1);\n    return bin;\n  }\n\n  function readJson<T>(): T {\n    let i = buffer.indexOf(0xa);\n    // If we couldn't find a newline, we must have found the end of the buffer\n    if (i < 0) {\n      i = buffer.length;\n    }\n\n    return JSON.parse(decodeUTF8(readBinary(i))) as T;\n  }\n\n  const envelopeHeader = readJson<BaseEnvelopeHeaders>();\n  // eslint-disable-next-line @typescript-eslint/no-explicit-any\n  const items: [any, any][] = [];\n\n  while (buffer.length) {\n    const itemHeader = readJson<BaseEnvelopeItemHeaders>();\n    const binaryLength = typeof itemHeader.length === 'number' ? itemHeader.length : undefined;\n\n    items.push([itemHeader, binaryLength ? readBinary(binaryLength) : readJson()]);\n  }\n\n  return [envelopeHeader, items];\n}\n\n/**\n * Creates attachment envelope items\n */\nexport function createAttachmentEnvelopeItem(attachment: Attachment): AttachmentItem {\n  const buffer = typeof attachment.data === 'string' ? encodeUTF8(attachment.data) : attachment.data;\n\n  return [\n    {\n      type: 'attachment',\n      length: buffer.length,\n      filename: attachment.filename,\n      content_type: attachment.contentType,\n      attachment_type: attachment.attachmentType,\n    },\n    buffer,\n  ];\n}\n\ntype OverriddenItemType = Exclude<EnvelopeItemType, DataCategory>;\n\n// Map of envelope item types to data categories where the category differs from the type.\n// Types that map to themselves (session, attachment, transaction, profile, feedback, span, metric) fall through.\nconst DATA_CATEGORY_OVERRIDES: Record<OverriddenItemType, DataCategory> = {\n  sessions: 'session',\n  event: 'error',\n  client_report: 'internal',\n  user_report: 'default',\n  profile_chunk: 'profile',\n  replay_event: 'replay',\n  replay_recording: 'replay',\n  check_in: 'monitor',\n  raw_security: 'security',\n  log: 'log_item',\n  trace_metric: 'metric',\n};\n\nfunction _isOverriddenType(type: EnvelopeItemType): type is OverriddenItemType {\n  return type in DATA_CATEGORY_OVERRIDES;\n}\n\n/**\n * Maps the type of an envelope item to a data category.\n */\nexport function envelopeItemTypeToDataCategory(type: EnvelopeItemType): DataCategory {\n  return _isOverriddenType(type) ? DATA_CATEGORY_OVERRIDES[type] : type;\n}\n\n/** Extracts the minimal SDK info from the metadata or an events */\nexport function getSdkMetadataForEnvelopeHeader(metadataOrEvent?: SdkMetadata | Event): SdkInfo | undefined {\n  if (!metadataOrEvent?.sdk) {\n    return;\n  }\n  const { name, version } = metadataOrEvent.sdk;\n  return { name, version };\n}\n\n/**\n * Creates event envelope headers, based on event, sdk info and tunnel\n * Note: This function was extracted from the core package to make it available in Replay\n */\nexport function createEventEnvelopeHeaders(\n  event: Event,\n  sdkInfo: SdkInfo | undefined,\n  tunnel: string | undefined,\n  dsn?: DsnComponents,\n): EventEnvelopeHeaders {\n  const dynamicSamplingContext = event.sdkProcessingMetadata?.dynamicSamplingContext;\n  return {\n    event_id: event.event_id as string,\n    sent_at: new Date(safeDateNow()).toISOString(),\n    ...(sdkInfo && { sdk: sdkInfo }),\n    ...(!!tunnel && dsn && { dsn: dsnToString(dsn) }),\n    ...(dynamicSamplingContext && {\n      trace: dynamicSamplingContext,\n    }),\n  };\n}\n\n/**\n * Maps an event type to the data category used for client reports.\n */\nexport function getDataCategoryByType(type: EventType): DataCategory {\n  return type === 'replay_event' ? 'replay' : type || 'error';\n}\n","import { getTraceContextFromScope } from '../currentScopes';\nimport type { Scope } from '../scope';\nimport type { TraceContext } from '../types/context';\nimport type { Event, EventHint } from '../types/event';\nimport type { Span } from '../types/span';\nimport { isPrimitive } from './is';\nimport { spanIsSampled, spanToTraceContext } from './spanUtils';\n\n/**\n * The trace context of the span an error escaped, keyed by the error itself.\n *\n * We store the trace context rather than the span because that is the shape we apply to the event\n * later, and it snapshots the span as it failed instead of reading it back once it has ended.\n */\nconst escapedSpanTraceContexts = new WeakMap<object, TraceContext>();\n\n/**\n * A `WeakMap` can only be keyed by an object, so an error thrown as a primitive (`throw 'boom'`)\n * has nothing we can hang the span on and is left unattributed.\n */\nfunction toWeakMapKey(error: unknown): object | undefined {\n  return isPrimitive(error) ? undefined : error;\n}\n\n/**\n * Remember which span an error escaped, so a later `captureException` can attribute the error to\n * the span that actually failed instead of whichever span happens to be active at capture time.\n *\n * The first span to see the error wins: as an error unwinds through nested spans, the innermost\n * one is the one that failed. Unsampled spans are skipped because they are never sent, so their\n * span id would point at a span that does not exist. Sampling rather than `isRecording()` is what\n * matters here: a span ended before the error escaped it, which is the norm for `startSpanManual`,\n * has stopped recording but is still sent.\n */\nexport function recordEscapedErrorSpan(error: unknown, span: Span): void {\n  const key = toWeakMapKey(error);\n\n  if (!key || !spanIsSampled(span) || escapedSpanTraceContexts.has(key)) {\n    return;\n  }\n\n  escapedSpanTraceContexts.set(key, spanToTraceContext(span));\n}\n\n/**\n * Attribute an error event to the span the error escaped, if we recorded one.\n *\n * This only applies within the error's own trace. The stored span id is meaningless in another\n * trace, and the event's dynamic sampling context (which the envelope header is built from) is\n * derived from the root span of the trace the event is already on. Rewriting the trace id here\n * would leave the envelope header and body naming different traces.\n */\nexport function applyEscapedErrorSpanToEvent(event: Event, hint: EventHint, scope: Scope | undefined): void {\n  const key = toWeakMapKey(hint.originalException);\n  const traceContext = key && escapedSpanTraceContexts.get(key);\n\n  if (!traceContext) {\n    return;\n  }\n\n  // An error captured with no active span has no trace context yet: the scope's is merged in\n  // further downstream. Resolve the trace the event will end up on the same way that merge does,\n  // so the check below still knows which trace we are on.\n  const eventTraceContext = event.contexts?.trace;\n  const eventTraceId = eventTraceContext?.trace_id ?? (scope && getTraceContextFromScope(scope).trace_id);\n\n  if (eventTraceId !== traceContext.trace_id) {\n    return;\n  }\n\n  event.contexts = {\n    ...event.contexts,\n    trace: {\n      ...eventTraceContext,\n      ...traceContext,\n    },\n  };\n}\n","const e=\"address\",t=\"ai.citations\",i=\"ai.completion_tokens.used\",a=\"ai.documents\",s=\"ai.finish_reason\",r=\"ai.frequency_penalty\",n=\"ai.function_call\",o=\"ai.generation_id\",l=\"ai.input_messages\",p=\"ai.is_search_required\",c=\"ai.metadata\",u=\"ai.model.id\",d=\"ai.model_id\",g=\"ai.model.provider\",b=\"ai.pipeline.name\",m=\"ai.preamble\",y=\"ai.presence_penalty\",_=\"ai.prompt\",h=\"ai.prompt.messages\",f=\"ai.prompt_tokens.used\",v=\"ai.prompt.tools\",k=\"ai.raw_prompting\",T=\"ai.responses\",S=\"ai.response_format\",E=\"ai.response.id\",O=\"ai.response.model\",I=\"ai.response.object\",A=\"ai.response.text\",w=\"ai.response.timestamp\",x=\"ai.response.toolCalls\",R=\"ai.schema\",N=\"ai.search_queries\",C=\"ai.search_results\",P=\"ai.seed\",D=\"ai.streaming\",q=\"ai.tags\",L=\"ai.temperature\",M=\"ai.texts\",U=\"ai.toolCall.args\",G=\"ai.toolCall.result\",z=\"ai.tools\",Y=\"ai.tool_calls\",V=\"ai.top_k\",F=\"ai.top_p\",B=\"ai.total_cost\",W=\"ai.total_tokens.used\",H=\"ai.usage.tokens\",K=\"ai.values\",j=\"ai.warnings\",Q=\"angular.version\",X=\"anthropic.tool_result.content\",J=\"app.app_build\",Z=\"app.app_identifier\",$=\"app.app_name\",ee=\"app.app_start_time\",te=\"app.app_version\",ie=\"app.build\",ae=\"app.identifier\",se=\"app.in_foreground\",re=\"app.name\",ne=\"app_start_cold\",oe=\"app.start_time\",le=\"app_start_type\",pe=\"app_start_warm\",ce=\"app.version\",ue=\"app.vitals.frames.delay.value\",de=\"app.vitals.frames.frozen.count\",ge=\"app.vitals.frames.frozen.rate\",be=\"app.vitals.frames.slow.count\",me=\"app.vitals.frames.slow.rate\",ye=\"app.vitals.frames.total.count\",_e=\"app.vitals.stall.duration\",he=\"app.vitals.stall.percentage\",fe=\"app.vitals.start.cold.value\",ve=\"app.vitals.start.prewarmed\",ke=\"app.vitals.start.reason\",Te=\"app.vitals.start.screen\",Se=\"app.vitals.start.type\",Ee=\"app.vitals.start.warm.value\",Oe=\"app.vitals.ttfd.value\",Ie=\"app.vitals.ttid.value\",Ae=\"art.gc.blocking_count\",we=\"art.gc.blocking_time\",xe=\"art.gc.pre_oome_count\",Re=\"art.gc.total_count\",Ne=\"art.gc.total_time\",Ce=\"art.gc.waiting_time\",Pe=\"art.memory.free\",De=\"art.memory.free_until_gc\",qe=\"art.memory.free_until_oome\",Le=\"art.memory.max\",Me=\"art.memory.total\",Ue=\"aws.cloudwatch.logs.log_group\",Ge=\"aws.cloudwatch.logs.log_stream\",ze=\"aws.cloudwatch.logs.url\",Ye=\"aws.dynamodb.attribute_definitions\",Ve=\"aws.dynamodb.consistent_read\",Fe=\"aws.dynamodb.consumed_capacity\",Be=\"aws.dynamodb.count\",We=\"aws.dynamodb.exclusive_start_table\",He=\"aws.dynamodb.global_secondary_indexes\",Ke=\"aws.dynamodb.global_secondary_index_updates\",je=\"aws.dynamodb.index_name\",Qe=\"aws.dynamodb.item_collection_metrics\",Xe=\"aws.dynamodb.limit\",Je=\"aws.dynamodb.local_secondary_indexes\",Ze=\"aws.dynamodb.projection\",$e=\"aws.dynamodb.provisioned_read_capacity\",et=\"aws.dynamodb.provisioned_write_capacity\",tt=\"aws.dynamodb.scanned_count\",it=\"aws.dynamodb.scan_forward\",at=\"aws.dynamodb.segment\",st=\"aws.dynamodb.select\",rt=\"aws.dynamodb.table_count\",nt=\"aws.dynamodb.table_names\",ot=\"aws.dynamodb.total_segments\",lt=\"aws.extended_request_id\",pt=\"aws.kinesis.stream_name\",ct=\"aws.kinesis.stream.name\",ut=\"aws.lambda.aws_request_id\",dt=\"aws.lambda.execution_duration_in_millis\",gt=\"aws.lambda.function_name\",bt=\"aws.lambda.function_version\",mt=\"aws.lambda.invoked_arn\",yt=\"aws.lambda.invoked_function_arn\",_t=\"aws.lambda.remaining_time_in_millis\",ht=\"aws.log.group.names\",ft=\"aws.log.stream.names\",vt=\"aws.operation_name\",kt=\"aws_region\",Tt=\"aws.request.extended_id\",St=\"aws.request_id\",Et=\"aws.request.id\",Ot=\"aws.request.url\",It=\"aws.s3.bucket\",At=\"aws.secretsmanager.secret.arn\",wt=\"aws.sns.topic.arn\",xt=\"aws.step_functions.activity.arn\",Rt=\"aws.step_functions.state_machine.arn\",Nt=\"blocked_main_thread\",Ct=\"browser.bfcache.frame\",Pt=\"browser.bfcache.not_restored_reason_count\",Dt=\"browser.bfcache.outcome\",qt=\"browser.bfcache.reason\",Lt=\"browser.name\",Mt=\"browser.navigation.id\",Ut=\"browser.navigation.type\",Gt=\"browser.paint.type\",zt=\"browser.performance.navigation.activation_start\",Yt=\"browser.performance.time_origin\",Vt=\"browser.report.type\",Ft=\"browser.script.invoker\",Bt=\"browser.script.invoker_type\",Wt=\"browser.script.source_char_position\",Ht=\"browser.version\",Kt=\"browser.web_vital.cls.report_event\",jt=\"browser.web_vital.cls.source.<key>\",Qt=\"browser.web_vital.cls.source\",Xt=\"browser.web_vital.cls.value\",Jt=\"browser.web_vital.fcp.value\",Zt=\"browser.web_vital.fp.value\",$t=\"browser.web_vital.inp.interaction_type\",ei=\"browser.web_vital.inp.target\",ti=\"browser.web_vital.inp.value\",ii=\"browser.web_vital.lcp.element\",ai=\"browser.web_vital.lcp.id\",si=\"browser.web_vital.lcp.load_time\",ri=\"browser.web_vital.lcp.render_time\",ni=\"browser.web_vital.lcp.report_event\",oi=\"browser.web_vital.lcp.size\",li=\"browser.web_vital.lcp.url\",pi=\"browser.web_vital.lcp.value\",ci=\"browser.web_vital.ttfb.request_time\",ui=\"browser.web_vital.ttfb.value\",di=\"cache.hit\",gi=\"cache.item_age\",bi=\"cache.item_size\",mi=\"cache.key\",yi=\"cache.operation\",_i=\"cache.tags\",hi=\"cache.ttl\",fi=\"cache.write\",vi=\"channel\",ki=\"client.address\",Ti=\"client.port\",Si=\"cloudflare.d1.duration\",Ei=\"cloudflare.d1.query_type\",Oi=\"cloudflare.d1.rows_read\",Ii=\"cloudflare.d1.rows_written\",Ai=\"cloudflare.durable_object.query.bindings\",wi=\"cloudflare.durable_object.response.rows_read\",xi=\"cloudflare.durable_object.response.rows_written\",Ri=\"cloudflare.r2.bucket\",Ni=\"cloudflare.r2.operation\",Ci=\"cloudflare.r2.request.delimiter\",Pi=\"cloudflare.r2.request.key\",Di=\"cloudflare.r2.request.part_number\",qi=\"cloudflare.r2.request.prefix\",Li=\"cloudflare.workflow.attempt\",Mi=\"cloudflare.workflow.retries.backoff\",Ui=\"cloudflare.workflow.retries.delay\",Gi=\"cloudflare.workflow.retries.limit\",zi=\"cloudflare.workflow.timeout\",Yi=\"cloud.account.id\",Vi=\"cloud.availability_zone\",Fi=\"cloud.platform\",Bi=\"cloud.provider\",Wi=\"cloud.region\",Hi=\"cloud.resource_id\",Ki=\"cls\",ji=\"cls.source.<key>\",Qi=\"cls.source\",Xi=\"code\",Ji=\"code.filepath\",Zi=\"code.file.path\",$i=\"code.function\",ea=\"code.function.name\",ta=\"code.lineno\",ia=\"code.line.number\",aa=\"code.namespace\",sa=\"connectionType\",ra=\"connection.rtt\",na=\"culture.calendar\",oa=\"culture.display_name\",la=\"culture.is_24_hour_format\",pa=\"culture.locale\",ca=\"culture.timezone\",ua=\"db.collection.name\",da=\"db.connection_string\",ga=\"db.driver.name\",ba=\"db.mongodb.collection\",ma=\"db.name\",ya=\"db.namespace\",_a=\"db.operation\",ha=\"db.operation.batch.size\",fa=\"db.operation.name\",va=\"db.params\",ka=\"db.query.parameter.<key>\",Ta=\"db.query.parameter\",Sa=\"db.query.summary\",Ea=\"db.query.text\",Oa=\"db.redis.connection\",Ia=\"db.redis.key\",Aa=\"db.redis.parameters\",wa=\"db.response.status_code\",xa=\"db.sql.bindings\",Ra=\"db.statement\",Na=\"db.stored_procedure.name\",Ca=\"db.system\",Pa=\"db.system.name\",Da=\"db.user\",qa=\"deviceMemory\",La=\"device.archs\",Ma=\"device.battery_level\",Ua=\"device.battery_temperature\",Ga=\"device.boot_time\",za=\"device.brand\",Ya=\"device.charging\",Va=\"device.chipset\",Fa=\"device.class\",Ba=\"device.connection_type\",Wa=\"device.cpu_description\",Ha=\"device.external_free_storage\",Ka=\"device.external_storage_size\",ja=\"device.family\",Qa=\"device.free_memory\",Xa=\"device.free_storage\",Ja=\"device.id\",Za=\"device.locale\",$a=\"device.low_memory\",es=\"device.low_power_mode\",ts=\"device.manufacturer\",is=\"device.memory.estimated_capacity\",as=\"device.memory_size\",ss=\"device.model\",rs=\"device.model_id\",ns=\"device.name\",os=\"device.online\",ls=\"device.orientation\",ps=\"device.processor_count\",cs=\"device.processor_frequency\",us=\"device.screen_density\",ds=\"device.screen_dpi\",gs=\"device.screen_height_pixels\",bs=\"device.screen_width_pixels\",ms=\"device.simulator\",ys=\"device.storage_size\",_s=\"device.thermal_state\",hs=\"device.timezone\",fs=\"device.usable_memory\",vs=\"dist\",ks=\"django.function_name\",Ts=\"django.middleware_name\",Ss=\"effectiveConnectionType\",Es=\"environment\",Os=\"error.type\",Is=\"event.id\",As=\"event.name\",ws=\"exception.escaped\",xs=\"exception.message\",Rs=\"exception.stacktrace\",Ns=\"exception.type\",Cs=\"faas.coldstart\",Ps=\"faas.cron\",Ds=\"faas.duration_in_ms\",qs=\"faas.entry_point\",Ls=\"faas.execution\",Ms=\"faas.id\",Us=\"faas.identity\",Gs=\"faas.invocation_id\",zs=\"faas.invoked_name\",Ys=\"faas.invoked_provider\",Vs=\"faas.invoked_region\",Fs=\"faas.name\",Bs=\"faas.time\",Ws=\"faas.trigger\",Hs=\"faas.version\",Ks=\"fcp\",js=\"file.path\",Qs=\"file.size\",Xs=\"flag.evaluation.<key>\",Js=\"flag.evaluation\",Zs=\"fp\",$s=\"frames.delay\",er=\"frames.frozen\",tr=\"frames_frozen_rate\",ir=\"frames.slow\",ar=\"frames_slow_rate\",sr=\"frames.total\",rr=\"fs_error\",nr=\"gcp.function.context.event_id\",or=\"gcp.function.context.event_type\",lr=\"gcp.function.context.id\",pr=\"gcp.function.context.resource\",cr=\"gcp.function.context.source\",ur=\"gcp.function.context.specversion\",dr=\"gcp.function.context.time\",gr=\"gcp.function.context.timestamp\",br=\"gcp.function.context.type\",mr=\"gcp.project.id\",yr=\"gcp_region\",_r=\"gen_ai.agent.name\",hr=\"gen_ai.context.utilization\",fr=\"gen_ai.context.window_size\",vr=\"gen_ai.conversation.id\",kr=\"gen_ai.cost.cache_creation.input_tokens\",Tr=\"gen_ai.cost.cache_read.input_tokens\",Sr=\"gen_ai.cost.input_tokens\",Er=\"gen_ai.cost.output_tokens\",Or=\"gen_ai.cost.reasoning.output_tokens\",Ir=\"gen_ai.cost.total_tokens\",Ar=\"gen_ai.embeddings.input\",wr=\"gen_ai.function_id\",xr=\"gen_ai.input.messages\",Rr=\"gen_ai.operation.name\",Nr=\"gen_ai.operation.type\",Cr=\"gen_ai.output.messages\",Pr=\"gen_ai.pipeline.name\",Dr=\"gen_ai.prompt\",qr=\"gen_ai.prompt.name\",Lr=\"gen_ai.provider.name\",Mr=\"gen_ai.request.available_tools\",Ur=\"gen_ai.request.frequency_penalty\",Gr=\"gen_ai.request.max_tokens\",zr=\"gen_ai.request.messages\",Yr=\"gen_ai.request.model\",Vr=\"gen_ai.request.presence_penalty\",Fr=\"gen_ai.request.reasoning.level\",Br=\"gen_ai.request.schema\",Wr=\"gen_ai.request.seed\",Hr=\"gen_ai.request.stop_sequences\",Kr=\"gen_ai.request.temperature\",jr=\"gen_ai.request.top_k\",Qr=\"gen_ai.request.top_p\",Xr=\"gen_ai.response.finish_reason\",Jr=\"gen_ai.response.finish_reasons\",Zr=\"gen_ai.response.id\",$r=\"gen_ai.response.model\",en=\"gen_ai.response.object\",tn=\"gen_ai.response.streaming\",an=\"gen_ai.response.text\",sn=\"gen_ai.response.time_to_first_chunk\",rn=\"gen_ai.response.time_to_first_token\",nn=\"gen_ai.response.tokens_per_second\",on=\"gen_ai.response.tool_calls\",ln=\"gen_ai.system\",pn=\"gen_ai.system_instructions\",cn=\"gen_ai.system.message\",un=\"gen_ai.tool.call.arguments\",dn=\"gen_ai.tool.call.result\",gn=\"gen_ai.tool.definitions\",bn=\"gen_ai.tool.description\",mn=\"gen_ai.tool.input\",yn=\"gen_ai.tool.message\",_n=\"gen_ai.tool.name\",hn=\"gen_ai.tool.output\",fn=\"gen_ai.tool.type\",vn=\"gen_ai.usage.cache_creation.input_tokens\",kn=\"gen_ai.usage.cache_creation_input_tokens\",Tn=\"gen_ai.usage.cache_read.input_tokens\",Sn=\"gen_ai.usage.cache_read_input_tokens\",En=\"gen_ai.usage.completion_tokens\",On=\"gen_ai.usage.input_tokens\",In=\"gen_ai.usage.input_tokens.cached\",An=\"gen_ai.usage.input_tokens.cache_write\",wn=\"gen_ai.usage.output_tokens\",xn=\"gen_ai.usage.output_tokens.reasoning\",Rn=\"gen_ai.usage.prompt_tokens\",Nn=\"gen_ai.usage.reasoning.output_tokens\",Cn=\"gen_ai.usage.total_tokens\",Pn=\"graphql.document\",Dn=\"graphql.operation.name\",qn=\"graphql.operation.type\",Ln=\"graphql.processing.type\",Mn=\"graphql.source\",Un=\"grpc.error.bad_request.field_violations\",Gn=\"grpc.error.debug_info.detail\",zn=\"grpc.error.debug_info.stack_entries\",Yn=\"grpc.error.error_info.domain\",Vn=\"grpc.error.error_info.metadata.<key>\",Fn=\"grpc.error.error_info.metadata\",Bn=\"grpc.error.error_info.reason\",Wn=\"grpc.error.precondition_failure.violations\",Hn=\"grpc.error.quota_failure.violations\",Kn=\"grpc.error.resource_info.description\",jn=\"grpc.error.resource_info.owner\",Qn=\"grpc.error.resource_info.resource_name\",Xn=\"grpc.error.resource_info.resource_type\",Jn=\"grpc.error.retry_info.retry_delay_ms\",Zn=\"hardwareConcurrency\",$n=\"http.client_ip\",eo=\"http.decoded_response_content_length\",to=\"http.flavor\",io=\"http.fragment\",ao=\"http.host\",so=\"http.method\",ro=\"http.query\",no=\"http.request.body.data\",oo=\"http.request.body.decoded_size\",lo=\"http.request.body.size\",po=\"http.request.connection_end\",co=\"http.request.connect_start\",uo=\"http.request_content_length\",go=\"http.request_content_length_uncompressed\",bo=\"http.request.domain_lookup_end\",mo=\"http.request.domain_lookup_start\",yo=\"http.request.fetch_start\",_o=\"http.request.header.<key>\",ho=\"http.request.header\",fo=\"http.request.method\",vo=\"http.request_method\",ko=\"http.request.redirect_end\",To=\"http.request.redirect_start\",So=\"http.request.request_start\",Eo=\"http.request.resend_count\",Oo=\"http.request.response_end\",Io=\"http.request.response_start\",Ao=\"http.request.same_origin\",wo=\"http.request.secure_connection_start\",xo=\"http.request.time_to_first_byte\",Ro=\"http.request.worker_start\",No=\"http.response.body.decoded_size\",Co=\"http.response.body.size\",Po=\"http.response_content_length\",Do=\"http.response_content_length_uncompressed\",qo=\"http.response.header.content-length\",Lo=\"http.response.header.<key>\",Mo=\"http.response.header\",Uo=\"http.response.size\",Go=\"http.response.status_code\",zo=\"http.response.status_text\",Yo=\"http.response_transfer_size\",Vo=\"http.route\",Fo=\"http.scheme\",Bo=\"http.server_name\",Wo=\"http.server.request.time_in_queue\",Ho=\"http.status_code\",Ko=\"http.status_text\",jo=\"http.target\",Qo=\"http.url\",Xo=\"http.user_agent\",Jo=\"id\",Zo=\"inp\",$o=\"jsonrpc.protocol.version\",el=\"jsonrpc.request.id\",tl=\"jvm.gc.action\",il=\"jvm.gc.name\",al=\"jvm.memory.pool.name\",sl=\"jvm.memory.type\",rl=\"jvm.thread.daemon\",nl=\"jvm.thread.state\",ol=\"koa.name\",ll=\"koa.type\",pl=\"langchain.chain.name\",cl=\"lcp\",ul=\"lcp.element\",dl=\"lcp.id\",gl=\"lcp.loadTime\",bl=\"lcp.renderTime\",ml=\"lcp.size\",yl=\"lcp.url\",_l=\"litestar.middleware_name\",hl=\"logger.name\",fl=\"mcp.cancelled.reason\",vl=\"mcp.cancelled.request_id\",kl=\"mcp.client.name\",Tl=\"mcp.client.title\",Sl=\"mcp.client.version\",El=\"mcp.lifecycle.phase\",Ol=\"mcp.logging.data_type\",Il=\"mcp.logging.level\",Al=\"mcp.logging.logger\",wl=\"mcp.logging.message\",xl=\"mcp.method.name\",Rl=\"mcp.progress.current\",Nl=\"mcp.progress.message\",Cl=\"mcp.progress.percentage\",Pl=\"mcp.progress.token\",Dl=\"mcp.progress.total\",ql=\"mcp.prompt.name\",Ll=\"mcp.prompt.result.description\",Ml=\"mcp.prompt.result.message_content\",Ul=\"mcp.prompt.result.message_count\",Gl=\"mcp.prompt.result.message_role\",zl=\"mcp.protocol.ready\",Yl=\"mcp.protocol.version\",Vl=\"mcp.request.argument.<key>\",Fl=\"mcp.request.argument\",Bl=\"mcp.request.argument.name\",Wl=\"mcp.request.argument.uri\",Hl=\"mcp.request.id\",Kl=\"mcp.resource.protocol\",jl=\"mcp.resource.uri\",Ql=\"mcp.server.name\",Xl=\"mcp.server.title\",Jl=\"mcp.server.version\",Zl=\"mcp.session.id\",$l=\"mcp.tool.name\",ep=\"mcp.tool.result.content\",tp=\"mcp.tool.result.content_count\",ip=\"mcp.tool.result.is_error\",ap=\"mcp.transport\",sp=\"mdc.<key>\",rp=\"mdc\",np=\"messaging.batch.message_count\",op=\"messaging.conversation_id\",lp=\"messaging.destination\",pp=\"messaging.destination.connection\",cp=\"messaging.destination_kind\",up=\"messaging.destination.name\",dp=\"messaging.destination.partition.id\",gp=\"messaging.kafka.message.key\",bp=\"messaging.kafka.message.tombstone\",mp=\"messaging.kafka.offset\",yp=\"messaging.message.body.size\",_p=\"messaging.message.conversation_id\",hp=\"messaging.message.envelope.size\",fp=\"messaging.message.id\",vp=\"messaging.message_id\",kp=\"messaging.message.receive.latency\",Tp=\"messaging.message.retry.count\",Sp=\"messaging.operation\",Ep=\"messaging.operation.name\",Op=\"messaging.operation.type\",Ip=\"messaging.protocol\",Ap=\"messaging.protocol_version\",wp=\"messaging.rabbitmq.destination.routing_key\",xp=\"messaging.rabbitmq.routing_key\",Rp=\"messaging.system\",Np=\"messaging.url\",Cp=\"method\",Pp=\"middleware.name\",Dp=\"navigation.origin\",qp=\"navigation.route.id\",Lp=\"navigation.type\",Mp=\"nel.elapsed_time\",Up=\"nel.phase\",Gp=\"nel.referrer\",zp=\"nel.sampling_fraction\",Yp=\"nel.sampling_function\",Vp=\"nel.type\",Fp=\"network.connection.effective_type\",Bp=\"network.connection.rtt\",Wp=\"network.connection.type\",Hp=\"network.local.address\",Kp=\"network.local.port\",jp=\"network.peer.address\",Qp=\"network.peer.port\",Xp=\"network.protocol.name\",Jp=\"network.protocol.version\",Zp=\"network.transport\",$p=\"network.type\",ec=\"net.host.ip\",tc=\"net.host.name\",ic=\"net.host.port\",ac=\"net.peer.ip\",sc=\"net.peer.name\",rc=\"net.peer.port\",nc=\"net.protocol.name\",oc=\"net.protocol.version\",lc=\"net.sock.family\",pc=\"net.sock.host.addr\",cc=\"net.sock.host.port\",uc=\"net.sock.peer.addr\",dc=\"net.sock.peer.name\",gc=\"net.sock.peer.port\",bc=\"net.transport\",mc=\"os.build\",yc=\"os.build_id\",_c=\"os.description\",hc=\"os.kernel_version\",fc=\"os.name\",vc=\"os.raw_description\",kc=\"os.rooted\",Tc=\"os.theme\",Sc=\"os.type\",Ec=\"os.version\",Oc=\"otel.kind\",Ic=\"otel.scope.name\",Ac=\"otel.scope.version\",wc=\"otel.status_code\",xc=\"otel.status_description\",Rc=\"params.<key>\",Nc=\"params\",Cc=\"performance.activationStart\",Pc=\"performance.timeOrigin\",Dc=\"port\",qc=\"previous_route\",Lc=\"process.command_args\",Mc=\"process.executable.name\",Uc=\"process.pid\",Gc=\"process.runtime.description\",zc=\"process.runtime.engine.name\",Yc=\"process.runtime.engine.version\",Vc=\"process.runtime.name\",Fc=\"process.runtime.version\",Bc=\"profile_id\",Wc=\"query\",Hc=\"query.<key>\",Kc=\"query\",jc=\"react_native.architecture\",Qc=\"react_native.module.call.count\",Xc=\"react_native.module.call.distinct_count\",Jc=\"react_native.module.duration.max\",Zc=\"react_native.module.duration.total\",$c=\"react_native.module.error.count\",eu=\"react_native.module.kind\",tu=\"react_native.module.method\",iu=\"react_native.module.name\",au=\"react_native.module.top.duration\",su=\"react_native.module.top.name\",ru=\"react.version\",nu=\"redis.command\",ou=\"redis.key\",lu=\"release\",pu=\"remix.action_form_data.<key>\",cu=\"remix.action_form_data\",uu=\"replayId\",du=\"replay_id\",gu=\"resource.deployment.environment\",bu=\"resource.deployment.environment.name\",mu=\"resource.render_blocking_status\",yu=\"route\",_u=\"router.navigation.origin\",hu=\"router.navigation.route.id\",fu=\"router.navigation.type\",vu=\"rpc.grpc.status_code\",ku=\"rpc.method\",Tu=\"rpc.response.status_code\",Su=\"rpc.service\",Eu=\"rpc.system\",Ou=\"rpc.system.name\",Iu=\"runtime.build\",Au=\"runtime.name\",wu=\"runtime.raw_description\",xu=\"runtime.version\",Ru=\"score.<key>\",Nu=\"score\",Cu=\"score.ratio.<key>\",Pu=\"score.ratio\",Du=\"score.total\",qu=\"score.weight.<key>\",Lu=\"score.weight\",Mu=\"sentry.action\",Uu=\"sentry.browser.name\",Gu=\"sentry.browser.version\",zu=\"sentry.cancellation_reason\",Yu=\"sentry.category\",Vu=\"sentry.client_sample_rate\",Fu=\"sentry.description\",Bu=\"sentry.dist\",Wu=\"sentry.domain\",Hu=\"sentry.dsc.environment\",Ku=\"sentry.dsc.project_id\",ju=\"sentry.dsc.public_key\",Qu=\"sentry.dsc.release\",Xu=\"sentry.dsc.sampled\",Ju=\"sentry.dsc.sample_rate\",Zu=\"sentry.dsc.trace_id\",$u=\"sentry.dsc.transaction\",ed=\"sentry.environment\",td=\"sentry.event.serialized_breadcrumbs\",id=\"sentry.event.serialized_contexts\",ad=\"sentry.event.serialized_extra\",sd=\"sentry.event.serialized_meta\",rd=\"sentry.exclusive_time\",nd=\"sentry.frames.frozen\",od=\"sentry.frames.slow\",ld=\"sentry.frames.total\",pd=\"sentry.graphql.operation\",cd=\"sentry.group\",ud=\"sentry.http.prefetch\",dd=\"sentry.idle_span_finish_reason\",gd=\"sentry.is_localhost\",bd=\"sentry.is_remote\",md=\"sentry.kind\",yd=\"sentry.link.type\",_d=\"sentry.main_thread\",hd=\"sentry.message.parameter.<key>\",fd=\"sentry.message.template\",vd=\"sentry.metric.source\",kd=\"sentry.mobile\",Td=\"sentry.module.<key>\",Sd=\"sentry.module\",Ed=\"sentry.nextjs.ssr.function.route\",Od=\"sentry.nextjs.ssr.function.type\",Id=\"sentry.normalized_db_query\",Ad=\"sentry.normalized_db_query.hash\",wd=\"sentry.normalized_description\",xd=\"sentry.observed_timestamp_nanos\",Rd=\"sentry.op\",Nd=\"sentry.origin\",Cd=\"sentry.pageload.span_id\",Pd=\"sentry.platform\",Dd=\"sentry.profiler_id\",qd=\"sentry.profile_id\",Ld=\"sentry.relay.ingress\",Md=\"sentry.relay.pipeline\",Ud=\"sentry.release\",Gd=\"sentry.replay_id\",zd=\"sentry.replay_is_buffering\",Yd=\"sentry.report_event\",Vd=\"sentry.sdk.integrations\",Fd=\"sentry.sdk.name\",Bd=\"sentry.sdk.version\",Wd=\"sentry.segment.id\",Hd=\"sentry.segment_id\",Kd=\"sentry.segment.name\",jd=\"sentry.segment.name.source\",Qd=\"sentry.server_sample_rate\",Xd=\"sentry.source\",Jd=\"sentry.span.source\",Zd=\"sentry.status\",$d=\"sentry.status_code\",eg=\"sentry.status.message\",tg=\"sentry.sveltekit.navigation.from\",ig=\"sentry.sveltekit.navigation.to\",ag=\"sentry.sveltekit.navigation.type\",sg=\"sentry.thread.id\",rg=\"sentry.timestamp.sequence\",ng=\"sentry.trace_lifecycle\",og=\"sentry.trace.parent_span_id\",lg=\"sentry.trace.status\",pg=\"sentry.transaction\",cg=\"sentry.user.email\",ug=\"sentry.user.geo.city\",dg=\"sentry.user.geo.country_code\",gg=\"sentry.user.geo.region\",bg=\"sentry.user.geo.subdivision\",mg=\"sentry.user.id\",yg=\"sentry.user.ip\",_g=\"sentry.user.username\",hg=\"server.address\",fg=\"server_name\",vg=\"server.port\",kg=\"service.name\",Tg=\"service.version\",Sg=\"session.id\",Eg=\"stall_percentage\",Og=\"stall_total_time\",Ig=\"starlette.middleware_name\",Ag=\"starlite.middleware_name\",wg=\"state.type\",xg=\"subprocess.pid\",Rg=\"sveltekit.load.environment\",Ng=\"sveltekit.load.node_id\",Cg=\"sveltekit.load.node_type\",Pg=\"sveltekit.tracing.original_name\",Dg=\"thread.id\",qg=\"thread.name\",Lg=\"timber.tag\",Mg=\"time_to_full_display\",Ug=\"time_to_initial_display\",Gg=\"transaction\",zg=\"trpc.procedure_path\",Yg=\"trpc.procedure_type\",Vg=\"ttfb\",Fg=\"ttfb.requestTime\",Bg=\"turbo_modules.total_call_count\",Wg=\"turbo_modules.total_duration_ms\",Hg=\"turbo_modules.total_error_count\",Kg=\"turbo_modules.unique_methods\",jg=\"turbo_module.arch\",Qg=\"turbo_module.method\",Xg=\"turbo_module.name\",Jg=\"turbo_module.top_module\",Zg=\"turbo_module.top_module_duration_ms\",$g=\"turbo_module.total_call_count\",eb=\"turbo_module.total_duration_ms\",tb=\"turbo_module.total_error_count\",ib=\"turbo_module.unique_methods\",ab=\"type\",sb=\"ui.component_name\",rb=\"ui.contributes_to_ttfd\",nb=\"ui.contributes_to_ttid\",ob=\"ui.element.height\",lb=\"ui.element.id\",pb=\"ui.element.identifier\",cb=\"ui.element.load_time\",ub=\"ui.element.paint_type\",db=\"ui.element.render_time\",gb=\"ui.element.type\",bb=\"ui.element.url\",mb=\"ui.element.width\",yb=\"url\",_b=\"url.domain\",hb=\"url.fragment\",fb=\"url.full\",vb=\"url.path\",kb=\"url.path.parameter.<key>\",Tb=\"url.path.parameter\",Sb=\"url.path.params.<key>\",Eb=\"url.path.params\",Ob=\"url.port\",Ib=\"url.query\",Ab=\"url.same_origin\",wb=\"url.scheme\",xb=\"url.template\",Rb=\"user_agent.original\",Nb=\"user.email\",Cb=\"user.full_name\",Pb=\"user.geo.city\",Db=\"user.geo.country_code\",qb=\"user.geo.region\",Lb=\"user.geo.subdivision\",Mb=\"user.hash\",Ub=\"user.id\",Gb=\"user.ip_address\",zb=\"user.name\",Yb=\"user.roles\",Vb=\"vercel.ai.telemetry.metadata.<key>\",Fb=\"vercel.ai.telemetry.metadata\",Bb=\"vercel.branch\",Wb=\"vercel.build_id\",Hb=\"vercel.deployment_id\",Kb=\"vercel.destination\",jb=\"vercel.edge_type\",Qb=\"vercel.entrypoint\",Xb=\"vercel.execution_region\",Jb=\"vercel.id\",Zb=\"vercel.ja3_digest\",$b=\"vercel.ja4_digest\",em=\"vercel.log_type\",tm=\"vercel.path\",im=\"vercel.project_id\",am=\"vercel.project_name\",sm=\"vercel.proxy.cache_id\",rm=\"vercel.proxy.client_ip\",nm=\"vercel.proxy.host\",om=\"vercel.proxy.lambda_region\",lm=\"vercel.proxy.method\",pm=\"vercel.proxy.path\",cm=\"vercel.proxy.path_type\",um=\"vercel.proxy.path_type_variant\",dm=\"vercel.proxy.referer\",gm=\"vercel.proxy.region\",bm=\"vercel.proxy.response_byte_size\",mm=\"vercel.proxy.scheme\",ym=\"vercel.proxy.status_code\",_m=\"vercel.proxy.timestamp\",hm=\"vercel.proxy.user_agent\",fm=\"vercel.proxy.vercel_cache\",vm=\"vercel.proxy.vercel_id\",km=\"vercel.proxy.waf_action\",Tm=\"vercel.proxy.waf_rule_id\",Sm=\"vercel.request_id\",Em=\"vercel.source\",Om=\"vercel.status_code\",Im={address:\"string\",\"ai.citations\":\"string[]\",\"ai.completion_tokens.used\":\"integer\",\"ai.documents\":\"string[]\",\"ai.finish_reason\":\"string\",\"ai.frequency_penalty\":\"double\",\"ai.function_call\":\"string\",\"ai.generation_id\":\"string\",\"ai.input_messages\":\"string\",\"ai.is_search_required\":\"boolean\",\"ai.metadata\":\"string\",\"ai.model.id\":\"string\",\"ai.model_id\":\"string\",\"ai.model.provider\":\"string\",\"ai.pipeline.name\":\"string\",\"ai.preamble\":\"string\",\"ai.presence_penalty\":\"double\",\"ai.prompt\":\"string\",\"ai.prompt.messages\":\"string\",\"ai.prompt_tokens.used\":\"integer\",\"ai.prompt.tools\":\"string[]\",\"ai.raw_prompting\":\"boolean\",\"ai.responses\":\"string[]\",\"ai.response_format\":\"string\",\"ai.response.id\":\"string\",\"ai.response.model\":\"string\",\"ai.response.object\":\"string\",\"ai.response.text\":\"string\",\"ai.response.timestamp\":\"string\",\"ai.response.toolCalls\":\"string\",\"ai.schema\":\"string\",\"ai.search_queries\":\"string[]\",\"ai.search_results\":\"string[]\",\"ai.seed\":\"string\",\"ai.streaming\":\"boolean\",\"ai.tags\":\"string\",\"ai.temperature\":\"double\",\"ai.texts\":\"string[]\",\"ai.toolCall.args\":\"string\",\"ai.toolCall.result\":\"string\",\"ai.tools\":\"string[]\",\"ai.tool_calls\":\"string[]\",\"ai.top_k\":\"integer\",\"ai.top_p\":\"double\",\"ai.total_cost\":\"double\",\"ai.total_tokens.used\":\"integer\",\"ai.usage.tokens\":\"integer\",\"ai.values\":\"string\",\"ai.warnings\":\"string[]\",\"angular.version\":\"string\",\"anthropic.tool_result.content\":\"string\",\"app.app_build\":\"string\",\"app.app_identifier\":\"string\",\"app.app_name\":\"string\",\"app.app_start_time\":\"string\",\"app.app_version\":\"string\",\"app.build\":\"string\",\"app.identifier\":\"string\",\"app.in_foreground\":\"boolean\",\"app.name\":\"string\",app_start_cold:\"double\",\"app.start_time\":\"string\",app_start_type:\"string\",app_start_warm:\"double\",\"app.version\":\"string\",\"app.vitals.frames.delay.value\":\"integer\",\"app.vitals.frames.frozen.count\":\"integer\",\"app.vitals.frames.frozen.rate\":\"double\",\"app.vitals.frames.slow.count\":\"integer\",\"app.vitals.frames.slow.rate\":\"double\",\"app.vitals.frames.total.count\":\"integer\",\"app.vitals.stall.duration\":\"double\",\"app.vitals.stall.percentage\":\"double\",\"app.vitals.start.cold.value\":\"double\",\"app.vitals.start.prewarmed\":\"boolean\",\"app.vitals.start.reason\":\"string\",\"app.vitals.start.screen\":\"string\",\"app.vitals.start.type\":\"string\",\"app.vitals.start.warm.value\":\"double\",\"app.vitals.ttfd.value\":\"double\",\"app.vitals.ttid.value\":\"double\",\"art.gc.blocking_count\":\"integer\",\"art.gc.blocking_time\":\"double\",\"art.gc.pre_oome_count\":\"integer\",\"art.gc.total_count\":\"integer\",\"art.gc.total_time\":\"double\",\"art.gc.waiting_time\":\"double\",\"art.memory.free\":\"integer\",\"art.memory.free_until_gc\":\"integer\",\"art.memory.free_until_oome\":\"integer\",\"art.memory.max\":\"integer\",\"art.memory.total\":\"integer\",\"aws.cloudwatch.logs.log_group\":\"string\",\"aws.cloudwatch.logs.log_stream\":\"string\",\"aws.cloudwatch.logs.url\":\"string\",\"aws.dynamodb.attribute_definitions\":\"string[]\",\"aws.dynamodb.consistent_read\":\"boolean\",\"aws.dynamodb.consumed_capacity\":\"string[]\",\"aws.dynamodb.count\":\"integer\",\"aws.dynamodb.exclusive_start_table\":\"string\",\"aws.dynamodb.global_secondary_indexes\":\"string[]\",\"aws.dynamodb.global_secondary_index_updates\":\"string[]\",\"aws.dynamodb.index_name\":\"string\",\"aws.dynamodb.item_collection_metrics\":\"string\",\"aws.dynamodb.limit\":\"integer\",\"aws.dynamodb.local_secondary_indexes\":\"string[]\",\"aws.dynamodb.projection\":\"string\",\"aws.dynamodb.provisioned_read_capacity\":\"double\",\"aws.dynamodb.provisioned_write_capacity\":\"double\",\"aws.dynamodb.scanned_count\":\"integer\",\"aws.dynamodb.scan_forward\":\"boolean\",\"aws.dynamodb.segment\":\"integer\",\"aws.dynamodb.select\":\"string\",\"aws.dynamodb.table_count\":\"integer\",\"aws.dynamodb.table_names\":\"string[]\",\"aws.dynamodb.total_segments\":\"integer\",\"aws.extended_request_id\":\"string\",\"aws.kinesis.stream_name\":\"string\",\"aws.kinesis.stream.name\":\"string\",\"aws.lambda.aws_request_id\":\"string\",\"aws.lambda.execution_duration_in_millis\":\"double\",\"aws.lambda.function_name\":\"string\",\"aws.lambda.function_version\":\"string\",\"aws.lambda.invoked_arn\":\"string\",\"aws.lambda.invoked_function_arn\":\"string\",\"aws.lambda.remaining_time_in_millis\":\"double\",\"aws.log.group.names\":\"string[]\",\"aws.log.stream.names\":\"string[]\",\"aws.operation_name\":\"string\",aws_region:\"string\",\"aws.request.extended_id\":\"string\",\"aws.request_id\":\"string\",\"aws.request.id\":\"string\",\"aws.request.url\":\"string\",\"aws.s3.bucket\":\"string\",\"aws.secretsmanager.secret.arn\":\"string\",\"aws.sns.topic.arn\":\"string\",\"aws.step_functions.activity.arn\":\"string\",\"aws.step_functions.state_machine.arn\":\"string\",blocked_main_thread:\"boolean\",\"browser.bfcache.frame\":\"string\",\"browser.bfcache.not_restored_reason_count\":\"integer\",\"browser.bfcache.outcome\":\"string\",\"browser.bfcache.reason\":\"string\",\"browser.name\":\"string\",\"browser.navigation.id\":\"integer\",\"browser.navigation.type\":\"string\",\"browser.paint.type\":\"string\",\"browser.performance.navigation.activation_start\":\"double\",\"browser.performance.time_origin\":\"double\",\"browser.report.type\":\"string\",\"browser.script.invoker\":\"string\",\"browser.script.invoker_type\":\"string\",\"browser.script.source_char_position\":\"integer\",\"browser.version\":\"string\",\"browser.web_vital.cls.report_event\":\"string\",\"browser.web_vital.cls.source.<key>\":\"string\",\"browser.web_vital.cls.value\":\"double\",\"browser.web_vital.fcp.value\":\"double\",\"browser.web_vital.fp.value\":\"double\",\"browser.web_vital.inp.interaction_type\":\"string\",\"browser.web_vital.inp.target\":\"string\",\"browser.web_vital.inp.value\":\"double\",\"browser.web_vital.lcp.element\":\"string\",\"browser.web_vital.lcp.id\":\"string\",\"browser.web_vital.lcp.load_time\":\"integer\",\"browser.web_vital.lcp.render_time\":\"integer\",\"browser.web_vital.lcp.report_event\":\"string\",\"browser.web_vital.lcp.size\":\"integer\",\"browser.web_vital.lcp.url\":\"string\",\"browser.web_vital.lcp.value\":\"double\",\"browser.web_vital.ttfb.request_time\":\"double\",\"browser.web_vital.ttfb.value\":\"double\",\"cache.hit\":\"boolean\",\"cache.item_age\":\"integer\",\"cache.item_size\":\"integer\",\"cache.key\":\"string[]\",\"cache.operation\":\"string\",\"cache.tags\":\"string[]\",\"cache.ttl\":\"integer\",\"cache.write\":\"boolean\",channel:\"string\",\"client.address\":\"string\",\"client.port\":\"integer\",\"cloudflare.d1.duration\":\"integer\",\"cloudflare.d1.query_type\":\"string\",\"cloudflare.d1.rows_read\":\"integer\",\"cloudflare.d1.rows_written\":\"integer\",\"cloudflare.durable_object.query.bindings\":\"integer\",\"cloudflare.durable_object.response.rows_read\":\"integer\",\"cloudflare.durable_object.response.rows_written\":\"integer\",\"cloudflare.r2.bucket\":\"string\",\"cloudflare.r2.operation\":\"string\",\"cloudflare.r2.request.delimiter\":\"string\",\"cloudflare.r2.request.key\":\"string\",\"cloudflare.r2.request.part_number\":\"integer\",\"cloudflare.r2.request.prefix\":\"string\",\"cloudflare.workflow.attempt\":\"integer\",\"cloudflare.workflow.retries.backoff\":\"string\",\"cloudflare.workflow.retries.delay\":\"string\",\"cloudflare.workflow.retries.limit\":\"integer\",\"cloudflare.workflow.timeout\":\"string\",\"cloud.account.id\":\"string\",\"cloud.availability_zone\":\"string\",\"cloud.platform\":\"string\",\"cloud.provider\":\"string\",\"cloud.region\":\"string\",\"cloud.resource_id\":\"string\",cls:\"double\",\"cls.source.<key>\":\"string\",code:\"string\",\"code.filepath\":\"string\",\"code.file.path\":\"string\",\"code.function\":\"string\",\"code.function.name\":\"string\",\"code.lineno\":\"integer\",\"code.line.number\":\"integer\",\"code.namespace\":\"string\",connectionType:\"string\",\"connection.rtt\":\"integer\",\"culture.calendar\":\"string\",\"culture.display_name\":\"string\",\"culture.is_24_hour_format\":\"boolean\",\"culture.locale\":\"string\",\"culture.timezone\":\"string\",\"db.collection.name\":\"string\",\"db.connection_string\":\"string\",\"db.driver.name\":\"string\",\"db.mongodb.collection\":\"string\",\"db.name\":\"string\",\"db.namespace\":\"string\",\"db.operation\":\"string\",\"db.operation.batch.size\":\"integer\",\"db.operation.name\":\"string\",\"db.params\":\"string\",\"db.query.parameter.<key>\":\"string\",\"db.query.summary\":\"string\",\"db.query.text\":\"string\",\"db.redis.connection\":\"string\",\"db.redis.key\":\"string\",\"db.redis.parameters\":\"string[]\",\"db.response.status_code\":\"string\",\"db.sql.bindings\":\"string[]\",\"db.statement\":\"string\",\"db.stored_procedure.name\":\"string\",\"db.system\":\"string\",\"db.system.name\":\"string\",\"db.user\":\"string\",deviceMemory:\"string\",\"device.archs\":\"string[]\",\"device.battery_level\":\"double\",\"device.battery_temperature\":\"double\",\"device.boot_time\":\"string\",\"device.brand\":\"string\",\"device.charging\":\"boolean\",\"device.chipset\":\"string\",\"device.class\":\"string\",\"device.connection_type\":\"string\",\"device.cpu_description\":\"string\",\"device.external_free_storage\":\"integer\",\"device.external_storage_size\":\"integer\",\"device.family\":\"string\",\"device.free_memory\":\"integer\",\"device.free_storage\":\"integer\",\"device.id\":\"string\",\"device.locale\":\"string\",\"device.low_memory\":\"boolean\",\"device.low_power_mode\":\"boolean\",\"device.manufacturer\":\"string\",\"device.memory.estimated_capacity\":\"integer\",\"device.memory_size\":\"integer\",\"device.model\":\"string\",\"device.model_id\":\"string\",\"device.name\":\"string\",\"device.online\":\"boolean\",\"device.orientation\":\"string\",\"device.processor_count\":\"integer\",\"device.processor_frequency\":\"double\",\"device.screen_density\":\"double\",\"device.screen_dpi\":\"integer\",\"device.screen_height_pixels\":\"integer\",\"device.screen_width_pixels\":\"integer\",\"device.simulator\":\"boolean\",\"device.storage_size\":\"integer\",\"device.thermal_state\":\"string\",\"device.timezone\":\"string\",\"device.usable_memory\":\"integer\",dist:\"string\",\"django.function_name\":\"string\",\"django.middleware_name\":\"string\",effectiveConnectionType:\"string\",environment:\"string\",\"error.type\":\"string\",\"event.id\":\"integer\",\"event.name\":\"string\",\"exception.escaped\":\"boolean\",\"exception.message\":\"string\",\"exception.stacktrace\":\"string\",\"exception.type\":\"string\",\"faas.coldstart\":\"boolean\",\"faas.cron\":\"string\",\"faas.duration_in_ms\":\"integer\",\"faas.entry_point\":\"string\",\"faas.execution\":\"string\",\"faas.id\":\"string\",\"faas.identity\":\"string\",\"faas.invocation_id\":\"string\",\"faas.invoked_name\":\"string\",\"faas.invoked_provider\":\"string\",\"faas.invoked_region\":\"string\",\"faas.name\":\"string\",\"faas.time\":\"string\",\"faas.trigger\":\"string\",\"faas.version\":\"string\",fcp:\"double\",\"file.path\":\"string\",\"file.size\":\"integer\",\"flag.evaluation.<key>\":\"boolean\",fp:\"double\",\"frames.delay\":\"integer\",\"frames.frozen\":\"integer\",frames_frozen_rate:\"double\",\"frames.slow\":\"integer\",frames_slow_rate:\"double\",\"frames.total\":\"integer\",fs_error:\"string\",\"gcp.function.context.event_id\":\"string\",\"gcp.function.context.event_type\":\"string\",\"gcp.function.context.id\":\"string\",\"gcp.function.context.resource\":\"string\",\"gcp.function.context.source\":\"string\",\"gcp.function.context.specversion\":\"string\",\"gcp.function.context.time\":\"string\",\"gcp.function.context.timestamp\":\"string\",\"gcp.function.context.type\":\"string\",\"gcp.project.id\":\"string\",gcp_region:\"string\",\"gen_ai.agent.name\":\"string\",\"gen_ai.context.utilization\":\"double\",\"gen_ai.context.window_size\":\"integer\",\"gen_ai.conversation.id\":\"string\",\"gen_ai.cost.cache_creation.input_tokens\":\"double\",\"gen_ai.cost.cache_read.input_tokens\":\"double\",\"gen_ai.cost.input_tokens\":\"double\",\"gen_ai.cost.output_tokens\":\"double\",\"gen_ai.cost.reasoning.output_tokens\":\"double\",\"gen_ai.cost.total_tokens\":\"double\",\"gen_ai.embeddings.input\":\"string\",\"gen_ai.function_id\":\"string\",\"gen_ai.input.messages\":\"string\",\"gen_ai.operation.name\":\"string\",\"gen_ai.operation.type\":\"string\",\"gen_ai.output.messages\":\"string\",\"gen_ai.pipeline.name\":\"string\",\"gen_ai.prompt\":\"string\",\"gen_ai.prompt.name\":\"string\",\"gen_ai.provider.name\":\"string\",\"gen_ai.request.available_tools\":\"string\",\"gen_ai.request.frequency_penalty\":\"double\",\"gen_ai.request.max_tokens\":\"integer\",\"gen_ai.request.messages\":\"string\",\"gen_ai.request.model\":\"string\",\"gen_ai.request.presence_penalty\":\"double\",\"gen_ai.request.reasoning.level\":\"string\",\"gen_ai.request.schema\":\"string\",\"gen_ai.request.seed\":\"string\",\"gen_ai.request.stop_sequences\":\"string[]\",\"gen_ai.request.temperature\":\"double\",\"gen_ai.request.top_k\":\"integer\",\"gen_ai.request.top_p\":\"double\",\"gen_ai.response.finish_reason\":\"string\",\"gen_ai.response.finish_reasons\":\"string\",\"gen_ai.response.id\":\"string\",\"gen_ai.response.model\":\"string\",\"gen_ai.response.object\":\"string\",\"gen_ai.response.streaming\":\"boolean\",\"gen_ai.response.text\":\"string\",\"gen_ai.response.time_to_first_chunk\":\"double\",\"gen_ai.response.time_to_first_token\":\"double\",\"gen_ai.response.tokens_per_second\":\"double\",\"gen_ai.response.tool_calls\":\"string\",\"gen_ai.system\":\"string\",\"gen_ai.system_instructions\":\"string\",\"gen_ai.system.message\":\"string\",\"gen_ai.tool.call.arguments\":\"string\",\"gen_ai.tool.call.result\":\"string\",\"gen_ai.tool.definitions\":\"string\",\"gen_ai.tool.description\":\"string\",\"gen_ai.tool.input\":\"string\",\"gen_ai.tool.message\":\"string\",\"gen_ai.tool.name\":\"string\",\"gen_ai.tool.output\":\"string\",\"gen_ai.tool.type\":\"string\",\"gen_ai.usage.cache_creation.input_tokens\":\"integer\",\"gen_ai.usage.cache_creation_input_tokens\":\"integer\",\"gen_ai.usage.cache_read.input_tokens\":\"integer\",\"gen_ai.usage.cache_read_input_tokens\":\"integer\",\"gen_ai.usage.completion_tokens\":\"integer\",\"gen_ai.usage.input_tokens\":\"integer\",\"gen_ai.usage.input_tokens.cached\":\"integer\",\"gen_ai.usage.input_tokens.cache_write\":\"integer\",\"gen_ai.usage.output_tokens\":\"integer\",\"gen_ai.usage.output_tokens.reasoning\":\"integer\",\"gen_ai.usage.prompt_tokens\":\"integer\",\"gen_ai.usage.reasoning.output_tokens\":\"integer\",\"gen_ai.usage.total_tokens\":\"integer\",\"graphql.document\":\"string\",\"graphql.operation.name\":\"string\",\"graphql.operation.type\":\"string\",\"graphql.processing.type\":\"string\",\"graphql.source\":\"string\",\"grpc.error.bad_request.field_violations\":\"string[]\",\"grpc.error.debug_info.detail\":\"string\",\"grpc.error.debug_info.stack_entries\":\"string[]\",\"grpc.error.error_info.domain\":\"string\",\"grpc.error.error_info.metadata.<key>\":\"string\",\"grpc.error.error_info.reason\":\"string\",\"grpc.error.precondition_failure.violations\":\"string[]\",\"grpc.error.quota_failure.violations\":\"string[]\",\"grpc.error.resource_info.description\":\"string\",\"grpc.error.resource_info.owner\":\"string\",\"grpc.error.resource_info.resource_name\":\"string\",\"grpc.error.resource_info.resource_type\":\"string\",\"grpc.error.retry_info.retry_delay_ms\":\"integer\",hardwareConcurrency:\"string\",\"http.client_ip\":\"string\",\"http.decoded_response_content_length\":\"integer\",\"http.flavor\":\"string\",\"http.fragment\":\"string\",\"http.host\":\"string\",\"http.method\":\"string\",\"http.query\":\"string\",\"http.request.body.data\":\"string\",\"http.request.body.decoded_size\":\"integer\",\"http.request.body.size\":\"integer\",\"http.request.connection_end\":\"double\",\"http.request.connect_start\":\"double\",\"http.request_content_length\":\"integer\",\"http.request_content_length_uncompressed\":\"integer\",\"http.request.domain_lookup_end\":\"double\",\"http.request.domain_lookup_start\":\"double\",\"http.request.fetch_start\":\"double\",\"http.request.header.<key>\":\"string[]\",\"http.request.method\":\"string\",\"http.request_method\":\"string\",\"http.request.redirect_end\":\"double\",\"http.request.redirect_start\":\"double\",\"http.request.request_start\":\"double\",\"http.request.resend_count\":\"integer\",\"http.request.response_end\":\"double\",\"http.request.response_start\":\"double\",\"http.request.same_origin\":\"boolean\",\"http.request.secure_connection_start\":\"double\",\"http.request.time_to_first_byte\":\"double\",\"http.request.worker_start\":\"double\",\"http.response.body.decoded_size\":\"integer\",\"http.response.body.size\":\"integer\",\"http.response_content_length\":\"integer\",\"http.response_content_length_uncompressed\":\"integer\",\"http.response.header.content-length\":\"string\",\"http.response.header.<key>\":\"string[]\",\"http.response.size\":\"integer\",\"http.response.status_code\":\"integer\",\"http.response.status_text\":\"string\",\"http.response_transfer_size\":\"integer\",\"http.route\":\"string\",\"http.scheme\":\"string\",\"http.server_name\":\"string\",\"http.server.request.time_in_queue\":\"double\",\"http.status_code\":\"integer\",\"http.status_text\":\"string\",\"http.target\":\"string\",\"http.url\":\"string\",\"http.user_agent\":\"string\",id:\"string\",inp:\"double\",\"jsonrpc.protocol.version\":\"string\",\"jsonrpc.request.id\":\"string\",\"jvm.gc.action\":\"string\",\"jvm.gc.name\":\"string\",\"jvm.memory.pool.name\":\"string\",\"jvm.memory.type\":\"string\",\"jvm.thread.daemon\":\"boolean\",\"jvm.thread.state\":\"string\",\"koa.name\":\"string\",\"koa.type\":\"string\",\"langchain.chain.name\":\"string\",lcp:\"double\",\"lcp.element\":\"string\",\"lcp.id\":\"string\",\"lcp.loadTime\":\"integer\",\"lcp.renderTime\":\"integer\",\"lcp.size\":\"integer\",\"lcp.url\":\"string\",\"litestar.middleware_name\":\"string\",\"logger.name\":\"string\",\"mcp.cancelled.reason\":\"string\",\"mcp.cancelled.request_id\":\"string\",\"mcp.client.name\":\"string\",\"mcp.client.title\":\"string\",\"mcp.client.version\":\"string\",\"mcp.lifecycle.phase\":\"string\",\"mcp.logging.data_type\":\"string\",\"mcp.logging.level\":\"string\",\"mcp.logging.logger\":\"string\",\"mcp.logging.message\":\"string\",\"mcp.method.name\":\"string\",\"mcp.progress.current\":\"integer\",\"mcp.progress.message\":\"string\",\"mcp.progress.percentage\":\"double\",\"mcp.progress.token\":\"string\",\"mcp.progress.total\":\"integer\",\"mcp.prompt.name\":\"string\",\"mcp.prompt.result.description\":\"string\",\"mcp.prompt.result.message_content\":\"string\",\"mcp.prompt.result.message_count\":\"integer\",\"mcp.prompt.result.message_role\":\"string\",\"mcp.protocol.ready\":\"integer\",\"mcp.protocol.version\":\"string\",\"mcp.request.argument.<key>\":\"string\",\"mcp.request.argument.name\":\"string\",\"mcp.request.argument.uri\":\"string\",\"mcp.request.id\":\"string\",\"mcp.resource.protocol\":\"string\",\"mcp.resource.uri\":\"string\",\"mcp.server.name\":\"string\",\"mcp.server.title\":\"string\",\"mcp.server.version\":\"string\",\"mcp.session.id\":\"string\",\"mcp.tool.name\":\"string\",\"mcp.tool.result.content\":\"string\",\"mcp.tool.result.content_count\":\"integer\",\"mcp.tool.result.is_error\":\"boolean\",\"mcp.transport\":\"string\",\"mdc.<key>\":\"string\",\"messaging.batch.message_count\":\"integer\",\"messaging.conversation_id\":\"string\",\"messaging.destination\":\"string\",\"messaging.destination.connection\":\"string\",\"messaging.destination_kind\":\"string\",\"messaging.destination.name\":\"string\",\"messaging.destination.partition.id\":\"string\",\"messaging.kafka.message.key\":\"string\",\"messaging.kafka.message.tombstone\":\"boolean\",\"messaging.kafka.offset\":\"integer\",\"messaging.message.body.size\":\"integer\",\"messaging.message.conversation_id\":\"string\",\"messaging.message.envelope.size\":\"integer\",\"messaging.message.id\":\"string\",\"messaging.message_id\":\"string\",\"messaging.message.receive.latency\":\"integer\",\"messaging.message.retry.count\":\"integer\",\"messaging.operation\":\"string\",\"messaging.operation.name\":\"string\",\"messaging.operation.type\":\"string\",\"messaging.protocol\":\"string\",\"messaging.protocol_version\":\"string\",\"messaging.rabbitmq.destination.routing_key\":\"string\",\"messaging.rabbitmq.routing_key\":\"string\",\"messaging.system\":\"string\",\"messaging.url\":\"string\",method:\"string\",\"middleware.name\":\"string\",\"navigation.origin\":\"string\",\"navigation.route.id\":\"string\",\"navigation.type\":\"string\",\"nel.elapsed_time\":\"integer\",\"nel.phase\":\"string\",\"nel.referrer\":\"string\",\"nel.sampling_fraction\":\"double\",\"nel.sampling_function\":\"double\",\"nel.type\":\"string\",\"network.connection.effective_type\":\"string\",\"network.connection.rtt\":\"integer\",\"network.connection.type\":\"string\",\"network.local.address\":\"string\",\"network.local.port\":\"integer\",\"network.peer.address\":\"string\",\"network.peer.port\":\"integer\",\"network.protocol.name\":\"string\",\"network.protocol.version\":\"string\",\"network.transport\":\"string\",\"network.type\":\"string\",\"net.host.ip\":\"string\",\"net.host.name\":\"string\",\"net.host.port\":\"integer\",\"net.peer.ip\":\"string\",\"net.peer.name\":\"string\",\"net.peer.port\":\"integer\",\"net.protocol.name\":\"string\",\"net.protocol.version\":\"string\",\"net.sock.family\":\"string\",\"net.sock.host.addr\":\"string\",\"net.sock.host.port\":\"integer\",\"net.sock.peer.addr\":\"string\",\"net.sock.peer.name\":\"string\",\"net.sock.peer.port\":\"integer\",\"net.transport\":\"string\",\"os.build\":\"string\",\"os.build_id\":\"string\",\"os.description\":\"string\",\"os.kernel_version\":\"string\",\"os.name\":\"string\",\"os.raw_description\":\"string\",\"os.rooted\":\"boolean\",\"os.theme\":\"string\",\"os.type\":\"string\",\"os.version\":\"string\",\"otel.kind\":\"string\",\"otel.scope.name\":\"string\",\"otel.scope.version\":\"string\",\"otel.status_code\":\"string\",\"otel.status_description\":\"string\",\"params.<key>\":\"string\",\"performance.activationStart\":\"double\",\"performance.timeOrigin\":\"double\",port:\"integer\",previous_route:\"string\",\"process.command_args\":\"string[]\",\"process.executable.name\":\"string\",\"process.pid\":\"integer\",\"process.runtime.description\":\"string\",\"process.runtime.engine.name\":\"string\",\"process.runtime.engine.version\":\"string\",\"process.runtime.name\":\"string\",\"process.runtime.version\":\"string\",profile_id:\"string\",query:\"string\",\"query.<key>\":\"string\",\"react_native.architecture\":\"string\",\"react_native.module.call.count\":\"integer\",\"react_native.module.call.distinct_count\":\"integer\",\"react_native.module.duration.max\":\"double\",\"react_native.module.duration.total\":\"double\",\"react_native.module.error.count\":\"integer\",\"react_native.module.kind\":\"string\",\"react_native.module.method\":\"string\",\"react_native.module.name\":\"string\",\"react_native.module.top.duration\":\"double\",\"react_native.module.top.name\":\"string\",\"react.version\":\"string\",\"redis.command\":\"string\",\"redis.key\":\"string\",release:\"string\",\"remix.action_form_data.<key>\":\"string\",replayId:\"string\",replay_id:\"string\",\"resource.deployment.environment\":\"string\",\"resource.deployment.environment.name\":\"string\",\"resource.render_blocking_status\":\"string\",route:\"string\",\"router.navigation.origin\":\"string\",\"router.navigation.route.id\":\"string\",\"router.navigation.type\":\"string\",\"rpc.grpc.status_code\":\"integer\",\"rpc.method\":\"string\",\"rpc.response.status_code\":\"string\",\"rpc.service\":\"string\",\"rpc.system\":\"string\",\"rpc.system.name\":\"string\",\"runtime.build\":\"string\",\"runtime.name\":\"string\",\"runtime.raw_description\":\"string\",\"runtime.version\":\"string\",\"score.<key>\":\"double\",\"score.ratio.<key>\":\"double\",\"score.total\":\"double\",\"score.weight.<key>\":\"double\",\"sentry.action\":\"string\",\"sentry.browser.name\":\"string\",\"sentry.browser.version\":\"string\",\"sentry.cancellation_reason\":\"string\",\"sentry.category\":\"string\",\"sentry.client_sample_rate\":\"double\",\"sentry.description\":\"string\",\"sentry.dist\":\"string\",\"sentry.domain\":\"string\",\"sentry.dsc.environment\":\"string\",\"sentry.dsc.project_id\":\"string\",\"sentry.dsc.public_key\":\"string\",\"sentry.dsc.release\":\"string\",\"sentry.dsc.sampled\":\"boolean\",\"sentry.dsc.sample_rate\":\"string\",\"sentry.dsc.trace_id\":\"string\",\"sentry.dsc.transaction\":\"string\",\"sentry.environment\":\"string\",\"sentry.event.serialized_breadcrumbs\":\"string\",\"sentry.event.serialized_contexts\":\"string\",\"sentry.event.serialized_extra\":\"string\",\"sentry.event.serialized_meta\":\"string\",\"sentry.exclusive_time\":\"double\",\"sentry.frames.frozen\":\"integer\",\"sentry.frames.slow\":\"integer\",\"sentry.frames.total\":\"integer\",\"sentry.graphql.operation\":\"string\",\"sentry.group\":\"string\",\"sentry.http.prefetch\":\"boolean\",\"sentry.idle_span_finish_reason\":\"string\",\"sentry.is_localhost\":\"boolean\",\"sentry.is_remote\":\"boolean\",\"sentry.kind\":\"string\",\"sentry.link.type\":\"string\",\"sentry.main_thread\":\"boolean\",\"sentry.message.parameter.<key>\":\"string\",\"sentry.message.template\":\"string\",\"sentry.metric.source\":\"string\",\"sentry.mobile\":\"boolean\",\"sentry.module.<key>\":\"string\",\"sentry.nextjs.ssr.function.route\":\"string\",\"sentry.nextjs.ssr.function.type\":\"string\",\"sentry.normalized_db_query\":\"string\",\"sentry.normalized_db_query.hash\":\"string\",\"sentry.normalized_description\":\"string\",\"sentry.observed_timestamp_nanos\":\"string\",\"sentry.op\":\"string\",\"sentry.origin\":\"string\",\"sentry.pageload.span_id\":\"string\",\"sentry.platform\":\"string\",\"sentry.profiler_id\":\"string\",\"sentry.profile_id\":\"string\",\"sentry.relay.ingress\":\"string\",\"sentry.relay.pipeline\":\"string\",\"sentry.release\":\"string\",\"sentry.replay_id\":\"string\",\"sentry.replay_is_buffering\":\"boolean\",\"sentry.report_event\":\"string\",\"sentry.sdk.integrations\":\"string[]\",\"sentry.sdk.name\":\"string\",\"sentry.sdk.version\":\"string\",\"sentry.segment.id\":\"string\",\"sentry.segment_id\":\"string\",\"sentry.segment.name\":\"string\",\"sentry.segment.name.source\":\"string\",\"sentry.server_sample_rate\":\"double\",\"sentry.source\":\"string\",\"sentry.span.source\":\"string\",\"sentry.status\":\"string\",\"sentry.status_code\":\"integer\",\"sentry.status.message\":\"string\",\"sentry.sveltekit.navigation.from\":\"string\",\"sentry.sveltekit.navigation.to\":\"string\",\"sentry.sveltekit.navigation.type\":\"string\",\"sentry.thread.id\":\"integer\",\"sentry.timestamp.sequence\":\"integer\",\"sentry.trace_lifecycle\":\"string\",\"sentry.trace.parent_span_id\":\"string\",\"sentry.trace.status\":\"string\",\"sentry.transaction\":\"string\",\"sentry.user.email\":\"string\",\"sentry.user.geo.city\":\"string\",\"sentry.user.geo.country_code\":\"string\",\"sentry.user.geo.region\":\"string\",\"sentry.user.geo.subdivision\":\"string\",\"sentry.user.id\":\"string\",\"sentry.user.ip\":\"string\",\"sentry.user.username\":\"string\",\"server.address\":\"string\",server_name:\"string\",\"server.port\":\"integer\",\"service.name\":\"string\",\"service.version\":\"string\",\"session.id\":\"string\",stall_percentage:\"double\",stall_total_time:\"double\",\"starlette.middleware_name\":\"string\",\"starlite.middleware_name\":\"string\",\"state.type\":\"string\",\"subprocess.pid\":\"integer\",\"sveltekit.load.environment\":\"string\",\"sveltekit.load.node_id\":\"string\",\"sveltekit.load.node_type\":\"string\",\"sveltekit.tracing.original_name\":\"string\",\"thread.id\":\"integer\",\"thread.name\":\"string\",\"timber.tag\":\"string\",time_to_full_display:\"double\",time_to_initial_display:\"double\",transaction:\"string\",\"trpc.procedure_path\":\"string\",\"trpc.procedure_type\":\"string\",ttfb:\"double\",\"ttfb.requestTime\":\"double\",\"turbo_modules.total_call_count\":\"integer\",\"turbo_modules.total_duration_ms\":\"double\",\"turbo_modules.total_error_count\":\"integer\",\"turbo_modules.unique_methods\":\"integer\",\"turbo_module.arch\":\"string\",\"turbo_module.method\":\"string\",\"turbo_module.name\":\"string\",\"turbo_module.top_module\":\"string\",\"turbo_module.top_module_duration_ms\":\"double\",\"turbo_module.total_call_count\":\"integer\",\"turbo_module.total_duration_ms\":\"double\",\"turbo_module.total_error_count\":\"integer\",\"turbo_module.unique_methods\":\"integer\",type:\"string\",\"ui.component_name\":\"string\",\"ui.contributes_to_ttfd\":\"boolean\",\"ui.contributes_to_ttid\":\"boolean\",\"ui.element.height\":\"integer\",\"ui.element.id\":\"string\",\"ui.element.identifier\":\"string\",\"ui.element.load_time\":\"double\",\"ui.element.paint_type\":\"string\",\"ui.element.render_time\":\"double\",\"ui.element.type\":\"string\",\"ui.element.url\":\"string\",\"ui.element.width\":\"integer\",url:\"string\",\"url.domain\":\"string\",\"url.fragment\":\"string\",\"url.full\":\"string\",\"url.path\":\"string\",\"url.path.parameter.<key>\":\"string\",\"url.path.params.<key>\":\"string\",\"url.port\":\"integer\",\"url.query\":\"string\",\"url.same_origin\":\"boolean\",\"url.scheme\":\"string\",\"url.template\":\"string\",\"user_agent.original\":\"string\",\"user.email\":\"string\",\"user.full_name\":\"string\",\"user.geo.city\":\"string\",\"user.geo.country_code\":\"string\",\"user.geo.region\":\"string\",\"user.geo.subdivision\":\"string\",\"user.hash\":\"string\",\"user.id\":\"string\",\"user.ip_address\":\"string\",\"user.name\":\"string\",\"user.roles\":\"string[]\",\"vercel.ai.telemetry.metadata.<key>\":\"string\",\"vercel.branch\":\"string\",\"vercel.build_id\":\"string\",\"vercel.deployment_id\":\"string\",\"vercel.destination\":\"string\",\"vercel.edge_type\":\"string\",\"vercel.entrypoint\":\"string\",\"vercel.execution_region\":\"string\",\"vercel.id\":\"string\",\"vercel.ja3_digest\":\"string\",\"vercel.ja4_digest\":\"string\",\"vercel.log_type\":\"string\",\"vercel.path\":\"string\",\"vercel.project_id\":\"string\",\"vercel.project_name\":\"string\",\"vercel.proxy.cache_id\":\"string\",\"vercel.proxy.client_ip\":\"string\",\"vercel.proxy.host\":\"string\",\"vercel.proxy.lambda_region\":\"string\",\"vercel.proxy.method\":\"string\",\"vercel.proxy.path\":\"string\",\"vercel.proxy.path_type\":\"string\",\"vercel.proxy.path_type_variant\":\"string\",\"vercel.proxy.referer\":\"string\",\"vercel.proxy.region\":\"string\",\"vercel.proxy.response_byte_size\":\"integer\",\"vercel.proxy.scheme\":\"string\",\"vercel.proxy.status_code\":\"integer\",\"vercel.proxy.timestamp\":\"integer\",\"vercel.proxy.user_agent\":\"string[]\",\"vercel.proxy.vercel_cache\":\"string\",\"vercel.proxy.vercel_id\":\"string\",\"vercel.proxy.waf_action\":\"string\",\"vercel.proxy.waf_rule_id\":\"string\",\"vercel.request_id\":\"string\",\"vercel.source\":\"string\",\"vercel.status_code\":\"integer\"},Am={address:{brief:\"The destination hostname or IP address for a TCP connection.\",type:\"string\",keys:[\"server.address\",\"address\",\"http.server_name\",\"net.host.name\",\"server_name\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"example.com\",examples:[\"example.com\"],deprecation:{replacement:\"server.address\",reason:\"Old namespace-less attribute, to be replaced with server.address for span-first future\",status:\"backfill\"},aliases:[\"server.address\",\"http.server_name\",\"net.host.name\",\"http.host\",\"server_name\",\"net.peer.name\"],changelog:[{version:\"0.24.0\",prs:[647],description:\"Added server_name as an alias\"},{version:\"0.21.0\",prs:[588,602],description:\"Added net.peer.name as an alias\"},{version:\"0.19.0\",prs:[534],description:\"Added address attribute\"}]},\"ai.citations\":{brief:\"References or sources cited by the AI model in its response.\",type:\"string[]\",keys:[\"ai.citations\"],applyScrubbing:{key:\"auto\"},isInOtel:!1,visibility:\"public\",example:[\"Citation 1\",\"Citation 2\"],deprecation:{},changelog:[{version:\"0.5.0\",prs:[264]},{version:\"0.1.0\",prs:[55]}]},\"ai.completion_tokens.used\":{brief:\"The number of tokens used to respond to the message.\",type:\"integer\",keys:[\"gen_ai.usage.output_tokens\",\"ai.completion_tokens.used\",\"gen_ai.usage.completion_tokens\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:10,deprecation:{replacement:\"gen_ai.usage.output_tokens\",status:\"backfill\"},aliases:[\"gen_ai.usage.output_tokens\",\"gen_ai.usage.completion_tokens\"],changelog:[{version:\"0.4.0\",prs:[228]},{version:\"0.1.0\",prs:[57,61]},{version:\"0.0.0\"}]},\"ai.documents\":{brief:\"Documents or content chunks used as context for the AI model.\",type:\"string[]\",keys:[\"ai.documents\"],applyScrubbing:{key:\"auto\"},isInOtel:!1,visibility:\"public\",example:[\"document1.txt\",\"document2.pdf\"],deprecation:{},changelog:[{version:\"0.5.0\",prs:[264]},{version:\"0.1.0\",prs:[55]}]},\"ai.finish_reason\":{brief:\"The reason why the model stopped generating.\",type:\"string\",keys:[\"gen_ai.response.finish_reasons\",\"ai.finish_reason\",\"gen_ai.response.finish_reason\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"COMPLETE\",deprecation:{replacement:\"gen_ai.response.finish_reasons\",status:\"backfill\"},aliases:[\"gen_ai.response.finish_reasons\"],changelog:[{version:\"0.1.0\",prs:[55,57,61,108,127]}]},\"ai.frequency_penalty\":{brief:\"Used to reduce repetitiveness of generated tokens. The higher the value, the stronger a penalty is applied to previously present tokens, proportional to how many times they have already appeared in the prompt or prior generation.\",type:\"double\",keys:[\"gen_ai.request.frequency_penalty\",\"ai.frequency_penalty\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:.5,deprecation:{replacement:\"gen_ai.request.frequency_penalty\",status:\"backfill\"},aliases:[\"gen_ai.request.frequency_penalty\"],changelog:[{version:\"0.4.0\",prs:[228]},{version:\"0.1.0\",prs:[55,57,61,108]}]},\"ai.function_call\":{brief:\"For an AI model call, the function that was called. This is deprecated for OpenAI, and replaced by tool_calls\",type:\"string\",keys:[\"gen_ai.tool.name\",\"ai.function_call\",\"mcp.tool.name\"],applyScrubbing:{key:\"auto\"},isInOtel:!1,visibility:\"public\",example:\"function_name\",deprecation:{replacement:\"gen_ai.tool.name\",status:\"backfill\"},aliases:[\"gen_ai.tool.name\",\"mcp.tool.name\"],changelog:[{version:\"0.1.0\",prs:[55,57,61,108]}]},\"ai.generation_id\":{brief:\"Unique identifier for the completion.\",type:\"string\",keys:[\"gen_ai.response.id\",\"ai.generation_id\",\"ai.response.id\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"gen_123abc\",deprecation:{replacement:\"gen_ai.response.id\",status:\"backfill\"},aliases:[\"gen_ai.response.id\",\"ai.response.id\"],changelog:[{version:\"0.21.0\",prs:[583],description:\"Added ai.response.id as an alias\"},{version:\"0.1.0\",prs:[55,57,61,108,127]}]},\"ai.input_messages\":{brief:\"The input messages sent to the model\",type:\"string\",keys:[\"gen_ai.input.messages\",\"ai.input_messages\",\"ai.prompt\",\"ai.prompt.messages\",\"ai.texts\",\"gen_ai.prompt\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:'[{\"role\": \"user\", \"message\": \"hello\"}]',deprecation:{replacement:\"gen_ai.input.messages\",status:\"backfill\"},aliases:[\"gen_ai.request.messages\"],changelog:[{version:\"0.1.0\",prs:[65,119]},{version:\"0.0.0\"}]},\"ai.is_search_required\":{brief:\"Boolean indicating if the model needs to perform a search.\",type:\"boolean\",keys:[\"ai.is_search_required\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:!1,deprecation:{},changelog:[{version:\"0.5.0\",prs:[264]},{version:\"0.1.0\",prs:[55]}]},\"ai.metadata\":{brief:\"Extra metadata passed to an AI pipeline step.\",type:\"string\",keys:[\"ai.metadata\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:'{\"user_id\": 123, \"session_id\": \"abc123\"}',deprecation:{},changelog:[{version:\"0.5.0\",prs:[264]},{version:\"0.1.0\",prs:[55,127]}]},\"ai.model.id\":{brief:\"The id of the model used by the Vercel AI SDK.\",type:\"string\",keys:[\"gen_ai.request.model\",\"ai.model.id\",\"ai.model_id\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"gpt-4o\",examples:[\"gpt-4o\"],deprecation:{replacement:\"gen_ai.request.model\",reason:\"This attribute is being deprecated in favor of gen_ai.request.model.\",status:\"backfill\"},aliases:[\"gen_ai.request.model\",\"ai.model_id\"],changelog:[{version:\"0.21.0\",prs:[583],description:\"Added ai.model.id attribute\"}]},\"ai.model_id\":{brief:\"The vendor-specific ID of the model used.\",type:\"string\",keys:[\"gen_ai.request.model\",\"ai.model.id\",\"ai.model_id\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"gpt-4\",deprecation:{replacement:\"gen_ai.request.model\",status:\"backfill\"},aliases:[\"gen_ai.request.model\",\"ai.model.id\"],changelog:[{version:\"0.21.0\",prs:[583],description:\"Added ai.model.id as an alias\"},{version:\"0.1.0\",prs:[57,61,127]},{version:\"0.0.0\"}]},\"ai.model.provider\":{brief:\"The provider of the model.\",type:\"string\",keys:[\"gen_ai.provider.name\",\"ai.model.provider\",\"gen_ai.system\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"openai\",deprecation:{replacement:\"gen_ai.provider.name\",status:\"backfill\"},aliases:[\"gen_ai.provider.name\",\"gen_ai.system\"],changelog:[{version:\"0.4.0\",prs:[253]},{version:\"0.1.0\",prs:[57,61,108,127]}]},\"ai.pipeline.name\":{brief:\"The name of the AI pipeline.\",type:\"string\",keys:[\"gen_ai.pipeline.name\",\"ai.pipeline.name\",\"langchain.chain.name\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"Autofix Pipeline\",deprecation:{replacement:\"gen_ai.pipeline.name\",status:\"backfill\"},aliases:[\"gen_ai.pipeline.name\",\"langchain.chain.name\"],changelog:[{version:\"0.22.0\",prs:[599],description:\"Added langchain.chain.name as an alias\"},{version:\"0.1.0\",prs:[53,76,108,127]}]},\"ai.preamble\":{brief:\"For an AI model call, the preamble parameter. Preambles are a part of the prompt used to adjust the model's overall behavior and conversation style.\",type:\"string\",keys:[\"gen_ai.system_instructions\",\"ai.preamble\",\"gen_ai.system.message\"],applyScrubbing:{key:\"auto\"},isInOtel:!1,visibility:\"public\",example:\"You are now a clown.\",deprecation:{replacement:\"gen_ai.system_instructions\",status:\"backfill\"},aliases:[\"gen_ai.system_instructions\"],changelog:[{version:\"0.5.0\",prs:[264]},{version:\"0.1.0\",prs:[55]}]},\"ai.presence_penalty\":{brief:\"Used to reduce repetitiveness of generated tokens. Similar to frequency_penalty, except that this penalty is applied equally to all tokens that have already appeared, regardless of their exact frequencies.\",type:\"double\",keys:[\"gen_ai.request.presence_penalty\",\"ai.presence_penalty\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:.5,deprecation:{replacement:\"gen_ai.request.presence_penalty\",status:\"backfill\"},aliases:[\"gen_ai.request.presence_penalty\"],changelog:[{version:\"0.4.0\",prs:[228]},{version:\"0.1.0\",prs:[55,57,61,108]}]},\"ai.prompt\":{brief:\"The prompt passed to the Vercel AI SDK, as a stringified object.\",type:\"string\",keys:[\"gen_ai.input.messages\",\"ai.input_messages\",\"ai.prompt\",\"ai.prompt.messages\",\"ai.texts\",\"gen_ai.prompt\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:'{\"prompt\":\"What is the weather in Paris?\"}',examples:['{\"prompt\":\"What is the weather in Paris?\"}'],deprecation:{replacement:\"gen_ai.input.messages\",reason:\"This attribute is being deprecated in favor of gen_ai.input.messages.\",status:\"backfill\"},aliases:[\"gen_ai.input.messages\",\"ai.texts\",\"ai.prompt.messages\",\"gen_ai.prompt\"],changelog:[{version:\"0.21.0\",prs:[583],description:\"Added ai.prompt attribute\"}]},\"ai.prompt.messages\":{brief:\"The input messages sent to the AI model.\",type:\"string\",keys:[\"gen_ai.input.messages\",\"ai.input_messages\",\"ai.prompt\",\"ai.prompt.messages\",\"ai.texts\",\"gen_ai.prompt\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:'[{\"role\": \"user\", \"message\": \"hello\"}]',deprecation:{replacement:\"gen_ai.input.messages\",status:\"backfill\"},aliases:[\"gen_ai.input.messages\",\"ai.texts\",\"gen_ai.prompt\",\"ai.prompt\"],changelog:[{version:\"0.21.0\",prs:[583],description:\"Added ai.prompt as an alias\"},{version:\"0.19.0\",prs:[498],description:\"Added ai.prompt.messages attribute\"}]},\"ai.prompt_tokens.used\":{brief:\"The number of tokens used to process just the prompt.\",type:\"integer\",keys:[\"gen_ai.usage.input_tokens\",\"ai.prompt_tokens.used\",\"gen_ai.usage.prompt_tokens\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:20,deprecation:{replacement:\"gen_ai.usage.input_tokens\",status:\"backfill\"},aliases:[\"gen_ai.usage.prompt_tokens\",\"gen_ai.usage.input_tokens\"],changelog:[{version:\"0.4.0\",prs:[228]},{version:\"0.1.0\",prs:[57,61]},{version:\"0.0.0\"}]},\"ai.prompt.tools\":{brief:\"The tools made available to the model, as an array of stringified tool definitions.\",type:\"string[]\",keys:[\"gen_ai.tool.definitions\",\"ai.prompt.tools\",\"ai.tools\",\"gen_ai.request.available_tools\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:['{\"type\":\"function\",\"name\":\"get_weather\"}'],examples:[['{\"type\":\"function\",\"name\":\"get_weather\"}']],deprecation:{replacement:\"gen_ai.tool.definitions\",reason:\"This attribute is being deprecated in favor of gen_ai.tool.definitions.\",status:\"backfill\"},changelog:[{version:\"0.21.0\",prs:[583],description:\"Added ai.prompt.tools attribute\"}]},\"ai.raw_prompting\":{brief:\"When enabled, the user\\u2019s prompt will be sent to the model without any pre-processing.\",type:\"boolean\",keys:[\"ai.raw_prompting\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:!0,deprecation:{},changelog:[{version:\"0.5.0\",prs:[264]},{version:\"0.1.0\",prs:[55]}]},\"ai.responses\":{brief:\"The response messages sent back by the AI model.\",type:\"string[]\",keys:[\"gen_ai.output.messages\",\"ai.response.text\",\"ai.response.toolCalls\",\"ai.responses\",\"ai.tool_calls\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:[\"hello\",\"world\"],deprecation:{replacement:\"gen_ai.output.messages\",status:\"backfill\"},changelog:[{version:\"0.1.0\",prs:[65,127]},{version:\"0.0.0\"}]},\"ai.response_format\":{brief:\"For an AI model call, the format of the response\",type:\"string\",keys:[\"ai.response_format\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"json_object\",deprecation:{},changelog:[{version:\"0.5.0\",prs:[264]},{version:\"0.1.0\",prs:[55,127]}]},\"ai.response.id\":{brief:\"The id of the response returned by the model.\",type:\"string\",keys:[\"gen_ai.response.id\",\"ai.generation_id\",\"ai.response.id\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"chatcmpl-BuKJgVSKAMTUYbBSjHTMUuNGKzOPY\",examples:[\"chatcmpl-BuKJgVSKAMTUYbBSjHTMUuNGKzOPY\"],deprecation:{replacement:\"gen_ai.response.id\",reason:\"This attribute is being deprecated in favor of gen_ai.response.id.\",status:\"backfill\"},aliases:[\"gen_ai.response.id\",\"ai.generation_id\"],changelog:[{version:\"0.21.0\",prs:[583],description:\"Added ai.response.id attribute\"}]},\"ai.response.model\":{brief:\"The id of the model that produced the response.\",type:\"string\",keys:[\"gen_ai.response.model\",\"ai.response.model\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"gpt-4o-2024-08-06\",examples:[\"gpt-4o-2024-08-06\"],deprecation:{replacement:\"gen_ai.response.model\",reason:\"This attribute is being deprecated in favor of gen_ai.response.model.\",status:\"backfill\"},aliases:[\"gen_ai.response.model\"],changelog:[{version:\"0.21.0\",prs:[583],description:\"Added ai.response.model attribute\"}]},\"ai.response.object\":{brief:\"The type of the object returned by the model.\",type:\"string\",keys:[\"ai.response.object\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"chat.completion\",examples:[\"chat.completion\"],deprecation:{reason:\"This attribute is deprecated. The Sentry conventions have no replacement for the raw Vercel AI response object type.\"},changelog:[{version:\"0.21.0\",prs:[583],description:\"Added ai.response.object attribute\"}]},\"ai.response.text\":{brief:\"The text response from the AI model.\",type:\"string\",keys:[\"gen_ai.output.messages\",\"ai.response.text\",\"ai.response.toolCalls\",\"ai.responses\",\"ai.tool_calls\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"The weather in Paris is currently rainy.\",deprecation:{replacement:\"gen_ai.output.messages\",status:\"backfill\"},aliases:[\"gen_ai.output.messages\",\"ai.response.toolCalls\"],changelog:[{version:\"0.19.0\",prs:[498],description:\"Added ai.response.text attribute\"}]},\"ai.response.timestamp\":{brief:\"The ISO 8601 timestamp at which the response was produced.\",type:\"string\",keys:[\"ai.response.timestamp\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"2026-02-19T15:32:11.000Z\",examples:[\"2026-02-19T15:32:11.000Z\"],deprecation:{reason:\"This attribute is deprecated. The span start and end timestamps carry the same information.\"},changelog:[{version:\"0.21.0\",prs:[583],description:\"Added ai.response.timestamp attribute\"}]},\"ai.response.toolCalls\":{brief:\"The tool calls in the AI model response.\",type:\"string\",keys:[\"gen_ai.output.messages\",\"ai.response.text\",\"ai.response.toolCalls\",\"ai.responses\",\"ai.tool_calls\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:'[{\"name\": \"get_weather\", \"arguments\": {\"location\": \"Paris\"}}]',deprecation:{replacement:\"gen_ai.output.messages\",status:\"backfill\"},aliases:[\"gen_ai.output.messages\",\"ai.response.text\"],changelog:[{version:\"0.19.0\",prs:[498],description:\"Added ai.response.toolCalls attribute\"}]},\"ai.schema\":{brief:\"The stringified JSON schema the model output must conform to.\",type:\"string\",keys:[\"ai.schema\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:'{\"type\":\"object\",\"properties\":{\"city\":{\"type\":\"string\"}}}',examples:['{\"type\":\"object\",\"properties\":{\"city\":{\"type\":\"string\"}}}'],deprecation:{reason:\"This attribute is deprecated. The Sentry conventions have no replacement for the requested output schema.\"},changelog:[{version:\"0.21.0\",prs:[583],description:\"Added ai.schema attribute\"}]},\"ai.search_queries\":{brief:\"Queries used to search for relevant context or documents.\",type:\"string[]\",keys:[\"ai.search_queries\"],applyScrubbing:{key:\"auto\"},isInOtel:!1,visibility:\"public\",example:[\"climate change effects\",\"renewable energy\"],deprecation:{},changelog:[{version:\"0.5.0\",prs:[264]},{version:\"0.1.0\",prs:[55]}]},\"ai.search_results\":{brief:\"Results returned from search queries for context.\",type:\"string[]\",keys:[\"ai.search_results\"],applyScrubbing:{key:\"auto\"},isInOtel:!1,visibility:\"public\",example:[\"search_result_1, search_result_2\"],deprecation:{},changelog:[{version:\"0.5.0\",prs:[264]},{version:\"0.1.0\",prs:[55]}]},\"ai.seed\":{brief:\"The seed, ideally models given the same seed and same other parameters will produce the exact same output.\",type:\"string\",keys:[\"gen_ai.request.seed\",\"ai.seed\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"1234567890\",deprecation:{replacement:\"gen_ai.request.seed\",status:\"backfill\"},aliases:[\"gen_ai.request.seed\"],changelog:[{version:\"0.1.0\",prs:[55,57,61,108,127]}]},\"ai.streaming\":{brief:\"Whether the request was streamed back.\",type:\"boolean\",keys:[\"gen_ai.response.streaming\",\"ai.streaming\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:!0,deprecation:{replacement:\"gen_ai.response.streaming\",status:\"backfill\"},aliases:[\"gen_ai.response.streaming\"],changelog:[{version:\"0.1.0\",prs:[76,108]},{version:\"0.0.0\"}]},\"ai.tags\":{brief:\"Tags that describe an AI pipeline step.\",type:\"string\",keys:[\"ai.tags\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:'{\"executed_function\": \"add_integers\"}',deprecation:{},changelog:[{version:\"0.5.0\",prs:[264]},{version:\"0.1.0\",prs:[55,127]}]},\"ai.temperature\":{brief:\"For an AI model call, the temperature parameter. Temperature essentially means how random the output will be.\",type:\"double\",keys:[\"gen_ai.request.temperature\",\"ai.temperature\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:.1,deprecation:{replacement:\"gen_ai.request.temperature\",status:\"backfill\"},aliases:[\"gen_ai.request.temperature\"],changelog:[{version:\"0.4.0\",prs:[228]},{version:\"0.1.0\",prs:[55,57,61,108]}]},\"ai.texts\":{brief:\"Raw text inputs provided to the model.\",type:\"string[]\",keys:[\"gen_ai.input.messages\",\"ai.input_messages\",\"ai.prompt\",\"ai.prompt.messages\",\"ai.texts\",\"gen_ai.prompt\"],applyScrubbing:{key:\"auto\"},isInOtel:!1,visibility:\"public\",example:[\"Hello, how are you?\",\"What is the capital of France?\"],deprecation:{replacement:\"gen_ai.input.messages\",status:\"backfill\"},aliases:[\"gen_ai.input.messages\",\"ai.prompt.messages\",\"gen_ai.prompt\",\"ai.prompt\"],changelog:[{version:\"0.21.0\",prs:[583],description:\"Added ai.prompt as an alias\"},{version:\"0.5.0\",prs:[264]},{version:\"0.1.0\",prs:[55]}]},\"ai.toolCall.args\":{brief:\"The arguments of the tool call.\",type:\"string\",keys:[\"gen_ai.tool.call.arguments\",\"ai.toolCall.args\",\"gen_ai.tool.input\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:'{\"location\": \"Paris\"}',deprecation:{replacement:\"gen_ai.tool.call.arguments\",status:\"backfill\"},aliases:[\"gen_ai.tool.call.arguments\",\"gen_ai.tool.input\"],changelog:[{version:\"0.19.0\",prs:[498],description:\"Added ai.toolCall.args attribute\"}]},\"ai.toolCall.result\":{brief:\"The result of the tool call.\",type:\"string\",keys:[\"gen_ai.tool.call.result\",\"ai.toolCall.result\",\"anthropic.tool_result.content\",\"gen_ai.tool.message\",\"gen_ai.tool.output\",\"mcp.tool.result.content\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"rainy, 57\\xB0F\",deprecation:{replacement:\"gen_ai.tool.call.result\",status:\"backfill\"},aliases:[\"gen_ai.tool.call.result\",\"gen_ai.tool.output\",\"gen_ai.tool.message\",\"mcp.tool.result.content\",\"anthropic.tool_result.content\"],changelog:[{version:\"0.19.0\",prs:[498],description:\"Added ai.toolCall.result attribute\"}]},\"ai.tools\":{brief:\"For an AI model call, the functions that are available\",type:\"string[]\",keys:[\"gen_ai.tool.definitions\",\"ai.prompt.tools\",\"ai.tools\",\"gen_ai.request.available_tools\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:[\"function_1\",\"function_2\"],deprecation:{replacement:\"gen_ai.tool.definitions\",status:\"backfill\"},changelog:[{version:\"0.1.0\",prs:[55,65,127]}]},\"ai.tool_calls\":{brief:\"For an AI model call, the tool calls that were made.\",type:\"string[]\",keys:[\"gen_ai.output.messages\",\"ai.response.text\",\"ai.response.toolCalls\",\"ai.responses\",\"ai.tool_calls\"],applyScrubbing:{key:\"auto\"},isInOtel:!1,visibility:\"public\",example:[\"tool_call_1\",\"tool_call_2\"],deprecation:{replacement:\"gen_ai.output.messages\",status:\"backfill\"},changelog:[{version:\"0.1.0\",prs:[55,65]}]},\"ai.top_k\":{brief:\"Limits the model to only consider the K most likely next tokens, where K is an integer (e.g., top_k=20 means only the 20 highest probability tokens are considered).\",type:\"integer\",keys:[\"gen_ai.request.top_k\",\"ai.top_k\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:35,deprecation:{replacement:\"gen_ai.request.top_k\",status:\"backfill\"},aliases:[\"gen_ai.request.top_k\"],changelog:[{version:\"0.4.0\",prs:[228]},{version:\"0.1.0\",prs:[55,57,61,108]}]},\"ai.top_p\":{brief:\"Limits the model to only consider tokens whose cumulative probability mass adds up to p, where p is a float between 0 and 1 (e.g., top_p=0.7 means only tokens that sum up to 70% of the probability mass are considered).\",type:\"double\",keys:[\"gen_ai.request.top_p\",\"ai.top_p\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:.7,deprecation:{replacement:\"gen_ai.request.top_p\",status:\"backfill\"},aliases:[\"gen_ai.request.top_p\"],changelog:[{version:\"0.4.0\",prs:[228]},{version:\"0.1.0\",prs:[55,57,61,108]}]},\"ai.total_cost\":{brief:\"The total cost for the tokens used.\",type:\"double\",keys:[\"gen_ai.cost.total_tokens\",\"ai.total_cost\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:12.34,deprecation:{replacement:\"gen_ai.cost.total_tokens\",status:\"backfill\"},aliases:[\"gen_ai.cost.total_tokens\"],changelog:[{version:\"0.5.0\",prs:[264]},{version:\"0.4.0\",prs:[228]},{version:\"0.1.0\",prs:[53]}],searchAlias:{name:\"ai.total_cost\",type:\"currency\"}},\"ai.total_tokens.used\":{brief:\"The total number of tokens used to process the prompt.\",type:\"integer\",keys:[\"gen_ai.usage.total_tokens\",\"ai.total_tokens.used\",\"ai.usage.tokens\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:30,deprecation:{replacement:\"gen_ai.usage.total_tokens\",status:\"backfill\"},aliases:[\"gen_ai.usage.total_tokens\",\"ai.usage.tokens\"],changelog:[{version:\"0.21.0\",prs:[583],description:\"Added ai.usage.tokens as an alias\"},{version:\"0.4.0\",prs:[228]},{version:\"0.1.0\",prs:[57,61,108]},{version:\"0.0.0\"}]},\"ai.usage.tokens\":{brief:\"The total number of tokens used for the request and the response.\",type:\"integer\",keys:[\"gen_ai.usage.total_tokens\",\"ai.total_tokens.used\",\"ai.usage.tokens\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:150,examples:[150],deprecation:{replacement:\"gen_ai.usage.total_tokens\",reason:\"This attribute is being deprecated in favor of gen_ai.usage.total_tokens.\",status:\"backfill\"},aliases:[\"gen_ai.usage.total_tokens\",\"ai.total_tokens.used\"],changelog:[{version:\"0.21.0\",prs:[583],description:\"Added ai.usage.tokens attribute\"}]},\"ai.values\":{brief:\"The stringified values produced by a Vercel AI SDK object or array generation.\",type:\"string\",keys:[\"ai.values\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:'[{\"city\":\"Paris\"}]',examples:['[{\"city\":\"Paris\"}]'],deprecation:{reason:\"This attribute is deprecated. Use gen_ai.output.messages for model output instead.\"},changelog:[{version:\"0.21.0\",prs:[583],description:\"Added ai.values attribute\"}]},\"ai.warnings\":{brief:\"Warning messages generated during model execution.\",type:\"string[]\",keys:[\"ai.warnings\"],applyScrubbing:{key:\"auto\"},isInOtel:!1,visibility:\"public\",example:[\"Token limit exceeded\"],deprecation:{},changelog:[{version:\"0.5.0\",prs:[264]},{version:\"0.1.0\",prs:[55]}]},\"angular.version\":{brief:\"The version of the Angular framework\",type:\"string\",keys:[\"angular.version\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"17.1.0\",changelog:[{version:\"0.7.0\",prs:[367],description:\"Added angular.version attribute\"}]},\"anthropic.tool_result.content\":{brief:\"The content of the tool result.\",type:\"string\",keys:[\"gen_ai.tool.call.result\",\"ai.toolCall.result\",\"anthropic.tool_result.content\",\"gen_ai.tool.message\",\"gen_ai.tool.output\",\"mcp.tool.result.content\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"rainy, 57\\xB0F\",examples:[\"rainy, 57\\xB0F\"],deprecation:{replacement:\"gen_ai.tool.call.result\",reason:\"Use gen_ai.tool.call.result for tool results.\",status:\"backfill\"},aliases:[\"gen_ai.tool.call.result\",\"gen_ai.tool.output\",\"gen_ai.tool.message\",\"mcp.tool.result.content\",\"ai.toolCall.result\"],changelog:[{version:\"0.26.0\",prs:[660],description:\"Added anthropic.tool_result.content attribute, deprecated in favor of gen_ai.tool.call.result\"}]},\"app.app_build\":{brief:\"Internal build identifier, as it appears on the platform.\",type:\"string\",keys:[\"app.build\",\"app.app_build\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"1\",deprecation:{replacement:\"app.build\",reason:\"Deprecated in favor of app.build\",status:\"backfill\"},aliases:[\"app.build\"],changelog:[{version:\"0.5.0\",prs:[296],description:\"Added and deprecated app.app_build in favor of app.build\"}]},\"app.app_identifier\":{brief:\"Version-independent application identifier, often a dotted bundle ID.\",type:\"string\",keys:[\"app.identifier\",\"app.app_identifier\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"com.example.myapp\",deprecation:{replacement:\"app.identifier\",reason:\"Deprecated in favor of app.identifier\",status:\"backfill\"},aliases:[\"app.identifier\"],changelog:[{version:\"0.5.0\",prs:[296],description:\"Added and deprecated app.app_identifier in favor of app.identifier\"}]},\"app.app_name\":{brief:\"Human readable application name, as it appears on the platform.\",type:\"string\",keys:[\"app.name\",\"app.app_name\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"My App\",deprecation:{replacement:\"app.name\",reason:\"Deprecated in favor of app.name\",status:\"backfill\"},aliases:[\"app.name\"],changelog:[{version:\"0.5.0\",prs:[296],description:\"Added and deprecated app.app_name in favor of app.name\"}]},\"app.app_start_time\":{brief:\"Formatted UTC timestamp when the user started the application.\",type:\"string\",keys:[\"app.start_time\",\"app.app_start_time\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"2025-01-01T00:00:00.000Z\",deprecation:{replacement:\"app.start_time\",reason:\"Deprecated in favor of app.start_time\",status:\"backfill\"},aliases:[\"app.start_time\"],changelog:[{version:\"0.5.0\",prs:[296],description:\"Added and deprecated app.app_start_time in favor of app.start_time\"}]},\"app.app_version\":{brief:\"Human readable application version, as it appears on the platform.\",type:\"string\",keys:[\"app.version\",\"app.app_version\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"1.0.0\",deprecation:{replacement:\"app.version\",reason:\"Deprecated in favor of app.version\",status:\"backfill\"},aliases:[\"app.version\"],changelog:[{version:\"0.5.0\",prs:[296],description:\"Added and deprecated app.app_version in favor of app.version\"}]},\"app.build\":{brief:\"Internal build identifier, as it appears on the platform.\",type:\"string\",keys:[\"app.build\",\"app.app_build\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"1\",aliases:[\"app.app_build\"],changelog:[{version:\"0.5.0\",prs:[296],description:\"Added app.build attribute\"}]},\"app.identifier\":{brief:\"Version-independent application identifier, often a dotted bundle ID.\",type:\"string\",keys:[\"app.identifier\",\"app.app_identifier\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"com.example.myapp\",aliases:[\"app.app_identifier\"],changelog:[{version:\"0.5.0\",prs:[296],description:\"Added app.identifier attribute\"}]},\"app.in_foreground\":{brief:\"Whether the application is currently in the foreground.\",type:\"boolean\",keys:[\"app.in_foreground\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:!0,changelog:[{version:\"0.5.0\",prs:[296],description:\"Added app.in_foreground attribute\"}]},\"app.name\":{brief:\"Human readable application name, as it appears on the platform.\",type:\"string\",keys:[\"app.name\",\"app.app_name\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"My App\",aliases:[\"app.app_name\"],changelog:[{version:\"0.5.0\",prs:[296],description:\"Added app.name attribute\"}]},app_start_cold:{brief:\"The duration of a cold app start in milliseconds\",type:\"double\",keys:[\"app.vitals.start.cold.value\",\"app_start_cold\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:1234.56,deprecation:{replacement:\"app.vitals.start.cold.value\",reason:\"Replaced by app.vitals.start.cold.value to align with the app.vitals.* namespace for mobile performance attributes\",status:\"backfill\"},aliases:[\"app.vitals.start.cold.value\"],changelog:[{version:\"0.5.0\",prs:[323],description:\"Added and deprecated in favor of app.vitals.start.cold.value\"}]},\"app.start_time\":{brief:\"Formatted UTC timestamp when the user started the application.\",type:\"string\",keys:[\"app.start_time\",\"app.app_start_time\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"2025-01-01T00:00:00.000Z\",aliases:[\"app.app_start_time\"],changelog:[{version:\"0.5.0\",prs:[296],description:\"Added app.start_time attribute\"}]},app_start_type:{brief:\"Mobile app start variant. Either cold or warm.\",type:\"string\",keys:[\"app.vitals.start.type\",\"app_start_type\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"cold\",deprecation:{replacement:\"app.vitals.start.type\",reason:\"Replaced by app.vitals.start.type to align with the app.vitals.* namespace for mobile performance attributes\",status:\"backfill\"},aliases:[\"app.vitals.start.type\"],changelog:[{version:\"0.5.0\",prs:[313],description:\"Deprecated in favor of app.vitals.start.type\"},{version:\"0.1.0\",prs:[127]},{version:\"0.0.0\"}]},app_start_warm:{brief:\"The duration of a warm app start in milliseconds\",type:\"double\",keys:[\"app.vitals.start.warm.value\",\"app_start_warm\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:1234.56,deprecation:{replacement:\"app.vitals.start.warm.value\",reason:\"Replaced by app.vitals.start.warm.value to align with the app.vitals.* namespace for mobile performance attributes\",status:\"backfill\"},aliases:[\"app.vitals.start.warm.value\"],changelog:[{version:\"0.5.0\",prs:[323],description:\"Added and deprecated in favor of app.vitals.start.warm.value\"}]},\"app.version\":{brief:\"Human readable application version, as it appears on the platform.\",type:\"string\",keys:[\"app.version\",\"app.app_version\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"1.0.0\",aliases:[\"app.app_version\"],changelog:[{version:\"0.5.0\",prs:[296],description:\"Added app.version attribute\"}]},\"app.vitals.frames.delay.value\":{brief:\"The sum of all delayed frame durations in seconds during the lifetime of the span. For more information see [frames delay](https://develop.sentry.dev/sdk/performance/frames-delay/).\",type:\"integer\",keys:[\"app.vitals.frames.delay.value\",\"frames.delay\",\"mobile.frames_delay\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:5,aliases:[\"frames.delay\"],changelog:[{version:\"0.5.0\",prs:[313],description:\"Added app.vitals.frames.delay.value to replace frames.delay\"}]},\"app.vitals.frames.frozen.count\":{brief:\"The number of frozen frames rendered during the lifetime of the span.\",type:\"integer\",keys:[\"app.vitals.frames.frozen.count\",\"frames.frozen\",\"mobile.frozen_frames\",\"sentry.frames.frozen\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:3,aliases:[\"frames.frozen\",\"sentry.frames.frozen\"],changelog:[{version:\"0.19.0\",prs:[500],description:\"Added sentry.frames.frozen as an alias\"},{version:\"0.5.0\",prs:[313],description:\"Added app.vitals.frames.frozen.count to replace frames.frozen\"}]},\"app.vitals.frames.frozen.rate\":{brief:\"The fraction of rendered frames that were frozen, calculated as `app.vitals.frames.frozen.count` divided by `app.vitals.frames.total.count`. This is computed by Relay.\",type:\"double\",keys:[\"app.vitals.frames.frozen.rate\",\"frames_frozen_rate\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:.5,aliases:[\"frames_frozen_rate\"],changelog:[{version:\"0.19.0\",prs:[493],description:\"Added app.vitals.frames.frozen.rate attribute\"}]},\"app.vitals.frames.slow.count\":{brief:\"The number of slow frames rendered during the lifetime of the span.\",type:\"integer\",keys:[\"app.vitals.frames.slow.count\",\"frames.slow\",\"mobile.slow_frames\",\"sentry.frames.slow\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:1,aliases:[\"frames.slow\",\"sentry.frames.slow\"],changelog:[{version:\"0.19.0\",prs:[500],description:\"Added sentry.frames.slow as an alias\"},{version:\"0.5.0\",prs:[313],description:\"Added app.vitals.frames.slow.count to replace frames.slow\"}]},\"app.vitals.frames.slow.rate\":{brief:\"The fraction of rendered frames that were slow, calculated as `app.vitals.frames.slow.count` divided by `app.vitals.frames.total.count`. This is computed by Relay.\",type:\"double\",keys:[\"app.vitals.frames.slow.rate\",\"frames_slow_rate\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:.25,aliases:[\"frames_slow_rate\"],changelog:[{version:\"0.19.0\",prs:[493],description:\"Added app.vitals.frames.slow.rate attribute\"}]},\"app.vitals.frames.total.count\":{brief:\"The number of total frames rendered during the lifetime of the span.\",type:\"integer\",keys:[\"app.vitals.frames.total.count\",\"frames.total\",\"mobile.total_frames\",\"sentry.frames.total\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:60,aliases:[\"frames.total\",\"sentry.frames.total\"],changelog:[{version:\"0.19.0\",prs:[500],description:\"Added sentry.frames.total as an alias\"},{version:\"0.5.0\",prs:[313],description:\"Added app.vitals.frames.total.count to replace frames.total\"}]},\"app.vitals.stall.duration\":{brief:\"The combined duration of all stalls in milliseconds. Only applies to React Native. This is computed by Relay.\",type:\"double\",keys:[\"app.vitals.stall.duration\",\"stall_total_time\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:4e3,aliases:[\"stall_total_time\"],changelog:[{version:\"0.19.0\",prs:[493],description:\"Added app.vitals.stall.duration attribute\"}]},\"app.vitals.stall.percentage\":{brief:\"The fraction of transaction duration during which the app was stalled, between 0.0 and 1.0. For example, 0.8 represents 80%. Only applies to React Native. This is computed by Relay.\",type:\"double\",keys:[\"app.vitals.stall.percentage\",\"stall_percentage\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:.8,aliases:[\"stall_percentage\"],changelog:[{version:\"0.19.0\",prs:[493],description:\"Added app.vitals.stall.percentage attribute\"}]},\"app.vitals.start.cold.value\":{brief:\"The duration of a cold app start in milliseconds\",type:\"double\",keys:[\"app.vitals.start.cold.value\",\"app_start_cold\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:1234.56,aliases:[\"app_start_cold\"],changelog:[{version:\"0.5.0\",prs:[313],description:\"Added app.vitals.start.cold.value attribute\"}]},\"app.vitals.start.prewarmed\":{brief:\"Whether the app start was prewarmed.\",type:\"boolean\",keys:[\"app.vitals.start.prewarmed\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:!0,changelog:[{version:\"0.11.0\",prs:[379],description:\"Added app.vitals.start.prewarmed attribute\"}]},\"app.vitals.start.reason\":{brief:\"The reason that triggered the app start.\",type:\"string\",keys:[\"app.vitals.start.reason\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"push\",changelog:[{version:\"0.7.0\",prs:[353],description:\"Added app.vitals.start.reason attribute\"}]},\"app.vitals.start.screen\":{brief:\"The screen that is rendered when the app start is complete. This is the screen the user first sees and can interact with after launch. The absence of this attribute on the app start span indicates a background app start where no UI was rendered.\",type:\"string\",keys:[\"app.vitals.start.screen\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"MainActivity\",changelog:[{version:\"0.7.0\",prs:[353],description:\"Added app.vitals.start.screen attribute\"}]},\"app.vitals.start.type\":{brief:\"The type of app start, for example `cold` or `warm`\",type:\"string\",keys:[\"app.vitals.start.type\",\"app_start_type\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"cold\",aliases:[\"app_start_type\"],changelog:[{version:\"0.5.0\",prs:[313],description:\"Added app.vitals.start.type attribute\"}]},\"app.vitals.start.warm.value\":{brief:\"The duration of a warm app start in milliseconds\",type:\"double\",keys:[\"app.vitals.start.warm.value\",\"app_start_warm\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:1234.56,aliases:[\"app_start_warm\"],changelog:[{version:\"0.5.0\",prs:[313],description:\"Added app.vitals.start.warm.value attribute\"}]},\"app.vitals.ttfd.value\":{brief:\"The duration of time to full display in milliseconds\",type:\"double\",keys:[\"app.vitals.ttfd.value\",\"time_to_full_display\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:1234.56,aliases:[\"time_to_full_display\"],changelog:[{version:\"0.5.0\",prs:[313],description:\"Added app.vitals.ttfd.value attribute\"}]},\"app.vitals.ttid.value\":{brief:\"The duration of time to initial display in milliseconds\",type:\"double\",keys:[\"app.vitals.ttid.value\",\"time_to_initial_display\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:1234.56,aliases:[\"time_to_initial_display\"],changelog:[{version:\"0.5.0\",prs:[313],description:\"Added app.vitals.ttid.value attribute\"}]},\"art.gc.blocking_count\":{brief:\"Total number of blocking (stop-the-world) garbage collections performed by the Android Runtime\",type:\"integer\",keys:[\"art.gc.blocking_count\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:1,changelog:[{version:\"0.11.0\",prs:[382],description:\"Added art.gc.blocking_count attribute\"}]},\"art.gc.blocking_time\":{brief:\"Total time spent in blocking (stop-the-world) garbage collections by the Android Runtime, in milliseconds\",type:\"double\",keys:[\"art.gc.blocking_time\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:11.873,changelog:[{version:\"0.11.0\",prs:[382],description:\"Added art.gc.blocking_time attribute\"}]},\"art.gc.pre_oome_count\":{brief:\"Total number of garbage collections triggered as a last resort before an OutOfMemoryError by the Android Runtime\",type:\"integer\",keys:[\"art.gc.pre_oome_count\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:0,changelog:[{version:\"0.11.0\",prs:[382],description:\"Added art.gc.pre_oome_count attribute\"}]},\"art.gc.total_count\":{brief:\"Total number of garbage collections performed by the Android Runtime\",type:\"integer\",keys:[\"art.gc.total_count\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:1,changelog:[{version:\"0.11.0\",prs:[382],description:\"Added art.gc.total_count attribute\"}]},\"art.gc.total_time\":{brief:\"Total time spent in garbage collection by the Android Runtime, in milliseconds\",type:\"double\",keys:[\"art.gc.total_time\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:11.807,changelog:[{version:\"0.11.0\",prs:[382],description:\"Added art.gc.total_time attribute\"}]},\"art.gc.waiting_time\":{brief:\"Total time threads spent waiting for garbage collection to complete in the Android Runtime, in milliseconds\",type:\"double\",keys:[\"art.gc.waiting_time\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:8.054,changelog:[{version:\"0.11.0\",prs:[382],description:\"Added art.gc.waiting_time attribute\"}]},\"art.memory.free\":{brief:\"Free memory available to the process as reported by the Android Runtime, in bytes\",type:\"integer\",keys:[\"art.memory.free\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:3181568,changelog:[{version:\"0.11.0\",prs:[382],description:\"Added art.memory.free attribute\"}]},\"art.memory.free_until_gc\":{brief:\"Free memory available before a garbage collection would be triggered by the Android Runtime, in bytes\",type:\"integer\",keys:[\"art.memory.free_until_gc\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:3181568,changelog:[{version:\"0.11.0\",prs:[382],description:\"Added art.memory.free_until_gc attribute\"}]},\"art.memory.free_until_oome\":{brief:\"Free memory available before an OutOfMemoryError would be thrown by the Android Runtime, in bytes\",type:\"integer\",keys:[\"art.memory.free_until_oome\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:196083712,changelog:[{version:\"0.11.0\",prs:[382],description:\"Added art.memory.free_until_oome attribute\"}]},\"art.memory.max\":{brief:\"Maximum memory the process is allowed to use as reported by the Android Runtime, in bytes\",type:\"integer\",keys:[\"art.memory.max\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:201326592,changelog:[{version:\"0.11.0\",prs:[382],description:\"Added art.memory.max attribute\"}]},\"art.memory.total\":{brief:\"Total memory currently allocated to the process by the Android Runtime, in bytes\",type:\"integer\",keys:[\"art.memory.total\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:7774208,changelog:[{version:\"0.11.0\",prs:[382],description:\"Added art.memory.total attribute\"}]},\"aws.cloudwatch.logs.log_group\":{brief:\"The name of the CloudWatch Logs log group\",type:\"string\",keys:[\"aws.cloudwatch.logs.log_group\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"/aws/lambda/my-function\",changelog:[{version:\"0.7.0\",prs:[369],description:\"Added aws.cloudwatch.logs.log_group attribute\"}]},\"aws.cloudwatch.logs.log_stream\":{brief:\"The name of the CloudWatch Logs log stream\",type:\"string\",keys:[\"aws.cloudwatch.logs.log_stream\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"2024/01/01/[$LATEST]abcdef1234567890\",changelog:[{version:\"0.7.0\",prs:[369],description:\"Added aws.cloudwatch.logs.log_stream attribute\"}]},\"aws.cloudwatch.logs.url\":{brief:\"The URL to the CloudWatch Logs log group\",type:\"string\",keys:[\"aws.cloudwatch.logs.url\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"https://console.aws.amazon.com/cloudwatch/home?region=us-east-1#logsV2:log-groups/log-group/my-log-group\",changelog:[{version:\"0.7.0\",prs:[369],description:\"Added aws.cloudwatch.logs.url attribute\"}]},\"aws.dynamodb.attribute_definitions\":{brief:\"The JSON-serialized value of each item in the `AttributeDefinitions` request field.\",type:\"string[]\",keys:[\"aws.dynamodb.attribute_definitions\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:['{ \"AttributeName\": \"string\", \"AttributeType\": \"string\" }'],changelog:[{version:\"0.16.0\",prs:[479],description:\"Added aws.dynamodb.attribute_definitions attribute\"}]},\"aws.dynamodb.consistent_read\":{brief:\"The value of the `ConsistentRead` request parameter.\",type:\"boolean\",keys:[\"aws.dynamodb.consistent_read\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:!0,changelog:[{version:\"0.16.0\",prs:[479],description:\"Added aws.dynamodb.consistent_read attribute\"}]},\"aws.dynamodb.consumed_capacity\":{brief:\"The JSON-serialized value of each item in the `ConsumedCapacity` response field.\",type:\"string[]\",keys:[\"aws.dynamodb.consumed_capacity\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:['{ \"CapacityUnits\": number, \"GlobalSecondaryIndexes\": { \"string\" : { \"CapacityUnits\": number, \"ReadCapacityUnits\": number, \"WriteCapacityUnits\": number } }, \"LocalSecondaryIndexes\": { \"string\" : { \"CapacityUnits\": number, \"ReadCapacityUnits\": number, \"WriteCapacityUnits\": number } }, \"ReadCapacityUnits\": number, \"Table\": { \"CapacityUnits\": number, \"ReadCapacityUnits\": number, \"WriteCapacityUnits\": number }, \"TableName\": \"string\", \"WriteCapacityUnits\": number }'],changelog:[{version:\"0.16.0\",prs:[479],description:\"Added aws.dynamodb.consumed_capacity attribute\"}]},\"aws.dynamodb.count\":{brief:\"The value of the `Count` response parameter.\",type:\"integer\",keys:[\"aws.dynamodb.count\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:10,changelog:[{version:\"0.16.0\",prs:[479],description:\"Added aws.dynamodb.count attribute\"}]},\"aws.dynamodb.exclusive_start_table\":{brief:\"The value of the `ExclusiveStartTableName` request parameter.\",type:\"string\",keys:[\"aws.dynamodb.exclusive_start_table\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"Users\",changelog:[{version:\"0.16.0\",prs:[479],description:\"Added aws.dynamodb.exclusive_start_table attribute\"}]},\"aws.dynamodb.global_secondary_indexes\":{brief:\"The JSON-serialized value of each item of the `GlobalSecondaryIndexes` request field.\",type:\"string[]\",keys:[\"aws.dynamodb.global_secondary_indexes\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:['{ \"IndexName\": \"string\", \"KeySchema\": [ { \"AttributeName\": \"string\", \"KeyType\": \"string\" } ], \"Projection\": { \"NonKeyAttributes\": [ \"string\" ], \"ProjectionType\": \"string\" }, \"ProvisionedThroughput\": { \"ReadCapacityUnits\": number, \"WriteCapacityUnits\": number } }'],changelog:[{version:\"0.16.0\",prs:[479],description:\"Added aws.dynamodb.global_secondary_indexes attribute\"}]},\"aws.dynamodb.global_secondary_index_updates\":{brief:\"The JSON-serialized value of each item in the `GlobalSecondaryIndexUpdates` request field.\",type:\"string[]\",keys:[\"aws.dynamodb.global_secondary_index_updates\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:['{ \"Create\": { \"IndexName\": \"string\", \"KeySchema\": [ { \"AttributeName\": \"string\", \"KeyType\": \"string\" } ], \"Projection\": { \"NonKeyAttributes\": [ \"string\" ], \"ProjectionType\": \"string\" }, \"ProvisionedThroughput\": { \"ReadCapacityUnits\": number, \"WriteCapacityUnits\": number } }'],changelog:[{version:\"0.16.0\",prs:[479],description:\"Added aws.dynamodb.global_secondary_index_updates attribute\"}]},\"aws.dynamodb.index_name\":{brief:\"The value of the `IndexName` request parameter.\",type:\"string\",keys:[\"aws.dynamodb.index_name\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"name_to_group\",changelog:[{version:\"0.16.0\",prs:[479],description:\"Added aws.dynamodb.index_name attribute\"}]},\"aws.dynamodb.item_collection_metrics\":{brief:\"The JSON-serialized value of the `ItemCollectionMetrics` response field.\",type:\"string\",keys:[\"aws.dynamodb.item_collection_metrics\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:'{ \"string\" : [ { \"ItemCollectionKey\": { \"string\" : { \"B\": blob, \"BOOL\": boolean, \"BS\": [ blob ], \"L\": [ \"AttributeValue\" ], \"M\": { \"string\" : \"AttributeValue\" }, \"N\": \"string\", \"NS\": [ \"string\" ], \"NULL\": boolean, \"S\": \"string\", \"SS\": [ \"string\" ] } }, \"SizeEstimateRangeGB\": [ number ] } ] }',changelog:[{version:\"0.16.0\",prs:[479],description:\"Added aws.dynamodb.item_collection_metrics attribute\"}]},\"aws.dynamodb.limit\":{brief:\"The value of the `Limit` request parameter.\",type:\"integer\",keys:[\"aws.dynamodb.limit\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:10,changelog:[{version:\"0.16.0\",prs:[479],description:\"Added aws.dynamodb.limit attribute\"}]},\"aws.dynamodb.local_secondary_indexes\":{brief:\"The JSON-serialized value of each item of the `LocalSecondaryIndexes` request field.\",type:\"string[]\",keys:[\"aws.dynamodb.local_secondary_indexes\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:['{ \"IndexArn\": \"string\", \"IndexName\": \"string\", \"IndexSizeBytes\": number, \"ItemCount\": number, \"KeySchema\": [ { \"AttributeName\": \"string\", \"KeyType\": \"string\" } ], \"Projection\": { \"NonKeyAttributes\": [ \"string\" ], \"ProjectionType\": \"string\" } }'],changelog:[{version:\"0.16.0\",prs:[479],description:\"Added aws.dynamodb.local_secondary_indexes attribute\"}]},\"aws.dynamodb.projection\":{brief:\"The value of the `ProjectionExpression` request parameter.\",type:\"string\",keys:[\"aws.dynamodb.projection\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"Title, Price, Color\",changelog:[{version:\"0.16.0\",prs:[479],description:\"Added aws.dynamodb.projection attribute\"}]},\"aws.dynamodb.provisioned_read_capacity\":{brief:\"The value of the `ProvisionedThroughput.ReadCapacityUnits` request parameter.\",type:\"double\",keys:[\"aws.dynamodb.provisioned_read_capacity\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:1,changelog:[{version:\"0.16.0\",prs:[479],description:\"Added aws.dynamodb.provisioned_read_capacity attribute\"}]},\"aws.dynamodb.provisioned_write_capacity\":{brief:\"The value of the `ProvisionedThroughput.WriteCapacityUnits` request parameter.\",type:\"double\",keys:[\"aws.dynamodb.provisioned_write_capacity\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:2,changelog:[{version:\"0.16.0\",prs:[479],description:\"Added aws.dynamodb.provisioned_write_capacity attribute\"}]},\"aws.dynamodb.scanned_count\":{brief:\"The value of the `ScannedCount` response parameter.\",type:\"integer\",keys:[\"aws.dynamodb.scanned_count\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:50,changelog:[{version:\"0.16.0\",prs:[479],description:\"Added aws.dynamodb.scanned_count attribute\"}]},\"aws.dynamodb.scan_forward\":{brief:\"The value of the `ScanIndexForward` request parameter.\",type:\"boolean\",keys:[\"aws.dynamodb.scan_forward\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:!0,changelog:[{version:\"0.16.0\",prs:[479],description:\"Added aws.dynamodb.scan_forward attribute\"}]},\"aws.dynamodb.segment\":{brief:\"The value of the `Segment` request parameter.\",type:\"integer\",keys:[\"aws.dynamodb.segment\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:10,changelog:[{version:\"0.16.0\",prs:[479],description:\"Added aws.dynamodb.segment attribute\"}]},\"aws.dynamodb.select\":{brief:\"The value of the `Select` request parameter.\",type:\"string\",keys:[\"aws.dynamodb.select\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"ALL_ATTRIBUTES\",changelog:[{version:\"0.16.0\",prs:[479],description:\"Added aws.dynamodb.select attribute\"}]},\"aws.dynamodb.table_count\":{brief:\"The number of items in the `TableNames` response parameter.\",type:\"integer\",keys:[\"aws.dynamodb.table_count\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:20,changelog:[{version:\"0.16.0\",prs:[479],description:\"Added aws.dynamodb.table_count attribute\"}]},\"aws.dynamodb.table_names\":{brief:\"The keys in the `RequestItems` object field.\",type:\"string[]\",keys:[\"aws.dynamodb.table_names\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:[\"Users\",\"Cats\"],changelog:[{version:\"0.16.0\",prs:[479],description:\"Added aws.dynamodb.table_names attribute\"}]},\"aws.dynamodb.total_segments\":{brief:\"The value of the `TotalSegments` request parameter.\",type:\"integer\",keys:[\"aws.dynamodb.total_segments\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:100,changelog:[{version:\"0.16.0\",prs:[479],description:\"Added aws.dynamodb.total_segments attribute\"}]},\"aws.extended_request_id\":{brief:\"The AWS extended request ID as returned in the response headers.\",type:\"string\",keys:[\"aws.extended_request_id\",\"aws.request.extended_id\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"wzHcyEWfmOGDIE5QOhTAqFDoDWP3y8IUvpNINCwL9N4TEHbUw0/gZJ+VZTmCNCWR7fezEN3eCiQ=\",aliases:[\"aws.request.extended_id\"],changelog:[{version:\"0.16.0\",prs:[480],description:\"Added aws.extended_request_id attribute\"}]},\"aws.kinesis.stream_name\":{brief:\"The name of the AWS Kinesis stream the request refers to.\",type:\"string\",keys:[\"aws.kinesis.stream_name\",\"aws.kinesis.stream.name\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"some-stream-name\",aliases:[\"aws.kinesis.stream.name\"],changelog:[{version:\"0.16.0\",prs:[480],description:\"Added aws.kinesis.stream_name attribute\"}]},\"aws.kinesis.stream.name\":{brief:\"The name of the AWS Kinesis stream the request refers to.\",type:\"string\",keys:[\"aws.kinesis.stream_name\",\"aws.kinesis.stream.name\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"some-stream-name\",deprecation:{replacement:\"aws.kinesis.stream_name\",reason:\"This attribute is being deprecated in favor of aws.kinesis.stream_name, which is the OTel-aligned replacement.\",status:\"backfill\"},aliases:[\"aws.kinesis.stream_name\"],changelog:[{version:\"0.16.0\",prs:[480],description:\"Added aws.kinesis.stream.name attribute, deprecated in favor of aws.kinesis.stream_name\"}]},\"aws.lambda.aws_request_id\":{brief:\"The AWS request ID as received by the Lambda function runtime\",type:\"string\",keys:[\"faas.invocation_id\",\"aws.lambda.aws_request_id\",\"faas.execution\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"8476a536-e9f4-11e8-9739-2dfe598c3fcd\",deprecation:{replacement:\"faas.invocation_id\",reason:\"This attribute is being deprecated in favor of faas.invocation_id\",status:\"backfill\"},aliases:[\"faas.invocation_id\",\"faas.execution\"],changelog:[{version:\"0.16.0\",prs:[473],description:\"Added faas.execution as an alias\"},{version:\"0.11.1\",prs:[414,424],description:\"Deprecated aws.lambda.aws_request_id in favor of faas.invocation_id\"},{version:\"0.7.0\",prs:[369],description:\"Added aws.lambda.aws_request_id attribute\"}]},\"aws.lambda.execution_duration_in_millis\":{brief:\"The execution duration of the Lambda function invocation in milliseconds\",type:\"double\",keys:[\"aws.lambda.execution_duration_in_millis\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:1234.56,changelog:[{version:\"0.7.0\",prs:[369],description:\"Added aws.lambda.execution_duration_in_millis attribute\"}]},\"aws.lambda.function_name\":{brief:\"The name of the Lambda function\",type:\"string\",keys:[\"faas.name\",\"aws.lambda.function_name\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"my-function\",deprecation:{replacement:\"faas.name\",reason:\"Use the OTel-aligned faas.name attribute instead\",status:\"backfill\"},aliases:[\"faas.name\"],changelog:[{version:\"0.11.1\",prs:[414],description:\"Deprecated aws.lambda.function_name in favor of faas.name\"},{version:\"0.7.0\",prs:[369],description:\"Added aws.lambda.function_name attribute\"}]},\"aws.lambda.function_version\":{brief:\"The version of the Lambda function\",type:\"string\",keys:[\"faas.version\",\"aws.lambda.function_version\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"$LATEST\",deprecation:{replacement:\"faas.version\",reason:\"Use the OTel-aligned faas.version attribute instead\",status:\"backfill\"},aliases:[\"faas.version\"],changelog:[{version:\"0.11.1\",prs:[414,424],description:\"Deprecated aws.lambda.function_version in favor of faas.version\"},{version:\"0.7.0\",prs:[369],description:\"Added aws.lambda.function_version attribute\"}]},\"aws.lambda.invoked_arn\":{brief:\"The full ARN of the Lambda function that was invoked\",type:\"string\",keys:[\"aws.lambda.invoked_arn\",\"aws.lambda.invoked_function_arn\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"arn:aws:lambda:us-east-1:123456789012:function:my-function\",aliases:[\"aws.lambda.invoked_function_arn\"],changelog:[{version:\"0.11.1\",prs:[414]}]},\"aws.lambda.invoked_function_arn\":{brief:\"The full ARN of the Lambda function that was invoked\",type:\"string\",keys:[\"aws.lambda.invoked_arn\",\"aws.lambda.invoked_function_arn\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"arn:aws:lambda:us-east-1:123456789012:function:my-function\",deprecation:{replacement:\"aws.lambda.invoked_arn\",reason:\"This attribute is being deprecated in favor of aws.lambda.invoked_arn\",status:\"backfill\"},aliases:[\"aws.lambda.invoked_arn\"],changelog:[{version:\"0.11.1\",prs:[414],description:\"Deprecated aws.lambda.invoked_function_arn in favor of aws.lambda.invoked_arn\"},{version:\"0.7.0\",prs:[369],description:\"Added aws.lambda.invoked_function_arn attribute\"}]},\"aws.lambda.remaining_time_in_millis\":{brief:\"The remaining time in milliseconds before the Lambda function times out\",type:\"double\",keys:[\"aws.lambda.remaining_time_in_millis\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:5e3,changelog:[{version:\"0.7.0\",prs:[369],description:\"Added aws.lambda.remaining_time_in_millis attribute\"}]},\"aws.log.group.names\":{brief:\"The name(s) of the AWS log group(s) an application is writing to.\",type:\"string[]\",keys:[\"aws.log.group.names\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:[\"/aws/lambda/my-function\",\"opentelemetry-service\"],changelog:[{version:\"0.11.1\",prs:[414]}]},\"aws.log.stream.names\":{brief:\"The name(s) of the AWS log stream(s) an application is writing to.\",type:\"string[]\",keys:[\"aws.log.stream.names\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:[\"logs/main/10838bed-421f-43ef-870a-f43feacbbb5b\"],changelog:[{version:\"0.11.1\",prs:[414]}]},\"aws.operation_name\":{brief:\"The name of the API operation invoked on an AWS service.\",type:\"string\",keys:[\"rpc.method\",\"aws.operation_name\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"PutObject\",examples:[\"PutObject\"],deprecation:{replacement:\"rpc.method\",reason:\"This attribute is being deprecated in favor of rpc.method, which is the framework-agnostic replacement.\",status:\"backfill\"},aliases:[\"rpc.method\"],changelog:[{version:\"0.19.0\",prs:[536],description:\"Added aws.operation_name attribute\"}]},aws_region:{brief:\"The geographical region the AWS resource is running\",type:\"string\",keys:[\"cloud.region\",\"aws_region\",\"gcp_region\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"us-east-1\",examples:[\"us-east-1\"],deprecation:{replacement:\"cloud.region\",status:\"backfill\"},aliases:[\"cloud.region\",\"gcp_region\"],changelog:[{version:\"0.19.0\",prs:[537],description:\"Added aws_region attribute\"}]},\"aws.request.extended_id\":{brief:\"The AWS extended request ID as returned in the response headers.\",type:\"string\",keys:[\"aws.extended_request_id\",\"aws.request.extended_id\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"wzHcyEWfmOGDIE5QOhTAqFDoDWP3y8IUvpNINCwL9N4TEHbUw0/gZJ+VZTmCNCWR7fezEN3eCiQ=\",deprecation:{replacement:\"aws.extended_request_id\",reason:\"This attribute is being deprecated in favor of aws.extended_request_id, which is the OTel-aligned replacement.\",status:\"backfill\"},aliases:[\"aws.extended_request_id\"],changelog:[{version:\"0.16.0\",prs:[480],description:\"Added aws.request.extended_id attribute, deprecated in favor of aws.extended_request_id\"}]},\"aws.request_id\":{brief:\"The AWS request ID as returned in the response headers.\",type:\"string\",keys:[\"aws.request_id\",\"aws.request.id\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"79b9da39-b7ae-508a-a6bc-864b2829c622\",aliases:[\"aws.request.id\"],changelog:[{version:\"0.16.0\",prs:[480],description:\"Added aws.request_id attribute\"}]},\"aws.request.id\":{brief:\"The AWS request ID as returned in the response headers.\",type:\"string\",keys:[\"aws.request_id\",\"aws.request.id\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"79b9da39-b7ae-508a-a6bc-864b2829c622\",deprecation:{replacement:\"aws.request_id\",reason:\"This attribute is being deprecated in favor of aws.request_id, which is the OTel-aligned replacement.\",status:\"backfill\"},aliases:[\"aws.request_id\"],changelog:[{version:\"0.16.0\",prs:[480],description:\"Added aws.request.id attribute, deprecated in favor of aws.request_id\"}]},\"aws.request.url\":{brief:\"The URL of the AWS API request.\",type:\"string\",keys:[\"url.full\",\"aws.request.url\",\"http.url\",\"messaging.url\",\"url\"],applyScrubbing:{key:\"auto\"},isInOtel:!1,visibility:\"public\",example:\"https://sqs.us-east-1.amazonaws.com/123456789/my-queue\",deprecation:{replacement:\"url.full\",reason:\"This attribute is being deprecated in favor of url.full, which is the OTel-aligned replacement.\",status:\"backfill\"},aliases:[\"url.full\",\"http.url\",\"url\",\"messaging.url\"],changelog:[{version:\"0.21.0\",prs:[581],description:\"Added messaging.url as an alias\"},{version:\"0.19.0\",prs:[488],description:\"Added aws.request.url attribute, deprecated in favor of url.full\"}]},\"aws.s3.bucket\":{brief:\"The S3 bucket name the request refers to.\",type:\"string\",keys:[\"aws.s3.bucket\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"ot-demo-test\",changelog:[{version:\"0.16.0\",prs:[480],description:\"Added aws.s3.bucket attribute\"}]},\"aws.secretsmanager.secret.arn\":{brief:\"The ARN of the Secret stored in Secrets Manager.\",type:\"string\",keys:[\"aws.secretsmanager.secret.arn\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"arn:aws:secretsmanager:us-east-1:123456789012:secret:SecretName-6RandomCharacters\",changelog:[{version:\"0.16.0\",prs:[480],description:\"Added aws.secretsmanager.secret.arn attribute\"}]},\"aws.sns.topic.arn\":{brief:\"The ARN of the AWS SNS Topic. An Amazon SNS topic is a logical access point that acts as a communication channel.\",type:\"string\",keys:[\"aws.sns.topic.arn\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"arn:aws:sns:us-east-1:123456789012:mystack-mytopic-NZJ5JSMVGFIE\",changelog:[{version:\"0.16.0\",prs:[480],description:\"Added aws.sns.topic.arn attribute\"}]},\"aws.step_functions.activity.arn\":{brief:\"The ARN of the AWS Step Functions Activity.\",type:\"string\",keys:[\"aws.step_functions.activity.arn\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"arn:aws:states:us-east-1:123456789012:activity:get-greeting\",changelog:[{version:\"0.16.0\",prs:[480],description:\"Added aws.step_functions.activity.arn attribute\"}]},\"aws.step_functions.state_machine.arn\":{brief:\"The ARN of the AWS Step Functions State Machine.\",type:\"string\",keys:[\"aws.step_functions.state_machine.arn\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"arn:aws:states:us-east-1:123456789012:stateMachine:myStateMachine:1\",changelog:[{version:\"0.16.0\",prs:[480],description:\"Added aws.step_functions.state_machine.arn attribute\"}]},blocked_main_thread:{brief:\"Whether the main thread was blocked by the span.\",type:\"boolean\",keys:[\"blocked_main_thread\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:!0,changelog:[{version:\"0.0.0\"}]},\"browser.bfcache.frame\":{brief:\"Which frame in the page's frame tree a back/forward cache not-restored reason originated from: the top document or a child frame.\",type:\"string\",keys:[\"browser.bfcache.frame\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"top\",examples:[\"top\",\"child\"],changelog:[{version:\"0.19.0\",prs:[513],description:\"Added browser.bfcache.frame attribute\"}]},\"browser.bfcache.not_restored_reason_count\":{brief:\"The number of reported reasons a page was not restored from the back/forward cache on a back/forward navigation. 0 when the browser reported no reasons (e.g. non-Chromium browsers).\",type:\"integer\",keys:[\"browser.bfcache.not_restored_reason_count\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:2,examples:[2],changelog:[{version:\"0.19.0\",prs:[513],description:\"Added browser.bfcache.not_restored_reason_count attribute\"}]},\"browser.bfcache.outcome\":{brief:\"Whether a back/forward navigation was restored from the browser's back/forward cache (bfcache). 'hit' means the page was restored; 'miss' means it was reloaded.\",type:\"string\",keys:[\"browser.bfcache.outcome\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"hit\",examples:[\"hit\",\"miss\"],changelog:[{version:\"0.19.0\",prs:[513],description:\"Added browser.bfcache.outcome attribute\"}]},\"browser.bfcache.reason\":{brief:\"A browser-reported reason a page was not restored from the back/forward cache on a back/forward navigation, taken from the notRestoredReasons API. Reported per reason (a single miss can have several). Currently Chromium-only.\",type:\"string\",keys:[\"browser.bfcache.reason\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"unload-listener\",examples:[\"unload-listener\",\"websocket\",\"idbversionchangeevent\",\"response-cache-control-no-store\"],changelog:[{version:\"0.19.0\",prs:[513],description:\"Added browser.bfcache.reason attribute\"}]},\"browser.name\":{brief:\"The name of the browser.\",type:\"string\",keys:[\"browser.name\",\"sentry.browser.name\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"Chrome\",aliases:[\"sentry.browser.name\"],changelog:[{version:\"0.1.0\",prs:[127,139]},{version:\"0.0.0\"}]},\"browser.navigation.id\":{brief:\"The identifier of the navigation the measurement belongs to, incremented by the browser for each navigation within a page's lifetime.\",type:\"integer\",keys:[\"browser.navigation.id\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:1,examples:[1,3,0],changelog:[{version:\"0.24.0\",prs:[640],description:\"Document 0 as the fallback value when the browser does not support `navigationId`\"},{version:\"0.22.0\",prs:[634],description:\"Added browser.navigation.id attribute\"}],additionalContext:[\"Sourced from `PerformanceEntry.navigationId`, defined by the Soft Navigations spec. Despite its origin it is not soft-navigation specific: the field is set on the `PerformanceNavigationTiming` entry of a hard navigation too.\",\"The value starts at 1 for the initial page load and increments for each subsequent navigation. It is only unique within a single page lifetime, not globally.\",\"A value of 0 is a fallback rather than a real navigation id: web-vitals reports 0 when the browser does not expose `PerformanceEntry.navigationId`, so 0 means the id is unknown.\",\"Pairs with `browser.navigation.type`: the type says how the browser arrived at the page, the id says which navigation of that page a measurement belongs to.\",\"Not to be confused with the Navigation API's `NavigationHistoryEntry.id`, which is an opaque string identifying a history entry rather than a counter, and is not interchangeable with this value.\",\"Also distinct from the `router.navigation.*` attributes, which describe the client-side router's own view of a navigation. Those come from the framework, this one comes from the browser, and both can be set on the same span.\"]},\"browser.navigation.type\":{brief:\"The type of navigation the browser performed to arrive at the page the metrics were measured on.\",type:\"string\",keys:[\"browser.navigation.type\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"navigate\",examples:[\"navigate\",\"reload\",\"back-forward\",\"back-forward-cache\",\"prerender\",\"restore\",\"soft-navigation\"],changelog:[{version:\"0.24.0\",prs:[640],description:\"Use the web-vitals navigation types as-is: `bfcache` is now `back-forward-cache`, and `back-forward` and `restore` are no longer reported as `navigate`\"},{version:\"0.22.0\",prs:[600],description:\"Added browser.navigation.type attribute\"}],additionalContext:[\"Carries the `navigationType` value reported by the web-vitals library verbatim. web-vitals hyphenates the Navigation Timing `PerformanceNavigationTiming.type` value (`back_forward` becomes `back-forward`) and adds states that API does not cover: `back-forward-cache` for a restore from the back/forward cache, `prerender`, `restore` for a discarded tab being reloaded, and `soft-navigation`.\",\"`back-forward-cache` is only set when the page was actually restored from the back/forward cache. A back/forward navigation that missed the cache is a full document load and reports `back-forward`. Use the `browser.bfcache.*` attributes to diagnose misses.\",\"`prerender` pages finish painting before activation, so their paint timings are offset by `browser.performance.navigation.activation_start`. Keep them separate when aggregating web vitals.\",\"Not to be confused with `router.navigation.type`, which holds the client-side router's own vocabulary (`link`, `goto`, `router.push`). The two are independent and can both be set on the same span.\"]},\"browser.paint.type\":{brief:\"The type of paint timing entry reported by the browser.\",type:\"string\",keys:[\"browser.paint.type\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"first-paint\",examples:[\"first-paint\",\"first-contentful-paint\"],changelog:[{version:\"0.22.0\",prs:[606],description:\"Added browser.paint.type attribute\"}]},\"browser.performance.navigation.activation_start\":{brief:\"The time between initiating a navigation to a page and the browser activating the page\",type:\"double\",keys:[\"browser.performance.navigation.activation_start\",\"performance.activationStart\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:1.983,aliases:[\"performance.activationStart\"],changelog:[{version:\"0.5.0\",prs:[321],description:\"Added browser.performance.navigation.activation_start attribute\"}]},\"browser.performance.time_origin\":{brief:\"The browser's performance.timeOrigin timestamp representing the time when the pageload was initiated\",type:\"double\",keys:[\"browser.performance.time_origin\",\"performance.timeOrigin\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:1776185678886e-3,aliases:[\"performance.timeOrigin\"],changelog:[{version:\"0.5.0\",prs:[321],description:\"Added browser.performance.time_origin attribute attribute\"}]},\"browser.report.type\":{brief:\"A browser report sent via reporting API..\",type:\"string\",keys:[\"browser.report.type\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"network-error\",changelog:[{version:\"0.1.0\",prs:[68,127]}]},\"browser.script.invoker\":{brief:\"How a script was called in the browser.\",type:\"string\",keys:[\"browser.script.invoker\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"Window.requestAnimationFrame\",changelog:[{version:\"0.1.0\",prs:[127]},{version:\"0.0.0\"}]},\"browser.script.invoker_type\":{brief:\"Browser script entry point type.\",type:\"string\",keys:[\"browser.script.invoker_type\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"event-listener\",changelog:[{version:\"0.1.0\",prs:[127]},{version:\"0.0.0\"}]},\"browser.script.source_char_position\":{brief:\"A number representing the script character position of the script.\",type:\"integer\",keys:[\"browser.script.source_char_position\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:678,changelog:[{version:\"0.4.0\",prs:[228]},{version:\"0.0.0\"}]},\"browser.version\":{brief:\"The version of the browser.\",type:\"string\",keys:[\"browser.version\",\"sentry.browser.version\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"120.0.6099.130\",aliases:[\"sentry.browser.version\"],changelog:[{version:\"0.1.0\",prs:[59,127,139]}]},\"browser.web_vital.cls.report_event\":{brief:\"The event that caused the SDK to report CLS (pagehide or navigation)\",type:\"string\",keys:[\"browser.web_vital.cls.report_event\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"navigation\",deprecation:{reason:\"The JavaScript SDK stopped setting this in v11. With per-navigation web vitals, web-vitals decides when the CLS value is final, so there is no report event to record. No replacement.\"},changelog:[{version:\"0.24.0\",prs:[642],description:\"Deprecated browser.web_vital.cls.report_event, which has no replacement\"},{version:\"0.5.0\",prs:[319],description:\"Added browser.web_vital.cls.report_event attribute\"}]},\"browser.web_vital.cls.source.<key>\":{brief:\"The HTML elements or components responsible for the layout shift. <key> is a numeric index from 1 to N\",type:\"string\",keys:[\"browser.web_vital.cls.source.<key>\",\"cls.source.<key>\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",hasDynamicSuffix:!0,example:\"body > div#app\",aliases:[\"cls.source.<key>\"],changelog:[{version:\"0.5.0\",prs:[234]}]},\"browser.web_vital.cls.value\":{brief:\"The value of the recorded Cumulative Layout Shift (CLS) web vital\",type:\"double\",keys:[\"browser.web_vital.cls.value\",\"cls\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:.2361,aliases:[\"cls\"],changelog:[{version:\"0.5.0\",prs:[229],description:\"Added browser.web_vital.cls.value attribute\"}]},\"browser.web_vital.fcp.value\":{brief:\"The time it takes for the browser to render the first piece of meaningful content on the screen\",type:\"double\",keys:[\"browser.web_vital.fcp.value\",\"fcp\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:547.6951,aliases:[\"fcp\"],changelog:[{version:\"0.5.0\",prs:[235]}]},\"browser.web_vital.fp.value\":{brief:\"The time in milliseconds it takes for the browser to render the first pixel on the screen\",type:\"double\",keys:[\"browser.web_vital.fp.value\",\"fp\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:477.1926,aliases:[\"fp\"],changelog:[{version:\"0.5.0\",prs:[235]}]},\"browser.web_vital.inp.interaction_type\":{brief:\"The kind of user interaction INP was reported on\",type:\"string\",keys:[\"browser.web_vital.inp.interaction_type\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"click\",examples:[\"click\",\"hover\",\"drag\",\"press\"],changelog:[{version:\"0.24.0\",prs:[641],description:\"Added browser.web_vital.inp.interaction_type attribute\"}],additionalContext:[\"One of `click`, `hover`, `drag` or `press`, derived from the DOM event name of the Event Timing entry: pointer, mouse and touch events map to `click`, `mouseover` and similar to `hover`, drag and drop events to `drag`, and keyboard and `input` events to `press`. The same value forms the suffix of the span's `ui.interaction.*` op.\",\"Not to be confused with the `interactionType` of the web-vitals attribution build, which only distinguishes `pointer` and `keyboard`.\",\"Omitted when INP is reported without an interaction to attribute it to, see `browser.web_vital.inp.target`. The op of such a span still falls into `ui.interaction.click` so that it stays within the interaction span family, which makes this attribute, not the op, the way to tell a real click from a value with no interaction.\"]},\"browser.web_vital.inp.target\":{brief:\"The HTML element selector or component name of the element the user interacted with, for the interaction INP was reported on\",type:\"string\",keys:[\"browser.web_vital.inp.target\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"body > div#app > button.submit\",examples:[\"body > div#app > button.submit\",\"SubmitButton\"],changelog:[{version:\"0.24.0\",prs:[641],description:\"Added browser.web_vital.inp.target attribute\"}],additionalContext:[\"Named after `PerformanceEventTiming.target`, the way `browser.web_vital.lcp.element` is named after `LargestContentfulPaint.element`. The value uses the same format as that attribute.\",\"Omitted when INP is reported without an interaction to attribute it to. web-vitals reports such a value for a soft navigation whose interactions all stayed below the Event Timing duration threshold, so there is no element to name. The span is still named and still carries `browser.web_vital.inp.value`.\"]},\"browser.web_vital.inp.value\":{brief:\"The value of the recorded Interaction to Next Paint (INP) web vital\",type:\"double\",keys:[\"browser.web_vital.inp.value\",\"inp\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:200,aliases:[\"inp\"],changelog:[{version:\"0.5.0\",prs:[229],description:\"Added browser.web_vital.inp.value attribute\"}]},\"browser.web_vital.lcp.element\":{brief:\"The HTML element selector or component name for which LCP was reported\",type:\"string\",keys:[\"browser.web_vital.lcp.element\",\"lcp.element\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"body > div#app > div#container > div\",aliases:[\"lcp.element\"],changelog:[{version:\"0.5.0\",prs:[233]}]},\"browser.web_vital.lcp.id\":{brief:\"The id of the dom element responsible for the largest contentful paint\",type:\"string\",keys:[\"browser.web_vital.lcp.id\",\"lcp.id\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"#gero\",aliases:[\"lcp.id\"],changelog:[{version:\"0.5.0\",prs:[233]}]},\"browser.web_vital.lcp.load_time\":{brief:\"The time it took for the LCP element to be loaded\",type:\"integer\",keys:[\"browser.web_vital.lcp.load_time\",\"lcp.loadTime\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:1402,aliases:[\"lcp.loadTime\"],changelog:[{version:\"0.5.0\",prs:[233]}]},\"browser.web_vital.lcp.render_time\":{brief:\"The time it took for the LCP element to be rendered\",type:\"integer\",keys:[\"browser.web_vital.lcp.render_time\",\"lcp.renderTime\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:1685,aliases:[\"lcp.renderTime\"],changelog:[{version:\"0.5.0\",prs:[233]}]},\"browser.web_vital.lcp.report_event\":{brief:\"The event that caused the SDK to report LCP (pagehide or navigation)\",type:\"string\",keys:[\"browser.web_vital.lcp.report_event\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"pagehide\",deprecation:{reason:\"The JavaScript SDK stopped setting this in v11. With per-navigation web vitals, web-vitals decides when the LCP value is final, so there is no report event to record. No replacement.\"},changelog:[{version:\"0.24.0\",prs:[642],description:\"Deprecated browser.web_vital.lcp.report_event, which has no replacement\"},{version:\"0.5.0\",prs:[319],description:\"Added browser.web_vital.lcp.report_event attribute\"}]},\"browser.web_vital.lcp.size\":{brief:\"The size of the largest contentful paint element\",type:\"integer\",keys:[\"browser.web_vital.lcp.size\",\"lcp.size\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:1024,aliases:[\"lcp.size\"],changelog:[{version:\"0.5.0\",prs:[233]}]},\"browser.web_vital.lcp.url\":{brief:\"The url of the dom element responsible for the largest contentful paint\",type:\"string\",keys:[\"browser.web_vital.lcp.url\",\"lcp.url\"],applyScrubbing:{key:\"auto\"},isInOtel:!1,visibility:\"public\",example:\"https://example.com/static/img.png\",aliases:[\"lcp.url\"],changelog:[{version:\"0.5.0\",prs:[233]}]},\"browser.web_vital.lcp.value\":{brief:\"The value of the recorded Largest Contentful Paint (LCP) web vital\",type:\"double\",keys:[\"browser.web_vital.lcp.value\",\"lcp\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:2500,aliases:[\"lcp\"],changelog:[{version:\"0.5.0\",prs:[229],description:\"Added browser.web_vital.lcp.value attribute\"}]},\"browser.web_vital.ttfb.request_time\":{brief:\"The time it takes for the server to process the initial request and send the first byte of a response to the user's browser\",type:\"double\",keys:[\"browser.web_vital.ttfb.request_time\",\"ttfb.requestTime\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:1554.5814,aliases:[\"ttfb.requestTime\"],changelog:[{version:\"0.5.0\",prs:[235]}]},\"browser.web_vital.ttfb.value\":{brief:\"The value of the recorded Time To First Byte (TTFB) web vital in Milliseconds\",type:\"double\",keys:[\"browser.web_vital.ttfb.value\",\"ttfb\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:194.3322,aliases:[\"ttfb\"],changelog:[{version:\"0.5.0\",prs:[235]}]},\"cache.hit\":{brief:\"If the cache was hit during this span.\",type:\"boolean\",keys:[\"cache.hit\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:!0,changelog:[{version:\"0.0.0\"}]},\"cache.item_age\":{brief:\"The age of the cache entry in seconds, measured at read time.\",type:\"integer\",keys:[\"cache.item_age\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:5,examples:[5,3600],changelog:[{version:\"0.23.0\",prs:[637],description:\"Added cache.item_age attribute\"}],additionalContext:[\"Set on reads that return an entry. Absent on a miss, or when the cache does not report a write time.\",\"Clamped to 0. On a shared cache, the writer's clock and the reader's clock can drift far enough to make the age negative.\",\"Can exceed `cache.ttl`. A cache that discards an expired entry on read still reports the age of that entry, with `cache.hit: false`.\"],searchAlias:{name:\"cache.item_age\",type:\"second\"}},\"cache.item_size\":{brief:\"The size of the requested item in the cache. In bytes.\",type:\"integer\",keys:[\"cache.item_size\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:58,changelog:[{version:\"0.4.0\",prs:[228]},{version:\"0.0.0\"}],searchAlias:{name:\"cache.item_size\",type:\"byte\"}},\"cache.key\":{brief:\"The key of the cache accessed.\",type:\"string[]\",keys:[\"cache.key\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:[\"my-cache-key\",\"my-other-cache-key\"],changelog:[{version:\"0.0.0\"}]},\"cache.operation\":{brief:\"The operation being performed on the cache.\",type:\"string\",keys:[\"cache.operation\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"get\",examples:[\"get\",\"put\",\"remove\"],changelog:[{version:\"0.1.0\",prs:[127]},{version:\"0.0.0\"}]},\"cache.tags\":{brief:\"The tags attached to the cache entry. Tags group entries so a cache can invalidate them together.\",type:\"string[]\",keys:[\"cache.tags\"],applyScrubbing:{key:\"auto\",reason:\"Applications pick tag values freely and often build them from record identifiers such as a user id.\"},isInOtel:!1,visibility:\"public\",example:[\"blog-posts\",\"post-42\"],examples:[[\"blog-posts\",\"post-42\"],[\"products\"]],changelog:[{version:\"0.23.0\",prs:[637],description:\"Added cache.tags attribute\"}],additionalContext:[\"Cache library examples that support tags: Next.js `cacheTag()`, Symfony `ItemInterface::tag()`, Laravel `Cache::tags()`.\",\"HTTP caches take tags from a response header. Cloudflare reads `Cache-Tag`, Fastly reads `Surrogate-Key`.\",\"Record only the tags the application declared. Leave out implicit tags that the framework adds itself, for example one tag per route.\",\"The tags describe the entry, not the operation. Take them from the entry the cache returned or stored.\"]},\"cache.ttl\":{brief:\"The ttl (maximum lifetime) of the cache in seconds\",type:\"integer\",keys:[\"cache.ttl\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:120,changelog:[{version:\"0.4.0\",prs:[228]},{version:\"0.0.0\"}]},\"cache.write\":{brief:\"If the cache operation resulted in a write to the cache.\",type:\"boolean\",keys:[\"cache.write\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:!0,changelog:[{version:\"0.5.0\"}]},channel:{brief:\"The channel name that is being used.\",type:\"string\",keys:[\"channel\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"mail\",changelog:[{version:\"0.1.0\",prs:[127]},{version:\"0.0.0\"}]},\"client.address\":{brief:\"Client address - domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name.\",type:\"string\",keys:[\"client.address\",\"http.client_ip\"],applyScrubbing:{key:\"auto\"},isInOtel:!0,visibility:\"public\",example:\"example.com\",aliases:[\"http.client_ip\"],changelog:[{version:\"0.1.0\",prs:[106,127]},{version:\"0.0.0\"}]},\"client.port\":{brief:\"Client port number.\",type:\"integer\",keys:[\"client.port\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:5432,changelog:[{version:\"0.4.0\",prs:[228]},{version:\"0.0.0\"}]},\"cloudflare.d1.duration\":{brief:\"The duration of a Cloudflare D1 operation.\",type:\"integer\",keys:[\"cloudflare.d1.duration\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:543,changelog:[{version:\"0.4.0\",prs:[228]},{version:\"0.0.0\"}]},\"cloudflare.d1.query_type\":{brief:\"The type of query executed in a Cloudflare D1 operation\",type:\"string\",keys:[\"db.operation.name\",\"cloudflare.d1.query_type\",\"db.operation\",\"redis.command\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"run\",deprecation:{replacement:\"db.operation.name\",status:\"backfill\"},aliases:[\"db.operation.name\",\"db.operation\",\"redis.command\"],changelog:[{version:\"0.19.0\",prs:[531],description:\"Added redis.command as an alias\"},{version:\"0.11.0\",prs:[392],description:\"Added cloudflare.d1.query_type attribute\"}]},\"cloudflare.d1.rows_read\":{brief:\"The number of rows read in a Cloudflare D1 operation.\",type:\"integer\",keys:[\"cloudflare.d1.rows_read\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:12,changelog:[{version:\"0.4.0\",prs:[228]},{version:\"0.0.0\"}]},\"cloudflare.d1.rows_written\":{brief:\"The number of rows written in a Cloudflare D1 operation.\",type:\"integer\",keys:[\"cloudflare.d1.rows_written\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:12,changelog:[{version:\"0.4.0\",prs:[228]},{version:\"0.0.0\"}]},\"cloudflare.durable_object.query.bindings\":{brief:\"The number of bound parameters passed to the SQL exec call.\",type:\"integer\",keys:[\"cloudflare.durable_object.query.bindings\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:2,changelog:[{version:\"0.13.0\",prs:[435],description:\"Added cloudflare.durable_object.query.bindings attribute\"}]},\"cloudflare.durable_object.response.rows_read\":{brief:\"The number of rows read by a Cloudflare Durable Object SQL operation.\",type:\"integer\",keys:[\"cloudflare.durable_object.response.rows_read\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:12,changelog:[{version:\"0.13.0\",prs:[435],description:\"Added cloudflare.durable_object.response.rows_read attribute\"}]},\"cloudflare.durable_object.response.rows_written\":{brief:\"The number of rows written by a Cloudflare Durable Object SQL operation.\",type:\"integer\",keys:[\"cloudflare.durable_object.response.rows_written\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:1,changelog:[{version:\"0.13.0\",prs:[435],description:\"Added cloudflare.durable_object.response.rows_written attribute\"}]},\"cloudflare.r2.bucket\":{brief:\"The name of the Cloudflare R2 bucket binding\",type:\"string\",keys:[\"cloudflare.r2.bucket\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"MY_BUCKET\",changelog:[{version:\"0.11.1\",prs:[413],description:\"Added cloudflare.r2.bucket attribute\"}]},\"cloudflare.r2.operation\":{brief:\"The R2 API operation being performed\",type:\"string\",keys:[\"cloudflare.r2.operation\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"GetObject\",changelog:[{version:\"0.11.1\",prs:[413],description:\"Added cloudflare.r2.operation attribute\"}]},\"cloudflare.r2.request.delimiter\":{brief:\"The delimiter used to group objects in an R2 list operation\",type:\"string\",keys:[\"cloudflare.r2.request.delimiter\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"/\",changelog:[{version:\"0.11.1\",prs:[413],description:\"Added cloudflare.r2.request.delimiter attribute\"}]},\"cloudflare.r2.request.key\":{brief:\"The object key used in the R2 operation\",type:\"string\",keys:[\"cloudflare.r2.request.key\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"my-file.txt\",changelog:[{version:\"0.11.1\",prs:[413],description:\"Added cloudflare.r2.request.key attribute\"}]},\"cloudflare.r2.request.part_number\":{brief:\"The part number in a multipart upload operation\",type:\"integer\",keys:[\"cloudflare.r2.request.part_number\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:1,changelog:[{version:\"0.11.1\",prs:[413],description:\"Added cloudflare.r2.request.part_number attribute\"}]},\"cloudflare.r2.request.prefix\":{brief:\"The prefix used to filter objects in an R2 list operation\",type:\"string\",keys:[\"cloudflare.r2.request.prefix\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"images/\",changelog:[{version:\"0.11.1\",prs:[413],description:\"Added cloudflare.r2.request.prefix attribute\"}]},\"cloudflare.workflow.attempt\":{brief:\"The current attempt number for a Cloudflare Workflow step\",type:\"integer\",keys:[\"cloudflare.workflow.attempt\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:1,changelog:[{version:\"0.11.0\",prs:[392],description:\"Added cloudflare.workflow.attempt attribute\"}]},\"cloudflare.workflow.retries.backoff\":{brief:\"The backoff strategy for Cloudflare Workflow step retries\",type:\"string\",keys:[\"cloudflare.workflow.retries.backoff\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"exponential\",changelog:[{version:\"0.11.0\",prs:[392],description:\"Added cloudflare.workflow.retries.backoff attribute\"}]},\"cloudflare.workflow.retries.delay\":{brief:\"The delay between Cloudflare Workflow step retries\",type:\"string\",keys:[\"cloudflare.workflow.retries.delay\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"5 seconds\",changelog:[{version:\"0.11.0\",prs:[392],description:\"Added cloudflare.workflow.retries.delay attribute\"}]},\"cloudflare.workflow.retries.limit\":{brief:\"The maximum number of retries for a Cloudflare Workflow step\",type:\"integer\",keys:[\"cloudflare.workflow.retries.limit\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:3,changelog:[{version:\"0.11.0\",prs:[392],description:\"Added cloudflare.workflow.retries.limit attribute\"}]},\"cloudflare.workflow.timeout\":{brief:\"The timeout duration for a Cloudflare Workflow step\",type:\"string\",keys:[\"cloudflare.workflow.timeout\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"1 minute\",changelog:[{version:\"0.11.0\",prs:[392],description:\"Added cloudflare.workflow.timeout attribute\"}]},\"cloud.account.id\":{brief:\"The cloud account ID the resource is assigned to\",type:\"string\",keys:[\"cloud.account.id\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"123456789012\",changelog:[{version:\"0.7.0\",prs:[364],description:\"Added cloud.account.id attribute\"}]},\"cloud.availability_zone\":{brief:\"Cloud regions often have multiple, isolated locations known as zones to increase availability\",type:\"string\",keys:[\"cloud.availability_zone\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"us-east-1c\",changelog:[{version:\"0.7.0\",prs:[364],description:\"Added cloud.availability_zone attribute\"}]},\"cloud.platform\":{brief:\"The cloud platform in use\",type:\"string\",keys:[\"cloud.platform\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"aws_lambda\",changelog:[{version:\"0.7.0\",prs:[364],description:\"Added cloud.platform attribute\"}]},\"cloud.provider\":{brief:\"Name of the cloud provider\",type:\"string\",keys:[\"cloud.provider\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"aws\",changelog:[{version:\"0.7.0\",prs:[364],description:\"Added cloud.provider attribute\"}]},\"cloud.region\":{brief:\"The geographical region the resource is running\",type:\"string\",keys:[\"cloud.region\",\"aws_region\",\"gcp_region\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"us-east-1\",aliases:[\"aws_region\",\"gcp_region\"],changelog:[{version:\"0.19.0\",prs:[535,537],description:\"Added aws_region and gcp_region as aliases\"},{version:\"0.7.0\",prs:[364],description:\"Added cloud.region attribute\"}]},\"cloud.resource_id\":{brief:\"Cloud provider-specific native identifier of the monitored cloud resource\",type:\"string\",keys:[\"cloud.resource_id\",\"faas.id\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"arn:aws:lambda:REGION:ACCOUNT_ID:function:my-function\",aliases:[\"faas.id\"],changelog:[{version:\"0.16.0\",prs:[475],description:\"Added faas.id as an alias\"},{version:\"0.11.1\",prs:[414]}],additionalContext:[\"This can be an identifier for a resource in AWS, GCP, or Azure. There may be some overlap in values found here with other attributes. For instance, an AWS lambda ARN may be found here as well as in `aws.lambda.invoked_arn`. OTEL recommends setting them alongside each other.\"]},cls:{brief:\"The value of the recorded Cumulative Layout Shift (CLS) web vital\",type:\"double\",keys:[\"browser.web_vital.cls.value\",\"cls\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:.2361,deprecation:{replacement:\"browser.web_vital.cls.value\",reason:\"The CLS web vital is now recorded as a browser.web_vital.cls.value attribute.\",status:\"backfill\"},aliases:[\"browser.web_vital.cls.value\"],changelog:[{version:\"0.5.0\",prs:[229],description:\"Added and deprecated attribute to document JS SDK's current behaviour\"}]},\"cls.source.<key>\":{brief:\"The HTML elements or components responsible for the layout shift. <key> is a numeric index from 1 to N\",type:\"string\",keys:[\"browser.web_vital.cls.source.<key>\",\"cls.source.<key>\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",hasDynamicSuffix:!0,example:\"body > div#app\",deprecation:{replacement:\"browser.web_vital.cls.source.<key>\",reason:\"The CLS source is now recorded as a browser.web_vital.cls.source.<key> attribute.\",status:\"backfill\"},aliases:[\"browser.web_vital.cls.source.<key>\"],changelog:[{version:\"0.5.0\",prs:[234]}]},code:{brief:\"Status code of the RPC returned by the RPC server or generated by the client.\",type:\"string\",keys:[\"rpc.response.status_code\",\"code\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"DEADLINE_EXCEEDED\",examples:[\"DEADLINE_EXCEEDED\"],deprecation:{replacement:\"rpc.response.status_code\",status:\"backfill\"},aliases:[\"rpc.grpc.status_code\",\"rpc.response.status_code\"],changelog:[{version:\"0.19.0\",prs:[533],description:\"Added code attribute\"}]},\"code.filepath\":{brief:\"The source code file name that identifies the code unit as uniquely as possible (preferably an absolute file path).\",type:\"string\",keys:[\"code.file.path\",\"sveltekit.load.node_id\",\"code.filepath\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"/app/myapplication/http/handler/server.py\",deprecation:{replacement:\"code.file.path\",status:\"backfill\"},aliases:[\"code.file.path\",\"sveltekit.load.node_id\"],changelog:[{version:\"0.22.0\",prs:[611],description:\"Added sveltekit.load.node_id as an alias\"},{version:\"0.1.0\",prs:[61]},{version:\"0.0.0\"}]},\"code.file.path\":{brief:\"The source code file name that identifies the code unit as uniquely as possible (preferably an absolute file path).\",type:\"string\",keys:[\"code.file.path\",\"sveltekit.load.node_id\",\"code.filepath\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"/app/myapplication/http/handler/server.py\",aliases:[\"code.filepath\",\"sveltekit.load.node_id\"],changelog:[{version:\"0.22.0\",prs:[611],description:\"Added sveltekit.load.node_id as an alias\"},{version:\"0.0.0\"}]},\"code.function\":{brief:\"The method or function name, or equivalent (usually rightmost part of the code unit's name).\",type:\"string\",keys:[\"code.function\",\"code.function.name\",\"django.function_name\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"server_request\",aliases:[\"code.function.name\",\"django.function_name\"],changelog:[{version:\"0.19.0\",prs:[538],description:\"Added django.function_name as an alias\"},{version:\"0.1.0\",prs:[61,74]},{version:\"0.0.0\"}]},\"code.function.name\":{brief:\"The method or function fully-qualified name without arguments.\",type:\"string\",keys:[\"code.function.name\",\"code.function\",\"django.function_name\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"server_request\",aliases:[\"code.function\",\"django.function_name\"],changelog:[{version:\"0.19.0\",prs:[538],description:\"Added django.function_name as an alias\"},{version:\"0.1.0\",prs:[127]},{version:\"0.0.0\"}]},\"code.lineno\":{brief:\"The line number in code.filepath best representing the operation. It SHOULD point within the code unit named in code.function\",type:\"integer\",keys:[\"code.line.number\",\"code.lineno\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:42,deprecation:{replacement:\"code.line.number\",status:\"backfill\"},aliases:[\"code.line.number\"],changelog:[{version:\"0.4.0\",prs:[228]},{version:\"0.1.0\",prs:[61,108]},{version:\"0.0.0\"}]},\"code.line.number\":{brief:\"The line number in code.filepath best representing the operation. It SHOULD point within the code unit named in code.function\",type:\"integer\",keys:[\"code.line.number\",\"code.lineno\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:42,aliases:[\"code.lineno\"],changelog:[{version:\"0.4.0\",prs:[228]},{version:\"0.0.0\"}]},\"code.namespace\":{brief:\"The 'namespace' within which code.function is defined. Usually the qualified class or module name, such that code.namespace + some separator + code.function form a unique identifier for the code unit.\",type:\"string\",keys:[\"code.namespace\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"http.handler\",changelog:[{version:\"0.1.0\",prs:[61,74]},{version:\"0.0.0\"}]},connectionType:{brief:\"Specifies the type of the current connection (e.g. wifi, ethernet, cellular , etc).\",type:\"string\",keys:[\"network.connection.type\",\"connectionType\",\"device.connection_type\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"wifi\",deprecation:{replacement:\"network.connection.type\",reason:\"Old namespace-less attribute, to be replaced with network.connection.type for span-first future\",status:\"backfill\"},aliases:[\"network.connection.type\",\"device.connection_type\"],changelog:[{version:\"0.5.0\",prs:[279],description:\"Added and deprecated attribute to document JS SDK's current behaviour\"}]},\"connection.rtt\":{brief:\"Specifies the estimated effective round-trip time of the current connection, in milliseconds.\",type:\"integer\",keys:[\"network.connection.rtt\",\"connection.rtt\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:100,deprecation:{replacement:\"network.connection.rtt\",reason:\"Old attribute name (no official namespace), to be replaced with network.connection.rtt for span-first future\",status:\"backfill\"},aliases:[\"network.connection.rtt\"],changelog:[{version:\"0.5.0\",prs:[279],description:\"Added and deprecated attribute to document JS SDK's current behaviour\"}]},\"culture.calendar\":{brief:\"The calendar system used by the culture.\",type:\"string\",keys:[\"culture.calendar\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"GregorianCalendar\",changelog:[{version:\"0.4.0\",prs:[243]}]},\"culture.display_name\":{brief:\"Human readable name of the culture.\",type:\"string\",keys:[\"culture.display_name\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"English (United States)\",changelog:[{version:\"0.4.0\",prs:[243]}]},\"culture.is_24_hour_format\":{brief:\"Whether the culture uses 24-hour time format.\",type:\"boolean\",keys:[\"culture.is_24_hour_format\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:!0,changelog:[{version:\"0.4.0\",prs:[243]}]},\"culture.locale\":{brief:\"The locale identifier following RFC 4646.\",type:\"string\",keys:[\"culture.locale\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"en-US\",changelog:[{version:\"0.4.0\",prs:[243]}]},\"culture.timezone\":{brief:\"The timezone of the culture, as a geographic timezone identifier.\",type:\"string\",keys:[\"culture.timezone\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"Europe/Vienna\",changelog:[{version:\"0.4.0\",prs:[243]}]},\"db.collection.name\":{brief:\"The name of a collection (table, container) within the database.\",type:\"string\",keys:[\"db.collection.name\",\"db.mongodb.collection\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"users\",aliases:[\"db.mongodb.collection\"],changelog:[{version:\"0.19.0\",prs:[483],description:\"Added db.mongodb.collection as an alias\"},{version:\"0.1.0\",prs:[106,127]},{version:\"0.0.0\"}]},\"db.connection_string\":{brief:\"The connection string used to connect to the database.\",type:\"string\",keys:[\"db.connection_string\"],applyScrubbing:{key:\"auto\"},isInOtel:!0,visibility:\"public\",example:\"redis://localhost:6379\",examples:[\"redis://localhost:6379\"],deprecation:{reason:\"This attribute is deprecated. The connection is described by server.address and server.port instead, so the value cannot be copied to a single replacement attribute.\"},changelog:[{version:\"0.21.0\",prs:[581],description:\"Added db.connection_string attribute\"}]},\"db.driver.name\":{brief:\"The name of the driver used for the database connection.\",type:\"string\",keys:[\"db.driver.name\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"psycopg2\",changelog:[{version:\"0.5.0\",prs:[297],description:\"Added db.driver.name attribute\"}]},\"db.mongodb.collection\":{brief:\"The MongoDB collection being accessed.\",type:\"string\",keys:[\"db.collection.name\",\"db.mongodb.collection\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"users\",deprecation:{replacement:\"db.collection.name\",reason:\"This attribute is being deprecated in favor of db.collection.name, which is the OTel-aligned replacement.\",status:\"backfill\"},aliases:[\"db.collection.name\"],changelog:[{version:\"0.19.0\",prs:[483],description:\"Added db.mongodb.collection attribute, deprecated in favor of db.collection.name\"}]},\"db.name\":{brief:\"The name of the database being accessed.\",type:\"string\",keys:[\"db.namespace\",\"db.name\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"customers\",deprecation:{replacement:\"db.namespace\",status:\"backfill\"},aliases:[\"db.namespace\"],changelog:[{version:\"0.1.0\",prs:[61,127]},{version:\"0.0.0\"}]},\"db.namespace\":{brief:\"The name of the database being accessed.\",type:\"string\",keys:[\"db.namespace\",\"db.name\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"customers\",aliases:[\"db.name\"],changelog:[{version:\"0.1.0\",prs:[127]},{version:\"0.0.0\"}]},\"db.operation\":{brief:\"The name of the operation being executed.\",type:\"string\",keys:[\"db.operation.name\",\"cloudflare.d1.query_type\",\"db.operation\",\"redis.command\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"SELECT\",deprecation:{replacement:\"db.operation.name\",status:\"normalize\"},aliases:[\"db.operation.name\",\"cloudflare.d1.query_type\",\"redis.command\"],changelog:[{version:\"0.19.0\",prs:[531],description:\"Added redis.command as an alias\"},{version:\"0.4.0\",prs:[199]},{version:\"0.1.0\",prs:[61,127]},{version:\"0.0.0\"}]},\"db.operation.batch.size\":{brief:\"The number of queries included in a batch operation. Operations are only considered batches when they contain two or more operations, and so db.operation.batch.size SHOULD never be 1.\",type:\"integer\",keys:[\"db.operation.batch.size\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:3,changelog:[{version:\"0.11.0\",prs:[407],description:\"Added db.operation.batch.size attribute\"}]},\"db.operation.name\":{brief:\"The name of the operation being executed.\",type:\"string\",keys:[\"db.operation.name\",\"cloudflare.d1.query_type\",\"db.operation\",\"redis.command\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"SELECT\",aliases:[\"db.operation\",\"cloudflare.d1.query_type\",\"redis.command\"],changelog:[{version:\"0.19.0\",prs:[531],description:\"Added redis.command as an alias\"},{version:\"0.1.0\",prs:[127]},{version:\"0.0.0\"}]},\"db.params\":{brief:\"The query bindings for a database request.\",type:\"string\",keys:[\"db.params\"],applyScrubbing:{key:\"auto\"},isInOtel:!1,visibility:\"public\",example:'[{\"x\": 100}]',examples:['[{\"x\": 100}]'],deprecation:{replacement:\"db.query.parameter.<key>\",reason:\"Instead of adding every binding in the db.params attribute, add them as individual entries with db.query.parameter.<key>.\"},changelog:[{version:\"0.19.0\",prs:[529],description:\"Added db.params attribute\"}]},\"db.query.parameter.<key>\":{brief:\"A query parameter used in db.query.text, with <key> being the parameter name, and the attribute value being a string representation of the parameter value.\",type:\"string\",keys:[\"db.query.parameter.<key>\"],applyScrubbing:{key:\"auto\"},isInOtel:!0,visibility:\"public\",hasDynamicSuffix:!0,example:\"db.query.parameter.foo='123'\",changelog:[{version:\"0.1.0\",prs:[103,127]}]},\"db.query.summary\":{brief:\"A shortened representation of operation(s) in the full query. This attribute must be low-cardinality and should only contain the operation table names.\",type:\"string\",keys:[\"db.query.summary\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"SELECT users\",examples:[\"SELECT users\",\"INSERT products; UPDATE orders\"],changelog:[{version:\"0.19.0\",prs:[505],description:\"Added multiple examples\"},{version:\"0.4.0\",prs:[208]},{version:\"0.1.0\",prs:[127]},{version:\"0.0.0\"}]},\"db.query.text\":{brief:\"The database parameterized query being executed. Any parameter values (filters, insertion values, etc) should be replaced with parameter placeholders. If applicable, use `db.query.parameter.<key>` to add the parameter value.\",type:\"string\",keys:[\"db.query.text\",\"db.statement\",\"query\"],applyScrubbing:{key:\"auto\"},isInOtel:!0,visibility:\"public\",example:\"SELECT * FROM users WHERE id = $1\",aliases:[\"db.statement\",\"query\"],changelog:[{version:\"0.19.0\",prs:[530],description:\"Added query as an alias\"},{version:\"0.4.0\",prs:[208]},{version:\"0.1.0\",prs:[127]},{version:\"0.0.0\"}]},\"db.redis.connection\":{brief:\"The redis connection name.\",type:\"string\",keys:[\"db.redis.connection\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"my-redis-instance\",changelog:[{version:\"0.1.0\",prs:[127]},{version:\"0.0.0\"}]},\"db.redis.key\":{brief:\"The key the Redis command is operating on.\",type:\"string\",keys:[\"db.redis.key\",\"redis.key\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"user:2047:city\",aliases:[\"redis.key\"],changelog:[{version:\"0.19.0\",prs:[484],description:\"Added redis.key as an alias\"},{version:\"0.6.0\",prs:[326],description:\"Added db.redis.key attribute\"}]},\"db.redis.parameters\":{brief:\"The array of command parameters given to a redis command.\",type:\"string[]\",keys:[\"db.redis.parameters\"],applyScrubbing:{key:\"auto\"},isInOtel:!1,visibility:\"public\",example:[\"test\",\"*\"],changelog:[{version:\"0.0.0\"}]},\"db.response.status_code\":{brief:\"Database response status code. The status code returned by the database. Usually it represents an error code, but may also represent partial success, warning, or differentiate between various types of successful outcomes.\",type:\"string\",keys:[\"db.response.status_code\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"ORA-17002\",changelog:[{version:\"0.16.0\",prs:[462],description:\"Added db.response.status_code attribute\"}]},\"db.sql.bindings\":{brief:\"The array of query bindings.\",type:\"string[]\",keys:[\"db.sql.bindings\"],applyScrubbing:{key:\"auto\"},isInOtel:!1,visibility:\"public\",example:[\"1\",\"foo\"],deprecation:{replacement:\"db.query.parameter.<key>\",reason:\"Instead of adding every binding in the db.sql.bindings attribute, add them as individual entires with db.query.parameter.<key>.\"},changelog:[{version:\"0.1.0\",prs:[61]},{version:\"0.0.0\"}]},\"db.statement\":{brief:\"The database statement being executed.\",type:\"string\",keys:[\"db.query.text\",\"db.statement\",\"query\"],applyScrubbing:{key:\"auto\"},isInOtel:!0,visibility:\"public\",example:\"SELECT * FROM users WHERE id = $1\",deprecation:{replacement:\"db.query.text\",reason:\"While this attribute never specifically required parameterization, the replacement, db.query.text, does.\",status:\"normalize\"},aliases:[\"db.query.text\",\"query\"],changelog:[{version:\"0.19.0\",prs:[501],description:\"Improved example, added deprecation reason, and added query as an alias\"},{version:\"0.4.0\",prs:[199]},{version:\"0.1.0\",prs:[61,127]},{version:\"0.0.0\"}]},\"db.stored_procedure.name\":{brief:\"The name of a stored procedure being called.\",type:\"string\",keys:[\"db.stored_procedure.name\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"GetUserById\",changelog:[{version:\"0.11.0\",prs:[398]}]},\"db.system\":{brief:\"An identifier for the database management system (DBMS) product being used. See [OpenTelemetry docs](https://github.com/open-telemetry/semantic-conventions/blob/main/docs/database/database-spans.md#notes-and-well-known-identifiers-for-dbsystem) for a list of well-known identifiers.\",type:\"string\",keys:[\"db.system.name\",\"db.system\",\"span.system\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"postgresql\",deprecation:{replacement:\"db.system.name\",status:\"backfill\"},aliases:[\"db.system.name\"],changelog:[{version:\"0.4.0\",prs:[199,224]},{version:\"0.1.0\",prs:[61,127]},{version:\"0.0.0\"}],searchAlias:{name:\"db.system\",deprecatedAliases:[\"span.system\"]}},\"db.system.name\":{brief:\"An identifier for the database management system (DBMS) product being used. See [OpenTelemetry docs](https://github.com/open-telemetry/semantic-conventions/blob/main/docs/database/database-spans.md#notes-and-well-known-identifiers-for-dbsystem) for a list of well-known identifiers.\",type:\"string\",keys:[\"db.system.name\",\"db.system\",\"span.system\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"postgresql\",aliases:[\"db.system\"],changelog:[{version:\"0.1.0\",prs:[127]},{version:\"0.0.0\"}]},\"db.user\":{brief:\"The database user.\",type:\"string\",keys:[\"db.user\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"fancy_user\",changelog:[{version:\"0.0.0\"}]},deviceMemory:{brief:\"The estimated total memory capacity of the device, only a rough estimation in gigabytes.\",type:\"string\",keys:[\"device.memory.estimated_capacity\",\"deviceMemory\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"8 GB\",deprecation:{replacement:\"device.memory.estimated_capacity\",reason:\"Old namespace-less attribute, to be replaced with device.memory.estimated_capacity for span-first future\",status:\"backfill\"},aliases:[\"device.memory.estimated_capacity\"],changelog:[{version:\"0.5.0\",prs:[281],description:\"Added and deprecated attribute to document JS SDK's current behaviour\"}]},\"device.archs\":{brief:\"The CPU architectures of the device.\",type:\"string[]\",keys:[\"device.archs\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:[\"arm64-v8a\",\"armeabi-v7a\",\"armeabi\"],changelog:[{version:\"0.5.0\",prs:[303],description:\"Added device.archs attribute\"}]},\"device.battery_level\":{brief:\"The battery level of the device as a percentage (0-100).\",type:\"double\",keys:[\"device.battery_level\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:100,changelog:[{version:\"0.5.0\",prs:[303],description:\"Added device.battery_level attribute\"}]},\"device.battery_temperature\":{brief:\"The battery temperature of the device in Celsius.\",type:\"double\",keys:[\"device.battery_temperature\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:25,changelog:[{version:\"0.5.0\",prs:[303],description:\"Added device.battery_temperature attribute\"}]},\"device.boot_time\":{brief:\"A formatted UTC timestamp when the system was booted.\",type:\"string\",keys:[\"device.boot_time\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"2018-02-08T12:52:12Z\",changelog:[{version:\"0.5.0\",prs:[303],description:\"Added device.boot_time attribute\"}]},\"device.brand\":{brief:\"The brand of the device.\",type:\"string\",keys:[\"device.brand\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"Apple\",changelog:[{version:\"0.1.0\",prs:[116,127]}]},\"device.charging\":{brief:\"Whether the device was charging or not.\",type:\"boolean\",keys:[\"device.charging\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:!1,changelog:[{version:\"0.5.0\",prs:[303],description:\"Added device.charging attribute\"}]},\"device.chipset\":{brief:\"The chipset of the device.\",type:\"string\",keys:[\"device.chipset\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"Qualcomm SM8550\",changelog:[{version:\"0.5.0\",prs:[303],description:\"Added device.chipset attribute\"}]},\"device.class\":{brief:\"The classification of the device. For example, `low`, `medium`, or `high`. Typically inferred by Relay - SDKs generally do not need to set this directly.\",type:\"string\",keys:[\"device.class\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"medium\",changelog:[{version:\"0.5.0\",prs:[300],description:\"Added device.class attribute\"}]},\"device.connection_type\":{brief:\"The internet connection type currently being used by the device.\",type:\"string\",keys:[\"network.connection.type\",\"connectionType\",\"device.connection_type\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"wifi\",deprecation:{replacement:\"network.connection.type\",reason:\"This attribute is being deprecated in favor of network.connection.type\",status:\"backfill\"},aliases:[\"network.connection.type\",\"connectionType\"],changelog:[{version:\"0.5.0\",prs:[303],description:\"Added and deprecated device.connection_type in favor of network.connection.type\"}]},\"device.cpu_description\":{brief:\"A description of the CPU of the device.\",type:\"string\",keys:[\"device.cpu_description\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz\",changelog:[{version:\"0.5.0\",prs:[303],description:\"Added device.cpu_description attribute\"}]},\"device.external_free_storage\":{brief:\"External storage free size in bytes.\",type:\"integer\",keys:[\"device.external_free_storage\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:67108864e3,changelog:[{version:\"0.5.0\",prs:[303],description:\"Added device.external_free_storage attribute\"}]},\"device.external_storage_size\":{brief:\"External storage total size in bytes.\",type:\"integer\",keys:[\"device.external_storage_size\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:134217728e3,changelog:[{version:\"0.5.0\",prs:[303],description:\"Added device.external_storage_size attribute\"}]},\"device.family\":{brief:\"The family of the device.\",type:\"string\",keys:[\"device.family\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"iPhone\",changelog:[{version:\"0.1.0\",prs:[116,127]}]},\"device.free_memory\":{brief:\"Free system memory in bytes.\",type:\"integer\",keys:[\"device.free_memory\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:2147483648,changelog:[{version:\"0.5.0\",prs:[300],description:\"Added device.free_memory attribute\"}]},\"device.free_storage\":{brief:\"Free device storage in bytes.\",type:\"integer\",keys:[\"device.free_storage\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:107374182400,changelog:[{version:\"0.5.0\",prs:[303],description:\"Added device.free_storage attribute\"}]},\"device.id\":{brief:\"Unique device identifier.\",type:\"string\",keys:[\"device.id\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"a1b2c3d4-e5f6-7890-abcd-ef1234567890\",changelog:[{version:\"0.5.0\",prs:[303],description:\"Added device.id attribute\"}]},\"device.locale\":{brief:\"The locale of the device.\",type:\"string\",keys:[\"device.locale\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"en-US\",changelog:[{version:\"0.5.0\",prs:[303],description:\"Added device.locale attribute\"}]},\"device.low_memory\":{brief:\"Whether the device was low on memory.\",type:\"boolean\",keys:[\"device.low_memory\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:!1,changelog:[{version:\"0.5.0\",prs:[303],description:\"Added device.low_memory attribute\"}]},\"device.low_power_mode\":{brief:\"Whether the device is in Low Power Mode.\",type:\"boolean\",keys:[\"device.low_power_mode\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:!0,changelog:[{version:\"0.6.0\",prs:[314],description:\"Added device.low_power_mode attribute\"}]},\"device.manufacturer\":{brief:\"The manufacturer of the device.\",type:\"string\",keys:[\"device.manufacturer\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"Google\",changelog:[{version:\"0.5.0\",prs:[303],description:\"Added device.manufacturer attribute\"}]},\"device.memory.estimated_capacity\":{brief:\"The estimated total memory capacity of the device, only a rough estimation in gigabytes. Browsers report estimations in buckets of powers of 2, mostly capped at 8 GB\",type:\"integer\",keys:[\"device.memory.estimated_capacity\",\"deviceMemory\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:8,aliases:[\"deviceMemory\"],changelog:[{version:\"0.5.0\",prs:[281],description:\"Added attribute device.memory.estimated_capacity to be used instead of deviceMemory\"}]},\"device.memory_size\":{brief:\"Total system memory available in bytes.\",type:\"integer\",keys:[\"device.memory_size\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:17179869184,changelog:[{version:\"0.5.0\",prs:[300],description:\"Added device.memory_size attribute\"}]},\"device.model\":{brief:\"The model of the device.\",type:\"string\",keys:[\"device.model\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"iPhone 15 Pro Max\",changelog:[{version:\"0.1.0\",prs:[116,127]}]},\"device.model_id\":{brief:\"An internal hardware revision to identify the device exactly.\",type:\"string\",keys:[\"device.model_id\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"N861AP\",changelog:[{version:\"0.5.0\",prs:[300],description:\"Added device.model_id attribute\"}]},\"device.name\":{brief:\"The user-assigned name of the mobile device.\",type:\"string\",keys:[\"device.name\"],applyScrubbing:{key:\"auto\"},isInOtel:!1,visibility:\"public\",example:\"localhost\",changelog:[{version:\"0.24.0\",prs:[647],description:\"Limit brief to mobile attributes and remove server_name alias\"},{version:\"0.21.0\",prs:[602],description:\"Added server_name as an alias\"},{version:\"0.5.0\",prs:[303],description:\"Added device.name attribute\"}]},\"device.online\":{brief:\"Whether the device was online or not.\",type:\"boolean\",keys:[\"device.online\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:!0,changelog:[{version:\"0.5.0\",prs:[303],description:\"Added device.online attribute\"}]},\"device.orientation\":{brief:'The orientation of the device, either \"portrait\" or \"landscape\".',type:\"string\",keys:[\"device.orientation\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"portrait\",changelog:[{version:\"0.5.0\",prs:[303],description:\"Added device.orientation attribute\"}]},\"device.processor_count\":{brief:'Number of \"logical processors\".',type:\"integer\",keys:[\"device.processor_count\",\"hardwareConcurrency\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:8,aliases:[\"hardwareConcurrency\"],changelog:[{version:\"0.5.0\",prs:[300],description:\"Added and deprecated attribute device.processor_count in favor of device.cpu.logical_core_count\"}]},\"device.processor_frequency\":{brief:\"Processor frequency in MHz.\",type:\"double\",keys:[\"device.processor_frequency\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:2400,changelog:[{version:\"0.5.0\",prs:[303],description:\"Added device.processor_frequency attribute\"}]},\"device.screen_density\":{brief:\"The screen density of the device.\",type:\"double\",keys:[\"device.screen_density\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:2.625,changelog:[{version:\"0.5.0\",prs:[303],description:\"Added device.screen_density attribute\"}]},\"device.screen_dpi\":{brief:\"The screen density in dots-per-inch (DPI) of the device.\",type:\"integer\",keys:[\"device.screen_dpi\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:420,changelog:[{version:\"0.5.0\",prs:[303],description:\"Added device.screen_dpi attribute\"}]},\"device.screen_height_pixels\":{brief:\"The height of the device screen in pixels.\",type:\"integer\",keys:[\"device.screen_height_pixels\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:2400,changelog:[{version:\"0.5.0\",prs:[303],description:\"Added device.screen_height_pixels attribute\"}]},\"device.screen_width_pixels\":{brief:\"The width of the device screen in pixels.\",type:\"integer\",keys:[\"device.screen_width_pixels\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:1080,changelog:[{version:\"0.5.0\",prs:[303],description:\"Added device.screen_width_pixels attribute\"}]},\"device.simulator\":{brief:\"Whether the device is a simulator or an actual device.\",type:\"boolean\",keys:[\"device.simulator\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:!1,changelog:[{version:\"0.5.0\",prs:[300],description:\"Added device.simulator attribute\"}]},\"device.storage_size\":{brief:\"Total device storage in bytes.\",type:\"integer\",keys:[\"device.storage_size\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:274877906944,changelog:[{version:\"0.5.0\",prs:[303],description:\"Added device.storage_size attribute\"}]},\"device.thermal_state\":{brief:\"The thermal state of the device. Based on Apple's `ProcessInfo.ThermalState` enum: `nominal`, `fair`, `serious`, or `critical`.\",type:\"string\",keys:[\"device.thermal_state\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"nominal\",changelog:[{version:\"0.5.0\",prs:[303],description:\"Added device.thermal_state attribute\"}]},\"device.timezone\":{brief:\"The timezone of the device.\",type:\"string\",keys:[\"device.timezone\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"Europe/Vienna\",changelog:[{version:\"0.5.0\",prs:[303],description:\"Added device.timezone attribute\"}]},\"device.usable_memory\":{brief:\"Memory usable for the app in bytes.\",type:\"integer\",keys:[\"device.usable_memory\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:2147483648,changelog:[{version:\"0.5.0\",prs:[303],description:\"Added device.usable_memory attribute\"}]},dist:{brief:\"The sentry dist.\",type:\"string\",keys:[\"sentry.dist\",\"dist\"],applyScrubbing:{key:\"never\"},isInOtel:!1,visibility:\"public\",example:\"1.0\",deprecation:{replacement:\"sentry.dist\",reason:\"This attribute is being deprecated in favor of sentry.dist.\",status:\"backfill\"},aliases:[\"sentry.dist\"],changelog:[{version:\"0.16.0\",prs:[489],description:\"Added dist attribute\"}]},\"django.function_name\":{brief:\"The fully qualified name of a function used in a Django context.\",type:\"string\",keys:[\"code.function.name\",\"code.function\",\"django.function_name\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"django.contrib.sessions.middleware.SessionMiddleware\",examples:[\"django.contrib.sessions.middleware.SessionMiddleware\"],deprecation:{replacement:\"code.function.name\",reason:\"This attribute is being deprecated in favor of code.function.name, which is the framework-agnostic replacement.\",status:\"backfill\"},aliases:[\"code.function.name\",\"code.function\"],changelog:[{version:\"0.19.0\",prs:[538],description:\"Added django.function_name attribute\"}]},\"django.middleware_name\":{brief:\"The name of the Django middleware.\",type:\"string\",keys:[\"middleware.name\",\"django.middleware_name\",\"litestar.middleware_name\",\"starlette.middleware_name\",\"starlite.middleware_name\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"AuthenticationMiddleware\",examples:[\"AuthenticationMiddleware\"],deprecation:{replacement:\"middleware.name\",reason:\"This attribute is being deprecated in favor of middleware.name, which is the framework-agnostic replacement.\",status:\"backfill\"},aliases:[\"middleware.name\"],changelog:[{version:\"0.19.0\",prs:[520],description:\"Added django.middleware_name attribute\"}]},effectiveConnectionType:{brief:\"Specifies the estimated effective type of the current connection (e.g. slow-2g, 2g, 3g, 4g).\",type:\"string\",keys:[\"network.connection.effective_type\",\"effectiveConnectionType\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"4g\",deprecation:{replacement:\"network.connection.effective_type\",reason:\"Old namespace-less attribute, to be replaced with network.connection.effective_type for span-first future\",status:\"backfill\"},aliases:[\"network.connection.effective_type\"],changelog:[{version:\"0.5.0\",prs:[279],description:\"Added and deprecated attribute to document JS SDK's current behaviour\"}]},environment:{brief:\"The sentry environment.\",type:\"string\",keys:[\"sentry.environment\",\"environment\",\"resource.deployment.environment\",\"resource.deployment.environment.name\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"production\",deprecation:{replacement:\"sentry.environment\",status:\"normalize\"},aliases:[\"sentry.environment\"],changelog:[{version:\"0.19.0\",prs:[427],description:\"Configured normalization\"},{version:\"0.1.0\",prs:[61,127]},{version:\"0.0.0\"}]},\"error.type\":{brief:\"Describes a class of error the operation ended with.\",type:\"string\",keys:[\"error.type\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"timeout\",changelog:[{version:\"0.1.0\",prs:[127]},{version:\"0.0.0\"}]},\"event.id\":{brief:\"The unique identifier for this event (log record)\",type:\"integer\",keys:[\"event.id\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:1234567890,changelog:[{version:\"0.1.0\",prs:[101]}]},\"event.name\":{brief:\"The name that uniquely identifies this event (log record)\",type:\"string\",keys:[\"event.name\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"Process Payload\",changelog:[{version:\"0.1.0\",prs:[101,127]}]},\"exception.escaped\":{brief:\"SHOULD be set to true if the exception event is recorded at a point where it is known that the exception is escaping the scope of the span.\",type:\"boolean\",keys:[\"exception.escaped\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:!0,changelog:[{version:\"0.0.0\"}]},\"exception.message\":{brief:\"The error message.\",type:\"string\",keys:[\"exception.message\"],applyScrubbing:{key:\"auto\"},isInOtel:!0,visibility:\"public\",example:\"ENOENT: no such file or directory\",changelog:[{version:\"0.1.0\",prs:[127]},{version:\"0.0.0\"}]},\"exception.stacktrace\":{brief:\"A stacktrace as a string in the natural representation for the language runtime. The representation is to be determined and documented by each language SIG.\",type:\"string\",keys:[\"exception.stacktrace\"],applyScrubbing:{key:\"auto\"},isInOtel:!0,visibility:\"public\",example:`Exception in thread \"main\" java.lang.RuntimeException: Test exception\n at com.example.GenerateTrace.methodB(GenerateTrace.java:13)\n at com.example.GenerateTrace.methodA(GenerateTrace.java:9)\n at com.example.GenerateTrace.main(GenerateTrace.java:5)`,changelog:[{version:\"0.1.0\",prs:[127]},{version:\"0.0.0\"}]},\"exception.type\":{brief:\"The type of the exception (its fully-qualified class name, if applicable). The dynamic type of the exception should be preferred over the static type in languages that support it.\",type:\"string\",keys:[\"exception.type\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"OSError\",changelog:[{version:\"0.1.0\",prs:[127]},{version:\"0.0.0\"}]},\"faas.coldstart\":{brief:\"A boolean that is true if the serverless function is executed for the first time (aka cold-start).\",type:\"boolean\",keys:[\"faas.coldstart\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:!0,changelog:[{version:\"0.0.0\"}]},\"faas.cron\":{brief:\"A string containing the schedule period as Cron Expression.\",type:\"string\",keys:[\"faas.cron\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"0/5 * * * ? *\",changelog:[{version:\"0.1.0\",prs:[127]},{version:\"0.0.0\"}]},\"faas.duration_in_ms\":{brief:\"The duration a function took to run, in milliseconds.\",type:\"integer\",keys:[\"faas.duration_in_ms\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:120,changelog:[{version:\"0.11.0\",prs:[403]}]},\"faas.entry_point\":{brief:\"The code that's run when the cloud provider invokes your function.\",type:\"string\",keys:[\"faas.entry_point\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"my_main_function\",changelog:[{version:\"0.11.0\",prs:[403,415]}]},\"faas.execution\":{brief:\"The execution ID of the current function execution.\",type:\"string\",keys:[\"faas.invocation_id\",\"aws.lambda.aws_request_id\",\"faas.execution\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"af9d5aa4-a685-4c5f-a22b-444f80b3cc28\",deprecation:{replacement:\"faas.invocation_id\",reason:\"This attribute is being deprecated in favor of faas.invocation_id, which is the OTel-aligned replacement.\",status:\"backfill\"},aliases:[\"faas.invocation_id\",\"aws.lambda.aws_request_id\"],changelog:[{version:\"0.16.0\",prs:[473],description:\"Added faas.execution attribute, deprecated in favor of faas.invocation_id\"}]},\"faas.id\":{brief:\"The unique ID of the single function that this runtime instance executes.\",type:\"string\",keys:[\"cloud.resource_id\",\"faas.id\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"arn:aws:lambda:REGION:ACCOUNT_ID:function:my-function\",deprecation:{replacement:\"cloud.resource_id\",reason:\"This attribute is being deprecated in favor of cloud.resource_id, which is the OTel-aligned replacement (renamed in OTel semantic conventions v1.19.0).\",status:\"backfill\"},aliases:[\"cloud.resource_id\"],changelog:[{version:\"0.16.0\",prs:[475],description:\"Added faas.id attribute, deprecated in favor of cloud.resource_id\"}]},\"faas.identity\":{brief:\"The Service Account (GCP), IAM Execution Role (AWS), or Managed Identity (Azure) used by the serverless function when interacting with other cloud services\",type:\"string\",keys:[\"faas.identity\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"name@project.iam.gserviceaccount.com (GCP), arn:aws:iam::123456789012:role/role-name (AWS), 00000000-0000-0000-0000-000000000000 (Azure)\",changelog:[{version:\"0.11.0\",prs:[403]}]},\"faas.invocation_id\":{brief:\"The invocation ID of the current function invocation.\",type:\"string\",keys:[\"faas.invocation_id\",\"aws.lambda.aws_request_id\",\"faas.execution\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"af9d5aa4-a685-4c5f-a22b-444f80b3cc28\",aliases:[\"aws.lambda.aws_request_id\",\"faas.execution\"],changelog:[{version:\"0.16.0\",prs:[473],description:\"Added faas.execution as an alias\"},{version:\"0.11.1\",prs:[414,424]}]},\"faas.invoked_name\":{brief:\"The name of the invoked function.\",type:\"string\",keys:[\"faas.invoked_name\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"my-function\",changelog:[{version:\"0.16.0\",prs:[481],description:\"Added faas.invoked_name attribute\"}]},\"faas.invoked_provider\":{brief:\"The cloud provider of the invoked function.\",type:\"string\",keys:[\"faas.invoked_provider\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"aws\",changelog:[{version:\"0.16.0\",prs:[481],description:\"Added faas.invoked_provider attribute\"}]},\"faas.invoked_region\":{brief:\"The cloud region of the invoked function.\",type:\"string\",keys:[\"faas.invoked_region\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"eu-central-1\",changelog:[{version:\"0.16.0\",prs:[481],description:\"Added faas.invoked_region attribute\"}]},\"faas.name\":{brief:\"The name of the serverless function\",type:\"string\",keys:[\"faas.name\",\"aws.lambda.function_name\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"my_function\",aliases:[\"aws.lambda.function_name\"],changelog:[{version:\"0.11.0\",prs:[403,415]}]},\"faas.time\":{brief:\"A string containing the function invocation time in the ISO 8601 format expressed in UTC.\",type:\"string\",keys:[\"faas.time\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"2020-01-23T13:47:06Z\",changelog:[{version:\"0.1.0\",prs:[127]},{version:\"0.0.0\"}]},\"faas.trigger\":{brief:\"Type of the trigger which caused this function invocation.\",type:\"string\",keys:[\"faas.trigger\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"timer\",changelog:[{version:\"0.1.0\",prs:[127]},{version:\"0.0.0\"}]},\"faas.version\":{brief:\"The version of the function that was invoked\",type:\"string\",keys:[\"faas.version\",\"aws.lambda.function_version\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"$LATEST\",aliases:[\"aws.lambda.function_version\"],changelog:[{version:\"0.11.1\",prs:[414,424]}]},fcp:{brief:\"The time it takes for the browser to render the first piece of meaningful content on the screen\",type:\"double\",keys:[\"browser.web_vital.fcp.value\",\"fcp\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:547.6951,deprecation:{replacement:\"browser.web_vital.fcp.value\",reason:\"This attribute is being deprecated in favor of browser.web_vital.fcp.value\",status:\"backfill\"},aliases:[\"browser.web_vital.fcp.value\"],changelog:[{version:\"0.5.0\",prs:[235]}]},\"file.path\":{brief:\"Path to the file.\",type:\"string\",keys:[\"file.path\"],applyScrubbing:{key:\"auto\",reason:\"File paths can contain end-user paths (e.g. from stack traces) that may be sensitive.\"},isInOtel:!0,visibility:\"public\",example:\"/home/user/example.txt\",changelog:[{version:\"0.17.0\",prs:[458],description:\"Added file.path attribute\"}]},\"file.size\":{brief:\"File size in bytes.\",type:\"integer\",keys:[\"file.size\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:1024,changelog:[{version:\"0.17.0\",prs:[458],description:\"Added file.size attribute\"}]},\"flag.evaluation.<key>\":{brief:\"An instance of a feature flag evaluation. The value of this attribute is the boolean representing the evaluation result. The <key> suffix is the name of the feature flag.\",type:\"boolean\",keys:[\"flag.evaluation.<key>\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",hasDynamicSuffix:!0,example:\"flag.evaluation.is_new_ui=true\",changelog:[{version:\"0.1.0\",prs:[103]}]},fp:{brief:\"The time it takes for the browser to render the first pixel on the screen\",type:\"double\",keys:[\"browser.web_vital.fp.value\",\"fp\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:477.1926,deprecation:{replacement:\"browser.web_vital.fp.value\",reason:\"This attribute is being deprecated in favor of browser.web_vital.fp.value\",status:\"backfill\"},aliases:[\"browser.web_vital.fp.value\"],changelog:[{version:\"0.5.0\",prs:[235]}]},\"frames.delay\":{brief:\"The sum of all delayed frame durations in seconds during the lifetime of the span. For more information see [frames delay](https://develop.sentry.dev/sdk/performance/frames-delay/).\",type:\"integer\",keys:[\"app.vitals.frames.delay.value\",\"frames.delay\",\"mobile.frames_delay\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:5,deprecation:{replacement:\"app.vitals.frames.delay.value\",reason:\"Replaced by app.vitals.frames.delay.value to align with the app.vitals.* namespace for mobile performance attributes\",status:\"backfill\"},aliases:[\"app.vitals.frames.delay.value\"],changelog:[{version:\"0.5.0\",prs:[313],description:\"Deprecated in favor of app.vitals.frames.delay.value\"},{version:\"0.4.0\",prs:[228]},{version:\"0.0.0\"}],searchAlias:{name:\"mobile.frames_delay\",type:\"second\"}},\"frames.frozen\":{brief:\"The number of frozen frames rendered during the lifetime of the span.\",type:\"integer\",keys:[\"app.vitals.frames.frozen.count\",\"frames.frozen\",\"mobile.frozen_frames\",\"sentry.frames.frozen\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:3,deprecation:{replacement:\"app.vitals.frames.frozen.count\",reason:\"Replaced by app.vitals.frames.frozen.count to align with the app.vitals.* namespace for mobile performance attributes\",status:\"backfill\"},aliases:[\"app.vitals.frames.frozen.count\",\"sentry.frames.frozen\"],changelog:[{version:\"0.19.0\",prs:[500],description:\"Added sentry.frames.frozen as an alias\"},{version:\"0.5.0\",prs:[313],description:\"Deprecated in favor of app.vitals.frames.frozen.count\"},{version:\"0.4.0\",prs:[228]},{version:\"0.0.0\"}],searchAlias:{name:\"mobile.frozen_frames\"}},frames_frozen_rate:{brief:\"The rate of frozen frames, or `app.vitals.frames.frozen.count` divided by `app.vitals.frames.total.count`. This is computed by Relay.\",type:\"double\",keys:[\"app.vitals.frames.frozen.rate\",\"frames_frozen_rate\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",deprecation:{replacement:\"app.vitals.frames.frozen.rate\",reason:\"Replaced by app.vitals.frames.frozen.rate to align with the app.vitals.* namespace for mobile performance attributes\",status:\"backfill\"},aliases:[\"app.vitals.frames.frozen.rate\"],changelog:[{version:\"0.19.0\",prs:[493],description:\"Deprecated in favor of app.vitals.frames.frozen.rate\"},{version:\"0.7.0\",prs:[362],description:\"Added frames_frozen_rate attribute\"}]},\"frames.slow\":{brief:\"The number of slow frames rendered during the lifetime of the span.\",type:\"integer\",keys:[\"app.vitals.frames.slow.count\",\"frames.slow\",\"mobile.slow_frames\",\"sentry.frames.slow\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:1,deprecation:{replacement:\"app.vitals.frames.slow.count\",reason:\"Replaced by app.vitals.frames.slow.count to align with the app.vitals.* namespace for mobile performance attributes\",status:\"backfill\"},aliases:[\"app.vitals.frames.slow.count\",\"sentry.frames.slow\"],changelog:[{version:\"0.19.0\",prs:[500],description:\"Added sentry.frames.slow as an alias\"},{version:\"0.5.0\",prs:[313],description:\"Deprecated in favor of app.vitals.frames.slow.count\"},{version:\"0.4.0\",prs:[228]},{version:\"0.0.0\"}],searchAlias:{name:\"mobile.slow_frames\"}},frames_slow_rate:{brief:\"The rate of slow frames, or `app.vitals.frames.slow.count` divided by `app.vitals.frames.total.count`. This is computed by Relay.\",type:\"double\",keys:[\"app.vitals.frames.slow.rate\",\"frames_slow_rate\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",deprecation:{replacement:\"app.vitals.frames.slow.rate\",reason:\"Replaced by app.vitals.frames.slow.rate to align with the app.vitals.* namespace for mobile performance attributes\",status:\"backfill\"},aliases:[\"app.vitals.frames.slow.rate\"],changelog:[{version:\"0.19.0\",prs:[493],description:\"Deprecated in favor of app.vitals.frames.slow.rate\"},{version:\"0.7.0\",prs:[362],description:\"Added frames_slow_rate attribute\"}]},\"frames.total\":{brief:\"The number of total frames rendered during the lifetime of the span.\",type:\"integer\",keys:[\"app.vitals.frames.total.count\",\"frames.total\",\"mobile.total_frames\",\"sentry.frames.total\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:60,deprecation:{replacement:\"app.vitals.frames.total.count\",reason:\"Replaced by app.vitals.frames.total.count to align with the app.vitals.* namespace for mobile performance attributes\",status:\"backfill\"},aliases:[\"app.vitals.frames.total.count\",\"sentry.frames.total\"],changelog:[{version:\"0.19.0\",prs:[500],description:\"Added sentry.frames.total as an alias\"},{version:\"0.5.0\",prs:[313],description:\"Deprecated in favor of app.vitals.frames.total.count\"},{version:\"0.4.0\",prs:[228]},{version:\"0.0.0\"}],searchAlias:{name:\"mobile.total_frames\"}},fs_error:{brief:\"The error message of a file system error.\",type:\"string\",keys:[\"fs_error\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"ENOENT: no such file or directory\",deprecation:{replacement:\"error.type\",reason:\"This attribute is not part of the OpenTelemetry specification and error.type fits much better. The value changes from the full error message to the syscall error code, so the old value cannot be copied over.\"},changelog:[{version:\"0.23.0\",prs:[638],description:\"Remove unnecessary transformation and change deprecation status to null.\"},{version:\"0.22.0\",prs:[589],description:\"Transform fs_error into error.type\"},{version:\"0.1.0\",prs:[61,127]},{version:\"0.0.0\"}]},\"gcp.function.context.event_id\":{brief:\"The event ID from the legacy GCP Cloud Function context (1st gen)\",type:\"string\",keys:[\"gcp.function.context.event_id\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"1234567890\",changelog:[{version:\"0.7.0\",prs:[371],description:\"Added gcp.function.context.event_id attribute\"}]},\"gcp.function.context.event_type\":{brief:\"The type of the GCP Cloud Function event\",type:\"string\",keys:[\"gcp.function.context.event_type\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"google.pubsub.topic.publish\",changelog:[{version:\"0.7.0\",prs:[371],description:\"Added gcp.function.context.event_type attribute\"}]},\"gcp.function.context.id\":{brief:\"The unique event ID from the GCP CloudEvents context (2nd gen Cloud Functions)\",type:\"string\",keys:[\"gcp.function.context.id\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"1234567890\",changelog:[{version:\"0.7.0\",prs:[371],description:\"Added gcp.function.context.id attribute\"}]},\"gcp.function.context.resource\":{brief:\"The resource that triggered the GCP Cloud Function event\",type:\"string\",keys:[\"gcp.function.context.resource\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"projects/my-project/topics/my-topic\",changelog:[{version:\"0.7.0\",prs:[371],description:\"Added gcp.function.context.resource attribute\"}]},\"gcp.function.context.source\":{brief:\"The source of the GCP Cloud Function event\",type:\"string\",keys:[\"gcp.function.context.source\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"//pubsub.googleapis.com/projects/my-project/topics/my-topic\",changelog:[{version:\"0.7.0\",prs:[371],description:\"Added gcp.function.context.source attribute\"}]},\"gcp.function.context.specversion\":{brief:\"The CloudEvents specification version of the GCP Cloud Function event\",type:\"string\",keys:[\"gcp.function.context.specversion\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"1.0\",changelog:[{version:\"0.7.0\",prs:[371],description:\"Added gcp.function.context.specversion attribute\"}]},\"gcp.function.context.time\":{brief:\"The timestamp of the GCP Cloud Function event\",type:\"string\",keys:[\"gcp.function.context.time\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"2024-01-01T00:00:00.000Z\",changelog:[{version:\"0.7.0\",prs:[371],description:\"Added gcp.function.context.time attribute\"}]},\"gcp.function.context.timestamp\":{brief:\"The legacy timestamp of the GCP Cloud Function event\",type:\"string\",keys:[\"gcp.function.context.timestamp\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"2024-01-01T00:00:00.000Z\",changelog:[{version:\"0.7.0\",prs:[371],description:\"Added gcp.function.context.timestamp attribute\"}]},\"gcp.function.context.type\":{brief:\"The type of the GCP Cloud Function event context\",type:\"string\",keys:[\"gcp.function.context.type\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"cloud_functions.context\",changelog:[{version:\"0.7.0\",prs:[371],description:\"Added gcp.function.context.type attribute\"}]},\"gcp.project.id\":{brief:\"The ID of the project in GCP that this resource is associated with\",type:\"string\",keys:[\"gcp.project.id\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"my-project-123\",changelog:[{version:\"0.11.0\",prs:[403]}]},gcp_region:{brief:\"The geographical region the GCP resource is running\",type:\"string\",keys:[\"cloud.region\",\"aws_region\",\"gcp_region\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"us-east-1\",examples:[\"us-east-1\"],deprecation:{replacement:\"cloud.region\",status:\"backfill\"},aliases:[\"cloud.region\",\"aws_region\"],changelog:[{version:\"0.19.0\",prs:[535],description:\"Added gcp_region attribute\"}]},\"gen_ai.agent.name\":{brief:\"The name of the agent being used.\",type:\"string\",keys:[\"gen_ai.agent.name\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"ResearchAssistant\",changelog:[{version:\"0.1.0\",prs:[62,127]}]},\"gen_ai.context.utilization\":{brief:\"The fraction of the model context window utilized by this generation.\",type:\"double\",keys:[\"gen_ai.context.utilization\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:.75,changelog:[{version:\"0.5.0\",prs:[315],description:\"Added gen_ai.context.utilization attribute\"}]},\"gen_ai.context.window_size\":{brief:\"The maximum context window size supported by the model for this generation.\",type:\"integer\",keys:[\"gen_ai.context.window_size\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:128e3,changelog:[{version:\"0.5.0\",prs:[315],description:\"Added gen_ai.context.window_size attribute\"}]},\"gen_ai.conversation.id\":{brief:\"The unique identifier for a conversation (session, thread), used to store and correlate messages within this conversation.\",type:\"string\",keys:[\"gen_ai.conversation.id\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"conv_5j66UpCpwteGg4YSxUnt7lPY\",changelog:[{version:\"0.4.0\",prs:[250]}]},\"gen_ai.cost.cache_creation.input_tokens\":{brief:\"The cost of input tokens written to cache in USD.\",type:\"double\",keys:[\"gen_ai.cost.cache_creation.input_tokens\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:12.34,changelog:[{version:\"0.16.0\",description:\"Added gen_ai.cost.cache_creation.input_tokens attribute\"}],additionalContext:[\"This attribute appears on both agent parent spans (aggregated totals) and LLM child spans (per-call values). When using sum() to calculate total cost, filter to gen_ai.operation.type:ai_client to avoid double-counting hierarchical spans.\",\"Despite the name 'cost.cache_creation.input_tokens', this value is cost in USD, not a token count. For token counts, use gen_ai.usage.cache_creation.input_tokens.\",\"This is a subset of gen_ai.cost.input_tokens, not an independent cost. Do not sum this with gen_ai.cost.input_tokens \\u2014 it is already included.\"]},\"gen_ai.cost.cache_read.input_tokens\":{brief:\"The cost of cached input tokens in USD.\",type:\"double\",keys:[\"gen_ai.cost.cache_read.input_tokens\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:12.34,changelog:[{version:\"0.16.0\",description:\"Added gen_ai.cost.cache_read.input_tokens attribute\"}],additionalContext:[\"This attribute appears on both agent parent spans (aggregated totals) and LLM child spans (per-call values). When using sum() to calculate total cost, filter to gen_ai.operation.type:ai_client to avoid double-counting hierarchical spans.\",\"Despite the name 'cost.cache_read.input_tokens', this value is cost in USD, not a token count. For token counts, use gen_ai.usage.cache_read.input_tokens.\",\"This is a subset of gen_ai.cost.input_tokens, not an independent cost. Do not sum this with gen_ai.cost.input_tokens \\u2014 it is already included.\"]},\"gen_ai.cost.input_tokens\":{brief:\"The total cost of all input tokens in USD (includes cached and cache creation tokens).\",type:\"double\",keys:[\"gen_ai.cost.input_tokens\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:123.45,changelog:[{version:\"0.9.0\",prs:[397],description:\"Add additional_context\"},{version:\"0.4.0\",prs:[228]},{version:\"0.1.0\",prs:[112]}],additionalContext:[\"This attribute appears on both agent parent spans (aggregated totals) and LLM child spans (per-call values). When using sum() to calculate total cost, filter to gen_ai.operation.type:ai_client to avoid double-counting hierarchical spans.\",\"Despite the name 'cost.input_tokens', this value is cost in USD, not a token count. For token counts, use gen_ai.usage.input_tokens.\",\"This is the total cost of all input tokens, including cached and cache creation tokens at their respective rates. For the cached portion, see gen_ai.cost.cache_read.input_tokens. For the cache creation portion, see gen_ai.cost.cache_creation.input_tokens.\"]},\"gen_ai.cost.output_tokens\":{brief:\"The total cost of all output tokens in USD (includes reasoning tokens).\",type:\"double\",keys:[\"gen_ai.cost.output_tokens\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:123.45,changelog:[{version:\"0.9.0\",prs:[397],description:\"Add additional_context\"},{version:\"0.4.0\",prs:[228]},{version:\"0.1.0\",prs:[112]}],additionalContext:[\"This attribute appears on both agent parent spans (aggregated totals) and LLM child spans (per-call values). When using sum() to calculate total cost, filter to gen_ai.operation.type:ai_client to avoid double-counting hierarchical spans.\",\"Despite the name 'cost.output_tokens', this value is cost in USD, not a token count. For token counts, use gen_ai.usage.output_tokens.\",\"This is the total cost of all output tokens, including reasoning tokens at their respective rate. For the reasoning portion, see gen_ai.cost.reasoning.output_tokens.\"]},\"gen_ai.cost.reasoning.output_tokens\":{brief:\"The cost of reasoning output tokens in USD.\",type:\"double\",keys:[\"gen_ai.cost.reasoning.output_tokens\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:12.34,changelog:[{version:\"0.16.0\",description:\"Added gen_ai.cost.reasoning.output_tokens attribute\"}],additionalContext:[\"This attribute appears on both agent parent spans (aggregated totals) and LLM child spans (per-call values). When using sum() to calculate total cost, filter to gen_ai.operation.type:ai_client to avoid double-counting hierarchical spans.\",\"Despite the name 'cost.reasoning.output_tokens', this value is cost in USD, not a token count. For token counts, use gen_ai.usage.reasoning.output_tokens.\",\"This is a subset of gen_ai.cost.output_tokens, not an independent cost. Do not sum this with gen_ai.cost.output_tokens \\u2014 it is already included.\"]},\"gen_ai.cost.total_tokens\":{brief:\"The total cost for the tokens used.\",type:\"double\",keys:[\"gen_ai.cost.total_tokens\",\"ai.total_cost\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:12.34,aliases:[\"ai.total_cost\"],changelog:[{version:\"0.9.0\",prs:[397],description:\"Add additional_context\"},{version:\"0.5.0\",prs:[264]},{version:\"0.4.0\",prs:[228]},{version:\"0.1.0\",prs:[126]}],additionalContext:[\"This attribute appears on both agent parent spans (aggregated totals) and LLM child spans (per-call values). When using sum() to calculate total cost, filter to gen_ai.operation.type:ai_client to avoid double-counting hierarchical spans.\",\"Despite the name 'cost.total_tokens', this value is cost in USD, not a token count. For token counts, use gen_ai.usage.total_tokens.\"]},\"gen_ai.embeddings.input\":{brief:\"The input to the embeddings model.\",type:\"string\",keys:[\"gen_ai.embeddings.input\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"What's the weather in Paris?\",changelog:[{version:\"0.3.1\",prs:[195]}]},\"gen_ai.function_id\":{brief:\"Framework-specific tracing label for the execution of a function or other unit of execution in a generative AI system.\",type:\"string\",keys:[\"gen_ai.function_id\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"my-awesome-function\",changelog:[{version:\"0.5.0\",prs:[308],description:\"Added gen_ai.function_id attribute\"}]},\"gen_ai.input.messages\":{brief:'The messages passed to the model. It has to be a stringified version of an array of objects. The `role` attribute of each object must be `\"user\"`, `\"assistant\"`, `\"tool\"`, or `\"system\"`. For messages of the role `\"tool\"`, the `content` can be a string or an arbitrary object with information about the tool call. For other messages the `content` can be either a string or a list of objects in the format `{type: \"text\", text:\"...\"}`. For `gen_ai.evaluate` operations, the array holds one object `{type: \"evaluation\", state: ..., questions: {...}}` with the evaluated state and the questions keyed by name, as the caller passed them.',type:\"string\",keys:[\"gen_ai.input.messages\",\"ai.input_messages\",\"ai.prompt\",\"ai.prompt.messages\",\"ai.texts\",\"gen_ai.prompt\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:'[{\"role\": \"user\", \"parts\": [{\"type\": \"text\", \"content\": \"Weather in Paris?\"}]}, {\"role\": \"assistant\", \"parts\": [{\"type\": \"tool_call\", \"id\": \"call_VSPygqKTWdrhaFErNvMV18Yl\", \"name\": \"get_weather\", \"arguments\": {\"location\": \"Paris\"}}]}, {\"role\": \"tool\", \"parts\": [{\"type\": \"tool_call_response\", \"id\": \"call_VSPygqKTWdrhaFErNvMV18Yl\", \"result\": \"rainy, 57\\xB0F\"}]}]',aliases:[\"ai.texts\",\"ai.prompt.messages\",\"gen_ai.prompt\",\"ai.prompt\"],changelog:[{version:\"0.26.0\",prs:[650],description:\"Describe the evaluation message shape for gen_ai.evaluate\"},{version:\"0.21.0\",prs:[583],description:\"Added ai.prompt as an alias\"},{version:\"0.5.0\",prs:[264]},{version:\"0.4.0\",prs:[221]}]},\"gen_ai.operation.name\":{brief:\"The name of the operation being performed. It has the following list of well-known values: 'chat', 'create_agent', 'embeddings', 'execute_tool', 'generate_content', 'invoke_agent', 'text_completion'. If one of them applies, then that value MUST be used. Otherwise a custom value MAY be used.\",type:\"string\",keys:[\"gen_ai.operation.name\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"chat\",changelog:[{version:\"0.4.0\",prs:[225]},{version:\"0.1.0\",prs:[62,127]}]},\"gen_ai.operation.type\":{brief:\"The type of AI operation. Must be one of 'agent' (invoke_agent and create_agent spans), 'ai_client' (any LLM call), 'tool' (execute_tool spans), 'handoff' (handoff spans), 'other' (input and output processors, skill loading, guardrails etc.) . Added during ingestion based on span.op and gen_ai.operation.type. Used to filter and aggregate data in the UI\",type:\"string\",keys:[\"gen_ai.operation.type\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"tool\",changelog:[{version:\"0.4.0\",prs:[257]},{version:\"0.1.0\",prs:[113,127]}]},\"gen_ai.output.messages\":{brief:'The model\\'s response messages. It has to be a stringified version of an array of message objects, which can include text responses and tool calls. For `gen_ai.evaluate` operations, the array holds one object `{type: \"evaluation\", answers: {...}}` with the answers keyed by question name, as the provider returned them.',type:\"string\",keys:[\"gen_ai.output.messages\",\"ai.response.text\",\"ai.response.toolCalls\",\"ai.responses\",\"ai.tool_calls\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:'[{\"role\": \"assistant\", \"parts\": [{\"type\": \"text\", \"content\": \"The weather in Paris is currently rainy with a temperature of 57\\xB0F.\"}], \"finish_reason\": \"stop\"}]',aliases:[\"ai.response.toolCalls\",\"ai.response.text\"],changelog:[{version:\"0.26.0\",prs:[650],description:\"Describe the evaluation message shape for gen_ai.evaluate\"},{version:\"0.4.0\",prs:[221]}]},\"gen_ai.pipeline.name\":{brief:\"Name of the AI pipeline or chain being executed.\",type:\"string\",keys:[\"gen_ai.pipeline.name\",\"ai.pipeline.name\",\"langchain.chain.name\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"Autofix Pipeline\",aliases:[\"ai.pipeline.name\",\"langchain.chain.name\"],changelog:[{version:\"0.22.0\",prs:[599],description:\"Added langchain.chain.name as an alias\"},{version:\"0.1.0\",prs:[76,127]}]},\"gen_ai.prompt\":{brief:\"The input messages sent to the model\",type:\"string\",keys:[\"gen_ai.input.messages\",\"ai.input_messages\",\"ai.prompt\",\"ai.prompt.messages\",\"ai.texts\",\"gen_ai.prompt\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:'[{\"role\": \"user\", \"message\": \"hello\"}]',deprecation:{replacement:\"gen_ai.input.messages\",reason:\"Deprecated from OTEL, use gen_ai.input.messages with the new format instead.\",status:\"backfill\"},aliases:[\"gen_ai.input.messages\",\"ai.texts\",\"ai.prompt.messages\",\"ai.prompt\"],changelog:[{version:\"0.21.0\",prs:[583],description:\"Added ai.prompt as an alias\"},{version:\"0.1.0\",prs:[74,108,119]},{version:\"0.0.0\"}]},\"gen_ai.prompt.name\":{brief:\"The name of the prompt that uniquely identifies it.\",type:\"string\",keys:[\"gen_ai.prompt.name\",\"mcp.prompt.name\"],applyScrubbing:{key:\"manual\",reason:\"Prompt names may reveal user behavior patterns or sensitive operations\"},isInOtel:!0,visibility:\"public\",example:\"summarize_text\",aliases:[\"mcp.prompt.name\"],changelog:[{version:\"0.12.0\",prs:[420],description:\"Added gen_ai.prompt.name attribute\"}]},\"gen_ai.provider.name\":{brief:\"The Generative AI provider as identified by the client or server instrumentation.\",type:\"string\",keys:[\"gen_ai.provider.name\",\"ai.model.provider\",\"gen_ai.system\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"openai\",aliases:[\"ai.model.provider\",\"gen_ai.system\"],changelog:[{version:\"0.4.0\",prs:[253]}]},\"gen_ai.request.available_tools\":{brief:\"The available tools for the model. It has to be a stringified version of an array of objects.\",type:\"string\",keys:[\"gen_ai.tool.definitions\",\"ai.prompt.tools\",\"ai.tools\",\"gen_ai.request.available_tools\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:'[{\"name\": \"get_weather\", \"description\": \"Get the weather for a given location\"}, {\"name\": \"get_news\", \"description\": \"Get the news for a given topic\"}]',deprecation:{replacement:\"gen_ai.tool.definitions\",status:\"normalize\"},aliases:[\"gen_ai.tool.definitions\"],changelog:[{version:\"0.22.0\",prs:[595],description:\"Added gen_ai.tool.definitions as an alias\"},{version:\"0.4.0\",prs:[221]},{version:\"0.1.0\",prs:[63,127]}]},\"gen_ai.request.frequency_penalty\":{brief:\"Used to reduce repetitiveness of generated tokens. The higher the value, the stronger a penalty is applied to previously present tokens, proportional to how many times they have already appeared in the prompt or prior generation.\",type:\"double\",keys:[\"gen_ai.request.frequency_penalty\",\"ai.frequency_penalty\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:.5,aliases:[\"ai.frequency_penalty\"],changelog:[{version:\"0.4.0\",prs:[228]},{version:\"0.1.0\",prs:[57]}]},\"gen_ai.request.max_tokens\":{brief:\"The maximum number of tokens to generate in the response.\",type:\"integer\",keys:[\"gen_ai.request.max_tokens\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:2048,changelog:[{version:\"0.4.0\",prs:[228]},{version:\"0.1.0\",prs:[62]}]},\"gen_ai.request.messages\":{brief:'The messages passed to the model. It has to be a stringified version of an array of objects. The `role` attribute of each object must be `\"user\"`, `\"assistant\"`, `\"tool\"`, or `\"system\"`. For messages of the role `\"tool\"`, the `content` can be a string or an arbitrary object with information about the tool call. For other messages the `content` can be either a string or a list of objects in the format `{type: \"text\", text:\"...\"}`.',type:\"string\",keys:[\"gen_ai.request.messages\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:'[{\"role\": \"system\", \"content\": \"Generate a random number.\"}, {\"role\": \"user\", \"content\": [{\"text\": \"Generate a random number between 0 and 10.\", \"type\": \"text\"}]}, {\"role\": \"tool\", \"content\": {\"toolCallId\": \"1\", \"toolName\": \"Weather\", \"output\": \"rainy\"}}]',deprecation:{replacement:\"gen_ai.input.messages\",status:\"transform\",transformation:\"gen_ai_request_messages_to_input_messages\"},aliases:[\"ai.input_messages\"],changelog:[{version:\"0.4.0\",prs:[221]},{version:\"0.1.0\",prs:[63,74,108,119,122]}]},\"gen_ai.request.model\":{brief:\"The model identifier being used for the request.\",type:\"string\",keys:[\"gen_ai.request.model\",\"ai.model.id\",\"ai.model_id\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"gpt-4-turbo-preview\",aliases:[\"ai.model_id\",\"ai.model.id\"],changelog:[{version:\"0.21.0\",prs:[583],description:\"Added ai.model.id as an alias\"},{version:\"0.1.0\",prs:[62,127]}]},\"gen_ai.request.presence_penalty\":{brief:\"Used to reduce repetitiveness of generated tokens. Similar to frequency_penalty, except that this penalty is applied equally to all tokens that have already appeared, regardless of their exact frequencies.\",type:\"double\",keys:[\"gen_ai.request.presence_penalty\",\"ai.presence_penalty\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:.5,aliases:[\"ai.presence_penalty\"],changelog:[{version:\"0.4.0\",prs:[228]},{version:\"0.1.0\",prs:[57]}]},\"gen_ai.request.reasoning.level\":{brief:\"The reasoning or thinking effort level requested for a GenAI model.\",type:\"string\",keys:[\"gen_ai.request.reasoning.level\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"high\",changelog:[{version:\"0.17.0\",prs:[502],description:\"Added gen_ai.request.reasoning.level attribute\"}]},\"gen_ai.request.schema\":{brief:\"The stringified JSON schema the model output must conform to.\",type:\"string\",keys:[\"gen_ai.request.schema\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:'{\"type\":\"object\",\"properties\":{\"city\":{\"type\":\"string\"}}}',examples:['{\"type\":\"object\",\"properties\":{\"city\":{\"type\":\"string\"}}}'],deprecation:{reason:\"This attribute is deprecated. The Sentry conventions have no replacement for the requested output schema.\"},changelog:[{version:\"0.21.0\",prs:[583],description:\"Added gen_ai.request.schema attribute\"}]},\"gen_ai.request.seed\":{brief:\"The seed, ideally models given the same seed and same other parameters will produce the exact same output.\",type:\"string\",keys:[\"gen_ai.request.seed\",\"ai.seed\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"1234567890\",aliases:[\"ai.seed\"],changelog:[{version:\"0.1.0\",prs:[57,127]}]},\"gen_ai.request.stop_sequences\":{brief:\"List of sequences that the model will use to stop generating further tokens.\",type:\"string[]\",keys:[\"gen_ai.request.stop_sequences\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:[\"forest\",\"lived\"],changelog:[{version:\"0.16.0\",prs:[482],description:\"Added gen_ai.request.stop_sequences attribute\"}]},\"gen_ai.request.temperature\":{brief:\"For an AI model call, the temperature parameter. Temperature essentially means how random the output will be.\",type:\"double\",keys:[\"gen_ai.request.temperature\",\"ai.temperature\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:.1,aliases:[\"ai.temperature\"],changelog:[{version:\"0.4.0\",prs:[228]},{version:\"0.1.0\",prs:[57]}]},\"gen_ai.request.top_k\":{brief:\"Limits the model to only consider the K most likely next tokens, where K is an integer (e.g., top_k=20 means only the 20 highest probability tokens are considered).\",type:\"integer\",keys:[\"gen_ai.request.top_k\",\"ai.top_k\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:35,aliases:[\"ai.top_k\"],changelog:[{version:\"0.4.0\",prs:[228]},{version:\"0.1.0\",prs:[57]}]},\"gen_ai.request.top_p\":{brief:\"Limits the model to only consider tokens whose cumulative probability mass adds up to p, where p is a float between 0 and 1 (e.g., top_p=0.7 means only tokens that sum up to 70% of the probability mass are considered).\",type:\"double\",keys:[\"gen_ai.request.top_p\",\"ai.top_p\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:.7,aliases:[\"ai.top_p\"],changelog:[{version:\"0.4.0\",prs:[228]},{version:\"0.1.0\",prs:[57]}]},\"gen_ai.response.finish_reason\":{brief:\"The reason why the model stopped generating (singular form).\",type:\"string\",keys:[\"gen_ai.response.finish_reasons\",\"ai.finish_reason\",\"gen_ai.response.finish_reason\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"COMPLETE\",deprecation:{replacement:\"gen_ai.response.finish_reasons\",status:\"normalize\"},aliases:[\"gen_ai.response.finish_reasons\"],changelog:[{version:\"0.19.0\",prs:[498],description:\"Added gen_ai.response.finish_reason attribute\"}]},\"gen_ai.response.finish_reasons\":{brief:\"The reason why the model stopped generating.\",type:\"string\",keys:[\"gen_ai.response.finish_reasons\",\"ai.finish_reason\",\"gen_ai.response.finish_reason\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"COMPLETE\",aliases:[\"ai.finish_reason\",\"gen_ai.response.finish_reason\"],changelog:[{version:\"0.1.0\",prs:[57,127]}]},\"gen_ai.response.id\":{brief:\"Unique identifier for the completion.\",type:\"string\",keys:[\"gen_ai.response.id\",\"ai.generation_id\",\"ai.response.id\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"gen_123abc\",aliases:[\"ai.generation_id\",\"ai.response.id\"],changelog:[{version:\"0.21.0\",prs:[583],description:\"Added ai.response.id as an alias\"},{version:\"0.1.0\",prs:[57,127]}]},\"gen_ai.response.model\":{brief:\"The vendor-specific ID of the model used.\",type:\"string\",keys:[\"gen_ai.response.model\",\"ai.response.model\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"gpt-4\",aliases:[\"ai.response.model\"],changelog:[{version:\"0.21.0\",prs:[583],description:\"Added ai.response.model as an alias\"},{version:\"0.1.0\",prs:[127]},{version:\"0.0.0\"}]},\"gen_ai.response.object\":{brief:\"The type of the object returned by the model.\",type:\"string\",keys:[\"gen_ai.response.object\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"chat.completion\",examples:[\"chat.completion\"],deprecation:{reason:\"This attribute is deprecated. The Sentry conventions have no replacement for the raw response object type.\"},changelog:[{version:\"0.21.0\",prs:[583],description:\"Added gen_ai.response.object attribute\"}]},\"gen_ai.response.streaming\":{brief:\"Whether or not the AI model call's response was streamed back asynchronously\",type:\"boolean\",keys:[\"gen_ai.response.streaming\",\"ai.streaming\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:!0,aliases:[\"ai.streaming\"],changelog:[{version:\"0.1.0\",prs:[76]}]},\"gen_ai.response.text\":{brief:\"The model's response text messages. It has to be a stringified version of an array of response text messages.\",type:\"string\",keys:[\"gen_ai.response.text\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:'[\"The weather in Paris is rainy and overcast, with temperatures around 57\\xB0F\", \"The weather in London is sunny and warm, with temperatures around 65\\xB0F\"]',deprecation:{replacement:\"gen_ai.output.messages\",status:\"transform\",transformation:\"gen_ai_response_to_output_messages\"},changelog:[{version:\"0.4.0\",prs:[221]},{version:\"0.1.0\",prs:[63,74]}]},\"gen_ai.response.time_to_first_chunk\":{brief:\"Time in seconds when the first response content chunk arrived in streaming responses.\",type:\"double\",keys:[\"gen_ai.response.time_to_first_chunk\",\"gen_ai.response.time_to_first_token\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:.6853435,aliases:[\"gen_ai.response.time_to_first_token\"],changelog:[{version:\"0.11.0\",prs:[418],description:\"Added gen_ai.response.time_to_first_chunk attribute\"}]},\"gen_ai.response.time_to_first_token\":{brief:\"Time in seconds when the first response content chunk arrived in streaming responses.\",type:\"double\",keys:[\"gen_ai.response.time_to_first_chunk\",\"gen_ai.response.time_to_first_token\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:.6853435,deprecation:{replacement:\"gen_ai.response.time_to_first_chunk\",status:\"backfill\"},aliases:[\"gen_ai.response.time_to_first_chunk\"],changelog:[{version:\"0.11.0\",prs:[418],description:\"Deprecate in favor of gen_ai.response.time_to_first_chunk\"},{version:\"0.4.0\",prs:[227]}]},\"gen_ai.response.tokens_per_second\":{brief:\"The total output tokens per seconds throughput\",type:\"double\",keys:[\"gen_ai.response.tokens_per_second\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:12345.67,changelog:[{version:\"0.4.0\",prs:[228]},{version:\"0.1.0\",prs:[66]}]},\"gen_ai.response.tool_calls\":{brief:\"The tool calls in the model's response. It has to be a stringified version of an array of objects.\",type:\"string\",keys:[\"gen_ai.response.tool_calls\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:'[{\"name\": \"get_weather\", \"arguments\": {\"location\": \"Paris\"}}]',deprecation:{replacement:\"gen_ai.output.messages\",status:\"transform\",transformation:\"gen_ai_response_to_output_messages\"},changelog:[{version:\"0.4.0\",prs:[221]},{version:\"0.1.0\",prs:[63,74]}]},\"gen_ai.system\":{brief:\"The provider of the model.\",type:\"string\",keys:[\"gen_ai.provider.name\",\"ai.model.provider\",\"gen_ai.system\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"openai\",deprecation:{replacement:\"gen_ai.provider.name\",status:\"normalize\"},aliases:[\"ai.model.provider\",\"gen_ai.provider.name\"],changelog:[{version:\"0.4.0\",prs:[253]},{version:\"0.1.0\",prs:[57,127]}]},\"gen_ai.system_instructions\":{brief:\"The system instructions passed to the model.\",type:\"string\",keys:[\"gen_ai.system_instructions\",\"ai.preamble\",\"gen_ai.system.message\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"You are a helpful assistant\",aliases:[\"ai.preamble\"],changelog:[{version:\"0.5.0\",prs:[264]},{version:\"0.4.0\",prs:[221]}]},\"gen_ai.system.message\":{brief:\"The system instructions passed to the model.\",type:\"string\",keys:[\"gen_ai.system_instructions\",\"ai.preamble\",\"gen_ai.system.message\"],applyScrubbing:{key:\"auto\"},isInOtel:!1,visibility:\"public\",example:\"You are a helpful assistant\",deprecation:{replacement:\"gen_ai.system_instructions\",status:\"backfill\"},changelog:[{version:\"0.4.0\",prs:[221]},{version:\"0.1.0\",prs:[62]}]},\"gen_ai.tool.call.arguments\":{brief:\"The arguments of the tool call. It has to be a stringified version of the arguments to the tool.\",type:\"string\",keys:[\"gen_ai.tool.call.arguments\",\"ai.toolCall.args\",\"gen_ai.tool.input\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:'{\"location\": \"Paris\"}',aliases:[\"gen_ai.tool.input\",\"ai.toolCall.args\"],changelog:[{version:\"0.5.0\",prs:[265]},{version:\"0.4.0\",prs:[221]}]},\"gen_ai.tool.call.result\":{brief:\"The result of the tool call. It has to be a stringified version of the result of the tool.\",type:\"string\",keys:[\"gen_ai.tool.call.result\",\"ai.toolCall.result\",\"anthropic.tool_result.content\",\"gen_ai.tool.message\",\"gen_ai.tool.output\",\"mcp.tool.result.content\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"rainy, 57\\xB0F\",aliases:[\"gen_ai.tool.output\",\"gen_ai.tool.message\",\"mcp.tool.result.content\",\"ai.toolCall.result\",\"anthropic.tool_result.content\"],changelog:[{version:\"0.5.0\",prs:[265]},{version:\"0.4.0\",prs:[221]}]},\"gen_ai.tool.definitions\":{brief:\"The list of source system tool definitions available to the GenAI agent or model.\",type:\"string\",keys:[\"gen_ai.tool.definitions\",\"ai.prompt.tools\",\"ai.tools\",\"gen_ai.request.available_tools\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:'[{\"type\": \"function\", \"name\": \"get_current_weather\", \"description\": \"Get the current weather in a given location\", \"parameters\": {\"type\": \"object\", \"properties\": {\"location\": {\"type\": \"string\", \"description\": \"The city and state, e.g. San Francisco, CA\"}, \"unit\": {\"type\": \"string\", \"enum\": [\"celsius\", \"fahrenheit\"]}}, \"required\": [\"location\", \"unit\"]}}]',aliases:[\"gen_ai.request.available_tools\"],changelog:[{version:\"0.22.0\",prs:[595],description:\"Added gen_ai.request.available_tools as an alias\"},{version:\"0.4.0\",prs:[221]}]},\"gen_ai.tool.description\":{brief:\"The description of the tool being used.\",type:\"string\",keys:[\"gen_ai.tool.description\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"Searches the web for current information about a topic\",changelog:[{version:\"0.1.0\",prs:[62,127]}]},\"gen_ai.tool.input\":{brief:\"The input of the tool being used. It has to be a stringified version of the input to the tool.\",type:\"string\",keys:[\"gen_ai.tool.call.arguments\",\"ai.toolCall.args\",\"gen_ai.tool.input\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:'{\"location\": \"Paris\"}',deprecation:{replacement:\"gen_ai.tool.call.arguments\",status:\"normalize\"},aliases:[\"gen_ai.tool.call.arguments\",\"ai.toolCall.args\"],changelog:[{version:\"0.5.0\",prs:[265]},{version:\"0.1.0\",prs:[63,74]}]},\"gen_ai.tool.message\":{brief:\"The response from a tool or function call passed to the model.\",type:\"string\",keys:[\"gen_ai.tool.call.result\",\"ai.toolCall.result\",\"anthropic.tool_result.content\",\"gen_ai.tool.message\",\"gen_ai.tool.output\",\"mcp.tool.result.content\"],applyScrubbing:{key:\"auto\"},isInOtel:!1,visibility:\"public\",example:\"rainy, 57\\xB0F\",deprecation:{replacement:\"gen_ai.tool.call.result\",status:\"normalize\"},aliases:[\"gen_ai.tool.call.result\",\"gen_ai.tool.output\",\"mcp.tool.result.content\",\"ai.toolCall.result\",\"anthropic.tool_result.content\"],changelog:[{version:\"0.5.0\",prs:[265]},{version:\"0.1.0\",prs:[62]}]},\"gen_ai.tool.name\":{brief:\"Name of the tool utilized by the agent.\",type:\"string\",keys:[\"gen_ai.tool.name\",\"ai.function_call\",\"mcp.tool.name\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"Flights\",aliases:[\"ai.function_call\",\"mcp.tool.name\"],changelog:[{version:\"0.1.0\",prs:[57,127]}]},\"gen_ai.tool.output\":{brief:\"The output of the tool being used. It has to be a stringified version of the output of the tool.\",type:\"string\",keys:[\"gen_ai.tool.call.result\",\"ai.toolCall.result\",\"anthropic.tool_result.content\",\"gen_ai.tool.message\",\"gen_ai.tool.output\",\"mcp.tool.result.content\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"rainy, 57\\xB0F\",deprecation:{replacement:\"gen_ai.tool.call.result\",status:\"normalize\"},aliases:[\"gen_ai.tool.call.result\",\"gen_ai.tool.message\",\"mcp.tool.result.content\",\"ai.toolCall.result\",\"anthropic.tool_result.content\"],changelog:[{version:\"0.5.0\",prs:[265]},{version:\"0.1.0\",prs:[63,74]}]},\"gen_ai.tool.type\":{brief:\"The type of tool being used.\",type:\"string\",keys:[\"gen_ai.tool.type\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"function\",deprecation:{reason:\"The gen_ai.tool.type attribute is deprecated and should no longer be set.\"},changelog:[{version:\"0.1.0\",prs:[62,127]}]},\"gen_ai.usage.cache_creation.input_tokens\":{brief:\"The number of tokens written to the cache when processing the AI input (prompt).\",type:\"integer\",keys:[\"gen_ai.usage.cache_creation.input_tokens\",\"gen_ai.usage.cache_creation_input_tokens\",\"gen_ai.usage.input_tokens.cache_write\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:100,aliases:[\"gen_ai.usage.input_tokens.cache_write\",\"gen_ai.usage.cache_creation_input_tokens\"],changelog:[{version:\"0.24.0\",prs:[582],description:\"Added gen_ai.usage.cache_creation_input_tokens as an alias\"},{version:\"0.11.0\",prs:[418],description:\"Added gen_ai.usage.cache_creation.input_tokens attribute\"}],additionalContext:[\"This attribute appears on both agent parent spans (aggregated totals) and LLM child spans (per-call values). When using sum() to count tokens, filter to gen_ai.operation.type:ai_client to avoid double-counting hierarchical spans.\"]},\"gen_ai.usage.cache_creation_input_tokens\":{brief:\"The number of tokens written to the cache when processing the AI input (prompt).\",type:\"integer\",keys:[\"gen_ai.usage.cache_creation.input_tokens\",\"gen_ai.usage.cache_creation_input_tokens\",\"gen_ai.usage.input_tokens.cache_write\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:100,examples:[100],deprecation:{replacement:\"gen_ai.usage.cache_creation.input_tokens\",reason:\"This attribute is being deprecated in favor of gen_ai.usage.cache_creation.input_tokens.\",status:\"backfill\"},aliases:[\"gen_ai.usage.cache_creation.input_tokens\",\"gen_ai.usage.input_tokens.cache_write\"],changelog:[{version:\"0.24.0\",prs:[582],description:\"Added gen_ai.usage.cache_creation_input_tokens attribute\"}]},\"gen_ai.usage.cache_read.input_tokens\":{brief:\"The number of cached tokens used to process the AI input (prompt).\",type:\"integer\",keys:[\"gen_ai.usage.cache_read.input_tokens\",\"gen_ai.usage.cache_read_input_tokens\",\"gen_ai.usage.input_tokens.cached\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:50,aliases:[\"gen_ai.usage.input_tokens.cached\",\"gen_ai.usage.cache_read_input_tokens\"],changelog:[{version:\"0.24.0\",prs:[582],description:\"Added gen_ai.usage.cache_read_input_tokens as an alias\"},{version:\"0.11.0\",prs:[418],description:\"Added gen_ai.usage.cache_read.input_tokens attribute\"}],additionalContext:[\"This attribute appears on both agent parent spans (aggregated totals) and LLM child spans (per-call values). When using sum() to count tokens, filter to gen_ai.operation.type:ai_client to avoid double-counting hierarchical spans.\",\"This is a subset of gen_ai.usage.input_tokens, not an independent count. Do not sum this with gen_ai.usage.input_tokens \\u2014 it is already included.\"]},\"gen_ai.usage.cache_read_input_tokens\":{brief:\"The number of cached tokens used to process the AI input (prompt).\",type:\"integer\",keys:[\"gen_ai.usage.cache_read.input_tokens\",\"gen_ai.usage.cache_read_input_tokens\",\"gen_ai.usage.input_tokens.cached\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:50,examples:[50],deprecation:{replacement:\"gen_ai.usage.cache_read.input_tokens\",reason:\"This attribute is being deprecated in favor of gen_ai.usage.cache_read.input_tokens.\",status:\"backfill\"},aliases:[\"gen_ai.usage.cache_read.input_tokens\",\"gen_ai.usage.input_tokens.cached\"],changelog:[{version:\"0.24.0\",prs:[582],description:\"Added gen_ai.usage.cache_read_input_tokens attribute\"}]},\"gen_ai.usage.completion_tokens\":{brief:\"The number of tokens used in the GenAI response (completion).\",type:\"integer\",keys:[\"gen_ai.usage.output_tokens\",\"ai.completion_tokens.used\",\"gen_ai.usage.completion_tokens\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:10,deprecation:{replacement:\"gen_ai.usage.output_tokens\",status:\"backfill\"},aliases:[\"ai.completion_tokens.used\",\"gen_ai.usage.output_tokens\"],changelog:[{version:\"0.9.0\",prs:[397],description:\"Add additional_context\"},{version:\"0.4.0\",prs:[228]},{version:\"0.1.0\",prs:[61]},{version:\"0.0.0\"}],additionalContext:[\"This attribute appears on both agent parent spans (aggregated totals) and LLM child spans (per-call values). When using sum() to count tokens, filter to gen_ai.operation.type:ai_client to avoid double-counting hierarchical spans.\"]},\"gen_ai.usage.input_tokens\":{brief:\"The number of tokens used to process the AI input (prompt) including cached input tokens.\",type:\"integer\",keys:[\"gen_ai.usage.input_tokens\",\"ai.prompt_tokens.used\",\"gen_ai.usage.prompt_tokens\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:10,aliases:[\"ai.prompt_tokens.used\",\"gen_ai.usage.prompt_tokens\"],changelog:[{version:\"0.11.0\",prs:[418],description:\"Update additional_context to reference gen_ai.usage.cache_read.input_tokens\"},{version:\"0.9.0\",prs:[397],description:\"Add additional_context\"},{version:\"0.5.0\",prs:[261]},{version:\"0.4.0\",prs:[228]},{version:\"0.1.0\",prs:[112]},{version:\"0.0.0\"}],additionalContext:[\"This attribute appears on both agent parent spans (aggregated totals) and LLM child spans (per-call values). When using sum() to count tokens, filter to gen_ai.operation.type:ai_client to avoid double-counting hierarchical spans.\",\"This count includes cached input tokens. gen_ai.usage.cache_read.input_tokens is a subset of this value, not an independent count \\u2014 do not sum them together.\"]},\"gen_ai.usage.input_tokens.cached\":{brief:\"The number of cached tokens used to process the AI input (prompt).\",type:\"integer\",keys:[\"gen_ai.usage.cache_read.input_tokens\",\"gen_ai.usage.cache_read_input_tokens\",\"gen_ai.usage.input_tokens.cached\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:50,deprecation:{replacement:\"gen_ai.usage.cache_read.input_tokens\",status:\"backfill\"},aliases:[\"gen_ai.usage.cache_read.input_tokens\",\"gen_ai.usage.cache_read_input_tokens\"],changelog:[{version:\"0.24.0\",prs:[582],description:\"Added gen_ai.usage.cache_read_input_tokens as an alias\"},{version:\"0.11.0\",prs:[418],description:\"Deprecate in favor of gen_ai.usage.cache_read.input_tokens\"},{version:\"0.9.0\",prs:[397],description:\"Add additional_context\"},{version:\"0.4.0\",prs:[228]},{version:\"0.1.0\",prs:[62,112]}],additionalContext:[\"This attribute appears on both agent parent spans (aggregated totals) and LLM child spans (per-call values). When using sum() to count tokens, filter to gen_ai.operation.type:ai_client to avoid double-counting hierarchical spans.\",\"This is a subset of gen_ai.usage.input_tokens, not an independent count. Do not sum this with gen_ai.usage.input_tokens \\u2014 it is already included.\"]},\"gen_ai.usage.input_tokens.cache_write\":{brief:\"The number of tokens written to the cache when processing the AI input (prompt).\",type:\"integer\",keys:[\"gen_ai.usage.cache_creation.input_tokens\",\"gen_ai.usage.cache_creation_input_tokens\",\"gen_ai.usage.input_tokens.cache_write\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:100,deprecation:{replacement:\"gen_ai.usage.cache_creation.input_tokens\",status:\"backfill\"},aliases:[\"gen_ai.usage.cache_creation.input_tokens\",\"gen_ai.usage.cache_creation_input_tokens\"],changelog:[{version:\"0.24.0\",prs:[582],description:\"Added gen_ai.usage.cache_creation_input_tokens as an alias\"},{version:\"0.11.0\",prs:[418],description:\"Deprecate in favor of gen_ai.usage.cache_creation.input_tokens\"},{version:\"0.9.0\",prs:[397],description:\"Add additional_context\"},{version:\"0.4.0\",prs:[217,228]}],additionalContext:[\"This attribute appears on both agent parent spans (aggregated totals) and LLM child spans (per-call values). When using sum() to count tokens, filter to gen_ai.operation.type:ai_client to avoid double-counting hierarchical spans.\"]},\"gen_ai.usage.output_tokens\":{brief:\"The number of tokens used for creating the AI output (including reasoning tokens).\",type:\"integer\",keys:[\"gen_ai.usage.output_tokens\",\"ai.completion_tokens.used\",\"gen_ai.usage.completion_tokens\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:10,aliases:[\"ai.completion_tokens.used\",\"gen_ai.usage.completion_tokens\"],changelog:[{version:\"0.11.0\",prs:[418],description:\"Update additional_context to reference gen_ai.usage.reasoning.output_tokens\"},{version:\"0.9.0\",prs:[397],description:\"Add additional_context\"},{version:\"0.5.0\",prs:[261]},{version:\"0.4.0\",prs:[228]},{version:\"0.1.0\",prs:[112]},{version:\"0.0.0\"}],additionalContext:[\"This attribute appears on both agent parent spans (aggregated totals) and LLM child spans (per-call values). When using sum() to count tokens, filter to gen_ai.operation.type:ai_client to avoid double-counting hierarchical spans.\",\"This count includes reasoning tokens. gen_ai.usage.reasoning.output_tokens is a subset of this value, not an independent count \\u2014 do not sum them together.\"]},\"gen_ai.usage.output_tokens.reasoning\":{brief:\"The number of tokens used for reasoning to create the AI output.\",type:\"integer\",keys:[\"gen_ai.usage.reasoning.output_tokens\",\"gen_ai.usage.output_tokens.reasoning\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:75,deprecation:{replacement:\"gen_ai.usage.reasoning.output_tokens\",status:\"backfill\"},aliases:[\"gen_ai.usage.reasoning.output_tokens\"],changelog:[{version:\"0.11.0\",prs:[418],description:\"Deprecate in favor of gen_ai.usage.reasoning.output_tokens\"},{version:\"0.9.0\",prs:[397],description:\"Add additional_context\"},{version:\"0.4.0\",prs:[228]},{version:\"0.1.0\",prs:[62,112]}],additionalContext:[\"This attribute appears on both agent parent spans (aggregated totals) and LLM child spans (per-call values). When using sum() to count tokens, filter to gen_ai.operation.type:ai_client to avoid double-counting hierarchical spans.\",\"This is a subset of gen_ai.usage.output_tokens, not an independent count. Do not sum this with gen_ai.usage.output_tokens \\u2014 it is already included.\"]},\"gen_ai.usage.prompt_tokens\":{brief:\"The number of tokens used in the GenAI input (prompt).\",type:\"integer\",keys:[\"gen_ai.usage.input_tokens\",\"ai.prompt_tokens.used\",\"gen_ai.usage.prompt_tokens\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:20,deprecation:{replacement:\"gen_ai.usage.input_tokens\",status:\"backfill\"},aliases:[\"ai.prompt_tokens.used\",\"gen_ai.usage.input_tokens\"],changelog:[{version:\"0.9.0\",prs:[397],description:\"Add additional_context\"},{version:\"0.4.0\",prs:[228]},{version:\"0.1.0\",prs:[61]},{version:\"0.0.0\"}],additionalContext:[\"This attribute appears on both agent parent spans (aggregated totals) and LLM child spans (per-call values). When using sum() to count tokens, filter to gen_ai.operation.type:ai_client to avoid double-counting hierarchical spans.\"]},\"gen_ai.usage.reasoning.output_tokens\":{brief:\"The number of tokens used for reasoning to create the AI output.\",type:\"integer\",keys:[\"gen_ai.usage.reasoning.output_tokens\",\"gen_ai.usage.output_tokens.reasoning\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:75,aliases:[\"gen_ai.usage.output_tokens.reasoning\"],changelog:[{version:\"0.11.0\",prs:[418],description:\"Added gen_ai.usage.reasoning.output_tokens attribute\"}],additionalContext:[\"This attribute appears on both agent parent spans (aggregated totals) and LLM child spans (per-call values). When using sum() to count tokens, filter to gen_ai.operation.type:ai_client to avoid double-counting hierarchical spans.\",\"This is a subset of gen_ai.usage.output_tokens, not an independent count. Do not sum this with gen_ai.usage.output_tokens \\u2014 it is already included.\"]},\"gen_ai.usage.total_tokens\":{brief:\"The total number of tokens used to process the prompt. (input tokens plus output todkens)\",type:\"integer\",keys:[\"gen_ai.usage.total_tokens\",\"ai.total_tokens.used\",\"ai.usage.tokens\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:20,aliases:[\"ai.total_tokens.used\",\"ai.usage.tokens\"],changelog:[{version:\"0.21.0\",prs:[583],description:\"Added ai.usage.tokens as an alias\"},{version:\"0.9.0\",prs:[397],description:\"Add additional_context\"},{version:\"0.4.0\",prs:[228]},{version:\"0.1.0\",prs:[57]}],additionalContext:[\"This attribute appears on both agent parent spans (aggregated totals) and LLM child spans (per-call values). When using sum() to count tokens, filter to gen_ai.operation.type:ai_client to avoid double-counting hierarchical spans.\",\"This is the sum of gen_ai.usage.input_tokens and gen_ai.usage.output_tokens. Do not sum this with either of them \\u2014 they are already included.\"]},\"graphql.document\":{brief:\"The GraphQL document being executed.\",type:\"string\",keys:[\"graphql.document\",\"graphql.source\"],applyScrubbing:{key:\"auto\",reason:\"The document may contain sensitive information in arguments or variables. Instrumentation should redact sensitive information when possible.\"},isInOtel:!0,visibility:\"public\",example:\"query findBookById { bookById(id: ?) { name } }\",aliases:[\"graphql.source\"],changelog:[{version:\"0.21.0\",prs:[584],description:\"Added graphql.source as an alias\"},{version:\"0.7.0\",description:\"Adds the `graphql.document` attribute to track the GraphQL document being executed.\"}]},\"graphql.operation.name\":{brief:\"The name of the operation being executed.\",type:\"string\",keys:[\"graphql.operation.name\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"findBookById\",changelog:[{version:\"0.1.0\",prs:[127]},{version:\"0.0.0\"}]},\"graphql.operation.type\":{brief:\"The type of the operation being executed.\",type:\"string\",keys:[\"graphql.operation.type\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"query\",changelog:[{version:\"0.1.0\",prs:[127]},{version:\"0.0.0\"}]},\"graphql.processing.type\":{brief:\"The type of processing represented by this span.\",type:\"string\",keys:[\"graphql.processing.type\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"parse\",examples:[\"parse\",\"validate\",\"execute\",\"resolve\"],changelog:[{version:\"0.21.0\",prs:[572],description:\"Added graphql.processing.type attribute\"}],additionalContext:[\"Well-known values are request, parse, validate, variable_coercion, plan, execute, subscription_event, step_execute, resolve, dataloader_dispatch, dataloader_batch and _OTHER. Use one of these if it applies, otherwise a custom value.\",\"Not to be confused with graphql.operation.type, which holds the GraphQL operation type (query, mutation, subscription) and only applies to spans that run an operation.\"]},\"graphql.source\":{brief:\"The GraphQL document being executed.\",type:\"string\",keys:[\"graphql.document\",\"graphql.source\"],applyScrubbing:{key:\"auto\"},isInOtel:!1,visibility:\"public\",example:\"query findBookById { bookById(id: ?) { name } }\",examples:[\"query findBookById { bookById(id: ?) { name } }\"],deprecation:{replacement:\"graphql.document\",reason:\"This attribute is being deprecated in favor of graphql.document, which is the OpenTelemetry name for the same value.\",status:\"backfill\"},aliases:[\"graphql.document\"],changelog:[{version:\"0.21.0\",prs:[584],description:\"Added graphql.source attribute\"}]},\"grpc.error.bad_request.field_violations\":{brief:\"The individual field violations from a google.rpc.BadRequest error detail. Each entry is a JSON-encoded object with field, description, reason, and (optional) localized_message keys, mirroring google.rpc.BadRequest.FieldViolation.\",type:\"string[]\",keys:[\"grpc.error.bad_request.field_violations\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:['{\"field\":\"email\",\"description\":\"must be a valid email address\",\"reason\":\"FIELD_INVALID\",\"localized_message\":{\"locale\":\"en-US\",\"message\":\"Must be a valid email address\"}}'],changelog:[{version:\"0.17.0\",prs:[460],description:\"Added grpc.error.bad_request.field_violations attribute\"}]},\"grpc.error.debug_info.detail\":{brief:\"Additional debugging information, such as a server-side stack trace, from a google.rpc.DebugInfo error detail. SDKs should only send this attribute when sendDefaultPii is enabled or dataCollection is configured accordingly.\",type:\"string\",keys:[\"grpc.error.debug_info.detail\"],applyScrubbing:{key:\"auto\"},isInOtel:!1,visibility:\"public\",example:\"at com.example.Service.method(Service.java:42)\",changelog:[{version:\"0.17.0\",prs:[460],description:\"Added grpc.error.debug_info.detail attribute\"}]},\"grpc.error.debug_info.stack_entries\":{brief:\"The server-side stack trace entries from a google.rpc.DebugInfo error detail. SDKs should only send this attribute when sendDefaultPii is enabled or dataCollection is configured accordingly.\",type:\"string[]\",keys:[\"grpc.error.debug_info.stack_entries\"],applyScrubbing:{key:\"auto\"},isInOtel:!1,visibility:\"public\",example:[\"com.example.Service.method(Service.java:42)\",\"com.example.Server.handle(Server.java:100)\"],changelog:[{version:\"0.17.0\",prs:[460],description:\"Added grpc.error.debug_info.stack_entries attribute\"}]},\"grpc.error.error_info.domain\":{brief:\"The logical grouping to which the gRPC error reason belongs, from the google.rpc.ErrorInfo error detail.\",type:\"string\",keys:[\"grpc.error.error_info.domain\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"example.sentry.io\",changelog:[{version:\"0.17.0\",prs:[460],description:\"Added grpc.error.error_info.domain attribute\"}]},\"grpc.error.error_info.metadata.<key>\":{brief:\"Additional structured metadata attached to a google.rpc.ErrorInfo error detail, with <key> being the metadata key name. SDKs should only send this attribute when sendDefaultPii is enabled or dataCollection is configured accordingly.\",type:\"string\",keys:[\"grpc.error.error_info.metadata.<key>\"],applyScrubbing:{key:\"auto\"},isInOtel:!1,visibility:\"public\",hasDynamicSuffix:!0,example:\"grpc.error.error_info.metadata.user_id='123'\",changelog:[{version:\"0.17.0\",prs:[460],description:\"Added grpc.error.error_info.metadata.<key> attribute\"}]},\"grpc.error.error_info.reason\":{brief:\"The reason for the gRPC error, as defined by the service that generated it, from the google.rpc.ErrorInfo error detail.\",type:\"string\",keys:[\"grpc.error.error_info.reason\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"FIELD_INVALID\",changelog:[{version:\"0.17.0\",prs:[460],description:\"Added grpc.error.error_info.reason attribute\"}]},\"grpc.error.precondition_failure.violations\":{brief:\"The individual precondition violations from a google.rpc.PreconditionFailure error detail. Each entry is a JSON-encoded object with type, subject, and description keys. SDKs should only send this attribute when sendDefaultPii is enabled or dataCollection is configured accordingly, since violation subjects may identify specific resources or users.\",type:\"string[]\",keys:[\"grpc.error.precondition_failure.violations\"],applyScrubbing:{key:\"auto\"},isInOtel:!1,visibility:\"public\",example:['{\"type\":\"TOS\",\"subject\":\"example.com/user/123\",\"description\":\"User must accept the terms of service\"}'],changelog:[{version:\"0.17.0\",prs:[460],description:\"Added grpc.error.precondition_failure.violations attribute\"}]},\"grpc.error.quota_failure.violations\":{brief:\"The individual quota violations from a google.rpc.QuotaFailure error detail. Each entry is a JSON-encoded object with subject, description, api_service, quota_metric, quota_id, quota_dimensions, quota_value, and (optional) future_quota_value keys, mirroring google.rpc.QuotaFailure.Violation. SDKs should only send this attribute when sendDefaultPii is enabled or dataCollection is configured accordingly, since violation subjects may identify specific resources or users.\",type:\"string[]\",keys:[\"grpc.error.quota_failure.violations\"],applyScrubbing:{key:\"auto\"},isInOtel:!1,visibility:\"public\",example:['{\"subject\":\"clientip:127.0.0.1\",\"description\":\"Limit checks failed.\",\"api_service\":\"example.googleapis.com\",\"quota_metric\":\"example.googleapis.com/read_requests\",\"quota_id\":\"ReadRequestsPerMinutePerProject\",\"quota_dimensions\":{\"region\":\"us-central1\"},\"quota_value\":1000}'],changelog:[{version:\"0.17.0\",prs:[460],description:\"Added grpc.error.quota_failure.violations attribute\"}]},\"grpc.error.resource_info.description\":{brief:\"A description of the error that occurred while accessing the resource, from a google.rpc.ResourceInfo error detail.\",type:\"string\",keys:[\"grpc.error.resource_info.description\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"Instance is not ready for the request.\",changelog:[{version:\"0.17.0\",prs:[460],description:\"Added grpc.error.resource_info.description attribute\"}]},\"grpc.error.resource_info.owner\":{brief:\"The owner of the resource being accessed (e.g. project or account owning it), from a google.rpc.ResourceInfo error detail. SDKs should only send this attribute when sendDefaultPii is enabled or dataCollection is configured accordingly.\",type:\"string\",keys:[\"grpc.error.resource_info.owner\"],applyScrubbing:{key:\"auto\"},isInOtel:!1,visibility:\"public\",example:\"user@example.com\",changelog:[{version:\"0.17.0\",prs:[460],description:\"Added grpc.error.resource_info.owner attribute\"}]},\"grpc.error.resource_info.resource_name\":{brief:\"The name of the resource being accessed, from a google.rpc.ResourceInfo error detail. SDKs should only send this attribute when sendDefaultPii is enabled or dataCollection is configured accordingly.\",type:\"string\",keys:[\"grpc.error.resource_info.resource_name\"],applyScrubbing:{key:\"auto\"},isInOtel:!1,visibility:\"public\",example:\"projects/example/instances/example-instance\",changelog:[{version:\"0.17.0\",prs:[460],description:\"Added grpc.error.resource_info.resource_name attribute\"}]},\"grpc.error.resource_info.resource_type\":{brief:\"The type of resource being accessed, from a google.rpc.ResourceInfo error detail.\",type:\"string\",keys:[\"grpc.error.resource_info.resource_type\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"database\",changelog:[{version:\"0.17.0\",prs:[460],description:\"Added grpc.error.resource_info.resource_type attribute\"}]},\"grpc.error.retry_info.retry_delay_ms\":{brief:\"How long the client should wait before retrying the gRPC call, in milliseconds, from the google.rpc.RetryInfo error detail.\",type:\"integer\",keys:[\"grpc.error.retry_info.retry_delay_ms\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:5e3,changelog:[{version:\"0.17.0\",prs:[460],description:\"Added grpc.error.retry_info.retry_delay_ms attribute\"}]},hardwareConcurrency:{brief:\"The number of logical CPU cores available.\",type:\"string\",keys:[\"device.processor_count\",\"hardwareConcurrency\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"14\",deprecation:{replacement:\"device.processor_count\",reason:\"Old namespace-less attribute, to be replaced with device.processor_count for span-first future\",status:\"backfill\"},aliases:[\"device.processor_count\"],changelog:[{version:\"0.5.0\",prs:[281,300],description:\"Added and deprecated attribute to document JS SDK's current behaviour\"}]},\"http.client_ip\":{brief:\"Client address - domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name.\",type:\"string\",keys:[\"client.address\",\"http.client_ip\"],applyScrubbing:{key:\"auto\"},isInOtel:!0,visibility:\"public\",example:\"example.com\",deprecation:{replacement:\"client.address\",status:\"backfill\"},aliases:[\"client.address\"],changelog:[{version:\"0.1.0\",prs:[61,106,127]},{version:\"0.0.0\"}]},\"http.decoded_response_content_length\":{brief:\"The decoded body size of the response (in bytes).\",type:\"integer\",keys:[\"http.response.body.decoded_size\",\"http.decoded_response_content_length\",\"http.response_content_length_uncompressed\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:456,deprecation:{replacement:\"http.response.body.decoded_size\",status:\"backfill\"},aliases:[\"http.response.body.decoded_size\",\"http.response_content_length_uncompressed\"],changelog:[{version:\"0.21.0\",prs:[574],description:\"Deprecated in favor of http.response.body.decoded_size\"},{version:\"0.4.0\",prs:[228]},{version:\"0.0.0\"}],searchAlias:{name:\"http.decoded_response_content_length\",type:\"byte\"}},\"http.flavor\":{brief:\"The actual version of the protocol used for network communication.\",type:\"string\",keys:[\"network.protocol.version\",\"http.flavor\",\"messaging.protocol_version\",\"net.protocol.version\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"1.1\",deprecation:{replacement:\"network.protocol.version\",status:\"backfill\"},aliases:[\"network.protocol.version\",\"net.protocol.version\",\"messaging.protocol_version\"],changelog:[{version:\"0.21.0\",prs:[581],description:\"Added messaging.protocol_version as an alias\"},{version:\"0.1.0\",prs:[61,108,127]},{version:\"0.0.0\"}]},\"http.fragment\":{brief:\"The fragments present in the URI. Note that this contains the leading # character, while the `url.fragment` attribute does not.\",type:\"string\",keys:[\"http.fragment\"],applyScrubbing:{key:\"auto\"},isInOtel:!1,visibility:\"public\",example:\"#details\",changelog:[{version:\"0.0.0\"}]},\"http.host\":{brief:\"The domain name.\",type:\"string\",keys:[\"http.host\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"example.com\",deprecation:{replacement:\"server.address\",reason:\"Deprecated, use one of `server.address` or `client.address`, depending on the usage\"},aliases:[\"address\",\"server.address\",\"client.address\",\"http.server_name\",\"net.host.name\",\"server_name\",\"net.peer.name\"],changelog:[{version:\"0.24.0\",prs:[647],description:\"Added server_name as an alias\"},{version:\"0.21.0\",prs:[588,602],description:\"Added net.peer.name as an alias\"},{version:\"0.19.0\",prs:[534],description:\"Added address as an alias\"},{version:\"0.1.0\",prs:[61,108,127]},{version:\"0.0.0\"}]},\"http.method\":{brief:\"The HTTP method used.\",type:\"string\",keys:[\"http.request.method\",\"http.method\",\"http.request_method\",\"method\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"GET\",deprecation:{replacement:\"http.request.method\",status:\"backfill\"},aliases:[\"http.request.method\",\"http.request_method\",\"method\"],changelog:[{version:\"0.1.0\",prs:[61,127]},{version:\"0.0.0\"}]},\"http.query\":{brief:\"The query string present in the URL. Note that this contains the leading ? character, while the `url.query` attribute does not.\",type:\"string\",keys:[\"http.query\"],applyScrubbing:{key:\"auto\",reason:\"Query string values can contain sensitive information. Clients should attempt to scrub parameters that might contain sensitive information.\"},isInOtel:!1,visibility:\"public\",example:\"?foo=bar&bar=baz\",changelog:[{version:\"0.0.0\"}]},\"http.request.body.data\":{brief:\"HTTP request body data. Can be given as string or structural data of any format.\",type:\"string\",keys:[\"http.request.body.data\"],applyScrubbing:{key:\"auto\"},isInOtel:!1,visibility:\"public\",example:'[{\"role\": \"user\", \"message\": \"hello\"}]',changelog:[{version:\"0.6.0\",prs:[336],description:\"Added http.request.body.data attribute\"}]},\"http.request.body.decoded_size\":{brief:\"The decoded body size of the request (in bytes).\",type:\"integer\",keys:[\"http.request.body.decoded_size\",\"http.request_content_length_uncompressed\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:456,aliases:[\"http.request_content_length_uncompressed\"],changelog:[{version:\"0.21.0\",prs:[574],description:\"Added http.request.body.decoded_size attribute\"}],additionalContext:[\"This is the size after content decoding. Set it only when the decoded size is actually known, for example by measuring a decompressed request stream.\",\"Do not derive this from the `content-length` header, which always carries the encoded size. Use `http.request.body.size` for that.\"]},\"http.request.body.size\":{brief:\"The encoded body size of the request (in bytes).\",type:\"integer\",keys:[\"http.request.body.size\",\"http.request_content_length\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:123,aliases:[\"http.request_content_length\"],changelog:[{version:\"0.21.0\",prs:[574],description:\"Added http.request.body.size attribute\"}],additionalContext:[\"This is the on-the-wire (encoded) size. The `content-length` header always carries the encoded size, so set this attribute whenever `content-length` is known, regardless of whether `content-encoding` is present.\"]},\"http.request.connection_end\":{brief:\"The UNIX timestamp representing the time immediately after the browser finishes establishing the connection to the server to retrieve the resource. The timestamp value includes the time interval to establish the transport connection, as well as other time intervals such as TLS handshake and SOCKS authentication.\",type:\"double\",keys:[\"http.request.connection_end\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:173282955515e-2,changelog:[{version:\"0.4.0\",prs:[228]},{version:\"0.1.0\",prs:[134]},{version:\"0.0.0\"}]},\"http.request.connect_start\":{brief:\"The UNIX timestamp representing the time immediately before the user agent starts establishing the connection to the server to retrieve the resource.\",type:\"double\",keys:[\"http.request.connect_start\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:1732829555111e-3,changelog:[{version:\"0.4.0\",prs:[228]},{version:\"0.1.0\",prs:[134]},{version:\"0.0.0\"}]},\"http.request_content_length\":{brief:\"The encoded body size of the request (in bytes).\",type:\"integer\",keys:[\"http.request.body.size\",\"http.request_content_length\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:123,deprecation:{replacement:\"http.request.body.size\",status:\"backfill\"},aliases:[\"http.request.body.size\"],changelog:[{version:\"0.21.0\",prs:[574],description:\"Added http.request_content_length attribute, deprecated in favor of http.request.body.size\"}]},\"http.request_content_length_uncompressed\":{brief:\"The decoded body size of the request (in bytes).\",type:\"integer\",keys:[\"http.request.body.decoded_size\",\"http.request_content_length_uncompressed\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:456,deprecation:{replacement:\"http.request.body.decoded_size\",status:\"backfill\"},aliases:[\"http.request.body.decoded_size\"],changelog:[{version:\"0.21.0\",prs:[574],description:\"Added http.request_content_length_uncompressed attribute, deprecated in favor of http.request.body.decoded_size\"}]},\"http.request.domain_lookup_end\":{brief:\"The UNIX timestamp representing the time immediately after the browser finishes the domain-name lookup for the resource.\",type:\"double\",keys:[\"http.request.domain_lookup_end\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:1732829555201e-3,changelog:[{version:\"0.4.0\",prs:[228]},{version:\"0.1.0\",prs:[134]},{version:\"0.0.0\"}]},\"http.request.domain_lookup_start\":{brief:\"The UNIX timestamp representing the time immediately before the browser starts the domain name lookup for the resource.\",type:\"double\",keys:[\"http.request.domain_lookup_start\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:1732829555322e-3,changelog:[{version:\"0.4.0\",prs:[228]},{version:\"0.1.0\",prs:[134]},{version:\"0.0.0\"}]},\"http.request.fetch_start\":{brief:\"The UNIX timestamp representing the time immediately before the browser starts to fetch the resource.\",type:\"double\",keys:[\"http.request.fetch_start\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:1732829555389e-3,changelog:[{version:\"0.4.0\",prs:[228]},{version:\"0.1.0\",prs:[134]},{version:\"0.0.0\"}]},\"http.request.header.<key>\":{brief:\"HTTP request headers, <key> being the lower-cased, but otherwise unchanged HTTP Header name, the value being the header values.\",type:\"string[]\",keys:[\"http.request.header.<key>\"],applyScrubbing:{key:\"auto\"},isInOtel:!0,visibility:\"public\",hasDynamicSuffix:!0,example:\"http.request.header.custom-header=['foo', 'bar']\",examples:[\"http.request.header.custom-header=['foo', 'bar']\",\"http.request.header.content-length=['123']\"],changelog:[{version:\"0.4.0\",prs:[201,204]},{version:\"0.1.0\",prs:[103]}]},\"http.request.method\":{brief:\"The HTTP method used.\",type:\"string\",keys:[\"http.request.method\",\"http.method\",\"http.request_method\",\"method\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"GET\",aliases:[\"method\",\"http.method\",\"http.request_method\"],changelog:[{version:\"0.1.0\",prs:[127]},{version:\"0.0.0\"}]},\"http.request_method\":{brief:\"The HTTP method used.\",type:\"string\",keys:[\"http.request.method\",\"http.method\",\"http.request_method\",\"method\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"GET\",deprecation:{replacement:\"http.request.method\",status:\"backfill\"},aliases:[\"method\",\"http.method\",\"http.request.method\"],changelog:[{version:\"0.6.0\",prs:[343],description:\"Added http.request_method attribute\"}]},\"http.request.redirect_end\":{brief:\"The UNIX timestamp representing the timestamp immediately after receiving the last byte of the response of the last redirect\",type:\"double\",keys:[\"http.request.redirect_end\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:1732829558502e-3,changelog:[{version:\"0.4.0\",prs:[228]},{version:\"0.1.0\",prs:[130,134]}]},\"http.request.redirect_start\":{brief:\"The UNIX timestamp representing the start time of the fetch which that initiates the redirect.\",type:\"double\",keys:[\"http.request.redirect_start\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:1732829555495e-3,changelog:[{version:\"0.4.0\",prs:[228]},{version:\"0.1.0\",prs:[134]},{version:\"0.0.0\"}]},\"http.request.request_start\":{brief:\"The UNIX timestamp representing the time immediately before the browser starts requesting the resource from the server, cache, or local resource. If the transport connection fails and the browser retires the request, the value returned will be the start of the retry request.\",type:\"double\",keys:[\"http.request.request_start\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:173282955551e-2,changelog:[{version:\"0.4.0\",prs:[228]},{version:\"0.1.0\",prs:[134]},{version:\"0.0.0\"}]},\"http.request.resend_count\":{brief:\"The ordinal number of request resending attempt (for any reason, including redirects).\",type:\"integer\",keys:[\"http.request.resend_count\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:2,changelog:[{version:\"0.4.0\",prs:[228]},{version:\"0.0.0\"}]},\"http.request.response_end\":{brief:\"The UNIX timestamp representing the time immediately after the browser receives the last byte of the resource or immediately before the transport connection is closed, whichever comes first.\",type:\"double\",keys:[\"http.request.response_end\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:173282955589e-2,changelog:[{version:\"0.4.0\",prs:[228]},{version:\"0.1.0\",prs:[134]},{version:\"0.0.0\"}]},\"http.request.response_start\":{brief:\"The UNIX timestamp representing the time immediately before the browser starts requesting the resource from the server, cache, or local resource. If the transport connection fails and the browser retires the request, the value returned will be the start of the retry request.\",type:\"double\",keys:[\"http.request.response_start\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:17328295557e-1,changelog:[{version:\"0.4.0\",prs:[228]},{version:\"0.1.0\",prs:[134]},{version:\"0.0.0\"}]},\"http.request.same_origin\":{brief:\"Indicates that a URL has the same origin as the current page's origin in the browser.\",type:\"boolean\",keys:[\"http.request.same_origin\",\"url.same_origin\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:!0,aliases:[\"url.same_origin\"],changelog:[{version:\"0.16.0\",prs:[456],description:\"Added http.request.same_origin attribute\"}]},\"http.request.secure_connection_start\":{brief:\"The UNIX timestamp representing the time immediately before the browser starts the handshake process to secure the current connection. If a secure connection is not used, the property returns zero.\",type:\"double\",keys:[\"http.request.secure_connection_start\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:173282955573e-2,changelog:[{version:\"0.4.0\",prs:[228]},{version:\"0.1.0\",prs:[134]},{version:\"0.0.0\"}]},\"http.request.time_to_first_byte\":{brief:\"The time in seconds from the browser's timeorigin to when the first byte of the request's response was received. See https://web.dev/articles/ttfb#measure-resource-requests\",type:\"double\",keys:[\"http.request.time_to_first_byte\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:1.032,changelog:[{version:\"0.4.0\",prs:[228]},{version:\"0.1.0\",prs:[131]}]},\"http.request.worker_start\":{brief:\"The UNIX timestamp representing the timestamp immediately before dispatching the FetchEvent if a Service Worker thread is already running, or immediately before starting the Service Worker thread if it is not already running.\",type:\"double\",keys:[\"http.request.worker_start\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:173282955368e-2,changelog:[{version:\"0.4.0\",prs:[228]},{version:\"0.1.0\",prs:[130,134]}]},\"http.response.body.decoded_size\":{brief:\"The decoded body size of the response (in bytes).\",type:\"integer\",keys:[\"http.response.body.decoded_size\",\"http.decoded_response_content_length\",\"http.response_content_length_uncompressed\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:456,aliases:[\"http.decoded_response_content_length\",\"http.response_content_length_uncompressed\"],changelog:[{version:\"0.21.0\",prs:[574],description:\"Added http.response.body.decoded_size attribute\"}],additionalContext:[\"This is the size after content decoding. Set it only when the decoded size is actually known, for example from the browser Resource Timing `decodedBodySize` or by measuring a decompressed response stream.\",\"Do not derive this from the `content-length` header, which always carries the encoded size. Use `http.response.body.size` for that.\"]},\"http.response.body.size\":{brief:\"The encoded body size of the response (in bytes).\",type:\"integer\",keys:[\"http.response.body.size\",\"http.response.header.content-length\",\"http.response_content_length\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:123,aliases:[\"http.response_content_length\",\"http.response.header.content-length\"],changelog:[{version:\"0.4.0\",prs:[228]},{version:\"0.1.0\",prs:[106]},{version:\"0.0.0\"}]},\"http.response_content_length\":{brief:\"The encoded body size of the response (in bytes).\",type:\"integer\",keys:[\"http.response.body.size\",\"http.response.header.content-length\",\"http.response_content_length\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:123,deprecation:{replacement:\"http.response.body.size\",status:\"backfill\"},aliases:[\"http.response.body.size\",\"http.response.header.content-length\"],changelog:[{version:\"0.4.0\",prs:[228]},{version:\"0.1.0\",prs:[61,106]},{version:\"0.0.0\"}],searchAlias:{name:\"http.response_content_length\",type:\"byte\"}},\"http.response_content_length_uncompressed\":{brief:\"The decoded body size of the response (in bytes).\",type:\"integer\",keys:[\"http.response.body.decoded_size\",\"http.decoded_response_content_length\",\"http.response_content_length_uncompressed\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:456,deprecation:{replacement:\"http.response.body.decoded_size\",status:\"backfill\"},aliases:[\"http.response.body.decoded_size\",\"http.decoded_response_content_length\"],changelog:[{version:\"0.21.0\",prs:[574],description:\"Added http.response_content_length_uncompressed attribute, deprecated in favor of http.response.body.decoded_size\"}]},\"http.response.header.content-length\":{brief:\"The size of the message body sent to the recipient (in bytes)\",type:\"string\",keys:[\"http.response.header.content-length\",\"http.response.body.size\",\"http.response_content_length\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"http.response.header.custom-header=['foo', 'bar']\",aliases:[\"http.response_content_length\",\"http.response.body.size\"],changelog:[{version:\"0.1.0\",prs:[127]},{version:\"0.0.0\"}]},\"http.response.header.<key>\":{brief:\"HTTP response headers, <key> being the lower-cased, but otherwise unchanged HTTP Header name, the value being the header values.\",type:\"string[]\",keys:[\"http.response.header.<key>\"],applyScrubbing:{key:\"auto\"},isInOtel:!0,visibility:\"public\",hasDynamicSuffix:!0,example:\"http.response.header.custom-header=['foo', 'bar']\",examples:[\"http.response.header.custom-header=['foo', 'bar']\",\"http.response.header.content-length=['123']\"],changelog:[{version:\"0.4.0\",prs:[201,204]},{version:\"0.1.0\",prs:[103]}]},\"http.response.size\":{brief:\"The transfer size of the response (in bytes).\",type:\"integer\",keys:[\"http.response.size\",\"http.response_transfer_size\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:456,aliases:[\"http.response_transfer_size\"],changelog:[{version:\"0.4.0\",prs:[228]},{version:\"0.0.0\"}]},\"http.response.status_code\":{brief:\"The status code of the HTTP response.\",type:\"integer\",keys:[\"http.response.status_code\",\"http.response_status_code\",\"http.status_code\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:404,aliases:[\"http.status_code\"],changelog:[{version:\"0.4.0\",prs:[228]},{version:\"0.0.0\"}],searchAlias:{name:\"http.response_status_code\"}},\"http.response.status_text\":{brief:\"The reason phrase of the HTTP response.\",type:\"string\",keys:[\"http.response.status_text\",\"http.status_text\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"NOT FOUND\",aliases:[\"http.status_text\"],changelog:[{version:\"0.21.0\",prs:[574],description:\"Added http.response.status_text attribute\"}],additionalContext:[\"HTTP/2 and HTTP/3 do not carry a reason phrase. Do not set this attribute when the protocol provides none; use `http.response.status_code` instead.\"]},\"http.response_transfer_size\":{brief:\"The transfer size of the response (in bytes).\",type:\"integer\",keys:[\"http.response.size\",\"http.response_transfer_size\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:456,deprecation:{replacement:\"http.response.size\",status:\"backfill\"},aliases:[\"http.response.size\"],changelog:[{version:\"0.4.0\",prs:[228]},{version:\"0.1.0\",prs:[61]},{version:\"0.0.0\"}],searchAlias:{name:\"http.response_transfer_size\",type:\"byte\"}},\"http.route\":{brief:\"The matched route, that is, the path template in the format used by the respective server framework.\",type:\"string\",keys:[\"http.route\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"/users/:id\",examples:[\"/users/:id\",\"my-controller/my-action/{id}\",\"/posts\"],aliases:[\"route\"],changelog:[{version:\"0.19.0\",prs:[505,521],description:\"Added multiple examples, removed alias to `url.template`, added additional context\"},{version:\"0.1.0\",prs:[127]},{version:\"0.0.0\"}],additionalContext:[\"This attribute should primarily be set by server-side instrumentation that captures the framework route of an incoming request.\",\"For `http.client` spans and client-side routing, use `url.template` instead.\"]},\"http.scheme\":{brief:\"The URI scheme component identifying the used protocol.\",type:\"string\",keys:[\"url.scheme\",\"http.scheme\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"https\",deprecation:{replacement:\"url.scheme\",status:\"backfill\"},aliases:[\"url.scheme\"],changelog:[{version:\"0.1.0\",prs:[61,127]},{version:\"0.0.0\"}]},\"http.server_name\":{brief:\"The server domain name\",type:\"string\",keys:[\"server.address\",\"address\",\"http.server_name\",\"net.host.name\",\"server_name\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"example.com\",deprecation:{replacement:\"server.address\",status:\"backfill\"},aliases:[\"address\",\"server.address\",\"net.host.name\",\"http.host\",\"server_name\",\"net.peer.name\"],changelog:[{version:\"0.24.0\",prs:[647],description:\"Added server_name as an alias\"},{version:\"0.21.0\",prs:[588,602],description:\"Added net.peer.name as an alias\"},{version:\"0.19.0\",prs:[534],description:\"Added address as an alias\"},{version:\"0.1.0\",prs:[61,108,127]},{version:\"0.0.0\"}]},\"http.server.request.time_in_queue\":{brief:\"The time in milliseconds the request spent in the server queue before processing began. Measured from the X-Request-Start header set by reverse proxies (e.g., Nginx, HAProxy, Heroku) to when the application started handling the request.\",type:\"double\",keys:[\"http.server.request.time_in_queue\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:50,changelog:[{version:\"0.5.0\",prs:[267]}]},\"http.status_code\":{brief:\"The status code of the HTTP response.\",type:\"integer\",keys:[\"http.response.status_code\",\"http.response_status_code\",\"http.status_code\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:404,deprecation:{replacement:\"http.response.status_code\",status:\"backfill\"},aliases:[\"http.response.status_code\"],changelog:[{version:\"0.4.0\",prs:[228]},{version:\"0.1.0\",prs:[61]},{version:\"0.0.0\"}]},\"http.status_text\":{brief:\"The reason phrase of the HTTP response\",type:\"string\",keys:[\"http.response.status_text\",\"http.status_text\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"NOT FOUND\",examples:[\"NOT FOUND\"],deprecation:{replacement:\"http.response.status_text\",status:\"backfill\"},aliases:[\"http.response.status_text\"],changelog:[{version:\"0.21.0\",prs:[574],description:\"Added http.status_text attribute, deprecated in favor of http.response.status_text\"}]},\"http.target\":{brief:\"The pathname and query string of the URL.\",type:\"string\",keys:[\"http.target\"],applyScrubbing:{key:\"auto\"},isInOtel:!0,visibility:\"public\",example:\"/test?foo=bar#buzz\",deprecation:{reason:\"This attribute is being deprecated in favor of url.path, url.query and url.fragment. The value holds all three parts at once, so it has no single replacement.\"},changelog:[{version:\"0.21.0\",prs:[587],description:\"Documented url.path, url.query and url.fragment as the replacements for http.target\"},{version:\"0.1.0\",prs:[61]},{version:\"0.0.0\"}]},\"http.url\":{brief:\"The URL of the resource that was fetched.\",type:\"string\",keys:[\"url.full\",\"aws.request.url\",\"http.url\",\"messaging.url\",\"url\"],applyScrubbing:{key:\"auto\"},isInOtel:!0,visibility:\"public\",example:\"https://example.com/test?foo=bar#buzz\",deprecation:{replacement:\"url.full\",status:\"backfill\"},aliases:[\"url.full\",\"url\",\"aws.request.url\",\"messaging.url\"],changelog:[{version:\"0.21.0\",prs:[581],description:\"Added messaging.url as an alias\"},{version:\"0.1.0\",prs:[61,108]},{version:\"0.0.0\"}]},\"http.user_agent\":{brief:\"Value of the HTTP User-Agent header sent by the client.\",type:\"string\",keys:[\"user_agent.original\",\"http.user_agent\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"Mozilla/5.0 (iPhone; CPU iPhone OS 14_7_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1.2 Mobile/15E148 Safari/604.1\",deprecation:{replacement:\"user_agent.original\",status:\"backfill\"},aliases:[\"user_agent.original\"],changelog:[{version:\"0.1.0\",prs:[61,127]},{version:\"0.0.0\"}]},id:{brief:\"A unique identifier for the span.\",type:\"string\",keys:[\"id\"],applyScrubbing:{key:\"never\"},isInOtel:!1,visibility:\"public\",example:\"f47ac10b58cc4372a5670e02b2c3d479\",changelog:[{version:\"0.0.0\"}]},inp:{brief:\"The value of the recorded Interaction to Next Paint (INP) web vital\",type:\"double\",keys:[\"browser.web_vital.inp.value\",\"inp\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:200,deprecation:{replacement:\"browser.web_vital.inp.value\",reason:\"The INP web vital is now recorded as a browser.web_vital.inp.value attribute.\",status:\"backfill\"},aliases:[\"browser.web_vital.inp.value\"],changelog:[{version:\"0.5.0\",prs:[229],description:\"Added and deprecated attribute to document JS SDK's current behaviour\"}]},\"jsonrpc.protocol.version\":{brief:\"The version of the JSON-RPC protocol used.\",type:\"string\",keys:[\"jsonrpc.protocol.version\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"2.0\",changelog:[{version:\"0.12.0\",prs:[420],description:\"Added jsonrpc.protocol.version attribute\"}]},\"jsonrpc.request.id\":{brief:\"The JSON-RPC request identifier. Unique within the session.\",type:\"string\",keys:[\"jsonrpc.request.id\",\"mcp.request.id\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"1\",aliases:[\"mcp.request.id\"],changelog:[{version:\"0.12.0\",prs:[420],description:\"Added jsonrpc.request.id attribute\"}]},\"jvm.gc.action\":{brief:\"Name of the garbage collector action.\",type:\"string\",keys:[\"jvm.gc.action\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"end of minor GC\",changelog:[{version:\"0.1.0\",prs:[127]},{version:\"0.0.0\"}]},\"jvm.gc.name\":{brief:\"Name of the garbage collector.\",type:\"string\",keys:[\"jvm.gc.name\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"G1 Young Generation\",changelog:[{version:\"0.1.0\",prs:[127]},{version:\"0.0.0\"}]},\"jvm.memory.pool.name\":{brief:\"Name of the memory pool.\",type:\"string\",keys:[\"jvm.memory.pool.name\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"G1 Old Gen\",changelog:[{version:\"0.1.0\",prs:[127]},{version:\"0.0.0\"}]},\"jvm.memory.type\":{brief:\"Name of the memory pool.\",type:\"string\",keys:[\"jvm.memory.type\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"G1 Old Gen\",changelog:[{version:\"0.1.0\",prs:[127]},{version:\"0.0.0\"}]},\"jvm.thread.daemon\":{brief:\"Whether the thread is daemon or not.\",type:\"boolean\",keys:[\"jvm.thread.daemon\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:!0,changelog:[{version:\"0.0.0\"}]},\"jvm.thread.state\":{brief:\"State of the thread.\",type:\"string\",keys:[\"jvm.thread.state\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"blocked\",changelog:[{version:\"0.1.0\",prs:[127]},{version:\"0.0.0\"}]},\"koa.name\":{brief:\"The name of the Koa middleware or matched route that handled the request.\",type:\"string\",keys:[\"koa.name\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"/users/:id\",deprecation:{reason:\"No single replacement. SDKs should use http.route for router layers and code.function.name for middleware layers instead.\"},changelog:[{version:\"0.16.0\",prs:[490],description:\"Added koa.name attribute as deprecated\"}]},\"koa.type\":{brief:\"The type of the Koa layer that handled the request.\",type:\"string\",keys:[\"koa.type\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"router\",changelog:[{version:\"0.16.0\",prs:[471],description:\"Added koa.type attribute\"}]},\"langchain.chain.name\":{brief:\"The name of the LangChain chain being executed.\",type:\"string\",keys:[\"gen_ai.pipeline.name\",\"ai.pipeline.name\",\"langchain.chain.name\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"format_prompt\",examples:[\"format_prompt\",\"RunnableSequence\"],deprecation:{replacement:\"gen_ai.pipeline.name\",reason:\"This attribute is being deprecated in favor of gen_ai.pipeline.name, which is the SDK-agnostic replacement for the name of the AI pipeline or chain being executed.\",status:\"backfill\"},aliases:[\"gen_ai.pipeline.name\",\"ai.pipeline.name\"],changelog:[{version:\"0.22.0\",prs:[599],description:\"Added langchain.chain.name attribute\"}]},lcp:{brief:\"The value of the recorded Largest Contentful Paint (LCP) web vital\",type:\"double\",keys:[\"browser.web_vital.lcp.value\",\"lcp\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:2500,deprecation:{replacement:\"browser.web_vital.lcp.value\",reason:\"The LCP web vital is now recorded as a browser.web_vital.lcp.value attribute.\",status:\"backfill\"},aliases:[\"browser.web_vital.lcp.value\"],changelog:[{version:\"0.5.0\",prs:[229],description:\"Added and deprecated attribute to document JS SDK's current behaviour\"}]},\"lcp.element\":{brief:\"The dom element responsible for the largest contentful paint.\",type:\"string\",keys:[\"browser.web_vital.lcp.element\",\"lcp.element\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"img\",deprecation:{replacement:\"browser.web_vital.lcp.element\",reason:\"The LCP element is now recorded as a browser.web_vital.lcp.element attribute.\",status:\"backfill\"},aliases:[\"browser.web_vital.lcp.element\"],changelog:[{version:\"0.5.0\",prs:[233]},{version:\"0.1.0\",prs:[127]},{version:\"0.0.0\"}]},\"lcp.id\":{brief:\"The id of the dom element responsible for the largest contentful paint.\",type:\"string\",keys:[\"browser.web_vital.lcp.id\",\"lcp.id\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"#hero\",deprecation:{replacement:\"browser.web_vital.lcp.id\",reason:\"The LCP id is now recorded as a browser.web_vital.lcp.id attribute.\",status:\"backfill\"},aliases:[\"browser.web_vital.lcp.id\"],changelog:[{version:\"0.5.0\",prs:[233]},{version:\"0.1.0\",prs:[127]},{version:\"0.0.0\"}]},\"lcp.loadTime\":{brief:\"The time it took for the LCP element to be loaded\",type:\"integer\",keys:[\"browser.web_vital.lcp.load_time\",\"lcp.loadTime\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:1402,deprecation:{replacement:\"browser.web_vital.lcp.load_time\",reason:\"The LCP load time is now recorded as a browser.web_vital.lcp.load_time attribute.\",status:\"backfill\"},aliases:[\"browser.web_vital.lcp.load_time\"],changelog:[{version:\"0.5.0\",prs:[233]}]},\"lcp.renderTime\":{brief:\"The time it took for the LCP element to be rendered\",type:\"integer\",keys:[\"browser.web_vital.lcp.render_time\",\"lcp.renderTime\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:1685,deprecation:{replacement:\"browser.web_vital.lcp.render_time\",reason:\"The LCP render time is now recorded as a browser.web_vital.lcp.render_time attribute.\",status:\"backfill\"},aliases:[\"browser.web_vital.lcp.render_time\"],changelog:[{version:\"0.5.0\",prs:[233]}]},\"lcp.size\":{brief:\"The size of the largest contentful paint element.\",type:\"integer\",keys:[\"browser.web_vital.lcp.size\",\"lcp.size\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:1234,deprecation:{replacement:\"browser.web_vital.lcp.size\",reason:\"The LCP size is now recorded as a browser.web_vital.lcp.size attribute.\",status:\"backfill\"},aliases:[\"browser.web_vital.lcp.size\"],changelog:[{version:\"0.5.0\",prs:[233]},{version:\"0.4.0\",prs:[228]},{version:\"0.0.0\"}]},\"lcp.url\":{brief:\"The url of the dom element responsible for the largest contentful paint.\",type:\"string\",keys:[\"browser.web_vital.lcp.url\",\"lcp.url\"],applyScrubbing:{key:\"auto\"},isInOtel:!1,visibility:\"public\",example:\"https://example.com\",deprecation:{replacement:\"browser.web_vital.lcp.url\",reason:\"The LCP url is now recorded as a browser.web_vital.lcp.url attribute.\",status:\"backfill\"},aliases:[\"browser.web_vital.lcp.url\"],changelog:[{version:\"0.5.0\",prs:[233]},{version:\"0.1.0\",prs:[127]},{version:\"0.0.0\"}]},\"litestar.middleware_name\":{brief:\"The name of the Litestar middleware.\",type:\"string\",keys:[\"middleware.name\",\"django.middleware_name\",\"litestar.middleware_name\",\"starlette.middleware_name\",\"starlite.middleware_name\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"AuthenticationMiddleware\",deprecation:{replacement:\"middleware.name\",reason:\"This attribute is being deprecated in favor of middleware.name, which is the framework-agnostic replacement.\",status:\"backfill\"},aliases:[\"middleware.name\"],changelog:[{version:\"0.19.0\",prs:[486],description:\"Added litestar.middleware_name attribute, deprecated in favor of middleware.name\"}]},\"logger.name\":{brief:\"The name of the logger that generated this event.\",type:\"string\",keys:[\"logger.name\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"myLogger\",changelog:[{version:\"0.1.0\",prs:[127]},{version:\"0.0.0\"}]},\"mcp.cancelled.reason\":{brief:\"Reason for the cancellation of an MCP operation.\",type:\"string\",keys:[\"mcp.cancelled.reason\"],applyScrubbing:{key:\"manual\",reason:\"Cancellation reasons may contain user-specific or sensitive information\"},isInOtel:!1,visibility:\"public\",example:\"User cancelled the request\",changelog:[{version:\"0.3.0\",prs:[171]}]},\"mcp.cancelled.request_id\":{brief:\"Request ID of the cancelled MCP operation.\",type:\"string\",keys:[\"mcp.cancelled.request_id\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"123\",changelog:[{version:\"0.3.0\",prs:[171]}]},\"mcp.client.name\":{brief:\"Name of the MCP client application.\",type:\"string\",keys:[\"mcp.client.name\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"claude-desktop\",changelog:[{version:\"0.3.0\",prs:[171]}]},\"mcp.client.title\":{brief:\"Display title of the MCP client application.\",type:\"string\",keys:[\"mcp.client.title\"],applyScrubbing:{key:\"manual\",reason:\"Client titles may reveal user-specific application configurations or custom setups\"},isInOtel:!1,visibility:\"public\",example:\"Claude Desktop\",changelog:[{version:\"0.3.0\",prs:[171]}]},\"mcp.client.version\":{brief:\"Version of the MCP client application.\",type:\"string\",keys:[\"mcp.client.version\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"1.0.0\",changelog:[{version:\"0.3.0\",prs:[171]}]},\"mcp.lifecycle.phase\":{brief:\"Lifecycle phase indicator for MCP operations.\",type:\"string\",keys:[\"mcp.lifecycle.phase\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"initialization_complete\",changelog:[{version:\"0.3.0\",prs:[171]}]},\"mcp.logging.data_type\":{brief:\"Data type of the logged message content.\",type:\"string\",keys:[\"mcp.logging.data_type\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"string\",changelog:[{version:\"0.3.0\",prs:[171]}]},\"mcp.logging.level\":{brief:\"Log level for MCP logging operations.\",type:\"string\",keys:[\"mcp.logging.level\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"info\",changelog:[{version:\"0.3.0\",prs:[171]}]},\"mcp.logging.logger\":{brief:\"Logger name for MCP logging operations.\",type:\"string\",keys:[\"mcp.logging.logger\"],applyScrubbing:{key:\"manual\",reason:\"Logger names may be user-defined and could contain sensitive information\"},isInOtel:!1,visibility:\"public\",example:\"mcp_server\",changelog:[{version:\"0.3.0\",prs:[171]}]},\"mcp.logging.message\":{brief:\"Log message content from MCP logging operations.\",type:\"string\",keys:[\"mcp.logging.message\"],applyScrubbing:{key:\"auto\",reason:\"Log messages can contain user data\"},isInOtel:!1,visibility:\"public\",example:\"Tool execution completed successfully\",changelog:[{version:\"0.3.0\",prs:[171]}]},\"mcp.method.name\":{brief:\"The name of the MCP request or notification method being called.\",type:\"string\",keys:[\"mcp.method.name\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"tools/call\",changelog:[{version:\"0.12.0\",prs:[420],description:\"Set is_in_otel=true, attribute exists in OTel MCP registry\"},{version:\"0.3.0\",prs:[171]}]},\"mcp.progress.current\":{brief:\"Current progress value of an MCP operation.\",type:\"integer\",keys:[\"mcp.progress.current\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:50,changelog:[{version:\"0.4.0\",prs:[228]},{version:\"0.3.0\",prs:[171]}]},\"mcp.progress.message\":{brief:\"Progress message describing the current state of an MCP operation.\",type:\"string\",keys:[\"mcp.progress.message\"],applyScrubbing:{key:\"manual\",reason:\"Progress messages may contain user-specific or sensitive information\"},isInOtel:!1,visibility:\"public\",example:\"Processing 50 of 100 items\",changelog:[{version:\"0.3.0\",prs:[171]}]},\"mcp.progress.percentage\":{brief:\"Calculated progress percentage of an MCP operation. Computed from current/total * 100.\",type:\"double\",keys:[\"mcp.progress.percentage\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:50,changelog:[{version:\"0.4.0\",prs:[228]},{version:\"0.3.0\",prs:[171]}]},\"mcp.progress.token\":{brief:\"Token for tracking progress of an MCP operation.\",type:\"string\",keys:[\"mcp.progress.token\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"progress-token-123\",changelog:[{version:\"0.3.0\",prs:[171]}]},\"mcp.progress.total\":{brief:\"Total progress target value of an MCP operation.\",type:\"integer\",keys:[\"mcp.progress.total\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:100,changelog:[{version:\"0.4.0\",prs:[228]},{version:\"0.3.0\",prs:[171]}]},\"mcp.prompt.name\":{brief:\"Name of the MCP prompt template being used.\",type:\"string\",keys:[\"gen_ai.prompt.name\",\"mcp.prompt.name\"],applyScrubbing:{key:\"manual\",reason:\"Prompt names may reveal user behavior patterns or sensitive operations\"},isInOtel:!1,visibility:\"public\",example:\"summarize\",deprecation:{replacement:\"gen_ai.prompt.name\",reason:\"OTel uses gen_ai.prompt.name for MCP prompt names\",status:\"backfill\"},aliases:[\"gen_ai.prompt.name\"],changelog:[{version:\"0.12.0\",prs:[420],description:\"Deprecated in favor of gen_ai.prompt.name\"},{version:\"0.3.0\",prs:[171]}]},\"mcp.prompt.result.description\":{brief:\"Description of the prompt result.\",type:\"string\",keys:[\"mcp.prompt.result.description\"],applyScrubbing:{key:\"auto\"},isInOtel:!1,visibility:\"public\",example:\"A summary of the requested information\",changelog:[{version:\"0.3.0\",prs:[171]}]},\"mcp.prompt.result.message_content\":{brief:\"Content of the message in the prompt result. Used for single message results only.\",type:\"string\",keys:[\"mcp.prompt.result.message_content\"],applyScrubbing:{key:\"auto\"},isInOtel:!1,visibility:\"public\",example:\"Please provide a summary of the document\",changelog:[{version:\"0.3.0\",prs:[171]}]},\"mcp.prompt.result.message_count\":{brief:\"Number of messages in the prompt result.\",type:\"integer\",keys:[\"mcp.prompt.result.message_count\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:3,changelog:[{version:\"0.4.0\",prs:[228]},{version:\"0.3.0\",prs:[171]}]},\"mcp.prompt.result.message_role\":{brief:\"Role of the message in the prompt result. Used for single message results only.\",type:\"string\",keys:[\"mcp.prompt.result.message_role\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"user\",changelog:[{version:\"0.3.0\",prs:[171]}]},\"mcp.protocol.ready\":{brief:\"Protocol readiness indicator for MCP session. Non-zero value indicates the protocol is ready.\",type:\"integer\",keys:[\"mcp.protocol.ready\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:1,changelog:[{version:\"0.4.0\",prs:[228]},{version:\"0.3.0\",prs:[171]}]},\"mcp.protocol.version\":{brief:\"MCP protocol version used in the session.\",type:\"string\",keys:[\"mcp.protocol.version\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"2024-11-05\",changelog:[{version:\"0.12.0\",prs:[420],description:\"Set is_in_otel=true, attribute exists in OTel MCP registry\"},{version:\"0.3.0\",prs:[171]}]},\"mcp.request.argument.<key>\":{brief:\"MCP request argument with dynamic key suffix. The <key> is replaced with the actual argument name. The value is a JSON-stringified representation of the argument value.\",type:\"string\",keys:[\"mcp.request.argument.<key>\"],applyScrubbing:{key:\"auto\",reason:\"Arguments contain user input\"},isInOtel:!1,visibility:\"public\",hasDynamicSuffix:!0,example:\"mcp.request.argument.query='weather in Paris'\",changelog:[{version:\"0.3.0\",prs:[176]}]},\"mcp.request.argument.name\":{brief:\"Name argument from prompts/get MCP request.\",type:\"string\",keys:[\"mcp.request.argument.name\"],applyScrubbing:{key:\"auto\",reason:\"Prompt names can contain user input\"},isInOtel:!1,visibility:\"public\",example:\"summarize\",changelog:[{version:\"0.3.0\",prs:[171]}]},\"mcp.request.argument.uri\":{brief:\"URI argument from resources/read MCP request.\",type:\"string\",keys:[\"mcp.request.argument.uri\"],applyScrubbing:{key:\"auto\",reason:\"URIs can contain user file paths\"},isInOtel:!1,visibility:\"public\",example:\"file:///path/to/resource\",changelog:[{version:\"0.3.0\",prs:[171]}]},\"mcp.request.id\":{brief:\"JSON-RPC request identifier for the MCP request. Unique within the MCP session.\",type:\"string\",keys:[\"jsonrpc.request.id\",\"mcp.request.id\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"1\",deprecation:{replacement:\"jsonrpc.request.id\",reason:\"OTel models MCP as JSON-RPC, uses jsonrpc.request.id\",status:\"backfill\"},aliases:[\"jsonrpc.request.id\"],changelog:[{version:\"0.12.0\",prs:[420],description:\"Deprecated in favor of jsonrpc.request.id\"},{version:\"0.3.0\",prs:[171]}]},\"mcp.resource.protocol\":{brief:\"Protocol of the resource URI being accessed, extracted from the URI.\",type:\"string\",keys:[\"network.protocol.name\",\"mcp.resource.protocol\",\"messaging.protocol\",\"net.protocol.name\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"file\",deprecation:{replacement:\"network.protocol.name\",reason:\"OTel uses the generic network.protocol.name attribute\",status:\"backfill\"},aliases:[\"network.protocol.name\",\"net.protocol.name\",\"messaging.protocol\"],changelog:[{version:\"0.21.0\",prs:[581],description:\"Added messaging.protocol as an alias\"},{version:\"0.12.0\",prs:[420],description:\"Deprecated in favor of network.protocol.name\"},{version:\"0.3.0\",prs:[171]}]},\"mcp.resource.uri\":{brief:\"The resource URI being accessed in an MCP operation.\",type:\"string\",keys:[\"mcp.resource.uri\"],applyScrubbing:{key:\"auto\",reason:\"URIs can contain sensitive file paths\"},isInOtel:!0,visibility:\"public\",example:\"file:///path/to/file.txt\",changelog:[{version:\"0.12.0\",prs:[420],description:\"Set is_in_otel=true, attribute exists in OTel MCP registry\"},{version:\"0.3.0\",prs:[171]}]},\"mcp.server.name\":{brief:\"Name of the MCP server application.\",type:\"string\",keys:[\"mcp.server.name\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"sentry-mcp-server\",changelog:[{version:\"0.3.0\",prs:[171]}]},\"mcp.server.title\":{brief:\"Display title of the MCP server application.\",type:\"string\",keys:[\"mcp.server.title\"],applyScrubbing:{key:\"manual\",reason:\"Server titles may reveal user-specific application configurations or custom setups\"},isInOtel:!1,visibility:\"public\",example:\"Sentry MCP Server\",changelog:[{version:\"0.3.0\",prs:[171]}]},\"mcp.server.version\":{brief:\"Version of the MCP server application.\",type:\"string\",keys:[\"mcp.server.version\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"0.1.0\",changelog:[{version:\"0.3.0\",prs:[171]}]},\"mcp.session.id\":{brief:\"Identifier for the MCP session.\",type:\"string\",keys:[\"mcp.session.id\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"550e8400-e29b-41d4-a716-446655440000\",changelog:[{version:\"0.12.0\",prs:[420],description:\"Set is_in_otel=true, attribute exists in OTel MCP registry\"},{version:\"0.3.0\",prs:[171]}]},\"mcp.tool.name\":{brief:\"Name of the MCP tool being called.\",type:\"string\",keys:[\"gen_ai.tool.name\",\"ai.function_call\",\"mcp.tool.name\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"calculator\",deprecation:{replacement:\"gen_ai.tool.name\",reason:\"OTel uses gen_ai.tool.name for MCP tool names\",status:\"backfill\"},aliases:[\"gen_ai.tool.name\",\"ai.function_call\"],changelog:[{version:\"0.12.0\",prs:[420],description:\"Deprecated in favor of gen_ai.tool.name\"},{version:\"0.3.0\",prs:[171]}]},\"mcp.tool.result.content\":{brief:\"The content of the tool result.\",type:\"string\",keys:[\"gen_ai.tool.call.result\",\"ai.toolCall.result\",\"anthropic.tool_result.content\",\"gen_ai.tool.message\",\"gen_ai.tool.output\",\"mcp.tool.result.content\"],applyScrubbing:{key:\"auto\",reason:\"Tool results can contain user data\"},isInOtel:!1,visibility:\"public\",example:'{\"output\": \"rainy\", \"toolCallId\": \"1\"}',deprecation:{replacement:\"gen_ai.tool.call.result\",reason:\"OTel uses gen_ai.tool.call.result for MCP tool results\",status:\"backfill\"},aliases:[\"gen_ai.tool.call.result\",\"gen_ai.tool.message\",\"gen_ai.tool.output\",\"ai.toolCall.result\",\"anthropic.tool_result.content\"],changelog:[{version:\"0.12.0\",prs:[420],description:\"Deprecated in favor of gen_ai.tool.call.result\"},{version:\"0.3.0\",prs:[171]},{version:\"0.2.0\",prs:[164]}]},\"mcp.tool.result.content_count\":{brief:\"Number of content items in the tool result.\",type:\"integer\",keys:[\"mcp.tool.result.content_count\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:1,changelog:[{version:\"0.4.0\",prs:[228]},{version:\"0.3.0\",prs:[171]}]},\"mcp.tool.result.is_error\":{brief:\"Whether a tool execution resulted in an error.\",type:\"boolean\",keys:[\"mcp.tool.result.is_error\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:!1,deprecation:{replacement:\"error.type\",reason:\"OTel uses error.type set to 'tool_error' when isError is true. Cannot be automatically backfilled due to type mismatch (boolean vs string).\"},changelog:[{version:\"0.12.0\",prs:[420],description:\"Deprecated in favor of error.type\"},{version:\"0.3.0\",prs:[171]}]},\"mcp.transport\":{brief:\"Transport method used for MCP communication.\",type:\"string\",keys:[\"network.transport\",\"mcp.transport\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"stdio\",deprecation:{replacement:\"network.transport\",reason:\"OTel uses the generic network.transport attribute\",status:\"backfill\"},aliases:[\"network.transport\",\"net.transport\"],changelog:[{version:\"0.12.0\",prs:[420],description:\"Deprecated in favor of network.transport\"},{version:\"0.3.0\",prs:[171]}]},\"mdc.<key>\":{brief:\"Attributes from the Mapped Diagnostic Context (MDC) present at the moment the log record was created. The MDC is supported by all the most popular logging solutions in the Java ecosystem, and it's usually implemented as a thread-local map that stores context for e.g. a specific request.\",type:\"string\",keys:[\"mdc.<key>\"],applyScrubbing:{key:\"auto\"},isInOtel:!1,visibility:\"public\",hasDynamicSuffix:!0,example:\"mdc.some_key='some_value'\",changelog:[{version:\"0.3.0\",prs:[176]}]},\"messaging.batch.message_count\":{brief:\"The number of messages sent, received, or processed in the scope of the batching operation.\",type:\"integer\",keys:[\"messaging.batch.message_count\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:10,changelog:[{version:\"0.6.0\",prs:[341],description:\"Added messaging.batch.message_count attribute\"}]},\"messaging.conversation_id\":{brief:'The conversation ID identifying the conversation to which the message belongs, represented as a string. Sometimes called \"Correlation ID\".',type:\"string\",keys:[\"messaging.message.conversation_id\",\"messaging.conversation_id\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"MyConversationId\",examples:[\"MyConversationId\"],deprecation:{replacement:\"messaging.message.conversation_id\",reason:\"This attribute is being deprecated in favor of messaging.message.conversation_id.\",status:\"backfill\"},aliases:[\"messaging.message.conversation_id\"],changelog:[{version:\"0.21.0\",prs:[581],description:\"Added messaging.conversation_id attribute\"}]},\"messaging.destination\":{brief:\"The message destination name.\",type:\"string\",keys:[\"messaging.destination.name\",\"messaging.destination\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"BestTopic\",deprecation:{replacement:\"messaging.destination.name\",reason:\"This attribute is being deprecated in favor of messaging.destination.name, which is the OTel-aligned replacement.\",status:\"backfill\"},aliases:[\"messaging.destination.name\"],changelog:[{version:\"0.16.0\",prs:[482],description:\"Added messaging.destination attribute, deprecated in favor of messaging.destination.name\"}]},\"messaging.destination.connection\":{brief:\"The message destination connection.\",type:\"string\",keys:[\"messaging.destination.connection\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"BestTopic\",changelog:[{version:\"0.1.0\",prs:[127]},{version:\"0.0.0\"}]},\"messaging.destination_kind\":{brief:\"The kind of message destination.\",type:\"string\",keys:[\"messaging.destination_kind\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"topic\",deprecation:{reason:\"Deprecated from OTEL, which now models the destination kind via messaging.operation.type and messaging.destination.name.\"},changelog:[{version:\"0.19.0\",prs:[509],description:\"Added deprecated messaging.destination_kind attribute for parity with legacy OTel instrumentations.\"}]},\"messaging.destination.name\":{brief:\"The message destination name.\",type:\"string\",keys:[\"messaging.destination.name\",\"messaging.destination\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"BestTopic\",aliases:[\"messaging.destination\"],changelog:[{version:\"0.16.0\",prs:[482],description:\"Added messaging.destination as an alias\"},{version:\"0.1.0\",prs:[127]},{version:\"0.0.0\"}]},\"messaging.destination.partition.id\":{brief:\"The identifier of the partition messages are sent to or received from, unique within the messaging.destination.name.\",type:\"string\",keys:[\"messaging.destination.partition.id\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"1\",changelog:[{version:\"0.19.0\",prs:[474],description:\"Added messaging.destination.partition.id attribute\"}]},\"messaging.kafka.message.key\":{brief:\"Message keys in Kafka are used for grouping alike messages to ensure they're processed on the same partition. They differ from messaging.message.id in that they're not unique. If the key is null, the attribute MUST NOT be set.\",type:\"string\",keys:[\"messaging.kafka.message.key\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"myKey\",changelog:[{version:\"0.19.0\",prs:[474],description:\"Added messaging.kafka.message.key attribute\"}]},\"messaging.kafka.message.tombstone\":{brief:\"A boolean that is true if the message is a tombstone.\",type:\"boolean\",keys:[\"messaging.kafka.message.tombstone\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:!0,changelog:[{version:\"0.19.0\",prs:[474],description:\"Added messaging.kafka.message.tombstone attribute\"}]},\"messaging.kafka.offset\":{brief:\"The offset of a record in the corresponding Kafka partition.\",type:\"integer\",keys:[\"messaging.kafka.offset\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:42,changelog:[{version:\"0.19.0\",prs:[474],description:\"Added messaging.kafka.offset attribute\"}]},\"messaging.message.body.size\":{brief:\"The size of the message body in bytes.\",type:\"integer\",keys:[\"messaging.message.body.size\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:839,changelog:[{version:\"0.4.0\",prs:[228]},{version:\"0.0.0\"}],searchAlias:{name:\"messaging.message.body.size\",type:\"byte\"}},\"messaging.message.conversation_id\":{brief:'The conversation ID identifying the conversation to which the message belongs, represented as a string. Sometimes called \"Correlation ID\".',type:\"string\",keys:[\"messaging.message.conversation_id\",\"messaging.conversation_id\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"MyConversationId\",aliases:[\"messaging.conversation_id\"],changelog:[{version:\"0.21.0\",prs:[581],description:\"Added messaging.conversation_id as an alias\"},{version:\"0.16.0\",prs:[468],description:\"Added messaging.message.conversation_id attribute\"}]},\"messaging.message.envelope.size\":{brief:\"The size of the message body and metadata in bytes.\",type:\"integer\",keys:[\"messaging.message.envelope.size\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:1045,changelog:[{version:\"0.4.0\",prs:[228]},{version:\"0.0.0\"}]},\"messaging.message.id\":{brief:\"A value used by the messaging system as an identifier for the message, represented as a string.\",type:\"string\",keys:[\"messaging.message.id\",\"messaging.message_id\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"f47ac10b58cc4372a5670e02b2c3d479\",aliases:[\"messaging.message_id\"],changelog:[{version:\"0.21.0\",prs:[581],description:\"Added messaging.message_id as an alias\"},{version:\"0.1.0\",prs:[127]},{version:\"0.0.0\"}]},\"messaging.message_id\":{brief:\"A value used by the messaging system as an identifier for the message, represented as a string.\",type:\"string\",keys:[\"messaging.message.id\",\"messaging.message_id\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"452a7c7c7c7048c2f887f0e7\",examples:[\"452a7c7c7c7048c2f887f0e7\"],deprecation:{replacement:\"messaging.message.id\",reason:\"This attribute is being deprecated in favor of messaging.message.id.\",status:\"backfill\"},aliases:[\"messaging.message.id\"],changelog:[{version:\"0.21.0\",prs:[581],description:\"Added messaging.message_id attribute\"}]},\"messaging.message.receive.latency\":{brief:\"The latency between when the message was published and received.\",type:\"integer\",keys:[\"messaging.message.receive.latency\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:1732847252,changelog:[{version:\"0.4.0\",prs:[228]},{version:\"0.0.0\"}],searchAlias:{name:\"messaging.message.receive.latency\",type:\"millisecond\"}},\"messaging.message.retry.count\":{brief:\"The amount of attempts to send the message.\",type:\"integer\",keys:[\"messaging.message.retry.count\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:2,changelog:[{version:\"0.4.0\",prs:[228]},{version:\"0.0.0\"}]},\"messaging.operation\":{brief:\"The name of the messaging operation being performed.\",type:\"string\",keys:[\"messaging.operation.name\",\"messaging.operation\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"publish\",examples:[\"publish\"],deprecation:{replacement:\"messaging.operation.name\",reason:\"This attribute is being deprecated in favor of messaging.operation.name.\",status:\"backfill\"},aliases:[\"messaging.operation.name\"],changelog:[{version:\"0.21.0\",prs:[581],description:\"Added messaging.operation attribute\"}]},\"messaging.operation.name\":{brief:\"The name of the messaging operation being performed\",type:\"string\",keys:[\"messaging.operation.name\",\"messaging.operation\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"send\",aliases:[\"messaging.operation\"],changelog:[{version:\"0.21.0\",prs:[581],description:\"Added messaging.operation as an alias\"},{version:\"0.11.0\",prs:[392],description:\"Added messaging.operation.name attribute\"}]},\"messaging.operation.type\":{brief:\"A string identifying the type of the messaging operation\",type:\"string\",keys:[\"messaging.operation.type\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"create\",changelog:[{version:\"0.1.0\",prs:[51,127]}]},\"messaging.protocol\":{brief:\"OSI application layer or non-OSI equivalent.\",type:\"string\",keys:[\"network.protocol.name\",\"mcp.resource.protocol\",\"messaging.protocol\",\"net.protocol.name\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"AMQP\",examples:[\"AMQP\"],deprecation:{replacement:\"network.protocol.name\",reason:\"This attribute is being deprecated in favor of network.protocol.name.\",status:\"backfill\"},aliases:[\"network.protocol.name\",\"net.protocol.name\",\"mcp.resource.protocol\"],changelog:[{version:\"0.21.0\",prs:[581],description:\"Added messaging.protocol attribute\"}]},\"messaging.protocol_version\":{brief:\"The actual version of the protocol used for network communication.\",type:\"string\",keys:[\"network.protocol.version\",\"http.flavor\",\"messaging.protocol_version\",\"net.protocol.version\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"0.9.1\",examples:[\"0.9.1\"],deprecation:{replacement:\"network.protocol.version\",reason:\"This attribute is being deprecated in favor of network.protocol.version.\",status:\"backfill\"},aliases:[\"network.protocol.version\",\"http.flavor\",\"net.protocol.version\"],changelog:[{version:\"0.21.0\",prs:[581],description:\"Added messaging.protocol_version attribute\"}]},\"messaging.rabbitmq.destination.routing_key\":{brief:\"RabbitMQ message routing key.\",type:\"string\",keys:[\"messaging.rabbitmq.destination.routing_key\",\"messaging.rabbitmq.routing_key\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"myKey\",aliases:[\"messaging.rabbitmq.routing_key\"],changelog:[{version:\"0.21.0\",prs:[581],description:\"Added messaging.rabbitmq.routing_key as an alias\"},{version:\"0.16.0\",prs:[468],description:\"Added messaging.rabbitmq.destination.routing_key attribute\"}]},\"messaging.rabbitmq.routing_key\":{brief:\"RabbitMQ message routing key.\",type:\"string\",keys:[\"messaging.rabbitmq.destination.routing_key\",\"messaging.rabbitmq.routing_key\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"myKey\",examples:[\"myKey\"],deprecation:{replacement:\"messaging.rabbitmq.destination.routing_key\",reason:\"This attribute is being deprecated in favor of messaging.rabbitmq.destination.routing_key.\",status:\"backfill\"},aliases:[\"messaging.rabbitmq.destination.routing_key\"],changelog:[{version:\"0.21.0\",prs:[581],description:\"Added messaging.rabbitmq.routing_key attribute\"}]},\"messaging.system\":{brief:\"The messaging system as identified by the client instrumentation.\",type:\"string\",keys:[\"messaging.system\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"activemq\",changelog:[{version:\"0.1.0\",prs:[127]},{version:\"0.0.0\"}]},\"messaging.url\":{brief:\"The connection string of the messaging broker.\",type:\"string\",keys:[\"url.full\",\"aws.request.url\",\"http.url\",\"messaging.url\",\"url\"],applyScrubbing:{key:\"auto\"},isInOtel:!1,visibility:\"public\",example:\"amqp://guest:guest@localhost:5672\",examples:[\"amqp://guest:guest@localhost:5672\"],deprecation:{replacement:\"url.full\",reason:\"This attribute is being deprecated in favor of url.full.\",status:\"backfill\"},aliases:[\"url.full\",\"http.url\",\"url\",\"aws.request.url\"],changelog:[{version:\"0.21.0\",prs:[581],description:\"Added messaging.url attribute\"}]},method:{brief:\"The HTTP method used.\",type:\"string\",keys:[\"http.request.method\",\"http.method\",\"http.request_method\",\"method\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"GET\",deprecation:{replacement:\"http.request.method\",status:\"normalize\"},aliases:[\"http.request.method\",\"http.request_method\",\"http.method\"],changelog:[{version:\"0.19.0\",prs:[497],description:\"Configured normalization\"},{version:\"0.1.0\",prs:[61,127]},{version:\"0.0.0\"}]},\"middleware.name\":{brief:\"The name of the middleware.\",type:\"string\",keys:[\"middleware.name\",\"django.middleware_name\",\"litestar.middleware_name\",\"starlette.middleware_name\",\"starlite.middleware_name\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"AuthenticationMiddleware\",aliases:[\"django.middleware_name\",\"starlite.middleware_name\",\"litestar.middleware_name\",\"starlette.middleware_name\"],changelog:[{version:\"0.19.0\",prs:[485,486,519,520],description:\"Added django.middleware_name, starlite.middleware_name, litestar.middleware_name and starlette.middleware_name as aliases\"},{version:\"0.6.0\",prs:[336],description:\"Added middleware.name attribute\"}]},\"navigation.origin\":{brief:\"The origin of the navigation (usually client side router navigations). Should preferrably parameterized template (like url.template) or a URL path otherwise.\",type:\"string\",keys:[\"router.navigation.origin\",\"navigation.origin\",\"sentry.sveltekit.navigation.from\"],applyScrubbing:{key:\"auto\"},isInOtel:!1,visibility:\"public\",example:\"/users/:id\",deprecation:{replacement:\"router.navigation.origin\",reason:\"Moved to the router.* namespace to separate client-side router navigations from browser navigations.\",status:\"backfill\"},aliases:[\"router.navigation.origin\",\"sentry.sveltekit.navigation.from\"],changelog:[{version:\"0.22.0\",prs:[600],description:\"Deprecated in favor of router.navigation.origin\"},{version:\"0.16.0\",prs:[467],description:\"Added navigation.origin attribute\"}]},\"navigation.route.id\":{brief:\"The identifier of the matched client-side route, as assigned by the routing framework (e.g., vue-router name, react-router id).\",type:\"string\",keys:[\"router.navigation.route.id\",\"navigation.route.id\"],applyScrubbing:{key:\"auto\"},isInOtel:!1,visibility:\"public\",example:\"AboutView\",deprecation:{replacement:\"router.navigation.route.id\",reason:\"Moved to the router.* namespace to separate client-side router navigations from browser navigations.\",status:\"backfill\"},aliases:[\"router.navigation.route.id\"],changelog:[{version:\"0.22.0\",prs:[600],description:\"Deprecated in favor of router.navigation.route.id\"},{version:\"0.16.0\",prs:[468],description:\"Added navigation.route.id attribute\"}]},\"navigation.type\":{brief:\"The type of navigation done by a client-side router.\",type:\"string\",keys:[\"router.navigation.type\",\"navigation.type\",\"sentry.sveltekit.navigation.type\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"router.push\",deprecation:{replacement:\"router.navigation.type\",reason:\"Moved to the router.* namespace to separate client-side router navigations from browser navigations.\",status:\"backfill\"},aliases:[\"router.navigation.type\",\"sentry.sveltekit.navigation.type\"],changelog:[{version:\"0.22.0\",prs:[600],description:\"Deprecated in favor of router.navigation.type\"},{version:\"0.16.0\",prs:[467],description:\"Added new deprecated alias\"},{version:\"0.1.0\",prs:[127]},{version:\"0.0.0\"}]},\"nel.elapsed_time\":{brief:\"The elapsed number of milliseconds between the start of the resource fetch and when it was completed or aborted by the user agent.\",type:\"integer\",keys:[\"nel.elapsed_time\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:100,changelog:[{version:\"0.4.0\",prs:[228]},{version:\"0.1.0\",prs:[68]}]},\"nel.phase\":{brief:'If request failed, the phase of its network error. If request succeeded, \"application\".',type:\"string\",keys:[\"nel.phase\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"application\",changelog:[{version:\"0.1.0\",prs:[68,127]}]},\"nel.referrer\":{brief:\"request's referrer, as determined by the referrer policy associated with its client.\",type:\"string\",keys:[\"nel.referrer\"],applyScrubbing:{key:\"auto\"},isInOtel:!1,visibility:\"public\",example:\"https://example.com/foo?bar=baz\",changelog:[{version:\"0.1.0\",prs:[68,127]}]},\"nel.sampling_fraction\":{brief:\"The sampling fraction used to determine if the request should be sampled.\",type:\"double\",keys:[\"nel.sampling_fraction\",\"nel.sampling_function\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:.5,examples:[.5],aliases:[\"nel.sampling_function\"],changelog:[{version:\"0.26.0\",prs:[668],description:\"Added nel.sampling_fraction attribute\"}]},\"nel.sampling_function\":{brief:\"The sampling function used to determine if the request should be sampled.\",type:\"double\",keys:[\"nel.sampling_fraction\",\"nel.sampling_function\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:.5,deprecation:{replacement:\"nel.sampling_fraction\",reason:\"The correct name of this attribute is nel.sampling_fraction\",status:\"backfill\"},aliases:[\"nel.sampling_fraction\"],changelog:[{version:\"0.26.0\",prs:[668],description:\"Deprecated in favor of nel.sampling_fraction\"},{version:\"0.4.0\",prs:[228]},{version:\"0.1.0\",prs:[68]}]},\"nel.type\":{brief:'If request failed, the type of its network error. If request succeeded, \"ok\".',type:\"string\",keys:[\"nel.type\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"dns.unreachable\",changelog:[{version:\"0.1.0\",prs:[68,127]}]},\"network.connection.effective_type\":{brief:\"Specifies the effective type of the current connection (e.g. slow-2g, 2g, 3g, 4g).\",type:\"string\",keys:[\"network.connection.effective_type\",\"effectiveConnectionType\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"4g\",aliases:[\"effectiveConnectionType\"],changelog:[{version:\"0.5.0\",prs:[279],description:\"Added attribute network.connection.effective_type to be used instead of effectiveConnectionType\"}]},\"network.connection.rtt\":{brief:\"Specifies the estimated effective round-trip time of the current connection, in milliseconds.\",type:\"integer\",keys:[\"network.connection.rtt\",\"connection.rtt\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:100,aliases:[\"connection.rtt\"],changelog:[{version:\"0.5.0\",prs:[279],description:\"Added attribute network.connection.rtt to be used instead of connection.rtt\"}]},\"network.connection.type\":{brief:\"Specifies the type of the current connection (e.g. wifi, ethernet, cellular , etc).\",type:\"string\",keys:[\"network.connection.type\",\"connectionType\",\"device.connection_type\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"wifi\",aliases:[\"device.connection_type\",\"connectionType\"],changelog:[{version:\"0.5.0\",prs:[279],description:\"Added attribute network.connection.type to be used instead of connectionType\"}]},\"network.local.address\":{brief:\"Local address of the network connection - IP address or Unix domain socket name.\",type:\"string\",keys:[\"network.local.address\",\"net.host.ip\",\"net.sock.host.addr\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"10.1.2.80\",examples:[\"10.1.2.80\",\"/var/run/my.sock\"],aliases:[\"net.host.ip\",\"net.sock.host.addr\"],changelog:[{version:\"0.1.0\",prs:[127]},{version:\"0.0.0\"}]},\"network.local.port\":{brief:\"Local port number of the network connection.\",type:\"integer\",keys:[\"network.local.port\",\"net.sock.host.port\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:65400,aliases:[\"net.sock.host.port\"],changelog:[{version:\"0.4.0\",prs:[228]},{version:\"0.0.0\"}]},\"network.peer.address\":{brief:\"Peer address of the network connection - IP address or Unix domain socket name.\",type:\"string\",keys:[\"network.peer.address\",\"net.peer.ip\",\"net.sock.peer.addr\"],applyScrubbing:{key:\"auto\"},isInOtel:!0,visibility:\"public\",example:\"10.1.2.80\",aliases:[\"net.peer.ip\",\"net.sock.peer.addr\"],changelog:[{version:\"0.1.0\",prs:[108,127]},{version:\"0.0.0\"}]},\"network.peer.port\":{brief:\"Peer port number of the network connection.\",type:\"integer\",keys:[\"network.peer.port\",\"net.sock.peer.port\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:65400,aliases:[\"net.sock.peer.port\"],changelog:[{version:\"0.21.0\",prs:[588],description:\"Added net.sock.peer.port as an alias\"},{version:\"0.4.0\",prs:[228]},{version:\"0.0.0\"}]},\"network.protocol.name\":{brief:\"OSI application layer or non-OSI equivalent.\",type:\"string\",keys:[\"network.protocol.name\",\"mcp.resource.protocol\",\"messaging.protocol\",\"net.protocol.name\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"http\",aliases:[\"net.protocol.name\",\"mcp.resource.protocol\",\"messaging.protocol\"],changelog:[{version:\"0.21.0\",prs:[581],description:\"Added messaging.protocol as an alias\"},{version:\"0.1.0\",prs:[127]},{version:\"0.0.0\"}]},\"network.protocol.version\":{brief:\"The actual version of the protocol used for network communication.\",type:\"string\",keys:[\"network.protocol.version\",\"http.flavor\",\"messaging.protocol_version\",\"net.protocol.version\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"1.1\",aliases:[\"http.flavor\",\"net.protocol.version\",\"messaging.protocol_version\"],changelog:[{version:\"0.21.0\",prs:[581],description:\"Added messaging.protocol_version as an alias\"},{version:\"0.1.0\",prs:[127]},{version:\"0.0.0\"}]},\"network.transport\":{brief:\"OSI transport layer or inter-process communication method.\",type:\"string\",keys:[\"network.transport\",\"mcp.transport\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"tcp\",aliases:[\"net.transport\",\"mcp.transport\"],changelog:[{version:\"0.1.0\",prs:[127]},{version:\"0.0.0\"}]},\"network.type\":{brief:\"OSI network layer or non-OSI equivalent.\",type:\"string\",keys:[\"network.type\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"ipv4\",changelog:[{version:\"0.1.0\",prs:[127]},{version:\"0.0.0\"}]},\"net.host.ip\":{brief:\"Local address of the network connection - IP address or Unix domain socket name.\",type:\"string\",keys:[\"network.local.address\",\"net.host.ip\",\"net.sock.host.addr\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"192.168.0.1\",deprecation:{replacement:\"network.local.address\",status:\"backfill\"},aliases:[\"network.local.address\",\"net.sock.host.addr\"],changelog:[{version:\"0.1.0\",prs:[61,108,127]},{version:\"0.0.0\"}]},\"net.host.name\":{brief:\"Server domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name.\",type:\"string\",keys:[\"server.address\",\"address\",\"http.server_name\",\"net.host.name\",\"server_name\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"example.com\",deprecation:{replacement:\"server.address\",status:\"backfill\"},aliases:[\"address\",\"server.address\",\"http.server_name\",\"http.host\",\"server_name\",\"net.peer.name\"],changelog:[{version:\"0.24.0\",prs:[647],description:\"Added server_name as an alias\"},{version:\"0.21.0\",prs:[588,602],description:\"Added net.peer.name as an alias\"},{version:\"0.19.0\",prs:[534],description:\"Added address as an alias\"},{version:\"0.1.0\",prs:[61,108,127]},{version:\"0.0.0\"}]},\"net.host.port\":{brief:\"Server port number.\",type:\"integer\",keys:[\"server.port\",\"net.host.port\",\"port\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:1337,deprecation:{replacement:\"server.port\",status:\"backfill\"},aliases:[\"server.port\",\"port\"],changelog:[{version:\"0.19.0\",prs:[532],description:\"Added port as an alias\"},{version:\"0.4.0\",prs:[228]},{version:\"0.1.0\",prs:[61]},{version:\"0.0.0\"}]},\"net.peer.ip\":{brief:\"Peer address of the network connection - IP address or Unix domain socket name.\",type:\"string\",keys:[\"network.peer.address\",\"net.peer.ip\",\"net.sock.peer.addr\"],applyScrubbing:{key:\"auto\"},isInOtel:!0,visibility:\"public\",example:\"192.168.0.1\",deprecation:{replacement:\"network.peer.address\",status:\"backfill\"},aliases:[\"network.peer.address\",\"net.sock.peer.addr\"],changelog:[{version:\"0.1.0\",prs:[61,108,127]},{version:\"0.0.0\"}]},\"net.peer.name\":{brief:\"Server domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name.\",type:\"string\",keys:[\"net.peer.name\"],applyScrubbing:{key:\"auto\"},isInOtel:!0,visibility:\"public\",example:\"example.com\",deprecation:{replacement:\"server.address\",reason:\"Deprecated, use server.address on client spans and client.address on server spans.\"},aliases:[\"address\",\"server.address\",\"http.server_name\",\"net.host.name\",\"http.host\",\"server_name\"],changelog:[{version:\"0.24.0\",prs:[647],description:\"Added server_name as an alias\"},{version:\"0.21.0\",prs:[588,602],description:\"Added the server.address alias group to net.peer.name\"},{version:\"0.1.0\",prs:[61,127]},{version:\"0.0.0\"}]},\"net.peer.port\":{brief:\"Peer port number.\",type:\"integer\",keys:[\"net.peer.port\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:1337,deprecation:{replacement:\"server.port\",reason:\"Deprecated, use server.port on client spans and client.port on server spans.\"},changelog:[{version:\"0.4.0\",prs:[228]},{version:\"0.1.0\",prs:[61]},{version:\"0.0.0\"}]},\"net.protocol.name\":{brief:\"OSI application layer or non-OSI equivalent.\",type:\"string\",keys:[\"network.protocol.name\",\"mcp.resource.protocol\",\"messaging.protocol\",\"net.protocol.name\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"http\",deprecation:{replacement:\"network.protocol.name\",status:\"backfill\"},aliases:[\"network.protocol.name\",\"mcp.resource.protocol\",\"messaging.protocol\"],changelog:[{version:\"0.21.0\",prs:[581],description:\"Added messaging.protocol as an alias\"},{version:\"0.1.0\",prs:[61,127]},{version:\"0.0.0\"}]},\"net.protocol.version\":{brief:\"The actual version of the protocol used for network communication.\",type:\"string\",keys:[\"network.protocol.version\",\"http.flavor\",\"messaging.protocol_version\",\"net.protocol.version\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"1.1\",deprecation:{replacement:\"network.protocol.version\",status:\"backfill\"},aliases:[\"network.protocol.version\",\"http.flavor\",\"messaging.protocol_version\"],changelog:[{version:\"0.21.0\",prs:[581],description:\"Added messaging.protocol_version as an alias\"},{version:\"0.1.0\",prs:[61,108,127]},{version:\"0.0.0\"}]},\"net.sock.family\":{brief:\"OSI transport and network layer\",type:\"string\",keys:[\"net.sock.family\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"inet\",deprecation:{replacement:\"network.transport\",reason:\"Deprecated, use network.transport and network.type.\"},changelog:[{version:\"0.1.0\",prs:[61,127]},{version:\"0.0.0\"}]},\"net.sock.host.addr\":{brief:\"Local address of the network connection mapping to Unix domain socket name.\",type:\"string\",keys:[\"network.local.address\",\"net.host.ip\",\"net.sock.host.addr\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"/var/my.sock\",deprecation:{replacement:\"network.local.address\",status:\"backfill\"},aliases:[\"network.local.address\",\"net.host.ip\"],changelog:[{version:\"0.1.0\",prs:[61,108,127]},{version:\"0.0.0\"}]},\"net.sock.host.port\":{brief:\"Local port number of the network connection.\",type:\"integer\",keys:[\"network.local.port\",\"net.sock.host.port\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:8080,deprecation:{replacement:\"network.local.port\",status:\"backfill\"},aliases:[\"network.local.port\"],changelog:[{version:\"0.4.0\",prs:[228]},{version:\"0.1.0\",prs:[61]},{version:\"0.0.0\"}]},\"net.sock.peer.addr\":{brief:\"Peer address of the network connection - IP address\",type:\"string\",keys:[\"network.peer.address\",\"net.peer.ip\",\"net.sock.peer.addr\"],applyScrubbing:{key:\"auto\"},isInOtel:!0,visibility:\"public\",example:\"192.168.0.1\",deprecation:{replacement:\"network.peer.address\",status:\"backfill\"},aliases:[\"network.peer.address\",\"net.peer.ip\"],changelog:[{version:\"0.1.0\",prs:[61,108,127]},{version:\"0.0.0\"}]},\"net.sock.peer.name\":{brief:\"Peer address of the network connection - Unix domain socket name\",type:\"string\",keys:[\"net.sock.peer.name\"],applyScrubbing:{key:\"auto\"},isInOtel:!0,visibility:\"public\",example:\"/var/my.sock\",deprecation:{reason:\"Deprecated from OTEL, no replacement at this time\"},changelog:[{version:\"0.1.0\",prs:[61,119,127]},{version:\"0.0.0\"}]},\"net.sock.peer.port\":{brief:\"Peer port number of the network connection.\",type:\"integer\",keys:[\"network.peer.port\",\"net.sock.peer.port\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:8080,deprecation:{replacement:\"network.peer.port\",status:\"backfill\"},aliases:[\"network.peer.port\"],changelog:[{version:\"0.21.0\",prs:[588],description:\"Added network.peer.port as an alias\"},{version:\"0.4.0\",prs:[228]},{version:\"0.1.0\",prs:[61]},{version:\"0.0.0\"}]},\"net.transport\":{brief:\"OSI transport layer or inter-process communication method.\",type:\"string\",keys:[\"net.transport\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"tcp\",deprecation:{replacement:\"network.transport\",reason:\"This attribute is being deprecated in favor of network.transport. The values change from ip_tcp and ip_udp to tcp and udp, so the old value cannot be copied over.\"},aliases:[\"network.transport\",\"mcp.transport\"],changelog:[{version:\"0.21.0\",prs:[588],description:\"Set net.transport to _status null, because its values change on the replacement\"},{version:\"0.1.0\",prs:[61,127]},{version:\"0.0.0\"}]},\"os.build\":{brief:\"The build ID of the operating system.\",type:\"string\",keys:[\"os.build_id\",\"os.build\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"1234567890\",deprecation:{replacement:\"os.build_id\",status:\"backfill\"},aliases:[\"os.build_id\"],changelog:[{version:\"0.5.0\",prs:[301],description:\"Added os.build attribute, deprecated in favor of os.build_id\"}]},\"os.build_id\":{brief:\"The build ID of the operating system.\",type:\"string\",keys:[\"os.build_id\",\"os.build\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"1234567890\",aliases:[\"os.build\"],changelog:[{version:\"0.5.0\",prs:[301],description:\"Added os.build as alias\"},{version:\"0.1.0\",prs:[127]},{version:\"0.0.0\"}]},\"os.description\":{brief:\"Human readable (not intended to be parsed) OS version information, like e.g. reported by ver or lsb_release -a commands.\",type:\"string\",keys:[\"os.description\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"Ubuntu 18.04.1 LTS\",changelog:[{version:\"0.1.0\",prs:[127]},{version:\"0.0.0\"}]},\"os.kernel_version\":{brief:\"An independent kernel version string. Typically the entire output of the `uname` syscall.\",type:\"string\",keys:[\"os.kernel_version\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"20.2.0\",changelog:[{version:\"0.5.0\",prs:[301],description:\"Added os.kernel_version attribute\"}]},\"os.name\":{brief:\"Human readable operating system name.\",type:\"string\",keys:[\"os.name\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"Ubuntu\",changelog:[{version:\"0.1.0\",prs:[127]},{version:\"0.0.0\"}]},\"os.raw_description\":{brief:\"An unprocessed description string obtained by the operating system. For some well-known runtimes, Sentry will attempt to parse `name` and `version` from this string, if they are not explicitly given.\",type:\"string\",keys:[\"os.raw_description\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"Ubuntu 22.04.4 LTS (Jammy Jellyfish)\",changelog:[{version:\"0.5.0\",prs:[301],description:\"Added os.raw_description attribute\"}]},\"os.rooted\":{brief:\"Whether the operating system has been jailbroken or rooted.\",type:\"boolean\",keys:[\"os.rooted\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:!0,changelog:[{version:\"0.5.0\",prs:[301],description:\"Added os.rooted attribute\"}]},\"os.theme\":{brief:\"Whether the OS runs in dark mode or light mode.\",type:\"string\",keys:[\"os.theme\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"dark\",changelog:[{version:\"0.5.0\",prs:[301],description:\"Added os.theme attribute\"}]},\"os.type\":{brief:\"The operating system type.\",type:\"string\",keys:[\"os.type\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"linux\",changelog:[{version:\"0.1.0\",prs:[127]},{version:\"0.0.0\"}]},\"os.version\":{brief:\"The version of the operating system.\",type:\"string\",keys:[\"os.version\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"18.04.2\",changelog:[{version:\"0.1.0\",prs:[127]},{version:\"0.0.0\"}]},\"otel.kind\":{brief:\"The span kind (https://opentelemetry.io/docs/concepts/signals/traces/#span-kind). Deprecated, use `sentry.kind` instead.\",type:\"string\",keys:[\"sentry.kind\",\"span.kind\",\"otel.kind\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"SERVER\",deprecation:{replacement:\"sentry.kind\",reason:\"Deprecated in favor of sentry.kind\",status:\"backfill\"},aliases:[\"sentry.kind\"],changelog:[{version:\"0.13.0\",prs:[440],description:\"Added otel.kind attribute\"}]},\"otel.scope.name\":{brief:\"The name of the instrumentation scope - (InstrumentationScope.Name in OTLP).\",type:\"string\",keys:[\"otel.scope.name\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"io.opentelemetry.contrib.mongodb\",changelog:[{version:\"0.1.0\",prs:[127]},{version:\"0.0.0\"}]},\"otel.scope.version\":{brief:\"The version of the instrumentation scope - (InstrumentationScope.Version in OTLP).\",type:\"string\",keys:[\"otel.scope.version\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"2.4.5\",changelog:[{version:\"0.1.0\",prs:[127]},{version:\"0.0.0\"}]},\"otel.status_code\":{brief:\"Name of the code, either \\u201COK\\u201D or \\u201CERROR\\u201D. MUST NOT be set if the status code is UNSET.\",type:\"string\",keys:[\"otel.status_code\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"OK\",changelog:[{version:\"0.1.0\",prs:[127]},{version:\"0.0.0\"}]},\"otel.status_description\":{brief:\"Description of the Status if it has a value, otherwise not set.\",type:\"string\",keys:[\"otel.status_description\"],applyScrubbing:{key:\"auto\"},isInOtel:!0,visibility:\"public\",example:\"resource not found\",changelog:[{version:\"0.1.0\",prs:[127]},{version:\"0.0.0\"}]},\"params.<key>\":{brief:\"Decoded parameters extracted from a URL path. Usually added by client-side routing frameworks like vue-router.\",type:\"string\",keys:[\"params.<key>\",\"url.path.parameter.<key>\",\"url.path.params.<key>\"],applyScrubbing:{key:\"auto\"},isInOtel:!1,visibility:\"public\",hasDynamicSuffix:!0,example:\"params.id='123'\",aliases:[\"url.path.parameter.<key>\",\"url.path.params.<key>\"],changelog:[{version:\"0.21.0\",prs:[586],description:\"Added url.path.params.<key> as an alias\"},{version:\"0.1.0\",prs:[103]}]},\"performance.activationStart\":{brief:\"The time between initiating a navigation to a page and the browser activating the page\",type:\"double\",keys:[\"browser.performance.navigation.activation_start\",\"performance.activationStart\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:1.983,deprecation:{replacement:\"browser.performance.navigation.activation_start\",reason:\"The activationStart is now recorded as the browser.performance.navigation.activation_start attribute.\",status:\"backfill\"},aliases:[\"browser.performance.navigation.activation_start\"],changelog:[{version:\"0.5.0\",prs:[321],description:\"Added performance.activationStart attribute\"}]},\"performance.timeOrigin\":{brief:\"The browser's performance.timeOrigin timestamp representing the time when the pageload was initiated\",type:\"double\",keys:[\"browser.performance.time_origin\",\"performance.timeOrigin\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:1776185678886e-3,deprecation:{replacement:\"browser.performance.time_origin\",reason:\"The timeOrigin is now recorded as the browser.performance.time_origin attribute.\",status:\"backfill\"},aliases:[\"browser.performance.time_origin\"],changelog:[{version:\"0.5.0\",prs:[321],description:\"Added performance.timeOrigin attribute\"}]},port:{brief:\"The destination port for a TCP connection.\",type:\"integer\",keys:[\"server.port\",\"net.host.port\",\"port\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:1337,examples:[1337],deprecation:{replacement:\"server.port\",reason:\"Old namespace-less attribute, to be replaced with server.port for span-first future\",status:\"backfill\"},aliases:[\"server.port\",\"net.host.port\"],changelog:[{version:\"0.19.0\",prs:[532],description:\"Added port attribute\"}]},previous_route:{brief:\"Also used by mobile SDKs to indicate the previous route in the application.\",type:\"string\",keys:[\"previous_route\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"HomeScreen\",changelog:[{version:\"0.1.0\",prs:[74]},{version:\"0.0.0\"}]},\"process.command_args\":{brief:\"All the command arguments (including the command/executable itself) as received by the process.\",type:\"string[]\",keys:[\"process.command_args\"],applyScrubbing:{key:\"auto\"},isInOtel:!0,visibility:\"public\",example:[\"cmd/otecol\",\"--config=config.yaml\"],changelog:[{version:\"0.6.0\",prs:[327],description:\"Added process.command_args attribute\"}]},\"process.executable.name\":{brief:\"The name of the executable that started the process.\",type:\"string\",keys:[\"process.executable.name\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"getsentry\",changelog:[{version:\"0.1.0\",prs:[127]},{version:\"0.0.0\"}]},\"process.pid\":{brief:\"The process ID of the running process.\",type:\"integer\",keys:[\"process.pid\",\"subprocess.pid\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:12345,aliases:[\"subprocess.pid\"],changelog:[{version:\"0.19.0\",prs:[487],description:\"Added subprocess.pid as an alias\"},{version:\"0.4.0\",prs:[228]},{version:\"0.0.0\"}]},\"process.runtime.description\":{brief:\"An additional description about the runtime of the process, for example a specific vendor customization of the runtime environment. Equivalent to `raw_description` in the Sentry runtime context.\",type:\"string\",keys:[\"process.runtime.description\",\"runtime.raw_description\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"Eclipse OpenJ9 VM openj9-0.21.0\",aliases:[\"runtime.raw_description\"],changelog:[{version:\"0.1.0\",prs:[127]},{version:\"0.0.0\"}]},\"process.runtime.engine.name\":{brief:\"The name of the runtime engine.\",type:\"string\",keys:[\"process.runtime.engine.name\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"v8\",changelog:[{version:\"0.0.0\"}]},\"process.runtime.engine.version\":{brief:\"The version of the runtime engine.\",type:\"string\",keys:[\"process.runtime.engine.version\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"12.9.202.13-rusty\",changelog:[{version:\"0.0.0\"}]},\"process.runtime.name\":{brief:\"The name of the runtime. Equivalent to `name` in the Sentry runtime context.\",type:\"string\",keys:[\"process.runtime.name\",\"runtime.name\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"node\",aliases:[\"runtime.name\"],changelog:[{version:\"0.1.0\",prs:[127]},{version:\"0.0.0\"}]},\"process.runtime.version\":{brief:\"The version of the runtime of this process, as returned by the runtime without modification. Equivalent to `version` in the Sentry runtime context.\",type:\"string\",keys:[\"process.runtime.version\",\"runtime.version\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"18.04.2\",aliases:[\"runtime.version\"],changelog:[{version:\"0.1.0\",prs:[127]},{version:\"0.0.0\"}]},profile_id:{brief:\"The ID of the Sentry profile the span is associated with. This is only meaningful for transaction-based profiling.\",type:\"string\",keys:[\"sentry.profile_id\",\"profile.id\",\"profile_id\"],applyScrubbing:{key:\"never\"},isInOtel:!1,visibility:\"public\",example:\"123e4567e89b12d3a456426614174000\",deprecation:{replacement:\"sentry.profile_id\",status:\"normalize\"},aliases:[\"sentry.profile_id\"],changelog:[{version:\"0.19.0\",prs:[497],description:\"Added profile_id attribute\"}]},query:{brief:\"The database query being executed.\",type:\"string\",keys:[\"db.query.text\",\"db.statement\",\"query\"],applyScrubbing:{key:\"auto\"},isInOtel:!1,visibility:\"public\",example:\"SELECT * FROM users WHERE id = $1\",examples:[\"SELECT * FROM users WHERE id = $1\"],deprecation:{replacement:\"db.query.text\",reason:\"While this attribute never specifically required parameterization, the replacement, db.query.text, does.\",status:\"backfill\"},aliases:[\"db.query.text\",\"db.statement\"],changelog:[{version:\"0.19.0\",prs:[530],description:\"Added query attribute\"}]},\"query.<key>\":{brief:\"An item in a query string. Usually added by client-side routing frameworks like vue-router.\",type:\"string\",keys:[\"query.<key>\"],applyScrubbing:{key:\"auto\"},isInOtel:!1,visibility:\"public\",hasDynamicSuffix:!0,example:\"query.id='123'\",deprecation:{replacement:\"url.query\",reason:\"Instead of sending items individually in query.<key>, they should be sent all together with url.query.\"},changelog:[{version:\"0.1.0\",prs:[103]}]},\"react_native.architecture\":{brief:\"The React Native architecture the app is running on. `new` for the New Architecture, where native modules are resolved as TurboModules through `TurboModuleRegistry`, `legacy` for the Old Architecture bridge.\",type:\"string\",keys:[\"react_native.architecture\",\"turbo_module.arch\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"new\",examples:[\"new\",\"legacy\"],aliases:[\"turbo_module.arch\"],changelog:[{version:\"0.24.0\",prs:[564],description:\"Added react_native.architecture attribute\"}]},\"react_native.module.call.count\":{brief:\"The number of native module calls observed during the lifetime of the span.\",type:\"integer\",keys:[\"react_native.module.call.count\",\"turbo_module.total_call_count\",\"turbo_modules.total_call_count\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:42,examples:[42],aliases:[\"turbo_module.total_call_count\",\"turbo_modules.total_call_count\"],changelog:[{version:\"0.24.0\",prs:[564],description:\"Added react_native.module.call.count attribute\"}]},\"react_native.module.call.distinct_count\":{brief:\"The number of distinct native module and method pairs called during the lifetime of the span. Useful as a cardinality signal when the per-method breakdown has been truncated.\",type:\"integer\",keys:[\"react_native.module.call.distinct_count\",\"turbo_module.unique_methods\",\"turbo_modules.unique_methods\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:7,examples:[7],aliases:[\"turbo_module.unique_methods\",\"turbo_modules.unique_methods\"],changelog:[{version:\"0.24.0\",prs:[564],description:\"Added react_native.module.call.distinct_count attribute\"}]},\"react_native.module.duration.max\":{brief:\"The duration of the slowest single native module call observed during the lifetime of the span, in milliseconds.\",type:\"double\",keys:[\"react_native.module.duration.max\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:512.5,examples:[512.5],changelog:[{version:\"0.24.0\",prs:[564],description:\"Added react_native.module.duration.max attribute\"}]},\"react_native.module.duration.total\":{brief:\"The combined wall-clock duration of all native module calls observed during the lifetime of the span, in milliseconds. Calls overlap, so this can exceed the span duration.\",type:\"double\",keys:[\"react_native.module.duration.total\",\"turbo_module.total_duration_ms\",\"turbo_modules.total_duration_ms\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:128.45,examples:[128.45],aliases:[\"turbo_module.total_duration_ms\",\"turbo_modules.total_duration_ms\"],changelog:[{version:\"0.24.0\",prs:[564],description:\"Added react_native.module.duration.total attribute\"}]},\"react_native.module.error.count\":{brief:\"The number of native module calls that failed during the lifetime of the span. A call counts as failed when it threw, rejected, or \\u2014 on the Old Architecture bridge only \\u2014 invoked its failure callback.\",type:\"integer\",keys:[\"react_native.module.error.count\",\"turbo_module.total_error_count\",\"turbo_modules.total_error_count\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:2,examples:[2],aliases:[\"turbo_module.total_error_count\",\"turbo_modules.total_error_count\"],changelog:[{version:\"0.24.0\",prs:[564],description:\"Added react_native.module.error.count attribute\"}]},\"react_native.module.kind\":{brief:\"Whether the native module call completed synchronously or reported completion later through a Promise or a callback. One of `sync` or `async`.\",type:\"string\",keys:[\"react_native.module.kind\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"sync\",examples:[\"sync\",\"async\"],changelog:[{version:\"0.24.0\",prs:[564],description:\"Added react_native.module.kind attribute\"}]},\"react_native.module.method\":{brief:\"The name of the native module method that was called.\",type:\"string\",keys:[\"react_native.module.method\",\"turbo_module.method\"],applyScrubbing:{key:\"manual\",reason:\"Native module and method names are app-defined identifiers, but scrubbing them would make the call attribution unusable\"},isInOtel:!1,visibility:\"public\",example:\"getUniqueId\",examples:[\"getUniqueId\"],aliases:[\"turbo_module.method\"],changelog:[{version:\"0.24.0\",prs:[564],description:\"Added react_native.module.method attribute\"}]},\"react_native.module.name\":{brief:\"The name of the native module the call was dispatched to. On the New Architecture this is the TurboModule name, on the Old Architecture the `NativeModules` key.\",type:\"string\",keys:[\"react_native.module.name\",\"turbo_module.name\"],applyScrubbing:{key:\"manual\",reason:\"Native module and method names are app-defined identifiers, but scrubbing them would make the call attribution unusable\"},isInOtel:!1,visibility:\"public\",example:\"RNDeviceInfo\",examples:[\"RNDeviceInfo\"],aliases:[\"turbo_module.name\"],changelog:[{version:\"0.24.0\",prs:[564],description:\"Added react_native.module.name attribute\"}]},\"react_native.module.top.duration\":{brief:\"The total duration attributed to `react_native.module.top.name`, in milliseconds.\",type:\"double\",keys:[\"react_native.module.top.duration\",\"turbo_module.top_module_duration_ms\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:87.25,examples:[87.25],aliases:[\"turbo_module.top_module_duration_ms\"],changelog:[{version:\"0.24.0\",prs:[564],description:\"Added react_native.module.top.duration attribute\"}]},\"react_native.module.top.name\":{brief:\"The native module and method that accounted for the most total duration during the lifetime of the span, formatted as `<module>.<method>`.\",type:\"string\",keys:[\"react_native.module.top.name\",\"turbo_module.top_module\"],applyScrubbing:{key:\"manual\",reason:\"Native module and method names are app-defined identifiers, but scrubbing them would make the call attribution unusable\"},isInOtel:!1,visibility:\"public\",example:\"RNDeviceInfo.getUniqueId\",examples:[\"RNDeviceInfo.getUniqueId\"],aliases:[\"turbo_module.top_module\"],changelog:[{version:\"0.24.0\",prs:[564],description:\"Added react_native.module.top.name attribute\"}]},\"react.version\":{brief:\"The version of the React framework\",type:\"string\",keys:[\"react.version\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"18.2.0\",changelog:[{version:\"0.7.0\",prs:[368],description:\"Added react.version attribute\"}]},\"redis.command\":{brief:\"The name of the Redis operation being executed.\",type:\"string\",keys:[\"db.operation.name\",\"cloudflare.d1.query_type\",\"db.operation\",\"redis.command\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"SELECT\",examples:[\"SELECT\"],deprecation:{replacement:\"db.operation.name\",status:\"backfill\"},aliases:[\"cloudflare.d1.query_type\",\"db.operation.name\",\"db.operation\"],changelog:[{version:\"0.19.0\",prs:[531],description:\"Added redis.command attribute\"}]},\"redis.key\":{brief:\"The key the Redis command is operating on.\",type:\"string\",keys:[\"db.redis.key\",\"redis.key\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"user:2047:city\",deprecation:{replacement:\"db.redis.key\",reason:\"This attribute is being deprecated in favor of db.redis.key, which is the preferred replacement.\",status:\"backfill\"},aliases:[\"db.redis.key\"],changelog:[{version:\"0.19.0\",prs:[484],description:\"Added redis.key attribute, deprecated in favor of db.redis.key\"}]},release:{brief:\"The sentry release.\",type:\"string\",keys:[\"sentry.release\",\"release\",\"service.version\"],applyScrubbing:{key:\"never\"},isInOtel:!1,visibility:\"public\",example:\"production\",deprecation:{replacement:\"sentry.release\",status:\"normalize\"},aliases:[\"sentry.release\"],changelog:[{version:\"0.19.0\",prs:[497],description:\"Configured normalization\"},{version:\"0.1.0\",prs:[61,127]},{version:\"0.0.0\"}]},\"remix.action_form_data.<key>\":{brief:\"Remix form data, <key> being the form data key, the value being the form data value.\",type:\"string\",keys:[\"remix.action_form_data.<key>\"],applyScrubbing:{key:\"auto\"},isInOtel:!1,visibility:\"public\",hasDynamicSuffix:!0,example:\"http.response.header.text='test'\",changelog:[{version:\"0.1.0\",prs:[103]}]},replayId:{brief:\"The id of the sentry replay.\",type:\"string\",keys:[\"replayId\"],applyScrubbing:{key:\"never\"},isInOtel:!1,visibility:\"public\",example:\"123e4567e89b12d3a456426614174000\",deprecation:{replacement:\"sentry.replay_id\"},aliases:[\"sentry.replay_id\"],changelog:[{version:\"0.24.0\",prs:[401]}]},replay_id:{brief:\"The id of the sentry replay.\",type:\"string\",keys:[\"sentry.replay_id\",\"replay.id\",\"replay_id\"],applyScrubbing:{key:\"never\"},isInOtel:!1,visibility:\"public\",example:\"123e4567e89b12d3a456426614174000\",deprecation:{replacement:\"sentry.replay_id\",status:\"normalize\"},aliases:[\"sentry.replay_id\"],changelog:[{version:\"0.19.0\",prs:[497],description:\"Configured normalization\"},{version:\"0.1.0\",prs:[61]},{version:\"0.0.0\"}]},\"resource.deployment.environment\":{brief:\"The software deployment environment name.\",type:\"string\",keys:[\"sentry.environment\",\"environment\",\"resource.deployment.environment\",\"resource.deployment.environment.name\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"production\",deprecation:{replacement:\"sentry.environment\",status:\"backfill\"},changelog:[{version:\"0.5.0\",prs:[266]}]},\"resource.deployment.environment.name\":{brief:\"The software deployment environment name.\",type:\"string\",keys:[\"sentry.environment\",\"environment\",\"resource.deployment.environment\",\"resource.deployment.environment.name\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"production\",deprecation:{replacement:\"sentry.environment\",status:\"backfill\"},changelog:[{version:\"0.3.1\",prs:[196]}]},\"resource.render_blocking_status\":{brief:\"The render blocking status of the resource.\",type:\"string\",keys:[\"resource.render_blocking_status\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"non-blocking\",changelog:[{version:\"0.1.0\",prs:[127]},{version:\"0.0.0\"}]},route:{brief:\"The matched route, that is, the path template in the format used by the respective server framework. Also used by mobile SDKs to indicate the current route in the application.\",type:\"string\",keys:[\"route\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"App\\\\Controller::indexAction\",deprecation:{replacement:\"http.route\"},aliases:[\"http.route\"],changelog:[{version:\"0.1.0\",prs:[61,74]},{version:\"0.0.0\"}]},\"router.navigation.origin\":{brief:\"The origin of the navigation (usually client side router navigations). Should preferably be a parameterized template (like url.template) or a URL path otherwise.\",type:\"string\",keys:[\"router.navigation.origin\",\"navigation.origin\",\"sentry.sveltekit.navigation.from\"],applyScrubbing:{key:\"auto\"},isInOtel:!1,visibility:\"public\",example:\"/users/:id\",aliases:[\"navigation.origin\",\"sentry.sveltekit.navigation.from\"],changelog:[{version:\"0.22.0\",prs:[600],description:\"Added router.navigation.origin attribute, replacing navigation.origin\"}]},\"router.navigation.route.id\":{brief:\"The identifier of the matched client-side route, as assigned by the routing framework (e.g., vue-router name, react-router id).\",type:\"string\",keys:[\"router.navigation.route.id\",\"navigation.route.id\"],applyScrubbing:{key:\"auto\"},isInOtel:!1,visibility:\"public\",example:\"AboutView\",aliases:[\"navigation.route.id\"],changelog:[{version:\"0.22.0\",prs:[600],description:\"Added router.navigation.route.id attribute, replacing navigation.route.id\"}]},\"router.navigation.type\":{brief:\"The type of navigation done by a client-side router.\",type:\"string\",keys:[\"router.navigation.type\",\"navigation.type\",\"sentry.sveltekit.navigation.type\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"router.push\",aliases:[\"navigation.type\",\"sentry.sveltekit.navigation.type\"],changelog:[{version:\"0.22.0\",prs:[600],description:\"Added router.navigation.type attribute, replacing navigation.type\"}]},\"rpc.grpc.status_code\":{brief:\"The numeric status code of the gRPC request.\",type:\"integer\",keys:[\"rpc.grpc.status_code\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:2,deprecation:{replacement:\"rpc.response.status_code\",reason:\"Cannot be automatically backfilled due to type mismatch (integer vs string); rpc.grpc.status_code is a numeric gRPC status code while rpc.response.status_code is the string status name.\"},aliases:[\"code\",\"rpc.response.status_code\"],changelog:[{version:\"0.19.0\",prs:[494,533],description:\"Deprecated rpc.grpc.status_code in favor of rpc.response.status_code\"},{version:\"0.4.0\",prs:[228]},{version:\"0.0.0\"}]},\"rpc.method\":{brief:\"The fully-qualified logical name of the method from the RPC interface perspective.\",type:\"string\",keys:[\"rpc.method\",\"aws.operation_name\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"com.example.ExampleService/exampleMethod\",aliases:[\"aws.operation_name\"],changelog:[{version:\"0.19.0\",prs:[536],description:\"Added aws.operation_name as an alias\"},{version:\"0.7.0\",prs:[351],description:\"Added rpc.method attribute\"}]},\"rpc.response.status_code\":{brief:\"Status code of the RPC returned by the RPC server or generated by the client.\",type:\"string\",keys:[\"rpc.response.status_code\",\"code\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"DEADLINE_EXCEEDED\",aliases:[\"code\",\"rpc.grpc.status_code\"],changelog:[{version:\"0.19.0\",prs:[494,533],description:\"Added code and rpc.grpc.status_code as aliases\"},{version:\"0.7.0\",prs:[352],description:\"Added rpc.response.status_code attribute\"}]},\"rpc.service\":{brief:\"The full (logical) name of the service being called, including its package name, if applicable.\",type:\"string\",keys:[\"rpc.service\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"myService.BestService\",changelog:[{version:\"0.1.0\",prs:[127]},{version:\"0.0.0\"}]},\"rpc.system\":{brief:\"A string identifying the remoting system.\",type:\"string\",keys:[\"rpc.system.name\",\"rpc.system\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"aws-api\",deprecation:{replacement:\"rpc.system.name\",reason:\"This attribute is being deprecated in favor of rpc.system.name, which is the OTel-aligned replacement.\",status:\"backfill\"},aliases:[\"rpc.system.name\"],changelog:[{version:\"0.16.0\",prs:[482],description:\"Added rpc.system attribute, deprecated in favor of rpc.system.name\"}]},\"rpc.system.name\":{brief:\"A string identifying the remoting system.\",type:\"string\",keys:[\"rpc.system.name\",\"rpc.system\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"aws-api\",aliases:[\"rpc.system\"],changelog:[{version:\"0.16.0\",prs:[482],description:\"Added rpc.system.name attribute\"}]},\"runtime.build\":{brief:\"The application build string, when it is separate from the version.\",type:\"string\",keys:[\"runtime.build\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"stable\",deprecation:{reason:\"The runtime.* namespace is deprecated in favor of process.runtime.*. No direct OTel equivalent exists for this attribute.\"},changelog:[{version:\"0.11.0\",prs:[383],description:\"Added and deprecated runtime.build attribute\"}]},\"runtime.name\":{brief:\"The name of the runtime. For example node, CPython, or rustc.\",type:\"string\",keys:[\"process.runtime.name\",\"runtime.name\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"node\",deprecation:{replacement:\"process.runtime.name\",reason:\"Prefer OTel-aligned process.runtime.name\",status:\"backfill\"},aliases:[\"process.runtime.name\"],changelog:[{version:\"0.11.0\",prs:[383],description:\"Added and deprecated runtime.name attribute in favor of process.runtime.name\"}]},\"runtime.raw_description\":{brief:\"Unprocessed description string as obtained from the runtime. Used to extract name and version for well-known runtimes.\",type:\"string\",keys:[\"process.runtime.description\",\"runtime.raw_description\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"Eclipse OpenJ9 VM openj9-0.21.0\",deprecation:{replacement:\"process.runtime.description\",reason:\"Prefer OTel-aligned process.runtime.description\",status:\"backfill\"},aliases:[\"process.runtime.description\"],changelog:[{version:\"0.11.0\",prs:[383],description:\"Added and deprecated runtime.raw_description attribute in favor of process.runtime.description\"}]},\"runtime.version\":{brief:\"The version of the runtime.\",type:\"string\",keys:[\"process.runtime.version\",\"runtime.version\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"18.04.2\",deprecation:{replacement:\"process.runtime.version\",reason:\"Prefer OTel-aligned process.runtime.version\",status:\"backfill\"},aliases:[\"process.runtime.version\"],changelog:[{version:\"0.11.0\",prs:[383],description:\"Added and deprecated runtime.version attribute in favor of process.runtime.version\"}]},\"score.<key>\":{brief:\"The weighted performance score for a web vital. This is defined as `score.weight.<key>` * `score.ratio.<key>`.\",type:\"double\",keys:[\"score.<key>\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",hasDynamicSuffix:!0,example:\"score.cls=0.1723\",changelog:[{version:\"0.7.0\",prs:[355],description:\"Added score.<key> attribute\"}]},\"score.ratio.<key>\":{brief:\"The score for a web vital, normalized to a number between 0 and 1.\",type:\"double\",keys:[\"score.ratio.<key>\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",hasDynamicSuffix:!0,example:\"score.ratio.inp=0.7748\",changelog:[{version:\"0.7.0\",prs:[355],description:\"Added score.ratio.<key> attribute\"}]},\"score.total\":{brief:\"The total performance score of a span. This is the sum of individual weighted web vital scores (see `score.<key>`).\",type:\"double\",keys:[\"score.total\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",changelog:[{version:\"0.7.0\",prs:[355],description:\"Added score.total attribute\"}]},\"score.weight.<key>\":{brief:\"The relative weight of a web vital in a span's performance score.\",type:\"double\",keys:[\"score.weight.<key>\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",hasDynamicSuffix:!0,example:\"score.weight.fcp=0.25\",changelog:[{version:\"0.7.0\",prs:[355],description:\"Added score.weight.<key> attribute\"}]},\"sentry.action\":{brief:\"Used as a generic attribute representing the action depending on the type of span. For instance, this is the database query operation for DB spans, and the request method for HTTP spans.\",type:\"string\",keys:[\"sentry.action\",\"span.action\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"SELECT\",changelog:[{version:\"0.4.0\",prs:[212]}],searchAlias:{name:\"span.action\"}},\"sentry.browser.name\":{brief:\"The name of the browser.\",type:\"string\",keys:[\"browser.name\",\"sentry.browser.name\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"Chrome\",deprecation:{replacement:\"browser.name\",status:\"backfill\"},aliases:[\"browser.name\"],changelog:[{version:\"0.1.0\",prs:[139]}],searchAlias:{name:\"browser.name\"}},\"sentry.browser.version\":{brief:\"The version of the browser.\",type:\"string\",keys:[\"browser.version\",\"sentry.browser.version\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"120.0.6099.130\",deprecation:{replacement:\"browser.version\",status:\"backfill\"},aliases:[\"browser.version\"],changelog:[{version:\"0.1.0\",prs:[139]}]},\"sentry.cancellation_reason\":{brief:\"The reason why a span ended early.\",type:\"string\",keys:[\"sentry.cancellation_reason\"],applyScrubbing:{key:\"never\"},isInOtel:!1,visibility:\"public\",example:\"document.hidden\",changelog:[{version:\"0.0.0\"}]},\"sentry.category\":{brief:\"The high-level category of a span, derived from the span operation or span attributes. This categorizes spans by their general purpose (e.g., database, HTTP, UI). Known values include: 'ai', 'ai.pipeline', 'app', 'browser', 'cache', 'console', 'db', 'event', 'file', 'function.aws', 'function.azure', 'function.gcp', 'function.nextjs', 'function.remix', 'graphql', 'grpc', 'http', 'measure', 'middleware', 'navigation', 'pageload', 'queue', 'resource', 'rpc', 'serialize', 'subprocess', 'template', 'topic', 'ui', 'ui.angular', 'ui.ember', 'ui.react', 'ui.svelte', 'ui.vue', 'view', 'websocket'.\",type:\"string\",keys:[\"sentry.category\",\"span.category\"],applyScrubbing:{key:\"never\"},isInOtel:!1,visibility:\"public\",example:\"db\",changelog:[{version:\"0.4.0\",prs:[218]}],searchAlias:{name:\"span.category\"}},\"sentry.client_sample_rate\":{brief:\"Rate at which a span was sampled in the SDK.\",type:\"double\",keys:[\"sentry.client_sample_rate\",\"client_sample_rate\"],applyScrubbing:{key:\"never\"},isInOtel:!1,visibility:\"public\",example:.5,changelog:[{version:\"0.1.0\",prs:[102]}],searchAlias:{name:\"client_sample_rate\"}},\"sentry.description\":{brief:\"The human-readable description of a span.\",type:\"string\",keys:[\"sentry.description\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"index view query\",changelog:[{version:\"0.1.0\",prs:[135]}]},\"sentry.dist\":{brief:\"The sentry dist.\",type:\"string\",keys:[\"sentry.dist\",\"dist\"],applyScrubbing:{key:\"never\"},isInOtel:!1,visibility:\"public\",example:\"1.0\",aliases:[\"dist\"],changelog:[{version:\"0.16.0\",prs:[489],description:\"Added dist as an alias\"},{version:\"0.0.0\"}]},\"sentry.domain\":{brief:\"Used as a generic attribute representing the domain depending on the type of span. For instance, this is the collection/table name for database spans, and the server address for HTTP spans.\",type:\"string\",keys:[\"sentry.domain\",\"span.domain\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"example.com\",changelog:[{version:\"0.4.0\",prs:[212]}],searchAlias:{name:\"span.domain\"}},\"sentry.dsc.environment\":{brief:\"The environment from the dynamic sampling context.\",type:\"string\",keys:[\"sentry.dsc.environment\"],applyScrubbing:{key:\"never\"},isInOtel:!1,visibility:\"internal\",example:\"prod\",changelog:[{version:\"0.3.0\",prs:[185]}]},\"sentry.dsc.project_id\":{brief:\"The ID of the project where the trace originated (i.e. the project of the SDK that started the trace). Propagated through the dynamic sampling context and set by Relay during ingestion.\",type:\"string\",keys:[\"sentry.dsc.project_id\"],applyScrubbing:{key:\"never\"},isInOtel:!1,visibility:\"internal\",example:\"12345\",changelog:[{version:\"0.7.0\",prs:[358],description:\"Add sentry.dsc.project_id as an attribute\"}]},\"sentry.dsc.public_key\":{brief:\"The public key from the dynamic sampling context.\",type:\"string\",keys:[\"sentry.dsc.public_key\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"internal\",example:\"c51734c603c4430eb57cb0a5728a479d\",changelog:[{version:\"0.3.0\",prs:[185]}]},\"sentry.dsc.release\":{brief:\"The release identifier from the dynamic sampling context.\",type:\"string\",keys:[\"sentry.dsc.release\"],applyScrubbing:{key:\"never\"},isInOtel:!1,visibility:\"internal\",example:\"frontend@e8211be71b214afab5b85de4b4c54be3714952bb\",changelog:[{version:\"0.3.0\",prs:[185]}]},\"sentry.dsc.sampled\":{brief:\"Whether the event was sampled according to the dynamic sampling context.\",type:\"boolean\",keys:[\"sentry.dsc.sampled\"],applyScrubbing:{key:\"never\"},isInOtel:!1,visibility:\"internal\",example:!0,changelog:[{version:\"0.3.0\",prs:[185]}]},\"sentry.dsc.sample_rate\":{brief:\"The sample rate from the dynamic sampling context.\",type:\"string\",keys:[\"sentry.dsc.sample_rate\"],applyScrubbing:{key:\"never\"},isInOtel:!1,visibility:\"internal\",example:\"1.0\",changelog:[{version:\"0.3.0\",prs:[185]}]},\"sentry.dsc.trace_id\":{brief:\"The trace ID from the dynamic sampling context.\",type:\"string\",keys:[\"sentry.dsc.trace_id\"],applyScrubbing:{key:\"never\"},isInOtel:!1,visibility:\"internal\",example:\"047372980460430cbc78d9779df33a46\",changelog:[{version:\"0.3.0\",prs:[185]}]},\"sentry.dsc.transaction\":{brief:\"The transaction name from the dynamic sampling context.\",type:\"string\",keys:[\"sentry.dsc.transaction\"],applyScrubbing:{key:\"never\"},isInOtel:!1,visibility:\"internal\",example:\"/issues/errors-outages/\",changelog:[{version:\"0.3.0\",prs:[185]}]},\"sentry.environment\":{brief:\"The sentry environment.\",type:\"string\",keys:[\"sentry.environment\",\"environment\",\"resource.deployment.environment\",\"resource.deployment.environment.name\"],applyScrubbing:{key:\"never\"},isInOtel:!1,visibility:\"public\",example:\"production\",aliases:[\"environment\"],changelog:[{version:\"0.0.0\"}],searchAlias:{name:\"environment\"}},\"sentry.event.serialized_breadcrumbs\":{brief:\"JSON-serialized `breadcrumbs` property from a Sentry event.\",type:\"string\",keys:[\"sentry.event.serialized_breadcrumbs\"],applyScrubbing:{key:\"never\"},isInOtel:!1,visibility:\"internal\",changelog:[{version:\"0.19.0\",prs:[556]}]},\"sentry.event.serialized_contexts\":{brief:\"JSON-serialized `contexts` property from a Sentry event.\",type:\"string\",keys:[\"sentry.event.serialized_contexts\"],applyScrubbing:{key:\"never\"},isInOtel:!1,visibility:\"internal\",changelog:[{version:\"0.19.0\",prs:[556]}]},\"sentry.event.serialized_extra\":{brief:\"JSON-serialized `extra` property from a Sentry event.\",type:\"string\",keys:[\"sentry.event.serialized_extra\"],applyScrubbing:{key:\"never\"},isInOtel:!1,visibility:\"internal\",changelog:[{version:\"0.19.0\",prs:[556]}]},\"sentry.event.serialized_meta\":{brief:\"JSON-serialized `_meta` for the `sentry.event.serialized_*` properties from a Sentry event.\",type:\"string\",keys:[\"sentry.event.serialized_meta\"],applyScrubbing:{key:\"never\"},isInOtel:!1,visibility:\"internal\",changelog:[{version:\"0.20.0\",prs:[566]}]},\"sentry.exclusive_time\":{brief:\"The exclusive time duration of the span in milliseconds.\",type:\"double\",keys:[\"sentry.exclusive_time\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:1234,changelog:[{version:\"0.4.0\",prs:[228]},{version:\"0.3.0\",prs:[160]},{version:\"0.0.0\"}]},\"sentry.frames.frozen\":{brief:\"The number of frozen frames rendered during the lifetime of the span.\",type:\"integer\",keys:[\"app.vitals.frames.frozen.count\",\"frames.frozen\",\"mobile.frozen_frames\",\"sentry.frames.frozen\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:3,deprecation:{replacement:\"app.vitals.frames.frozen.count\",reason:\"Replaced by app.vitals.frames.frozen.count to align with the app.vitals.* namespace for mobile performance attributes\",status:\"backfill\"},aliases:[\"app.vitals.frames.frozen.count\",\"frames.frozen\"],changelog:[{version:\"0.19.0\",prs:[500],description:\"Added sentry.frames.frozen attribute\"}]},\"sentry.frames.slow\":{brief:\"The number of slow frames rendered during the lifetime of the span.\",type:\"integer\",keys:[\"app.vitals.frames.slow.count\",\"frames.slow\",\"mobile.slow_frames\",\"sentry.frames.slow\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:1,deprecation:{replacement:\"app.vitals.frames.slow.count\",reason:\"Replaced by app.vitals.frames.slow.count to align with the app.vitals.* namespace for mobile performance attributes\",status:\"backfill\"},aliases:[\"app.vitals.frames.slow.count\",\"frames.slow\"],changelog:[{version:\"0.19.0\",prs:[500],description:\"Added sentry.frames.slow attribute\"}]},\"sentry.frames.total\":{brief:\"The number of total frames rendered during the lifetime of the span.\",type:\"integer\",keys:[\"app.vitals.frames.total.count\",\"frames.total\",\"mobile.total_frames\",\"sentry.frames.total\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:60,deprecation:{replacement:\"app.vitals.frames.total.count\",reason:\"Replaced by app.vitals.frames.total.count to align with the app.vitals.* namespace for mobile performance attributes\",status:\"backfill\"},aliases:[\"app.vitals.frames.total.count\",\"frames.total\"],changelog:[{version:\"0.19.0\",prs:[500],description:\"Added sentry.frames.total attribute\"}]},\"sentry.graphql.operation\":{brief:\"Indicates the type of graphql operation, emitted by the Javascript SDK.\",type:\"string\",keys:[\"sentry.graphql.operation\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"getUserById\",changelog:[{version:\"0.3.1\",prs:[190]}]},\"sentry.group\":{brief:\"Stores the hash of `sentry.normalized_description`. This is primarily used for grouping spans in the product end.\",type:\"string\",keys:[\"sentry.group\",\"span.group\"],applyScrubbing:{key:\"never\"},isInOtel:!1,visibility:\"public\",changelog:[{version:\"0.4.0\",prs:[212]}],searchAlias:{name:\"span.group\"}},\"sentry.http.prefetch\":{brief:\"If an http request was a prefetch request.\",type:\"boolean\",keys:[\"sentry.http.prefetch\"],applyScrubbing:{key:\"never\"},isInOtel:!1,visibility:\"public\",example:!0,changelog:[{version:\"0.0.0\"}]},\"sentry.idle_span_finish_reason\":{brief:\"The reason why an idle span ended early.\",type:\"string\",keys:[\"sentry.idle_span_finish_reason\"],applyScrubbing:{key:\"never\"},isInOtel:!1,visibility:\"public\",example:\"idleTimeout\",changelog:[{version:\"0.0.0\"}]},\"sentry.is_localhost\":{brief:\"Indicates whether a telemetry item was sent on a host, device or browser on a localhost URL or IP address.\",type:\"boolean\",keys:[\"sentry.is_localhost\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"internal\",example:!0,examples:[!0,!1],changelog:[{version:\"0.24.0\",prs:[646],description:\"Added sentry.is_localhost attribute\"}],additionalContext:['This attribute is used for the Sentry \"Filter telemetry from localhost\" inbound filter feature.',\"SDKs must set this attribute on every span, as well as every other telemetry item supporting attribuztes.\"]},\"sentry.is_remote\":{brief:\"Indicates whether a span's parent is remote.\",type:\"boolean\",keys:[\"sentry.is_remote\"],applyScrubbing:{key:\"never\"},isInOtel:!1,visibility:\"public\",example:!0,changelog:[{version:\"0.3.1\",prs:[190]}]},\"sentry.kind\":{brief:\"Used to clarify the relationship between parents and children, or to distinguish between spans, e.g. a `server` and `client` span with the same name.\",type:\"string\",keys:[\"sentry.kind\",\"span.kind\",\"otel.kind\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"client\",examples:[\"client\",\"server\",\"producer\",\"consumer\",\"internal\"],aliases:[\"otel.kind\"],changelog:[{version:\"0.19.0\",prs:[517],description:\"Added more examples and additional_context to the attribute\"},{version:\"0.3.1\",prs:[190]}],additionalContext:['Valid attribute values are: \"client\", \"server\", \"producer\", \"consumer\" and \"internal\"'],searchAlias:{name:\"span.kind\"}},\"sentry.link.type\":{brief:\"Set on a span link. Describes the relationship between the span and the linked span.\",type:\"string\",keys:[\"sentry.link.type\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"previous_trace\",examples:[\"previous_trace\",\"next_trace\",\"cache_origin\"],changelog:[{version:\"0.25.0\",prs:[656],description:\"Added sentry.link.type attribute\"}],additionalContext:[\"This attribute is exclusively set on span links.\",\"Sentry instrumentation setting span links, sets it to describe the relationship between the span and the linked span.\",\"For known values, see Examples. Add new values to Examples.\"]},\"sentry.main_thread\":{brief:\"Whether the span or event occurred on the main thread. Computed by Relay and should not be set by SDKs.\",type:\"boolean\",keys:[\"sentry.main_thread\"],applyScrubbing:{key:\"never\"},isInOtel:!1,visibility:\"public\",example:!0,changelog:[{version:\"0.5.0\"}]},\"sentry.message.parameter.<key>\":{brief:\"A parameter used in the message template. <key> can either be the number that represent the parameter's position in the template string (sentry.message.parameter.0, sentry.message.parameter.1, etc) or the parameter's name (sentry.message.parameter.item_id, sentry.message.parameter.user_id, etc)\",type:\"string\",keys:[\"sentry.message.parameter.<key>\"],applyScrubbing:{key:\"auto\"},isInOtel:!1,visibility:\"public\",example:\"sentry.message.parameter.0='123'\",changelog:[{version:\"0.1.0\",prs:[116]}]},\"sentry.message.template\":{brief:\"The parameterized template string.\",type:\"string\",keys:[\"sentry.message.template\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"Hello, {name}!\",changelog:[{version:\"0.1.0\",prs:[116]}]},\"sentry.metric.source\":{brief:\"The provenance of a metric.  For example, this can be set to indicate if a metric was generated by Relay from a span.\",type:\"string\",keys:[\"sentry.metric.source\"],applyScrubbing:{key:\"never\"},isInOtel:!1,visibility:\"public\",example:\"span\",changelog:[{version:\"0.16.0\",prs:[476],description:\"Added sentry.metric.source attribute\"}]},\"sentry.mobile\":{brief:\"Whether the application is using a mobile SDK. Computed by Relay and should not be set by SDKs.\",type:\"boolean\",keys:[\"sentry.mobile\"],applyScrubbing:{key:\"never\"},isInOtel:!1,visibility:\"public\",example:!0,changelog:[{version:\"0.5.0\"}]},\"sentry.module.<key>\":{brief:\"A module that was loaded in the process. The key is the name of the module.\",type:\"string\",keys:[\"sentry.module.<key>\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",hasDynamicSuffix:!0,example:\"sentry.module.brianium/paratest='v7.7.0'\",changelog:[{version:\"0.1.0\",prs:[103]}]},\"sentry.nextjs.ssr.function.route\":{brief:\"A parameterized route for a function in Next.js that contributes to Server-Side Rendering. Should be present on spans that track such functions when the file location of the function is known.\",type:\"string\",keys:[\"sentry.nextjs.ssr.function.route\"],applyScrubbing:{key:\"never\"},isInOtel:!1,visibility:\"public\",example:\"/posts/[id]/layout\",changelog:[{version:\"0.1.0\",prs:[54,106]}]},\"sentry.nextjs.ssr.function.type\":{brief:\"A descriptor for a for a function in Next.js that contributes to Server-Side Rendering. Should be present on spans that track such functions.\",type:\"string\",keys:[\"sentry.nextjs.ssr.function.type\"],applyScrubbing:{key:\"never\"},isInOtel:!1,visibility:\"public\",example:\"generateMetadata\",changelog:[{version:\"0.1.0\",prs:[54,106]}]},\"sentry.normalized_db_query\":{brief:\"The normalized version of `db.query.text`.\",type:\"string\",keys:[\"sentry.normalized_db_query\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"SELECT .. FROM sentry_project WHERE (project_id = %s)\",changelog:[{version:\"0.3.1\",prs:[194]}]},\"sentry.normalized_db_query.hash\":{brief:\"The hash of `sentry.normalized_db_query`.\",type:\"string\",keys:[\"sentry.normalized_db_query.hash\"],applyScrubbing:{key:\"never\"},isInOtel:!1,visibility:\"public\",changelog:[{version:\"0.4.0\",prs:[200]}]},\"sentry.normalized_description\":{brief:\"Used as a generic attribute representing the normalized `sentry.description`. This refers to the legacy use case of `sentry.description` where it holds relevant data depending on the type of span (e.g. database query, resource url, http request description, etc).\",type:\"string\",keys:[\"sentry.normalized_description\"],applyScrubbing:{key:\"auto\"},isInOtel:!1,visibility:\"public\",example:\"SELECT .. FROM sentry_project WHERE (project_id = %s)\",changelog:[{version:\"0.4.0\",prs:[212]}]},\"sentry.observed_timestamp_nanos\":{brief:\"The timestamp at which an envelope was received by Relay, in nanoseconds.\",type:\"string\",keys:[\"sentry.observed_timestamp_nanos\"],applyScrubbing:{key:\"never\"},isInOtel:!1,visibility:\"public\",example:\"1544712660300000000\",changelog:[{version:\"0.3.0\",prs:[174]},{version:\"0.2.0\",prs:[137]}]},\"sentry.op\":{brief:\"The operation of a span.\",type:\"string\",keys:[\"sentry.op\",\"span.op\"],applyScrubbing:{key:\"never\"},isInOtel:!1,visibility:\"public\",example:\"http.client\",changelog:[{version:\"0.0.0\"}],searchAlias:{name:\"span.op\"}},\"sentry.origin\":{brief:\"The origin of the instrumentation (e.g. span, log, etc.)\",type:\"string\",keys:[\"sentry.origin\",\"origin\"],applyScrubbing:{key:\"never\"},isInOtel:!1,visibility:\"public\",example:\"auto.http.otel.fastify\",changelog:[{version:\"0.1.0\",prs:[68]},{version:\"0.0.0\"}],searchAlias:{name:\"origin\"}},\"sentry.pageload.span_id\":{brief:\"The id of the pageload span, set by web vital spans and metrics\",type:\"string\",keys:[\"sentry.pageload.span_id\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"bf2c8d3df84524de\",changelog:[{version:\"0.17.0\",prs:[495],description:\"Added sentry.pageload.span_id attribute\"}]},\"sentry.platform\":{brief:\"The sdk platform that generated the event.\",type:\"string\",keys:[\"sentry.platform\",\"platform\"],applyScrubbing:{key:\"never\"},isInOtel:!1,visibility:\"public\",example:\"php\",changelog:[{version:\"0.0.0\"}],searchAlias:{name:\"platform\"}},\"sentry.profiler_id\":{brief:\"The id of the currently running profiler (continuous profiling)\",type:\"string\",keys:[\"sentry.profiler_id\",\"profiler.id\"],applyScrubbing:{key:\"never\"},isInOtel:!1,visibility:\"public\",example:\"18779b64dd35d1a538e7ce2dd2d3fad3\",changelog:[{version:\"0.4.0\",prs:[242]}],searchAlias:{name:\"profiler.id\"}},\"sentry.profile_id\":{brief:\"The ID of the Sentry profile the span is associated with. This is only meaningful for transaction-based profiling.\",type:\"string\",keys:[\"sentry.profile_id\",\"profile.id\",\"profile_id\"],applyScrubbing:{key:\"never\"},isInOtel:!1,visibility:\"public\",example:\"123e4567e89b12d3a456426614174000\",aliases:[\"profile_id\"],changelog:[{version:\"0.19.0\",prs:[497],description:\"Added profile_id as an alias\"},{version:\"0.6.0\",prs:[344],description:\"Added sentry.profile_id attribute\"}],searchAlias:{name:\"profile.id\"}},\"sentry.relay.ingress\":{brief:\"How an item (span, log, &c.) entered Relay.\",type:\"string\",keys:[\"sentry.relay.ingress\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"internal\",example:\"OTEL\",changelog:[{version:\"0.17.0\",prs:[491],description:\"Added sentry.relay.ingress attribute\"}]},\"sentry.relay.pipeline\":{brief:\"An internal descriptor of which processing pipeline an item went through in Relay.\",type:\"string\",keys:[\"sentry.relay.pipeline\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"internal\",example:\"span v2\",changelog:[{version:\"0.17.0\",prs:[491],description:\"Added sentry.relay.pipeline attribute\"}]},\"sentry.release\":{brief:\"The sentry release.\",type:\"string\",keys:[\"sentry.release\",\"release\",\"service.version\"],applyScrubbing:{key:\"never\"},isInOtel:!1,visibility:\"public\",example:\"7.0.0\",aliases:[\"service.version\",\"release\"],changelog:[{version:\"0.0.0\"}],searchAlias:{name:\"release\"}},\"sentry.replay_id\":{brief:\"The id of the sentry replay.\",type:\"string\",keys:[\"sentry.replay_id\",\"replay.id\",\"replay_id\"],applyScrubbing:{key:\"never\"},isInOtel:!1,visibility:\"public\",example:\"123e4567e89b12d3a456426614174000\",aliases:[\"replay_id\",\"replayId\"],changelog:[{version:\"0.0.0\"}],searchAlias:{name:\"replay.id\",deprecatedAliases:[\"replay_id\"]}},\"sentry.replay_is_buffering\":{brief:\"A sentinel attribute on log events indicating whether the current Session Replay is being buffered (onErrorSampleRate).\",type:\"boolean\",keys:[\"sentry.replay_is_buffering\"],applyScrubbing:{key:\"never\"},isInOtel:!1,visibility:\"public\",example:!0,changelog:[{version:\"0.3.0\",prs:[185]}]},\"sentry.report_event\":{brief:\"(Deprecated) The event that caused the SDK to report CLS or LCP (pagehide or navigation)\",type:\"string\",keys:[\"sentry.report_event\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"pagehide\",deprecation:{reason:\"The report event moved to browser.web_vital.lcp.report_event and browser.web_vital.cls.report_event, which are themselves deprecated without a replacement. No backfill required.\"},changelog:[{version:\"0.24.0\",prs:[642],description:\"Updated the deprecation reason now that the browser.web_vital.*.report_event attributes are deprecated\"},{version:\"0.5.0\",prs:[320],description:\"Added sentry.report_event attribute\"}]},\"sentry.sdk.integrations\":{brief:\"A list of names identifying enabled integrations. The list shouldhave all enabled integrations, including default integrations. Defaultintegrations are included because different SDK releases may contain differentdefault integrations.\",type:\"string[]\",keys:[\"sentry.sdk.integrations\"],applyScrubbing:{key:\"never\"},isInOtel:!1,visibility:\"public\",example:[\"InboundFilters\",\"FunctionToString\",\"BrowserApiErrors\",\"Breadcrumbs\"],changelog:[{version:\"0.0.0\",prs:[42]}]},\"sentry.sdk.name\":{brief:\"The sentry sdk name.\",type:\"string\",keys:[\"sentry.sdk.name\",\"sdk.name\"],applyScrubbing:{key:\"never\"},isInOtel:!1,visibility:\"public\",example:\"@sentry/react\",changelog:[{version:\"0.0.0\"}],searchAlias:{name:\"sdk.name\"}},\"sentry.sdk.version\":{brief:\"The sentry sdk version.\",type:\"string\",keys:[\"sentry.sdk.version\",\"sdk.version\"],applyScrubbing:{key:\"never\"},isInOtel:!1,visibility:\"public\",example:\"7.0.0\",changelog:[{version:\"0.0.0\"}],searchAlias:{name:\"sdk.version\"}},\"sentry.segment.id\":{brief:\"The segment ID of a span\",type:\"string\",keys:[\"sentry.segment.id\",\"sentry.segment_id\",\"transaction.span_id\"],applyScrubbing:{key:\"never\"},isInOtel:!1,visibility:\"public\",example:\"051581bf3cb55c13\",aliases:[\"sentry.segment_id\"],changelog:[{version:\"0.1.0\",prs:[107,124]}]},\"sentry.segment_id\":{brief:\"The segment ID of a span\",type:\"string\",keys:[\"sentry.segment.id\",\"sentry.segment_id\",\"transaction.span_id\"],applyScrubbing:{key:\"never\"},isInOtel:!1,visibility:\"public\",example:\"051581bf3cb55c13\",deprecation:{replacement:\"sentry.segment.id\",status:\"backfill\"},aliases:[\"sentry.segment.id\"],changelog:[{version:\"0.1.0\",prs:[124]}],searchAlias:{name:\"transaction.span_id\"}},\"sentry.segment.name\":{brief:\"The segment name of a span\",type:\"string\",keys:[\"sentry.segment.name\",\"transaction\",\"sentry.transaction\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"GET /user\",aliases:[\"sentry.transaction\",\"transaction\"],changelog:[{version:\"0.6.0\",prs:[345],description:\"Added sentry.transaction and transaction aliases\"},{version:\"0.1.0\",prs:[104]}],searchAlias:{name:\"transaction\"}},\"sentry.segment.name.source\":{brief:\"The source of the segment span name. Should only be set on segment spans. Known values are:  `'custom'`, `'url'`, `'route'`, `'component'`, `'view'`, `'task'`.\",type:\"string\",keys:[\"sentry.segment.name.source\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"internal\",example:\"route\",examples:[\"route\",\"component\",\"view\",\"task\",\"custom\",\"url\"],changelog:[{version:\"0.19.0\",prs:[466],description:\"Added sentry.segment.name.source\"}],additionalContext:[\"This attribute is the replacement for `transaction_info.source` on transactions.\",\"Should we bring back clustering for segment names (like we do for transaction names), this attribute will be used to determine if a segment name should be clustered.\"]},\"sentry.server_sample_rate\":{brief:\"Rate at which a span was sampled in Relay.\",type:\"double\",keys:[\"sentry.server_sample_rate\",\"server_sample_rate\"],applyScrubbing:{key:\"never\"},isInOtel:!1,visibility:\"public\",example:.5,changelog:[{version:\"0.1.0\",prs:[102]}],searchAlias:{name:\"server_sample_rate\"}},\"sentry.source\":{brief:\"The source of a span, also referred to as transaction source. Known values are:  `'custom'`, `'url'`, `'route'`, `'component'`, `'view'`, `'task'`. '`source`' describes a parametrized route, while `'url'` describes the full URL, potentially containing identifiers.\",type:\"string\",keys:[\"sentry.source\"],applyScrubbing:{key:\"never\"},isInOtel:!1,visibility:\"public\",example:\"route\",deprecation:{reason:\"This attribute is superseded by sentry.segment.name.source, which only needs to be set on segment spans.\"},changelog:[{version:\"0.19.0\",prs:[510],description:\"Removed the sentry.span.source replacement\"},{version:\"0.5.0\"}]},\"sentry.span.source\":{brief:\"The source of a span, also referred to as transaction source. Known values are:  `'custom'`, `'url'`, `'route'`, `'component'`, `'view'`, `'task'`. '`source`' describes a parametrized route, while `'url'` describes the full URL, potentially containing identifiers.\",type:\"string\",keys:[\"sentry.span.source\"],applyScrubbing:{key:\"never\"},isInOtel:!1,visibility:\"public\",example:\"route\",deprecation:{reason:\"This attribute is superseded by sentry.segment.name.source, which only needs to be set on segment spans.\"},changelog:[{version:\"0.19.0\",prs:[510],description:\"Deprecated; superseded by sentry.segment.name.source on segment spans\"},{version:\"0.4.0\",prs:[214]},{version:\"0.0.0\"}]},\"sentry.status\":{brief:`The span's status (either \"ok\" or \"error\"). Older SDKs may set this to a more specific error, but this behaviour is deprecated.`,type:\"string\",keys:[\"sentry.status\",\"span.status\"],applyScrubbing:{key:\"never\"},isInOtel:!1,visibility:\"public\",example:\"ok\",changelog:[{version:\"0.14.0\",prs:[453]}],searchAlias:{name:\"span.status\"}},\"sentry.status_code\":{brief:\"The HTTP status code used in Sentry Insights. Typically set by Sentry during ingestion, rather than by clients.\",type:\"integer\",keys:[\"sentry.status_code\",\"span.status_code\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:200,changelog:[{version:\"0.4.0\",prs:[223,228]}],searchAlias:{name:\"span.status_code\"}},\"sentry.status.message\":{brief:\"The from OTLP extracted status message.\",type:\"string\",keys:[\"sentry.status.message\",\"span.status.message\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"foobar\",changelog:[{version:\"0.3.1\",prs:[190]}],searchAlias:{name:\"span.status.message\"}},\"sentry.sveltekit.navigation.from\":{brief:\"the navigation origin (sveltekit router)\",type:\"string\",keys:[\"router.navigation.origin\",\"navigation.origin\",\"sentry.sveltekit.navigation.from\"],applyScrubbing:{key:\"auto\"},isInOtel:!1,visibility:\"public\",example:\"/home\",deprecation:{replacement:\"router.navigation.origin\",reason:\"Use the more generic attribute instead\",status:\"backfill\"},aliases:[\"navigation.origin\",\"router.navigation.origin\"],changelog:[{version:\"0.22.0\",prs:[600],description:\"Re-pointed deprecation from navigation.origin to router.navigation.origin\"},{version:\"0.16.0\",prs:[467],description:\"Added sentry.sveltekit.navigation.from attribute\"}]},\"sentry.sveltekit.navigation.to\":{brief:\"the navigation destination\",type:\"string\",keys:[\"sentry.sveltekit.navigation.to\"],applyScrubbing:{key:\"auto\"},isInOtel:!1,visibility:\"public\",example:\"/users/:id\",deprecation:{reason:\"the navigation destination is already covered by url.* attributes\"},changelog:[{version:\"0.16.0\",prs:[467],description:\"Added sentry.sveltekit.navigation.to attribute\"}]},\"sentry.sveltekit.navigation.type\":{brief:\"The type of navigation event emitted from the sveltekit client router\",type:\"string\",keys:[\"router.navigation.type\",\"navigation.type\",\"sentry.sveltekit.navigation.type\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"link\",deprecation:{replacement:\"router.navigation.type\",reason:\"Use the more generic attribute instead\",status:\"backfill\"},aliases:[\"navigation.type\",\"router.navigation.type\"],changelog:[{version:\"0.22.0\",prs:[600],description:\"Re-pointed deprecation from navigation.type to router.navigation.type\"},{version:\"0.16.0\",prs:[467],description:\"Added sentry.sveltekit.navigation.type attribute\"}]},\"sentry.thread.id\":{brief:'Current \"managed\" thread ID.',type:\"integer\",keys:[\"thread.id\",\"sentry.thread.id\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:56,deprecation:{replacement:\"thread.id\",reason:\"This attribute is being deprecated in favor of the OTel-standard thread.id\",status:\"backfill\"},changelog:[{version:\"0.13.0\",prs:[451]}],searchAlias:{name:\"thread.id\"}},\"sentry.timestamp.sequence\":{brief:\"A sequencing counter for deterministic ordering of logs or metrics when timestamps share the same integer millisecond. Starts at 0 on SDK initialization, increments by 1 for each captured item, and resets to 0 when the integer millisecond of the current item differs from the previous one.\",type:\"integer\",keys:[\"sentry.timestamp.sequence\"],applyScrubbing:{key:\"never\"},isInOtel:!1,visibility:\"public\",example:0,changelog:[{version:\"0.5.0\",prs:[262]}]},\"sentry.trace_lifecycle\":{brief:\"Indicates the chosen trace lifecycle mode of the SDK (stream or static)\",type:\"string\",keys:[\"sentry.trace_lifecycle\",\"trace_lifecycle\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"stream\",changelog:[{version:\"0.13.0\",prs:[442],description:\"Added sentry.trace_lifecycle attribute\"}],searchAlias:{name:\"trace_lifecycle\"}},\"sentry.trace.parent_span_id\":{brief:\"The span id of the span that was active when the log was collected. This should not be set if there was no active span.\",type:\"string\",keys:[\"sentry.trace.parent_span_id\"],applyScrubbing:{key:\"never\"},isInOtel:!1,visibility:\"public\",example:\"b0e6f15b45c36b12\",deprecation:{},changelog:[{version:\"0.5.0\",prs:[287],description:\"Deprecate `sentry.trace.parent_span_id`\"},{version:\"0.1.0\",prs:[116]}]},\"sentry.trace.status\":{brief:`The segment's status (either \"ok\" or \"error\"). Older SDKs may set this to a more specific error, but this behaviour is deprecated.`,type:\"string\",keys:[\"sentry.trace.status\",\"trace.status\"],applyScrubbing:{key:\"never\"},isInOtel:!1,visibility:\"public\",example:\"ok\",changelog:[{version:\"0.14.0\",prs:[453]}],searchAlias:{name:\"trace.status\"}},\"sentry.transaction\":{brief:\"The sentry transaction (segment name).\",type:\"string\",keys:[\"sentry.segment.name\",\"transaction\",\"sentry.transaction\"],applyScrubbing:{key:\"never\"},isInOtel:!1,visibility:\"public\",example:\"GET /\",deprecation:{replacement:\"sentry.segment.name\",reason:\"This attribute is being deprecated in favor of sentry.segment.name\",status:\"backfill\"},aliases:[\"sentry.segment.name\",\"transaction\"],changelog:[{version:\"0.6.0\",prs:[345],description:\"Deprecated sentry.transaction in favor of sentry.segment.name\"},{version:\"0.0.0\"}]},\"sentry.user.email\":{brief:\"User email address.\",type:\"string\",keys:[\"user.email\",\"sentry.user.email\"],applyScrubbing:{key:\"auto\"},isInOtel:!1,visibility:\"public\",deprecation:{replacement:\"user.email\",status:\"backfill\"},aliases:[\"user.email\"],changelog:[{version:\"0.10.0\",prs:[406]}],searchAlias:{name:\"user.email\"}},\"sentry.user.geo.city\":{brief:\"Human readable city name.\",type:\"string\",keys:[\"user.geo.city\",\"sentry.user.geo.city\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",deprecation:{replacement:\"user.geo.city\",status:\"backfill\"},aliases:[\"user.geo.city\"],changelog:[{version:\"0.10.0\",prs:[406]}],searchAlias:{name:\"user.geo.city\"}},\"sentry.user.geo.country_code\":{brief:\"Two-letter country code (ISO 3166-1 alpha-2).\",type:\"string\",keys:[\"user.geo.country_code\",\"sentry.user.geo.country_code\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",deprecation:{replacement:\"user.geo.country_code\",status:\"backfill\"},aliases:[\"user.geo.country_code\"],changelog:[{version:\"0.10.0\",prs:[406]}],searchAlias:{name:\"user.geo.country_code\"}},\"sentry.user.geo.region\":{brief:\"Human readable region name or code.\",type:\"string\",keys:[\"user.geo.region\",\"sentry.user.geo.region\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",deprecation:{replacement:\"user.geo.region\",status:\"backfill\"},aliases:[\"user.geo.region\"],changelog:[{version:\"0.10.0\",prs:[406]}],searchAlias:{name:\"user.geo.region\"}},\"sentry.user.geo.subdivision\":{brief:\"Human readable subdivision name.\",type:\"string\",keys:[\"user.geo.subdivision\",\"sentry.user.geo.subdivision\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",deprecation:{replacement:\"user.geo.subdivision\",status:\"backfill\"},aliases:[\"user.geo.subdivision\"],changelog:[{version:\"0.10.0\",prs:[406]}],searchAlias:{name:\"user.geo.subdivision\"}},\"sentry.user.id\":{brief:\"Unique identifier of the user.\",type:\"string\",keys:[\"user.id\",\"sentry.user.id\"],applyScrubbing:{key:\"auto\"},isInOtel:!1,visibility:\"public\",deprecation:{replacement:\"user.id\",status:\"backfill\"},aliases:[\"user.id\"],changelog:[{version:\"0.10.0\",prs:[406]}],searchAlias:{name:\"user.id\"}},\"sentry.user.ip\":{brief:\"The IP address of the user.\",type:\"string\",keys:[\"user.ip_address\",\"sentry.user.ip\",\"user.ip\"],applyScrubbing:{key:\"auto\"},isInOtel:!1,visibility:\"public\",deprecation:{replacement:\"user.ip_address\",status:\"backfill\"},aliases:[\"user.ip_address\"],changelog:[{version:\"0.10.0\",prs:[406]}],searchAlias:{name:\"user.ip\"}},\"sentry.user.username\":{brief:\"Short name or login/username of the user.\",type:\"string\",keys:[\"user.name\",\"sentry.user.username\",\"user.username\"],applyScrubbing:{key:\"auto\"},isInOtel:!1,visibility:\"public\",deprecation:{replacement:\"user.name\",status:\"backfill\"},aliases:[\"user.name\"],changelog:[{version:\"0.10.0\",prs:[406]}],searchAlias:{name:\"user.username\"}},\"server.address\":{brief:\"Preferably the server domain name if available without reverse DNS lookup, or an IP address or Unix domain socket name. For compatibility, it may contain what the hostname command returns on UNIX systems, the fully qualified hostname, or another name specified by the user.\",type:\"string\",keys:[\"server.address\",\"address\",\"http.server_name\",\"net.host.name\",\"server_name\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"example.com\",aliases:[\"address\",\"http.server_name\",\"net.host.name\",\"http.host\",\"server_name\",\"net.peer.name\"],changelog:[{version:\"0.24.0\",prs:[645,647],description:\"Broaden brief to allow hostnames\"},{version:\"0.21.0\",prs:[588,602],description:\"Added net.peer.name as an alias\"},{version:\"0.19.0\",prs:[534],description:\"Added address as an alias\"},{version:\"0.1.0\",prs:[108,127]},{version:\"0.0.0\"}]},server_name:{brief:\"The name of the device. On servers and desktops, this is typically the hostname.\",type:\"string\",keys:[\"server.address\",\"address\",\"http.server_name\",\"net.host.name\",\"server_name\"],applyScrubbing:{key:\"auto\"},isInOtel:!1,visibility:\"public\",example:\"example.com\",deprecation:{replacement:\"server.address\",reason:\"This attribute is being deprecated in favor of server.address.\",status:\"backfill\"},aliases:[\"address\",\"server.address\",\"http.server_name\",\"net.host.name\",\"http.host\",\"net.peer.name\"],changelog:[{version:\"0.24.0\",prs:[647],description:\"Alias the server.address alias group\"},{version:\"0.21.0\",prs:[588,602],description:\"Alias device.name instead of the server.address alias group\"},{version:\"0.19.0\",prs:[534],description:\"Added address as an alias\"},{version:\"0.16.0\",prs:[477],description:\"Added server_name attribute, deprecated in favor of server.address\"}]},\"server.port\":{brief:\"Server port number.\",type:\"integer\",keys:[\"server.port\",\"net.host.port\",\"port\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:1337,aliases:[\"net.host.port\",\"port\"],changelog:[{version:\"0.19.0\",prs:[532],description:\"Added port as an alias\"},{version:\"0.4.0\",prs:[228]},{version:\"0.0.0\"}]},\"service.name\":{brief:\"Logical name of the service.\",type:\"string\",keys:[\"service.name\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"omegastar\",changelog:[{version:\"0.1.0\",prs:[127]},{version:\"0.0.0\"}]},\"service.version\":{brief:\"The version string of the service API or implementation. The format is not defined by these conventions.\",type:\"string\",keys:[\"service.version\",\"sentry.release\",\"release\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"5.0.0\",aliases:[\"sentry.release\"],changelog:[{version:\"0.1.0\",prs:[127]},{version:\"0.0.0\"}]},\"session.id\":{brief:\"A unique id identifying the active session at the time of setting this attribute\",type:\"string\",keys:[\"session.id\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"00112233-4455-6677-8899-aabbccddeeff\",changelog:[{version:\"0.11.0\",prs:[412],description:\"Added session.id attribute\"}]},stall_percentage:{brief:\"The fraction of time the app was stalled. Only applies to React Native. This is computed by Relay.\",type:\"double\",keys:[\"app.vitals.stall.percentage\",\"stall_percentage\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",deprecation:{replacement:\"app.vitals.stall.percentage\",reason:\"Replaced by app.vitals.stall.percentage to align with the app.vitals.* namespace for mobile performance attributes\",status:\"backfill\"},aliases:[\"app.vitals.stall.percentage\"],changelog:[{version:\"0.19.0\",prs:[493],description:\"Deprecated in favor of app.vitals.stall.percentage\"},{version:\"0.7.0\",prs:[362],description:\"Added stall_percentage attribute\"}]},stall_total_time:{brief:\"The combined duration of all stalls in milliseconds. Only applies to React Native. This is computed by Relay.\",type:\"double\",keys:[\"app.vitals.stall.duration\",\"stall_total_time\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",deprecation:{replacement:\"app.vitals.stall.duration\",reason:\"Replaced by app.vitals.stall.duration to align with the app.vitals.* namespace for mobile performance attributes\",status:\"backfill\"},aliases:[\"app.vitals.stall.duration\"],changelog:[{version:\"0.19.0\",prs:[493],description:\"Deprecated in favor of app.vitals.stall.duration\"},{version:\"0.7.0\",prs:[362],description:\"Added stall_total_time attribute\"}]},\"starlette.middleware_name\":{brief:\"The name of the Starlette middleware.\",type:\"string\",keys:[\"middleware.name\",\"django.middleware_name\",\"litestar.middleware_name\",\"starlette.middleware_name\",\"starlite.middleware_name\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"AuthenticationMiddleware\",deprecation:{replacement:\"middleware.name\",reason:\"This attribute is being deprecated in favor of middleware.name, which is the framework-agnostic replacement.\",status:\"backfill\"},aliases:[\"middleware.name\"],changelog:[{version:\"0.19.0\",prs:[485],description:\"Added starlette.middleware_name attribute, deprecated in favor of middleware.name\"}]},\"starlite.middleware_name\":{brief:\"The name of the Starlite middleware.\",type:\"string\",keys:[\"middleware.name\",\"django.middleware_name\",\"litestar.middleware_name\",\"starlette.middleware_name\",\"starlite.middleware_name\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"AuthenticationMiddleware\",examples:[\"AuthenticationMiddleware\"],deprecation:{replacement:\"middleware.name\",reason:\"This attribute is being deprecated in favor of middleware.name, which is the framework-agnostic replacement.\",status:\"backfill\"},aliases:[\"middleware.name\"],changelog:[{version:\"0.19.0\",prs:[519],description:\"Added starlite.middleware_name attribute\"}]},\"state.type\":{brief:\"The type of state management library\",type:\"string\",keys:[\"state.type\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"redux\",changelog:[{version:\"0.7.0\",prs:[365],description:\"Added state.type attribute\"}]},\"subprocess.pid\":{brief:\"The process ID of a subprocess.\",type:\"integer\",keys:[\"process.pid\",\"subprocess.pid\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:12345,deprecation:{replacement:\"process.pid\",reason:\"This attribute is being deprecated in favor of process.pid, which is the OTel-aligned replacement.\",status:\"backfill\"},aliases:[\"process.pid\"],changelog:[{version:\"0.19.0\",prs:[487],description:\"Added subprocess.pid attribute, deprecated in favor of process.pid\"}]},\"sveltekit.load.environment\":{brief:\"The runtime environment in which the SvelteKit load function was executed. Known values are `'server'` and `'client'`.\",type:\"string\",keys:[\"sveltekit.load.environment\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"server\",examples:[\"server\",\"client\"],changelog:[{version:\"0.22.0\",prs:[611],description:\"Added sveltekit.load.environment attribute\"}],additionalContext:[\"Added by the SvelteKit framework itself. The Sentry SDK only forwards the attribute to Sentry.\"]},\"sveltekit.load.node_id\":{brief:\"The path to the SvelteKit load function.\",type:\"string\",keys:[\"sveltekit.load.node_id\",\"code.file.path\",\"code.filepath\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"src/routes/users/:id/+page.server.ts\",examples:[\"src/routes/users/:id/+page.server.ts\"],aliases:[\"code.file.path\",\"code.filepath\"],changelog:[{version:\"0.22.0\",prs:[611],description:\"Added sveltekit.load.node_id attribute\"}],additionalContext:[\"Added by the SvelteKit framework itself. The Sentry SDK only forwards the attribute to Sentry.\"]},\"sveltekit.load.node_type\":{brief:\"The kind of SvelteKit load function that was executed, distinguishing page from layout and universal from server load functions.\",type:\"string\",keys:[\"sveltekit.load.node_type\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"+page.server\",examples:[\"+page.server\",\"+layout\",\"+layout.server\"],changelog:[{version:\"0.22.0\",prs:[611],description:\"Added sveltekit.load.node_type attribute\"}],additionalContext:[\"Added by the SvelteKit framework itself. The Sentry SDK only forwards the attribute to Sentry.\"]},\"sveltekit.tracing.original_name\":{brief:\"The original span name as emitted by SvelteKit.\",type:\"string\",keys:[\"sveltekit.tracing.original_name\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"sveltekit.handle.root\",examples:[\"sveltekit.handle.root\"],changelog:[{version:\"0.22.0\",prs:[611],description:\"Added sveltekit.tracing.original_name attribute\"}],additionalContext:[\"The Sentry SDK renames SvelteKit-emitted spans to match Sentry's span name semantics, and preserves the name SvelteKit originally set in this attribute.\"]},\"thread.id\":{brief:\"Current \\u201Cmanaged\\u201D thread ID.\",type:\"integer\",keys:[\"thread.id\",\"sentry.thread.id\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:56,changelog:[{version:\"0.0.0\"}]},\"thread.name\":{brief:\"Current thread name.\",type:\"string\",keys:[\"thread.name\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"main\",changelog:[{version:\"0.1.0\",prs:[127]},{version:\"0.0.0\"}]},\"timber.tag\":{brief:\"The log tag provided by the timber logging framework.\",type:\"string\",keys:[\"timber.tag\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"MyTag\",changelog:[{version:\"0.3.0\",prs:[183]}]},time_to_full_display:{brief:\"The duration of time to full display in milliseconds\",type:\"double\",keys:[\"app.vitals.ttfd.value\",\"time_to_full_display\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:1234.56,deprecation:{replacement:\"app.vitals.ttfd.value\",reason:\"Replaced by app.vitals.ttfd.value to align with the app.vitals.* namespace for mobile performance attributes\",status:\"backfill\"},aliases:[\"app.vitals.ttfd.value\"],changelog:[{version:\"0.5.0\",prs:[313],description:\"Added and deprecated in favor of app.vitals.ttfd.value\"}]},time_to_initial_display:{brief:\"The duration of time to initial display in milliseconds\",type:\"double\",keys:[\"app.vitals.ttid.value\",\"time_to_initial_display\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:1234.56,deprecation:{replacement:\"app.vitals.ttid.value\",reason:\"Replaced by app.vitals.ttid.value to align with the app.vitals.* namespace for mobile performance attributes\",status:\"backfill\"},aliases:[\"app.vitals.ttid.value\"],changelog:[{version:\"0.5.0\",prs:[313],description:\"Added and deprecated in favor of app.vitals.ttid.value\"}]},transaction:{brief:\"The sentry transaction (segment name).\",type:\"string\",keys:[\"sentry.segment.name\",\"transaction\",\"sentry.transaction\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"GET /\",deprecation:{replacement:\"sentry.segment.name\",status:\"normalize\"},aliases:[\"sentry.segment.name\",\"sentry.transaction\"],changelog:[{version:\"0.19.0\",prs:[497],description:\"Change deprecation from backfill to normalize\"},{version:\"0.6.0\",prs:[345],description:\"Updated transaction deprecation replacement to sentry.segment.name\"},{version:\"0.1.0\",prs:[61,127]},{version:\"0.0.0\"}]},\"trpc.procedure_path\":{brief:\"The path of the tRPC procedure being called\",type:\"string\",keys:[\"trpc.procedure_path\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"user.getById\",changelog:[{version:\"0.7.0\",prs:[370],description:\"Added trpc.procedure_path attribute\"}]},\"trpc.procedure_type\":{brief:\"The type of the tRPC procedure\",type:\"string\",keys:[\"trpc.procedure_type\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"query\",changelog:[{version:\"0.7.0\",prs:[370],description:\"Added trpc.procedure_type attribute\"}]},ttfb:{brief:\"The value of the recorded Time To First Byte (TTFB) web vital in milliseconds\",type:\"double\",keys:[\"browser.web_vital.ttfb.value\",\"ttfb\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:194,deprecation:{replacement:\"browser.web_vital.ttfb.value\",reason:\"This attribute is being deprecated in favor of browser.web_vital.ttfb.value\",status:\"backfill\"},aliases:[\"browser.web_vital.ttfb.value\"],changelog:[{version:\"0.5.0\",prs:[235]}]},\"ttfb.requestTime\":{brief:\"The time it takes for the server to process the initial request and send the first byte of a response to the user's browser\",type:\"double\",keys:[\"browser.web_vital.ttfb.request_time\",\"ttfb.requestTime\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:1554.5814,deprecation:{replacement:\"browser.web_vital.ttfb.request_time\",reason:\"This attribute is being deprecated in favor of browser.web_vital.ttfb.request_time\",status:\"backfill\"},aliases:[\"browser.web_vital.ttfb.request_time\"],changelog:[{version:\"0.5.0\",prs:[235]}]},\"turbo_modules.total_call_count\":{brief:\"The number of native module calls in the flushed call aggregate. Only applies to React Native.\",type:\"integer\",keys:[\"react_native.module.call.count\",\"turbo_module.total_call_count\",\"turbo_modules.total_call_count\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:42,examples:[42],deprecation:{replacement:\"react_native.module.call.count\",reason:\"Replaced by the `react_native.module.*` namespace; the SDK emitted the same values under both a singular `turbo_module.*` and a plural `turbo_modules.*` prefix\",status:\"backfill\"},aliases:[\"react_native.module.call.count\",\"turbo_module.total_call_count\"],changelog:[{version:\"0.24.0\",prs:[564],description:\"Added turbo_modules.total_call_count and deprecated it in favor of react_native.module.call.count\"}]},\"turbo_modules.total_duration_ms\":{brief:\"The combined duration of all native module calls in the flushed call aggregate, in milliseconds. Only applies to React Native.\",type:\"double\",keys:[\"react_native.module.duration.total\",\"turbo_module.total_duration_ms\",\"turbo_modules.total_duration_ms\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:128.45,examples:[128.45],deprecation:{replacement:\"react_native.module.duration.total\",reason:\"Replaced by the `react_native.module.*` namespace; the SDK emitted the same values under both a singular `turbo_module.*` and a plural `turbo_modules.*` prefix\",status:\"backfill\"},aliases:[\"react_native.module.duration.total\",\"turbo_module.total_duration_ms\"],changelog:[{version:\"0.24.0\",prs:[564],description:\"Added turbo_modules.total_duration_ms and deprecated it in favor of react_native.module.duration.total\"}]},\"turbo_modules.total_error_count\":{brief:\"The number of failed native module calls in the flushed call aggregate. Only applies to React Native.\",type:\"integer\",keys:[\"react_native.module.error.count\",\"turbo_module.total_error_count\",\"turbo_modules.total_error_count\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:2,examples:[2],deprecation:{replacement:\"react_native.module.error.count\",reason:\"Replaced by the `react_native.module.*` namespace; the SDK emitted the same values under both a singular `turbo_module.*` and a plural `turbo_modules.*` prefix\",status:\"backfill\"},aliases:[\"react_native.module.error.count\",\"turbo_module.total_error_count\"],changelog:[{version:\"0.24.0\",prs:[564],description:\"Added turbo_modules.total_error_count and deprecated it in favor of react_native.module.error.count\"}]},\"turbo_modules.unique_methods\":{brief:\"The number of distinct native module and method pairs in the flushed call aggregate. Only applies to React Native.\",type:\"integer\",keys:[\"react_native.module.call.distinct_count\",\"turbo_module.unique_methods\",\"turbo_modules.unique_methods\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:7,examples:[7],deprecation:{replacement:\"react_native.module.call.distinct_count\",reason:\"Replaced by the `react_native.module.*` namespace; the SDK emitted the same values under both a singular `turbo_module.*` and a plural `turbo_modules.*` prefix\",status:\"backfill\"},aliases:[\"react_native.module.call.distinct_count\",\"turbo_module.unique_methods\"],changelog:[{version:\"0.24.0\",prs:[564],description:\"Added turbo_modules.unique_methods and deprecated it in favor of react_native.module.call.distinct_count\"}]},\"turbo_module.arch\":{brief:\"The React Native architecture the call was observed on. `new` for a TurboModule resolved through `TurboModuleRegistry`, `legacy` for a module reached over the Old Architecture bridge. Only applies to React Native.\",type:\"string\",keys:[\"react_native.architecture\",\"turbo_module.arch\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"new\",examples:[\"new\",\"legacy\"],deprecation:{replacement:\"react_native.architecture\",reason:\"Replaced by the `react_native.*` namespace, which also covers native module calls made over the Old Architecture bridge, which are not TurboModules\",status:\"backfill\"},aliases:[\"react_native.architecture\"],changelog:[{version:\"0.24.0\",prs:[564],description:\"Added turbo_module.arch and deprecated it in favor of react_native.architecture\"}]},\"turbo_module.method\":{brief:\"The name of the native module method that was called. Only applies to React Native.\",type:\"string\",keys:[\"react_native.module.method\",\"turbo_module.method\"],applyScrubbing:{key:\"manual\",reason:\"Native module and method names are app-defined identifiers, but scrubbing them would make the call attribution unusable\"},isInOtel:!1,visibility:\"public\",example:\"getUniqueId\",examples:[\"getUniqueId\"],deprecation:{replacement:\"react_native.module.method\",reason:\"Replaced by the `react_native.*` namespace, which also covers native module calls made over the Old Architecture bridge, which are not TurboModules\",status:\"backfill\"},aliases:[\"react_native.module.method\"],changelog:[{version:\"0.24.0\",prs:[564],description:\"Added turbo_module.method and deprecated it in favor of react_native.module.method\"}]},\"turbo_module.name\":{brief:\"The name of the native module the call was dispatched to. On the New Architecture this is the TurboModule name, on the Old Architecture the `NativeModules` key. Only applies to React Native.\",type:\"string\",keys:[\"react_native.module.name\",\"turbo_module.name\"],applyScrubbing:{key:\"manual\",reason:\"Native module and method names are app-defined identifiers, but scrubbing them would make the call attribution unusable\"},isInOtel:!1,visibility:\"public\",example:\"RNDeviceInfo\",examples:[\"RNDeviceInfo\"],deprecation:{replacement:\"react_native.module.name\",reason:\"Replaced by the `react_native.*` namespace, which also covers native module calls made over the Old Architecture bridge, which are not TurboModules\",status:\"backfill\"},aliases:[\"react_native.module.name\"],changelog:[{version:\"0.24.0\",prs:[564],description:\"Added turbo_module.name and deprecated it in favor of react_native.module.name\"}]},\"turbo_module.top_module\":{brief:\"The native module and method that accounted for the most total duration during the lifetime of the span. Only applies to React Native.\",type:\"string\",keys:[\"react_native.module.top.name\",\"turbo_module.top_module\"],applyScrubbing:{key:\"manual\",reason:\"Native module and method names are app-defined identifiers, but scrubbing them would make the call attribution unusable\"},isInOtel:!1,visibility:\"public\",example:\"RNDeviceInfo.getUniqueId\",examples:[\"RNDeviceInfo.getUniqueId\"],deprecation:{replacement:\"react_native.module.top.name\",reason:\"Replaced by the `react_native.module.*` namespace, which also covers native module calls made over the Old Architecture bridge, and which drops the `total_` prefix and `_ms` suffix in favor of dot-separated logical grouping\",status:\"backfill\"},aliases:[\"react_native.module.top.name\"],changelog:[{version:\"0.24.0\",prs:[564],description:\"Added turbo_module.top_module and deprecated it in favor of react_native.module.top.name\"}]},\"turbo_module.top_module_duration_ms\":{brief:\"The total duration attributed to the top native module method, in milliseconds. Only applies to React Native.\",type:\"double\",keys:[\"react_native.module.top.duration\",\"turbo_module.top_module_duration_ms\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:87.25,examples:[87.25],deprecation:{replacement:\"react_native.module.top.duration\",reason:\"Replaced by the `react_native.module.*` namespace, which also covers native module calls made over the Old Architecture bridge, and which drops the `total_` prefix and `_ms` suffix in favor of dot-separated logical grouping\",status:\"backfill\"},aliases:[\"react_native.module.top.duration\"],changelog:[{version:\"0.24.0\",prs:[564],description:\"Added turbo_module.top_module_duration_ms and deprecated it in favor of react_native.module.top.duration\"}]},\"turbo_module.total_call_count\":{brief:\"The number of native module calls observed during the lifetime of the span. Only applies to React Native.\",type:\"integer\",keys:[\"react_native.module.call.count\",\"turbo_module.total_call_count\",\"turbo_modules.total_call_count\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:42,examples:[42],deprecation:{replacement:\"react_native.module.call.count\",reason:\"Replaced by the `react_native.module.*` namespace, which also covers native module calls made over the Old Architecture bridge, and which drops the `total_` prefix and `_ms` suffix in favor of dot-separated logical grouping\",status:\"backfill\"},aliases:[\"react_native.module.call.count\",\"turbo_modules.total_call_count\"],changelog:[{version:\"0.24.0\",prs:[564],description:\"Added turbo_module.total_call_count and deprecated it in favor of react_native.module.call.count\"}]},\"turbo_module.total_duration_ms\":{brief:\"The combined duration of all native module calls observed during the lifetime of the span, in milliseconds. Only applies to React Native.\",type:\"double\",keys:[\"react_native.module.duration.total\",\"turbo_module.total_duration_ms\",\"turbo_modules.total_duration_ms\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:128.45,examples:[128.45],deprecation:{replacement:\"react_native.module.duration.total\",reason:\"Replaced by the `react_native.module.*` namespace, which also covers native module calls made over the Old Architecture bridge, and which drops the `total_` prefix and `_ms` suffix in favor of dot-separated logical grouping\",status:\"backfill\"},aliases:[\"react_native.module.duration.total\",\"turbo_modules.total_duration_ms\"],changelog:[{version:\"0.24.0\",prs:[564],description:\"Added turbo_module.total_duration_ms and deprecated it in favor of react_native.module.duration.total\"}]},\"turbo_module.total_error_count\":{brief:\"The number of native module calls that failed during the lifetime of the span. Only applies to React Native.\",type:\"integer\",keys:[\"react_native.module.error.count\",\"turbo_module.total_error_count\",\"turbo_modules.total_error_count\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:2,examples:[2],deprecation:{replacement:\"react_native.module.error.count\",reason:\"Replaced by the `react_native.module.*` namespace, which also covers native module calls made over the Old Architecture bridge, and which drops the `total_` prefix and `_ms` suffix in favor of dot-separated logical grouping\",status:\"backfill\"},aliases:[\"react_native.module.error.count\",\"turbo_modules.total_error_count\"],changelog:[{version:\"0.24.0\",prs:[564],description:\"Added turbo_module.total_error_count and deprecated it in favor of react_native.module.error.count\"}]},\"turbo_module.unique_methods\":{brief:\"The number of distinct native module and method pairs called during the lifetime of the span. Only applies to React Native.\",type:\"integer\",keys:[\"react_native.module.call.distinct_count\",\"turbo_module.unique_methods\",\"turbo_modules.unique_methods\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:7,examples:[7],deprecation:{replacement:\"react_native.module.call.distinct_count\",reason:\"Replaced by the `react_native.module.*` namespace, which also covers native module calls made over the Old Architecture bridge, and which drops the `total_` prefix and `_ms` suffix in favor of dot-separated logical grouping\",status:\"backfill\"},aliases:[\"react_native.module.call.distinct_count\",\"turbo_modules.unique_methods\"],changelog:[{version:\"0.24.0\",prs:[564],description:\"Added turbo_module.unique_methods and deprecated it in favor of react_native.module.call.distinct_count\"}]},type:{brief:\"More granular type of the operation happening.\",type:\"string\",keys:[\"type\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"fetch\",changelog:[{version:\"0.0.0\"}]},\"ui.component_name\":{brief:\"The name of the associated component.\",type:\"string\",keys:[\"ui.component_name\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"HomeButton\",changelog:[{version:\"0.1.0\",prs:[127]},{version:\"0.0.0\"}]},\"ui.contributes_to_ttfd\":{brief:\"Whether the span execution contributed to the TTFD (time to fully drawn) metric.\",type:\"boolean\",keys:[\"ui.contributes_to_ttfd\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:!0,changelog:[{version:\"0.0.0\"}]},\"ui.contributes_to_ttid\":{brief:\"Whether the span execution contributed to the TTID (time to initial display) metric.\",type:\"boolean\",keys:[\"ui.contributes_to_ttid\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:!0,changelog:[{version:\"0.0.0\"}]},\"ui.element.height\":{brief:\"The height of the UI element (for Html in pixels)\",type:\"integer\",keys:[\"ui.element.height\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:256,changelog:[{version:\"0.5.0\",prs:[284],description:\"Added ui.element.height attribute\"}]},\"ui.element.id\":{brief:\"The id of the UI element\",type:\"string\",keys:[\"ui.element.id\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"btn-login\",changelog:[{version:\"0.5.0\",prs:[284],description:\"Added ui.element.id attribute\"}]},\"ui.element.identifier\":{brief:\"The identifier used to measure the UI element timing\",type:\"string\",keys:[\"ui.element.identifier\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"heroImage\",changelog:[{version:\"0.5.0\",prs:[284],description:\"Added ui.element.identifier attribute\"}]},\"ui.element.load_time\":{brief:\"The loading time of a UI element (from time origin to finished loading)\",type:\"double\",keys:[\"ui.element.load_time\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:998.2234,changelog:[{version:\"0.5.0\",prs:[284],description:\"Added ui.element.load_time attribute\"}]},\"ui.element.paint_type\":{brief:\"The type of element paint. Can either be 'image-paint' or 'text-paint'\",type:\"string\",keys:[\"ui.element.paint_type\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"image-paint\",changelog:[{version:\"0.5.0\",prs:[284],description:\"Added ui.element.paint_type attribute\"}]},\"ui.element.render_time\":{brief:\"The rendering time of the UI element (from time origin to finished rendering)\",type:\"double\",keys:[\"ui.element.render_time\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:1023.1124,changelog:[{version:\"0.5.0\",prs:[284],description:\"Added ui.element.render_time attribute\"}]},\"ui.element.type\":{brief:\"type of the UI element\",type:\"string\",keys:[\"ui.element.type\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"img\",changelog:[{version:\"0.5.0\",prs:[284],description:\"Added ui.element.type attribute\"}]},\"ui.element.url\":{brief:\"The URL of the UI element (e.g. an img src)\",type:\"string\",keys:[\"ui.element.url\"],applyScrubbing:{key:\"auto\"},isInOtel:!1,visibility:\"public\",example:\"https://assets.myapp.com/hero.png\",changelog:[{version:\"0.5.0\",prs:[284],description:\"Added ui.element.url attribute\"}]},\"ui.element.width\":{brief:\"The width of the UI element (for HTML in pixels)\",type:\"integer\",keys:[\"ui.element.width\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:512,changelog:[{version:\"0.5.0\",prs:[284],description:\"Added ui.element.width attribute\"}]},url:{brief:\"The URL of the resource that was fetched.\",type:\"string\",keys:[\"url.full\",\"aws.request.url\",\"http.url\",\"messaging.url\",\"url\"],applyScrubbing:{key:\"auto\"},isInOtel:!1,visibility:\"public\",example:\"https://example.com/test?foo=bar#buzz\",deprecation:{replacement:\"url.full\",status:\"backfill\"},aliases:[\"url.full\",\"http.url\",\"aws.request.url\",\"messaging.url\"],changelog:[{version:\"0.21.0\",prs:[581],description:\"Added messaging.url as an alias\"},{version:\"0.1.0\",prs:[61]},{version:\"0.0.0\"}]},\"url.domain\":{brief:\"Server domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name.\",type:\"string\",keys:[\"url.domain\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"example.com\",changelog:[{version:\"0.1.0\",prs:[127]},{version:\"0.0.0\"}]},\"url.fragment\":{brief:\"The fragments present in the URI. Note that this does not contain the leading # character, while the `http.fragment` attribute does.\",type:\"string\",keys:[\"url.fragment\"],applyScrubbing:{key:\"auto\"},isInOtel:!0,visibility:\"public\",example:\"details\",changelog:[{version:\"0.0.0\"}]},\"url.full\":{brief:\"The URL of the resource that was fetched.\",type:\"string\",keys:[\"url.full\",\"aws.request.url\",\"http.url\",\"messaging.url\",\"url\"],applyScrubbing:{key:\"auto\"},isInOtel:!0,visibility:\"public\",example:\"https://example.com/test?foo=bar#buzz\",aliases:[\"http.url\",\"url\",\"aws.request.url\",\"messaging.url\"],changelog:[{version:\"0.21.0\",prs:[581],description:\"Added messaging.url as an alias\"},{version:\"0.19.0\",prs:[488],description:\"Added aws.request.url as an alias\"},{version:\"0.1.0\",prs:[108]},{version:\"0.0.0\"}]},\"url.path\":{brief:\"The URI path component.\",type:\"string\",keys:[\"url.path\"],applyScrubbing:{key:\"auto\"},isInOtel:!0,visibility:\"public\",example:\"/foo\",changelog:[{version:\"0.0.0\"}]},\"url.path.parameter.<key>\":{brief:\"Decoded parameters extracted from a URL path. Usually added by client-side routing frameworks like vue-router.\",type:\"string\",keys:[\"url.path.parameter.<key>\",\"params.<key>\",\"url.path.params.<key>\"],applyScrubbing:{key:\"auto\"},isInOtel:!1,visibility:\"public\",hasDynamicSuffix:!0,example:\"url.path.parameter.id='123'\",aliases:[\"params.<key>\",\"url.path.params.<key>\"],changelog:[{version:\"0.21.0\",prs:[586],description:\"Added url.path.params.<key> as an alias\"},{version:\"0.1.0\",prs:[103]}]},\"url.path.params.<key>\":{brief:\"Decoded parameters extracted from a URL path. Usually added by client-side routing frameworks like vue-router.\",type:\"string\",keys:[\"url.path.parameter.<key>\",\"params.<key>\",\"url.path.params.<key>\"],applyScrubbing:{key:\"auto\"},isInOtel:!1,visibility:\"public\",hasDynamicSuffix:!0,example:\"url.path.params.id='123'\",examples:[\"url.path.params.id='123'\"],deprecation:{replacement:\"url.path.parameter.<key>\",reason:\"This attribute is being deprecated in favor of url.path.parameter.<key>.\",status:\"backfill\"},aliases:[\"url.path.parameter.<key>\",\"params.<key>\"],changelog:[{version:\"0.21.0\",prs:[586],description:\"Added url.path.params.<key> attribute\"}]},\"url.port\":{brief:\"Server port number.\",type:\"integer\",keys:[\"url.port\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:1337,changelog:[{version:\"0.4.0\",prs:[228]},{version:\"0.0.0\"}]},\"url.query\":{brief:\"The query string present in the URL. Note that this does not contain the leading ? character, while the `http.query` attribute does.\",type:\"string\",keys:[\"url.query\"],applyScrubbing:{key:\"auto\",reason:\"Query string values can contain sensitive information. Clients should attempt to scrub parameters that might contain sensitive information.\"},isInOtel:!0,visibility:\"public\",example:\"foo=bar&bar=baz\",changelog:[{version:\"0.0.0\"}]},\"url.same_origin\":{brief:\"Indicates that a URL has the same origin as the current page's origin in the browser.\",type:\"boolean\",keys:[\"http.request.same_origin\",\"url.same_origin\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:!0,deprecation:{replacement:\"http.request.same_origin\",reason:\"This attribute is being deprecated in favor of http.request.same_origin.\",status:\"backfill\"},aliases:[\"http.request.same_origin\"],changelog:[{version:\"0.16.0\",prs:[456],description:\"Added url.same_origin attribute, deprecated in favor of http.request.same_origin\"}]},\"url.scheme\":{brief:\"The URI scheme component identifying the used protocol.\",type:\"string\",keys:[\"url.scheme\",\"http.scheme\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"https\",aliases:[\"http.scheme\"],changelog:[{version:\"0.1.0\",prs:[127]},{version:\"0.0.0\"}]},\"url.template\":{brief:\"The low-cardinality template of an absolute URL path reference.\",type:\"string\",keys:[\"url.template\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"/users/{id}\",examples:[\"/users/{id}\",\"/users/:id\",\"/about\"],changelog:[{version:\"0.19.0\",prs:[505,521],description:\"Added multiple examples, removed alias to `http.route`, added additional context\"},{version:\"0.1.0\",prs:[127]},{version:\"0.0.0\"}],additionalContext:[\"This attribute should primarily be set by client-side routing instrumentation, or `http.client` spans (if applicable).\",\"Use `http.route` for server-side instrumentation that captures the framework route of an incoming request.\"]},\"user_agent.original\":{brief:\"Value of the HTTP User-Agent header sent by the client.\",type:\"string\",keys:[\"user_agent.original\",\"http.user_agent\"],applyScrubbing:{key:\"manual\"},isInOtel:!0,visibility:\"public\",example:\"Mozilla/5.0 (iPhone; CPU iPhone OS 14_7_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.1.2 Mobile/15E148 Safari/604.1\",aliases:[\"http.user_agent\"],changelog:[{version:\"0.1.0\",prs:[127]},{version:\"0.0.0\"}]},\"user.email\":{brief:\"User email address.\",type:\"string\",keys:[\"user.email\",\"sentry.user.email\"],applyScrubbing:{key:\"auto\"},isInOtel:!0,visibility:\"public\",example:\"test@example.com\",aliases:[\"sentry.user.email\"],changelog:[{version:\"0.0.0\"}]},\"user.full_name\":{brief:\"User's full name.\",type:\"string\",keys:[\"user.full_name\"],applyScrubbing:{key:\"auto\"},isInOtel:!0,visibility:\"public\",example:\"John Smith\",changelog:[{version:\"0.0.0\"}]},\"user.geo.city\":{brief:\"Human readable city name.\",type:\"string\",keys:[\"user.geo.city\",\"sentry.user.geo.city\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"Toronto\",aliases:[\"sentry.user.geo.city\"],changelog:[{version:\"0.0.0\"}]},\"user.geo.country_code\":{brief:\"Two-letter country code (ISO 3166-1 alpha-2).\",type:\"string\",keys:[\"user.geo.country_code\",\"sentry.user.geo.country_code\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"CA\",aliases:[\"sentry.user.geo.country_code\"],changelog:[{version:\"0.0.0\"}]},\"user.geo.region\":{brief:\"Human readable region name or code.\",type:\"string\",keys:[\"user.geo.region\",\"sentry.user.geo.region\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"Canada\",aliases:[\"sentry.user.geo.region\"],changelog:[{version:\"0.0.0\"}]},\"user.geo.subdivision\":{brief:\"Human readable subdivision name.\",type:\"string\",keys:[\"user.geo.subdivision\",\"sentry.user.geo.subdivision\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"Ontario\",aliases:[\"sentry.user.geo.subdivision\"],changelog:[{version:\"0.0.0\"}]},\"user.hash\":{brief:\"Unique user hash to correlate information for a user in anonymized form.\",type:\"string\",keys:[\"user.hash\"],applyScrubbing:{key:\"auto\"},isInOtel:!0,visibility:\"public\",example:\"8ae4c2993e0f4f3b8b2d1b1f3b5e8f4d\",changelog:[{version:\"0.0.0\"}]},\"user.id\":{brief:\"Unique identifier of the user.\",type:\"string\",keys:[\"user.id\",\"sentry.user.id\"],applyScrubbing:{key:\"auto\"},isInOtel:!0,visibility:\"public\",example:\"S-1-5-21-202424912787-2692429404-2351956786-1000\",aliases:[\"sentry.user.id\"],changelog:[{version:\"0.0.0\"}]},\"user.ip_address\":{brief:\"The IP address of the user.\",type:\"string\",keys:[\"user.ip_address\",\"sentry.user.ip\",\"user.ip\"],applyScrubbing:{key:\"auto\"},isInOtel:!1,visibility:\"public\",example:\"192.168.1.1\",aliases:[\"sentry.user.ip\"],changelog:[{version:\"0.1.0\",prs:[75]}]},\"user.name\":{brief:\"Short name or login/username of the user.\",type:\"string\",keys:[\"user.name\",\"sentry.user.username\",\"user.username\"],applyScrubbing:{key:\"auto\"},isInOtel:!0,visibility:\"public\",example:\"j.smith\",aliases:[\"sentry.user.username\"],changelog:[{version:\"0.0.0\"}]},\"user.roles\":{brief:\"Array of user roles at the time of the event.\",type:\"string[]\",keys:[\"user.roles\"],applyScrubbing:{key:\"auto\"},isInOtel:!0,visibility:\"public\",example:[\"admin\",\"editor\"],changelog:[{version:\"0.0.0\"}]},\"vercel.ai.telemetry.metadata.<key>\":{brief:\"Metadata passed to a Vercel AI SDK call through `experimental_telemetry.metadata`, with <key> being the metadata key name.\",type:\"string\",keys:[\"vercel.ai.telemetry.metadata.<key>\"],applyScrubbing:{key:\"auto\",reason:\"Metadata is user-defined and can contain user data\"},isInOtel:!1,visibility:\"public\",hasDynamicSuffix:!0,example:\"vercel.ai.telemetry.metadata.tenantId='acme'\",examples:[\"vercel.ai.telemetry.metadata.tenantId='acme'\"],changelog:[{version:\"0.26.0\",prs:[662],description:\"Added vercel.ai.telemetry.metadata.<key> attribute\"}],additionalContext:[\"Set on `gen_ai` spans for `invoke_agent`, `generate_content` and `embeddings` operations. Not set on `execute_tool` spans.\",\"The Vercel AI SDK's own OpenTelemetry spans emit the same data as `ai.telemetry.metadata.<key>`.\",\"The Vercel AI SDK also allows numbers, booleans and arrays as metadata values. SDKs MUST convert these values to strings.\",\"This attribute is open-ended on purpose. The Vercel AI SDK does not define the metadata keys. If Vercel defines a stricter spec for this metadata, consider moving it into `gen_ai.*` attributes.\"]},\"vercel.branch\":{brief:\"Git branch name for Vercel project\",type:\"string\",keys:[\"vercel.branch\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"main\",changelog:[{version:\"0.2.0\",prs:[163]}]},\"vercel.build_id\":{brief:\"Identifier for the Vercel build (only present on build logs)\",type:\"string\",keys:[\"vercel.build_id\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"bld_cotnkcr76\",changelog:[{version:\"0.2.0\",prs:[163]}]},\"vercel.deployment_id\":{brief:\"Identifier for the Vercel deployment\",type:\"string\",keys:[\"vercel.deployment_id\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"dpl_233NRGRjVZX1caZrXWtz5g1TAksD\",changelog:[{version:\"0.2.0\",prs:[163]}]},\"vercel.destination\":{brief:\"Origin of the external content in Vercel (only on external logs)\",type:\"string\",keys:[\"vercel.destination\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"https://vitals.vercel-insights.com/v1\",changelog:[{version:\"0.2.0\",prs:[163]}]},\"vercel.edge_type\":{brief:\"Type of edge runtime in Vercel\",type:\"string\",keys:[\"vercel.edge_type\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"edge-function\",changelog:[{version:\"0.2.0\",prs:[163]}]},\"vercel.entrypoint\":{brief:\"Entrypoint for the request in Vercel\",type:\"string\",keys:[\"vercel.entrypoint\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"api/index.js\",changelog:[{version:\"0.2.0\",prs:[163]}]},\"vercel.execution_region\":{brief:\"Region where the request is executed\",type:\"string\",keys:[\"vercel.execution_region\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"sfo1\",changelog:[{version:\"0.2.0\",prs:[163]}]},\"vercel.id\":{brief:\"Unique identifier for the log entry in Vercel\",type:\"string\",keys:[\"vercel.id\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"1573817187330377061717300000\",changelog:[{version:\"0.2.0\",prs:[163]}]},\"vercel.ja3_digest\":{brief:\"JA3 fingerprint digest of Vercel request\",type:\"string\",keys:[\"vercel.ja3_digest\"],applyScrubbing:{key:\"auto\"},isInOtel:!1,visibility:\"public\",example:\"769,47-53-5-10-49161-49162-49171-49172-50-56-19-4,0-10-11,23-24-25,0\",changelog:[{version:\"0.2.0\",prs:[163]}]},\"vercel.ja4_digest\":{brief:\"JA4 fingerprint digest\",type:\"string\",keys:[\"vercel.ja4_digest\"],applyScrubbing:{key:\"auto\"},isInOtel:!1,visibility:\"public\",example:\"t13d1516h2_8daaf6152771_02713d6af862\",changelog:[{version:\"0.2.0\",prs:[163]}]},\"vercel.log_type\":{brief:\"Vercel log output type\",type:\"string\",keys:[\"vercel.log_type\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"stdout\",changelog:[{version:\"0.2.0\",prs:[163]}]},\"vercel.path\":{brief:\"Function or dynamic path of the request in Vercel.\",type:\"string\",keys:[\"vercel.path\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"/dynamic/[route].json\",changelog:[{version:\"0.6.0\",prs:[349],description:\"Added vercel.path attribute\"}]},\"vercel.project_id\":{brief:\"Identifier for the Vercel project\",type:\"string\",keys:[\"vercel.project_id\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"gdufoJxB6b9b1fEqr1jUtFkyavUU\",changelog:[{version:\"0.2.0\",prs:[163]}]},\"vercel.project_name\":{brief:\"Name of the Vercel project\",type:\"string\",keys:[\"vercel.project_name\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"my-app\",changelog:[{version:\"0.2.0\",prs:[163]}]},\"vercel.proxy.cache_id\":{brief:\"Original request ID when request is served from cache\",type:\"string\",keys:[\"vercel.proxy.cache_id\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"pdx1::v8g4b-1744143786684-93dafbc0f70d\",changelog:[{version:\"0.2.0\",prs:[163]}]},\"vercel.proxy.client_ip\":{brief:\"Client IP address\",type:\"string\",keys:[\"vercel.proxy.client_ip\"],applyScrubbing:{key:\"auto\"},isInOtel:!1,visibility:\"public\",example:\"120.75.16.101\",changelog:[{version:\"0.2.0\",prs:[163]}]},\"vercel.proxy.host\":{brief:\"Hostname of the request\",type:\"string\",keys:[\"vercel.proxy.host\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"test.vercel.app\",changelog:[{version:\"0.2.0\",prs:[163]}]},\"vercel.proxy.lambda_region\":{brief:\"Region where lambda function executed\",type:\"string\",keys:[\"vercel.proxy.lambda_region\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"sfo1\",changelog:[{version:\"0.2.0\",prs:[163]}]},\"vercel.proxy.method\":{brief:\"HTTP method of the request\",type:\"string\",keys:[\"vercel.proxy.method\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"GET\",changelog:[{version:\"0.2.0\",prs:[163]}]},\"vercel.proxy.path\":{brief:\"Request path with query parameters\",type:\"string\",keys:[\"vercel.proxy.path\"],applyScrubbing:{key:\"auto\"},isInOtel:!1,visibility:\"public\",example:\"/dynamic/some-value.json?route=some-value\",changelog:[{version:\"0.2.0\",prs:[163]}]},\"vercel.proxy.path_type\":{brief:\"How the request was served based on its path and project configuration\",type:\"string\",keys:[\"vercel.proxy.path_type\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"func\",changelog:[{version:\"0.2.0\",prs:[163]}]},\"vercel.proxy.path_type_variant\":{brief:\"Variant of the path type\",type:\"string\",keys:[\"vercel.proxy.path_type_variant\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"api\",changelog:[{version:\"0.2.0\",prs:[163]}]},\"vercel.proxy.referer\":{brief:\"Referer of the request\",type:\"string\",keys:[\"vercel.proxy.referer\"],applyScrubbing:{key:\"auto\"},isInOtel:!1,visibility:\"public\",example:\"*.vercel.app\",changelog:[{version:\"0.2.0\",prs:[163]}]},\"vercel.proxy.region\":{brief:\"Region where the request is processed\",type:\"string\",keys:[\"vercel.proxy.region\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"sfo1\",changelog:[{version:\"0.2.0\",prs:[163]}]},\"vercel.proxy.response_byte_size\":{brief:\"Size of the response in bytes\",type:\"integer\",keys:[\"vercel.proxy.response_byte_size\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:1024,changelog:[{version:\"0.4.0\",prs:[228]},{version:\"0.2.0\",prs:[163]}]},\"vercel.proxy.scheme\":{brief:\"Protocol of the request\",type:\"string\",keys:[\"vercel.proxy.scheme\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"https\",changelog:[{version:\"0.2.0\",prs:[163]}]},\"vercel.proxy.status_code\":{brief:\"HTTP status code of the proxy request\",type:\"integer\",keys:[\"vercel.proxy.status_code\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:200,changelog:[{version:\"0.4.0\",prs:[228]},{version:\"0.2.0\",prs:[163]}]},\"vercel.proxy.timestamp\":{brief:\"Unix timestamp when the proxy request was made\",type:\"integer\",keys:[\"vercel.proxy.timestamp\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:1573817250172,changelog:[{version:\"0.4.0\",prs:[228]},{version:\"0.2.0\",prs:[163]}]},\"vercel.proxy.user_agent\":{brief:\"User agent strings of the request\",type:\"string[]\",keys:[\"vercel.proxy.user_agent\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:[\"Mozilla/5.0...\"],changelog:[{version:\"0.2.0\",prs:[163]}]},\"vercel.proxy.vercel_cache\":{brief:\"Cache status sent to the browser\",type:\"string\",keys:[\"vercel.proxy.vercel_cache\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"REVALIDATED\",changelog:[{version:\"0.2.0\",prs:[163]}]},\"vercel.proxy.vercel_id\":{brief:\"Vercel-specific identifier\",type:\"string\",keys:[\"vercel.proxy.vercel_id\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"sfo1::abc123\",changelog:[{version:\"0.2.0\",prs:[163]}]},\"vercel.proxy.waf_action\":{brief:\"Action taken by firewall rules\",type:\"string\",keys:[\"vercel.proxy.waf_action\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"deny\",changelog:[{version:\"0.2.0\",prs:[163]}]},\"vercel.proxy.waf_rule_id\":{brief:\"ID of the firewall rule that matched\",type:\"string\",keys:[\"vercel.proxy.waf_rule_id\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"rule_gAHz8jtSB1Gy\",changelog:[{version:\"0.2.0\",prs:[163]}]},\"vercel.request_id\":{brief:\"Identifier of the Vercel request\",type:\"string\",keys:[\"vercel.request_id\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"643af4e3-975a-4cc7-9e7a-1eda11539d90\",changelog:[{version:\"0.2.0\",prs:[163]}]},\"vercel.source\":{brief:\"Origin of the Vercel log (build, edge, lambda, static, external, or firewall)\",type:\"string\",keys:[\"vercel.source\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:\"build\",changelog:[{version:\"0.2.0\",prs:[163]}]},\"vercel.status_code\":{brief:\"HTTP status code of the request (-1 means no response returned and the lambda crashed)\",type:\"integer\",keys:[\"vercel.status_code\"],applyScrubbing:{key:\"manual\"},isInOtel:!1,visibility:\"public\",example:200,changelog:[{version:\"0.4.0\",prs:[228]},{version:\"0.2.0\",prs:[163]}]}};export{e as ADDRESS,t as AI_CITATIONS,i as AI_COMPLETION_TOKENS_USED,a as AI_DOCUMENTS,s as AI_FINISH_REASON,r as AI_FREQUENCY_PENALTY,n as AI_FUNCTION_CALL,o as AI_GENERATION_ID,l as AI_INPUT_MESSAGES,p as AI_IS_SEARCH_REQUIRED,c as AI_METADATA,u as AI_MODEL_ID,g as AI_MODEL_PROVIDER,b as AI_PIPELINE_NAME,m as AI_PREAMBLE,y as AI_PRESENCE_PENALTY,_ as AI_PROMPT,h as AI_PROMPT_MESSAGES,f as AI_PROMPT_TOKENS_USED,v as AI_PROMPT_TOOLS,k as AI_RAW_PROMPTING,T as AI_RESPONSES,S as AI_RESPONSE_FORMAT,E as AI_RESPONSE_ID,O as AI_RESPONSE_MODEL,I as AI_RESPONSE_OBJECT,A as AI_RESPONSE_TEXT,w as AI_RESPONSE_TIMESTAMP,x as AI_RESPONSE_TOOLCALLS,R as AI_SCHEMA,N as AI_SEARCH_QUERIES,C as AI_SEARCH_RESULTS,P as AI_SEED,D as AI_STREAMING,q as AI_TAGS,L as AI_TEMPERATURE,M as AI_TEXTS,U as AI_TOOLCALL_ARGS,G as AI_TOOLCALL_RESULT,z as AI_TOOLS,Y as AI_TOOL_CALLS,V as AI_TOP_K,F as AI_TOP_P,B as AI_TOTAL_COST,W as AI_TOTAL_TOKENS_USED,H as AI_USAGE_TOKENS,K as AI_VALUES,j as AI_WARNINGS,Q as ANGULAR_VERSION,X as ANTHROPIC_TOOL_RESULT_CONTENT,J as APP_APP_BUILD,Z as APP_APP_IDENTIFIER,$ as APP_APP_NAME,ee as APP_APP_START_TIME,te as APP_APP_VERSION,ie as APP_BUILD,ae as APP_IDENTIFIER,se as APP_IN_FOREGROUND,re as APP_NAME,ne as APP_START_COLD,oe as APP_START_TIME,le as APP_START_TYPE,pe as APP_START_WARM,ce as APP_VERSION,ue as APP_VITALS_FRAMES_DELAY_VALUE,de as APP_VITALS_FRAMES_FROZEN_COUNT,ge as APP_VITALS_FRAMES_FROZEN_RATE,be as APP_VITALS_FRAMES_SLOW_COUNT,me as APP_VITALS_FRAMES_SLOW_RATE,ye as APP_VITALS_FRAMES_TOTAL_COUNT,_e as APP_VITALS_STALL_DURATION,he as APP_VITALS_STALL_PERCENTAGE,fe as APP_VITALS_START_COLD_VALUE,ve as APP_VITALS_START_PREWARMED,ke as APP_VITALS_START_REASON,Te as APP_VITALS_START_SCREEN,Se as APP_VITALS_START_TYPE,Ee as APP_VITALS_START_WARM_VALUE,Oe as APP_VITALS_TTFD_VALUE,Ie as APP_VITALS_TTID_VALUE,Ae as ART_GC_BLOCKING_COUNT,we as ART_GC_BLOCKING_TIME,xe as ART_GC_PRE_OOME_COUNT,Re as ART_GC_TOTAL_COUNT,Ne as ART_GC_TOTAL_TIME,Ce as ART_GC_WAITING_TIME,Pe as ART_MEMORY_FREE,De as ART_MEMORY_FREE_UNTIL_GC,qe as ART_MEMORY_FREE_UNTIL_OOME,Le as ART_MEMORY_MAX,Me as ART_MEMORY_TOTAL,Am as ATTRIBUTE_METADATA,Im as ATTRIBUTE_TYPE,Ue as AWS_CLOUDWATCH_LOGS_LOG_GROUP,Ge as AWS_CLOUDWATCH_LOGS_LOG_STREAM,ze as AWS_CLOUDWATCH_LOGS_URL,Ye as AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS,Ve as AWS_DYNAMODB_CONSISTENT_READ,Fe as AWS_DYNAMODB_CONSUMED_CAPACITY,Be as AWS_DYNAMODB_COUNT,We as AWS_DYNAMODB_EXCLUSIVE_START_TABLE,He as AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES,Ke as AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES,je as AWS_DYNAMODB_INDEX_NAME,Qe as AWS_DYNAMODB_ITEM_COLLECTION_METRICS,Xe as AWS_DYNAMODB_LIMIT,Je as AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES,Ze as AWS_DYNAMODB_PROJECTION,$e as AWS_DYNAMODB_PROVISIONED_READ_CAPACITY,et as AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY,tt as AWS_DYNAMODB_SCANNED_COUNT,it as AWS_DYNAMODB_SCAN_FORWARD,at as AWS_DYNAMODB_SEGMENT,st as AWS_DYNAMODB_SELECT,rt as AWS_DYNAMODB_TABLE_COUNT,nt as AWS_DYNAMODB_TABLE_NAMES,ot as AWS_DYNAMODB_TOTAL_SEGMENTS,lt as AWS_EXTENDED_REQUEST_ID,pt as AWS_KINESIS_STREAM_NAME,ut as AWS_LAMBDA_AWS_REQUEST_ID,dt as AWS_LAMBDA_EXECUTION_DURATION_IN_MILLIS,gt as AWS_LAMBDA_FUNCTION_NAME,bt as AWS_LAMBDA_FUNCTION_VERSION,mt as AWS_LAMBDA_INVOKED_ARN,yt as AWS_LAMBDA_INVOKED_FUNCTION_ARN,_t as AWS_LAMBDA_REMAINING_TIME_IN_MILLIS,ht as AWS_LOG_GROUP_NAMES,ft as AWS_LOG_STREAM_NAMES,vt as AWS_OPERATION_NAME,kt as AWS_REGION,Tt as AWS_REQUEST_EXTENDED_ID,St as AWS_REQUEST_ID,Ot as AWS_REQUEST_URL,It as AWS_S3_BUCKET,At as AWS_SECRETSMANAGER_SECRET_ARN,wt as AWS_SNS_TOPIC_ARN,xt as AWS_STEP_FUNCTIONS_ACTIVITY_ARN,Rt as AWS_STEP_FUNCTIONS_STATE_MACHINE_ARN,Nt as BLOCKED_MAIN_THREAD,Ct as BROWSER_BFCACHE_FRAME,Pt as BROWSER_BFCACHE_NOT_RESTORED_REASON_COUNT,Dt as BROWSER_BFCACHE_OUTCOME,qt as BROWSER_BFCACHE_REASON,Lt as BROWSER_NAME,Mt as BROWSER_NAVIGATION_ID,Ut as BROWSER_NAVIGATION_TYPE,Gt as BROWSER_PAINT_TYPE,zt as BROWSER_PERFORMANCE_NAVIGATION_ACTIVATION_START,Yt as BROWSER_PERFORMANCE_TIME_ORIGIN,Vt as BROWSER_REPORT_TYPE,Ft as BROWSER_SCRIPT_INVOKER,Bt as BROWSER_SCRIPT_INVOKER_TYPE,Wt as BROWSER_SCRIPT_SOURCE_CHAR_POSITION,Ht as BROWSER_VERSION,Kt as BROWSER_WEB_VITAL_CLS_REPORT_EVENT,jt as BROWSER_WEB_VITAL_CLS_SOURCE_KEY,Qt as BROWSER_WEB_VITAL_CLS_SOURCE_KEY_BASE,Xt as BROWSER_WEB_VITAL_CLS_VALUE,Jt as BROWSER_WEB_VITAL_FCP_VALUE,Zt as BROWSER_WEB_VITAL_FP_VALUE,$t as BROWSER_WEB_VITAL_INP_INTERACTION_TYPE,ei as BROWSER_WEB_VITAL_INP_TARGET,ti as BROWSER_WEB_VITAL_INP_VALUE,ii as BROWSER_WEB_VITAL_LCP_ELEMENT,ai as BROWSER_WEB_VITAL_LCP_ID,si as BROWSER_WEB_VITAL_LCP_LOAD_TIME,ri as BROWSER_WEB_VITAL_LCP_RENDER_TIME,ni as BROWSER_WEB_VITAL_LCP_REPORT_EVENT,oi as BROWSER_WEB_VITAL_LCP_SIZE,li as BROWSER_WEB_VITAL_LCP_URL,pi as BROWSER_WEB_VITAL_LCP_VALUE,ci as BROWSER_WEB_VITAL_TTFB_REQUEST_TIME,ui as BROWSER_WEB_VITAL_TTFB_VALUE,di as CACHE_HIT,gi as CACHE_ITEM_AGE,bi as CACHE_ITEM_SIZE,mi as CACHE_KEY,yi as CACHE_OPERATION,_i as CACHE_TAGS,hi as CACHE_TTL,fi as CACHE_WRITE,vi as CHANNEL,ki as CLIENT_ADDRESS,Ti as CLIENT_PORT,Si as CLOUDFLARE_D1_DURATION,Ei as CLOUDFLARE_D1_QUERY_TYPE,Oi as CLOUDFLARE_D1_ROWS_READ,Ii as CLOUDFLARE_D1_ROWS_WRITTEN,Ai as CLOUDFLARE_DURABLE_OBJECT_QUERY_BINDINGS,wi as CLOUDFLARE_DURABLE_OBJECT_RESPONSE_ROWS_READ,xi as CLOUDFLARE_DURABLE_OBJECT_RESPONSE_ROWS_WRITTEN,Ri as CLOUDFLARE_R2_BUCKET,Ni as CLOUDFLARE_R2_OPERATION,Ci as CLOUDFLARE_R2_REQUEST_DELIMITER,Pi as CLOUDFLARE_R2_REQUEST_KEY,Di as CLOUDFLARE_R2_REQUEST_PART_NUMBER,qi as CLOUDFLARE_R2_REQUEST_PREFIX,Li as CLOUDFLARE_WORKFLOW_ATTEMPT,Mi as CLOUDFLARE_WORKFLOW_RETRIES_BACKOFF,Ui as CLOUDFLARE_WORKFLOW_RETRIES_DELAY,Gi as CLOUDFLARE_WORKFLOW_RETRIES_LIMIT,zi as CLOUDFLARE_WORKFLOW_TIMEOUT,Yi as CLOUD_ACCOUNT_ID,Vi as CLOUD_AVAILABILITY_ZONE,Fi as CLOUD_PLATFORM,Bi as CLOUD_PROVIDER,Wi as CLOUD_REGION,Hi as CLOUD_RESOURCE_ID,Ki as CLS,ji as CLS_SOURCE_KEY,Qi as CLS_SOURCE_KEY_BASE,Xi as CODE,Ji as CODE_FILEPATH,Zi as CODE_FILE_PATH,$i as CODE_FUNCTION,ea as CODE_FUNCTION_NAME,ta as CODE_LINENO,ia as CODE_LINE_NUMBER,aa as CODE_NAMESPACE,sa as CONNECTIONTYPE,ra as CONNECTION_RTT,na as CULTURE_CALENDAR,oa as CULTURE_DISPLAY_NAME,la as CULTURE_IS_24_HOUR_FORMAT,pa as CULTURE_LOCALE,ca as CULTURE_TIMEZONE,ua as DB_COLLECTION_NAME,da as DB_CONNECTION_STRING,ga as DB_DRIVER_NAME,ba as DB_MONGODB_COLLECTION,ma as DB_NAME,ya as DB_NAMESPACE,_a as DB_OPERATION,ha as DB_OPERATION_BATCH_SIZE,fa as DB_OPERATION_NAME,va as DB_PARAMS,ka as DB_QUERY_PARAMETER_KEY,Ta as DB_QUERY_PARAMETER_KEY_BASE,Sa as DB_QUERY_SUMMARY,Ea as DB_QUERY_TEXT,Oa as DB_REDIS_CONNECTION,Ia as DB_REDIS_KEY,Aa as DB_REDIS_PARAMETERS,wa as DB_RESPONSE_STATUS_CODE,xa as DB_SQL_BINDINGS,Ra as DB_STATEMENT,Na as DB_STORED_PROCEDURE_NAME,Ca as DB_SYSTEM,Pa as DB_SYSTEM_NAME,Da as DB_USER,qa as DEVICEMEMORY,La as DEVICE_ARCHS,Ma as DEVICE_BATTERY_LEVEL,Ua as DEVICE_BATTERY_TEMPERATURE,Ga as DEVICE_BOOT_TIME,za as DEVICE_BRAND,Ya as DEVICE_CHARGING,Va as DEVICE_CHIPSET,Fa as DEVICE_CLASS,Ba as DEVICE_CONNECTION_TYPE,Wa as DEVICE_CPU_DESCRIPTION,Ha as DEVICE_EXTERNAL_FREE_STORAGE,Ka as DEVICE_EXTERNAL_STORAGE_SIZE,ja as DEVICE_FAMILY,Qa as DEVICE_FREE_MEMORY,Xa as DEVICE_FREE_STORAGE,Ja as DEVICE_ID,Za as DEVICE_LOCALE,$a as DEVICE_LOW_MEMORY,es as DEVICE_LOW_POWER_MODE,ts as DEVICE_MANUFACTURER,is as DEVICE_MEMORY_ESTIMATED_CAPACITY,as as DEVICE_MEMORY_SIZE,ss as DEVICE_MODEL,rs as DEVICE_MODEL_ID,ns as DEVICE_NAME,os as DEVICE_ONLINE,ls as DEVICE_ORIENTATION,ps as DEVICE_PROCESSOR_COUNT,cs as DEVICE_PROCESSOR_FREQUENCY,us as DEVICE_SCREEN_DENSITY,ds as DEVICE_SCREEN_DPI,gs as DEVICE_SCREEN_HEIGHT_PIXELS,bs as DEVICE_SCREEN_WIDTH_PIXELS,ms as DEVICE_SIMULATOR,ys as DEVICE_STORAGE_SIZE,_s as DEVICE_THERMAL_STATE,hs as DEVICE_TIMEZONE,fs as DEVICE_USABLE_MEMORY,vs as DIST,ks as DJANGO_FUNCTION_NAME,Ts as DJANGO_MIDDLEWARE_NAME,Ss as EFFECTIVECONNECTIONTYPE,Es as ENVIRONMENT,Os as ERROR_TYPE,Is as EVENT_ID,As as EVENT_NAME,ws as EXCEPTION_ESCAPED,xs as EXCEPTION_MESSAGE,Rs as EXCEPTION_STACKTRACE,Ns as EXCEPTION_TYPE,Cs as FAAS_COLDSTART,Ps as FAAS_CRON,Ds as FAAS_DURATION_IN_MS,qs as FAAS_ENTRY_POINT,Ls as FAAS_EXECUTION,Ms as FAAS_ID,Us as FAAS_IDENTITY,Gs as FAAS_INVOCATION_ID,zs as FAAS_INVOKED_NAME,Ys as FAAS_INVOKED_PROVIDER,Vs as FAAS_INVOKED_REGION,Fs as FAAS_NAME,Bs as FAAS_TIME,Ws as FAAS_TRIGGER,Hs as FAAS_VERSION,Ks as FCP,js as FILE_PATH,Qs as FILE_SIZE,Xs as FLAG_EVALUATION_KEY,Js as FLAG_EVALUATION_KEY_BASE,Zs as FP,$s as FRAMES_DELAY,er as FRAMES_FROZEN,tr as FRAMES_FROZEN_RATE,ir as FRAMES_SLOW,ar as FRAMES_SLOW_RATE,sr as FRAMES_TOTAL,rr as FS_ERROR,nr as GCP_FUNCTION_CONTEXT_EVENT_ID,or as GCP_FUNCTION_CONTEXT_EVENT_TYPE,lr as GCP_FUNCTION_CONTEXT_ID,pr as GCP_FUNCTION_CONTEXT_RESOURCE,cr as GCP_FUNCTION_CONTEXT_SOURCE,ur as GCP_FUNCTION_CONTEXT_SPECVERSION,dr as GCP_FUNCTION_CONTEXT_TIME,gr as GCP_FUNCTION_CONTEXT_TIMESTAMP,br as GCP_FUNCTION_CONTEXT_TYPE,mr as GCP_PROJECT_ID,yr as GCP_REGION,_r as GEN_AI_AGENT_NAME,hr as GEN_AI_CONTEXT_UTILIZATION,fr as GEN_AI_CONTEXT_WINDOW_SIZE,vr as GEN_AI_CONVERSATION_ID,kr as GEN_AI_COST_CACHE_CREATION_INPUT_TOKENS,Tr as GEN_AI_COST_CACHE_READ_INPUT_TOKENS,Sr as GEN_AI_COST_INPUT_TOKENS,Er as GEN_AI_COST_OUTPUT_TOKENS,Or as GEN_AI_COST_REASONING_OUTPUT_TOKENS,Ir as GEN_AI_COST_TOTAL_TOKENS,Ar as GEN_AI_EMBEDDINGS_INPUT,wr as GEN_AI_FUNCTION_ID,xr as GEN_AI_INPUT_MESSAGES,Rr as GEN_AI_OPERATION_NAME,Nr as GEN_AI_OPERATION_TYPE,Cr as GEN_AI_OUTPUT_MESSAGES,Pr as GEN_AI_PIPELINE_NAME,Dr as GEN_AI_PROMPT,qr as GEN_AI_PROMPT_NAME,Lr as GEN_AI_PROVIDER_NAME,Mr as GEN_AI_REQUEST_AVAILABLE_TOOLS,Ur as GEN_AI_REQUEST_FREQUENCY_PENALTY,Gr as GEN_AI_REQUEST_MAX_TOKENS,zr as GEN_AI_REQUEST_MESSAGES,Yr as GEN_AI_REQUEST_MODEL,Vr as GEN_AI_REQUEST_PRESENCE_PENALTY,Fr as GEN_AI_REQUEST_REASONING_LEVEL,Br as GEN_AI_REQUEST_SCHEMA,Wr as GEN_AI_REQUEST_SEED,Hr as GEN_AI_REQUEST_STOP_SEQUENCES,Kr as GEN_AI_REQUEST_TEMPERATURE,jr as GEN_AI_REQUEST_TOP_K,Qr as GEN_AI_REQUEST_TOP_P,Xr as GEN_AI_RESPONSE_FINISH_REASON,Jr as GEN_AI_RESPONSE_FINISH_REASONS,Zr as GEN_AI_RESPONSE_ID,$r as GEN_AI_RESPONSE_MODEL,en as GEN_AI_RESPONSE_OBJECT,tn as GEN_AI_RESPONSE_STREAMING,an as GEN_AI_RESPONSE_TEXT,sn as GEN_AI_RESPONSE_TIME_TO_FIRST_CHUNK,rn as GEN_AI_RESPONSE_TIME_TO_FIRST_TOKEN,nn as GEN_AI_RESPONSE_TOKENS_PER_SECOND,on as GEN_AI_RESPONSE_TOOL_CALLS,ln as GEN_AI_SYSTEM,pn as GEN_AI_SYSTEM_INSTRUCTIONS,cn as GEN_AI_SYSTEM_MESSAGE,un as GEN_AI_TOOL_CALL_ARGUMENTS,dn as GEN_AI_TOOL_CALL_RESULT,gn as GEN_AI_TOOL_DEFINITIONS,bn as GEN_AI_TOOL_DESCRIPTION,mn as GEN_AI_TOOL_INPUT,yn as GEN_AI_TOOL_MESSAGE,_n as GEN_AI_TOOL_NAME,hn as GEN_AI_TOOL_OUTPUT,fn as GEN_AI_TOOL_TYPE,vn as GEN_AI_USAGE_CACHE_CREATION_INPUT_TOKENS,Tn as GEN_AI_USAGE_CACHE_READ_INPUT_TOKENS,En as GEN_AI_USAGE_COMPLETION_TOKENS,On as GEN_AI_USAGE_INPUT_TOKENS,In as GEN_AI_USAGE_INPUT_TOKENS_CACHED,An as GEN_AI_USAGE_INPUT_TOKENS_CACHE_WRITE,wn as GEN_AI_USAGE_OUTPUT_TOKENS,xn as GEN_AI_USAGE_OUTPUT_TOKENS_REASONING,Rn as GEN_AI_USAGE_PROMPT_TOKENS,Nn as GEN_AI_USAGE_REASONING_OUTPUT_TOKENS,Cn as GEN_AI_USAGE_TOTAL_TOKENS,Pn as GRAPHQL_DOCUMENT,Dn as GRAPHQL_OPERATION_NAME,qn as GRAPHQL_OPERATION_TYPE,Ln as GRAPHQL_PROCESSING_TYPE,Mn as GRAPHQL_SOURCE,Un as GRPC_ERROR_BAD_REQUEST_FIELD_VIOLATIONS,Gn as GRPC_ERROR_DEBUG_INFO_DETAIL,zn as GRPC_ERROR_DEBUG_INFO_STACK_ENTRIES,Yn as GRPC_ERROR_ERROR_INFO_DOMAIN,Vn as GRPC_ERROR_ERROR_INFO_METADATA_KEY,Fn as GRPC_ERROR_ERROR_INFO_METADATA_KEY_BASE,Bn as GRPC_ERROR_ERROR_INFO_REASON,Wn as GRPC_ERROR_PRECONDITION_FAILURE_VIOLATIONS,Hn as GRPC_ERROR_QUOTA_FAILURE_VIOLATIONS,Kn as GRPC_ERROR_RESOURCE_INFO_DESCRIPTION,jn as GRPC_ERROR_RESOURCE_INFO_OWNER,Qn as GRPC_ERROR_RESOURCE_INFO_RESOURCE_NAME,Xn as GRPC_ERROR_RESOURCE_INFO_RESOURCE_TYPE,Jn as GRPC_ERROR_RETRY_INFO_RETRY_DELAY_MS,Zn as HARDWARECONCURRENCY,$n as HTTP_CLIENT_IP,eo as HTTP_DECODED_RESPONSE_CONTENT_LENGTH,to as HTTP_FLAVOR,io as HTTP_FRAGMENT,ao as HTTP_HOST,so as HTTP_METHOD,ro as HTTP_QUERY,no as HTTP_REQUEST_BODY_DATA,oo as HTTP_REQUEST_BODY_DECODED_SIZE,lo as HTTP_REQUEST_BODY_SIZE,po as HTTP_REQUEST_CONNECTION_END,co as HTTP_REQUEST_CONNECT_START,uo as HTTP_REQUEST_CONTENT_LENGTH,go as HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED,bo as HTTP_REQUEST_DOMAIN_LOOKUP_END,mo as HTTP_REQUEST_DOMAIN_LOOKUP_START,yo as HTTP_REQUEST_FETCH_START,_o as HTTP_REQUEST_HEADER_KEY,ho as HTTP_REQUEST_HEADER_KEY_BASE,fo as HTTP_REQUEST_METHOD,ko as HTTP_REQUEST_REDIRECT_END,To as HTTP_REQUEST_REDIRECT_START,So as HTTP_REQUEST_REQUEST_START,Eo as HTTP_REQUEST_RESEND_COUNT,Oo as HTTP_REQUEST_RESPONSE_END,Io as HTTP_REQUEST_RESPONSE_START,Ao as HTTP_REQUEST_SAME_ORIGIN,wo as HTTP_REQUEST_SECURE_CONNECTION_START,xo as HTTP_REQUEST_TIME_TO_FIRST_BYTE,Ro as HTTP_REQUEST_WORKER_START,No as HTTP_RESPONSE_BODY_DECODED_SIZE,Co as HTTP_RESPONSE_BODY_SIZE,Po as HTTP_RESPONSE_CONTENT_LENGTH,Do as HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED,qo as HTTP_RESPONSE_HEADER_CONTENT_LENGTH,Lo as HTTP_RESPONSE_HEADER_KEY,Mo as HTTP_RESPONSE_HEADER_KEY_BASE,Uo as HTTP_RESPONSE_SIZE,Go as HTTP_RESPONSE_STATUS_CODE,zo as HTTP_RESPONSE_STATUS_TEXT,Yo as HTTP_RESPONSE_TRANSFER_SIZE,Vo as HTTP_ROUTE,Fo as HTTP_SCHEME,Bo as HTTP_SERVER_NAME,Wo as HTTP_SERVER_REQUEST_TIME_IN_QUEUE,Ho as HTTP_STATUS_CODE,Ko as HTTP_STATUS_TEXT,jo as HTTP_TARGET,Qo as HTTP_URL,Xo as HTTP_USER_AGENT,Jo as ID,Zo as INP,$o as JSONRPC_PROTOCOL_VERSION,el as JSONRPC_REQUEST_ID,tl as JVM_GC_ACTION,il as JVM_GC_NAME,al as JVM_MEMORY_POOL_NAME,sl as JVM_MEMORY_TYPE,rl as JVM_THREAD_DAEMON,nl as JVM_THREAD_STATE,ol as KOA_NAME,ll as KOA_TYPE,pl as LANGCHAIN_CHAIN_NAME,cl as LCP,ul as LCP_ELEMENT,dl as LCP_ID,gl as LCP_LOADTIME,bl as LCP_RENDERTIME,ml as LCP_SIZE,yl as LCP_URL,_l as LITESTAR_MIDDLEWARE_NAME,hl as LOGGER_NAME,fl as MCP_CANCELLED_REASON,vl as MCP_CANCELLED_REQUEST_ID,kl as MCP_CLIENT_NAME,Tl as MCP_CLIENT_TITLE,Sl as MCP_CLIENT_VERSION,El as MCP_LIFECYCLE_PHASE,Ol as MCP_LOGGING_DATA_TYPE,Il as MCP_LOGGING_LEVEL,Al as MCP_LOGGING_LOGGER,wl as MCP_LOGGING_MESSAGE,xl as MCP_METHOD_NAME,Rl as MCP_PROGRESS_CURRENT,Nl as MCP_PROGRESS_MESSAGE,Cl as MCP_PROGRESS_PERCENTAGE,Pl as MCP_PROGRESS_TOKEN,Dl as MCP_PROGRESS_TOTAL,ql as MCP_PROMPT_NAME,Ll as MCP_PROMPT_RESULT_DESCRIPTION,Ml as MCP_PROMPT_RESULT_MESSAGE_CONTENT,Ul as MCP_PROMPT_RESULT_MESSAGE_COUNT,Gl as MCP_PROMPT_RESULT_MESSAGE_ROLE,zl as MCP_PROTOCOL_READY,Yl as MCP_PROTOCOL_VERSION,Vl as MCP_REQUEST_ARGUMENT_KEY,Fl as MCP_REQUEST_ARGUMENT_KEY_BASE,Bl as MCP_REQUEST_ARGUMENT_NAME,Wl as MCP_REQUEST_ARGUMENT_URI,Hl as MCP_REQUEST_ID,Kl as MCP_RESOURCE_PROTOCOL,jl as MCP_RESOURCE_URI,Ql as MCP_SERVER_NAME,Xl as MCP_SERVER_TITLE,Jl as MCP_SERVER_VERSION,Zl as MCP_SESSION_ID,$l as MCP_TOOL_NAME,ep as MCP_TOOL_RESULT_CONTENT,tp as MCP_TOOL_RESULT_CONTENT_COUNT,ip as MCP_TOOL_RESULT_IS_ERROR,ap as MCP_TRANSPORT,sp as MDC_KEY,rp as MDC_KEY_BASE,np as MESSAGING_BATCH_MESSAGE_COUNT,op as MESSAGING_CONVERSATION_ID,lp as MESSAGING_DESTINATION,pp as MESSAGING_DESTINATION_CONNECTION,cp as MESSAGING_DESTINATION_KIND,up as MESSAGING_DESTINATION_NAME,dp as MESSAGING_DESTINATION_PARTITION_ID,gp as MESSAGING_KAFKA_MESSAGE_KEY,bp as MESSAGING_KAFKA_MESSAGE_TOMBSTONE,mp as MESSAGING_KAFKA_OFFSET,yp as MESSAGING_MESSAGE_BODY_SIZE,_p as MESSAGING_MESSAGE_CONVERSATION_ID,hp as MESSAGING_MESSAGE_ENVELOPE_SIZE,fp as MESSAGING_MESSAGE_ID,kp as MESSAGING_MESSAGE_RECEIVE_LATENCY,Tp as MESSAGING_MESSAGE_RETRY_COUNT,Sp as MESSAGING_OPERATION,Ep as MESSAGING_OPERATION_NAME,Op as MESSAGING_OPERATION_TYPE,Ip as MESSAGING_PROTOCOL,Ap as MESSAGING_PROTOCOL_VERSION,wp as MESSAGING_RABBITMQ_DESTINATION_ROUTING_KEY,xp as MESSAGING_RABBITMQ_ROUTING_KEY,Rp as MESSAGING_SYSTEM,Np as MESSAGING_URL,Cp as METHOD,Pp as MIDDLEWARE_NAME,Dp as NAVIGATION_ORIGIN,qp as NAVIGATION_ROUTE_ID,Lp as NAVIGATION_TYPE,Mp as NEL_ELAPSED_TIME,Up as NEL_PHASE,Gp as NEL_REFERRER,zp as NEL_SAMPLING_FRACTION,Yp as NEL_SAMPLING_FUNCTION,Vp as NEL_TYPE,Fp as NETWORK_CONNECTION_EFFECTIVE_TYPE,Bp as NETWORK_CONNECTION_RTT,Wp as NETWORK_CONNECTION_TYPE,Hp as NETWORK_LOCAL_ADDRESS,Kp as NETWORK_LOCAL_PORT,jp as NETWORK_PEER_ADDRESS,Qp as NETWORK_PEER_PORT,Xp as NETWORK_PROTOCOL_NAME,Jp as NETWORK_PROTOCOL_VERSION,Zp as NETWORK_TRANSPORT,$p as NETWORK_TYPE,ec as NET_HOST_IP,tc as NET_HOST_NAME,ic as NET_HOST_PORT,ac as NET_PEER_IP,sc as NET_PEER_NAME,rc as NET_PEER_PORT,nc as NET_PROTOCOL_NAME,oc as NET_PROTOCOL_VERSION,lc as NET_SOCK_FAMILY,pc as NET_SOCK_HOST_ADDR,cc as NET_SOCK_HOST_PORT,uc as NET_SOCK_PEER_ADDR,dc as NET_SOCK_PEER_NAME,gc as NET_SOCK_PEER_PORT,bc as NET_TRANSPORT,mc as OS_BUILD,yc as OS_BUILD_ID,_c as OS_DESCRIPTION,hc as OS_KERNEL_VERSION,fc as OS_NAME,vc as OS_RAW_DESCRIPTION,kc as OS_ROOTED,Tc as OS_THEME,Sc as OS_TYPE,Ec as OS_VERSION,Oc as OTEL_KIND,Ic as OTEL_SCOPE_NAME,Ac as OTEL_SCOPE_VERSION,wc as OTEL_STATUS_CODE,xc as OTEL_STATUS_DESCRIPTION,Rc as PARAMS_KEY,Nc as PARAMS_KEY_BASE,Cc as PERFORMANCE_ACTIVATIONSTART,Pc as PERFORMANCE_TIMEORIGIN,Dc as PORT,qc as PREVIOUS_ROUTE,Lc as PROCESS_COMMAND_ARGS,Mc as PROCESS_EXECUTABLE_NAME,Uc as PROCESS_PID,Gc as PROCESS_RUNTIME_DESCRIPTION,zc as PROCESS_RUNTIME_ENGINE_NAME,Yc as PROCESS_RUNTIME_ENGINE_VERSION,Vc as PROCESS_RUNTIME_NAME,Fc as PROCESS_RUNTIME_VERSION,Bc as PROFILE_ID,Wc as QUERY,Hc as QUERY_KEY,Kc as QUERY_KEY_BASE,jc as REACT_NATIVE_ARCHITECTURE,Qc as REACT_NATIVE_MODULE_CALL_COUNT,Xc as REACT_NATIVE_MODULE_CALL_DISTINCT_COUNT,Jc as REACT_NATIVE_MODULE_DURATION_MAX,Zc as REACT_NATIVE_MODULE_DURATION_TOTAL,$c as REACT_NATIVE_MODULE_ERROR_COUNT,eu as REACT_NATIVE_MODULE_KIND,tu as REACT_NATIVE_MODULE_METHOD,iu as REACT_NATIVE_MODULE_NAME,au as REACT_NATIVE_MODULE_TOP_DURATION,su as REACT_NATIVE_MODULE_TOP_NAME,ru as REACT_VERSION,nu as REDIS_COMMAND,ou as REDIS_KEY,lu as RELEASE,pu as REMIX_ACTION_FORM_DATA_KEY,cu as REMIX_ACTION_FORM_DATA_KEY_BASE,uu as REPLAYID,du as REPLAY_ID,gu as RESOURCE_DEPLOYMENT_ENVIRONMENT,bu as RESOURCE_DEPLOYMENT_ENVIRONMENT_NAME,mu as RESOURCE_RENDER_BLOCKING_STATUS,yu as ROUTE,_u as ROUTER_NAVIGATION_ORIGIN,hu as ROUTER_NAVIGATION_ROUTE_ID,fu as ROUTER_NAVIGATION_TYPE,vu as RPC_GRPC_STATUS_CODE,ku as RPC_METHOD,Tu as RPC_RESPONSE_STATUS_CODE,Su as RPC_SERVICE,Eu as RPC_SYSTEM,Ou as RPC_SYSTEM_NAME,Iu as RUNTIME_BUILD,Au as RUNTIME_NAME,wu as RUNTIME_RAW_DESCRIPTION,xu as RUNTIME_VERSION,Ru as SCORE_KEY,Nu as SCORE_KEY_BASE,Cu as SCORE_RATIO_KEY,Pu as SCORE_RATIO_KEY_BASE,Du as SCORE_TOTAL,qu as SCORE_WEIGHT_KEY,Lu as SCORE_WEIGHT_KEY_BASE,Mu as SENTRY_ACTION,Uu as SENTRY_BROWSER_NAME,Gu as SENTRY_BROWSER_VERSION,zu as SENTRY_CANCELLATION_REASON,Yu as SENTRY_CATEGORY,Vu as SENTRY_CLIENT_SAMPLE_RATE,Fu as SENTRY_DESCRIPTION,Bu as SENTRY_DIST,Wu as SENTRY_DOMAIN,Hu as SENTRY_DSC_ENVIRONMENT,Ku as SENTRY_DSC_PROJECT_ID,ju as SENTRY_DSC_PUBLIC_KEY,Qu as SENTRY_DSC_RELEASE,Xu as SENTRY_DSC_SAMPLED,Ju as SENTRY_DSC_SAMPLE_RATE,Zu as SENTRY_DSC_TRACE_ID,$u as SENTRY_DSC_TRANSACTION,ed as SENTRY_ENVIRONMENT,td as SENTRY_EVENT_SERIALIZED_BREADCRUMBS,id as SENTRY_EVENT_SERIALIZED_CONTEXTS,ad as SENTRY_EVENT_SERIALIZED_EXTRA,sd as SENTRY_EVENT_SERIALIZED_META,rd as SENTRY_EXCLUSIVE_TIME,nd as SENTRY_FRAMES_FROZEN,od as SENTRY_FRAMES_SLOW,ld as SENTRY_FRAMES_TOTAL,pd as SENTRY_GRAPHQL_OPERATION,cd as SENTRY_GROUP,ud as SENTRY_HTTP_PREFETCH,dd as SENTRY_IDLE_SPAN_FINISH_REASON,gd as SENTRY_IS_LOCALHOST,bd as SENTRY_IS_REMOTE,md as SENTRY_KIND,yd as SENTRY_LINK_TYPE,_d as SENTRY_MAIN_THREAD,hd as SENTRY_MESSAGE_PARAMETER_KEY,fd as SENTRY_MESSAGE_TEMPLATE,vd as SENTRY_METRIC_SOURCE,kd as SENTRY_MOBILE,Td as SENTRY_MODULE_KEY,Sd as SENTRY_MODULE_KEY_BASE,Ed as SENTRY_NEXTJS_SSR_FUNCTION_ROUTE,Od as SENTRY_NEXTJS_SSR_FUNCTION_TYPE,Id as SENTRY_NORMALIZED_DB_QUERY,Ad as SENTRY_NORMALIZED_DB_QUERY_HASH,wd as SENTRY_NORMALIZED_DESCRIPTION,xd as SENTRY_OBSERVED_TIMESTAMP_NANOS,Rd as SENTRY_OP,Nd as SENTRY_ORIGIN,Cd as SENTRY_PAGELOAD_SPAN_ID,Pd as SENTRY_PLATFORM,Dd as SENTRY_PROFILER_ID,qd as SENTRY_PROFILE_ID,Ld as SENTRY_RELAY_INGRESS,Md as SENTRY_RELAY_PIPELINE,Ud as SENTRY_RELEASE,Gd as SENTRY_REPLAY_ID,zd as SENTRY_REPLAY_IS_BUFFERING,Yd as SENTRY_REPORT_EVENT,Vd as SENTRY_SDK_INTEGRATIONS,Fd as SENTRY_SDK_NAME,Bd as SENTRY_SDK_VERSION,Wd as SENTRY_SEGMENT_ID,Kd as SENTRY_SEGMENT_NAME,jd as SENTRY_SEGMENT_NAME_SOURCE,Qd as SENTRY_SERVER_SAMPLE_RATE,Xd as SENTRY_SOURCE,Jd as SENTRY_SPAN_SOURCE,Zd as SENTRY_STATUS,$d as SENTRY_STATUS_CODE,eg as SENTRY_STATUS_MESSAGE,tg as SENTRY_SVELTEKIT_NAVIGATION_FROM,ig as SENTRY_SVELTEKIT_NAVIGATION_TO,ag as SENTRY_SVELTEKIT_NAVIGATION_TYPE,sg as SENTRY_THREAD_ID,rg as SENTRY_TIMESTAMP_SEQUENCE,ng as SENTRY_TRACE_LIFECYCLE,og as SENTRY_TRACE_PARENT_SPAN_ID,lg as SENTRY_TRACE_STATUS,pg as SENTRY_TRANSACTION,cg as SENTRY_USER_EMAIL,ug as SENTRY_USER_GEO_CITY,dg as SENTRY_USER_GEO_COUNTRY_CODE,gg as SENTRY_USER_GEO_REGION,bg as SENTRY_USER_GEO_SUBDIVISION,mg as SENTRY_USER_ID,yg as SENTRY_USER_IP,_g as SENTRY_USER_USERNAME,hg as SERVER_ADDRESS,fg as SERVER_NAME,vg as SERVER_PORT,kg as SERVICE_NAME,Tg as SERVICE_VERSION,Sg as SESSION_ID,Eg as STALL_PERCENTAGE,Og as STALL_TOTAL_TIME,Ig as STARLETTE_MIDDLEWARE_NAME,Ag as STARLITE_MIDDLEWARE_NAME,wg as STATE_TYPE,xg as SUBPROCESS_PID,Rg as SVELTEKIT_LOAD_ENVIRONMENT,Ng as SVELTEKIT_LOAD_NODE_ID,Cg as SVELTEKIT_LOAD_NODE_TYPE,Pg as SVELTEKIT_TRACING_ORIGINAL_NAME,Dg as THREAD_ID,qg as THREAD_NAME,Lg as TIMBER_TAG,Mg as TIME_TO_FULL_DISPLAY,Ug as TIME_TO_INITIAL_DISPLAY,Gg as TRANSACTION,zg as TRPC_PROCEDURE_PATH,Yg as TRPC_PROCEDURE_TYPE,Vg as TTFB,Fg as TTFB_REQUESTTIME,Bg as TURBO_MODULES_TOTAL_CALL_COUNT,Wg as TURBO_MODULES_TOTAL_DURATION_MS,Hg as TURBO_MODULES_TOTAL_ERROR_COUNT,Kg as TURBO_MODULES_UNIQUE_METHODS,jg as TURBO_MODULE_ARCH,Qg as TURBO_MODULE_METHOD,Xg as TURBO_MODULE_NAME,Jg as TURBO_MODULE_TOP_MODULE,Zg as TURBO_MODULE_TOP_MODULE_DURATION_MS,$g as TURBO_MODULE_TOTAL_CALL_COUNT,eb as TURBO_MODULE_TOTAL_DURATION_MS,tb as TURBO_MODULE_TOTAL_ERROR_COUNT,ib as TURBO_MODULE_UNIQUE_METHODS,ab as TYPE,sb as UI_COMPONENT_NAME,rb as UI_CONTRIBUTES_TO_TTFD,nb as UI_CONTRIBUTES_TO_TTID,ob as UI_ELEMENT_HEIGHT,lb as UI_ELEMENT_ID,pb as UI_ELEMENT_IDENTIFIER,cb as UI_ELEMENT_LOAD_TIME,ub as UI_ELEMENT_PAINT_TYPE,db as UI_ELEMENT_RENDER_TIME,gb as UI_ELEMENT_TYPE,bb as UI_ELEMENT_URL,mb as UI_ELEMENT_WIDTH,yb as URL,_b as URL_DOMAIN,hb as URL_FRAGMENT,fb as URL_FULL,vb as URL_PATH,kb as URL_PATH_PARAMETER_KEY,Tb as URL_PATH_PARAMETER_KEY_BASE,Sb as URL_PATH_PARAMS_KEY,Eb as URL_PATH_PARAMS_KEY_BASE,Ob as URL_PORT,Ib as URL_QUERY,Ab as URL_SAME_ORIGIN,wb as URL_SCHEME,xb as URL_TEMPLATE,Rb as USER_AGENT_ORIGINAL,Nb as USER_EMAIL,Cb as USER_FULL_NAME,Pb as USER_GEO_CITY,Db as USER_GEO_COUNTRY_CODE,qb as USER_GEO_REGION,Lb as USER_GEO_SUBDIVISION,Mb as USER_HASH,Ub as USER_ID,Gb as USER_IP_ADDRESS,zb as USER_NAME,Yb as USER_ROLES,Vb as VERCEL_AI_TELEMETRY_METADATA_KEY,Fb as VERCEL_AI_TELEMETRY_METADATA_KEY_BASE,Bb as VERCEL_BRANCH,Wb as VERCEL_BUILD_ID,Hb as VERCEL_DEPLOYMENT_ID,Kb as VERCEL_DESTINATION,jb as VERCEL_EDGE_TYPE,Qb as VERCEL_ENTRYPOINT,Xb as VERCEL_EXECUTION_REGION,Jb as VERCEL_ID,Zb as VERCEL_JA3_DIGEST,$b as VERCEL_JA4_DIGEST,em as VERCEL_LOG_TYPE,tm as VERCEL_PATH,im as VERCEL_PROJECT_ID,am as VERCEL_PROJECT_NAME,sm as VERCEL_PROXY_CACHE_ID,rm as VERCEL_PROXY_CLIENT_IP,nm as VERCEL_PROXY_HOST,om as VERCEL_PROXY_LAMBDA_REGION,lm as VERCEL_PROXY_METHOD,pm as VERCEL_PROXY_PATH,cm as VERCEL_PROXY_PATH_TYPE,um as VERCEL_PROXY_PATH_TYPE_VARIANT,dm as VERCEL_PROXY_REFERER,gm as VERCEL_PROXY_REGION,bm as VERCEL_PROXY_RESPONSE_BYTE_SIZE,mm as VERCEL_PROXY_SCHEME,ym as VERCEL_PROXY_STATUS_CODE,_m as VERCEL_PROXY_TIMESTAMP,hm as VERCEL_PROXY_USER_AGENT,fm as VERCEL_PROXY_VERCEL_CACHE,vm as VERCEL_PROXY_VERCEL_ID,km as VERCEL_PROXY_WAF_ACTION,Tm as VERCEL_PROXY_WAF_RULE_ID,Sm as VERCEL_REQUEST_ID,Em as VERCEL_SOURCE,Om as VERCEL_STATUS_CODE,d as _AI_MODEL_ID,ct as _AWS_KINESIS_STREAM_NAME,Et as _AWS_REQUEST_ID,kn as _GEN_AI_USAGE_CACHE_CREATION_INPUT_TOKENS,Sn as _GEN_AI_USAGE_CACHE_READ_INPUT_TOKENS,vo as _HTTP_REQUEST_METHOD,vp as _MESSAGING_MESSAGE_ID,Hd as _SENTRY_SEGMENT_ID};\n//# sourceMappingURL=attributes.mjs.map\n","import { DEBUG_BUILD } from '../debug-build';\nimport type { DynamicSamplingContext } from '../types/envelope';\nimport { debug } from './debug-logger';\nimport { isString } from './is';\n\nexport const SENTRY_BAGGAGE_KEY_PREFIX = 'sentry-';\n\nexport const SENTRY_BAGGAGE_KEY_PREFIX_REGEX = /^sentry-/;\n\n/**\n * Max length of a serialized baggage string\n *\n * https://www.w3.org/TR/baggage/#limits\n */\nexport const MAX_BAGGAGE_STRING_LENGTH = 8192;\n\n/**\n * Takes a baggage header and turns it into Dynamic Sampling Context, by extracting all the \"sentry-\" prefixed values\n * from it.\n *\n * @param baggageHeader A very bread definition of a baggage header as it might appear in various frameworks.\n * @returns The Dynamic Sampling Context that was found on `baggageHeader`, if there was any, `undefined` otherwise.\n */\nexport function baggageHeaderToDynamicSamplingContext(\n  // Very liberal definition of what any incoming header might look like\n  baggageHeader: string | string[] | number | null | undefined | boolean,\n): Partial<DynamicSamplingContext> | undefined {\n  const baggageObject = parseBaggageHeader(baggageHeader);\n\n  if (!baggageObject) {\n    return undefined;\n  }\n\n  // Read all \"sentry-\" prefixed values out of the baggage object and put it onto a dynamic sampling context object.\n  const dynamicSamplingContext = Object.entries(baggageObject).reduce<Record<string, string>>((acc, [key, value]) => {\n    if (key.startsWith(SENTRY_BAGGAGE_KEY_PREFIX)) {\n      const nonPrefixedKey = key.slice(SENTRY_BAGGAGE_KEY_PREFIX.length);\n      acc[nonPrefixedKey] = value;\n    }\n    return acc;\n  }, {});\n\n  // Only return a dynamic sampling context object if there are keys in it.\n  // A keyless object means there were no sentry values on the header, which means that there is no DSC.\n  if (Object.keys(dynamicSamplingContext).length > 0) {\n    return dynamicSamplingContext;\n  } else {\n    return undefined;\n  }\n}\n\n/**\n * Turns a Dynamic Sampling Object into a baggage header by prefixing all the keys on the object with \"sentry-\".\n *\n * @param dynamicSamplingContext The Dynamic Sampling Context to turn into a header. For convenience and compatibility\n * with the `getDynamicSamplingContext` method on the Transaction class ,this argument can also be `undefined`. If it is\n * `undefined` the function will return `undefined`.\n * @returns a baggage header, created from `dynamicSamplingContext`, or `undefined` either if `dynamicSamplingContext`\n * was `undefined`, or if `dynamicSamplingContext` didn't contain any values.\n */\nexport function dynamicSamplingContextToSentryBaggageHeader(\n  // this also takes undefined for convenience and bundle size in other places\n  dynamicSamplingContext?: Partial<DynamicSamplingContext>,\n): string | undefined {\n  if (!dynamicSamplingContext) {\n    return undefined;\n  }\n\n  // Prefix all DSC keys with \"sentry-\" and put them into a new object\n  const sentryPrefixedDSC = Object.entries(dynamicSamplingContext).reduce<Record<string, string>>(\n    (acc, [dscKey, dscValue]) => {\n      if (dscValue) {\n        acc[`${SENTRY_BAGGAGE_KEY_PREFIX}${dscKey}`] = dscValue;\n      }\n      return acc;\n    },\n    {},\n  );\n\n  return objectToBaggageHeader(sentryPrefixedDSC);\n}\n\n/**\n * Take a baggage header and parse it into an object.\n */\nexport function parseBaggageHeader(\n  baggageHeader: string | string[] | number | null | undefined | boolean,\n): Record<string, string> | undefined {\n  if (!baggageHeader || (!isString(baggageHeader) && !Array.isArray(baggageHeader))) {\n    return undefined;\n  }\n\n  if (Array.isArray(baggageHeader)) {\n    // Combine all baggage headers into one object containing the baggage values so we can later read the Sentry-DSC-values from it\n    return baggageHeader.reduce<Record<string, string>>((acc, curr) => {\n      const currBaggageObject = baggageHeaderToObject(curr);\n      Object.entries(currBaggageObject).forEach(([key, value]) => {\n        acc[key] = value;\n      });\n      return acc;\n    }, {});\n  }\n\n  return baggageHeaderToObject(baggageHeader);\n}\n\n/**\n * Will parse a baggage header, which is a simple key-value map, into a flat object.\n *\n * @param baggageHeader The baggage header to parse.\n * @returns a flat object containing all the key-value pairs from `baggageHeader`.\n */\nfunction baggageHeaderToObject(baggageHeader: string): Record<string, string> {\n  return baggageHeader\n    .split(',')\n    .map(baggageEntry => {\n      const eqIdx = baggageEntry.indexOf('=');\n      if (eqIdx === -1) {\n        // Likely an invalid entry\n        return [];\n      }\n      const key = baggageEntry.slice(0, eqIdx);\n      const value = baggageEntry.slice(eqIdx + 1);\n      return [key, value].map(keyOrValue => {\n        try {\n          return decodeURIComponent(keyOrValue.trim());\n        } catch {\n          // We ignore errors here, e.g. if the value cannot be URL decoded.\n          // This will then be skipped in the next step\n          return;\n        }\n      });\n    })\n    .reduce<Record<string, string>>((acc, [key, value]) => {\n      if (key && value) {\n        acc[key] = value;\n      }\n      return acc;\n    }, {});\n}\n\n/**\n * Turns a flat object (key-value pairs) into a baggage header, which is also just key-value pairs.\n *\n * @param object The object to turn into a baggage header.\n * @returns a baggage header string, or `undefined` if the object didn't have any values, since an empty baggage header\n * is not spec compliant.\n */\nexport function objectToBaggageHeader(object: Record<string, string>): string | undefined {\n  if (Object.keys(object).length === 0) {\n    // An empty baggage header is not spec compliant: We return undefined.\n    return undefined;\n  }\n\n  return Object.entries(object).reduce((baggageHeader, [objectKey, objectValue], currentIndex) => {\n    const baggageEntry = `${encodeURIComponent(objectKey)}=${encodeURIComponent(objectValue)}`;\n    const newBaggageHeader = currentIndex === 0 ? baggageEntry : `${baggageHeader},${baggageEntry}`;\n    if (newBaggageHeader.length > MAX_BAGGAGE_STRING_LENGTH) {\n      DEBUG_BUILD &&\n        debug.warn(\n          `Not adding key: ${objectKey} with val: ${objectValue} to baggage header due to exceeding baggage size limits.`,\n        );\n      return baggageHeader;\n    } else {\n      return newBaggageHeader;\n    }\n  }, '');\n}\n\n/**\n * Merge two baggage headers into one.\n * - Sentry-specific entries (keys starting with \"sentry-\") from the new\n *   baggage take precedence\n * - Non-Sentry entries from existing baggage take precedence\n *\n * The order of the existing baggage will be preserved, and new entries will\n * be added to the end.\n *\n * This matches the behavior of OTEL's propagation.inject() which uses\n * `baggage.setEntry()`  to overwrite existing entries with the same key.\n */\nexport function mergeBaggageHeaders<Existing extends string | string[] | number | undefined>(\n  existing: Existing,\n  incoming: string,\n): string | undefined | Existing {\n  if (!existing) {\n    return incoming;\n  }\n\n  const existingEntries = parseBaggageHeader(existing);\n  const incomingEntries = parseBaggageHeader(incoming);\n\n  if (!incomingEntries) {\n    return existing;\n  }\n\n  // 1. All non-sentry entries from existing are kept\n  // 2. All sentry- entries from the new baggage are retained\n  // 3. If sentry- entries present in new, ignore from old, else keep from old.\n  // 4. Non-sentry entries from new are only kept if not in existing.\n\n  const merged: Record<string, string> = {};\n\n  // partition incoming entries into sentry and non-sentry prefixed\n  let hasNewSentryEntries = false;\n  const newSentryEntries: Record<string, string> = {};\n  const newNonSentryEntries: Record<string, string> = {};\n  for (const [key, value] of Object.entries(incomingEntries)) {\n    if (key.startsWith(SENTRY_BAGGAGE_KEY_PREFIX)) {\n      newSentryEntries[key] = value;\n      hasNewSentryEntries = true;\n    } else {\n      newNonSentryEntries[key] = value;\n    }\n  }\n\n  // If new baggage contains at least one sentry- value, we remove all old\n  // sentry- values otherwise, we keep old sentry- values. If we don't remove\n  // old sentry- values, we end up with an inconsistent dynamic sampling\n  // context propagation.\n  if (existingEntries) {\n    for (const [key, value] of Object.entries(existingEntries)) {\n      if (!hasNewSentryEntries || !key.startsWith(SENTRY_BAGGAGE_KEY_PREFIX)) {\n        merged[key] = value;\n      }\n    }\n  }\n\n  // Assign new sentry fields.\n  if (hasNewSentryEntries) {\n    Object.assign(merged, newSentryEntries);\n  }\n\n  // assign new non-sentry fields not found on existing object.\n  for (const [key, value] of Object.entries(newNonSentryEntries)) {\n    merged[key] ??= value;\n  }\n\n  return objectToBaggageHeader(merged);\n}\n","import type { DurationUnit, FractionUnit, InformationUnit } from './types/measurement';\nimport type { Primitive } from './types/misc';\nimport { isPrimitive } from './utils/is';\n\nexport type RawAttributes<T> = T & ValidatedAttributes<T>;\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport type RawAttribute<T> = T extends { value: any } | { unit: any } ? AttributeObject : T;\n\nexport type Attributes = Record<string, TypedAttributeValue>;\n\nexport type AttributeValueType = string | number | boolean | Array<string> | Array<number> | Array<boolean>;\n\ntype AttributeTypeMap = {\n  string: string;\n  integer: number;\n  double: number;\n  boolean: boolean;\n  array: Array<string> | Array<number> | Array<boolean>;\n};\n\n/* Generates a type from the AttributeTypeMap like:\n  | { value: string; type: 'string' }\n  | { value: number; type: 'integer' }\n  | { value: number; type: 'double' }\n */\ntype AttributeUnion = {\n  [K in keyof AttributeTypeMap]: {\n    value: AttributeTypeMap[K];\n    type: K;\n  };\n}[keyof AttributeTypeMap];\n\nexport type TypedAttributeValue = AttributeUnion & { unit?: AttributeUnit };\n\nexport type AttributeObject = {\n  value: unknown;\n  unit?: AttributeUnit;\n};\n\n// Unfortunately, we loose type safety if we did something like Exclude<MeasurementUnit, string>\n// so therefore we unionize between the three supported unit categories.\ntype AttributeUnit = DurationUnit | InformationUnit | FractionUnit;\n\n/* If an attribute has either a 'value' or 'unit' property, we use the ValidAttributeObject type. */\nexport type ValidatedAttributes<T> = {\n  // eslint-disable-next-line @typescript-eslint/no-explicit-any\n  [K in keyof T]: T[K] extends { value: any } | { unit: any } ? AttributeObject : unknown;\n};\n\n/**\n * Type-guard: The attribute object has the shape the official attribute object (value, type, unit).\n * https://develop.sentry.dev/sdk/telemetry/scopes/#setting-attributes\n */\nexport function isAttributeObject(maybeObj: unknown): maybeObj is AttributeObject {\n  return (\n    typeof maybeObj === 'object' &&\n    maybeObj != null &&\n    !Array.isArray(maybeObj) &&\n    Object.keys(maybeObj).includes('value')\n  );\n}\n\n/**\n * Converts an attribute value to a typed attribute value.\n *\n * For now, we support primitive values and arrays, either raw or inside attribute objects.\n * If @param useFallback is true, we stringify other non-primitive values to a string attribute\n * value. Otherwise we return `undefined` for unsupported values.\n *\n * @param value - The value of the passed attribute.\n * @param useFallback - If true, unsupported values will be stringified to a string attribute value.\n *                      Defaults to false. In this case, `undefined` is returned for unsupported values.\n * @returns The typed attribute.\n */\nexport function attributeValueToTypedAttributeValue(\n  rawValue: unknown,\n  useFallback?: boolean | 'skip-undefined',\n): TypedAttributeValue | void {\n  const { value, unit } = isAttributeObject(rawValue) ? rawValue : { value: rawValue, unit: undefined };\n  const attributeValue = getTypedAttributeValue(value);\n  const checkedUnit = unit && typeof unit === 'string' ? { unit } : {};\n  if (attributeValue) {\n    return { ...attributeValue, ...checkedUnit };\n  }\n\n  if (!useFallback || (useFallback === 'skip-undefined' && value === undefined)) {\n    return;\n  }\n\n  // Fallback: stringify the value\n  // TODO(v11): be smarter here and use String constructor if stringify fails\n  // (this is a breaking change for already existing attribute values)\n  let stringValue = '';\n  try {\n    stringValue = JSON.stringify(value) ?? '';\n  } catch {\n    // Do nothing\n  }\n  return {\n    value: stringValue,\n    type: 'string',\n    ...checkedUnit,\n  };\n}\n\n/**\n * Serializes raw attributes to typed attributes as expected in our envelopes.\n *\n * @param attributes The raw attributes to serialize.\n * @param fallback   If true, unsupported values will be stringified to a string attribute value.\n *                   Defaults to false. In this case, `undefined` is returned for unsupported values.\n *\n * @returns The serialized attributes.\n */\nexport function serializeAttributes<T>(\n  attributes: RawAttributes<T> | undefined,\n  fallback: boolean | 'skip-undefined' = false,\n): Attributes {\n  const serializedAttributes: Attributes = {};\n  for (const [key, value] of Object.entries(attributes ?? {})) {\n    const typedValue = attributeValueToTypedAttributeValue(value, fallback);\n    if (typedValue) {\n      serializedAttributes[key] = typedValue;\n    }\n  }\n  return serializedAttributes;\n}\n\n/**\n * Estimates the serialized byte size of {@link Attributes},\n * with a couple of heuristics for performance.\n */\nexport function estimateTypedAttributesSizeInBytes(attributes: Attributes | undefined): number {\n  if (!attributes) {\n    return 0;\n  }\n  let weight = 0;\n  for (const [key, attr] of Object.entries(attributes)) {\n    weight += key.length * 2;\n    weight += attr.type.length * 2;\n    weight += (attr.unit?.length ?? 0) * 2;\n    const val = attr.value;\n\n    if (Array.isArray(val)) {\n      // Assumption: Individual array items have the same type and roughly the same size\n      // probably not always true but allows us to cut down on runtime\n      weight += estimatePrimitiveSizeInBytes(val[0]) * val.length;\n    } else if (isPrimitive(val)) {\n      weight += estimatePrimitiveSizeInBytes(val);\n    } else {\n      // default fallback for anything else (objects)\n      weight += 100;\n    }\n  }\n  return weight;\n}\n\nfunction estimatePrimitiveSizeInBytes(value: Primitive): number {\n  if (typeof value === 'string') {\n    return value.length * 2;\n  } else if (typeof value === 'boolean') {\n    return 4;\n  } else if (typeof value === 'number') {\n    return 8;\n  }\n  return 0;\n}\n\n/**\n * NOTE: We return typed attributes for primitives and arrays:\n *  - Relay currently only supports arrays consisting of primitive values. Attributes with non-conforming arrays are dropped by Relay, so runtime type validation in the SDK is unnecessary.\n *  - Objects are not supported yet and product support is still TBD.\n */\nfunction getTypedAttributeValue(value: unknown): TypedAttributeValue | void {\n  if (Array.isArray(value)) {\n    return { value, type: 'array' };\n  }\n\n  const primitiveType =\n    typeof value === 'string'\n      ? 'string'\n      : typeof value === 'boolean'\n        ? 'boolean'\n        : typeof value === 'number' && !Number.isNaN(value)\n          ? Number.isInteger(value)\n            ? 'integer'\n            : 'double'\n          : null;\n  if (primitiveType) {\n    // @ts-expect-error - TS complains because {@link TypedAttributeValue} is strictly typed to\n    // avoid setting the wrong `type` on the attribute value.\n    // In this case, getPrimitiveType already does the check but TS doesn't know that.\n    // The \"clean\" alternative is to return an object per `typeof value` case\n    // but that would require more bundle size\n    // Therefore, we ignore it.\n    return { value, type: primitiveType };\n  }\n}\n","export const SPAN_STATUS_TYPES = [\n  /** The operation completed successfully. */\n  'ok',\n  /** Deadline expired before operation could complete. */\n  'deadline_exceeded',\n  /** 401 Unauthorized (actually does mean unauthenticated according to RFC 7235) */\n  'unauthenticated',\n  /** 403 Forbidden */\n  'permission_denied',\n  /** 404 Not Found. Some requested entity (file or directory) was not found. */\n  'not_found',\n  /** 429 Too Many Requests */\n  'resource_exhausted',\n  /** Client specified an invalid argument. 4xx. */\n  'invalid_argument',\n  /** 501 Not Implemented */\n  'unimplemented',\n  /** 503 Service Unavailable */\n  'unavailable',\n  /** Other/generic 5xx. */\n  'internal_error',\n  /** Unknown. Any non-standard HTTP status code. */\n  'unknown_error',\n  /** The operation was cancelled (typically by the user). */\n  'cancelled',\n  /** Already exists (409) */\n  'already_exists',\n  /** Operation was rejected because the system is not in a state required for the operation's */\n  'failed_precondition',\n  /** The operation was aborted, typically due to a concurrency issue. */\n  'aborted',\n  /** Operation was attempted past the valid range. */\n  'out_of_range',\n  /** Unrecoverable data loss or corruption */\n  'data_loss',\n] as const;\n\nexport type SpanStatusType = (typeof SPAN_STATUS_TYPES)[number];\n\n// These are aligned with OpenTelemetry span status codes\nconst SPAN_STATUS_UNSET = 0;\nconst SPAN_STATUS_OK = 1;\nconst SPAN_STATUS_ERROR = 2;\n/** The status code of a span. */\nexport type SpanStatusCode = typeof SPAN_STATUS_UNSET | typeof SPAN_STATUS_OK | typeof SPAN_STATUS_ERROR;\n\n/**\n * The status of a span.\n * This can optionally contain a human-readable message.\n */\nexport interface SpanStatus {\n  /**\n   * The status code of this message.\n   * 0 = UNSET\n   * 1 = OK\n   * 2 = ERROR\n   */\n  code: SpanStatusCode;\n  /**\n   * A developer-facing error message.\n   */\n  message?: SpanStatusType | string;\n}\n","import { GLOBAL_OBJ } from './worldwide';\n\n/**\n * Interface representing a weak reference to an object.\n * This matches the standard WeakRef interface but is defined here\n * because WeakRef is not available in ES2020 type definitions.\n */\ninterface WeakRefLike<T extends object> {\n  deref(): T | undefined;\n}\n\n/**\n * A wrapper type that represents either a WeakRef-like object or a direct reference.\n * Used for optional weak referencing in environments where WeakRef may not be available.\n */\nexport type MaybeWeakRef<T extends object> = WeakRefLike<T> | T;\n\n/**\n * Creates a weak reference to an object if WeakRef is available,\n * otherwise returns the object directly.\n *\n * This is useful for breaking circular references while maintaining\n * compatibility with environments that don't support WeakRef (e.g., older browsers).\n *\n * @param value - The object to create a weak reference to\n * @returns A WeakRef wrapper if available, or the original object as fallback\n */\nexport function makeWeakRef<T extends object>(value: T): MaybeWeakRef<T> {\n  try {\n    // @ts-expect-error - WeakRef may not be in the type definitions for older TS targets\n    const WeakRefImpl = GLOBAL_OBJ.WeakRef;\n    if (typeof WeakRefImpl === 'function') {\n      return new WeakRefImpl(value);\n    }\n  } catch {\n    // WeakRef not available or construction failed\n  }\n  return value;\n}\n\n/**\n * Resolves a potentially weak reference, returning the underlying object\n * or undefined if the reference has been garbage collected.\n *\n * @param ref - A MaybeWeakRef or undefined\n * @returns The referenced object, or undefined if GC'd or ref was undefined\n */\nexport function derefWeakRef<T extends object>(ref: MaybeWeakRef<T> | undefined): T | undefined {\n  if (!ref) {\n    return undefined;\n  }\n\n  // Check if this is a WeakRef (has deref method)\n  if (typeof ref === 'object' && 'deref' in ref && typeof ref.deref === 'function') {\n    try {\n      return ref.deref();\n    } catch {\n      // deref() failed - treat as GC'd\n      return undefined;\n    }\n  }\n\n  // Direct reference fallback\n  return ref as T;\n}\n","import type { Scope } from '../scope';\nimport type { Span } from '../types/span';\nimport { addNonEnumerableProperty } from '../utils/object';\nimport { derefWeakRef, makeWeakRef, type MaybeWeakRef } from '../utils/weakRef';\n\nconst SCOPE_ON_START_SPAN_FIELD = '_sentryScope';\nconst ISOLATION_SCOPE_ON_START_SPAN_FIELD = '_sentryIsolationScope';\n\n// Brand marking a span created by the `SentryTracerProvider` (i.e. via the OTel tracer) rather than\n// directly through the core span API. Such a span is handed to OTel instrumentations as an OTel span,\n// so it must become immutable after `end()` like a real OTel SDK span (see `SentrySpan.end()`). Spans\n// created directly through core (e.g. the browser SDK) are not branded and stay mutable.\nconst TRACER_PROVIDER_SPAN_FIELD = Symbol.for('sentry.tracerProviderSpan');\n\ntype SpanWithScopes = Span & {\n  [SCOPE_ON_START_SPAN_FIELD]?: Scope;\n  [ISOLATION_SCOPE_ON_START_SPAN_FIELD]?: MaybeWeakRef<Scope>;\n};\n\ntype SpanWithTracerProviderBrand = Span & {\n  [TRACER_PROVIDER_SPAN_FIELD]?: boolean;\n};\n\n/** Store the scope & isolation scope for a span, which can the be used when it is finished. */\nexport function setCapturedScopesOnSpan(span: Span | undefined, scope: Scope, isolationScope: Scope): void {\n  if (span) {\n    addNonEnumerableProperty(span, ISOLATION_SCOPE_ON_START_SPAN_FIELD, makeWeakRef(isolationScope));\n    // We don't wrap the scope with a WeakRef here because webkit aggressively garbage collects\n    // and scopes are not held in memory for long periods of time.\n    addNonEnumerableProperty(span, SCOPE_ON_START_SPAN_FIELD, scope);\n  }\n}\n\n/**\n * Grabs the scope and isolation scope off a span that were active when the span was started.\n * If WeakRef was used and scopes have been garbage collected, returns undefined for those scopes.\n */\nexport function getCapturedScopesOnSpan(span: Span): { scope?: Scope; isolationScope?: Scope } {\n  const spanWithScopes = span as SpanWithScopes;\n\n  return {\n    scope: spanWithScopes[SCOPE_ON_START_SPAN_FIELD],\n    isolationScope: derefWeakRef(spanWithScopes[ISOLATION_SCOPE_ON_START_SPAN_FIELD]),\n  };\n}\n\n/**\n * Mark a span as created by the `SentryTracerProvider` (via the OTel tracer). Set by `SentryTracer`\n * on every span it creates; read by `SentrySpan.end()` to seal the span against further writes once\n * it has ended, mirroring OTel SDK spans (which are immutable after `end()`).\n */\nexport function markSpanAsTracerProviderSpan(span: Span): void {\n  addNonEnumerableProperty(span, TRACER_PROVIDER_SPAN_FIELD, true);\n}\n\n/** Whether a span was created by the `SentryTracerProvider` (see {@link markSpanAsTracerProviderSpan}). */\nexport function spanIsTracerProviderSpan(span: Span): boolean {\n  return (span as SpanWithTracerProviderBrand)[TRACER_PROVIDER_SPAN_FIELD] === true;\n}\n","import type { Scope } from '../scope';\nimport type { Span } from '../types/span';\nimport { derefWeakRef, makeWeakRef, type MaybeWeakRef } from './weakRef';\n\nconst SCOPE_SPAN_FIELD = 'span';\n\n/**\n * Set the active span for a given scope.\n * NOTE: This should NOT be used directly, but is only used internally by the trace methods.\n */\nexport function _setSpanForScope(scope: Scope, span: Span | undefined): void {\n  if (span) {\n    // Use WeakRef to avoid circular reference with span holding scope\n    scope.refs[SCOPE_SPAN_FIELD] = makeWeakRef(span);\n  } else {\n    // eslint-disable-next-line @typescript-eslint/no-dynamic-delete\n    delete scope.refs[SCOPE_SPAN_FIELD];\n  }\n}\n\n/**\n * Get the active span for a given scope.\n * NOTE: This should NOT be used directly, but is only used internally by the trace methods.\n */\nexport function _getSpanForScope(scope: Scope): Span | undefined {\n  return derefWeakRef(scope.refs[SCOPE_SPAN_FIELD] as MaybeWeakRef<Span> | undefined);\n}\n","// oxlint-disable max-lines\nimport { getAsyncContextStrategy } from '../asyncContext';\nimport type { RawAttributes } from '../attributes';\nimport { serializeAttributes } from '../attributes';\nimport { getMainCarrier } from '../carrier';\nimport { getCurrentScope } from '../currentScopes';\nimport type { Scope } from '../scope';\nimport {\n  SENTRY_SEGMENT_NAME_SOURCE,\n  SENTRY_STATUS_MESSAGE,\n  SENTRY_OP,\n  SENTRY_ORIGIN,\n} from '@sentry/conventions/attributes';\nimport { SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME } from '../semanticAttributes';\nimport type { SentrySpan } from '../tracing/sentrySpan';\nimport { isStatusErrorMessageValid, SPAN_STATUS_OK, SPAN_STATUS_UNSET } from '../tracing/spanstatus';\nimport { getCapturedScopesOnSpan } from '../tracing/utils';\nimport type { TraceContext } from '../types/context';\nimport type { SpanLink, SpanLinkJSON } from '../types/link';\nimport type { TransactionSource } from '../types/transaction';\nimport type {\n  SerializedStreamedSpan,\n  Span,\n  SpanAttributes,\n  SpanJSON,\n  SpanOrigin,\n  SpanTimeInput,\n  StreamedSpanJSON,\n} from '../types/span';\nimport type { SpanStatus } from '../types/spanStatus';\nimport { addNonEnumerableProperty } from '../utils/object';\nimport { generateSpanId } from '../utils/propagationContext';\nimport { timestampInSeconds } from '../utils/time';\nimport { generateSentryTraceHeader, generateTraceparentHeader } from '../utils/tracing';\nimport { _getSpanForScope } from './spanOnScope';\n\n// These are aligned with OpenTelemetry trace flags\nexport const TRACE_FLAG_NONE = 0x0;\nexport const TRACE_FLAG_SAMPLED = 0x1;\n\n/**\n * Convert a span to a trace context, which can be sent as the `trace` context in an event.\n * By default, this will only include trace_id, span_id & parent_span_id.\n * If `includeAllData` is true, it will also include data, op, status & origin.\n */\nexport function spanToTransactionTraceContext(span: Span): TraceContext {\n  const { spanId: span_id, traceId: trace_id } = span.spanContext();\n  const { data, op, parent_span_id, status, origin, links } = spanToStaticSpanJSON(span);\n\n  return {\n    parent_span_id,\n    span_id,\n    trace_id,\n    data,\n    op,\n    status,\n    origin,\n    links,\n  };\n}\n\n/**\n * Convert a span to a trace context, which can be sent as the `trace` context in a non-transaction event.\n */\nexport function spanToTraceContext(span: Span): TraceContext {\n  const { spanId, traceId: trace_id, isRemote } = span.spanContext();\n\n  // If the span is remote, we use a random/virtual span as span_id to the trace context,\n  // and the remote span as parent_span_id\n  const parent_span_id = isRemote ? spanId : spanToStaticSpanJSON(span).parent_span_id;\n  const scope = getCapturedScopesOnSpan(span).scope;\n\n  const span_id = isRemote ? scope?.getPropagationContext().propagationSpanId || generateSpanId() : spanId;\n\n  return {\n    parent_span_id,\n    span_id,\n    trace_id,\n  };\n}\n\n/**\n * Convert a Span to a Sentry trace header.\n */\nexport function spanToTraceHeader(span: Span): string {\n  const { traceId, spanId } = span.spanContext();\n  const sampled = spanIsSampled(span);\n  return generateSentryTraceHeader(traceId, spanId, sampled);\n}\n\n/**\n * Convert a Span to a W3C traceparent header.\n */\nexport function spanToTraceparentHeader(span: Span): string {\n  const { traceId, spanId } = span.spanContext();\n  const sampled = spanIsSampled(span);\n  return generateTraceparentHeader(traceId, spanId, sampled);\n}\n\n/**\n *  Converts the span links array to a flattened version to be sent within an envelope.\n *\n *  If the links array is empty, it returns `undefined` so the empty value can be dropped before it's sent.\n */\nexport function convertSpanLinksForEnvelope(links?: SpanLink[]): SpanLinkJSON[] | undefined {\n  if (links && links.length > 0) {\n    return links.map(({ context: { spanId, traceId, traceFlags, ...restContext }, attributes }) => ({\n      span_id: spanId,\n      trace_id: traceId,\n      sampled: traceFlags === TRACE_FLAG_SAMPLED,\n      attributes,\n      ...restContext,\n    }));\n  } else {\n    return undefined;\n  }\n}\n\n/**\n * Converts the span links array to a flattened version with serialized attributes for V2 spans.\n *\n * If the links array is empty, it returns `undefined` so the empty value can be dropped before it's sent.\n */\nexport function getStreamedSpanLinks(\n  links?: SpanLink[],\n): SpanLinkJSON<RawAttributes<Record<string, unknown>>>[] | undefined {\n  if (links?.length) {\n    return links.map(({ context: { spanId, traceId, traceFlags }, attributes }) => ({\n      span_id: spanId,\n      trace_id: traceId,\n      sampled: traceFlags === TRACE_FLAG_SAMPLED,\n      attributes,\n    }));\n  } else {\n    return undefined;\n  }\n}\n\n/**\n * Convert a span time input into a timestamp in seconds.\n */\nexport function spanTimeInputToSeconds(input: SpanTimeInput | undefined): number {\n  if (typeof input === 'number') {\n    return ensureTimestampInSeconds(input);\n  }\n\n  if (Array.isArray(input)) {\n    // See {@link HrTime} for the array-based time format\n    return input[0] + input[1] / 1e9;\n  }\n\n  if (input instanceof Date) {\n    return ensureTimestampInSeconds(input.getTime());\n  }\n\n  return timestampInSeconds();\n}\n\n/**\n * Converts a timestamp to second, if it was in milliseconds, or keeps it as second.\n */\nfunction ensureTimestampInSeconds(timestamp: number): number {\n  const isMs = timestamp > 9999999999;\n  return isMs ? timestamp / 1000 : timestamp;\n}\n\n/**\n * Convert a span to a static JSON representation.\n */\n// Note: Because of this, we currently have a circular type dependency (which we opted out of in package.json).\n// This is not avoidable as we need `spanToJSON` in `spanUtils.ts`, which in turn is needed by `span.ts` for backwards compatibility.\n// And `spanToJSON` needs the Span class from `span.ts` to check here.\nexport function spanToStaticSpanJSON(span: Span): SpanJSON {\n  if (spanIsSentrySpan(span)) {\n    return span.getStaticSpanJSON();\n  }\n\n  const { spanId: span_id, traceId: trace_id } = span.spanContext();\n\n  // Handle a span from @opentelemetry/sdk-base-trace's `Span` class\n  if (spanIsOpenTelemetrySdkTraceBaseSpan(span)) {\n    const { attributes, startTime, name, endTime, status, links } = span;\n\n    return {\n      span_id,\n      trace_id,\n      data: attributes,\n      description: name,\n      parent_span_id: getOtelParentSpanId(span),\n      start_timestamp: spanTimeInputToSeconds(startTime),\n      // This is [0,0] by default in OTEL, in which case we want to interpret this as no end time\n      timestamp: spanTimeInputToSeconds(endTime) || undefined,\n      status: getStatusMessage(status),\n      op: attributes[SENTRY_OP],\n      origin: attributes[SENTRY_ORIGIN] as SpanOrigin | undefined,\n      links: convertSpanLinksForEnvelope(links),\n    };\n  }\n\n  // Finally, at least we have `spanContext()`....\n  // This should not actually happen in reality, but we need to handle it for type safety.\n  return {\n    span_id,\n    trace_id,\n    start_timestamp: 0,\n    status: 'ok',\n    data: {},\n  };\n}\n\n/**\n * Convert a span to a JSON representation.\n */\nexport function spanToJSON(span: Span): StreamedSpanJSON {\n  if (spanIsSentrySpan(span)) {\n    return span.getSpanJSON();\n  }\n\n  const { spanId: span_id, traceId: trace_id } = span.spanContext();\n\n  // Handle a span from @opentelemetry/sdk-base-trace's `Span` class\n  if (spanIsOpenTelemetrySdkTraceBaseSpan(span)) {\n    const { attributes, startTime, name, endTime, status, links } = span;\n\n    return {\n      name,\n      span_id,\n      trace_id,\n      parent_span_id: getOtelParentSpanId(span),\n      start_timestamp: spanTimeInputToSeconds(startTime),\n      // This is [0,0] by default in OTEL, in which case we want to interpret this as no end time\n      end_timestamp: spanTimeInputToSeconds(endTime) || undefined,\n      is_segment: spanIsSegment(span),\n      status: getSimpleStatus(status),\n      attributes: addStatusMessageAttribute(attributes, status),\n      links: getStreamedSpanLinks(links),\n    };\n  }\n\n  // Finally, as a fallback, at least we have `spanContext()`....\n  // This should not actually happen in reality, but we need to handle it for type safety.\n  return {\n    span_id,\n    trace_id,\n    start_timestamp: 0,\n    name: '',\n    status: 'ok',\n    is_segment: spanIsSegment(span),\n    attributes: {},\n  };\n}\n\n/**\n * In preparation for the next major of OpenTelemetry, we want to support\n * looking up the parent span id according to the new API\n * In OTel v1, the parent span id is accessed as `parentSpanId`\n * In OTel v2, the parent span id is accessed as `spanId` on the `parentSpanContext`\n */\nfunction getOtelParentSpanId(span: OpenTelemetrySdkTraceBaseSpan): string | undefined {\n  return 'parentSpanId' in span\n    ? span.parentSpanId\n    : 'parentSpanContext' in span\n      ? (span.parentSpanContext as { spanId?: string } | undefined)?.spanId\n      : undefined;\n}\n\n/**\n * Converts a {@link StreamedSpanJSON} to a {@link SerializedSpan}.\n * This is the final serialized span format that is sent to Sentry.\n * The returned serilaized spans must not be consumed by users or SDK integrations.\n */\nexport function streamedSpanJsonToSerializedSpan(spanJson: StreamedSpanJSON): SerializedStreamedSpan {\n  return {\n    ...spanJson,\n    // We only ever send ended spans, but fall back to the start time (i.e. duration 0) so that\n    // sent spans always carry an end timestamp.\n    end_timestamp: spanJson.end_timestamp ?? spanJson.start_timestamp,\n    attributes: serializeAttributes(spanJson.attributes),\n    links: spanJson.links?.map(link => ({\n      ...link,\n      attributes: serializeAttributes(link.attributes),\n    })),\n  };\n}\n\nfunction spanIsOpenTelemetrySdkTraceBaseSpan(span: Span): span is OpenTelemetrySdkTraceBaseSpan {\n  const castSpan = span as Partial<OpenTelemetrySdkTraceBaseSpan>;\n  return !!castSpan.attributes && !!castSpan.startTime && !!castSpan.name && !!castSpan.endTime && !!castSpan.status;\n}\n\n/** Exported only for tests. */\nexport interface OpenTelemetrySdkTraceBaseSpan extends Span {\n  attributes: SpanAttributes;\n  startTime: SpanTimeInput;\n  name: string;\n  status: SpanStatus;\n  endTime: SpanTimeInput;\n  parentSpanId?: string;\n  links?: SpanLink[];\n}\n\n/**\n * Sadly, due to circular dependency checks we cannot actually import the Span class here and check for instanceof.\n * :( So instead we approximate this by checking if it has the `getSpanJSON` method.\n */\nexport function spanIsSentrySpan(span: Span): span is SentrySpan {\n  return typeof (span as SentrySpan).getSpanJSON === 'function';\n}\n\n/**\n * Returns true if a span is sampled.\n * In most cases, you should just use `span.isRecording()` instead.\n * However, this has a slightly different semantic, as it also returns false if the span is finished.\n * So in the case where this distinction is important, use this method.\n */\nexport function spanIsSampled(span: Span): boolean {\n  // We align our trace flags with the ones OpenTelemetry use\n  // So we also check for sampled the same way they do.\n  const { traceFlags } = span.spanContext();\n  return traceFlags === TRACE_FLAG_SAMPLED;\n}\n\n/** Get the status message to use for a JSON representation of a span. */\nexport function getStatusMessage(status: SpanStatus | undefined): string {\n  if (!status || status.code === SPAN_STATUS_UNSET) {\n    return 'ok';\n  }\n\n  if (status.code === SPAN_STATUS_OK) {\n    return 'ok';\n  }\n\n  return status.message && isStatusErrorMessageValid(status.message) ? status.message : 'internal_error';\n}\n\n/**\n * Convert the various statuses to the simple ones expected by Sentry for streamed spans ('ok' is default).\n */\nexport function getSimpleStatus(status: SpanStatus | undefined): 'ok' | 'error' {\n  return !status ||\n    status.code === SPAN_STATUS_OK ||\n    status.code === SPAN_STATUS_UNSET ||\n    status.message === 'cancelled'\n    ? 'ok'\n    : 'error';\n}\n\n/**\n * Returns the span's attributes with the SENTRY_STATUS_MESSAGE attribute added\n * if the span has an error status message worth preserving.\n *\n * An explicitly set attribute is never overwritten.\n */\nexport function addStatusMessageAttribute(\n  attributes: SpanAttributes,\n  status: SpanStatus | undefined,\n): RawAttributes<Record<string, unknown>> {\n  const statusMessage = getSimpleStatus(status) === 'error' ? status?.message : undefined;\n  return {\n    ...(statusMessage && { [SENTRY_STATUS_MESSAGE]: statusMessage }),\n    ...attributes,\n  };\n}\n\nconst CHILD_SPANS_FIELD = '_sentryChildSpans';\nconst ROOT_SPAN_FIELD = '_sentryRootSpan';\n\ntype SpanWithPotentialChildren = Span & {\n  [CHILD_SPANS_FIELD]?: Set<Span>;\n  [ROOT_SPAN_FIELD]?: Span;\n};\n\n/**\n * Adds an opaque child span reference to a span.\n */\nexport function addChildSpanToSpan(span: SpanWithPotentialChildren, childSpan: Span): void {\n  // We store the root span reference on the child span\n  // We need this for `getRootSpan()` to work\n  const rootSpan = span[ROOT_SPAN_FIELD] || span;\n  addNonEnumerableProperty(childSpan, ROOT_SPAN_FIELD, rootSpan);\n\n  // Name source is exclusive to segment spans. Constructor-time attribute bags can leak it onto\n  // children before this link exists, so drop it once the span is known not to be the segment.\n  childSpan.setAttribute(SENTRY_SEGMENT_NAME_SOURCE, undefined);\n\n  // `_sentryChildSpans` exists only so `getSpanDescendants()` can walk the tree when the segment span\n  // is sent, and that walk stops at an unsampled span without ever visiting its children. So a child\n  // tracked here would be held for the parent's lifetime and never read.\n  if (!spanIsSampled(span)) {\n    return;\n  }\n\n  // Once the segment span stopped recording, the tree has been read for the last time, and a child\n  // starting now belongs to whatever segment comes next: it is re-emitted on its own instead. Tracking\n  // it here would pin it for as long as the parent lives, which for a span left active in an async\n  // context (e.g. a framework boot span captured by a queue consumer) is the rest of the process. Only\n  // a parent that is itself still recording keeps tracking, so a late child that outlives its segment\n  // still collects the subtree it is re-emitted with.\n  if (!span.isRecording() && !rootSpan.isRecording()) {\n    return;\n  }\n\n  // We store a list of child spans on the parent span\n  // We need this for `getSpanDescendants()` to work\n  if (span[CHILD_SPANS_FIELD]) {\n    span[CHILD_SPANS_FIELD].add(childSpan);\n  } else {\n    addNonEnumerableProperty(span, CHILD_SPANS_FIELD, new Set([childSpan]));\n  }\n}\n\n/** This is only used internally by Idle Spans. */\nexport function removeChildSpanFromSpan(span: SpanWithPotentialChildren, childSpan: Span): void {\n  if (span[CHILD_SPANS_FIELD]) {\n    span[CHILD_SPANS_FIELD].delete(childSpan);\n  }\n}\n\n/**\n * Returns an array of the given span and all of its descendants.\n */\nexport function getSpanDescendants(span: SpanWithPotentialChildren): Span[] {\n  const resultSet = new Set<Span>();\n\n  function addSpanChildren(span: SpanWithPotentialChildren): void {\n    // This exit condition is required to not infinitely loop in case of a circular dependency.\n    if (resultSet.has(span)) {\n      return;\n      // We want to ignore unsampled spans (e.g. non recording spans)\n    } else if (spanIsSampled(span)) {\n      resultSet.add(span);\n      const childSpans = span[CHILD_SPANS_FIELD] ? Array.from(span[CHILD_SPANS_FIELD]) : [];\n      for (const childSpan of childSpans) {\n        addSpanChildren(childSpan);\n      }\n    }\n  }\n\n  addSpanChildren(span);\n\n  return Array.from(resultSet);\n}\n\n/**\n * Returns the root span of a given span.\n */\nexport const getRootSpan = INTERNAL_getSegmentSpan;\n\n/**\n * Returns the segment span of a given span.\n */\nexport function INTERNAL_getSegmentSpan(span: SpanWithPotentialChildren): Span {\n  return span[ROOT_SPAN_FIELD] || span;\n}\n\n/**\n * Whether the given span is the segment span, i.e. it has no parent within its trace.\n */\nexport function spanIsSegment(span: SpanWithPotentialChildren): boolean {\n  return span === INTERNAL_getSegmentSpan(span);\n}\n\n/**\n * Returns the currently active span.\n */\nexport function getActiveSpan(scope?: Scope): Span | undefined {\n  const carrier = getMainCarrier();\n  const acs = getAsyncContextStrategy(carrier);\n  if (acs.getActiveSpan) {\n    return acs.getActiveSpan(scope);\n  }\n\n  return _getSpanForScope(scope || getCurrentScope());\n}\n\n/**\n * Updates the name of the given span and ensures that the span name is not\n * overwritten by the Sentry SDK.\n *\n * Use this function instead of `span.updateName()` if you want to make sure that\n * your name is kept. For some spans, for example root `http.server` spans the\n * Sentry SDK would otherwise overwrite the span name with a high-quality name\n * it infers when the span ends.\n *\n * Use this function in server code or when your span is started on the server\n * and on the client (browser). If you only update a span name on the client,\n * you can also use `span.updateName()` the SDK does not overwrite the name.\n *\n * @param span - The span to update the name of.\n * @param name - The name to set on the span.\n */\nexport function updateSpanName(span: Span, name: string): void {\n  span.updateName(name);\n  span.setAttributes({\n    [SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME]: name,\n  });\n  INTERNAL_setSegmentNameSourceIfSegment(span, 'custom');\n}\n\n/**\n * Sets `sentry.segment.name.source` only when `span` is the segment span.\n * No-op for child spans — the attribute must exclusively live on the segment.\n */\nexport function INTERNAL_setSegmentNameSourceIfSegment(span: Span, source: TransactionSource): void {\n  if (spanIsSegment(span)) {\n    span.setAttribute(SENTRY_SEGMENT_NAME_SOURCE, source);\n  }\n}\n","import type { Span } from '../types/span';\nimport type { SpanStatusType } from '../types/spanStatus';\nimport { SPAN_STATUS_TYPES, type SpanStatus } from '../types/spanStatus';\n\nexport const SPAN_STATUS_UNSET = 0;\nexport const SPAN_STATUS_OK = 1;\nexport const SPAN_STATUS_ERROR = 2;\n\nexport function isStatusErrorMessageValid(message: string): boolean {\n  return message !== 'ok' && SPAN_STATUS_TYPES.includes(message as SpanStatusType);\n}\n\n/**\n * Converts a HTTP status code into a sentry status with a message.\n *\n * @param httpStatus The HTTP response status code.\n * @returns The span status or internal_error.\n */\n// https://develop.sentry.dev/sdk/event-payloads/span/\nexport function getSpanStatusFromHttpCode(httpStatus: number): SpanStatus {\n  if (httpStatus < 400 && httpStatus >= 100) {\n    return { code: SPAN_STATUS_OK };\n  }\n\n  if (httpStatus >= 400 && httpStatus < 500) {\n    switch (httpStatus) {\n      case 401:\n        return { code: SPAN_STATUS_ERROR, message: 'unauthenticated' };\n      case 403:\n        return { code: SPAN_STATUS_ERROR, message: 'permission_denied' };\n      case 404:\n        return { code: SPAN_STATUS_ERROR, message: 'not_found' };\n      case 409:\n        return { code: SPAN_STATUS_ERROR, message: 'already_exists' };\n      case 413:\n        return { code: SPAN_STATUS_ERROR, message: 'failed_precondition' };\n      case 429:\n        return { code: SPAN_STATUS_ERROR, message: 'resource_exhausted' };\n      case 499:\n        return { code: SPAN_STATUS_ERROR, message: 'cancelled' };\n      default:\n        return { code: SPAN_STATUS_ERROR, message: 'invalid_argument' };\n    }\n  }\n\n  if (httpStatus >= 500 && httpStatus < 600) {\n    switch (httpStatus) {\n      case 501:\n        return { code: SPAN_STATUS_ERROR, message: 'unimplemented' };\n      case 503:\n        return { code: SPAN_STATUS_ERROR, message: 'unavailable' };\n      case 504:\n        return { code: SPAN_STATUS_ERROR, message: 'deadline_exceeded' };\n      default:\n        return { code: SPAN_STATUS_ERROR, message: 'internal_error' };\n    }\n  }\n\n  return { code: SPAN_STATUS_ERROR, message: 'internal_error' };\n}\n\n/**\n * Sets the Http status attributes on the current span based on the http code.\n * Additionally, the span's status is updated, depending on the http code.\n */\nexport function setHttpStatus(span: Span, httpStatus: number): void {\n  span.setAttribute('http.response.status_code', httpStatus);\n\n  const spanStatus = getSpanStatusFromHttpCode(httpStatus);\n  if (spanStatus.message !== 'unknown_error') {\n    span.setStatus(spanStatus);\n  }\n}\n","import type { EventDropReason } from '../types/clientreport';\nimport type {\n  SentrySpanArguments,\n  Span,\n  SpanAttributes,\n  SpanAttributeValue,\n  SpanContextData,\n  SpanTimeInput,\n} from '../types/span';\nimport type { SpanStatus } from '../types/spanStatus';\nimport { addNonEnumerableProperty } from '../utils/object';\nimport { generateSpanId, generateTraceId } from '../utils/propagationContext';\nimport { TRACE_FLAG_NONE } from '../utils/spanUtils';\n\ninterface SentryNonRecordingSpanArguments extends SentrySpanArguments {\n  dropReason?: EventDropReason;\n}\n\n// Brand used to detect non-recording spans via {@link spanIsNonRecordingSpan} without `instanceof`,\n// which is brittle when `@sentry/core` is duplicated across packages. We use `Symbol.for` so the key\n// is shared across copies of the module, and so user payloads (e.g. JSON) cannot spoof the marker.\nconst NON_RECORDING_SPAN_FIELD = Symbol.for('sentry.nonRecordingSpan');\n\n/**\n * A Sentry Span that is non-recording, meaning it will not be sent to Sentry.\n */\nexport class SentryNonRecordingSpan implements Span {\n  private _traceId: string;\n  private _spanId: string;\n\n  /**\n   * Reason why this span was dropped, if applicable ('ignored' or 'sample_rate').\n   * Used to propagate the correct client report outcome to descendant spans\n   * when span streaming is enabled.\n   */\n  public dropReason?: EventDropReason;\n\n  public constructor(spanContext: SentryNonRecordingSpanArguments = {}) {\n    this._traceId = spanContext.traceId || generateTraceId();\n    this._spanId = spanContext.spanId || generateSpanId();\n    this.dropReason = spanContext.dropReason;\n    addNonEnumerableProperty(this, NON_RECORDING_SPAN_FIELD, true);\n  }\n\n  /** @inheritdoc */\n  public spanContext(): SpanContextData {\n    return {\n      spanId: this._spanId,\n      traceId: this._traceId,\n      traceFlags: TRACE_FLAG_NONE,\n    };\n  }\n\n  /** @inheritdoc */\n  public end(_timestamp?: SpanTimeInput): void {}\n\n  /** @inheritdoc */\n  public setAttribute(_key: string, _value: SpanAttributeValue | undefined): this {\n    return this;\n  }\n\n  /** @inheritdoc */\n  public setAttributes(_values: SpanAttributes): this {\n    return this;\n  }\n\n  /** @inheritdoc */\n  public setStatus(_status: SpanStatus): this {\n    return this;\n  }\n\n  /** @inheritdoc */\n  public updateName(_name: string): this {\n    return this;\n  }\n\n  /** @inheritdoc */\n  public isRecording(): boolean {\n    return false;\n  }\n\n  /** @inheritdoc */\n  public addEvent(\n    _name: string,\n    _attributesOrStartTime?: SpanAttributes | SpanTimeInput,\n    _startTime?: SpanTimeInput,\n  ): this {\n    return this;\n  }\n\n  /** @inheritDoc */\n  public addLink(_link: unknown): this {\n    return this;\n  }\n\n  /** @inheritDoc */\n  public addLinks(_links: unknown[]): this {\n    return this;\n  }\n\n  /**\n   * This should generally not be used,\n   * but we need it for being compliant with the OTEL Span interface.\n   *\n   * @hidden\n   * @internal\n   */\n  public recordException(_exception: unknown, _time?: SpanTimeInput | undefined): void {\n    // noop\n  }\n}\n\n/**\n * Whether the given span is a {@link SentryNonRecordingSpan}.\n */\nexport function spanIsNonRecordingSpan(span: Span | undefined): span is SentryNonRecordingSpan {\n  return !!span && (span as { [NON_RECORDING_SPAN_FIELD]?: boolean })[NON_RECORDING_SPAN_FIELD] === true;\n}\n","import type { Client } from '../client';\nimport { DEFAULT_ENVIRONMENT } from '../constants';\nimport { getClient, getExternalPropagationContext } from '../currentScopes';\nimport type { Scope } from '../scope';\nimport { SENTRY_SEGMENT_NAME_SOURCE } from '@sentry/conventions/attributes';\nimport {\n  SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE,\n  SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,\n} from '../semanticAttributes';\nimport type { DynamicSamplingContext } from '../types/envelope';\nimport type { Span } from '../types/span';\nimport { baggageHeaderToDynamicSamplingContext, dynamicSamplingContextToSentryBaggageHeader } from '../utils/baggage';\nimport { extractOrgIdFromClient } from '../utils/dsn';\nimport { hasSpansEnabled } from '../utils/hasSpansEnabled';\nimport { addNonEnumerableProperty } from '../utils/object';\nimport { getRootSpan, spanIsSampled, spanToStaticSpanJSON } from '../utils/spanUtils';\nimport { spanIsNonRecordingSpan } from './sentryNonRecordingSpan';\nimport { getCapturedScopesOnSpan } from './utils';\n\n/**\n * If you change this value, also update the terser plugin config to\n * avoid minification of the object property!\n */\nconst FROZEN_DSC_FIELD = '_frozenDsc';\n\ntype SpanWithMaybeDsc = Span & {\n  [FROZEN_DSC_FIELD]?: Partial<DynamicSamplingContext> | undefined;\n};\n\n/**\n * Freeze the given DSC on the given span.\n */\nexport function freezeDscOnSpan(span: Span, dsc: Partial<DynamicSamplingContext>): void {\n  const spanWithMaybeDsc = span as SpanWithMaybeDsc;\n  addNonEnumerableProperty(spanWithMaybeDsc, FROZEN_DSC_FIELD, dsc);\n}\n\n/**\n * Creates a dynamic sampling context from a client.\n *\n * Dispatches the `createDsc` lifecycle hook as a side effect.\n */\nexport function getDynamicSamplingContextFromClient(trace_id: string, client: Client): DynamicSamplingContext {\n  const options = client.getOptions();\n\n  const { publicKey: public_key } = client.getDsn() || {};\n\n  // Instead of conditionally adding non-undefined values, we add them and then remove them if needed\n  // otherwise, the order of baggage entries changes, which \"breaks\" a bunch of tests etc.\n  const dsc: DynamicSamplingContext = {\n    environment: options.environment || DEFAULT_ENVIRONMENT,\n    release: options.release,\n    public_key,\n    trace_id,\n    org_id: extractOrgIdFromClient(client),\n  };\n\n  client.emit('createDsc', dsc);\n\n  return dsc;\n}\n\n/**\n * Get the dynamic sampling context for the currently active scopes.\n */\nexport function getDynamicSamplingContextFromScope(\n  client: Client,\n  scope: Scope,\n): Partial<DynamicSamplingContext> | undefined {\n  // While an external propagation context is active (e.g. the OTLP integration riding along on an\n  // OpenTelemetry span), the SDK lacks most of the DSC information, like sampled, sample_rate,\n  // sample_rand and transaction. The scope's own DSC would also name a different trace than the one\n  // stamped on the event, so send none at all. Matches sentry-python.\n  if (getExternalPropagationContext()) {\n    return undefined;\n  }\n\n  const propagationContext = scope.getPropagationContext();\n  return propagationContext.dsc || getDynamicSamplingContextFromClient(propagationContext.traceId, client);\n}\n\n/**\n * Creates a dynamic sampling context from a span (and client and scope)\n *\n * @param span the span from which a few values like the root span name and sample rate are extracted.\n *\n * @returns a dynamic sampling context\n */\nexport function getDynamicSamplingContextFromSpan(span: Span): Readonly<Partial<DynamicSamplingContext>> {\n  const client = getClient();\n  if (!client) {\n    return {};\n  }\n\n  const rootSpan = getRootSpan(span);\n  const rootSpanJson = spanToStaticSpanJSON(rootSpan);\n  const rootSpanAttributes = rootSpanJson.data;\n  const traceState = rootSpan.spanContext().traceState;\n\n  // The span sample rate that was locally applied to the root span should also always be applied to the DSC, even if the DSC is frozen.\n  // This is so that the downstream traces/services can use parentSampleRate in their `tracesSampler` to make consistent sampling decisions across the entire trace.\n  const rootSpanSampleRate =\n    traceState?.get('sentry.sample_rate') ??\n    rootSpanAttributes[SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE] ??\n    rootSpanAttributes[SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE];\n\n  function applyLocalSampleRateToDsc(dsc: Partial<DynamicSamplingContext>): Partial<DynamicSamplingContext> {\n    if (typeof rootSpanSampleRate === 'number' || typeof rootSpanSampleRate === 'string') {\n      dsc.sample_rate = `${rootSpanSampleRate}`;\n    }\n    return dsc;\n  }\n\n  // For core implementation, we freeze the DSC onto the span as a non-enumerable property\n  const frozenDsc = (rootSpan as SpanWithMaybeDsc)[FROZEN_DSC_FIELD];\n  if (frozenDsc) {\n    return applyLocalSampleRateToDsc(frozenDsc);\n  }\n\n  // For a non-recording placeholder in Tracing without Performance (TwP) mode or an ignored segment,\n  // the DSC is not carried on the span; the scope is the source of truth. Resolve it from the span's\n  // captured scope so continued traces keep their incoming DSC.\n  //\n  // We gate this on `!hasSpansEnabled()` so it mirrors the `sentry-trace` source in `getTraceData`:\n  // with tracing enabled, other non-recording spans (e.g. an `onlyIfParent` placeholder) keep deriving\n  // their DSC from the span/client. Ignored segments are an explicit exception: they preserve the\n  // incoming DSC but override its sampling decision to agree with the propagated `sentry-trace`.\n  //\n  // We spread into a new object so applying the local sample rate can't mutate the scope's DSC.\n  const isNonRecordingRoot = spanIsNonRecordingSpan(rootSpan);\n  const isIgnoredRoot = isNonRecordingRoot && rootSpan.dropReason === 'ignored';\n  if (isNonRecordingRoot && (!hasSpansEnabled(client.getOptions()) || isIgnoredRoot)) {\n    const capturedScope = getCapturedScopesOnSpan(rootSpan).scope;\n    // The scope yields no DSC while an external propagation context is active. We do have a Sentry\n    // span here though, so we are head of *its* trace: fall through and derive the DSC from the span\n    // rather than emitting an empty one.\n    const scopeDsc = capturedScope && getDynamicSamplingContextFromScope(client, capturedScope);\n    if (scopeDsc) {\n      const dsc = { ...scopeDsc };\n      if (isIgnoredRoot) {\n        dsc.sampled = 'false';\n      }\n      return applyLocalSampleRateToDsc(dsc);\n    }\n  }\n\n  // For OpenTelemetry, we freeze the DSC on the trace state\n  const traceStateDsc = traceState?.get('sentry.dsc');\n\n  // If the span has a DSC, we want it to take precedence\n  const dscOnTraceState = traceStateDsc && baggageHeaderToDynamicSamplingContext(traceStateDsc);\n\n  if (dscOnTraceState) {\n    return applyLocalSampleRateToDsc(dscOnTraceState);\n  }\n\n  // Else, we generate it from the span\n  const dsc = getDynamicSamplingContextFromClient(span.spanContext().traceId, client);\n\n  // We don't want to have a transaction name in the DSC if the source is \"url\" because URLs might contain PII\n  const source = rootSpanAttributes[SENTRY_SEGMENT_NAME_SOURCE];\n\n  // after JSON conversion, txn.name becomes jsonSpan.description\n  const name = rootSpanJson.description;\n  if (source !== 'url' && name) {\n    dsc.transaction = name;\n  }\n\n  // How can we even land here with hasSpansEnabled() returning false?\n  // Otel creates a Non-recording span in Tracing Without Performance mode when handling incoming requests\n  // So we end up with an active span that is not sampled (neither positively nor negatively)\n  if (hasSpansEnabled()) {\n    dsc.sampled = String(spanIsSampled(rootSpan));\n    dsc.sample_rand =\n      // In OTEL we store the sample rand on the trace state because we cannot access scopes for NonRecordingSpans\n      // The Sentry OTEL SpanSampler takes care of writing the sample rand on the root span\n      traceState?.get('sentry.sample_rand') ??\n      // On all other platforms we can actually get the scopes from a root span (we use this as a fallback)\n      getCapturedScopesOnSpan(rootSpan).scope?.getPropagationContext().sampleRand.toString();\n  }\n\n  applyLocalSampleRateToDsc(dsc);\n\n  client.emit('createDsc', dsc, rootSpan);\n\n  return dsc;\n}\n\n/**\n * Convert a Span to a baggage header.\n */\nexport function spanToBaggageHeader(span: Span): string | undefined {\n  const dsc = getDynamicSamplingContextFromSpan(span);\n  return dynamicSamplingContextToSentryBaggageHeader(dsc);\n}\n","/**\n * Attributes that holds the sample rate that was locally applied to a span.\n * If this attribute is not defined, it means that the span inherited a sampling decision.\n *\n * NOTE: Is only defined on root spans.\n */\nexport const SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE = 'sentry.sample_rate';\n\n/**\n * Attribute holding the sample rate of the previous trace.\n * This is used to sample consistently across subsequent traces in the browser SDK.\n *\n * Note: Only defined on root spans, if opted into consistent sampling\n */\nexport const SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE = 'sentry.previous_trace_sample_rate';\n\n/**\n * Use this attribute to represent the operation of a span.\n * @deprecated Use `SENTRY_OP` from `@sentry/conventions/attributes` instead.\n */\nexport const SEMANTIC_ATTRIBUTE_SENTRY_OP = 'sentry.op';\n\n/**\n * Use this attribute to represent the origin of a span.\n * @deprecated Use `SENTRY_ORIGIN` from `@sentry/conventions/attributes` instead.\n */\nexport const SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN = 'sentry.origin';\n\n/**\n * Holds the human-readable span status message (e.g. set via\n * `span.setStatus({ code, message })`).\n *\n * Streamed (v2) span statuses are reduced to `ok`/`error`, so we preserve the\n * message as an attribute instead of dropping it. This mirrors the attribute\n * Sentry's OTLP ingestion uses for the same purpose.\n * @deprecated Use `SENTRY_STATUS_MESSAGE` from `@sentry/conventions/attributes` instead.\n */\nexport const SEMANTIC_ATTRIBUTE_SENTRY_STATUS_MESSAGE = 'sentry.status.message';\n\n/**\n * The reason why an idle span finished.\n * @deprecated Use `SENTRY_IDLE_SPAN_FINISH_REASON` from `@sentry/conventions/attributes` instead.\n */\nexport const SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON = 'sentry.idle_span_finish_reason';\n\n/** The unit of a measurement, which may be stored as a TimedEvent. */\nexport const SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT = 'sentry.measurement_unit';\n\n/** The value of a measurement, which may be stored as a TimedEvent. */\nexport const SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE = 'sentry.measurement_value';\n\n/**\n * The release version of the application\n * @deprecated Use `SENTRY_RELEASE` from `@sentry/conventions/attributes` instead.\n */\nexport const SEMANTIC_ATTRIBUTE_SENTRY_RELEASE = 'sentry.release';\n/**\n * The environment name (e.g., \"production\", \"staging\", \"development\")\n * @deprecated Use `SENTRY_ENVIRONMENT` from `@sentry/conventions/attributes` instead.\n */\nexport const SEMANTIC_ATTRIBUTE_SENTRY_ENVIRONMENT = 'sentry.environment';\n/**\n * The segment name (e.g., \"GET /users\")\n * @deprecated Use `SENTRY_SEGMENT_NAME` `@sentry/conventions/attributes` instead.\n */\nexport const SEMANTIC_ATTRIBUTE_SENTRY_SEGMENT_NAME = 'sentry.segment.name';\n/**\n * The id of the segment that this span belongs to.\n * @deprecated Use `SENTRY_SEGMENT_ID` `@sentry/conventions/attributes` instead.\n */\nexport const SEMANTIC_ATTRIBUTE_SENTRY_SEGMENT_ID = 'sentry.segment.id';\n/**\n * The name of the Sentry SDK (e.g., \"sentry.php\", \"sentry.javascript\")\n * @deprecated Use `SENTRY_SDK_NAME` `@sentry/conventions/attributes` instead.\n */\nexport const SEMANTIC_ATTRIBUTE_SENTRY_SDK_NAME = 'sentry.sdk.name';\n/**\n * The version of the Sentry SDK\n * @deprecated Use `SENTRY_SDK_VERSION` `@sentry/conventions/attributes` instead.\n */\nexport const SEMANTIC_ATTRIBUTE_SENTRY_SDK_VERSION = 'sentry.sdk.version';\n/**\n * The list of integrations enabled in the Sentry SDK (e.g., [\"EventFilters\", \"BrowserTracing\"])\n * @deprecated Use `SENTRY_SDK_INTEGRATIONS` from `@sentry/conventions/attributes` instead.\n */\nexport const SEMANTIC_ATTRIBUTE_SENTRY_SDK_INTEGRATIONS = 'sentry.sdk.integrations';\n\n/**\n * The user ID\n * @deprecated Use `USER_ID` from `@sentry/conventions/attributes` instead.\n */\nexport const SEMANTIC_ATTRIBUTE_USER_ID = 'user.id';\n/**\n * The user email\n * @deprecated Use `USER_EMAIL` from `@sentry/conventions/attributes` instead.\n */\nexport const SEMANTIC_ATTRIBUTE_USER_EMAIL = 'user.email';\n/**\n * The user IP address\n * @deprecated Use `USER_IP_ADDRESS` from `@sentry/conventions/attributes` instead.\n */\nexport const SEMANTIC_ATTRIBUTE_USER_IP_ADDRESS = 'user.ip_address';\n/**\n * The user username\n * @deprecated Use `USER_NAME` from `@sentry/conventions/attributes` instead.\n */\nexport const SEMANTIC_ATTRIBUTE_USER_USERNAME = 'user.name';\n\n/**\n * A custom span name set by users guaranteed to be taken over any automatically\n * inferred name. This attribute is removed before the span is sent.\n *\n * @internal only meant for internal SDK usage\n * @hidden\n */\nexport const SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME = 'sentry.custom_span_name';\n\n/**\n * The id of the profile that this span occurred in.\n * @deprecated Use `SENTRY_PROFILE_ID` from `@sentry/conventions/attributes` instead.\n */\nexport const SEMANTIC_ATTRIBUTE_PROFILE_ID = 'sentry.profile_id';\n\n/**\n * @deprecated Use `SENTRY_EXCLUSIVE_TIME` from `@sentry/conventions/attributes` instead.\n */\nexport const SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME = 'sentry.exclusive_time';\n\n/**\n * @deprecated Use `CACHE_HIT` from `@sentry/conventions/attributes` instead.\n */\nexport const SEMANTIC_ATTRIBUTE_CACHE_HIT = 'cache.hit';\n\n/**\n * @deprecated Use `CACHE_KEY` from `@sentry/conventions/attributes` instead.\n */\nexport const SEMANTIC_ATTRIBUTE_CACHE_KEY = 'cache.key';\n\n/**\n * @deprecated Use `CACHE_ITEM_SIZE` from `@sentry/conventions/attributes` instead.\n */\nexport const SEMANTIC_ATTRIBUTE_CACHE_ITEM_SIZE = 'cache.item_size';\n\n/**\n * @deprecated Use `HTTP_REQUEST_METHOD` from `@sentry/conventions/attributes` instead.\n */\nexport const SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD = 'http.request.method';\n/**\n * @deprecated Use `URL_FULL` `@sentry/conventions/attributes` instead.\n */\nexport const SEMANTIC_ATTRIBUTE_URL_FULL = 'url.full';\n\n/**\n * A span link attribute to mark the link as a special span link.\n *\n * Known values:\n * - `previous_trace`: The span links to the frontend root span of the previous trace.\n * - `next_trace`: The span links to the frontend root span of the next trace. (Not set by the SDK)\n *\n * Other values may be set as appropriate.\n * @deprecated Use `SENTRY_LINK_TYPE` from `@sentry/conventions/attributes` instead.\n * @see https://develop.sentry.dev/sdk/telemetry/traces/span-links/#link-types\n */\nexport const SEMANTIC_LINK_ATTRIBUTE_LINK_TYPE = 'sentry.link.type';\n\n/**\n * =============================================================================\n * GEN AI ATTRIBUTES\n * Based on OpenTelemetry Semantic Conventions for Generative AI\n * @see https://opentelemetry.io/docs/specs/semconv/gen-ai/\n * =============================================================================\n */\n\n/**\n * The conversation ID for linking messages across API calls.\n * For OpenAI Assistants API: thread_id\n * For LangGraph: configurable.thread_id\n * @deprecated Use `GEN_AI_CONVERSATION_ID` from `@sentry/conventions/attributes` instead.\n */\nexport const GEN_AI_CONVERSATION_ID_ATTRIBUTE = 'gen_ai.conversation.id';\n","import { getGlobalScope } from '../currentScopes';\nimport type { Scope, ScopeData } from '../scope';\nimport { getDynamicSamplingContextFromSpan } from '../tracing/dynamicSamplingContext';\nimport type { Breadcrumb } from '../types/breadcrumb';\nimport type { Event } from '../types/event';\nimport type { Span } from '../types/span';\nimport { merge } from './merge';\nimport { getRootSpan, spanToStaticSpanJSON, spanToTraceContext } from './spanUtils';\n\n/**\n * Applies data from the scope to the event and runs all event processors on it.\n */\nexport function applyScopeDataToEvent(event: Event, data: ScopeData): void {\n  const { fingerprint, breadcrumbs, sdkProcessingMetadata } = data;\n\n  applyDataToEvent(event, data);\n  applyFingerprintToEvent(event, fingerprint);\n  applyBreadcrumbsToEvent(event, breadcrumbs);\n  applySdkMetadataToEvent(event, sdkProcessingMetadata);\n}\n\n/** Merge data of two scopes together. */\nexport function mergeScopeData(data: ScopeData, mergeData: ScopeData): void {\n  const {\n    extra,\n    tags,\n    attributes,\n    user,\n    contexts,\n    level,\n    sdkProcessingMetadata,\n    breadcrumbs,\n    fingerprint,\n    eventProcessors,\n    attachments,\n    propagationContext,\n    transactionName,\n  } = mergeData;\n\n  mergeAndOverwriteScopeData(data, 'extra', extra);\n  mergeAndOverwriteScopeData(data, 'tags', tags);\n  mergeAndOverwriteScopeData(data, 'attributes', attributes);\n  mergeAndOverwriteScopeData(data, 'user', user);\n  mergeAndOverwriteScopeData(data, 'contexts', contexts);\n\n  data.sdkProcessingMetadata = merge(data.sdkProcessingMetadata, sdkProcessingMetadata, 2);\n\n  if (level) {\n    data.level = level;\n  }\n\n  if (transactionName) {\n    data.transactionName = transactionName;\n  }\n\n  if (breadcrumbs.length) {\n    data.breadcrumbs = [...data.breadcrumbs, ...breadcrumbs];\n  }\n\n  if (fingerprint.length) {\n    data.fingerprint = [...data.fingerprint, ...fingerprint];\n  }\n\n  if (eventProcessors.length) {\n    data.eventProcessors = [...data.eventProcessors, ...eventProcessors];\n  }\n\n  if (attachments.length) {\n    data.attachments = [...data.attachments, ...attachments];\n  }\n\n  data.propagationContext = { ...data.propagationContext, ...propagationContext };\n}\n\n/**\n * Merges certain scope data. Undefined values will overwrite any existing values.\n * Exported only for tests.\n */\nexport function mergeAndOverwriteScopeData<\n  Prop extends 'extra' | 'tags' | 'attributes' | 'user' | 'contexts' | 'sdkProcessingMetadata',\n  Data extends ScopeData,\n>(data: Data, prop: Prop, mergeVal: Data[Prop]): void {\n  data[prop] = merge(data[prop], mergeVal, 1);\n}\n\n/** Exported only for tests */\nexport function mergeArray<Prop extends 'breadcrumbs' | 'fingerprint'>(\n  event: Event,\n  prop: Prop,\n  mergeVal: ScopeData[Prop],\n): void {\n  const prevVal = event[prop];\n  // If we are not merging any new values,\n  // we only need to proceed if there was an empty array before (as we want to replace it with undefined)\n  if (!mergeVal.length && (!prevVal || prevVal.length)) {\n    return;\n  }\n\n  const merged = [...(prevVal || []), ...mergeVal] as ScopeData[Prop];\n  event[prop] = merged.length ? merged : undefined;\n}\n\n/**\n * Get the scope data for the current scope after merging with the\n * global scope and isolation scope.\n *\n * @param currentScope - The current scope.\n * @returns The scope data.\n */\nexport function getCombinedScopeData(isolationScope: Scope | undefined, currentScope: Scope | undefined): ScopeData {\n  const scopeData = getGlobalScope().getScopeData();\n  isolationScope && mergeScopeData(scopeData, isolationScope.getScopeData());\n  currentScope && mergeScopeData(scopeData, currentScope.getScopeData());\n  return scopeData;\n}\n\nfunction applyDataToEvent(event: Event, data: ScopeData): void {\n  const { extra, tags, user, contexts, level, transactionName } = data;\n\n  if (Object.keys(extra).length) {\n    event.extra = { ...extra, ...event.extra };\n  }\n\n  if (Object.keys(tags).length) {\n    event.tags = { ...tags, ...event.tags };\n  }\n\n  if (Object.keys(user).length) {\n    event.user = { ...user, ...event.user };\n  }\n\n  if (Object.keys(contexts).length) {\n    event.contexts = { ...contexts, ...event.contexts };\n  }\n\n  if (level) {\n    event.level = level;\n  }\n\n  // transaction events get their `transaction` from the root span name\n  if (transactionName && event.type !== 'transaction') {\n    event.transaction = transactionName;\n  }\n}\n\nfunction applyBreadcrumbsToEvent(event: Event, breadcrumbs: Breadcrumb[]): void {\n  const mergedBreadcrumbs = [...(event.breadcrumbs || []), ...breadcrumbs];\n  event.breadcrumbs = mergedBreadcrumbs.length ? mergedBreadcrumbs : undefined;\n}\n\nfunction applySdkMetadataToEvent(event: Event, sdkProcessingMetadata: ScopeData['sdkProcessingMetadata']): void {\n  event.sdkProcessingMetadata = {\n    ...event.sdkProcessingMetadata,\n    ...sdkProcessingMetadata,\n  };\n}\n\n/** Apply a given span to the event. */\nexport function applySpanToEvent(event: Event, span: Span): void {\n  event.contexts = {\n    trace: spanToTraceContext(span),\n    ...event.contexts,\n  };\n\n  event.sdkProcessingMetadata = {\n    dynamicSamplingContext: getDynamicSamplingContextFromSpan(span),\n    ...event.sdkProcessingMetadata,\n  };\n\n  const rootSpan = getRootSpan(span);\n  const transactionName = spanToStaticSpanJSON(rootSpan).description;\n  if (transactionName && !event.transaction && event.type === 'transaction') {\n    event.transaction = transactionName;\n  }\n}\n\n/**\n * Applies fingerprint from the scope to the event if there's one,\n * uses message if there's one instead or get rid of empty fingerprint\n */\nfunction applyFingerprintToEvent(event: Event, fingerprint: ScopeData['fingerprint'] | undefined): void {\n  // Make sure it's an array first and we actually have something in place\n  event.fingerprint = event.fingerprint\n    ? Array.isArray(event.fingerprint)\n      ? event.fingerprint\n      : [event.fingerprint]\n    : [];\n\n  // If we have something on the scope, then merge it with event\n  if (fingerprint) {\n    event.fingerprint = event.fingerprint.concat(fingerprint);\n  }\n\n  // If we have no data at all, remove empty array default\n  if (!event.fingerprint.length) {\n    delete event.fingerprint;\n  }\n}\n","import type { Client } from '../client';\nimport { DEFAULT_ENVIRONMENT } from '../constants';\nimport { notifyEventProcessors } from '../eventProcessors';\nimport type { CaptureContext, ScopeContext } from '../scope';\nimport { Scope } from '../scope';\nimport type { Event, EventHint } from '../types/event';\nimport type { ClientOptions } from '../types/options';\nimport type { StackParser } from '../types/stacktrace';\nimport { getFilenameToDebugIdMap } from './debug-ids';\nimport { getDataCategoryByType } from './envelope';\nimport { applyEscapedErrorSpanToEvent } from './errorSpanAttribution';\nimport { addExceptionMechanismToCapturedException, uuid4 } from './misc';\nimport { normalize } from './normalize';\nimport { applyScopeDataToEvent, applySpanToEvent, getCombinedScopeData } from './scopeData';\nimport { getActiveSpan } from './spanUtils';\nimport { truncate } from './string';\nimport { resolvedSyncPromise } from './syncpromise';\nimport { dateTimestampInSeconds } from './time';\n\n/**\n * This type makes sure that we get either a CaptureContext, OR an EventHint.\n * It does not allow mixing them, which could lead to unexpected outcomes, e.g. this is disallowed:\n * { user: { id: '123' }, mechanism: { handled: false } }\n */\nexport type ExclusiveEventHintOrCaptureContext =\n  | (CaptureContext & Partial<{ [key in keyof EventHint]: never }>)\n  | (EventHint & Partial<{ [key in keyof ScopeContext]: never }>);\n\n/**\n * Adds common information to events.\n *\n * The information includes release and environment from `options`,\n * breadcrumbs and context (extra, tags and user) from the scope.\n *\n * Information that is already present in the event is never overwritten. For\n * nested objects, such as the context, keys are merged.\n *\n * @param event The original event.\n * @param hint May contain additional information about the original exception.\n * @param scope A scope containing event metadata.\n * @returns A new event with more information, or `null` if an event processor dropped it (or threw). In that case the\n *   drop has already been recorded on the client, so callers must not record it again.\n * @hidden\n */\nexport function prepareEvent(\n  options: ClientOptions,\n  event: Event,\n  hint: EventHint,\n  scope?: Scope,\n  client?: Client,\n  isolationScope?: Scope,\n): PromiseLike<Event | null> {\n  const { normalizeDepth = 3, normalizeMaxBreadth = 1_000 } = options;\n  const prepared: Event = {\n    ...event,\n    event_id: event.event_id || hint.event_id || uuid4(),\n    timestamp: event.timestamp || dateTimestampInSeconds(),\n  };\n  const integrations = hint.integrations || options.integrations.map(i => i.name);\n\n  applyClientOptions(prepared, options);\n  applyIntegrationsMetadata(prepared, integrations);\n\n  if (client) {\n    client.emit('applyFrameMetadata', event);\n  }\n\n  // Only put debug IDs onto frames for error events.\n  if (event.type === undefined) {\n    applyDebugIds(prepared, options.stackParser);\n  }\n\n  // If we have scope given to us, use it as the base for further modifications.\n  // This allows us to prevent unnecessary copying of data if `captureContext` is not provided.\n  const finalScope = getFinalScope(scope, hint.captureContext);\n\n  if (hint.mechanism) {\n    addExceptionMechanismToCapturedException(prepared, hint.mechanism);\n  }\n\n  const clientEventProcessors = client ? client.getEventProcessors() : [];\n\n  // This should be the last thing called, since we want that\n  // {@link Scope.addEventProcessor} gets the finished prepared event.\n  // Merge scope data together\n  const data = getCombinedScopeData(isolationScope, finalScope);\n\n  const attachments = [...(hint.attachments || []), ...data.attachments];\n  if (attachments.length) {\n    hint.attachments = attachments;\n  }\n\n  applyScopeDataToEvent(prepared, data);\n  const span = getActiveSpan(finalScope);\n  if (span) {\n    applySpanToEvent(prepared, span);\n  }\n\n  // After the active span, so an error that escaped a span is attributed to that span rather than\n  // to whichever one happened to be active at capture time. Done here rather than once the event is\n  // assembled so that event processors and the `postprocessEvent` hook see the corrected span id.\n  applyEscapedErrorSpanToEvent(prepared, hint, finalScope);\n\n  const eventProcessors = [\n    ...clientEventProcessors,\n    // Run scope event processors _after_ all other processors\n    ...data.eventProcessors,\n  ];\n\n  // Skip event processors for internal exceptions to prevent recursion\n  // oxlint-disable-next-line typescript/prefer-optional-chain\n  const isInternalException = hint.data && (hint.data as { __sentry__: boolean }).__sentry__ === true;\n  const result: PromiseLike<Event | null> = isInternalException\n    ? resolvedSyncPromise(prepared)\n    : notifyEventProcessors(eventProcessors, prepared, hint, 0, reason => {\n        if (!client) {\n          return;\n        }\n\n        client.recordDroppedEvent(reason, getDataCategoryByType(event.type));\n        if (event.type === 'transaction') {\n          client.recordDroppedEvent(reason, 'span', 1 + (event.spans || []).length);\n        }\n      });\n\n  return result.then(evt => {\n    if (!evt) {\n      return null;\n    }\n\n    // We apply the debug_meta field only after all event processors have ran, so that if any event processors modified\n    // file names (e.g.the RewriteFrames integration) the filename -> debug ID relationship isn't destroyed.\n    // This should not cause any PII issues, since we're only moving data that is already on the event and not adding\n    // any new data\n    applyDebugMeta(evt);\n\n    if (typeof normalizeDepth === 'number' && normalizeDepth > 0) {\n      return normalizeEvent(evt, normalizeDepth, normalizeMaxBreadth);\n    }\n    return evt;\n  });\n}\n\n/**\n * Enhances event using the client configuration.\n * It takes care of all \"static\" values like environment, release and `dist`,\n * as well as truncating overly long values.\n *\n * Only exported for tests.\n *\n * @param event event instance to be enhanced\n */\nexport function applyClientOptions(event: Event, options: ClientOptions): void {\n  const { environment, release, dist, maxValueLength } = options;\n\n  // empty strings do not make sense for environment, release, and dist\n  // so we handle them the same as if they were not provided\n  event.environment = event.environment || environment || DEFAULT_ENVIRONMENT;\n\n  if (!event.release && release) {\n    event.release = release;\n  }\n\n  if (!event.dist && dist) {\n    event.dist = dist;\n  }\n\n  const request = event.request;\n  if (request?.url && maxValueLength) {\n    request.url = truncate(request.url, maxValueLength);\n  }\n\n  if (maxValueLength) {\n    event.exception?.values?.forEach(exception => {\n      if (exception.value) {\n        // Truncates error messages\n        exception.value = truncate(exception.value, maxValueLength);\n      }\n    });\n  }\n}\n\n/**\n * Puts debug IDs into the stack frames of an error event.\n */\nexport function applyDebugIds(event: Event, stackParser: StackParser): void {\n  // Build a map of filename -> debug_id\n  const filenameDebugIdMap = getFilenameToDebugIdMap(stackParser);\n\n  event.exception?.values?.forEach(exception => {\n    exception.stacktrace?.frames?.forEach(frame => {\n      if (frame.filename) {\n        frame.debug_id = filenameDebugIdMap[frame.filename];\n      }\n    });\n  });\n}\n\n/**\n * Moves debug IDs from the stack frames of an error event into the debug_meta field.\n */\nexport function applyDebugMeta(event: Event): void {\n  // Extract debug IDs and filenames from the stack frames on the event.\n  const filenameDebugIdMap: Record<string, string> = {};\n  event.exception?.values?.forEach(exception => {\n    exception.stacktrace?.frames?.forEach(frame => {\n      if (frame.debug_id) {\n        if (frame.abs_path) {\n          filenameDebugIdMap[frame.abs_path] = frame.debug_id;\n        } else if (frame.filename) {\n          filenameDebugIdMap[frame.filename] = frame.debug_id;\n        }\n        delete frame.debug_id;\n      }\n    });\n  });\n\n  if (Object.keys(filenameDebugIdMap).length === 0) {\n    return;\n  }\n\n  // Fill debug_meta information\n  event.debug_meta = event.debug_meta || {};\n  event.debug_meta.images = event.debug_meta.images || [];\n  const images = event.debug_meta.images;\n  Object.entries(filenameDebugIdMap).forEach(([filename, debug_id]) => {\n    images.push({\n      type: 'sourcemap',\n      code_file: filename,\n      debug_id,\n    });\n  });\n}\n\n/**\n * This function adds all used integrations to the SDK info in the event.\n * @param event The event that will be filled with all integrations.\n */\nfunction applyIntegrationsMetadata(event: Event, integrationNames: string[]): void {\n  if (integrationNames.length > 0) {\n    event.sdk = event.sdk || {};\n    event.sdk.integrations = [...(event.sdk.integrations || []), ...integrationNames];\n  }\n}\n\n/**\n * Applies `normalize` function on necessary `Event` attributes to make them safe for serialization.\n * Normalized keys:\n * - `breadcrumbs.data`\n * - `user`\n * - `contexts`\n * - `extra`\n * @param event Event\n * @returns Normalized event\n */\nfunction normalizeEvent(event: Event | null, depth: number, maxBreadth: number): Event | null {\n  if (!event) {\n    return null;\n  }\n\n  const normalized: Event = {\n    ...event,\n    ...(event.breadcrumbs && {\n      breadcrumbs: event.breadcrumbs.map(b => ({\n        ...b,\n        ...(b.data && {\n          data: normalize(b.data, depth, maxBreadth),\n        }),\n      })),\n    }),\n    ...(event.user && {\n      user: normalize(event.user, depth, maxBreadth),\n    }),\n    ...(event.contexts && {\n      contexts: normalize(event.contexts, depth, maxBreadth),\n    }),\n    ...(event.extra && {\n      extra: normalize(event.extra, depth, maxBreadth),\n    }),\n  };\n\n  // event.contexts.trace stores information about a Transaction. Similarly,\n  // event.spans[] stores information about child Spans. Given that a\n  // Transaction is conceptually a Span, normalization should apply to both\n  // Transactions and Spans consistently.\n  // For now the decision is to skip normalization of Transactions and Spans,\n  // so this block overwrites the normalized event to add back the original\n  // Transaction information prior to normalization.\n  if (event.contexts?.trace && normalized.contexts) {\n    normalized.contexts.trace = event.contexts.trace;\n\n    // event.contexts.trace.data may contain circular/dangerous data so we need to normalize it\n    if (event.contexts.trace.data) {\n      normalized.contexts.trace.data = normalize(event.contexts.trace.data, depth, maxBreadth);\n    }\n  }\n\n  // event.spans[].data may contain circular/dangerous data so we need to normalize it\n  if (event.spans) {\n    normalized.spans = event.spans.map(span => {\n      return {\n        ...span,\n        ...(span.data && {\n          data: normalize(span.data, depth, maxBreadth),\n        }),\n      };\n    });\n  }\n\n  // event.contexts.flags (FeatureFlagContext) stores context for our feature\n  // flag integrations. It has a greater nesting depth than our other typed\n  // Contexts, so we re-normalize with a fixed depth of 3 here. We do not want\n  // to skip this in case of conflicting, user-provided context.\n  if (event.contexts?.flags && normalized.contexts) {\n    normalized.contexts.flags = normalize(event.contexts.flags, 3, maxBreadth);\n  }\n\n  return normalized;\n}\n\nfunction getFinalScope(scope: Scope | undefined, captureContext: CaptureContext | undefined): Scope | undefined {\n  if (!captureContext) {\n    return scope;\n  }\n\n  const finalScope = scope ? scope.clone() : new Scope();\n  finalScope.update(captureContext);\n  return finalScope;\n}\n\n/**\n * Parse either an `EventHint` directly, or convert a `CaptureContext` to an `EventHint`.\n * This is used to allow to update method signatures that used to accept a `CaptureContext` but should now accept an `EventHint`.\n */\nexport function parseEventHintOrCaptureContext(\n  hint: ExclusiveEventHintOrCaptureContext | undefined,\n): EventHint | undefined {\n  if (!hint) {\n    return undefined;\n  }\n\n  // If you pass a Scope or `() => Scope` as CaptureContext, we just return this as captureContext\n  if (hintIsScopeOrFunction(hint)) {\n    return { captureContext: hint };\n  }\n\n  if (hintIsScopeContext(hint)) {\n    return {\n      captureContext: hint,\n    };\n  }\n\n  return hint;\n}\n\nfunction hintIsScopeOrFunction(hint: CaptureContext | EventHint): hint is Scope | ((scope: Scope) => Scope) {\n  return hint instanceof Scope || typeof hint === 'function';\n}\n\ntype ScopeContextProperty = keyof ScopeContext;\nconst captureContextKeys: readonly ScopeContextProperty[] = [\n  'user',\n  'level',\n  'extra',\n  'contexts',\n  'tags',\n  'fingerprint',\n  'propagationContext',\n] as const;\n\nfunction hintIsScopeContext(hint: Partial<ScopeContext> | EventHint): hint is Partial<ScopeContext> {\n  return Object.keys(hint).some(key => captureContextKeys.includes(key as ScopeContextProperty));\n}\n","import type { AttributeObject, RawAttribute, RawAttributes } from './attributes';\nimport { getClient, getCurrentScope, getIsolationScope } from './currentScopes';\nimport { DEBUG_BUILD } from './debug-build';\nimport type { CaptureContext } from './scope';\nimport { closeSession, makeSession, updateSession } from './session';\nimport type { Event, EventHint } from './types/event';\nimport type { EventProcessor } from './types/eventprocessor';\nimport type { Extra, Extras } from './types/extra';\nimport type { Primitive } from './types/misc';\nimport type { Session, SessionContext } from './types/session';\nimport type { SeverityLevel } from './types/severity';\nimport type { User } from './types/user';\nimport { debug } from './utils/debug-logger';\nimport type { ExclusiveEventHintOrCaptureContext } from './utils/prepareEvent';\nimport { parseEventHintOrCaptureContext } from './utils/prepareEvent';\nimport { getCombinedScopeData } from './utils/scopeData';\nimport { GLOBAL_OBJ } from './utils/worldwide';\n\n/**\n * Captures an exception event and sends it to Sentry.\n *\n * @param exception The exception to capture.\n * @param hint Optional additional data to attach to the Sentry event.\n * @returns the id of the captured Sentry event.\n */\nexport function captureException(exception: unknown, hint?: ExclusiveEventHintOrCaptureContext): string {\n  return getCurrentScope().captureException(exception, parseEventHintOrCaptureContext(hint));\n}\n\n/**\n * Captures a message event and sends it to Sentry.\n *\n * @param message The message to send to Sentry.\n * @param captureContext Define the level of the message or pass in additional data to attach to the message.\n * @returns the id of the captured message.\n */\nexport function captureMessage(message: string, captureContext?: CaptureContext | SeverityLevel): string {\n  // This is necessary to provide explicit scopes upgrade, without changing the original\n  // arity of the `captureMessage(message, level)` method.\n  const level = typeof captureContext === 'string' ? captureContext : undefined;\n  const hint = typeof captureContext !== 'string' ? { captureContext } : undefined;\n  return getCurrentScope().captureMessage(message, level, hint);\n}\n\n/**\n * Captures a manually created event and sends it to Sentry.\n *\n * @param event The event to send to Sentry.\n * @param hint Optional additional data to attach to the Sentry event.\n * @returns the id of the captured event.\n */\nexport function captureEvent(event: Event, hint?: EventHint): string {\n  return getCurrentScope().captureEvent(event, hint);\n}\n\n/**\n * Sets context data with the given name.\n * @param name of the context\n * @param context Any kind of data. This data will be normalized.\n */\nexport function setContext(name: string, context: { [key: string]: unknown } | null): void {\n  getIsolationScope().setContext(name, context);\n}\n\n/**\n * Set an object that will be merged sent as extra data with the event.\n * @param extras Extras object to merge into current context.\n */\nexport function setExtras(extras: Extras): void {\n  getIsolationScope().setExtras(extras);\n}\n\n/**\n * Set key:value that will be sent as extra data with the event.\n * @param key String of extra\n * @param extra Any kind of data. This data will be normalized.\n */\nexport function setExtra(key: string, extra: Extra): void {\n  getIsolationScope().setExtra(key, extra);\n}\n\n/**\n * Set an object that will be merged sent as tags data with the event.\n * @param tags Tags context object to merge into current context.\n */\nexport function setTags(tags: { [key: string]: Primitive }): void {\n  getIsolationScope().setTags(tags);\n}\n\n/**\n * Set key:value that will be sent as tags data with the event.\n *\n * Can also be used to unset a tag, by passing `undefined`.\n *\n * @param key String key of tag\n * @param value Value of tag\n */\nexport function setTag(key: string, value: Primitive): void {\n  getIsolationScope().setTag(key, value);\n}\n\n/**\n * Sets attributes on the isolation scope.\n *\n * These attributes are applied to logs, metrics and streamed spans.\n *\n * Supported attribute value types are `string`, `number`, `boolean`, `string[]`, `number[]` and `boolean[]`.\n *\n * @param attributes - The attributes to set on the scope, as key-value pairs.\n *\n * @example\n * ```typescript\n * Sentry.setAttributes({\n *   is_admin: true,\n *   payment_selection: 'credit_card',\n *   render_duration: 150,\n * });\n * ```\n */\nexport function setAttributes<T extends Record<string, unknown>>(attributes: RawAttributes<T>): void {\n  getIsolationScope().setAttributes(attributes);\n}\n\n/**\n * Sets an attribute on the isolation scope.\n *\n * These attributes are applied to logs, metrics and streamed spans.\n *\n * Supported attribute value types are `string`, `number`, `boolean`, `string[]`, `number[]` and `boolean[]`.\n *\n * @param key - The attribute key.\n * @param value - The attribute value.\n *\n * @example\n * ```typescript\n * Sentry.setAttribute('is_admin', true);\n * Sentry.setAttribute('render_duration', 150);\n * ```\n */\nexport function setAttribute<\n  // oxlint-disable-next-line typescript-eslint/no-explicit-any\n  T extends (RawAttribute<T> extends { value: any } | { unit: any } ? AttributeObject : unknown),\n>(key: string, value: RawAttribute<T>): void {\n  getIsolationScope().setAttribute(key, value);\n}\n\n/**\n * Updates user context information for future events.\n *\n * @param user User context object to be set in the current context. Pass `null` to unset the user.\n */\nexport function setUser(user: User | null): void {\n  getIsolationScope().setUser(user);\n}\n\n/**\n * Sets the conversation ID for the current isolation scope.\n *\n * @param conversationId The conversation ID to set. Pass `null` or `undefined` to unset the conversation ID.\n */\nexport function setConversationId(conversationId: string | null | undefined): void {\n  getIsolationScope().setConversationId(conversationId);\n}\n\n/**\n * The last error event id of the isolation scope.\n *\n * Warning: This function really returns the last recorded error event id on the current\n * isolation scope. If you call this function after handling a certain error and another error\n * is captured in between, the last one is returned instead of the one you might expect.\n * Also, ids of events that were never sent to Sentry (for example because\n * they were dropped by sampling or `beforeSend`) could be returned.\n *\n * @returns The last event id of the isolation scope.\n */\nexport function lastEventId(): string | undefined {\n  return getIsolationScope().lastEventId();\n}\n\n/**\n * Call `flush()` on the current client, if there is one. See {@link Client.flush}.\n *\n * @param timeout Maximum time in ms the client should wait to flush its event queue. Omitting this parameter will cause\n * the client to wait until all events are sent before resolving the promise.\n * @returns A promise which resolves to `true` if the queue successfully drains before the timeout, or `false` if it\n * doesn't (or if there's no client defined).\n */\nexport async function flush(timeout?: number): Promise<boolean> {\n  const client = getClient();\n  if (client) {\n    return client.flush(timeout);\n  }\n  DEBUG_BUILD && debug.warn('Cannot flush events. No client defined.');\n  return Promise.resolve(false);\n}\n\n/**\n * Call `close()` on the current client, if there is one, and unbind it from the current scope.\n * See {@link Client.close}.\n *\n * @param timeout Maximum time in ms the client should wait to flush its event queue before shutting down. Omitting this\n * parameter will cause the client to wait until all events are sent before disabling itself.\n * @returns A promise which resolves to `true` if the queue successfully drains before the timeout, or `false` if it\n * doesn't (or if there's no client defined).\n */\nexport async function close(timeout?: number): Promise<boolean> {\n  const scope = getCurrentScope();\n  const client = scope.getClient();\n  if (client) {\n    const result = await client.close(timeout);\n    // Unbind the client, so a later `init()` sets up a new one.\n    if (scope.getClient() === client) {\n      scope.setClient(undefined);\n    }\n    return result;\n  }\n  DEBUG_BUILD && debug.warn('Cannot flush events and disable SDK. No client defined.');\n  return Promise.resolve(false);\n}\n\n/**\n * Returns true if Sentry has been properly initialized.\n */\nexport function isInitialized(): boolean {\n  return !!getClient();\n}\n\n/** If the SDK is initialized & enabled. */\nexport function isEnabled(): boolean {\n  const client = getClient();\n  return client?.getOptions().enabled !== false && !!client?.getTransport();\n}\n\n/**\n * Add an event processor.\n * This will be added to the current isolation scope, ensuring any event that is processed in the current execution\n * context will have the processor applied.\n */\nexport function addEventProcessor(callback: EventProcessor): void {\n  getIsolationScope().addEventProcessor(callback);\n}\n\n/**\n * Start a session on the current isolation scope.\n *\n * @param context (optional) additional properties to be applied to the returned session object\n *\n * @returns the new active session\n */\nexport function startSession(context?: SessionContext): Session {\n  const isolationScope = getIsolationScope();\n\n  const { user } = getCombinedScopeData(isolationScope, getCurrentScope());\n\n  // Will fetch userAgent if called from browser sdk\n  const { userAgent } = GLOBAL_OBJ.navigator || {};\n\n  const session = makeSession({\n    user,\n    ...(userAgent && { userAgent }),\n    ...context,\n  });\n\n  // End existing session if there's one\n  const currentSession = isolationScope.getSession();\n  if (currentSession?.status === 'ok') {\n    updateSession(currentSession, { status: 'exited' });\n  }\n\n  endSession();\n\n  // Afterwards we set the new session on the scope\n  isolationScope.setSession(session);\n\n  return session;\n}\n\n/**\n * End the session on the current isolation scope.\n */\nexport function endSession(): void {\n  const isolationScope = getIsolationScope();\n  const currentScope = getCurrentScope();\n\n  const session = currentScope.getSession() || isolationScope.getSession();\n  if (session) {\n    closeSession(session);\n  }\n  _sendSessionUpdate();\n\n  // the session is over; take it off of the scope\n  isolationScope.setSession();\n}\n\n/**\n * Sends the current Session on the scope\n */\nfunction _sendSessionUpdate(): void {\n  const isolationScope = getIsolationScope();\n  const client = getClient();\n  const session = isolationScope.getSession();\n  if (session && client) {\n    client.captureSession(session);\n  }\n}\n\n/**\n * Sends the current session on the scope to Sentry\n *\n * @param end If set the session will be marked as exited and removed from the scope.\n *            Defaults to `false`.\n */\nexport function captureSession(end: boolean = false): void {\n  // both send the update and pull the session from the scope\n  if (end) {\n    endSession();\n    return;\n  }\n\n  // only send the update\n  _sendSessionUpdate();\n}\n","import { setTag } from '@sentry/browser';\n\n/**\n * Annotates errors that occur after the page was revived from the back/forward cache with a tag\n * that indicates the bfcache was used.\n *\n * A revived page resumes a frozen in-memory snapshot without re-running any startup code, so page\n * state can be stale in ways that never occur on a fresh load. Tagging every event captured\n * afterward lets us see whether a class of errors correlates with these revivals.\n *\n * A page can be restored from cache multiple times during its lifetime. However, the class of\n * errors we are interested in clarifying generally do not vary per revival. The important\n * distinguishing characteristic is whether any revival has occurred. In other words, if revival\n * occurred at least once, that is significant.\n *\n * Calling setTag before init is fine. Within Sentry's internals, all that setTag does is write the\n * tag to the isolation scope. The scope is always available, before or after init, and even when\n * init never runs.\n *\n * Regarding setting a tag before init, there is a second nuance here that is confusing. The\n * ordering concern is actually irrelevant, because this is a pageshow event. When a persistent page\n * show event fires, it is occurring after the page has loaded, and after Sentry was initialized. So\n * even though it seems like this could plausibly run before init, it never will.\n *\n * @see docs/bfcache.md\n */\nfunction onPageShow(event: PageTransitionEvent) {\n  if (event.persisted) {\n    setTag('bfcache_restored', true);\n  }\n}\n\naddEventListener('pageshow', onPageShow);\n","import { setContext } from '@sentry/browser';\n\n// Attaches the original-load anchor captured by the loader snippet to every event, so the age of\n// the page at the time of an error can be derived against the event's own timestamp.\n//\n// The server render epoch rides along with it. It is in seconds where the script epoch is in\n// milliseconds. A wide gap between the two means the HTML sat in a cache somewhere before its\n// scripts ran.\n//\n// Calling setContext before init is fine. Like setUser and setTag, all it does within Sentry's\n// internals is write to the isolation scope. The scope is always available, before or after init,\n// and init binds a client to it without clearing what is already there. Running this at module load\n// therefore places the context on the scope ahead of the queued-event replay in the init sequence,\n// so those replayed events carry it too.\n\nsetContext('page', {\n  script_epoch: sentry_embed.script_epoch,\n  render_epoch: sentry_embed.render_epoch\n});\n","import { setContext } from '@sentry/browser';\n\n// Attaches a few of the values Shopify sends in the Server-Timing header of the response that\n// carried the page. The Performance API is the only way for script to see that header, and only the\n// navigation entry carries these, so subresources are not consulted.\n//\n// Shopify puts what looks like its visitor id under _y and its session id under _s. The request id\n// ties an event back to the request that served the page. Each value is keyed by its Server-Timing\n// name as is, and an entry that is absent leaves its property undefined.\n//\n// Calling setContext before init is fine, and this runs at module load ahead of init, so an error\n// escaping here would stop Sentry from ever initializing. The whole thing is wrapped so the worst\n// case is a missing context.\n\ntry {\n  const navigation = <PerformanceNavigationTiming>performance.getEntriesByType('navigation')[0];\n\n  const values = {\n    _s: <string>undefined,\n    _y: <string>undefined,\n    requestID: <string>undefined\n  };\n\n  for (const timing of navigation?.serverTiming ?? []) {\n    if (timing.name === '_y') {\n      values._y = timing.description;\n    } else if (timing.name === '_s') {\n      values._s = timing.description;\n    } else if (timing.name === 'requestID') {\n      values.requestID = timing.description;\n    }\n  }\n\n  setContext('server_timing', values);\n} catch (error) {\n  // ignore\n}\n","import { setContext } from '@sentry/browser';\n\n// Attaches some Shopify properties to every event. None of them change over the life of the page,\n// so they are read once and written to the scope rather than read again on every event.\n//\n// Calling setContext before init is fine. Like setUser and setTag, all it does within Sentry's\n// internals is write to the isolation scope, so the queued-event replay in the init sequence picks\n// this up too.\n//\n// This runs at module load ahead of init, so an error escaping here would stop Sentry from ever\n// initializing. The whole thing is wrapped so the worst case is a missing context.\n\ntry {\n  // Sanity check the Shopify global. Error-reporting code runs in corrupted and partially-loaded\n  // environments where a third-party script could clobber the global, so verify it is genuinely an\n  // object before reading from it. While our convention is to write code that assumes the Shopify\n  // global is correctly initialized, the paranoia is justified here.\n\n  if (typeof Shopify === 'object' && Shopify !== null) {\n    // While the base Shopify object is correctly declared and initialized, its properties might not\n    // be. We are still extra cautious here.\n\n    // Upstream sometimes inserts line breaks into theme name. This trims to guard against that.\n\n    setContext('shopify_theme', {\n      country: Shopify.country,\n      currency: Shopify.currency?.active,\n      locale: Shopify.locale,\n      market_handle: sentry_embed.market,\n      theme_id: Shopify.theme?.id,\n      theme_name: Shopify.theme?.name?.trim(),\n      theme_role: Shopify.theme?.role\n    });\n  }\n} catch (error) {\n  // ignore\n}\n","import { captureException, flush } from '@sentry/browser';\n\n/**\n * Captures a throwaway exception and flushes it to Sentry, returning the event id. This is the CLI\n * entry point exposed on the snippet's global so a developer can confirm end to end that reporting\n * is wired up and delivering. When no message is supplied a random suffix is appended so repeated\n * invocations do not group into a single issue.\n */\nasync function test(message?: string) {\n  const alphabet = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';\n  let randomString = '';\n  for (let i = 0; i < 10; i++) {\n    randomString += alphabet.charAt(Math.floor(Math.random() * alphabet.length));\n  }\n\n  const errorMessage = message || ('sentry test capture exception ' + randomString);\n  const eventId = captureException(new Error(errorMessage));\n  await flush();\n  return eventId;\n}\n\nsentry_embed.test = test;\n","import { setTag } from '@sentry/browser';\n\n// Tags whether the page is the top frame, so events from a page framed by some other site stand\n// out. The theme editor frames the storefront too, so its events always carry false.\n//\n// Accessing top can throw, and a throw counts as false.\n\nlet isTopFrame = false;\ntry {\n  isTopFrame = top === window;\n} catch (error) {\n  // ignore\n}\n\nsetTag('top_frame', isTopFrame);\n","import { isNodeEnv } from './node';\nimport { GLOBAL_OBJ } from './worldwide';\n\n/**\n * Returns true if we are in the browser.\n */\nexport function isBrowser(): boolean {\n  // eslint-disable-next-line no-restricted-globals\n  return typeof window !== 'undefined' && (!isNodeEnv() || isElectronNodeRenderer());\n}\n\ntype ElectronProcess = { type?: string };\n\n// Electron renderers with nodeIntegration enabled are detected as Node.js so we specifically test for them\nfunction isElectronNodeRenderer(): boolean {\n  const process = (GLOBAL_OBJ as typeof GLOBAL_OBJ & { process?: ElectronProcess }).process;\n  return process?.type === 'renderer';\n}\n","import { setTag } from '@sentry/browser';\n\n// Tags events coming from an automated browser.\n\nif (navigator.webdriver === true) {\n  setTag('webdriver', true);\n}\n","import { DEBUG_BUILD } from '../debug-build';\nimport { debug } from './debug-logger';\nimport { GLOBAL_OBJ } from './worldwide';\n\nconst WINDOW = GLOBAL_OBJ as unknown as Window;\n\ndeclare const EdgeRuntime: string | undefined;\n\n/**\n * Tells whether current environment supports ErrorEvent objects\n * {@link supportsErrorEvent}.\n *\n * @returns Answer to the given question.\n */\nexport function supportsErrorEvent(): boolean {\n  try {\n    new ErrorEvent('');\n    return true;\n  } catch {\n    return false;\n  }\n}\n\n/**\n * Tells whether current environment supports DOMException objects\n * {@link supportsDOMException}.\n *\n * @returns Answer to the given question.\n */\nexport function supportsDOMException(): boolean {\n  try {\n    new DOMException('');\n    return true;\n  } catch {\n    return false;\n  }\n}\n\n/**\n * Tells whether current environment supports Fetch API\n * {@link supportsFetch}.\n *\n * @returns Answer to the given question.\n * @deprecated This is no longer used and will be removed in a future major version.\n */\nexport const supportsFetch = _isFetchSupported;\n\nfunction _isFetchSupported(): boolean {\n  if (!('fetch' in WINDOW)) {\n    return false;\n  }\n\n  try {\n    new Headers();\n    // Deno requires a valid URL so '' cannot be used as an argument\n    new Request('data:,');\n    new Response();\n    return true;\n  } catch {\n    return false;\n  }\n}\n\n/**\n * isNative checks if the given function is a native implementation\n */\n// eslint-disable-next-line @typescript-eslint/ban-types\nexport function isNativeFunction(func: Function): boolean {\n  return func && /^function\\s+\\w+\\(\\)\\s+\\{\\s+\\[native code\\]\\s+\\}$/.test(func.toString());\n}\n\n/**\n * Tells whether current environment supports Fetch API natively\n * {@link supportsNativeFetch}.\n *\n * @returns true if `window.fetch` is natively implemented, false otherwise\n */\nexport function supportsNativeFetch(): boolean {\n  if (typeof EdgeRuntime === 'string') {\n    return true;\n  }\n\n  if (!_isFetchSupported()) {\n    return false;\n  }\n\n  // Fast path to avoid DOM I/O\n  // eslint-disable-next-line @typescript-eslint/unbound-method\n  if (isNativeFunction(WINDOW.fetch)) {\n    return true;\n  }\n\n  // window.fetch is implemented, but is polyfilled or already wrapped (e.g: by a chrome extension)\n  // so create a \"pure\" iframe to see if that has native fetch\n  let result = false;\n  const doc = WINDOW.document;\n  // eslint-disable-next-line typescript/no-deprecated\n  if (doc && typeof (doc.createElement as unknown) === 'function') {\n    try {\n      const sandbox = doc.createElement('iframe');\n      sandbox.hidden = true;\n      doc.head.appendChild(sandbox);\n      if (sandbox.contentWindow?.fetch) {\n        // eslint-disable-next-line @typescript-eslint/unbound-method\n        result = isNativeFunction(sandbox.contentWindow.fetch);\n      }\n      doc.head.removeChild(sandbox);\n    } catch (err) {\n      DEBUG_BUILD && debug.warn('Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ', err);\n    }\n  }\n\n  return result;\n}\n\n/**\n * Tells whether current environment supports Referrer Policy API\n * {@link supportsReferrerPolicy}.\n *\n * @returns Answer to the given question.\n * @deprecated This is no longer used and will be removed in a future major version.\n */\nexport function supportsReferrerPolicy(): boolean {\n  // Despite all stars in the sky saying that Edge supports old draft syntax, aka 'never', 'always', 'origin' and 'default'\n  // (see https://caniuse.com/#feat=referrer-policy),\n  // it doesn't. And it throws an exception instead of ignoring this parameter...\n  // REF: https://github.com/getsentry/raven-js/issues/1233\n\n  if (!_isFetchSupported()) {\n    return false;\n  }\n\n  try {\n    new Request('_', {\n      referrerPolicy: 'origin' as ReferrerPolicy,\n    });\n    return true;\n  } catch {\n    return false;\n  }\n}\n","import { DEBUG_BUILD } from '../debug-build';\nimport { debug } from '../utils/debug-logger';\nimport { getFunctionName } from '../utils/stacktrace';\n\nexport type InstrumentHandlerType =\n  | 'console'\n  | 'dom'\n  | 'fetch'\n  | 'fetch-body-resolved'\n  | 'history'\n  | 'xhr'\n  | 'error'\n  | 'unhandledrejection';\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport type InstrumentHandlerCallback = (data: any) => void;\n\n// We keep the handlers globally\nconst handlers: { [key in InstrumentHandlerType]?: InstrumentHandlerCallback[] } = {};\nconst instrumented: { [key in InstrumentHandlerType]?: boolean } = {};\n\n/** Add a handler function. Returns a function to remove the handler. */\nexport function addHandler(type: InstrumentHandlerType, handler: InstrumentHandlerCallback): () => void {\n  handlers[type] = handlers[type] || [];\n  handlers[type].push(handler);\n\n  return () => {\n    const typeHandlers = handlers[type];\n    if (typeHandlers) {\n      const index = typeHandlers.indexOf(handler);\n      if (index !== -1) {\n        typeHandlers.splice(index, 1);\n      }\n    }\n  };\n}\n\n/**\n * Reset all instrumentation handlers.\n * This can be used by tests to ensure we have a clean slate of instrumentation handlers.\n */\nexport function resetInstrumentationHandlers(): void {\n  Object.keys(handlers).forEach(key => {\n    handlers[key as InstrumentHandlerType] = undefined;\n  });\n}\n\n/** Maybe run an instrumentation function, unless it was already called. */\nexport function maybeInstrument(type: InstrumentHandlerType, instrumentFn: () => void): void {\n  if (!instrumented[type]) {\n    instrumented[type] = true;\n    try {\n      instrumentFn();\n    } catch (e) {\n      DEBUG_BUILD && debug.error(`Error while instrumenting ${type}`, e);\n    }\n  }\n}\n\n/** Trigger handlers for a given instrumentation type. */\nexport function triggerHandlers(type: InstrumentHandlerType, data: unknown): void {\n  const typeHandlers = type && handlers[type];\n  if (!typeHandlers) {\n    return;\n  }\n\n  for (const handler of typeHandlers) {\n    try {\n      handler(data);\n    } catch (e) {\n      DEBUG_BUILD &&\n        debug.error(\n          `Error while triggering instrumentation handler.\\nType: ${type}\\nName: ${getFunctionName(handler)}\\nError:`,\n          e,\n        );\n    }\n  }\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { getClient } from '../currentScopes';\nimport type { HandlerDataFetch } from '../types/instrument';\nimport type { WebFetchHeaders } from '../types/webfetchapi';\nimport { isError, isObjectLike, isRequest } from '../utils/is';\nimport { isBrowser } from '../utils/isBrowser';\nimport { addNonEnumerableProperty, fill } from '../utils/object';\nimport { supportsNativeFetch } from '../utils/supports';\nimport { timestampInSeconds } from '../utils/time';\nimport { GLOBAL_OBJ } from '../utils/worldwide';\nimport { addHandler, maybeInstrument, triggerHandlers } from './handlers';\n\ntype FetchResource = string | { toString(): string } | { url: string };\n\n/**\n * Add an instrumentation handler for when a fetch request happens.\n * The handler function is called once when the request starts and once when it ends,\n * which can be identified by checking if it has an `endTimestamp`.\n * Returns a function to remove the handler.\n *\n * Use at your own risk, this might break without changelog notice, only used internally.\n * @hidden\n */\nexport function addFetchInstrumentationHandler(handler: (data: HandlerDataFetch) => void): () => void {\n  const type = 'fetch';\n  const removeHandler = addHandler(type, handler);\n  maybeInstrument(type, () => instrumentFetch());\n  return removeHandler;\n}\n\n/**\n * Add an instrumentation handler for long-lived fetch requests, like consuming server-sent events (SSE) via fetch.\n * The handler will resolve the request body and emit the actual `endTimestamp`, so that the\n * span can be updated accordingly.\n * Returns a function to remove the handler.\n *\n * Only used internally\n * @hidden\n */\nexport function addFetchEndInstrumentationHandler(handler: (data: HandlerDataFetch) => void): () => void {\n  const type = 'fetch-body-resolved';\n  const removeHandler = addHandler(type, handler);\n  maybeInstrument(type, () => instrumentFetch(streamHandler));\n  return removeHandler;\n}\n\nfunction instrumentFetch(onFetchResolved?: (response: Response) => void): void {\n  // The native-fetch check is only meaningful in the browser: it probes for `[native code]` and\n  // falls back to an iframe DOM check to detect a polyfilled/wrapped `fetch` (which we don't want to\n  // double-instrument alongside XHR). Outside the browser there is no DOM, and `fetch` may be\n  // legitimately wrapped by the host (e.g. Next.js on Bun), so we always patch the global there.\n  if (isBrowser() && !supportsNativeFetch()) {\n    return;\n  }\n\n  // We wrap `fetch` in a `Proxy` rather than a plain closure so that non-standard own properties some\n  // runtimes hang off the global `fetch` (e.g. Bun's `fetch.preconnect`) keep working - property access\n  // and `toString()` transparently forward to the native implementation.\n  fill(GLOBAL_OBJ, 'fetch', function (originalFetch: (...args: any[]) => Promise<Response>): unknown {\n    return new Proxy(originalFetch, {\n      apply(target, _thisArg, args: any[]): Promise<Response> {\n        // We capture the error right here and not in the Promise error callback because Safari (and probably other\n        // browsers too) will wipe the stack trace up to this point, only leaving us with this file which is useless.\n\n        // NOTE: If you are a Sentry user, and you are seeing this stack frame,\n        //       it means the error, that was caused by your fetch call did not\n        //       have a stack trace, so the SDK backfilled the stack trace so\n        //       you can see which fetch call failed.\n        const virtualError = new Error();\n\n        const { method, url } = parseFetchArgs(args);\n        const handlerData: HandlerDataFetch = {\n          args,\n          fetchData: {\n            method,\n            url,\n          },\n          startTimestamp: timestampInSeconds() * 1000,\n          // // Adding the error to be able to fingerprint the failed fetch event in HttpClient instrumentation\n          virtualError,\n          headers: getHeadersFromFetchArgs(args),\n        };\n\n        // if there is no callback, fetch is instrumented directly\n        if (!onFetchResolved) {\n          triggerHandlers('fetch', {\n            ...handlerData,\n          });\n        }\n\n        return Reflect.apply(target, GLOBAL_OBJ, args).then(\n          async (response: Response) => {\n            if (onFetchResolved) {\n              onFetchResolved(response);\n            } else {\n              triggerHandlers('fetch', {\n                ...handlerData,\n                endTimestamp: timestampInSeconds() * 1000,\n                response,\n              });\n            }\n\n            return response;\n          },\n          (error: Error) => {\n            triggerHandlers('fetch', {\n              ...handlerData,\n              endTimestamp: timestampInSeconds() * 1000,\n              error,\n            });\n\n            if (isError(error) && error.stack === undefined) {\n              // NOTE: If you are a Sentry user, and you are seeing this stack frame,\n              //       it means the error, that was caused by your fetch call did not\n              //       have a stack trace, so the SDK backfilled the stack trace so\n              //       you can see which fetch call failed.\n              error.stack = virtualError.stack;\n              addNonEnumerableProperty(error, 'framesToPop', 1);\n            }\n\n            // We enhance fetch error messages with hostname information based on the configuration.\n            // Possible messages we handle here:\n            // * \"Failed to fetch\" (chromium)\n            // * \"Load failed\" (webkit)\n            // * \"NetworkError when attempting to fetch resource.\" (firefox)\n            const client = getClient();\n            const enhanceOption = client?.getOptions().enhanceFetchErrorMessages ?? 'always';\n            const shouldEnhance = enhanceOption !== false;\n\n            if (\n              shouldEnhance &&\n              isError(error) &&\n              error.name === 'TypeError' &&\n              (error.message === 'Failed to fetch' ||\n                error.message === 'Load failed' ||\n                error.message === 'NetworkError when attempting to fetch resource.')\n            ) {\n              try {\n                const url = new URL(handlerData.fetchData.url);\n                const hostname = url.host;\n\n                if (enhanceOption === 'always') {\n                  // Modify the error message directly\n                  error.message = `${error.message} (${hostname})`;\n                } else {\n                  // Store hostname as non-enumerable property for Sentry-only enhancement\n                  // This preserves the original error message for third-party packages\n                  addNonEnumerableProperty(error, '__sentry_fetch_url_host__', hostname);\n                }\n              } catch {\n                // ignore it if errors happen here\n              }\n            }\n\n            // NOTE: If you are a Sentry user, and you are seeing this stack frame,\n            //       it means the sentry.javascript SDK caught an error invoking your application code.\n            //       This is expected behavior and NOT indicative of a bug with sentry.javascript.\n            throw error;\n          },\n        );\n      },\n    });\n  });\n}\n\nasync function resolveResponse(res: Response | undefined, onFinishedResolving: () => void): Promise<void> {\n  if (res?.body) {\n    const body = res.body;\n    const responseReader = body.getReader();\n\n    // Define a maximum duration after which we just cancel\n    const maxFetchDurationTimeout = setTimeout(\n      () => {\n        body.cancel().then(null, () => {\n          // noop\n        });\n      },\n      90 * 1000, // 90s\n    );\n\n    let readingActive = true;\n    while (readingActive) {\n      let chunkTimeout;\n      try {\n        // abort reading if read op takes more than 5s\n        chunkTimeout = setTimeout(() => {\n          body.cancel().then(null, () => {\n            // noop on error\n          });\n        }, 5000);\n\n        // This .read() call will reject/throw when we abort due to timeouts through `body.cancel()`\n        const { done } = await responseReader.read();\n\n        clearTimeout(chunkTimeout);\n\n        if (done) {\n          onFinishedResolving();\n          readingActive = false;\n        }\n      } catch {\n        readingActive = false;\n      } finally {\n        clearTimeout(chunkTimeout);\n      }\n    }\n\n    clearTimeout(maxFetchDurationTimeout);\n\n    responseReader.releaseLock();\n    body.cancel().then(null, () => {\n      // noop on error\n    });\n  }\n}\n\nfunction streamHandler(response: Response): void {\n  // clone response for awaiting stream\n  let clonedResponseForResolving: Response;\n  try {\n    clonedResponseForResolving = response.clone();\n  } catch {\n    return;\n  }\n\n  // eslint-disable-next-line @typescript-eslint/no-floating-promises\n  resolveResponse(clonedResponseForResolving, () => {\n    triggerHandlers('fetch-body-resolved', {\n      endTimestamp: timestampInSeconds() * 1000,\n      response,\n    });\n  });\n}\n\nfunction hasProp<T extends string>(obj: unknown, prop: T): obj is Record<string, string> {\n  return isObjectLike(obj) && !!(obj as Record<string, string>)[prop];\n}\n\nfunction getUrlFromResource(resource: FetchResource): string {\n  if (typeof resource === 'string') {\n    return resource;\n  }\n\n  if (!resource) {\n    return '';\n  }\n\n  if (hasProp(resource, 'url')) {\n    return resource.url;\n  }\n\n  if (resource.toString) {\n    return resource.toString();\n  }\n\n  return '';\n}\n\n/**\n * Parses the fetch arguments to find the used Http method and the url of the request.\n * Exported for tests only.\n */\nexport function parseFetchArgs(fetchArgs: unknown[]): { method: string; url: string } {\n  if (fetchArgs.length === 0) {\n    return { method: 'GET', url: '' };\n  }\n\n  if (fetchArgs.length === 2) {\n    const [resource, options] = fetchArgs as [FetchResource, object];\n\n    return {\n      url: getUrlFromResource(resource),\n      method: hasProp(options, 'method')\n        ? String(options.method).toUpperCase()\n        : // Request object as first argument\n          isRequest(resource) && hasProp(resource, 'method')\n          ? String(resource.method).toUpperCase()\n          : 'GET',\n    };\n  }\n\n  const arg = fetchArgs[0];\n  return {\n    url: getUrlFromResource(arg as FetchResource),\n    method: hasProp(arg, 'method') ? String(arg.method).toUpperCase() : 'GET',\n  };\n}\n\nfunction getHeadersFromFetchArgs(fetchArgs: unknown[]): WebFetchHeaders | undefined {\n  const [requestArgument, optionsArgument] = fetchArgs;\n\n  try {\n    if (\n      typeof optionsArgument === 'object' &&\n      optionsArgument !== null &&\n      'headers' in optionsArgument &&\n      optionsArgument.headers\n    ) {\n      return new Headers(optionsArgument.headers as any);\n    }\n\n    if (isRequest(requestArgument)) {\n      return new Headers(requestArgument.headers);\n    }\n  } catch {\n    // noop\n  }\n\n  return;\n}\n","import type { Client } from './client';\nimport { getClient } from './currentScopes';\nimport { DEBUG_BUILD } from './debug-build';\nimport type { Event, EventHint } from './types/event';\nimport type { Integration, IntegrationFn } from './types/integration';\nimport type { CoreOptions } from './types/options';\nimport type { StreamedSpanJSON } from './types/span';\nimport { debug } from './utils/debug-logger';\n\nexport const installedIntegrations: string[] = [];\n\n/** Map of integrations assigned to a client */\nexport type IntegrationIndex = {\n  [key: string]: Integration;\n};\n\ntype IntegrationWithDefaultInstance = Integration & { isDefaultInstance?: true };\n\n/**\n * Remove duplicates from the given array, preferring the last instance of any duplicate. Not guaranteed to\n * preserve the order of integrations in the array.\n *\n * @private\n */\nfunction filterDuplicates(integrations: Integration[]): Integration[] {\n  const integrationsByName: { [key: string]: Integration } = {};\n\n  integrations.forEach((currentInstance: IntegrationWithDefaultInstance) => {\n    const { name } = currentInstance;\n\n    const existingInstance: IntegrationWithDefaultInstance | undefined = integrationsByName[name];\n\n    // We want integrations later in the array to overwrite earlier ones of the same type, except that we never want a\n    // default instance to overwrite an existing user instance\n    if (existingInstance && !existingInstance.isDefaultInstance && currentInstance.isDefaultInstance) {\n      return;\n    }\n\n    integrationsByName[name] = currentInstance;\n  });\n\n  return Object.values(integrationsByName);\n}\n\n/** Gets integrations to install */\nexport function getIntegrationsToSetup(\n  options: Pick<CoreOptions, 'defaultIntegrations' | 'integrations'>,\n): Integration[] {\n  const defaultIntegrations = options.defaultIntegrations || [];\n  const userIntegrations = options.integrations;\n\n  // We flag default instances, so that later we can tell them apart from any user-created instances of the same class\n  defaultIntegrations.forEach((integration: IntegrationWithDefaultInstance) => {\n    integration.isDefaultInstance = true;\n  });\n\n  let integrations: Integration[];\n\n  if (Array.isArray(userIntegrations)) {\n    integrations = [...defaultIntegrations, ...userIntegrations];\n  } else if (typeof userIntegrations === 'function') {\n    const resolvedUserIntegrations = userIntegrations(defaultIntegrations);\n    integrations = Array.isArray(resolvedUserIntegrations) ? resolvedUserIntegrations : [resolvedUserIntegrations];\n  } else {\n    integrations = defaultIntegrations;\n  }\n\n  return filterDuplicates(integrations);\n}\n\n/**\n * Given a list of integration instances this installs them all. When `withDefaults` is set to `true` then all default\n * integrations are added unless they were already provided before.\n * @param integrations array of integration instances\n * @param withDefault should enable default integrations\n */\nexport function setupIntegrations(client: Client, integrations: Integration[]): IntegrationIndex {\n  const integrationIndex: IntegrationIndex = {};\n\n  integrations.forEach((integration: Integration | undefined) => {\n    if (integration?.beforeSetup) {\n      integration.beforeSetup(client);\n    }\n  });\n\n  integrations.forEach((integration: Integration | undefined) => {\n    // guard against empty provided integrations\n    if (integration) {\n      setupIntegration(client, integration, integrationIndex);\n    }\n  });\n\n  return integrationIndex;\n}\n\n/**\n * Execute the `afterAllSetup` hooks of the given integrations.\n */\nexport function afterSetupIntegrations(client: Client, integrations: Integration[]): void {\n  for (const integration of integrations) {\n    // guard against empty provided integrations\n    if (integration?.afterAllSetup) {\n      integration.afterAllSetup(client);\n    }\n  }\n}\n\n/** Setup a single integration.  */\nexport function setupIntegration(client: Client, integration: Integration, integrationIndex: IntegrationIndex): void {\n  if (integrationIndex[integration.name]) {\n    DEBUG_BUILD && debug.log(`Integration skipped because it was already installed: ${integration.name}`);\n    return;\n  }\n  integrationIndex[integration.name] = integration;\n\n  // `setupOnce` is only called the first time\n  if (!installedIntegrations.includes(integration.name) && typeof integration.setupOnce === 'function') {\n    integration.setupOnce();\n    installedIntegrations.push(integration.name);\n  }\n\n  // `setup` is run for each client\n  if (integration.setup && typeof integration.setup === 'function') {\n    integration.setup(client);\n  }\n\n  if (typeof integration.preprocessEvent === 'function') {\n    const callback = integration.preprocessEvent.bind(integration) as typeof integration.preprocessEvent;\n    client.on('preprocessEvent', (event, hint) => callback(event, hint, client));\n  }\n\n  if (typeof integration.processEvent === 'function') {\n    const callback = integration.processEvent.bind(integration) as typeof integration.processEvent;\n\n    const processor = Object.assign((event: Event, hint: EventHint) => callback(event, hint, client), {\n      id: integration.name,\n    });\n\n    client.addEventProcessor(processor);\n  }\n\n  (['processSpan', 'processSegmentSpan'] as const).forEach(hook => {\n    const callback = integration[hook];\n    if (typeof callback === 'function') {\n      // The cast is needed because TS can't resolve overloads when the discriminant is a union type.\n      // Both overloads have the same callback signature so this is safe.\n      client.on(hook as 'processSpan', (span: StreamedSpanJSON) => callback.call(integration, span, client));\n    }\n  });\n\n  DEBUG_BUILD && debug.log(`Integration installed: ${integration.name}`);\n}\n\n/** Add an integration to the current scope's client. */\nexport function addIntegration(integration: Integration): void {\n  const client = getClient();\n\n  if (!client) {\n    DEBUG_BUILD && debug.warn(`Cannot add integration \"${integration.name}\" because no SDK Client is available.`);\n    return;\n  }\n\n  client.addIntegration(integration);\n}\n\n/**\n * Define an integration function that can be used to create an integration instance.\n * Note that this by design hides the implementation details of the integration, as they are considered internal.\n */\nexport function defineIntegration<Fn extends IntegrationFn>(\n  fn: Fn,\n): (...args: Parameters<Fn>) => Integration & { name: ReturnType<Fn>['name'] } {\n  return fn;\n}\n\n// When  extending an integration, we allow other properties to be passed-through\ntype IntegrationWithOtherProperties = Record<string, unknown> & Integration;\ntype ExtendedIntegration<Base extends Integration, Extended extends Partial<IntegrationWithOtherProperties>> = Omit<\n  Base,\n  keyof Extended\n> &\n  Extended;\n\n/**\n * Wrap a parent integration with an extended integration.\n * Any passed integration function will call the parent integration function first, if it exists.\n *\n * Example usage:\n *\n * @example\n * ```typescript\n * const parentIntegration = defineIntegration(() => ({\n *   name: 'ParentIntegration',\n *   setupOnce: () => {\n *     console.log('ParentIntegration setupOnce');\n *   },\n * }));\n *\n * const extendedIntegration = extendIntegration(parentIntegration, {\n *   setupOnce: () => {\n *     console.log('ExtendedIntegration setupOnce');\n *   },\n * });\n * ```\n */\nexport function extendIntegration<Base extends Integration, Extended extends Partial<IntegrationWithOtherProperties>>(\n  integration: Base,\n  extendedIntegration: Extended,\n): ExtendedIntegration<Base, Extended> {\n  // The extension overrides the base for any shared key (object spread + the wrapping below), so the\n  // result type drops the overridden base keys rather than intersecting them — `Base & Extended` would\n  // wrongly intersect shared keys (e.g. a re-typed property collapses to `never`).\n  const wrappedIntegration = {\n    ...integration,\n    ...extendedIntegration,\n  } as ExtendedIntegration<Base, Extended>;\n\n  // Make sure that functions that are extended also call the base functions, if defined\n  // oxlint-disable-next-line guard-for-in\n  for (const key in extendedIntegration) {\n    const baseValue = integration[key as keyof Base];\n    const extendedValue = extendedIntegration[key];\n\n    type ValueType = typeof extendedValue;\n\n    if (typeof baseValue === 'function' && typeof extendedValue === 'function') {\n      const wrappedFunction = new Proxy(baseValue, {\n        apply: (target, thisArg, args) => {\n          Reflect.apply(target, thisArg, args);\n          return Reflect.apply(extendedValue, thisArg, args);\n        },\n      }) as ValueType;\n\n      // We know this is OK, but typescript does not properly narrow/infer types here\n      // so instead of casting the wrappedFunction to some complicated type, we just make clear that we simply overwrite this\n      (wrappedIntegration as Record<string, unknown>)[key] = wrappedFunction;\n    }\n  }\n\n  return wrappedIntegration;\n}\n","import { getClient, getIsolationScope } from './currentScopes';\nimport { DEBUG_BUILD } from './debug-build';\nimport type { Breadcrumb, BreadcrumbHint } from './types/breadcrumb';\nimport { consoleSandbox } from './utils/debug-logger';\nimport { safeCallback } from './utils/safeCallback';\nimport { dateTimestampInSeconds } from './utils/time';\n\n/**\n * Default maximum number of breadcrumbs added to an event. Can be overwritten\n * with {@link Options.maxBreadcrumbs}.\n */\nconst DEFAULT_BREADCRUMBS = 100;\n\n/**\n * Records a new breadcrumb which will be attached to future events.\n *\n * Breadcrumbs will be added to subsequent events to provide more context on\n * user's actions prior to an error or crash.\n */\nexport function addBreadcrumb(breadcrumb: Breadcrumb, hint?: BreadcrumbHint): void {\n  const client = getClient();\n  const isolationScope = getIsolationScope();\n\n  if (!client) return;\n\n  const { beforeBreadcrumb = null, maxBreadcrumbs = DEFAULT_BREADCRUMBS } = client.getOptions();\n\n  if (maxBreadcrumbs <= 0) return;\n\n  const timestamp = dateTimestampInSeconds();\n  const mergedBreadcrumb = { timestamp, ...breadcrumb };\n  const finalBreadcrumb = beforeBreadcrumb\n    ? safeCallback(\n        DEBUG_BUILD ? 'The `beforeBreadcrumb` callback threw an error, dropping the breadcrumb:' : '',\n        () => consoleSandbox(() => beforeBreadcrumb(mergedBreadcrumb, hint)),\n        () => null,\n      )\n    : mergedBreadcrumb;\n\n  if (finalBreadcrumb === null) return;\n\n  if (client.emit) {\n    client.emit('beforeAddBreadcrumb', finalBreadcrumb, hint);\n  }\n\n  isolationScope.addBreadcrumb(finalBreadcrumb, maxBreadcrumbs);\n}\n","import type { SeverityLevel } from '../types/severity';\n\n/**\n * Determine a breadcrumb's log level (only `warning` or `error`) based on an HTTP status code.\n */\nexport function getBreadcrumbLogLevelFromHttpStatusCode(statusCode: number | undefined): SeverityLevel | undefined {\n  // NOTE: undefined defaults to 'info' in Sentry\n  if (statusCode === undefined) {\n    return undefined;\n  } else if (statusCode >= 400 && statusCode < 500) {\n    return 'warning';\n  } else if (statusCode >= 500) {\n    return 'error';\n  } else {\n    return undefined;\n  }\n}\n","import {\n  HTTP_REQUEST_METHOD,\n  HTTP_ROUTE,\n  SERVER_ADDRESS,\n  URL_DOMAIN,\n  URL_FRAGMENT,\n  URL_FULL,\n  URL_PATH,\n  URL_PORT,\n  URL_QUERY,\n  SENTRY_SEGMENT_NAME_SOURCE,\n  URL_SCHEME,\n  URL_TEMPLATE,\n  SENTRY_ORIGIN,\n} from '@sentry/conventions/attributes';\nimport type { Client } from '../client';\nimport type { SpanAttributes } from '../types/span';\nimport type { TransactionSource } from '../types/transaction';\nimport { filterCollectedUrl, filterCollectedUrlQuery } from './data-collection/filterCollectedUrl';\n\ntype PartialURL = {\n  host?: string;\n  path?: string;\n  protocol?: string;\n  relative?: string;\n  search?: string;\n  hash?: string;\n};\n\ninterface URLwithCanParse extends URL {\n  canParse: (url: string, base?: string | URL | undefined) => boolean;\n}\n\n// A subset of the URL object that is valid for relative URLs\n// The URL object cannot handle relative URLs, so we need to handle them separately\ntype RelativeURL = {\n  isRelative: true;\n  pathname: URL['pathname'];\n  search: URL['search'];\n  hash: URL['hash'];\n};\n\ntype URLObject = RelativeURL | URL;\n\n// Curious about `thismessage:/`? See: https://www.rfc-editor.org/rfc/rfc2557.html\n//  > When the methods above do not yield an absolute URI, a base URL\n//  > of \"thismessage:/\" MUST be employed. This base URL has been\n//  > defined for the sole purpose of resolving relative references\n//  > within a multipart/related structure when no other base URI is\n//  > specified.\n//\n// We need to provide a base URL to `parseStringToURLObject` because the fetch API gives us a\n// relative URL sometimes.\n//\n// This is the only case where we need to provide a base URL to `parseStringToURLObject`\n// because the relative URL is not valid on its own.\nconst DEFAULT_BASE_URL = 'thismessage:/';\n\n/**\n * Checks if the URL object is relative\n *\n * @param url - The URL object to check\n * @returns True if the URL object is relative, false otherwise\n */\nexport function isURLObjectRelative(url: URLObject): url is RelativeURL {\n  return 'isRelative' in url;\n}\n\n/**\n * Parses string to a URL object\n *\n * @param url - The URL to parse\n * @returns The parsed URL object or undefined if the URL is invalid\n */\nexport function parseStringToURLObject(url: string, urlBase?: string | URL | undefined): URLObject | undefined {\n  const isRelative = url.indexOf('://') <= 0 && url.indexOf('//') !== 0;\n  const base = urlBase ?? (isRelative ? DEFAULT_BASE_URL : undefined);\n  try {\n    // Use `canParse` to short-circuit the URL constructor if it's not a valid URL\n    // This is faster than trying to construct the URL and catching the error\n    // Node 20+, Chrome 120+, Firefox 115+, Safari 17+\n    if ('canParse' in URL && !(URL as unknown as URLwithCanParse).canParse(url, base)) {\n      return undefined;\n    }\n\n    const fullUrlObject = new URL(url, base);\n    if (isRelative) {\n      // Because we used a fake base URL, we need to return a relative URL object.\n      // We cannot return anything about the origin, host, etc. because it will refer to the fake base URL.\n      return {\n        isRelative,\n        pathname: fullUrlObject.pathname,\n        search: fullUrlObject.search,\n        hash: fullUrlObject.hash,\n      };\n    }\n    return fullUrlObject;\n  } catch {\n    // empty body\n  }\n\n  return undefined;\n}\n\n/**\n * Takes a URL object and returns a sanitized string which is safe to use as span name\n * see: https://develop.sentry.dev/sdk/data-handling/#structuring-data\n */\nexport function getSanitizedUrlStringFromUrlObject(url: URLObject): string {\n  if (isURLObjectRelative(url)) {\n    return url.pathname;\n  }\n\n  const newUrl = new URL(url);\n  newUrl.search = '';\n  newUrl.hash = '';\n  if (['80', '443'].includes(newUrl.port)) {\n    newUrl.port = '';\n  }\n  if (newUrl.password) {\n    newUrl.password = '%filtered%';\n  }\n  if (newUrl.username) {\n    newUrl.username = '%filtered%';\n  }\n\n  return newUrl.toString();\n}\n\n/**\n * Normalizes a query string for the `url.query` attribute, which is specced without the leading `?`.\n *\n * Accepts either a raw query string (`URL.search`, which includes the `?`) or an already-stripped one.\n * Empty results become `undefined` so callers can assign the return value to an attribute\n * unconditionally — setting an attribute to `undefined` is a no-op.\n */\nexport function getUrlQuery(query: string | undefined): string | undefined {\n  return query?.replace(/^\\?/, '') || undefined;\n}\n\n/**\n * Normalizes a fragment for the `url.fragment` attribute, which is specced without the leading `#`.\n *\n * Accepts either a raw fragment (`URL.hash`, which includes the `#`) or an already-stripped one.\n * Empty results become `undefined` so callers can assign the return value to an attribute\n * unconditionally — setting an attribute to `undefined` is a no-op.\n */\nexport function getUrlFragment(fragment: string | undefined): string | undefined {\n  return fragment?.replace(/^#/, '') || undefined;\n}\n\n/**\n * The domain a request goes to, for the `url.domain` attribute and low-cardinality span names.\n *\n * Relative URLs need a `base` to resolve against — browsers have the page origin, server runtimes do\n * not. URLs with no domain at all, such as data URLs, return `undefined`.\n */\nexport function getUrlDomain(url: string, base?: string): string | undefined {\n  try {\n    return new URL(url, base).hostname || undefined;\n  } catch {\n    return undefined;\n  }\n}\n\ntype PartialRequest = {\n  method?: string;\n};\n\nfunction getHttpSpanNameFromUrlObject(\n  urlObject: URLObject | undefined,\n  kind: 'server' | 'client',\n  request?: PartialRequest,\n  routeName?: string,\n): string {\n  const method = request?.method?.toUpperCase() ?? 'GET';\n  const route = routeName\n    ? routeName\n    : urlObject\n      ? kind === 'client'\n        ? getSanitizedUrlStringFromUrlObject(urlObject)\n        : urlObject.pathname\n      : '/';\n\n  return `${method} ${route}`;\n}\n\n/**\n * Takes a parsed URL object and returns a set of attributes for the span\n * that represents the HTTP request for that url. This is used for both server\n * and client http spans.\n *\n * Follows https://opentelemetry.io/docs/specs/semconv/http/.\n *\n * @param urlObject - see {@link parseStringToURLObject}\n * @param kind - The type of HTTP operation (server or client)\n * @param spanOrigin - The origin of the span\n * @param request - The request object, see {@link PartialRequest}\n * @param routeName - The name of the route, must be low cardinality\n * @param client - The client the span belongs to, used to resolve `dataCollection.urlQueryParams`.\n * Falls back to the current scope's client when omitted, which is the wrong one in a multi-client setup.\n * @returns The span name and attributes for the HTTP operation\n */\nexport function getHttpSpanDetailsFromUrlObject(\n  urlObject: URLObject | undefined,\n  kind: 'server' | 'client',\n  spanOrigin: string,\n  request?: PartialRequest,\n  routeName?: string,\n  client?: Client,\n): [name: string, attributes: SpanAttributes] {\n  const attributes: SpanAttributes = {\n    [SENTRY_ORIGIN]: spanOrigin,\n  };\n\n  let nameSource: TransactionSource = 'url';\n\n  if (routeName) {\n    // This is based on https://opentelemetry.io/docs/specs/semconv/http/http-spans/#name\n    attributes[kind === 'server' ? HTTP_ROUTE : URL_TEMPLATE] = routeName;\n    nameSource = 'route';\n  }\n\n  if (request?.method) {\n    attributes[HTTP_REQUEST_METHOD] = request.method.toUpperCase();\n  }\n\n  if (urlObject) {\n    // Relative URLs have no meaningful `href`, so fall back to the sanitized path.\n    attributes[URL_FULL] = filterCollectedUrl(\n      isURLObjectRelative(urlObject) ? getSanitizedUrlStringFromUrlObject(urlObject) : urlObject.href,\n      client,\n    );\n\n    attributes[URL_QUERY] = filterCollectedUrlQuery(getUrlQuery(urlObject.search), client);\n    attributes[URL_FRAGMENT] = getUrlFragment(urlObject.hash);\n    if (urlObject.pathname) {\n      attributes[URL_PATH] = urlObject.pathname;\n      if (urlObject.pathname === '/') {\n        nameSource = 'route';\n      }\n    }\n\n    if (!isURLObjectRelative(urlObject)) {\n      if (urlObject.port) {\n        attributes[URL_PORT] = urlObject.port;\n      }\n      if (urlObject.protocol) {\n        attributes[URL_SCHEME] = urlObject.protocol;\n      }\n      if (urlObject.hostname) {\n        attributes[kind === 'server' ? SERVER_ADDRESS : URL_DOMAIN] = urlObject.hostname;\n      }\n    }\n  }\n\n  // Outgoing HTTP (`kind === 'client'`) is not a segment span. Incoming HTTP usually is;\n  // if it is nested under a local parent, `addChildSpanToSpan` strips this attribute.\n  if (kind === 'server') {\n    attributes[SENTRY_SEGMENT_NAME_SOURCE] = nameSource;\n  }\n\n  return [getHttpSpanNameFromUrlObject(urlObject, kind, request, routeName), attributes];\n}\n\n/**\n * Parses string form of URL into an object\n * // borrowed from https://tools.ietf.org/html/rfc3986#appendix-B\n * // intentionally using regex and not <a/> href parsing trick because React Native and other\n * // environments where DOM might not be available\n * @returns parsed URL object\n */\nexport function parseUrl(url: string): PartialURL {\n  if (!url) {\n    return {};\n  }\n\n  const match = url.match(/^(([^:/?#]+):)?(\\/\\/([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/);\n\n  if (!match) {\n    return {};\n  }\n\n  // coerce to undefined values to empty string so we don't get 'undefined'\n  const query = match[6] || '';\n  const fragment = match[8] || '';\n  return {\n    host: match[4],\n    path: match[5],\n    protocol: match[2],\n    search: query,\n    hash: fragment,\n    relative: match[5] + query + fragment, // everything minus origin\n  };\n}\n\n/**\n * Strip the query string and fragment off of a given URL or path (if present)\n *\n * @param urlPath Full URL or path, including possible query string and/or fragment\n * @returns URL or path without query string or fragment\n */\nexport function stripUrlQueryAndFragment(urlPath: string): string {\n  return (urlPath.split(/[?#]/, 1) as [string, ...string[]])[0];\n}\n\n/**\n * Takes a URL object and returns a sanitized string which is safe to use as span name\n * see: https://develop.sentry.dev/sdk/data-handling/#structuring-data\n */\nexport function getSanitizedUrlString(url: PartialURL): string {\n  const { protocol, host, path } = url;\n\n  const filteredHost =\n    host\n      // Always filter out authority\n      ?.replace(/^.*@/, '[filtered]:[filtered]@')\n      // Don't show standard :80 (http) and :443 (https) ports to reduce the noise\n      // TODO: Use new URL global if it exists\n      .replace(/(:80)$/, '')\n      .replace(/(:443)$/, '') || '';\n\n  // `parseUrl` returns `{}` for an empty or unparseable URL, and interpolating a missing path\n  // would render the string 'undefined'.\n  return `${protocol ? `${protocol}://` : ''}${filteredHost}${path || ''}`;\n}\n\n/**\n * Strips the content from a data URL, returning a placeholder with the MIME type.\n *\n * Data URLs can be very long (e.g. base64 encoded scripts for Web Workers),\n * with little valuable information, often leading to envelopes getting dropped due\n * to size limit violations. Therefore, we strip data URLs and replace them with a\n * placeholder.\n *\n * @param url - The URL to process\n * @param includeDataPrefix - If true, includes the first 10 characters of the data stream\n *                            for debugging (e.g., to identify magic bytes like WASM's AGFzbQ).\n *                            Defaults to true.\n * @returns For data URLs, returns a short format like `data:text/javascript;base64,SGVsbG8gV2... [truncated]`.\n *          For non-data URLs, returns the original URL unchanged.\n */\nexport function stripDataUrlContent(url: string, includeDataPrefix: boolean = true): string {\n  if (url.startsWith('data:')) {\n    // Match the MIME type (everything after 'data:' until the first ';' or ',')\n    const match = url.match(/^data:([^;,]+)/);\n    const mimeType = match ? match[1] : 'text/plain';\n    const isBase64 = url.includes(';base64,');\n\n    // Find where the actual data starts (after the comma)\n    const dataStart = url.indexOf(',');\n    let dataPrefix = '';\n    if (includeDataPrefix && dataStart !== -1) {\n      const data = url.slice(dataStart + 1);\n      // Include first 10 chars of data to help identify content (e.g., magic bytes)\n      dataPrefix = data.length > 10 ? `${data.slice(0, 10)}... [truncated]` : data;\n    }\n\n    return `data:${mimeType}${isBase64 ? ',base64' : ''}${dataPrefix ? `,${dataPrefix}` : ''}`;\n  }\n  return url;\n}\n","/**\n * NOTE: In order to avoid circular dependencies, if you add a function to this module and it needs to print something,\n * you must either a) use `console.log` rather than the `debug` singleton, or b) put your function elsewhere.\n *\n * Note: This file was originally called `global.ts`, but was changed to unblock users which might be doing\n * string replaces with bundlers like Vite for `global` (would break imports that rely on importing from utils/src/global).\n *\n * Why worldwide?\n *\n * Why not?\n */\n\n/* eslint-disable @typescript-eslint/no-explicit-any */\n\nimport type { Integration } from '../types/integration';\nimport type { Carrier } from '../carrier';\nimport type { SdkSource } from './env';\n\n/** Internal global with common properties and Sentry extensions  */\nexport type InternalGlobal = {\n  navigator?: { userAgent?: string; maxTouchPoints?: number };\n  console: Console;\n  PerformanceObserver?: any;\n  Sentry?: any;\n  onerror?: {\n    (event: object | string, source?: string, lineno?: number, colno?: number, error?: Error): any;\n    __SENTRY_INSTRUMENTED__?: true;\n  };\n  onunhandledrejection?: {\n    (event: unknown): boolean;\n    __SENTRY_INSTRUMENTED__?: true;\n  };\n  SENTRY_ENVIRONMENT?: string;\n  SENTRY_DSN?: string;\n  SENTRY_RELEASE?: {\n    id?: string;\n  };\n  SENTRY_SDK_SOURCE?: SdkSource;\n  /**\n   * Debug IDs are indirectly injected by Sentry CLI or bundler plugins to directly reference a particular source map\n   * for resolving of a source file. The injected code will place an entry into the record for each loaded bundle/JS\n   * file.\n   */\n  _sentryDebugIds?: Record<string, string>;\n  /**\n   * Native debug IDs implementation (e.g., from Vercel).\n   * This uses the same format as _sentryDebugIds but with a different global name.\n   * Keys are `error.stack` strings, values are debug IDs.\n   */\n  _debugIds?: Record<string, string>;\n  /**\n   * Raw module metadata that is injected by bundler plugins.\n   *\n   * Keys are `error.stack` strings, values are the metadata.\n   */\n  _sentryModuleMetadata?: Record<string, any>;\n  _sentryWrappedDepth?: number;\n  /**\n   * Bundler and runtime instrumentation detection.\n   */\n  __SENTRY_ORCHESTRION__?: {\n    /** Empty array signifies runtime hooked */\n    runtime?: string[];\n    /**\n     * The resolved `file:` URL of a transformed file for each runtime-injected\n     * module, keyed by module name (e.g. `@mastra/core`). Lets an integration\n     * anchor `createRequire` on the app's actual copy of a dependency without\n     * relying on `process.cwd()` or the CJS `require.cache` — the latter is\n     * always empty for ESM-loaded modules. Only the runtime `--import`/hook path\n     * populates this; the bundler path inlines modules and records none.\n     */\n    runtimeFiles?: Record<string, string>;\n    /**\n     * Module names recorded as each bundler-transformed module loads (the\n     * injected snippet calls `orchestrionModuleInjected`). The bundler plugin's\n     * entry banner ensures an empty `Set` at boot, so a defined set — even\n     * empty — signifies the plugin ran.\n     */\n    bundler?: Set<string>;\n    /**\n     * Channel-subscriber integration factories stored by the snippet the\n     * bundler transform splices into each instrumented module, keyed by module\n     * name. A factory shared by several packages (e.g. pg/pg-pool) appears\n     * under several keys; integration-name deduplication collapses them at\n     * setup. A bundler-only SDK (e.g. `@sentry/cloudflare`) reads these at\n     * `init()` and instantiates them.\n     */\n    integrations?: Map<string, () => Integration>;\n    /**\n     * Set once `registerDiagnosticsChannelInjection()` has run but could not\n     * install the runtime module hooks — most commonly because\n     * `@sentry/server-runtime-injection` was bundled into the app (which strips its vendored\n     * code transformer) or the Node runtime lacks the required module-hook API.\n     * Dedupes the one-time warning and short-circuits repeat calls.\n     */\n    runtimeUnavailable?: boolean;\n    /**\n     * Module namespaces stashed by build-time provider imports, keyed by module\n     * name (e.g. `@mastra/observability`). A bundler plugin can splice a static\n     * `import * as ns from '<pkg>'` into an integration and record `ns` here, so\n     * the integration can read a bundled peer dependency it cannot `createRequire`\n     * in a bundled runtime such as Cloudflare Workers.\n     */\n    providedModules?: Record<string, Record<string, unknown>>;\n  };\n} & Carrier;\n\n/** Get's the global object for the current JavaScript runtime */\nexport const GLOBAL_OBJ = globalThis as unknown as InternalGlobal;\n","import type { AsyncContextStack } from './asyncContext/stackStrategy';\nimport type { AsyncContextStrategy } from './asyncContext/types';\nimport type { Client } from './client';\nimport type { Scope } from './scope';\nimport type { SegmentSpanCaptureStrategy } from './tracing/segmentSpanCaptureStrategy';\nimport type { SerializedLog } from './types/log';\nimport type { SerializedMetric } from './types/metric';\nimport { SDK_VERSION } from './utils/version';\nimport { GLOBAL_OBJ } from './utils/worldwide';\n\n/**\n * An object that contains globally accessible properties and maintains a scope stack.\n * @hidden\n */\nexport interface Carrier {\n  __SENTRY__?: VersionedCarrier;\n}\n\ntype VersionedCarrier = {\n  version?: string;\n} & Record<Exclude<string, 'version'>, SentryCarrier>;\n\nexport interface SentryCarrier {\n  acs?: AsyncContextStrategy;\n  stack?: AsyncContextStack;\n\n  globalScope?: Scope;\n  defaultIsolationScope?: Scope;\n  defaultCurrentScope?: Scope;\n  loggerSettings?: { enabled: boolean };\n  /**\n   * A map of Sentry clients to their log buffers.\n   * This is used to store logs that are sent to Sentry.\n   */\n  clientToLogBufferMap?: WeakMap<Client, Array<SerializedLog>>;\n\n  /**\n   * A map of Sentry clients to their metric buffers.\n   * This is used to store metrics that are sent to Sentry.\n   */\n  clientToMetricBufferMap?: WeakMap<Client, Array<SerializedMetric>>;\n\n  /** Strategy for assembling segment spans into transactions; set by SDKs that defer capture. */\n  segmentSpanCaptureStrategy?: SegmentSpanCaptureStrategy;\n\n  /** Supplies trace context from a non-Sentry source (e.g. OpenTelemetry); set by `openTelemetryIntegration`. */\n  externalPropagationContextProvider?: () => { traceId: string; spanId: string } | undefined;\n\n  /** Overwrites TextEncoder used in `@sentry/core`, need for `react-native@0.73` and older */\n  encodePolyfill?: (input: string) => Uint8Array;\n  /** Overwrites TextDecoder used in `@sentry/core`, need for `react-native@0.73` and older */\n  decodePolyfill?: (input: Uint8Array) => string;\n}\n\n/**\n * Returns the global shim registry.\n *\n * FIXME: This function is problematic, because despite always returning a valid Carrier,\n * it has an optional `__SENTRY__` property, which then in turn requires us to always perform an unnecessary check\n * at the call-site. We always access the carrier through this function, so we can guarantee that `__SENTRY__` is there.\n **/\nexport function getMainCarrier(): Carrier {\n  // This ensures a Sentry carrier exists\n  getSentryCarrier(GLOBAL_OBJ);\n  return GLOBAL_OBJ;\n}\n\n/** Will either get the existing sentry carrier, or create a new one. */\nexport function getSentryCarrier(carrier: Carrier): SentryCarrier {\n  const __SENTRY__ = (carrier.__SENTRY__ = carrier.__SENTRY__ || {});\n\n  // For now: First SDK that sets the .version property wins\n  __SENTRY__.version = __SENTRY__.version || SDK_VERSION;\n\n  // Intentionally populating and returning the version of \"this\" SDK instance\n  // rather than what's set in .version so that \"this\" SDK always gets its carrier\n  return (__SENTRY__[SDK_VERSION] = __SENTRY__[SDK_VERSION] || {});\n}\n\n/**\n * Returns a global singleton contained in the global `__SENTRY__[]` object.\n *\n * If the singleton doesn't already exist in `__SENTRY__`, it will be created using the given factory\n * function and added to the `__SENTRY__` object.\n *\n * @param name name of the global singleton on __SENTRY__\n * @param creator creator Factory function to create the singleton if it doesn't already exist on `__SENTRY__`\n * @param obj (Optional) The global object on which to look for `__SENTRY__`, if not `GLOBAL_OBJ`'s return value\n * @returns the singleton\n */\nexport function getGlobalSingleton<Prop extends keyof SentryCarrier>(\n  name: Prop,\n  creator: () => NonNullable<SentryCarrier[Prop]>,\n  obj = GLOBAL_OBJ,\n): NonNullable<SentryCarrier[Prop]> {\n  const __SENTRY__ = (obj.__SENTRY__ = obj.__SENTRY__ || {});\n  const carrier = (__SENTRY__[SDK_VERSION] = __SENTRY__[SDK_VERSION] || {});\n  // Note: We do not want to set `carrier.version` here, as this may be called before any `init` is called, e.g. for the default scopes\n  return carrier[name] || (carrier[name] = creator());\n}\n","import { DEBUG_BUILD } from '../debug-build';\nimport { debug } from '../utils/debug-logger';\nimport { getFunctionName } from '../utils/stacktrace';\n\nexport type InstrumentHandlerType =\n  | 'console'\n  | 'dom'\n  | 'fetch'\n  | 'fetch-body-resolved'\n  | 'history'\n  | 'xhr'\n  | 'error'\n  | 'unhandledrejection';\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport type InstrumentHandlerCallback = (data: any) => void;\n\n// We keep the handlers globally\nconst handlers: { [key in InstrumentHandlerType]?: InstrumentHandlerCallback[] } = {};\nconst instrumented: { [key in InstrumentHandlerType]?: boolean } = {};\n\n/** Add a handler function. Returns a function to remove the handler. */\nexport function addHandler(type: InstrumentHandlerType, handler: InstrumentHandlerCallback): () => void {\n  handlers[type] = handlers[type] || [];\n  handlers[type].push(handler);\n\n  return () => {\n    const typeHandlers = handlers[type];\n    if (typeHandlers) {\n      const index = typeHandlers.indexOf(handler);\n      if (index !== -1) {\n        typeHandlers.splice(index, 1);\n      }\n    }\n  };\n}\n\n/**\n * Reset all instrumentation handlers.\n * This can be used by tests to ensure we have a clean slate of instrumentation handlers.\n */\nexport function resetInstrumentationHandlers(): void {\n  Object.keys(handlers).forEach(key => {\n    handlers[key as InstrumentHandlerType] = undefined;\n  });\n}\n\n/** Maybe run an instrumentation function, unless it was already called. */\nexport function maybeInstrument(type: InstrumentHandlerType, instrumentFn: () => void): void {\n  if (!instrumented[type]) {\n    instrumented[type] = true;\n    try {\n      instrumentFn();\n    } catch (e) {\n      DEBUG_BUILD && debug.error(`Error while instrumenting ${type}`, e);\n    }\n  }\n}\n\n/** Trigger handlers for a given instrumentation type. */\nexport function triggerHandlers(type: InstrumentHandlerType, data: unknown): void {\n  const typeHandlers = type && handlers[type];\n  if (!typeHandlers) {\n    return;\n  }\n\n  for (const handler of typeHandlers) {\n    try {\n      handler(data);\n    } catch (e) {\n      DEBUG_BUILD &&\n        debug.error(\n          `Error while triggering instrumentation handler.\\nType: ${type}\\nName: ${getFunctionName(handler)}\\nError:`,\n          e,\n        );\n    }\n  }\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { DEBUG_BUILD } from '../debug-build';\nimport type { WrappedFunction } from '../types/wrappedfunction';\nimport { debug } from './debug-logger';\nimport { isError, isEvent, isObjectLike, isPrimitive } from './is';\n\n/**\n * Replace a method in an object with a wrapped version of itself.\n *\n * If the method on the passed object is not a function, the wrapper will not be applied.\n *\n * @param source An object that contains a method to be wrapped.\n * @param name The name of the method to be wrapped.\n * @param replacementFactory A higher-order function that takes the original version of the given method and returns a\n * wrapped version. Note: The function returned by `replacementFactory` needs to be a non-arrow function, in order to\n * preserve the correct value of `this`, and the original method must be called using `origMethod.call(this, <other\n * args>)` or `origMethod.apply(this, [<other args>])` (rather than being called directly), again to preserve `this`.\n * @returns void\n */\n\nexport function fill(source: { [key: string]: any }, name: string, replacementFactory: (...args: any[]) => any): void {\n  if (!(name in source)) {\n    return;\n  }\n\n  // explicitly casting to unknown because we don't know the type of the method initially at all\n  const original = source[name] as unknown;\n\n  if (typeof original !== 'function') {\n    return;\n  }\n\n  const wrapped = replacementFactory(original) as WrappedFunction;\n\n  // Make sure it's a function first, as we need to attach an empty prototype for `defineProperties` to work\n  // otherwise it'll throw \"TypeError: Object.defineProperties called on non-object\"\n  if (typeof wrapped === 'function') {\n    markFunctionWrapped(wrapped, original);\n  }\n\n  try {\n    source[name] = wrapped;\n  } catch {\n    DEBUG_BUILD && debug.log(`Failed to replace method \"${name}\" in object`, source);\n  }\n}\n\n/**\n * Defines a non-enumerable property on the given object.\n *\n * @param obj The object on which to set the property\n * @param name The name of the property to be set\n * @param value The value to which to set the property\n */\nexport function addNonEnumerableProperty(obj: object, name: string | symbol, value: unknown): void {\n  try {\n    Object.defineProperty(obj, name, {\n      // enumerable: false, // the default, so we can save on bundle size by not explicitly setting it\n      value,\n      writable: true,\n      configurable: true,\n    });\n  } catch {\n    DEBUG_BUILD && debug.log(`Failed to add non-enumerable property \"${String(name)}\" to object`, obj);\n  }\n}\n\n/**\n * Remembers the original function on the wrapped function and\n * patches up the prototype.\n *\n * @param wrapped the wrapper function\n * @param original the original function that gets wrapped\n */\nexport function markFunctionWrapped(wrapped: WrappedFunction, original: WrappedFunction): void {\n  try {\n    const proto = original.prototype || {};\n    wrapped.prototype = original.prototype = proto;\n    addNonEnumerableProperty(wrapped, '__sentry_original__', original);\n  } catch {} // eslint-disable-line no-empty\n}\n\n/**\n * Wrap a method on an object by name, only if it is not already wrapped.\n *\n * Note: to set the wrapped method as a non-enumerable property, pass\n * false as the `enumerable` argument. This could be detected, but only\n * by either walking up the prototype chain, or iterating over all fields\n * in a `for(in)` loop. Neither are an acceptable performance impact for\n * the rare case where we might patch a non-enumerable method.\n */\nexport function wrapMethod<O extends {}, T extends string & keyof O>(\n  obj: O,\n  field: T,\n  wrapped: WrappedFunction,\n  enumerable: boolean = true,\n): void {\n  const original = obj[field];\n  if (typeof original !== 'function') {\n    throw new Error(`Cannot wrap method: ${field} is not a function`);\n  }\n  if (getOriginalFunction(original)) {\n    throw new Error(`Attempting to wrap method ${field} multiple times`);\n  }\n  markFunctionWrapped(wrapped, original);\n  Object.defineProperty(obj, field, {\n    writable: true,\n    configurable: true,\n    enumerable,\n    value: wrapped,\n  });\n}\n\n/**\n * This extracts the original function if available.  See\n * `markFunctionWrapped` for more information.\n *\n * @param func the function to unwrap\n * @returns the unwrapped version of the function if available.\n */\n// eslint-disable-next-line @typescript-eslint/ban-types\nexport function getOriginalFunction<T extends Function>(func: WrappedFunction<T>): T | undefined {\n  return func.__sentry_original__;\n}\n\n/**\n * Transforms any `Error` or `Event` into a plain object with all of their enumerable properties, and some of their\n * non-enumerable properties attached.\n *\n * @param value Initial source that we have to transform in order for it to be usable by the serializer\n * @returns An Event or Error turned into an object - or the value argument itself, when value is neither an Event nor\n *  an Error.\n */\nexport function convertToPlainObject<V>(value: V): Record<string, unknown> | V {\n  if (isError(value)) {\n    return {\n      message: value.message,\n      name: value.name,\n      stack: value.stack,\n      ...getOwnProperties(value),\n    };\n  }\n\n  // This handles browser events specifically, where certain properties are non-enumerable and need to be unpacked.\n  if (isEvent(value)) {\n    const { type, target, currentTarget, detail } = value;\n    return {\n      type,\n      target,\n      currentTarget,\n      ...(detail ? { detail } : {}),\n      ...getOwnProperties(value),\n    };\n  }\n\n  return value;\n}\n\n/** Filters out all but an object's own properties */\nfunction getOwnProperties(obj: unknown): { [key: string]: unknown } {\n  if (isObjectLike(obj)) {\n    return Object.fromEntries(Object.entries(obj));\n  }\n  return {};\n}\n\n/**\n * Given any captured exception, extract its keys and create a sorted\n * and truncated list that will be used inside the event message.\n * eg. `Non-error exception captured with keys: foo, bar, baz`\n */\nexport function extractExceptionKeysForMessage(exception: Record<string, unknown>): string {\n  const keys = Object.keys(convertToPlainObject(exception));\n  keys.sort();\n\n  return !keys[0] ? '[object has no keys]' : keys.join(', ');\n}\n\n/**\n * Given any object, return a new object having removed all fields whose value was `undefined`.\n * Works recursively on objects and arrays.\n *\n * Attention: This function keeps circular references in the returned object.\n *\n * @deprecated This function is no longer used by the SDK and will be removed in a future major version.\n */\nexport function dropUndefinedKeys<T>(inputValue: T): T {\n  // This map keeps track of what already visited nodes map to.\n  // Our Set - based memoBuilder doesn't work here because we want to the output object to have the same circular\n  // references as the input object.\n  const memoizationMap = new Map<unknown, unknown>();\n\n  // This function just proxies `_dropUndefinedKeys` to keep the `memoBuilder` out of this function's API\n  return _dropUndefinedKeys(inputValue, memoizationMap);\n}\n\nfunction _dropUndefinedKeys<T>(inputValue: T, memoizationMap: Map<unknown, unknown>): T {\n  // Early return for primitive values\n  if (inputValue === null || typeof inputValue !== 'object') {\n    return inputValue;\n  }\n\n  // Check memo map first for all object types\n  const memoVal = memoizationMap.get(inputValue);\n  if (memoVal !== undefined) {\n    return memoVal as T;\n  }\n\n  // handle arrays\n  if (Array.isArray(inputValue)) {\n    const returnValue: unknown[] = [];\n    // Store mapping to handle circular references\n    memoizationMap.set(inputValue, returnValue);\n\n    inputValue.forEach(value => {\n      returnValue.push(_dropUndefinedKeys(value, memoizationMap));\n    });\n\n    return returnValue as unknown as T;\n  }\n\n  if (isPojo(inputValue)) {\n    const returnValue: { [key: string]: unknown } = {};\n    // Store mapping to handle circular references\n    memoizationMap.set(inputValue, returnValue);\n\n    const keys = Object.keys(inputValue);\n\n    keys.forEach(key => {\n      const val = inputValue[key];\n      if (val !== undefined) {\n        returnValue[key] = _dropUndefinedKeys(val, memoizationMap);\n      }\n    });\n\n    return returnValue as T;\n  }\n\n  // For other object types, return as is\n  return inputValue;\n}\n\nfunction isPojo(input: unknown): input is Record<string, unknown> {\n  // Plain objects have Object as constructor or no constructor\n  const constructor = (input as object).constructor;\n  return constructor === Object || constructor === undefined;\n}\n\n/**\n * Ensure that something is an object.\n *\n * Turns `undefined` and `null` into `String`s and all other primitives into instances of their respective wrapper\n * classes (String, Boolean, Number, etc.). Acts as the identity function on non-primitives.\n *\n * @param wat The subject of the objectification\n * @returns A version of `wat` which can safely be used with `Object` class methods\n */\nexport function objectify(wat: unknown): typeof Object {\n  let objectified;\n  switch (true) {\n    // this will catch both undefined and null\n    case wat == undefined:\n      objectified = new String(wat);\n      break;\n\n    // Though symbols and bigints do have wrapper classes (`Symbol` and `BigInt`, respectively), for whatever reason\n    // those classes don't have constructors which can be used with the `new` keyword. We therefore need to cast each as\n    // an object in order to wrap it.\n    case typeof wat === 'symbol' || typeof wat === 'bigint':\n      objectified = Object(wat);\n      break;\n\n    // this will catch the remaining primitives: `String`, `Number`, and `Boolean`\n    case isPrimitive(wat):\n      // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n      objectified = new (wat as any).constructor(wat);\n      break;\n\n    // by process of elimination, at this point we know that `wat` must already be an object\n    default:\n      objectified = wat;\n      break;\n  }\n  return objectified;\n}\n","import { GLOBAL_OBJ } from './worldwide';\n\nexport type RandomSafeContextRunner = <T>(callback: () => T) => T;\n\n// undefined = not yet resolved, null = no runner found, function = runner found\nlet RESOLVED_RUNNER: RandomSafeContextRunner | null | undefined;\n\n/**\n * Simple wrapper that allows SDKs to *secretly* set context wrapper to generate safe random IDs in cache components contexts\n */\nexport function withRandomSafeContext<T>(cb: () => T): T {\n  // Skips future symbol lookups if we've already resolved (or attempted to resolve) the runner once\n  if (RESOLVED_RUNNER !== undefined) {\n    return RESOLVED_RUNNER ? RESOLVED_RUNNER(cb) : cb();\n  }\n\n  const sym = Symbol.for('__SENTRY_SAFE_RANDOM_ID_WRAPPER__');\n  const globalWithSymbol: typeof GLOBAL_OBJ & { [sym]?: RandomSafeContextRunner } = GLOBAL_OBJ;\n\n  if (sym in globalWithSymbol && typeof globalWithSymbol[sym] === 'function') {\n    RESOLVED_RUNNER = globalWithSymbol[sym];\n    return RESOLVED_RUNNER(cb);\n  }\n\n  RESOLVED_RUNNER = null;\n  return cb();\n}\n\n/**\n * Identical to Math.random() but wrapped in withRandomSafeContext\n * to ensure safe random number generation in certain contexts (e.g., Next.js Cache Components).\n */\nexport function safeMathRandom(): number {\n  return withRandomSafeContext(() => Math.random());\n}\n\n/**\n * Identical to Date.now() but wrapped in withRandomSafeContext\n * to ensure safe time value generation in certain contexts (e.g., Next.js Cache Components).\n */\nexport function safeDateNow(): number {\n  return withRandomSafeContext(() => Date.now());\n}\n","import type { Event } from '../types/event';\nimport type { Exception } from '../types/exception';\nimport type { Mechanism } from '../types/mechanism';\nimport type { StackFrame } from '../types/stackframe';\nimport { addNonEnumerableProperty } from './object';\nimport { safeMathRandom, withRandomSafeContext } from './randomSafeContext';\nimport { snipLine } from './string';\nimport { GLOBAL_OBJ } from './worldwide';\n\ninterface CryptoInternal {\n  randomUUID?(): string;\n}\n\n/** An interface for common properties on global */\ninterface CryptoGlobal {\n  msCrypto?: CryptoInternal;\n  crypto?: CryptoInternal;\n}\n\nfunction getCrypto(): CryptoInternal | undefined {\n  const gbl = GLOBAL_OBJ as typeof GLOBAL_OBJ & CryptoGlobal;\n  return gbl.crypto || gbl.msCrypto;\n}\n\nlet emptyUuid: string | undefined;\n\nfunction getRandomByte(): number {\n  return safeMathRandom() * 16;\n}\n\n/**\n * UUID4 generator\n * @param crypto Object that provides the crypto API.\n * @returns string Generated UUID4.\n */\nexport function uuid4(crypto = getCrypto()): string {\n  try {\n    if (crypto?.randomUUID) {\n      // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n      return withRandomSafeContext(() => crypto.randomUUID!()).replace(/-/g, '');\n    }\n  } catch {\n    // some runtimes can crash invoking crypto\n    // https://github.com/getsentry/sentry-javascript/issues/8935\n  }\n\n  if (!emptyUuid) {\n    // http://stackoverflow.com/questions/105034/how-to-create-a-guid-uuid-in-javascript/2117523#2117523\n    // Concatenating the following numbers as strings results in '10000000100040008000100000000000'\n    emptyUuid = ([1e7] as unknown as string) + 1e3 + 4e3 + 8e3 + 1e11;\n  }\n\n  return emptyUuid.replace(/[018]/g, c =>\n    // eslint-disable-next-line no-bitwise\n    ((c as unknown as number) ^ ((getRandomByte() & 15) >> ((c as unknown as number) / 4))).toString(16),\n  );\n}\n\nfunction getFirstException(event: Event): Exception | undefined {\n  return event.exception?.values?.[0];\n}\n\n/**\n * Extracts either message or type+value from an event that can be used for user-facing logs\n * @returns event's description\n */\nexport function getEventDescription(event: Event): string {\n  const { message, event_id: eventId } = event;\n  if (message) {\n    return message;\n  }\n\n  const firstException = getFirstException(event);\n  if (firstException) {\n    if (firstException.type && firstException.value) {\n      return `${firstException.type}: ${firstException.value}`;\n    }\n    return firstException.type || firstException.value || eventId || '<unknown>';\n  }\n  return eventId || '<unknown>';\n}\n\n/**\n * Adds exception values, type and value to an synthetic Exception.\n * @param event The event to modify.\n * @param value Value of the exception.\n * @param type Type of the exception.\n * @hidden\n */\nexport function addExceptionTypeValue(event: Event, value?: string, type?: string): void {\n  const exception = (event.exception = event.exception || {});\n  const values = (exception.values = exception.values || []);\n  const firstException = (values[0] = values[0] || {});\n  if (!firstException.value) {\n    firstException.value = value || '';\n  }\n  if (!firstException.type) {\n    firstException.type = type || 'Error';\n  }\n}\n\n/**\n * Adds exception mechanism data to a given event. Uses defaults if the second parameter is not passed.\n *\n * @param event The event to modify.\n * @param newMechanism Mechanism data to add to the event.\n * @hidden\n */\nexport function addExceptionMechanism(event: Event, newMechanism?: Partial<Mechanism>): void {\n  const firstException = getFirstException(event);\n  if (!firstException) {\n    return;\n  }\n\n  applyExceptionMechanism(firstException, newMechanism);\n}\n\n/**\n * Adds exception mechanism data to the originally captured (root) exception of a given event.\n *\n * @hidden\n */\nexport function addExceptionMechanismToCapturedException(event: Event, newMechanism?: Partial<Mechanism>): void {\n  const exceptions = event.exception?.values;\n\n  // Exception groups identify the originally captured (root) exception with exception_id 0.\n  const capturedException = exceptions?.find(exception => exception.mechanism?.exception_id === 0) ?? exceptions?.[0];\n\n  if (!capturedException) {\n    return;\n  }\n\n  applyExceptionMechanism(capturedException, newMechanism);\n}\n\nfunction applyExceptionMechanism(exception: Exception, newMechanism?: Partial<Mechanism>): void {\n  const defaultMechanism = { type: 'generic', handled: true };\n  const currentMechanism = exception.mechanism;\n  exception.mechanism = { ...defaultMechanism, ...currentMechanism, ...newMechanism };\n\n  if (newMechanism && 'data' in newMechanism) {\n    exception.mechanism.data = { ...currentMechanism?.data, ...newMechanism.data };\n  }\n}\n\n// https://semver.org/#is-there-a-suggested-regular-expression-regex-to-check-a-semver-string\nconst SEMVER_REGEXP =\n  /^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$/;\n\n/**\n * Represents Semantic Versioning object\n */\ninterface SemVer {\n  major?: number;\n  minor?: number;\n  patch?: number;\n  prerelease?: string;\n  buildmetadata?: string;\n}\n\nfunction _parseInt(input: string | undefined): number {\n  return parseInt(input || '', 10);\n}\n\n/**\n * Parses input into a SemVer interface\n * @param input string representation of a semver version\n */\nexport function parseSemver(input: string): SemVer {\n  const match = input.match(SEMVER_REGEXP) || [];\n  const major = _parseInt(match[1]);\n  const minor = _parseInt(match[2]);\n  const patch = _parseInt(match[3]);\n  return {\n    buildmetadata: match[5],\n    major: isNaN(major) ? undefined : major,\n    minor: isNaN(minor) ? undefined : minor,\n    patch: isNaN(patch) ? undefined : patch,\n    prerelease: match[4],\n  };\n}\n\n/**\n * This function adds context (pre/post/line) lines to the provided frame\n *\n * @param lines string[] containing all lines\n * @param frame StackFrame that will be mutated\n * @param linesOfContext number of context lines we want to add pre/post\n */\nexport function addContextToFrame(lines: string[], frame: StackFrame, linesOfContext: number = 5): void {\n  // When there is no line number in the frame, attaching context is nonsensical and will even break grouping\n  if (frame.lineno === undefined) {\n    return;\n  }\n\n  const maxLines = lines.length;\n  const sourceLine = Math.max(Math.min(maxLines - 1, frame.lineno - 1), 0);\n\n  frame.pre_context = lines\n    .slice(Math.max(0, sourceLine - linesOfContext), sourceLine)\n    .map((line: string) => snipLine(line, 0));\n\n  // We guard here to ensure this is not larger than the existing number of lines\n  const lineIndex = Math.min(maxLines - 1, sourceLine);\n\n  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n  frame.context_line = snipLine(lines[lineIndex]!, frame.colno || 0);\n\n  frame.post_context = lines\n    .slice(Math.min(sourceLine + 1, maxLines), sourceLine + 1 + linesOfContext)\n    .map((line: string) => snipLine(line, 0));\n}\n\n/**\n * Checks whether or not we've already captured the given exception (note: not an identical exception - the very object\n * in question), and marks it captured if not.\n *\n * This is useful because it's possible for an error to get captured by more than one mechanism. After we intercept and\n * record an error, we rethrow it (assuming we've intercepted it before it's reached the top-level global handlers), so\n * that we don't interfere with whatever effects the error might have had were the SDK not there. At that point, because\n * the error has been rethrown, it's possible for it to bubble up to some other code we've instrumented. If it's not\n * caught after that, it will bubble all the way up to the global handlers (which of course we also instrument). This\n * function helps us ensure that even if we encounter the same error more than once, we only record it the first time we\n * see it.\n *\n * The client runs this check for every captured exception, also when `dedupeIntegration` is not active.\n * `dedupeIntegration` drops equal events that come from different error objects.\n *\n * Note: It will ignore primitives (always return `false` and not mark them as seen), as properties can't be set on\n * them. {@link: Object.objectify} can be used on exceptions to convert any that are primitives into their equivalent\n * object wrapper forms so that this check will always work. However, because we need to flag the exact object which\n * will get rethrown, and because that rethrowing happens outside of the event processing pipeline, the objectification\n * must be done before the exception captured.\n *\n * @param A thrown exception to check or flag as having been seen\n * @returns `true` if the exception has already been captured, `false` if not (with the side effect of marking it seen)\n */\nexport function checkOrSetAlreadyCaught(exception: unknown): boolean {\n  if (isAlreadyCaptured(exception)) {\n    return true;\n  }\n\n  try {\n    // set it this way rather than by assignment so that it's not ennumerable and therefore isn't recorded by the\n    // `ExtraErrorData` integration\n    addNonEnumerableProperty(exception as { [key: string]: unknown }, '__sentry_captured__', true);\n  } catch {\n    // `exception` is a primitive, so we can't mark it seen\n  }\n\n  return false;\n}\n\n/**\n * Checks whether we've already captured the given exception (note: not an identical exception - the very object).\n * It is considered already captured if it has the `__sentry_captured__` property set to `true`.\n *\n * @internal Only considered for internal usage\n */\nexport function isAlreadyCaptured(exception: unknown): boolean | void {\n  try {\n    return (exception as { __sentry_captured__?: boolean }).__sentry_captured__;\n  } catch {} // eslint-disable-line no-empty\n}\n","import type { FetchBreadcrumbHint, HandlerDataFetch } from '@sentry/core';\nimport type { XhrBreadcrumbHint } from '@sentry/core/browser';\nimport { GLOBAL_OBJ } from '@sentry/core';\n\nexport const WINDOW = GLOBAL_OBJ as typeof GLOBAL_OBJ &\n  // document is not available in all browser environments (webworkers). We make it optional so you have to explicitly check for it\n  Omit<Window, 'document'> &\n  Partial<Pick<Window, 'document'>>;\n\nexport type NetworkMetaWarning =\n  | 'MAYBE_JSON_TRUNCATED'\n  | 'TEXT_TRUNCATED'\n  | 'URL_SKIPPED'\n  | 'BODY_PARSE_ERROR'\n  | 'BODY_PARSE_TIMEOUT'\n  | 'UNPARSEABLE_BODY_TYPE';\n\ntype RequestBody = null | Blob | BufferSource | FormData | URLSearchParams | string;\n\nexport type XhrHint = XhrBreadcrumbHint & {\n  xhr: XMLHttpRequest & SentryWrappedXMLHttpRequest;\n  input?: RequestBody;\n};\nexport type FetchHint = FetchBreadcrumbHint & {\n  input: HandlerDataFetch['args'];\n  response: Response;\n};\n\n// This should be: null | Blob | BufferSource | FormData | URLSearchParams | string\n// But since not all of those are available in node, we just use `unknown` here for now\ntype XHRSendInput = unknown;\n\nexport interface SentryWrappedXMLHttpRequest {\n  __sentry_xhr_v3__?: SentryXhrData;\n  __sentry_own_request__?: boolean;\n  // span id for the xhr request\n  __sentry_xhr_span_id__?: string;\n  setRequestHeader?: (key: string, val: string) => void;\n  getResponseHeader?: (key: string) => string | null;\n}\n\n// WARNING: When the shape of this type is changed bump the version in `SentryWrappedXMLHttpRequest`\nexport interface SentryXhrData {\n  method: string;\n  url: string;\n  status_code?: number;\n  body?: XHRSendInput;\n  request_body_size?: number;\n  response_body_size?: number;\n  request_headers: Record<string, string>;\n}\n\nexport interface HandlerDataXhr {\n  xhr: SentryWrappedXMLHttpRequest;\n  startTimestamp?: number;\n  endTimestamp?: number;\n  error?: unknown;\n  // This is to be consumed by the HttpClient integration\n  virtualError?: unknown;\n}\n\nexport interface HandlerDataDom {\n  // TODO: Replace `object` here with a vendored type for browser Events. We can't depend on the `DOM` or `react` TS types package here.\n  event: object | { target: object };\n  name: string;\n  global?: boolean;\n}\n\nexport interface HandlerDataHistory {\n  /** The full URL of the previous page */\n  from: string | undefined;\n  /** The full URL of the new page */\n  to: string;\n}\n","import { addHandler, addNonEnumerableProperty, fill, maybeInstrument, triggerHandlers, uuid4 } from '@sentry/core';\nimport type { HandlerDataDom } from '../types';\nimport { WINDOW } from '../types';\n\ntype SentryWrappedTarget = HTMLElement & { _sentryId?: string };\n\ntype AddEventListener = (\n  type: string,\n  listener: EventListenerOrEventListenerObject,\n  options?: boolean | AddEventListenerOptions,\n) => void;\ntype RemoveEventListener = (\n  type: string,\n  listener: EventListenerOrEventListenerObject,\n  options?: boolean | EventListenerOptions,\n) => void;\n\ntype InstrumentedElement = Element & {\n  __sentry_instrumentation_handlers__?: {\n    [key in 'click' | 'keypress']?: {\n      handler?: unknown;\n      capture?: boolean;\n      // listeners added with `capture: true`, meaning the listener is invoked before other\n      // listeners inside the element's hierarchy.\n      captureListeners: WeakSet<EventListenerOrEventListenerObject>;\n      // listeners added with `capture: false` (default), meaning the listener is invoked\n      // after other listeners inside the element's hierarchy (i.e. the event bubbles up)\n      bubbleListeners: WeakSet<EventListenerOrEventListenerObject>;\n      // Total number of listeners in `captureListeners` and `bubbleListeners`. WeakSets have no `size`, but we use them\n      // so listeners removed without going through our `removeEventListener` patch aren't retained by us.\n      listenerCount: number;\n      // Set once a `once` or `signal` listener was added. The browser removes those without going\n      // through `removeEventListener`, so we can't tell when they're gone and must keep our handler attached.\n      sticky?: boolean;\n    };\n  };\n};\n\nconst DEBOUNCE_DURATION = 1000;\n\nlet debounceTimerID: number | undefined;\nlet lastCapturedEventType: string | undefined;\nlet lastCapturedEventTargetId: string | undefined;\n\nfunction getCapture(options: boolean | EventListenerOptions | undefined): boolean {\n  return typeof options === 'boolean' ? options : !!options?.capture;\n}\n\n/**\n * Add an instrumentation handler for when a click or a keypress happens.\n *\n * Use at your own risk, this might break without changelog notice, only used internally.\n * @hidden\n */\nexport function addClickKeypressInstrumentationHandler(handler: (data: HandlerDataDom) => void): void {\n  const type = 'dom';\n  addHandler(type, handler);\n  maybeInstrument(type, instrumentDOM);\n}\n\n/** Exported for tests only. */\nexport function instrumentDOM(): void {\n  if (!WINDOW.document) {\n    return;\n  }\n\n  // Make it so that any click or keypress that is unhandled / bubbled up all the way to the document triggers our dom\n  // handlers. (Normally we have only one, which captures a breadcrumb for each click or keypress.) Do this before\n  // we instrument `addEventListener` so that we don't end up attaching this handler twice.\n  const triggerDOMHandler = triggerHandlers.bind(null, 'dom');\n  const globalDOMEventHandler = makeDOMEventHandler(triggerDOMHandler, true);\n  WINDOW.document.addEventListener('click', globalDOMEventHandler, false);\n  WINDOW.document.addEventListener('keypress', globalDOMEventHandler, false);\n\n  // After hooking into click and keypress events bubbled up to `document`, we also hook into user-handled\n  // clicks & keypresses, by adding an event listener of our own to any element to which they add a listener. That\n  // way, whenever one of their handlers is triggered, ours will be, too. (This is needed because their handler\n  // could potentially prevent the event from bubbling up to our global listeners. This way, our handler are still\n  // guaranteed to fire at least once.)\n  ['EventTarget', 'Node'].forEach((target: string) => {\n    const globalObject = WINDOW as unknown as Record<string, { prototype?: object }>;\n    const proto = globalObject[target]?.prototype;\n\n    // eslint-disable-next-line no-prototype-builtins\n    if (!proto?.hasOwnProperty?.('addEventListener')) {\n      return;\n    }\n\n    fill(proto, 'addEventListener', function (originalAddEventListener: AddEventListener): AddEventListener {\n      return function (this: InstrumentedElement, type, listener, options): AddEventListener {\n        // The browser ignores `null` listeners, so there's nothing for our handler to accompany.\n        if ((type === 'click' || type == 'keypress') && listener) {\n          try {\n            const handlers = (this.__sentry_instrumentation_handlers__ =\n              this.__sentry_instrumentation_handlers__ || {});\n\n            const handlerForType = (handlers[type] = handlers[type] || {\n              captureListeners: new WeakSet(),\n              bubbleListeners: new WeakSet(),\n              listenerCount: 0,\n            });\n\n            const capture = getCapture(options);\n\n            if (!handlerForType.handler) {\n              const handler = makeDOMEventHandler(triggerDOMHandler);\n              handlerForType.handler = handler;\n              // Track the user-set `capture` option because it changes the identity of the registration of the\n              // event listener callback function (addEL(fn, true) vs addEL(fn, false) are two different registrations).\n              // Our listener needs to have the same capture setting, so that subsequent calls or removeEventListener\n              // calls correspond to the correct handler function.\n              handlerForType.capture = capture;\n              originalAddEventListener.call(this, type, handler, handlerForType.capture);\n            }\n\n            const listeners = handlerForType[capture ? 'captureListeners' : 'bubbleListeners'];\n            // Adding the same listener twice in the same phase is a no-op in the browser.\n            if (!listeners.has(listener)) {\n              if (typeof options === 'object' && (options?.once || options?.signal)) {\n                // Not tracked to avoid retaining listeners the browser auto-removes.\n                handlerForType.sticky = true;\n              } else {\n                listeners.add(listener);\n                handlerForType.listenerCount++;\n              }\n            }\n          } catch {\n            // Accessing dom properties is always fragile.\n            // Also allows us to skip `addEventListeners` calls with no proper `this` context.\n          }\n        }\n\n        return originalAddEventListener.call(this, type, listener, options);\n      };\n    });\n\n    fill(\n      proto,\n      'removeEventListener',\n      function (originalRemoveEventListener: RemoveEventListener): RemoveEventListener {\n        return function (this: InstrumentedElement, type, listener, options): () => void {\n          if ((type === 'click' || type == 'keypress') && listener) {\n            try {\n              const handlers = this.__sentry_instrumentation_handlers__ || {};\n              const handlerForType = handlers[type];\n\n              // Removing a listener that was never added is a no-op in the browser, so it mustn't count for ours either.\n              if (handlerForType?.[getCapture(options) ? 'captureListeners' : 'bubbleListeners'].delete(listener)) {\n                // If there are no longer any custom handlers of the current type on this element, we can remove ours, too.\n                if (!--handlerForType.listenerCount && !handlerForType.sticky) {\n                  originalRemoveEventListener.call(this, type, handlerForType.handler, handlerForType.capture);\n                  handlerForType.handler = undefined;\n                  delete handlers[type]; // eslint-disable-line @typescript-eslint/no-dynamic-delete\n                }\n\n                // If there are no longer any custom handlers of any type on this element, cleanup everything.\n                if (Object.keys(handlers).length === 0) {\n                  delete this.__sentry_instrumentation_handlers__;\n                }\n              }\n            } catch {\n              // Accessing dom properties is always fragile.\n              // Also allows us to skip `addEventListeners` calls with no proper `this` context.\n            }\n          }\n\n          return originalRemoveEventListener.call(this, type, listener, options);\n        };\n      },\n    );\n  });\n}\n\n/**\n * Check whether the event is similar to the last captured one. For example, two click events on the same button.\n */\nfunction isSimilarToLastCapturedEvent(event: Event): boolean {\n  // If both events have different type, then user definitely performed two separate actions. e.g. click + keypress.\n  if (event.type !== lastCapturedEventType) {\n    return false;\n  }\n\n  try {\n    // If both events have the same type, it's still possible that actions were performed on different targets.\n    // e.g. 2 clicks on different buttons.\n    if (!event.target || (event.target as SentryWrappedTarget)._sentryId !== lastCapturedEventTargetId) {\n      return false;\n    }\n  } catch {\n    // just accessing `target` property can throw an exception in some rare circumstances\n    // see: https://github.com/getsentry/sentry-javascript/issues/838\n  }\n\n  // If both events have the same type _and_ same `target` (an element which triggered an event, _not necessarily_\n  // to which an event listener was attached), we treat them as the same action, as we want to capture\n  // only one breadcrumb. e.g. multiple clicks on the same button, or typing inside a user input box.\n  return true;\n}\n\n/**\n * Decide whether an event should be captured.\n * @param event event to be captured\n */\nfunction shouldSkipDOMEvent(eventType: string, target: SentryWrappedTarget | null): boolean {\n  // We are only interested in filtering `keypress` events for now.\n  if (eventType !== 'keypress') {\n    return false;\n  }\n\n  if (!target?.tagName) {\n    return true;\n  }\n\n  // Only consider keypress events on actual input elements. This will disregard keypresses targeting body\n  // e.g.tabbing through elements, hotkeys, etc.\n  if (target.tagName === 'INPUT' || target.tagName === 'TEXTAREA' || target.isContentEditable) {\n    return false;\n  }\n\n  return true;\n}\n\n/**\n * Wraps addEventListener to capture UI breadcrumbs\n */\nfunction makeDOMEventHandler(\n  handler: (data: HandlerDataDom) => void,\n  globalListener: boolean = false,\n): (event: Event) => void {\n  return (event: Event & { _sentryCaptured?: true }): void => {\n    // It's possible this handler might trigger multiple times for the same\n    // event (e.g. event propagation through node ancestors).\n    // Ignore if we've already captured that event.\n    if (!event || event['_sentryCaptured']) {\n      return;\n    }\n\n    const target = getEventTarget(event);\n\n    // We always want to skip _some_ events.\n    if (shouldSkipDOMEvent(event.type, target)) {\n      return;\n    }\n\n    // Mark event as \"seen\"\n    addNonEnumerableProperty(event, '_sentryCaptured', true);\n\n    if (target && !target._sentryId) {\n      // Add UUID to event target so we can identify if\n      addNonEnumerableProperty(target, '_sentryId', uuid4());\n    }\n\n    const name = event.type === 'keypress' ? 'input' : event.type;\n\n    // If there is no last captured event, it means that we can safely capture the new event and store it for future comparisons.\n    // If there is a last captured event, see if the new event is different enough to treat it as a unique one.\n    // If that's the case, emit the previous event and store locally the newly-captured DOM event.\n    if (!isSimilarToLastCapturedEvent(event)) {\n      const handlerData: HandlerDataDom = { event, name, global: globalListener };\n      handler(handlerData);\n      lastCapturedEventType = event.type;\n      lastCapturedEventTargetId = target ? target._sentryId : undefined;\n    }\n\n    // Start a new debounce timer that will prevent us from capturing multiple events that should be grouped together.\n    clearTimeout(debounceTimerID);\n    debounceTimerID = WINDOW.setTimeout(() => {\n      lastCapturedEventTargetId = undefined;\n      lastCapturedEventType = undefined;\n    }, DEBOUNCE_DURATION);\n  };\n}\n\nfunction getEventTarget(event: Event): SentryWrappedTarget | null {\n  try {\n    return event.target as SentryWrappedTarget | null;\n  } catch {\n    // just accessing `target` property can throw an exception in some rare circumstances\n    // see: https://github.com/getsentry/sentry-javascript/issues/838\n    return null;\n  }\n}\n","import { safeDateNow, withRandomSafeContext } from './randomSafeContext';\nimport { GLOBAL_OBJ } from './worldwide';\n\nconst ONE_SECOND_IN_MS = 1000;\n\n/**\n * A partial definition of the [Performance Web API]{@link https://developer.mozilla.org/en-US/docs/Web/API/Performance}\n * for accessing a high-resolution monotonic clock.\n */\ninterface Performance {\n  /**\n   * The millisecond timestamp at which measurement began, measured in Unix time.\n   */\n  timeOrigin: number;\n  /**\n   * Returns the current millisecond timestamp, where 0 represents the start of measurement.\n   */\n  now(): number;\n}\n\n/**\n * Returns a timestamp in seconds since the UNIX epoch using the Date API.\n */\nexport function dateTimestampInSeconds(): number {\n  return safeDateNow() / ONE_SECOND_IN_MS;\n}\n\n/**\n * Returns a wrapper around the native Performance API browser implementation, or undefined for browsers that do not\n * support the API.\n *\n * Wrapping the native API works around differences in behavior from different browsers.\n */\nfunction createUnixTimestampInSecondsFunc(): () => number {\n  const { performance } = GLOBAL_OBJ as typeof GLOBAL_OBJ & { performance?: Performance };\n  // Some browser and environments don't have a performance or timeOrigin, so we fallback to\n  // using Date.now() to compute the starting time.\n  if (!performance?.now || !performance.timeOrigin) {\n    return dateTimestampInSeconds;\n  }\n\n  const timeOrigin = performance.timeOrigin;\n\n  // performance.now() is a monotonic clock, which means it starts at 0 when the process begins. To get the current\n  // wall clock time (actual UNIX timestamp), we need to add the starting time origin and the current time elapsed.\n  //\n  // TODO: This does not account for the case where the monotonic clock that powers performance.now() drifts from the\n  // wall clock time, which causes the returned timestamp to be inaccurate. We should investigate how to detect and\n  // correct for this.\n  // See: https://github.com/getsentry/sentry-javascript/issues/2590\n  // See: https://github.com/mdn/content/issues/4713\n  // See: https://dev.to/noamr/when-a-millisecond-is-not-a-millisecond-3h6\n  return () => {\n    return (timeOrigin + withRandomSafeContext(() => performance.now())) / ONE_SECOND_IN_MS;\n  };\n}\n\nlet _cachedTimestampInSeconds: (() => number) | undefined;\n\n/**\n * Returns a timestamp in seconds since the UNIX epoch using either the Performance or Date APIs, depending on the\n * availability of the Performance API.\n *\n * BUG: Note that because of how browsers implement the Performance API, the clock might stop when the computer is\n * asleep. This creates a skew between `dateTimestampInSeconds` and `timestampInSeconds`. The\n * skew can grow to arbitrary amounts like days, weeks or months.\n * See https://github.com/getsentry/sentry-javascript/issues/2590.\n */\nexport function timestampInSeconds(): number {\n  // We store this in a closure so that we don't have to create a new function every time this is called.\n  const func = _cachedTimestampInSeconds ?? (_cachedTimestampInSeconds = createUnixTimestampInSecondsFunc());\n  return func();\n}\n\n/**\n * Cached result of getBrowserTimeOrigin.\n */\nlet cachedTimeOrigin: number | null | undefined = null;\n\n/**\n * Gets the time origin and the mode used to determine it.\n *\n * Unfortunately browsers may report inaccurate time origin data through performance.timeOrigin,\n * which results in poor results in performance data. We only treat time origin data as reliable\n * if it is within a reasonable threshold of the current time.\n *\n * TODO: move to `@sentry/browser-utils` package.\n */\nfunction getBrowserTimeOrigin(): number | undefined {\n  const { performance } = GLOBAL_OBJ as typeof GLOBAL_OBJ & Window;\n  if (!performance?.now) {\n    return undefined;\n  }\n\n  const threshold = 300_000; // 5 minutes in milliseconds\n  const performanceNow = withRandomSafeContext(() => performance.now());\n  const dateNow = safeDateNow();\n\n  const timeOrigin = performance.timeOrigin;\n  if (typeof timeOrigin === 'number') {\n    const timeOriginDelta = Math.abs(timeOrigin + performanceNow - dateNow);\n    if (timeOriginDelta < threshold) {\n      return timeOrigin;\n    }\n  }\n\n  // timeOrigin is skewed or unavailable, fallback to subtracting\n  // `performance.now()` from `Date.now()`.\n  return dateNow - performanceNow;\n}\n\n/**\n * The number of milliseconds since the UNIX epoch. This value is only usable in a browser, and only when the\n * performance API is available.\n */\nexport function browserPerformanceTimeOrigin(): number | undefined {\n  if (cachedTimeOrigin === null) {\n    cachedTimeOrigin = getBrowserTimeOrigin();\n  }\n\n  return cachedTimeOrigin;\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\n\nimport type { Primitive } from '../types/misc';\nimport type { ParameterizedString } from '../types/parameterize';\nimport type { PolymorphicEvent } from '../types/polymorphics';\nimport type { VNode, VueViewModel } from '../types/vue';\n\n// eslint-disable-next-line @typescript-eslint/unbound-method\nconst objectToString = Object.prototype.toString;\n\n/**\n * Checks whether given value's type is one of a few Error or Error-like\n * {@link isError}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isError(wat: unknown): wat is Error {\n  switch (objectToString.call(wat)) {\n    case '[object Error]':\n    case '[object Exception]':\n    case '[object DOMException]':\n    case '[object WebAssembly.Exception]':\n      return true;\n    default:\n      return isInstanceOf(wat, Error);\n  }\n}\n/**\n * Checks whether given value is an instance of the given built-in class.\n *\n * @param wat The value to be checked\n * @param className\n * @returns A boolean representing the result.\n */\nfunction isBuiltin(wat: unknown, className: string): boolean {\n  return objectToString.call(wat) === `[object ${className}]`;\n}\n\n/**\n * Checks whether given value's type is ErrorEvent\n * {@link isErrorEvent}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isErrorEvent(wat: unknown): boolean {\n  return isBuiltin(wat, 'ErrorEvent');\n}\n\n/**\n * Checks whether given value's type is DOMError\n * {@link isDOMError}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isDOMError(wat: unknown): boolean {\n  return isBuiltin(wat, 'DOMError');\n}\n\n/**\n * Checks whether given value's type is DOMException\n * {@link isDOMException}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isDOMException(wat: unknown): boolean {\n  return isBuiltin(wat, 'DOMException');\n}\n\n/**\n * Checks whether given value's type is a string\n * {@link isString}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isString(wat: unknown): wat is string {\n  return isBuiltin(wat, 'String');\n}\n\n/**\n * Checks whether given string is parameterized\n * {@link isParameterizedString}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isParameterizedString(wat: unknown): wat is ParameterizedString {\n  return (\n    typeof wat === 'object' &&\n    wat !== null &&\n    '__sentry_template_string__' in wat &&\n    '__sentry_template_values__' in wat\n  );\n}\n\n/**\n * Checks whether given value is a primitive (undefined, null, number, boolean, string, bigint, symbol)\n * {@link isPrimitive}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isPrimitive(wat: unknown): wat is Primitive {\n  return wat === null || isParameterizedString(wat) || (typeof wat !== 'object' && typeof wat !== 'function');\n}\n\n/**\n * Checks whether given value's type is an object literal, or a class instance.\n * {@link isPlainObject}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isPlainObject(wat: unknown): wat is Record<string, unknown> {\n  return isBuiltin(wat, 'Object');\n}\n\n/**\n * Checks whether given value is a non-null object (i.e. `typeof` is `'object'` and it is not `null`).\n * Unlike {@link isPlainObject}, this also accepts arrays and class instances - it only rules out\n * `null`, primitives, and functions.\n * {@link isObjectLike}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isObjectLike(wat: unknown): wat is Record<PropertyKey, unknown> {\n  return typeof wat === 'object' && wat !== null;\n}\n\n/**\n * Checks whether given value's type is an Event instance\n * {@link isEvent}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isEvent(wat: unknown): wat is PolymorphicEvent {\n  return typeof Event !== 'undefined' && isInstanceOf(wat, Event);\n}\n\n/**\n * Checks whether given value's type is an Element instance\n * {@link isElement}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n * @deprecated This is browser-specific and will be removed from `@sentry/core` in a future major version.\n * Import `isElement` from `@sentry/browser-utils` instead.\n */\nexport function isElement(wat: unknown): boolean {\n  return typeof Element !== 'undefined' && isInstanceOf(wat, Element);\n}\n\n/**\n * Checks whether given value's type is an regexp\n * {@link isRegExp}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n */\nexport function isRegExp(wat: unknown): wat is RegExp {\n  return isBuiltin(wat, 'RegExp');\n}\n\n/**\n * Checks whether given value has a then function.\n * @param wat A value to be checked.\n */\nexport function isThenable(wat: any): wat is PromiseLike<any> {\n  // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n  return Boolean(wat?.then && typeof wat.then === 'function');\n}\n\n/**\n * Checks whether given value's type is a React SyntheticEvent\n * {@link isSyntheticEvent}.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n * @deprecated This is React-specific and will be removed from `@sentry/core` in a future major version.\n * Use the equivalent helper that ships with `@sentry/react` instead.\n */\nexport function isSyntheticEvent(wat: unknown): boolean {\n  return isPlainObject(wat) && 'nativeEvent' in wat && 'preventDefault' in wat && 'stopPropagation' in wat;\n}\n\n/**\n * Checks whether given value's type is an instance of provided constructor.\n * {@link isInstanceOf}.\n *\n * @param wat A value to be checked.\n * @param base A constructor to be used in a check.\n * @returns A boolean representing the result.\n */\ntype Constructor<T> = { new (...args: never[]): T };\n\nexport function isInstanceOf<T>(wat: unknown, base: Constructor<T>): wat is T;\nexport function isInstanceOf(wat: unknown, base: unknown): boolean;\nexport function isInstanceOf<T>(wat: unknown, base: unknown): wat is T {\n  try {\n    return wat instanceof (base as Constructor<T>);\n  } catch {\n    return false;\n  }\n}\n\n/**\n * Checks whether given value's type is a Vue ViewModel or a VNode.\n *\n * @param wat A value to be checked.\n * @returns A boolean representing the result.\n * @deprecated This is Vue-specific and will be removed from `@sentry/core` in a future major version.\n * Use the equivalent helper that ships with `@sentry/vue` instead.\n */\nexport function isVueViewModel(wat: unknown): wat is VueViewModel | VNode {\n  // Not using Object.prototype.toString because in Vue 3 it would read the instance's Symbol(Symbol.toStringTag) property.\n  // We also need to check for __v_isVNode because Vue 3 component render instances have an internal __v_isVNode property.\n  return !!(\n    typeof wat === 'object' &&\n    wat !== null &&\n    ((wat as VueViewModel).__isVue || (wat as VueViewModel)._isVue || (wat as { __v_isVNode?: boolean }).__v_isVNode)\n  );\n}\n\n/**\n * Checks whether the given parameter is a Standard Web API Request instance.\n *\n * Returns false if Request is not available in the current runtime.\n */\nexport function isRequest(request: unknown): request is Request {\n  return typeof Request !== 'undefined' && isInstanceOf(request, Request);\n}\n","import { addHandler, isString, maybeInstrument, timestampInSeconds, triggerHandlers } from '@sentry/core';\nimport type { HandlerDataXhr, SentryWrappedXMLHttpRequest } from '../types';\nimport { WINDOW } from '../types';\n\nexport const SENTRY_XHR_DATA_KEY = '__sentry_xhr_v3__';\n\ntype WindowWithXhr = Window & { XMLHttpRequest?: typeof XMLHttpRequest };\n\n/**\n * Add an instrumentation handler for when an XHR request happens.\n * The handler function is called once when the request starts and once when it ends,\n * which can be identified by checking if it has an `endTimestamp`.\n *\n * Use at your own risk, this might break without changelog notice, only used internally.\n * @hidden\n */\nexport function addXhrInstrumentationHandler(handler: (data: HandlerDataXhr) => void): void {\n  const type = 'xhr';\n  addHandler(type, handler);\n  maybeInstrument(type, instrumentXHR);\n}\n\n/** Exported only for tests. */\nexport function instrumentXHR(): void {\n  if (!(WINDOW as WindowWithXhr).XMLHttpRequest) {\n    return;\n  }\n\n  const xhrproto = XMLHttpRequest.prototype;\n\n  // eslint-disable-next-line @typescript-eslint/unbound-method\n  xhrproto.open = new Proxy(xhrproto.open, {\n    apply(\n      originalOpen,\n      xhrOpenThisArg: XMLHttpRequest & SentryWrappedXMLHttpRequest,\n      xhrOpenArgArray:\n        | [method: string, url: string | URL]\n        | [method: string, url: string | URL, async: boolean, username?: string | null, password?: string | null],\n    ) {\n      // NOTE: If you are a Sentry user, and you are seeing this stack frame,\n      //       it means the error, that was caused by your XHR call did not\n      //       have a stack trace. If you are using HttpClient integration,\n      //       this is the expected behavior, as we are using this virtual error to capture\n      //       the location of your XHR call, and group your HttpClient events accordingly.\n      let virtualError: Error | undefined = new Error();\n\n      const startTimestamp = timestampInSeconds() * 1000;\n\n      // open() should always be called with two or more arguments\n      // But to be on the safe side, we actually validate this and bail out if we don't have a method & url\n      const method = isString(xhrOpenArgArray[0]) ? xhrOpenArgArray[0].toUpperCase() : undefined;\n      const url = parseXhrUrlArg(xhrOpenArgArray[1]);\n\n      if (!method || !url) {\n        return originalOpen.apply(xhrOpenThisArg, xhrOpenArgArray);\n      }\n\n      xhrOpenThisArg[SENTRY_XHR_DATA_KEY] = {\n        method,\n        url,\n        request_headers: {},\n      };\n\n      // if Sentry key appears in URL, don't capture it as a request\n      if (method === 'POST' && url.match(/sentry_key/)) {\n        xhrOpenThisArg.__sentry_own_request__ = true;\n      }\n\n      const onreadystatechangeHandler: () => void = () => {\n        // For whatever reason, this is not the same instance here as from the outer method\n        const xhrInfo = xhrOpenThisArg[SENTRY_XHR_DATA_KEY];\n\n        if (!xhrInfo) {\n          return;\n        }\n\n        if (xhrOpenThisArg.readyState === 4) {\n          try {\n            // touching statusCode in some platforms throws\n            // an exception\n            xhrInfo.status_code = xhrOpenThisArg.status;\n          } catch {\n            /* do nothing */\n          }\n\n          const handlerData: HandlerDataXhr = {\n            endTimestamp: timestampInSeconds() * 1000,\n            startTimestamp,\n            xhr: xhrOpenThisArg,\n            virtualError,\n          };\n          triggerHandlers('xhr', handlerData);\n\n          // An unformatted stack keeps its raw frames, and each frame keeps its receiver alive. For a request\n          // opened from the previous one's `readystatechange` callback that receiver is the previous\n          // XMLHttpRequest, so holding on would chain every completed request to the one still in flight.\n          virtualError = undefined;\n\n          // In the `addEventListener` branch below this is the only `readystatechange` listener we add, so\n          // detach it once the request is done. It's a no-op in the `onreadystatechange` proxy branch.\n          xhrOpenThisArg.removeEventListener('readystatechange', onreadystatechangeHandler);\n        }\n      };\n\n      if ('onreadystatechange' in xhrOpenThisArg && typeof xhrOpenThisArg.onreadystatechange === 'function') {\n        xhrOpenThisArg.onreadystatechange = new Proxy(xhrOpenThisArg.onreadystatechange, {\n          apply(originalOnreadystatechange, onreadystatechangeThisArg, onreadystatechangeArgArray: unknown[]) {\n            onreadystatechangeHandler();\n            return originalOnreadystatechange.apply(onreadystatechangeThisArg, onreadystatechangeArgArray);\n          },\n        });\n      } else {\n        xhrOpenThisArg.addEventListener('readystatechange', onreadystatechangeHandler);\n      }\n\n      // Intercepting `setRequestHeader` to access the request headers of XHR instance.\n      // This will only work for user/library defined headers, not for the default/browser-assigned headers.\n      // Request cookies are also unavailable for XHR, as `Cookie` header can't be defined by `setRequestHeader`.\n      xhrOpenThisArg.setRequestHeader = new Proxy(xhrOpenThisArg.setRequestHeader, {\n        apply(\n          originalSetRequestHeader,\n          setRequestHeaderThisArg: SentryWrappedXMLHttpRequest,\n          setRequestHeaderArgArray: unknown[],\n        ) {\n          const [header, value] = setRequestHeaderArgArray;\n\n          const xhrInfo = setRequestHeaderThisArg[SENTRY_XHR_DATA_KEY];\n\n          if (xhrInfo && isString(header) && isString(value)) {\n            xhrInfo.request_headers[header.toLowerCase()] = value;\n          }\n\n          return originalSetRequestHeader.apply(setRequestHeaderThisArg, setRequestHeaderArgArray);\n        },\n      });\n\n      return originalOpen.apply(xhrOpenThisArg, xhrOpenArgArray);\n    },\n  });\n\n  // eslint-disable-next-line @typescript-eslint/unbound-method\n  xhrproto.send = new Proxy(xhrproto.send, {\n    apply(originalSend, sendThisArg: XMLHttpRequest & SentryWrappedXMLHttpRequest, sendArgArray: unknown[]) {\n      const sentryXhrData = sendThisArg[SENTRY_XHR_DATA_KEY];\n\n      if (!sentryXhrData) {\n        return originalSend.apply(sendThisArg, sendArgArray);\n      }\n\n      if (sendArgArray[0] !== undefined) {\n        sentryXhrData.body = sendArgArray[0];\n      }\n\n      const handlerData: HandlerDataXhr = {\n        startTimestamp: timestampInSeconds() * 1000,\n        xhr: sendThisArg,\n      };\n      triggerHandlers('xhr', handlerData);\n\n      return originalSend.apply(sendThisArg, sendArgArray);\n    },\n  });\n}\n\n/**\n * Parses the URL argument of a XHR method to a string.\n *\n * See: https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/open#url\n * url: A string or any other object with a stringifier — including a URL object — that provides the URL of the resource to send the request to.\n *\n * @param url - The URL argument of an XHR method\n * @returns The parsed URL string or undefined if the URL is invalid\n */\nfunction parseXhrUrlArg(url: unknown): string | undefined {\n  if (isString(url)) {\n    return url;\n  }\n\n  try {\n    // If the passed in argument is not a string, it should have a `toString` method as a stringifier.\n    // If that fails, we just return undefined (like in IE11 where URL is not available)\n    return (url as URL).toString();\n  } catch {} // eslint-disable-line no-empty\n\n  return undefined;\n}\n","import { addHandler, fill, maybeInstrument, triggerHandlers } from '@sentry/core';\nimport type { HandlerDataHistory } from '../types';\nimport { WINDOW } from '../types';\n\nlet lastHref: string | undefined;\n\n/**\n * Tells whether current environment supports History API\n * {@link supportsHistory}.\n *\n * @returns Answer to the given question.\n */\nexport function supportsHistory(): boolean {\n  return 'history' in WINDOW && !!WINDOW.history;\n}\n\n/**\n * Add an instrumentation handler for when a fetch request happens.\n * The handler function is called once when the request starts and once when it ends,\n * which can be identified by checking if it has an `endTimestamp`.\n *\n * Use at your own risk, this might break without changelog notice, only used internally.\n * @hidden\n */\nexport function addHistoryInstrumentationHandler(handler: (data: HandlerDataHistory) => void): void {\n  const type = 'history';\n  addHandler(type, handler);\n  maybeInstrument(type, instrumentHistory);\n}\n\n/**\n * Exported just for testing\n */\nexport function instrumentHistory(): void {\n  // The `popstate` event may also be triggered on `pushState`, but it may not always reliably be emitted by the browser\n  // Which is why we also monkey-patch methods below, in addition to this\n  WINDOW.addEventListener('popstate', () => {\n    const to = WINDOW.location.href;\n    // keep track of the current URL state, as we always receive only the updated state\n    const from = lastHref;\n    lastHref = to;\n\n    if (from === to) {\n      return;\n    }\n\n    const handlerData = { from, to } satisfies HandlerDataHistory;\n    triggerHandlers('history', handlerData);\n  });\n\n  // Just guard against this not being available, in weird environments\n  if (!supportsHistory()) {\n    return;\n  }\n\n  function historyReplacementFunction(originalHistoryFunction: () => void): () => void {\n    return function (this: History, ...args: unknown[]): void {\n      const url = args.length > 2 ? args[2] : undefined;\n      if (url) {\n        const from = lastHref;\n\n        // Ensure the URL is absolute\n        // this can be either a path, then it is relative to the current origin\n        // or a full URL of the current origin - other origins are not allowed\n        // See: https://developer.mozilla.org/en-US/docs/Web/API/History/pushState#url\n        // coerce to string (this is what pushState does)\n        const to = getAbsoluteUrl(String(url));\n\n        // keep track of the current URL state, as we always receive only the updated state\n        lastHref = to;\n\n        if (from === to) {\n          return originalHistoryFunction.apply(this, args);\n        }\n\n        const handlerData = { from, to } satisfies HandlerDataHistory;\n        triggerHandlers('history', handlerData);\n      }\n      return originalHistoryFunction.apply(this, args);\n    };\n  }\n\n  fill(WINDOW.history, 'pushState', historyReplacementFunction);\n  fill(WINDOW.history, 'replaceState', historyReplacementFunction);\n}\n\nfunction getAbsoluteUrl(urlOrPath: string): string {\n  try {\n    const url = new URL(urlOrPath, WINDOW.location.origin);\n    return url.toString();\n  } catch {\n    // fallback, just do nothing\n    return urlOrPath;\n  }\n}\n","import { isString } from '@sentry/core';\n\nconst DEFAULT_MAX_STRING_LENGTH = 80;\n\ntype SimpleNode = {\n  parentNode: SimpleNode;\n} | null;\n\n// Native DOM accessors cached at module load. Calling these instead of reading\n// instance properties bypasses user-defined getters that shadow the prototypes.\n// Stored unbound and rebound via .call(el) — the unbound-method lint is expected.\n// See https://github.com/getsentry/sentry-javascript/issues/21353\ntype AccessorKey = 'parentNode' | 'tagName' | 'id' | 'className' | 'getAttribute' | 'dataset';\nconst accessors: Partial<Record<AccessorKey, Function>> = {};\n\n// oxlint-disable typescript/unbound-method\ntry {\n  if (typeof Node !== 'undefined') {\n    accessors.parentNode = Object.getOwnPropertyDescriptor(Node.prototype, 'parentNode')!.get!;\n  }\n  if (typeof Element !== 'undefined') {\n    accessors.tagName = Object.getOwnPropertyDescriptor(Element.prototype, 'tagName')!.get!;\n    accessors.id = Object.getOwnPropertyDescriptor(Element.prototype, 'id')!.get!;\n    accessors.className = Object.getOwnPropertyDescriptor(Element.prototype, 'className')!.get!;\n    accessors.getAttribute = Element.prototype.getAttribute;\n  }\n  if (typeof HTMLElement !== 'undefined') {\n    accessors.dataset = Object.getOwnPropertyDescriptor(HTMLElement.prototype, 'dataset')!.get!;\n  }\n} catch {\n  // Polyfilled or stubbed prototypes may not have the expected descriptors.\n  // _safeRead falls back to direct property access.\n}\n// oxlint-enable typescript/unbound-method\n\nfunction _safeRead<T>(el: unknown, prop: AccessorKey, arg?: string): T {\n  const fn = accessors[prop];\n  if (fn) {\n    try {\n      return fn.call(el, arg) as T;\n    } catch {\n      // Fall through to direct access\n    }\n  }\n  const val = (el as Record<string, unknown>)[prop];\n  return typeof val === 'function' ? val.call(el, arg) : (val as T);\n}\n\n/**\n * Given a child DOM element, returns a query-selector statement describing that\n * and its ancestors\n * e.g. [HTMLElement] => body > div > input#foo.btn[name=baz]\n * @returns generated DOM path\n */\nexport function htmlTreeAsString(\n  elem: unknown,\n  options: string[] | { keyAttrs?: string[]; maxStringLength?: number } = {},\n): string {\n  if (!elem) {\n    return '<unknown>';\n  }\n\n  // try/catch both:\n  // - accessing event.target (see getsentry/raven-js#838, #768)\n  // - `htmlTreeAsString` because it's complex, and just accessing the DOM incorrectly\n  // - can throw an exception in some circumstances.\n  try {\n    let currentElem = elem as SimpleNode;\n    const MAX_TRAVERSE_HEIGHT = 5;\n    const out = [];\n    let height = 0;\n    let len = 0;\n    const separator = ' > ';\n    const sepLength = separator.length;\n    let nextStr;\n    const keyAttrs = Array.isArray(options) ? options : options.keyAttrs;\n    const maxStringLength = (!Array.isArray(options) && options.maxStringLength) || DEFAULT_MAX_STRING_LENGTH;\n\n    while (currentElem && height++ < MAX_TRAVERSE_HEIGHT) {\n      nextStr = _htmlElementAsString(currentElem, keyAttrs);\n      // bail out if\n      // - nextStr is the 'html' element\n      // - the length of the string that would be created exceeds maxStringLength\n      //   (ignore this limit if we are on the first iteration)\n      if (nextStr === 'html' || (height > 1 && len + out.length * sepLength + nextStr.length >= maxStringLength)) {\n        break;\n      }\n\n      out.push(nextStr);\n\n      len += nextStr.length;\n      currentElem = _safeRead<SimpleNode>(currentElem, 'parentNode');\n    }\n\n    return out.reverse().join(separator);\n  } catch {\n    return '<unknown>';\n  }\n}\n\n/**\n * Returns a simple, query-selector representation of a DOM element\n * e.g. [HTMLElement] => input#foo.btn[name=baz]\n * @returns generated DOM path\n */\nfunction _htmlElementAsString(el: unknown, keyAttrs?: string[]): string {\n  const out = [];\n\n  const tagName = _safeRead<string | undefined>(el, 'tagName');\n  if (!tagName) {\n    return '';\n  }\n\n  if (typeof HTMLElement !== 'undefined') {\n    // If using the component name annotation plugin, this value may be available on the DOM node\n    if (el instanceof HTMLElement) {\n      const dataset = _safeRead<DOMStringMap | undefined>(el, 'dataset');\n      if (dataset) {\n        if (dataset['sentryComponent']) {\n          return dataset['sentryComponent'];\n        }\n        if (dataset['sentryElement']) {\n          return dataset['sentryElement'];\n        }\n      }\n    }\n  }\n\n  out.push(tagName.toLowerCase());\n\n  // Pairs of attribute keys defined in `serializeAttribute` and their values on element.\n  const keyAttrPairs = keyAttrs?.length\n    ? keyAttrs\n        .filter(keyAttr => _safeRead<string | null>(el, 'getAttribute', keyAttr))\n        .map(keyAttr => [keyAttr, _safeRead<string | null>(el, 'getAttribute', keyAttr)])\n    : null;\n\n  if (keyAttrPairs?.length) {\n    keyAttrPairs.forEach(keyAttrPair => {\n      out.push(`[${keyAttrPair[0]}=\"${keyAttrPair[1]}\"]`);\n    });\n  } else {\n    const id = _safeRead<string | undefined>(el, 'id');\n    if (id) {\n      out.push(`#${id}`);\n    }\n\n    const className = _safeRead<string | undefined>(el, 'className');\n    if (className && isString(className)) {\n      const classes = className.split(/\\s+/);\n      for (const c of classes) {\n        out.push(`.${c}`);\n      }\n    }\n  }\n  for (const k of ['aria-label', 'type', 'name', 'title', 'alt']) {\n    const attr = _safeRead<string | null>(el, 'getAttribute', k);\n    if (attr) {\n      out.push(`[${k}=\"${attr}\"]`);\n    }\n  }\n\n  return out.join('');\n}\n","import { WINDOW } from './types';\n\n/**\n * A safe form of location.href.\n */\nexport function getLocationHref(): string {\n  try {\n    return WINDOW.document?.location.href ?? '';\n  } catch {\n    return '';\n  }\n}\n","import type { HandlerDataError, Mechanism, WrappedFunction } from '@sentry/core';\nimport {\n  addExceptionMechanism,\n  addExceptionTypeValue,\n  addNonEnumerableProperty,\n  captureException,\n  getOriginalFunction,\n  GLOBAL_OBJ,\n  markFunctionWrapped,\n  withScope,\n} from '@sentry/core';\nimport { getLocationHref } from '@sentry/browser-utils';\n\nexport const WINDOW = GLOBAL_OBJ as typeof GLOBAL_OBJ & Window;\n\nlet ignoreOnError: number = 0;\n\ntype ErrorReport = Pick<HandlerDataError, 'msg' | 'url' | 'line' | 'column'>;\n\nconst ignoredErrorReports: ErrorReport[] = [];\n\n/**\n * @hidden\n */\nexport function shouldIgnoreOnError(data?: HandlerDataError): boolean {\n  if (ignoreOnError > 0) {\n    return true;\n  }\n\n  const index = data ? ignoredErrorReports.findIndex(report => isSameErrorReport(report, data)) : -1;\n  if (index === -1) {\n    return false;\n  }\n\n  ignoredErrorReports.splice(index, 1);\n  return true;\n}\n\n/**\n * Skips the next `onerror` report that matches `report`, once. A report that\n * never arrives is forgotten after the current task.\n *\n * @hidden\n */\nexport function ignoreNextOnErrorMatching(report: ErrorReport): void {\n  ignoredErrorReports.push(report);\n  setTimeout(() => {\n    const index = ignoredErrorReports.indexOf(report);\n    if (index !== -1) {\n      ignoredErrorReports.splice(index, 1);\n    }\n  });\n}\n\nfunction isSameErrorReport(a: ErrorReport, b: ErrorReport): boolean {\n  return a.msg === b.msg && a.url === b.url && a.line === b.line && a.column === b.column;\n}\n\n/**\n * @hidden\n */\nexport function ignoreNextOnError(): void {\n  // onerror should trigger before setTimeout\n  ignoreOnError++;\n  setTimeout(() => {\n    ignoreOnError--;\n  });\n}\n\n// eslint-disable-next-line @typescript-eslint/ban-types\ntype WrappableFunction = Function;\n\nexport function wrap<T extends WrappableFunction>(\n  fn: T,\n  options?: {\n    mechanism?: Mechanism;\n  },\n): WrappedFunction<T>;\nexport function wrap<NonFunction>(\n  fn: NonFunction,\n  options?: {\n    mechanism?: Mechanism;\n  },\n): NonFunction;\n/**\n * Instruments the given function and sends an event to Sentry every time the\n * function throws an exception.\n *\n * @param fn A function to wrap. It is generally safe to pass an unbound function, because the returned wrapper always\n * has a correct `this` context.\n * @returns The wrapped function.\n * @hidden\n */\nexport function wrap<T extends WrappableFunction, NonFunction>(\n  fn: T | NonFunction,\n  options: {\n    mechanism?: Mechanism;\n  } = {},\n): NonFunction | WrappedFunction<T> {\n  // for future readers what this does is wrap a function and then create\n  // a bi-directional wrapping between them.\n  //\n  // example: wrapped = wrap(original);\n  //  original.__sentry_wrapped__ -> wrapped\n  //  wrapped.__sentry_original__ -> original\n\n  function isFunction(fn: T | NonFunction): fn is T {\n    return typeof fn === 'function';\n  }\n\n  if (!isFunction(fn)) {\n    return fn;\n  }\n\n  try {\n    // If we're dealing with a function that was previously wrapped, return the original wrapper.\n    // Check via hasOwnProperty so a `__sentry_wrapped__` inherited from a wrapped `Function.prototype`\n    // is not mistaken for a real wrapper.\n    const hasOwnWrapper = Object.prototype.hasOwnProperty.call(fn, '__sentry_wrapped__');\n    if (hasOwnWrapper) {\n      const wrapper = (fn as WrappedFunction<T>).__sentry_wrapped__;\n      if (typeof wrapper === 'function') {\n        return wrapper;\n      } else {\n        // If we find that the `__sentry_wrapped__` function is not a function at the time of accessing it, it means\n        // that something messed with it. In that case we want to return the originally passed function.\n        return fn;\n      }\n    }\n\n    // We don't wanna wrap it twice\n    if (getOriginalFunction(fn)) {\n      return fn;\n    }\n  } catch {\n    // Just accessing custom props in some Selenium environments\n    // can cause a \"Permission denied\" exception (see raven-js#495).\n    // Bail on wrapping and return the function as-is (defers to window.onerror).\n    return fn;\n  }\n\n  // Wrap the function itself\n  // It is important that `sentryWrapped` is not an arrow function to preserve the context of `this`\n  const sentryWrapped = function (this: unknown, ...args: unknown[]): unknown {\n    // Track depth on GLOBAL_OBJ so the thirdPartyErrorFilterIntegration (in @sentry/core) can detect\n    // that processEvent is running inside a sentryWrapped call, even with minified/bundled code.\n    GLOBAL_OBJ._sentryWrappedDepth = (GLOBAL_OBJ._sentryWrappedDepth || 0) + 1;\n    try {\n      // Also wrap arguments that are themselves functions\n      const wrappedArguments = args.map(arg => wrap(arg, options));\n\n      // Attempt to invoke user-land function\n      // NOTE: If you are a Sentry user, and you are seeing this stack frame, it\n      //       means the sentry.javascript SDK caught an error invoking your application code. This\n      //       is expected behavior and NOT indicative of a bug with sentry.javascript.\n      return fn.apply(this, wrappedArguments);\n    } catch (ex) {\n      ignoreNextOnError();\n\n      withScope(scope => {\n        scope.addEventProcessor(event => {\n          if (options.mechanism) {\n            addExceptionTypeValue(event, undefined, undefined);\n            addExceptionMechanism(event, options.mechanism);\n          }\n\n          event.extra = {\n            ...event.extra,\n            arguments: args,\n          };\n\n          return event;\n        });\n\n        // no need to add a mechanism here, we already add it via an event processor above\n        captureException(ex);\n      });\n\n      throw ex;\n    } finally {\n      GLOBAL_OBJ._sentryWrappedDepth = (GLOBAL_OBJ._sentryWrappedDepth || 0) - 1;\n    }\n  } as unknown as WrappedFunction<T>;\n\n  // Wrap the wrapped function in a proxy, to ensure any other properties of the original function remain available\n  try {\n    for (const property in fn) {\n      if (Object.prototype.hasOwnProperty.call(fn, property)) {\n        sentryWrapped[property as keyof T] = fn[property as keyof T];\n      }\n    }\n  } catch {\n    // Accessing some objects may throw\n    // ref: https://github.com/getsentry/sentry-javascript/issues/1168\n  }\n\n  // Signal that this function has been wrapped/filled already\n  // for both debugging and to prevent it to being wrapped/filled twice\n  markFunctionWrapped(sentryWrapped, fn);\n\n  addNonEnumerableProperty(fn, '__sentry_wrapped__', sentryWrapped);\n\n  // Restore original function name (not all browsers allow that)\n  try {\n    // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n    const descriptor = Object.getOwnPropertyDescriptor(sentryWrapped, 'name')!;\n    if (descriptor.configurable) {\n      Object.defineProperty(sentryWrapped, 'name', {\n        get(): string {\n          return fn.name;\n        },\n      });\n    }\n  } catch {\n    // This may throw if e.g. the descriptor does not exist, or a browser does not allow redefining `name`.\n    // to save some bytes we simply try-catch this\n  }\n\n  return sentryWrapped;\n}\n\n/**\n * Get HTTP request data from the current page.\n */\nexport function getHttpRequestData(): { url: string; headers: Record<string, string> } {\n  // grab as much info as exists and add it to the event\n  const url = getLocationHref();\n  const { referrer } = WINDOW.document || {};\n  const { userAgent } = WINDOW.navigator || {};\n\n  const headers = {\n    ...(referrer && { Referer: referrer }),\n    ...(userAgent && { 'User-Agent': userAgent }),\n  };\n  const request = {\n    url,\n    headers,\n  };\n\n  return request;\n}\n","/* eslint-disable max-lines */\n\nimport type {\n  Breadcrumb,\n  Client,\n  Event as SentryEvent,\n  FetchBreadcrumbData,\n  FetchBreadcrumbHint,\n  HandlerDataFetch,\n  IntegrationFn,\n} from '@sentry/core';\nimport {\n  addBreadcrumb,\n  addFetchInstrumentationHandler,\n  debug,\n  defineIntegration,\n  getBreadcrumbLogLevelFromHttpStatusCode,\n  getClient,\n  getEventDescription,\n  parseUrl,\n} from '@sentry/core';\nimport type { FetchHint, HandlerDataDom, HandlerDataHistory, HandlerDataXhr } from '@sentry/browser-utils';\nimport {\n  addClickKeypressInstrumentationHandler,\n  addHistoryInstrumentationHandler,\n  addXhrInstrumentationHandler,\n  htmlTreeAsString,\n  getComponentName,\n  SENTRY_XHR_DATA_KEY,\n} from '@sentry/browser-utils';\nimport type { XhrBreadcrumbData, XhrBreadcrumbHint } from '@sentry/core/browser';\nimport { DEBUG_BUILD } from '../debug-build';\nimport { WINDOW } from '../helpers';\n\ninterface BreadcrumbsOptions {\n  dom:\n    | boolean\n    | {\n        serializeAttribute?: string | string[];\n        maxStringLength?: number;\n      };\n  fetch: boolean;\n  history: boolean;\n  sentry: boolean;\n  xhr: boolean;\n}\n\n/** maxStringLength gets capped to prevent 100 breadcrumbs exceeding 1MB event payload size */\nconst MAX_ALLOWED_STRING_LENGTH = 1024;\n\nconst INTEGRATION_NAME = 'Breadcrumbs' as const;\n\nconst _breadcrumbsIntegration = ((options: Partial<BreadcrumbsOptions> = {}) => {\n  const _options = {\n    dom: true,\n    fetch: true,\n    history: true,\n    sentry: true,\n    xhr: true,\n    ...options,\n  };\n\n  return {\n    name: INTEGRATION_NAME,\n    setup(client) {\n      if (_options.dom) {\n        addClickKeypressInstrumentationHandler(_getDomBreadcrumbHandler(client, _options.dom));\n      }\n      if (_options.xhr) {\n        addXhrInstrumentationHandler(_getXhrBreadcrumbHandler(client));\n      }\n      if (_options.fetch) {\n        addFetchInstrumentationHandler(_getFetchBreadcrumbHandler(client));\n      }\n      if (_options.history) {\n        addHistoryInstrumentationHandler(_getHistoryBreadcrumbHandler(client));\n      }\n      if (_options.sentry) {\n        client.on('beforeSendEvent', _getSentryBreadcrumbHandler(client));\n      }\n    },\n  };\n}) satisfies IntegrationFn;\n\nexport const breadcrumbsIntegration = defineIntegration(_breadcrumbsIntegration);\n\n/**\n * Adds a breadcrumb for Sentry events or transactions if this option is enabled.\n */\nfunction _getSentryBreadcrumbHandler(client: Client): (event: SentryEvent) => void {\n  return function addSentryBreadcrumb(event: SentryEvent): void {\n    if (getClient() !== client) {\n      return;\n    }\n\n    addBreadcrumb(\n      {\n        category: `sentry.${event.type === 'transaction' ? 'transaction' : 'event'}`,\n        event_id: event.event_id,\n        level: event.level,\n        message: getEventDescription(event),\n      },\n      {\n        event,\n      },\n    );\n  };\n}\n\n/**\n * A HOC that creates a function that creates breadcrumbs from DOM API calls.\n * This is a HOC so that we get access to dom options in the closure.\n */\nfunction _getDomBreadcrumbHandler(\n  client: Client,\n  dom: BreadcrumbsOptions['dom'],\n): (handlerData: HandlerDataDom) => void {\n  return function _innerDomBreadcrumb(handlerData: HandlerDataDom): void {\n    if (getClient() !== client) {\n      return;\n    }\n\n    let target;\n    let componentName;\n    let keyAttrs = typeof dom === 'object' ? dom.serializeAttribute : undefined;\n\n    let maxStringLength =\n      typeof dom === 'object' && typeof dom.maxStringLength === 'number' ? dom.maxStringLength : undefined;\n    if (maxStringLength && maxStringLength > MAX_ALLOWED_STRING_LENGTH) {\n      DEBUG_BUILD &&\n        debug.warn(\n          `\\`dom.maxStringLength\\` cannot exceed ${MAX_ALLOWED_STRING_LENGTH}, but a value of ${maxStringLength} was configured. Sentry will use ${MAX_ALLOWED_STRING_LENGTH} instead.`,\n        );\n      maxStringLength = MAX_ALLOWED_STRING_LENGTH;\n    }\n\n    if (typeof keyAttrs === 'string') {\n      keyAttrs = [keyAttrs];\n    }\n\n    // Accessing event.target can throw (see getsentry/raven-js#838, #768)\n    try {\n      const event = handlerData.event as Event | Node;\n      const element = _isEvent(event) ? event.target : event;\n\n      target = htmlTreeAsString(element, { keyAttrs, maxStringLength });\n      componentName = getComponentName(element);\n    } catch {\n      target = '<unknown>';\n    }\n\n    if (target.length === 0) {\n      return;\n    }\n\n    const breadcrumb: Breadcrumb = {\n      category: `ui.${handlerData.name}`,\n      message: target,\n    };\n\n    if (componentName) {\n      breadcrumb.data = { 'ui.component_name': componentName };\n    }\n\n    addBreadcrumb(breadcrumb, {\n      event: handlerData.event,\n      name: handlerData.name,\n      global: handlerData.global,\n    });\n  };\n}\n\n/**\n * Creates breadcrumbs from XHR API calls\n */\nfunction _getXhrBreadcrumbHandler(client: Client): (handlerData: HandlerDataXhr) => void {\n  return function _xhrBreadcrumb(handlerData: HandlerDataXhr): void {\n    if (getClient() !== client) {\n      return;\n    }\n\n    const { startTimestamp, endTimestamp } = handlerData;\n\n    const sentryXhrData = handlerData.xhr[SENTRY_XHR_DATA_KEY];\n\n    // We only capture complete, non-sentry requests\n    if (!startTimestamp || !endTimestamp || !sentryXhrData) {\n      return;\n    }\n\n    const { method, url, status_code, body } = sentryXhrData;\n\n    const data: XhrBreadcrumbData = {\n      method,\n      url,\n      status_code,\n    };\n\n    const hint: XhrBreadcrumbHint = {\n      xhr: handlerData.xhr,\n      input: body,\n      startTimestamp,\n      endTimestamp,\n    };\n\n    const breadcrumb = {\n      category: 'xhr',\n      data,\n      type: 'http',\n      level: getBreadcrumbLogLevelFromHttpStatusCode(status_code),\n    };\n\n    client.emit('beforeOutgoingRequestBreadcrumb', breadcrumb, hint);\n\n    addBreadcrumb(breadcrumb, hint);\n  };\n}\n\n/**\n * Creates breadcrumbs from fetch API calls\n */\nfunction _getFetchBreadcrumbHandler(client: Client): (handlerData: HandlerDataFetch) => void {\n  return function _fetchBreadcrumb(handlerData: HandlerDataFetch): void {\n    if (getClient() !== client) {\n      return;\n    }\n\n    const { startTimestamp, endTimestamp } = handlerData;\n\n    // We only capture complete fetch requests\n    if (!endTimestamp) {\n      return;\n    }\n\n    if (handlerData.fetchData.url.match(/sentry_key/) && handlerData.fetchData.method === 'POST') {\n      // We will not create breadcrumbs for fetch requests that contain `sentry_key` (internal sentry requests)\n      return;\n    }\n\n    if (handlerData.error) {\n      const hint: FetchBreadcrumbHint = {\n        data: handlerData.error,\n        input: handlerData.args,\n        startTimestamp,\n        endTimestamp,\n      };\n\n      const breadcrumb = {\n        category: 'fetch',\n        data: handlerData.fetchData,\n        level: 'error',\n        type: 'http',\n      } satisfies Breadcrumb;\n\n      client.emit('beforeOutgoingRequestBreadcrumb', breadcrumb, hint as FetchHint);\n\n      addBreadcrumb(breadcrumb, hint);\n    } else {\n      const response = handlerData.response as Response | undefined;\n      const data: FetchBreadcrumbData = {\n        ...handlerData.fetchData,\n        status_code: response?.status,\n      };\n\n      const hint: FetchBreadcrumbHint = {\n        input: handlerData.args,\n        response,\n        startTimestamp,\n        endTimestamp,\n      };\n\n      const breadcrumb = {\n        category: 'fetch',\n        data,\n        type: 'http',\n        level: getBreadcrumbLogLevelFromHttpStatusCode(data.status_code),\n      };\n\n      client.emit('beforeOutgoingRequestBreadcrumb', breadcrumb, hint as FetchHint);\n\n      addBreadcrumb(breadcrumb, hint);\n    }\n  };\n}\n\n/**\n * Creates breadcrumbs from history API calls\n */\nfunction _getHistoryBreadcrumbHandler(client: Client): (handlerData: HandlerDataHistory) => void {\n  return function _historyBreadcrumb(handlerData: HandlerDataHistory): void {\n    if (getClient() !== client) {\n      return;\n    }\n\n    let from: string | undefined = handlerData.from;\n    let to: string | undefined = handlerData.to;\n    const parsedLoc = parseUrl(WINDOW.location.href);\n    let parsedFrom = from ? parseUrl(from) : undefined;\n    const parsedTo = parseUrl(to);\n\n    // Initial pushState doesn't provide `from` information\n    if (!parsedFrom?.path) {\n      parsedFrom = parsedLoc;\n    }\n\n    // Use only the path component of the URL if the URL matches the current\n    // document (almost all the time when using pushState)\n    if (parsedLoc.protocol === parsedTo.protocol && parsedLoc.host === parsedTo.host) {\n      to = parsedTo.relative;\n    }\n    if (parsedLoc.protocol === parsedFrom.protocol && parsedLoc.host === parsedFrom.host) {\n      from = parsedFrom.relative;\n    }\n\n    addBreadcrumb({\n      category: 'navigation',\n      data: {\n        from,\n        to,\n      },\n    });\n  };\n}\n\nfunction _isEvent(event: unknown): event is Event {\n  return !!event && !!(event as Record<string, unknown>).target;\n}\n","import { GLOBAL_OBJ } from '@sentry/core';\n\ntype SimpleNode = {\n  parentNode: SimpleNode;\n} | null;\n\n/**\n * Given a DOM element, traverses up the tree until it finds the first ancestor node\n * that has the `data-sentry-component` or `data-sentry-element` attribute with `data-sentry-component` taking\n * precedence. This attribute is added at build-time by projects that have the component name annotation plugin installed.\n *\n * @returns a string representation of the component for the provided DOM element, or `null` if not found\n */\nexport function getComponentName(elem: unknown, maxTraverseHeight: number = 5): string | null {\n  // @ts-expect-error WINDOW has HTMLElement\n  if (!GLOBAL_OBJ.HTMLElement) {\n    return null;\n  }\n\n  let currentElem = elem as SimpleNode;\n  for (let i = 0; i < maxTraverseHeight; i++) {\n    if (!currentElem) {\n      return null;\n    }\n\n    if (currentElem instanceof HTMLElement) {\n      if (currentElem.dataset['sentryComponent']) {\n        return currentElem.dataset['sentryComponent'];\n      }\n      if (currentElem.dataset['sentryElement']) {\n        return currentElem.dataset['sentryElement'];\n      }\n    }\n\n    currentElem = currentElem.parentNode;\n  }\n\n  return null;\n}\n","import type { IntegrationFn, WrappedFunction } from '@sentry/core';\nimport { defineIntegration, fill, getFunctionName, getOriginalFunction } from '@sentry/core';\nimport { WINDOW, wrap } from '../helpers';\n\n// Using a comma-separated string and split for smaller bundle size vs an array literal\nconst DEFAULT_EVENT_TARGET =\n  'EventTarget,Window,Node,ApplicationCache,AudioTrackList,BroadcastChannel,ChannelMergerNode,CryptoOperation,EventSource,FileReader,HTMLUnknownElement,IDBDatabase,IDBRequest,IDBTransaction,KeyOperation,MediaController,MessagePort,ModalWindow,Notification,SVGElementInstance,Screen,SharedWorker,TextTrack,TextTrackCue,TextTrackList,WebSocket,WebSocketWorker,Worker,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload'.split(\n    ',',\n  );\n\nconst INTEGRATION_NAME = 'BrowserApiErrors' as const;\n\ntype XMLHttpRequestProp = 'onload' | 'onerror' | 'onprogress' | 'onreadystatechange';\n\ninterface BrowserApiErrorsOptions {\n  setTimeout: boolean;\n  setInterval: boolean;\n  requestAnimationFrame: boolean;\n  XMLHttpRequest: boolean;\n  eventTarget: boolean | string[];\n\n  /**\n   * If you experience issues with this integration causing double-invocations of event listeners,\n   * try setting this option to `true`. It will unregister the original callbacks from the event targets\n   * before adding the instrumented callback.\n   *\n   * @default false\n   */\n  unregisterOriginalCallbacks: boolean;\n}\n\nconst _browserApiErrorsIntegration = ((options: Partial<BrowserApiErrorsOptions> = {}) => {\n  const _options = {\n    XMLHttpRequest: true,\n    eventTarget: true,\n    requestAnimationFrame: true,\n    setInterval: true,\n    setTimeout: true,\n    unregisterOriginalCallbacks: false,\n    ...options,\n  };\n\n  return {\n    name: INTEGRATION_NAME,\n    // TODO: This currently only works for the first client this is setup\n    // We may want to adjust this to check for client etc.\n    setupOnce() {\n      if (_options.setTimeout) {\n        fill(WINDOW, 'setTimeout', _wrapTimeFunction);\n      }\n\n      if (_options.setInterval) {\n        fill(WINDOW, 'setInterval', _wrapTimeFunction);\n      }\n\n      if (_options.requestAnimationFrame) {\n        fill(WINDOW, 'requestAnimationFrame', _wrapRAF);\n      }\n\n      if (_options.XMLHttpRequest && 'XMLHttpRequest' in WINDOW) {\n        fill(XMLHttpRequest.prototype, 'send', _wrapXHR);\n      }\n\n      const eventTargetOption = _options.eventTarget;\n      if (eventTargetOption) {\n        const eventTarget = Array.isArray(eventTargetOption) ? eventTargetOption : DEFAULT_EVENT_TARGET;\n        eventTarget.forEach(target => _wrapEventTarget(target, _options));\n      }\n    },\n  };\n}) satisfies IntegrationFn;\n\n/**\n * Wrap timer functions and event targets to catch errors and provide better meta data.\n */\nexport const browserApiErrorsIntegration = defineIntegration(_browserApiErrorsIntegration);\n\nfunction _wrapTimeFunction(original: () => void): () => number {\n  return function (this: unknown, ...args: unknown[]): number {\n    const originalCallback = args[0];\n    args[0] = wrap(originalCallback, {\n      mechanism: {\n        handled: false,\n        type: `auto.browser.browserapierrors.${getFunctionName(original)}`,\n      },\n    });\n    return original.apply(this, args);\n  };\n}\n\nfunction _wrapRAF(original: () => void): (callback: () => void) => unknown {\n  return function (this: unknown, callback: () => void): () => void {\n    return original.apply(this, [\n      wrap(callback, {\n        mechanism: {\n          data: {\n            handler: getFunctionName(original),\n          },\n          handled: false,\n          type: 'auto.browser.browserapierrors.requestAnimationFrame',\n        },\n      }),\n    ]);\n  };\n}\n\nfunction _wrapXHR(originalSend: () => void): () => void {\n  return function (this: XMLHttpRequest, ...args: unknown[]): void {\n    // eslint-disable-next-line @typescript-eslint/no-this-alias\n    const xhr = this;\n    const xmlHttpRequestProps: XMLHttpRequestProp[] = ['onload', 'onerror', 'onprogress', 'onreadystatechange'];\n\n    xmlHttpRequestProps.forEach(prop => {\n      if (prop in xhr && typeof xhr[prop] === 'function') {\n        fill(xhr, prop, function (original) {\n          const wrapOptions = {\n            mechanism: {\n              data: {\n                handler: getFunctionName(original),\n              },\n              handled: false,\n              type: `auto.browser.browserapierrors.xhr.${prop}`,\n            },\n          };\n\n          // If Instrument integration has been called before BrowserApiErrors, get the name of original function\n          const originalFunction = getOriginalFunction(original);\n          if (originalFunction) {\n            wrapOptions.mechanism.data.handler = getFunctionName(originalFunction);\n          }\n\n          // Otherwise wrap directly\n          return wrap(original, wrapOptions);\n        });\n      }\n    });\n\n    return originalSend.apply(this, args);\n  };\n}\n\nfunction _wrapEventTarget(target: string, integrationOptions: BrowserApiErrorsOptions): void {\n  const globalObject = WINDOW as unknown as Record<string, { prototype?: object }>;\n  const proto = globalObject[target]?.prototype;\n\n  // eslint-disable-next-line no-prototype-builtins\n  if (!proto?.hasOwnProperty?.('addEventListener')) {\n    return;\n  }\n\n  fill(proto, 'addEventListener', function (original: VoidFunction): (\n    ...args: Parameters<typeof WINDOW.addEventListener>\n  ) => ReturnType<typeof WINDOW.addEventListener> {\n    return function (this: unknown, eventName, fn, options): VoidFunction {\n      try {\n        if (isEventListenerObject(fn)) {\n          // ESlint disable explanation:\n          //  First, it is generally safe to call `wrap` with an unbound function. Furthermore, using `.bind()` would\n          //  introduce a bug here, because bind returns a new function that doesn't have our\n          //  flags(like __sentry_original__) attached. `wrap` checks for those flags to avoid unnecessary wrapping.\n          //  Without those flags, every call to addEventListener wraps the function again, causing a memory leak.\n          // eslint-disable-next-line @typescript-eslint/unbound-method\n          fn.handleEvent = wrap(fn.handleEvent, {\n            mechanism: {\n              data: {\n                handler: getFunctionName(fn),\n                target,\n              },\n              handled: false,\n              type: 'auto.browser.browserapierrors.handleEvent',\n            },\n          });\n        }\n      } catch {\n        // can sometimes get 'Permission denied to access property \"handle Event'\n      }\n\n      if (integrationOptions.unregisterOriginalCallbacks) {\n        unregisterOriginalCallback(this, eventName, fn);\n      }\n\n      return original.apply(this, [\n        eventName,\n        wrap(fn, {\n          mechanism: {\n            data: {\n              handler: getFunctionName(fn),\n              target,\n            },\n            handled: false,\n            type: 'auto.browser.browserapierrors.addEventListener',\n          },\n        }),\n        options,\n      ]);\n    };\n  });\n\n  fill(proto, 'removeEventListener', function (originalRemoveEventListener: VoidFunction): (\n    this: unknown,\n    ...args: Parameters<typeof WINDOW.removeEventListener>\n  ) => ReturnType<typeof WINDOW.removeEventListener> {\n    return function (this: unknown, eventName, fn, options): VoidFunction {\n      /**\n       * There are 2 possible scenarios here:\n       *\n       * 1. Someone passes a callback, which was attached prior to Sentry initialization, or by using unmodified\n       * method, eg. `document.addEventListener.call(el, name, handler). In this case, we treat this function\n       * as a pass-through, and call original `removeEventListener` with it.\n       *\n       * 2. Someone passes a callback, which was attached after Sentry was initialized, which means that it was using\n       * our wrapped version of `addEventListener`, which internally calls `wrap` helper.\n       * This helper \"wraps\" whole callback inside a try/catch statement, and attached appropriate metadata to it,\n       * in order for us to make a distinction between wrapped/non-wrapped functions possible.\n       * If a function was wrapped, it has additional property of `__sentry_wrapped__`, holding the handler.\n       *\n       * When someone adds a handler prior to initialization, and then do it again, but after,\n       * then we have to detach both of them. Otherwise, if we'd detach only wrapped one, it'd be impossible\n       * to get rid of the initial handler and it'd stick there forever.\n       */\n      try {\n        // Check via hasOwnProperty so a `__sentry_wrapped__` inherited from a wrapped\n        // `Function.prototype` doesn't cause removal of the wrong handler.\n        if (Object.prototype.hasOwnProperty.call(fn, '__sentry_wrapped__')) {\n          const originalEventHandler = (fn as WrappedFunction).__sentry_wrapped__;\n          if (originalEventHandler) {\n            originalRemoveEventListener.call(this, eventName, originalEventHandler, options);\n          }\n        }\n      } catch {\n        // ignore, accessing __sentry_wrapped__ will throw in some Selenium environments\n      }\n      return originalRemoveEventListener.call(this, eventName, fn, options);\n    };\n  });\n}\n\nfunction isEventListenerObject(obj: unknown): obj is EventListenerObject {\n  return typeof (obj as EventListenerObject).handleEvent === 'function';\n}\n\nfunction unregisterOriginalCallback(target: unknown, eventName: string, fn: EventListenerOrEventListenerObject): void {\n  if (\n    target &&\n    typeof target === 'object' &&\n    'removeEventListener' in target &&\n    typeof target.removeEventListener === 'function'\n  ) {\n    target.removeEventListener(eventName, fn);\n  }\n}\n","/* eslint-disable @typescript-eslint/no-explicit-any */\n/* eslint-disable @typescript-eslint/ban-types */\nimport { DEBUG_BUILD } from '../debug-build';\nimport type { ConsoleLevel, HandlerDataConsole } from '../types/instrument';\nimport { CONSOLE_LEVELS, originalConsoleMethods } from '../utils/debug-logger';\nimport { fill } from '../utils/object';\nimport { stringMatchesSomePattern } from '../utils/string';\nimport { GLOBAL_OBJ } from '../utils/worldwide';\nimport { addHandler, maybeInstrument, triggerHandlers } from './handlers';\nimport { debug } from '../utils/debug-logger';\n\n/**\n * Filter out console messages that match the given strings or regular expressions.\n * These will neither be passed to the handler, and they will also not be logged to the user, unless they have debug enabled.\n * This is a set to avoid duplicate integration setups to add the same filter multiple times.\n */\nconst _filter = new Set<string | RegExp>([]);\n\n/**\n * Add an instrumentation handler for when a console.xxx method is called.\n * Returns a function to remove the handler.\n *\n * Use at your own risk, this might break without changelog notice, only used internally.\n * @hidden\n */\nexport function addConsoleInstrumentationHandler(handler: (data: HandlerDataConsole) => void): () => void {\n  const type = 'console';\n  const removeHandler = addHandler(type, handler);\n  maybeInstrument(type, instrumentConsole);\n  return removeHandler;\n}\n\n/**\n * Add a filter to the console instrumentation to filter out console messages that match the given strings or regular expressions.\n * Returns a function to remove the filter.\n */\nexport function addConsoleInstrumentationFilter(filter: (string | RegExp)[]): () => void {\n  for (const f of filter) {\n    _filter.add(f);\n  }\n\n  return () => {\n    for (const f of filter) {\n      _filter.delete(f);\n    }\n  };\n}\n\n/** Only exported for tests. */\nexport function _INTERNAL_resetConsoleInstrumentationOptions(): void {\n  _filter.clear();\n}\n\n// The console levels *this* copy of the SDK has already wrapped. A copy must wrap each level at\n// most once: re-wrapping overwrites `originalConsoleMethods[level]` with a function that itself\n// reads `originalConsoleMethods[level]`, so calling through to the \"original\" (here and in\n// `consoleSandbox`) re-enters a wrapper indefinitely, ending in a `RangeError: Maximum call stack\n// size exceeded`. This can happen e.g. in React Native when instrumentation state is re-initialized\n// while the console stays wrapped. See getsentry/sentry-react-native SDK-CRASHES-REACT-NATIVE-5HZ.\n// We intentionally track this per copy rather than checking for the shared `__sentry_original__`\n// marker: a *different* SDK copy's wrapper (e.g. separate CDN bundles that each inline\n// `@sentry/core`) is safe to wrap since its call chain resolves down to the native method, and\n// skipping it would silently drop that copy's console handlers (breadcrumbs, `captureConsole`).\nconst instrumentedLevels = new Set<ConsoleLevel>();\n\n/** Only exported for tests. */\nexport function instrumentConsole(): void {\n  if (!('console' in GLOBAL_OBJ)) {\n    return;\n  }\n\n  CONSOLE_LEVELS.forEach(function (level: ConsoleLevel): void {\n    if (instrumentedLevels.has(level) || !(level in GLOBAL_OBJ.console)) {\n      return;\n    }\n\n    instrumentedLevels.add(level);\n\n    fill(GLOBAL_OBJ.console, level, function (originalConsoleMethod: () => any): Function {\n      originalConsoleMethods[level] = originalConsoleMethod;\n\n      return function (...args: any[]): void {\n        const firstArg = args[0];\n        const log = originalConsoleMethods[level];\n\n        const isFiltered = _filter.size && typeof firstArg === 'string' && stringMatchesSomePattern(firstArg, _filter);\n\n        // Only trigger handlers for non-filtered messages\n        if (!isFiltered) {\n          triggerHandlers('console', { args, level });\n        }\n\n        // Only log filtered messages in debug mode\n        if (!isFiltered || (DEBUG_BUILD && debug.isEnabled())) {\n          // Call original console method\n          log?.apply(GLOBAL_OBJ.console, args);\n        }\n      };\n    });\n  });\n}\n","import type { SeverityLevel } from '../types/severity';\n\n/**\n * Converts a string-based level into a `SeverityLevel`, normalizing it along the way.\n *\n * @param level String representation of desired `SeverityLevel`.\n * @returns The `SeverityLevel` corresponding to the given string, or 'log' if the string isn't a valid level.\n */\nexport function severityLevelFromString(level: SeverityLevel | string): SeverityLevel {\n  return (\n    level === 'warn' ? 'warning' : ['fatal', 'error', 'warning', 'log', 'info', 'debug'].includes(level) ? level : 'log'\n  ) as SeverityLevel;\n}\n","import { getClient, withScope } from '../currentScopes';\nimport { captureException } from '../exports';\nimport { addConsoleInstrumentationHandler } from '../instrument/console';\nimport { defineIntegration } from '../integration';\nimport type { CaptureContext } from '../scope';\nimport type { IntegrationFn } from '../types/integration';\nimport { CONSOLE_LEVELS } from '../utils/debug-logger';\nimport { addExceptionMechanism } from '../utils/misc';\nimport { severityLevelFromString } from '../utils/severity';\nimport { safeJoin } from '../utils/string';\nimport { GLOBAL_OBJ } from '../utils/worldwide';\n\ninterface CaptureConsoleOptions {\n  levels?: string[];\n\n  /**\n   * By default, Sentry will mark captured console messages as handled.\n   * Set this to `false` if you want to mark them as unhandled instead.\n   *\n   * @default true\n   */\n  handled?: boolean;\n}\n\nconst INTEGRATION_NAME = 'CaptureConsole' as const;\n\nconst _captureConsoleIntegration = ((options: CaptureConsoleOptions = {}) => {\n  const levels = options.levels || CONSOLE_LEVELS;\n  const handled = options.handled ?? true;\n\n  return {\n    name: INTEGRATION_NAME,\n    setup(client) {\n      if (!('console' in GLOBAL_OBJ)) {\n        return;\n      }\n\n      addConsoleInstrumentationHandler(({ args, level }) => {\n        if (getClient() !== client || !levels.includes(level)) {\n          return;\n        }\n\n        consoleHandler(args, level, handled);\n      });\n    },\n  };\n}) satisfies IntegrationFn;\n\n/**\n * Send Console API calls as Sentry Events.\n */\nexport const captureConsoleIntegration = defineIntegration(_captureConsoleIntegration);\n\nfunction consoleHandler(args: unknown[], level: string, handled: boolean): void {\n  const severityLevel = severityLevelFromString(level);\n\n  /*\n    We create this error here already to attach a stack trace to captured messages,\n    if users set `attachStackTrace` to `true` in Sentry.init.\n    We do this here already because we want to minimize the number of Sentry SDK stack frames\n    within the error. Technically, Client.captureMessage will also do it but this happens several\n    stack frames deeper.\n  */\n  const syntheticException = new Error();\n\n  const captureContext: CaptureContext = {\n    level: severityLevelFromString(level),\n    extra: {\n      arguments: args,\n    },\n  };\n\n  withScope(scope => {\n    scope.addEventProcessor(event => {\n      event.logger = 'console';\n\n      addExceptionMechanism(event, {\n        handled,\n        type: 'auto.core.capture_console',\n      });\n\n      return event;\n    });\n\n    if (level === 'assert') {\n      if (!args[0]) {\n        const message = `Assertion failed: ${safeJoin(args.slice(1), ' ') || 'console.assert'}`;\n        scope.setExtra('arguments', args.slice(1));\n        scope.captureMessage(message, severityLevel, { captureContext, syntheticException });\n      }\n      return;\n    }\n\n    const error = args.find(arg => arg instanceof Error);\n    if (error) {\n      captureException(error, captureContext);\n      return;\n    }\n\n    const message = safeJoin(args, ' ');\n    scope.captureMessage(message, severityLevel, { captureContext, syntheticException });\n  });\n}\n","import { DEBUG_BUILD } from '../debug-build';\nimport { defineIntegration } from '../integration';\nimport type { Contexts } from '../types/context';\nimport type { ExtendedError } from '../types/error';\nimport type { Event, EventHint } from '../types/event';\nimport type { IntegrationFn } from '../types/integration';\nimport { debug } from '../utils/debug-logger';\nimport { isError, isPlainObject } from '../utils/is';\nimport { normalize } from '../utils/normalize';\nimport { setSkipNormalizationHint } from '../utils/normalizationHints';\nimport { truncate } from '../utils/string';\n\nconst INTEGRATION_NAME = 'ExtraErrorData' as const;\n\ninterface ExtraErrorDataOptions {\n  /**\n   * The object depth up to which to capture data on error objects.\n   */\n  depth: number;\n\n  /**\n   * Whether to capture error causes. Defaults to true.\n   *\n   * More information: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/cause\n   */\n  captureErrorCause: boolean;\n}\n\n/**\n * Extract additional data for from original exceptions.\n */\nconst _extraErrorDataIntegration = ((options: Partial<ExtraErrorDataOptions> = {}) => {\n  const { depth = 3, captureErrorCause = true } = options;\n  return {\n    name: INTEGRATION_NAME,\n    processEvent(event, hint, client) {\n      const { maxValueLength } = client.getOptions();\n      return _enhanceEventWithErrorData(event, hint, depth, captureErrorCause, maxValueLength);\n    },\n  };\n}) satisfies IntegrationFn;\n\nexport const extraErrorDataIntegration = defineIntegration(_extraErrorDataIntegration);\n\nfunction _enhanceEventWithErrorData(\n  event: Event,\n  hint: EventHint = {},\n  depth: number,\n  captureErrorCause: boolean,\n  maxValueLength: number | undefined,\n): Event {\n  if (!hint.originalException || !isError(hint.originalException)) {\n    return event;\n  }\n  const exceptionName = (hint.originalException as ExtendedError).name || hint.originalException.constructor.name;\n\n  const errorData = _extractErrorData(hint.originalException as ExtendedError, captureErrorCause, maxValueLength);\n\n  if (errorData) {\n    const contexts: Contexts = {\n      ...event.contexts,\n    };\n\n    const normalizedErrorData = normalize(errorData, depth);\n\n    if (isPlainObject(normalizedErrorData)) {\n      // We mark the error data as \"already normalized\" here, because we don't want other normalization procedures to\n      // potentially truncate the data we just already normalized, with a certain depth setting.\n      setSkipNormalizationHint(normalizedErrorData);\n      contexts[exceptionName] = normalizedErrorData;\n    }\n\n    return {\n      ...event,\n      contexts,\n    };\n  }\n\n  return event;\n}\n\n/**\n * Extract extra information from the Error object\n */\nfunction _extractErrorData(\n  error: ExtendedError,\n  captureErrorCause: boolean,\n  maxValueLength: number | undefined,\n): Record<string, unknown> | null {\n  // We are trying to enhance already existing event, so no harm done if it won't succeed\n  try {\n    const nativeKeys = [\n      'name',\n      'message',\n      'stack',\n      'line',\n      'column',\n      'fileName',\n      'lineNumber',\n      'columnNumber',\n      'toJSON',\n    ];\n\n    const extraErrorInfo: Record<string, unknown> = {};\n\n    // We want only enumerable properties, thus `getOwnPropertyNames` is redundant here, as we filter keys anyway.\n    for (const key of Object.keys(error)) {\n      if (nativeKeys.indexOf(key) !== -1) {\n        continue;\n      }\n      const value = error[key];\n      extraErrorInfo[key] =\n        isError(value) || typeof value === 'string'\n          ? maxValueLength\n            ? truncate(`${value}`, maxValueLength)\n            : `${value}`\n          : value;\n    }\n\n    // Error.cause is a standard property that is non enumerable, we therefore need to access it separately.\n    // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Error/cause\n    if (captureErrorCause && error.cause !== undefined) {\n      if (isError(error.cause)) {\n        const errorName = error.cause.name || error.cause.constructor.name;\n        extraErrorInfo.cause = { [errorName]: _extractErrorData(error.cause as ExtendedError, false, maxValueLength) };\n      } else {\n        extraErrorInfo.cause = error.cause;\n      }\n    }\n\n    // Check if someone attached `toJSON` method to grab even more properties (eg. axios is doing that)\n    if (typeof error.toJSON === 'function') {\n      const serializedError = error.toJSON() as Record<string, unknown>;\n\n      for (const key of Object.keys(serializedError)) {\n        const value = serializedError[key];\n        extraErrorInfo[key] = isError(value) ? value.toString() : value;\n      }\n    }\n\n    return extraErrorInfo;\n  } catch (oO) {\n    DEBUG_BUILD && debug.error('Unable to extract extra data from the Error object:', oO);\n  }\n\n  return null;\n}\n","import { addBreadcrumb } from '../breadcrumbs';\nimport { getClient } from '../currentScopes';\nimport { addConsoleInstrumentationFilter, addConsoleInstrumentationHandler } from '../instrument/console';\nimport { defineIntegration } from '../integration';\nimport type { ConsoleLevel } from '../types/instrument';\nimport { CONSOLE_LEVELS } from '../utils/debug-logger';\nimport { severityLevelFromString } from '../utils/severity';\nimport { safeJoin } from '../utils/string';\nimport { GLOBAL_OBJ } from '../utils/worldwide';\n\ninterface ConsoleIntegrationOptions {\n  levels: ConsoleLevel[];\n  /**\n   * Filter out console messages that match the given strings or regular expressions.\n   * These will neither be passed to the handler, and they will also not be logged to the user, unless they have debug enabled.\n   */\n  filter?: (string | RegExp)[];\n}\n\ntype GlobalObjectWithUtil = typeof GLOBAL_OBJ & {\n  util: {\n    format: (...args: unknown[]) => string;\n  };\n};\n\nconst INTEGRATION_NAME = 'Console' as const;\n\n/**\n * Captures calls to the `console` API as breadcrumbs in Sentry.\n *\n * By default the integration instruments `console.debug`, `console.info`, `console.warn`, `console.error`,\n * `console.log`, `console.trace`, and `console.assert`. You can use the `levels` option to customize which\n * levels are captured.\n *\n * @example\n *\n * ```js\n * Sentry.init({\n *   integrations: [Sentry.consoleIntegration({ levels: ['error', 'warn'] })],\n * });\n * ```\n */\nexport const consoleIntegration = defineIntegration((options: Partial<ConsoleIntegrationOptions> = {}) => {\n  const levels = new Set(options.levels || CONSOLE_LEVELS);\n\n  return {\n    name: INTEGRATION_NAME,\n    setup(client) {\n      const unsubscribe = addConsoleInstrumentationHandler(({ args, level }) => {\n        if (getClient() !== client || !levels.has(level)) {\n          return;\n        }\n\n        addConsoleBreadcrumb(level, args);\n      });\n      client.registerCleanup(unsubscribe);\n\n      if (options.filter) {\n        const unsubscribe = addConsoleInstrumentationFilter(options.filter);\n        client.registerCleanup(unsubscribe);\n      }\n    },\n  };\n});\n\n/**\n * Capture a console breadcrumb.\n *\n * Exported just for tests.\n */\nexport function addConsoleBreadcrumb(level: ConsoleLevel, args: unknown[]): void {\n  const breadcrumb = {\n    category: 'console',\n    data: {\n      arguments: args,\n      logger: 'console',\n    },\n    level: severityLevelFromString(level),\n    message: formatConsoleArgs(args),\n  };\n\n  if (level === 'assert') {\n    if (args[0] === false) {\n      const assertionArgs = args.slice(1);\n      breadcrumb.message =\n        assertionArgs.length > 0 ? `Assertion failed: ${formatConsoleArgs(assertionArgs)}` : 'Assertion failed';\n      breadcrumb.data.arguments = assertionArgs;\n    } else {\n      // Don't capture a breadcrumb for passed assertions\n      return;\n    }\n  }\n\n  addBreadcrumb(breadcrumb, {\n    input: args,\n    level,\n  });\n}\n\nfunction formatConsoleArgs(values: unknown[]): string {\n  return 'util' in GLOBAL_OBJ && typeof (GLOBAL_OBJ as GlobalObjectWithUtil).util.format === 'function'\n    ? (GLOBAL_OBJ as GlobalObjectWithUtil).util.format(...values)\n    : safeJoin(values, ' ');\n}\n","import { DEBUG_BUILD } from '../debug-build';\nimport { defineIntegration } from '../integration';\nimport type { Event } from '../types/event';\nimport type { StackFrame } from '../types/stackframe';\nimport { debug } from '../utils/debug-logger';\nimport { getPossibleEventMessages } from '../utils/eventUtils';\nimport { getEventDescription } from '../utils/misc';\nimport { stringMatchesSomePattern } from '../utils/string';\n\n// \"Script error.\" is hard coded into browsers for errors that it can't read.\n// this is the result of a script being pulled in from an external domain and CORS.\nconst DEFAULT_IGNORE_ERRORS = [\n  /^Script error\\.?$/,\n  /^Javascript error: Script error\\.? on line 0$/,\n  /^ResizeObserver loop completed with undelivered notifications.$/, // The browser logs this when a ResizeObserver handler takes a bit longer. Usually this is not an actual issue though. It indicates slowness.\n  /^Cannot redefine property: googletag$/, // This is thrown when google tag manager is used in combination with an ad blocker\n  /^Can't find variable: gmo$/, // Error from Google Search App https://issuetracker.google.com/issues/396043331\n  /^undefined is not an object \\(evaluating 'a\\.[A-Z]'\\)$/, // Random error that happens but not actionable or noticeable to end-users.\n  /can't redefine non-configurable property \"solana\"/, // Probably a browser extension or custom browser (Brave) throwing this error\n  /vv\\(\\)\\.getRestrictions is not a function/, // Error thrown by GTM, seemingly not affecting end-users\n  /Can't find variable: _AutofillCallbackHandler/, // Unactionable error in instagram webview https://developers.facebook.com/community/threads/320013549791141/\n  /Object Not Found Matching Id:\\d+, MethodName:simulateEvent/, // unactionable error from CEFSharp, a .NET library that embeds chromium in .NET apps\n  /Java exception was raised during method invocation$/, // error from Facebook Mobile browser (https://github.com/getsentry/sentry-javascript/issues/15065, https://github.com/getsentry/sentry-javascript/issues/23733)\n  /Java object is gone$/, // error from Facebook Mobile browser (https://github.com/getsentry/sentry-javascript/issues/15065, https://github.com/getsentry/sentry-javascript/issues/23733)\n];\n\n/** Options for the EventFilters integration */\nexport interface EventFiltersOptions {\n  allowUrls: Array<string | RegExp>;\n  denyUrls: Array<string | RegExp>;\n  ignoreErrors: Array<string | RegExp>;\n  ignoreTransactions: Array<string | RegExp>;\n  ignoreInternal: boolean;\n  disableErrorDefaults: boolean;\n}\n\nconst INTEGRATION_NAME = 'EventFilters' as const;\n\n/**\n * An integration that filters out events (errors and transactions) based on:\n *\n * - (Errors) A curated list of known low-value or irrelevant errors (see {@link DEFAULT_IGNORE_ERRORS})\n * - (Errors) A list of error messages or urls/filenames passed in via\n *   - Top level Sentry.init options (`ignoreErrors`, `denyUrls`, `allowUrls`)\n *   - The same options passed to the integration directly via @param options\n * - (Transactions/Spans) A list of root span (transaction) names passed in via\n *   - Top level Sentry.init option (`ignoreTransactions`)\n *   - The same option passed to the integration directly via @param options\n *\n * Events filtered by this integration will not be sent to Sentry.\n */\nexport const eventFiltersIntegration = defineIntegration((options: Partial<EventFiltersOptions> = {}) => {\n  let mergedOptions: Partial<EventFiltersOptions> | undefined;\n  return {\n    name: INTEGRATION_NAME,\n    setup(client) {\n      const clientOptions = client.getOptions();\n      mergedOptions = _mergeOptions(options, clientOptions);\n    },\n    processEvent(event, _hint, client) {\n      if (!mergedOptions) {\n        const clientOptions = client.getOptions();\n        mergedOptions = _mergeOptions(options, clientOptions);\n      }\n      return _shouldDropEvent(event, mergedOptions) ? null : event;\n    },\n  };\n});\n\nfunction _mergeOptions(\n  internalOptions: Partial<EventFiltersOptions> = {},\n  clientOptions: Partial<EventFiltersOptions> = {},\n): Partial<EventFiltersOptions> {\n  return {\n    allowUrls: [...(internalOptions.allowUrls || []), ...(clientOptions.allowUrls || [])],\n    denyUrls: [...(internalOptions.denyUrls || []), ...(clientOptions.denyUrls || [])],\n    ignoreErrors: [\n      ...(internalOptions.ignoreErrors || []),\n      ...(clientOptions.ignoreErrors || []),\n      ...(internalOptions.disableErrorDefaults ? [] : DEFAULT_IGNORE_ERRORS),\n    ],\n    ignoreTransactions: [...(internalOptions.ignoreTransactions || []), ...(clientOptions.ignoreTransactions || [])],\n  };\n}\n\nfunction _shouldDropEvent(event: Event, options: Partial<EventFiltersOptions>): boolean {\n  if (!event.type) {\n    // Filter errors\n    if (_isIgnoredError(event, options.ignoreErrors)) {\n      DEBUG_BUILD &&\n        debug.warn(\n          `Event dropped due to being matched by \\`ignoreErrors\\` option.\\nEvent: ${getEventDescription(event)}`,\n        );\n      return true;\n    }\n    if (_isUselessError(event)) {\n      DEBUG_BUILD &&\n        debug.warn(\n          `Event dropped due to not having an error message, error type or stacktrace.\\nEvent: ${getEventDescription(\n            event,\n          )}`,\n        );\n      return true;\n    }\n    if (_isDeniedUrl(event, options.denyUrls)) {\n      DEBUG_BUILD &&\n        debug.warn(\n          `Event dropped due to being matched by \\`denyUrls\\` option.\\nEvent: ${getEventDescription(\n            event,\n          )}.\\nUrl: ${_getEventFilterUrl(event)}`,\n        );\n      return true;\n    }\n    if (!_isAllowedUrl(event, options.allowUrls)) {\n      DEBUG_BUILD &&\n        debug.warn(\n          `Event dropped due to not being matched by \\`allowUrls\\` option.\\nEvent: ${getEventDescription(\n            event,\n          )}.\\nUrl: ${_getEventFilterUrl(event)}`,\n        );\n      return true;\n    }\n  } else if (event.type === 'transaction') {\n    // Filter transactions\n\n    if (_isIgnoredTransaction(event, options.ignoreTransactions)) {\n      DEBUG_BUILD &&\n        debug.warn(\n          `Event dropped due to being matched by \\`ignoreTransactions\\` option.\\nEvent: ${getEventDescription(event)}`,\n        );\n      return true;\n    }\n  }\n  return false;\n}\n\nfunction _isIgnoredError(event: Event, ignoreErrors?: Array<string | RegExp>): boolean {\n  if (!ignoreErrors?.length) {\n    return false;\n  }\n\n  return getPossibleEventMessages(event).some(message => stringMatchesSomePattern(message, ignoreErrors));\n}\n\nfunction _isIgnoredTransaction(event: Event, ignoreTransactions?: Array<string | RegExp>): boolean {\n  if (!ignoreTransactions?.length) {\n    return false;\n  }\n\n  const name = event.transaction;\n  return name ? stringMatchesSomePattern(name, ignoreTransactions) : false;\n}\n\nfunction _isDeniedUrl(event: Event, denyUrls?: Array<string | RegExp>): boolean {\n  if (!denyUrls?.length) {\n    return false;\n  }\n  const url = _getEventFilterUrl(event);\n  return !url ? false : stringMatchesSomePattern(url, denyUrls);\n}\n\nfunction _isAllowedUrl(event: Event, allowUrls?: Array<string | RegExp>): boolean {\n  if (!allowUrls?.length) {\n    return true;\n  }\n  const url = _getEventFilterUrl(event);\n  return !url ? true : stringMatchesSomePattern(url, allowUrls);\n}\n\nfunction _getLastValidUrl(frames: StackFrame[] = []): string | null {\n  for (let i = frames.length - 1; i >= 0; i--) {\n    const frame = frames[i];\n\n    if (frame && frame.filename !== '<anonymous>' && frame.filename !== '[native code]') {\n      return frame.filename || null;\n    }\n  }\n\n  return null;\n}\n\nfunction _getEventFilterUrl(event: Event): string | null {\n  try {\n    // If there are linked exceptions or exception aggregates we only want to match against the top frame of the \"root\" (the main exception)\n    // The root always comes last in linked exceptions\n    const rootException = [...(event.exception?.values ?? [])]\n      .reverse()\n      .find(value => value.mechanism?.parent_id === undefined && value.stacktrace?.frames?.length);\n    const frames = rootException?.stacktrace?.frames;\n    return frames ? _getLastValidUrl(frames) : null;\n  } catch {\n    DEBUG_BUILD && debug.error(`Cannot extract url for event ${getEventDescription(event)}`);\n    return null;\n  }\n}\n\nfunction _isUselessError(event: Event): boolean {\n  // We only want to consider events for dropping that actually have recorded exception values.\n  if (!event.exception?.values?.length) {\n    return false;\n  }\n\n  return (\n    // No top-level message\n    !event.message &&\n    // There are no exception values that have a stacktrace, a non-generic-Error type or value\n    !event.exception.values.some(value => value.stacktrace || (value.type && value.type !== 'Error') || value.value)\n  );\n}\n","import type { Event } from '../types/event';\n\n/**\n * Get a list of possible event messages from a Sentry event.\n */\nexport function getPossibleEventMessages(event: Event): string[] {\n  const possibleMessages: string[] = [];\n\n  if (event.message) {\n    possibleMessages.push(event.message);\n  }\n\n  try {\n    // @ts-expect-error Try catching to save bundle size\n    const lastException = event.exception.values[event.exception.values.length - 1];\n    if (lastException?.value) {\n      possibleMessages.push(lastException.value);\n      if (lastException.type) {\n        possibleMessages.push(`${lastException.type}: ${lastException.value}`);\n      }\n    }\n  } catch {\n    // ignore errors here\n  }\n\n  return possibleMessages;\n}\n","import type { Client } from '../client';\nimport { getClient } from '../currentScopes';\nimport { defineIntegration } from '../integration';\nimport type { IntegrationFn } from '../types/integration';\nimport type { WrappedFunction } from '../types/wrappedfunction';\nimport { getOriginalFunction } from '../utils/object';\n\nconst INTEGRATION_NAME = 'FunctionToString' as const;\n\nconst SETUP_CLIENTS = new WeakMap<Client, boolean>();\n\nconst _functionToStringIntegration = (() => {\n  return {\n    name: INTEGRATION_NAME,\n    setupOnce() {\n      // eslint-disable-next-line @typescript-eslint/unbound-method\n      const originalFunctionToString = Function.prototype.toString;\n\n      // intrinsics (like Function.prototype) might be immutable in some environments\n      // e.g. Node with --frozen-intrinsics, XS (an embedded JavaScript engine) or SES (a JavaScript proposal)\n      try {\n        Function.prototype.toString = function (this: WrappedFunction, ...args: unknown[]): string {\n          const originalFunction = getOriginalFunction(this);\n          let unwrappedFunction: WrappedFunction | undefined;\n\n          try {\n            if (SETUP_CLIENTS.has(getClient() as Client) && originalFunction !== undefined) {\n              unwrappedFunction = originalFunction;\n            }\n          } catch {\n            // Reading the Sentry carrier off `getClient()` can throw a `SecurityError` when `this` (or the global\n            // object) is a `WindowProxy` whose browsing context was navigated cross-origin. The native\n            // `toString` never throws here, so fall back to it to avoid turning harmless introspection into noise.\n          }\n\n          return originalFunctionToString.apply(unwrappedFunction ?? this, args);\n        };\n      } catch {\n        // ignore errors here, just don't patch this\n      }\n    },\n    setup(client) {\n      SETUP_CLIENTS.set(client, true);\n    },\n  };\n}) satisfies IntegrationFn;\n\n/**\n * Patch toString calls to return proper name for wrapped functions.\n *\n * ```js\n * Sentry.init({\n *   integrations: [\n *     functionToStringIntegration(),\n *   ],\n * });\n * ```\n */\nexport const functionToStringIntegration = defineIntegration(_functionToStringIntegration);\n","import { GEN_AI_CONVERSATION_ID } from '@sentry/conventions/attributes';\nimport type { Client } from '../client';\nimport { getCurrentScope, getIsolationScope } from '../currentScopes';\nimport { defineIntegration } from '../integration';\nimport type { IntegrationFn } from '../types/integration';\nimport type { Span } from '../types/span';\nimport { spanToStaticSpanJSON } from '../utils/spanUtils';\n\nconst INTEGRATION_NAME = 'ConversationId' as const;\n\nconst _conversationIdIntegration = (() => {\n  return {\n    name: INTEGRATION_NAME,\n    setup(client: Client) {\n      client.on('spanStart', (span: Span) => {\n        const scopeData = getCurrentScope().getScopeData();\n        const isolationScopeData = getIsolationScope().getScopeData();\n\n        const conversationId = scopeData.conversationId || isolationScopeData.conversationId;\n\n        if (conversationId) {\n          const { op, data: attributes, description: name } = spanToStaticSpanJSON(span);\n\n          // Only apply conversation ID to gen_ai spans.\n          // We also check for Vercel AI spans (ai.operationId attribute or ai.* span name)\n          // because the Vercel AI integration sets the gen_ai.* op in its own spanStart handler\n          // which fires after this, so the op is not yet available at this point.\n          if (!op?.startsWith('gen_ai.') && !attributes['ai.operationId'] && !name?.startsWith('ai.')) {\n            return;\n          }\n\n          span.setAttribute(GEN_AI_CONVERSATION_ID, conversationId);\n        }\n      });\n    },\n  };\n}) satisfies IntegrationFn;\n\n/**\n * Automatically applies conversation ID from scope to spans.\n *\n * This integration reads the conversation ID from the current or isolation scope\n * and applies it to spans when they start. This ensures the conversation ID is\n * available for all AI-related operations.\n */\nexport const conversationIdIntegration = defineIntegration(_conversationIdIntegration);\n","import { DEBUG_BUILD } from '../debug-build';\nimport { defineIntegration } from '../integration';\nimport type { Event } from '../types/event';\nimport type { Exception } from '../types/exception';\nimport type { IntegrationFn } from '../types/integration';\nimport { debug } from '../utils/debug-logger';\nimport { getFramesFromEvent } from '../utils/stacktrace';\n\nconst INTEGRATION_NAME = 'Dedupe' as const;\n\nconst _dedupeIntegration = (() => {\n  let previousEvent: Event | undefined;\n\n  return {\n    name: INTEGRATION_NAME,\n    processEvent(currentEvent) {\n      // We want to ignore any non-error type events, e.g. transactions or replays\n      // These should never be deduped, and also not be compared against as _previousEvent.\n      if (currentEvent.type) {\n        return currentEvent;\n      }\n\n      // Juuust in case something goes wrong\n      try {\n        if (_shouldDropEvent(currentEvent, previousEvent)) {\n          DEBUG_BUILD && debug.warn('Event dropped due to being a duplicate of previously captured event.');\n          return null;\n        }\n      } catch {} // eslint-disable-line no-empty\n\n      return (previousEvent = currentEvent);\n    },\n  };\n}) satisfies IntegrationFn;\n\n/**\n * Drops an error or message event if it is equal to the previous error or message event.\n * Two events are equal if they have the same message (or the same exception type and value),\n * the same stack trace and the same fingerprint.\n *\n * A repeated `captureException` of the same error object is dropped by the client, also without\n * this integration (see `checkOrSetAlreadyCaught`).\n */\nexport const dedupeIntegration = defineIntegration(_dedupeIntegration);\n\n/** only exported for tests. */\nexport function _shouldDropEvent(currentEvent: Event, previousEvent?: Event): boolean {\n  if (!previousEvent) {\n    return false;\n  }\n\n  if (_isSameMessageEvent(currentEvent, previousEvent)) {\n    return true;\n  }\n\n  if (_isSameExceptionEvent(currentEvent, previousEvent)) {\n    return true;\n  }\n\n  return false;\n}\n\nfunction _isSameMessageEvent(currentEvent: Event, previousEvent: Event): boolean {\n  const currentMessage = currentEvent.message;\n  const previousMessage = previousEvent.message;\n\n  // If neither event has a message property, they were both exceptions, so bail out\n  if (!currentMessage && !previousMessage) {\n    return false;\n  }\n\n  // If only one event has a stacktrace, but not the other one, they are not the same\n  if ((currentMessage && !previousMessage) || (!currentMessage && previousMessage)) {\n    return false;\n  }\n\n  if (currentMessage !== previousMessage) {\n    return false;\n  }\n\n  if (!_isSameFingerprint(currentEvent, previousEvent)) {\n    return false;\n  }\n\n  if (!_isSameStacktrace(currentEvent, previousEvent)) {\n    return false;\n  }\n\n  return true;\n}\n\nfunction _isSameExceptionEvent(currentEvent: Event, previousEvent: Event): boolean {\n  const previousException = _getExceptionFromEvent(previousEvent);\n  const currentException = _getExceptionFromEvent(currentEvent);\n\n  if (!previousException || !currentException) {\n    return false;\n  }\n\n  if (previousException.type !== currentException.type || previousException.value !== currentException.value) {\n    return false;\n  }\n\n  if (!_isSameFingerprint(currentEvent, previousEvent)) {\n    return false;\n  }\n\n  if (!_isSameStacktrace(currentEvent, previousEvent)) {\n    return false;\n  }\n\n  return true;\n}\n\nfunction _isSameStacktrace(currentEvent: Event, previousEvent: Event): boolean {\n  const currentFrames = getFramesFromEvent(currentEvent);\n  const previousFrames = getFramesFromEvent(previousEvent);\n\n  // If either event is missing a stacktrace, they are the same only if neither has one\n  if (!currentFrames || !previousFrames) {\n    return !currentFrames && !previousFrames;\n  }\n\n  // If number of frames differ, they are not the same\n  if (previousFrames.length !== currentFrames.length) {\n    return false;\n  }\n\n  // Otherwise, compare the two\n  for (let i = 0; i < previousFrames.length; i++) {\n    // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n    const frameA = previousFrames[i]!;\n    // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n    const frameB = currentFrames[i]!;\n\n    if (\n      frameA.filename !== frameB.filename ||\n      frameA.lineno !== frameB.lineno ||\n      frameA.colno !== frameB.colno ||\n      frameA.function !== frameB.function\n    ) {\n      return false;\n    }\n  }\n\n  return true;\n}\n\nfunction _isSameFingerprint(currentEvent: Event, previousEvent: Event): boolean {\n  const currentFingerprint = currentEvent.fingerprint;\n  const previousFingerprint = previousEvent.fingerprint;\n\n  // If either event is missing a fingerprint, they are the same only if neither has one\n  if (!currentFingerprint || !previousFingerprint) {\n    return !currentFingerprint && !previousFingerprint;\n  }\n\n  // Otherwise, compare the two\n  try {\n    return !!(currentFingerprint.join('') === previousFingerprint.join(''));\n  } catch {\n    return false;\n  }\n}\n\nfunction _getExceptionFromEvent(event: Event): Exception | undefined {\n  return event.exception?.values?.[0];\n}\n","import type { ReportDialogOptions } from './report-dialog';\nimport type { DsnComponents, DsnLike } from './types/dsn';\nimport type { SdkInfo } from './types/sdkinfo';\nimport { dsnToString, makeDsn } from './utils/dsn';\n\nexport const SENTRY_API_VERSION = '7';\n\n/** Returns the prefix to construct Sentry ingestion API endpoints. */\nfunction getBaseApiEndpoint(dsn: DsnComponents): string {\n  const protocol = dsn.protocol ? `${dsn.protocol}:` : '';\n  const port = dsn.port ? `:${dsn.port}` : '';\n  return `${protocol}//${dsn.host}${port}${dsn.path ? `/${dsn.path}` : ''}/api/`;\n}\n\n/** Returns the ingest API endpoint for target. */\nfunction _getIngestEndpoint(dsn: DsnComponents): string {\n  return `${getBaseApiEndpoint(dsn)}${dsn.projectId}/envelope/`;\n}\n\n/** Returns a URL-encoded string with auth config suitable for a query string. */\nfunction _encodedAuth(dsn: DsnComponents, sdkInfo: SdkInfo | undefined): string {\n  const params: Record<string, string> = {\n    sentry_version: SENTRY_API_VERSION,\n  };\n\n  if (dsn.publicKey) {\n    // We send only the minimum set of required information. See\n    // https://github.com/getsentry/sentry-javascript/issues/2572.\n    params.sentry_key = dsn.publicKey;\n  }\n\n  if (sdkInfo) {\n    params.sentry_client = `${sdkInfo.name}/${sdkInfo.version}`;\n  }\n\n  return new URLSearchParams(params).toString();\n}\n\n/**\n * Returns the envelope endpoint URL with auth in the query string.\n *\n * Sending auth as part of the query string and not as custom HTTP headers avoids CORS preflight requests.\n */\nexport function getEnvelopeEndpointWithUrlEncodedAuth(dsn: DsnComponents, tunnel?: string, sdkInfo?: SdkInfo): string {\n  return tunnel ? tunnel : `${_getIngestEndpoint(dsn)}?${_encodedAuth(dsn, sdkInfo)}`;\n}\n\n/** Returns the url to the report dialog endpoint. */\nexport function getReportDialogEndpoint(dsnLike: DsnLike, dialogOptions: ReportDialogOptions): string {\n  const dsn = makeDsn(dsnLike);\n  if (!dsn) {\n    return '';\n  }\n\n  const endpoint = `${getBaseApiEndpoint(dsn)}embed/error-page/`;\n\n  let encodedOptions = `dsn=${dsnToString(dsn)}`;\n  for (const key in dialogOptions) {\n    if (key === 'dsn') {\n      continue;\n    }\n\n    if (key === 'onClose' || key === 'onError') {\n      continue;\n    }\n\n    if (key === 'user') {\n      const user = dialogOptions.user;\n      if (!user) {\n        continue;\n      }\n      if (user.name) {\n        encodedOptions += `&name=${encodeURIComponent(user.name)}`;\n      }\n      if (user.email) {\n        encodedOptions += `&email=${encodeURIComponent(user.email)}`;\n      }\n    } else {\n      encodedOptions += `&${encodeURIComponent(key)}=${encodeURIComponent(dialogOptions[key] as string)}`;\n    }\n  }\n\n  return `${endpoint}?${encodedOptions}`;\n}\n","import type { LegacyCSPReport } from './types/csp';\nimport type { DsnComponents } from './types/dsn';\nimport type {\n  EventEnvelope,\n  EventItem,\n  RawSecurityEnvelope,\n  RawSecurityItem,\n  SessionEnvelope,\n  SessionItem,\n} from './types/envelope';\nimport type { Event } from './types/event';\nimport type { SdkInfo } from './types/sdkinfo';\nimport type { SdkMetadata } from './types/sdkmetadata';\nimport type { Session, SessionAggregates } from './types/session';\nimport { dsnToString } from './utils/dsn';\nimport { createEnvelope, createEventEnvelopeHeaders, getSdkMetadataForEnvelopeHeader } from './utils/envelope';\nimport { uuid4 } from './utils/misc';\nimport { safeDateNow } from './utils/randomSafeContext';\n\n/**\n * Apply SdkInfo (name, version, packages, integrations) to the corresponding event key.\n * Merge with existing data if any.\n *\n * @internal, exported only for testing\n **/\nexport function _enhanceEventWithSdkInfo(event: Event, newSdkInfo?: SdkInfo): Event {\n  if (!newSdkInfo) {\n    return event;\n  }\n\n  const eventSdkInfo = event.sdk || {};\n\n  event.sdk = {\n    ...eventSdkInfo,\n    name: eventSdkInfo.name || newSdkInfo.name,\n    version: eventSdkInfo.version || newSdkInfo.version,\n    integrations: [...(event.sdk?.integrations || []), ...(newSdkInfo.integrations || [])],\n    packages: [...(event.sdk?.packages || []), ...(newSdkInfo.packages || [])],\n    settings:\n      event.sdk?.settings || newSdkInfo.settings\n        ? {\n            ...event.sdk?.settings,\n            ...newSdkInfo.settings,\n          }\n        : undefined,\n  };\n\n  return event;\n}\n\n/** Creates an envelope from a Session */\nexport function createSessionEnvelope(\n  session: Session | SessionAggregates,\n  dsn?: DsnComponents,\n  metadata?: SdkMetadata,\n  tunnel?: string,\n): SessionEnvelope {\n  const sdkInfo = getSdkMetadataForEnvelopeHeader(metadata);\n  const envelopeHeaders = {\n    sent_at: new Date(safeDateNow()).toISOString(),\n    ...(sdkInfo && { sdk: sdkInfo }),\n    ...(!!tunnel && dsn && { dsn: dsnToString(dsn) }),\n  };\n\n  const envelopeItem: SessionItem =\n    'aggregates' in session ? [{ type: 'sessions' }, session] : [{ type: 'session' }, session.toJSON()];\n\n  return createEnvelope<SessionEnvelope>(envelopeHeaders, [envelopeItem]);\n}\n\n/**\n * Create an Envelope from an event.\n */\nexport function createEventEnvelope(\n  event: Event,\n  dsn?: DsnComponents,\n  metadata?: SdkMetadata,\n  tunnel?: string,\n): EventEnvelope {\n  const sdkInfo = getSdkMetadataForEnvelopeHeader(metadata);\n\n  /*\n    Note: Due to TS, event.type may be `replay_event`, theoretically.\n    In practice, we never call `createEventEnvelope` with `replay_event` type,\n    and we'd have to adjust a looot of types to make this work properly.\n    We want to avoid casting this around, as that could lead to bugs (e.g. when we add another type)\n    So the safe choice is to really guard against the replay_event type here.\n  */\n  const eventType = event.type && event.type !== 'replay_event' ? event.type : 'event';\n\n  _enhanceEventWithSdkInfo(event, metadata?.sdk);\n\n  const envelopeHeaders = createEventEnvelopeHeaders(event, sdkInfo, tunnel, dsn);\n\n  // Prevent this data (which, if it exists, was used in earlier steps in the processing pipeline) from being sent to\n  // sentry. (Note: Our use of this property comes and goes with whatever we might be debugging, whatever hacks we may\n  // have temporarily added, etc. Even if we don't happen to be using it at some point in the future, let's not get rid\n  // of this `delete`, lest we miss putting it back in the next time the property is in use.)\n  delete event.sdkProcessingMetadata;\n\n  const eventItem: EventItem = [{ type: eventType }, event];\n  return createEnvelope<EventEnvelope>(envelopeHeaders, [eventItem]);\n}\n\n/**\n * Create an Envelope from a CSP report.\n */\nexport function createRawSecurityEnvelope(\n  report: LegacyCSPReport,\n  dsn: DsnComponents,\n  tunnel?: string,\n  release?: string,\n  environment?: string,\n): RawSecurityEnvelope {\n  const envelopeHeaders = {\n    event_id: uuid4(),\n    ...(!!tunnel && dsn && { dsn: dsnToString(dsn) }),\n  };\n\n  const eventItem: RawSecurityItem = [\n    { type: 'raw_security', sentry_release: release, sentry_environment: environment },\n    report,\n  ];\n\n  return createEnvelope<RawSecurityEnvelope>(envelopeHeaders, [eventItem]);\n}\n","import type { DsnComponents } from '../types/dsn';\nimport type { LogContainerItem, LogEnvelope } from '../types/envelope';\nimport type { SerializedLog } from '../types/log';\nimport type { SdkMetadata } from '../types/sdkmetadata';\nimport { dsnToString } from '../utils/dsn';\nimport { createEnvelope } from '../utils/envelope';\nimport { isBrowser } from '../utils/isBrowser';\n\n/**\n * Creates a log container envelope item for a list of logs.\n *\n * @param items - The logs to include in the envelope.\n * @param inferUserData - If true, tells Relay to infer the end-user IP and User-Agent from the incoming request.\n *                        Only emitted as `ingest_settings` in browser environments.\n * @returns The created log container envelope item.\n */\nexport function createLogContainerEnvelopeItem(items: Array<SerializedLog>, inferUserData?: boolean): LogContainerItem {\n  const inferSetting = inferUserData ? 'auto' : 'never';\n  return [\n    {\n      type: 'log',\n      item_count: items.length,\n      content_type: 'application/vnd.sentry.items.log+json',\n    },\n    {\n      version: 2,\n      ...(isBrowser() && {\n        ingest_settings: { infer_ip: inferSetting, infer_user_agent: inferSetting },\n      }),\n      items,\n    },\n  ];\n}\n\n/**\n * Creates an envelope for a list of logs.\n *\n * Logs from multiple traces can be included in the same envelope.\n *\n * @param logs - The logs to include in the envelope.\n * @param metadata - The metadata to include in the envelope.\n * @param tunnel - The tunnel to include in the envelope.\n * @param dsn - The DSN to include in the envelope.\n * @param inferUserData - If true, tells Relay to infer the end-user IP and User-Agent from the incoming request.\n * @returns The created envelope.\n */\nexport function createLogEnvelope(\n  logs: Array<SerializedLog>,\n  metadata?: SdkMetadata,\n  tunnel?: string,\n  dsn?: DsnComponents,\n  inferUserData?: boolean,\n): LogEnvelope {\n  const headers: LogEnvelope[0] = {};\n\n  if (metadata?.sdk) {\n    headers.sdk = {\n      name: metadata.sdk.name,\n      version: metadata.sdk.version,\n    };\n  }\n\n  if (!!tunnel && !!dsn) {\n    headers.dsn = dsnToString(dsn);\n  }\n\n  return createEnvelope<LogEnvelope>(headers, [createLogContainerEnvelopeItem(logs, inferUserData)]);\n}\n","import type { Attributes } from '../attributes';\nimport { serializeAttributes } from '../attributes';\nimport { getGlobalSingleton } from '../carrier';\nimport type { Client } from '../client';\nimport { getClient, getCurrentScope, getIsolationScope } from '../currentScopes';\nimport { DEBUG_BUILD } from '../debug-build';\nimport type { Integration } from '../types/integration';\nimport type { Log, SerializedLog } from '../types/log';\nimport { consoleSandbox, debug } from '../utils/debug-logger';\nimport { isParameterizedString } from '../utils/is';\nimport { CALLBACK_ERROR, safeCallback } from '../utils/safeCallback';\nimport { getCombinedScopeData } from '../utils/scopeData';\nimport { getActiveSpan } from '../utils/spanUtils';\nimport { timestampInSeconds } from '../utils/time';\nimport { getSequenceAttribute } from '../utils/timestampSequence';\nimport { _getTraceInfoFromScope } from '../utils/trace-info';\nimport { SEVERITY_TEXT_TO_SEVERITY_NUMBER } from './constants';\nimport { createLogEnvelope } from './envelope';\n\nconst MAX_LOG_BUFFER_SIZE = 100;\n\n/**\n * Sets a log attribute if the value exists and the attribute key is not already present.\n *\n * @param logAttributes - The log attributes object to modify.\n * @param key - The attribute key to set.\n * @param value - The value to set (only sets if truthy and key not present).\n * @param setEvenIfPresent - Whether to set the attribute if it is present. Defaults to true.\n */\nfunction setLogAttribute(\n  logAttributes: Record<string, unknown>,\n  key: string,\n  value: unknown,\n  setEvenIfPresent = true,\n): void {\n  if (value && (!logAttributes[key] || setEvenIfPresent)) {\n    logAttributes[key] = value;\n  }\n}\n\n/**\n * Captures a serialized log event and adds it to the log buffer for the given client.\n *\n * @param client - A client. Uses the current client if not provided.\n * @param serializedLog - The serialized log event to capture.\n *\n * @experimental This method will experience breaking changes. This is not yet part of\n * the stable Sentry SDK API and can be changed or removed without warning.\n */\nexport function _INTERNAL_captureSerializedLog(client: Client, serializedLog: SerializedLog): void {\n  const bufferMap = _getBufferMap();\n  const logBuffer = _INTERNAL_getLogBuffer(client);\n\n  if (logBuffer === undefined) {\n    bufferMap.set(client, [serializedLog]);\n  } else {\n    if (logBuffer.length >= MAX_LOG_BUFFER_SIZE) {\n      _INTERNAL_flushLogsBuffer(client, logBuffer);\n      bufferMap.set(client, [serializedLog]);\n    } else {\n      bufferMap.set(client, [...logBuffer, serializedLog]);\n    }\n  }\n}\n\n/**\n * Captures a log event and sends it to Sentry.\n *\n * @param log - The log event to capture.\n * @param scope - A scope. Uses the current scope if not provided.\n * @param client - A client. Uses the current client if not provided.\n * @param captureSerializedLog - A function to capture the serialized log.\n *\n * @experimental This method will experience breaking changes. This is not yet part of\n * the stable Sentry SDK API and can be changed or removed without warning.\n */\nexport function _INTERNAL_captureLog(\n  beforeLog: Log,\n  currentScope = getCurrentScope(),\n  captureSerializedLog: (client: Client, log: SerializedLog) => void = _INTERNAL_captureSerializedLog,\n): void {\n  const client = currentScope?.getClient() ?? getClient();\n  if (!client) {\n    DEBUG_BUILD && debug.warn('No client available to capture log.');\n    return;\n  }\n\n  const { release, environment, beforeSendLog } = client.getOptions();\n\n  const [, traceContext] = _getTraceInfoFromScope(client, currentScope);\n\n  const processedLogAttributes = {\n    ...beforeLog.attributes,\n  };\n\n  const {\n    user: { id, email, username },\n    attributes: scopeAttributes,\n  } = getCombinedScopeData(getIsolationScope(), currentScope);\n\n  setLogAttribute(processedLogAttributes, 'user.id', id, false);\n  setLogAttribute(processedLogAttributes, 'user.email', email, false);\n  setLogAttribute(processedLogAttributes, 'user.name', username, false);\n\n  setLogAttribute(processedLogAttributes, 'sentry.release', release);\n  setLogAttribute(processedLogAttributes, 'sentry.environment', environment);\n\n  const { name, version } = client.getSdkMetadata()?.sdk ?? {};\n  setLogAttribute(processedLogAttributes, 'sentry.sdk.name', name);\n  setLogAttribute(processedLogAttributes, 'sentry.sdk.version', version);\n\n  const replay = client.getIntegrationByName<\n    Integration & {\n      getReplayId: (onlyIfSampled?: boolean) => string;\n      getRecordingMode: () => 'session' | 'buffer' | undefined;\n    }\n  >('Replay');\n\n  const replayId = replay?.getReplayId(true);\n  setLogAttribute(processedLogAttributes, 'sentry.replay_id', replayId);\n\n  if (replayId && replay?.getRecordingMode() === 'buffer') {\n    // We send this so we can identify cases where the replayId is attached but the replay itself might not have been sent to Sentry\n    setLogAttribute(processedLogAttributes, 'sentry._internal.replay_is_buffering', true);\n  }\n\n  const beforeLogMessage = beforeLog.message;\n  if (isParameterizedString(beforeLogMessage)) {\n    const { __sentry_template_string__, __sentry_template_values__ = [] } = beforeLogMessage;\n    if (__sentry_template_values__?.length) {\n      processedLogAttributes['sentry.message.template'] = __sentry_template_string__;\n    }\n    __sentry_template_values__.forEach((param, index) => {\n      processedLogAttributes[`sentry.message.parameter.${index}`] = param;\n    });\n  }\n\n  const span = getActiveSpan(currentScope);\n  // Add the parent span ID to the log attributes for trace context\n  setLogAttribute(processedLogAttributes, 'sentry.trace.parent_span_id', span?.spanContext().spanId);\n\n  const processedLog = { ...beforeLog, attributes: processedLogAttributes };\n\n  client.emit('beforeCaptureLog', processedLog);\n\n  const log = beforeSendLog\n    ? safeCallback<Log | null | typeof CALLBACK_ERROR>(\n        DEBUG_BUILD ? 'The `beforeSendLog` callback threw an error, dropping the log:' : '',\n        // We need to wrap this in `consoleSandbox` to avoid recursive calls to `beforeSendLog`\n        () => consoleSandbox(() => beforeSendLog(processedLog)),\n        () => CALLBACK_ERROR,\n      )\n    : processedLog;\n  if (log === CALLBACK_ERROR) {\n    client.recordDroppedEvent('callback_error', 'log_item', 1);\n    return;\n  }\n  if (!log) {\n    client.recordDroppedEvent('before_send', 'log_item', 1);\n    DEBUG_BUILD && debug.warn('beforeSendLog returned null, log will not be captured.');\n    return;\n  }\n\n  const { level, message, attributes: logAttributes = {}, severityNumber } = log;\n\n  const timestamp = timestampInSeconds();\n  const sequenceAttr = getSequenceAttribute(timestamp);\n\n  const serializedLog: SerializedLog = {\n    timestamp,\n    level,\n    body: _removeLoneSurrogates(String(message)),\n    trace_id: traceContext?.trace_id,\n    severity_number: severityNumber ?? SEVERITY_TEXT_TO_SEVERITY_NUMBER[level],\n    attributes: sanitizeLogAttributes({\n      ...serializeAttributes(scopeAttributes),\n      ...serializeAttributes(logAttributes, true),\n      [sequenceAttr.key]: sequenceAttr.value,\n    }),\n  };\n\n  captureSerializedLog(client, serializedLog);\n\n  client.emit('afterCaptureLog', log);\n}\n\n/**\n * Flushes the logs buffer to Sentry.\n *\n * @param client - A client.\n * @param maybeLogBuffer - A log buffer. Uses the log buffer for the given client if not provided.\n *\n * @experimental This method will experience breaking changes. This is not yet part of\n * the stable Sentry SDK API and can be changed or removed without warning.\n */\nexport function _INTERNAL_flushLogsBuffer(client: Client, maybeLogBuffer?: Array<SerializedLog>): void {\n  const logBuffer = maybeLogBuffer ?? _INTERNAL_getLogBuffer(client) ?? [];\n  if (logBuffer.length === 0) {\n    return;\n  }\n\n  const clientOptions = client.getOptions();\n  const envelope = createLogEnvelope(\n    logBuffer,\n    clientOptions._metadata,\n    clientOptions.tunnel,\n    client.getDsn(),\n    client.getDataCollectionOptions().userInfo,\n  );\n\n  // Clear the log buffer after envelopes have been constructed.\n  _getBufferMap().set(client, []);\n\n  client.emit('flushLogs');\n\n  // sendEnvelope should not throw\n  // eslint-disable-next-line @typescript-eslint/no-floating-promises\n  client.sendEnvelope(envelope);\n}\n\n/**\n * Returns the log buffer for a given client.\n *\n * Exported for testing purposes.\n *\n * @param client - The client to get the log buffer for.\n * @returns The log buffer for the given client.\n */\nexport function _INTERNAL_getLogBuffer(client: Client): Array<SerializedLog> | undefined {\n  return _getBufferMap().get(client);\n}\n\nfunction _getBufferMap(): WeakMap<Client, Array<SerializedLog>> {\n  // The reference to the Client <> LogBuffer map is stored on the carrier to ensure it's always the same\n  return getGlobalSingleton('clientToLogBufferMap', () => new WeakMap<Client, Array<SerializedLog>>());\n}\n\n/**\n * Sanitizes serialized log attributes by replacing lone surrogates in both\n * keys and string values with U+FFFD.\n */\nfunction sanitizeLogAttributes(attributes: Attributes): Attributes {\n  const sanitized: Attributes = {};\n  for (const [key, attr] of Object.entries(attributes)) {\n    const sanitizedKey = _removeLoneSurrogates(key);\n    if (attr.type === 'string') {\n      sanitized[sanitizedKey] = { ...attr, value: _removeLoneSurrogates(attr.value) };\n    } else {\n      sanitized[sanitizedKey] = attr;\n    }\n  }\n  return sanitized;\n}\n\n/**\n * Replaces unpaired UTF-16 surrogates with U+FFFD (replacement character).\n *\n * Lone surrogates (U+D800–U+DFFF not part of a valid pair) cause `serde_json`\n * on the server to reject the entire log batch when they appear in\n * JSON-escaped form (e.g. `\\uD800`). Replacing them at the SDK level ensures\n * only the offending characters are lost instead of the whole payload.\n *\n * Uses the native `String.prototype.toWellFormed()` when available\n * (Node 20+, Chrome 111+, Safari 15.4+, Firefox 119+, Hermes).\n * On older runtimes without native support, returns the string as-is.\n *\n * Exported for testing\n */\nexport function _removeLoneSurrogates(str: string): string {\n  // isWellFormed/toWellFormed are ES2024 (not in our TS lib target), so we feature-detect via Object().\n  const strObj: Record<string, Function> = Object(str);\n  const isWellFormed = strObj['isWellFormed'];\n  const toWellFormed = strObj['toWellFormed'];\n  if (typeof isWellFormed === 'function' && typeof toWellFormed === 'function') {\n    return isWellFormed.call(str) ? str : toWellFormed.call(str);\n  }\n  return str;\n}\n","import type { DsnComponents } from '../types/dsn';\nimport type { MetricContainerItem, MetricEnvelope } from '../types/envelope';\nimport type { SerializedMetric } from '../types/metric';\nimport type { SdkMetadata } from '../types/sdkmetadata';\nimport { dsnToString } from '../utils/dsn';\nimport { createEnvelope } from '../utils/envelope';\nimport { isBrowser } from '../utils/isBrowser';\n\n/**\n * Creates a metric container envelope item for a list of metrics.\n *\n * @param items - The metrics to include in the envelope.\n * @param inferUserData - If true, tells Relay to infer the end-user IP and User-Agent from the incoming request.\n *                        Only emitted as `ingest_settings` in browser environments.\n * @returns The created metric container envelope item.\n */\nexport function createMetricContainerEnvelopeItem(\n  items: Array<SerializedMetric>,\n  inferUserData?: boolean,\n): MetricContainerItem {\n  const inferSetting = inferUserData ? 'auto' : 'never';\n  return [\n    {\n      type: 'trace_metric',\n      item_count: items.length,\n      content_type: 'application/vnd.sentry.items.trace-metric+json',\n    },\n    {\n      version: 2,\n      ...(isBrowser() && {\n        ingest_settings: { infer_ip: inferSetting, infer_user_agent: inferSetting },\n      }),\n      items,\n    },\n  ];\n}\n\n/**\n * Creates an envelope for a list of metrics.\n *\n * Metrics from multiple traces can be included in the same envelope.\n *\n * @param metrics - The metrics to include in the envelope.\n * @param metadata - The metadata to include in the envelope.\n * @param tunnel - The tunnel to include in the envelope.\n * @param dsn - The DSN to include in the envelope.\n * @param inferUserData - If true, tells Relay to infer the end-user IP and User-Agent from the incoming request.\n * @returns The created envelope.\n */\nexport function createMetricEnvelope(\n  metrics: Array<SerializedMetric>,\n  metadata?: SdkMetadata,\n  tunnel?: string,\n  dsn?: DsnComponents,\n  inferUserData?: boolean,\n): MetricEnvelope {\n  const headers: MetricEnvelope[0] = {};\n\n  if (metadata?.sdk) {\n    headers.sdk = {\n      name: metadata.sdk.name,\n      version: metadata.sdk.version,\n    };\n  }\n\n  if (!!tunnel && !!dsn) {\n    headers.dsn = dsnToString(dsn);\n  }\n\n  return createEnvelope<MetricEnvelope>(headers, [createMetricContainerEnvelopeItem(metrics, inferUserData)]);\n}\n","import { type RawAttributes, serializeAttributes } from '../attributes';\nimport { getGlobalSingleton } from '../carrier';\nimport type { Client } from '../client';\nimport { getClient, getCurrentScope, getIsolationScope } from '../currentScopes';\nimport { DEBUG_BUILD } from '../debug-build';\nimport type { Scope } from '../scope';\nimport type { Integration } from '../types/integration';\nimport type { Metric, SerializedMetric } from '../types/metric';\nimport type { User } from '../types/user';\nimport { debug } from '../utils/debug-logger';\nimport { CALLBACK_ERROR, safeCallback } from '../utils/safeCallback';\nimport { getCombinedScopeData } from '../utils/scopeData';\nimport { getActiveSpan } from '../utils/spanUtils';\nimport { timestampInSeconds } from '../utils/time';\nimport { getSequenceAttribute } from '../utils/timestampSequence';\nimport { _getTraceInfoFromScope } from '../utils/trace-info';\nimport { createMetricEnvelope } from './envelope';\n\nconst MAX_METRIC_BUFFER_SIZE = 1000;\n\n/**\n * Sets a metric attribute if the value exists and the attribute key is not already present.\n *\n * @param metricAttributes - The metric attributes object to modify.\n * @param key - The attribute key to set.\n * @param value - The value to set (only sets if truthy and key not present).\n * @param setEvenIfPresent - Whether to set the attribute if it is present. Defaults to true.\n */\nfunction setMetricAttribute(\n  metricAttributes: Record<string, unknown>,\n  key: string,\n  value: unknown,\n  setEvenIfPresent = true,\n): void {\n  if (value && (setEvenIfPresent || !(key in metricAttributes))) {\n    metricAttributes[key] = value;\n  }\n}\n\n/**\n * Captures a serialized metric event and adds it to the metric buffer for the given client.\n *\n * @param client - A client. Uses the current client if not provided.\n * @param serializedMetric - The serialized metric event to capture.\n *\n * @experimental This method will experience breaking changes. This is not yet part of\n * the stable Sentry SDK API and can be changed or removed without warning.\n */\nexport function _INTERNAL_captureSerializedMetric(client: Client, serializedMetric: SerializedMetric): void {\n  const bufferMap = _getBufferMap();\n  const metricBuffer = _INTERNAL_getMetricBuffer(client);\n\n  if (metricBuffer === undefined) {\n    bufferMap.set(client, [serializedMetric]);\n  } else {\n    if (metricBuffer.length >= MAX_METRIC_BUFFER_SIZE) {\n      _INTERNAL_flushMetricsBuffer(client, metricBuffer);\n      bufferMap.set(client, [serializedMetric]);\n    } else {\n      bufferMap.set(client, [...metricBuffer, serializedMetric]);\n    }\n  }\n}\n\n/**\n * Options for capturing a metric internally.\n */\nexport interface InternalCaptureMetricOptions {\n  /**\n   * The scope to capture the metric with.\n   */\n  scope?: Scope;\n\n  /**\n   * A function to capture the serialized metric.\n   */\n  captureSerializedMetric?: (client: Client, metric: SerializedMetric) => void;\n}\n\n/**\n * Enriches metric with all contextual attributes (user, SDK metadata, replay, etc.)\n */\nfunction _enrichMetricAttributes(beforeMetric: Metric, client: Client, user: User): Metric {\n  const { release, environment } = client.getOptions();\n\n  const processedMetricAttributes = {\n    ...beforeMetric.attributes,\n  };\n\n  // Add user attributes\n  setMetricAttribute(processedMetricAttributes, 'user.id', user.id, false);\n  setMetricAttribute(processedMetricAttributes, 'user.email', user.email, false);\n  setMetricAttribute(processedMetricAttributes, 'user.name', user.username, false);\n\n  // Add Sentry metadata\n  setMetricAttribute(processedMetricAttributes, 'sentry.release', release);\n  setMetricAttribute(processedMetricAttributes, 'sentry.environment', environment);\n\n  // Add SDK metadata\n  const { name, version } = client.getSdkMetadata()?.sdk ?? {};\n  setMetricAttribute(processedMetricAttributes, 'sentry.sdk.name', name);\n  setMetricAttribute(processedMetricAttributes, 'sentry.sdk.version', version);\n\n  // Add replay metadata\n  const replay = client.getIntegrationByName<\n    Integration & {\n      getReplayId: (onlyIfSampled?: boolean) => string;\n      getRecordingMode: () => 'session' | 'buffer' | undefined;\n    }\n  >('Replay');\n\n  const replayId = replay?.getReplayId(true);\n  setMetricAttribute(processedMetricAttributes, 'sentry.replay_id', replayId);\n\n  if (replayId && replay?.getRecordingMode() === 'buffer') {\n    setMetricAttribute(processedMetricAttributes, 'sentry._internal.replay_is_buffering', true);\n  }\n\n  return {\n    ...beforeMetric,\n    attributes: processedMetricAttributes,\n  };\n}\n\n/**\n * Creates a serialized metric ready to be sent to Sentry.\n */\nfunction _buildSerializedMetric(\n  metric: Metric,\n  client: Client,\n  currentScope: Scope,\n  scopeAttributes: RawAttributes<Record<string, unknown>>,\n): SerializedMetric {\n  // Get trace context\n  const [, traceContext] = _getTraceInfoFromScope(client, currentScope);\n  const span = getActiveSpan(currentScope);\n  const traceId = span ? span.spanContext().traceId : traceContext?.trace_id;\n  const spanId = span ? span.spanContext().spanId : undefined;\n\n  const timestamp = timestampInSeconds();\n  const sequenceAttr = getSequenceAttribute(timestamp);\n\n  return {\n    timestamp,\n    trace_id: traceId ?? '',\n    span_id: spanId,\n    name: metric.name,\n    type: metric.type,\n    unit: metric.unit,\n    value: metric.value,\n    attributes: {\n      ...serializeAttributes(scopeAttributes),\n      ...serializeAttributes(metric.attributes, 'skip-undefined'),\n      [sequenceAttr.key]: sequenceAttr.value,\n    },\n  };\n}\n\n/**\n * Captures a metric event and sends it to Sentry.\n *\n * @param metric - The metric event to capture.\n * @param options - Options for capturing the metric.\n *\n * @experimental This method will experience breaking changes. This is not yet part of\n * the stable Sentry SDK API and can be changed or removed without warning.\n */\nexport function _INTERNAL_captureMetric(beforeMetric: Metric, options?: InternalCaptureMetricOptions): void {\n  const currentScope = options?.scope ?? getCurrentScope();\n  const captureSerializedMetric = options?.captureSerializedMetric ?? _INTERNAL_captureSerializedMetric;\n  const client = currentScope?.getClient() ?? getClient();\n  if (!client) {\n    DEBUG_BUILD && debug.warn('No client available to capture metric.');\n    return;\n  }\n\n  const { beforeSendMetric } = client.getOptions();\n\n  // Enrich metric with contextual attributes\n  const { user, attributes: scopeAttributes } = getCombinedScopeData(getIsolationScope(), currentScope);\n  const enrichedMetric = _enrichMetricAttributes(beforeMetric, client, user);\n\n  client.emit('processMetric', enrichedMetric);\n\n  const processedMetric = beforeSendMetric\n    ? safeCallback<Metric | null | typeof CALLBACK_ERROR>(\n        DEBUG_BUILD ? 'The `beforeSendMetric` callback threw an error, dropping the metric:' : '',\n        () => beforeSendMetric(enrichedMetric),\n        () => CALLBACK_ERROR,\n      )\n    : enrichedMetric;\n\n  if (processedMetric === CALLBACK_ERROR) {\n    client.recordDroppedEvent('callback_error', 'metric', 1);\n    return;\n  }\n\n  if (!processedMetric) {\n    client.recordDroppedEvent('before_send', 'metric', 1);\n    DEBUG_BUILD && debug.log('`beforeSendMetric` returned `null`, will not send metric.');\n    return;\n  }\n\n  const serializedMetric = _buildSerializedMetric(processedMetric, client, currentScope, scopeAttributes);\n\n  DEBUG_BUILD && debug.log('[Metric]', serializedMetric);\n\n  captureSerializedMetric(client, serializedMetric);\n\n  client.emit('afterCaptureMetric', processedMetric);\n}\n\n/**\n * Flushes the metrics buffer to Sentry.\n *\n * @param client - A client.\n * @param maybeMetricBuffer - A metric buffer. Uses the metric buffer for the given client if not provided.\n *\n * @experimental This method will experience breaking changes. This is not yet part of\n * the stable Sentry SDK API and can be changed or removed without warning.\n */\nexport function _INTERNAL_flushMetricsBuffer(client: Client, maybeMetricBuffer?: Array<SerializedMetric>): void {\n  const metricBuffer = maybeMetricBuffer ?? _INTERNAL_getMetricBuffer(client) ?? [];\n  if (metricBuffer.length === 0) {\n    return;\n  }\n\n  const clientOptions = client.getOptions();\n  const envelope = createMetricEnvelope(\n    metricBuffer,\n    clientOptions._metadata,\n    clientOptions.tunnel,\n    client.getDsn(),\n    client.getDataCollectionOptions().userInfo,\n  );\n\n  // Clear the metric buffer after envelopes have been constructed.\n  _getBufferMap().set(client, []);\n\n  client.emit('flushMetrics');\n\n  // sendEnvelope should not throw\n  // eslint-disable-next-line @typescript-eslint/no-floating-promises\n  client.sendEnvelope(envelope);\n}\n\n/**\n * Returns the metric buffer for a given client.\n *\n * Exported for testing purposes.\n *\n * @param client - The client to get the metric buffer for.\n * @returns The metric buffer for the given client.\n */\nexport function _INTERNAL_getMetricBuffer(client: Client): Array<SerializedMetric> | undefined {\n  return _getBufferMap().get(client);\n}\n\nfunction _getBufferMap(): WeakMap<Client, Array<SerializedMetric>> {\n  // The reference to the Client <> MetricBuffer map is stored on the carrier to ensure it's always the same\n  return getGlobalSingleton('clientToMetricBufferMap', () => new WeakMap<Client, Array<SerializedMetric>>());\n}\n","import { DEBUG_BUILD } from '../../debug-build';\nimport type { BeforeSendStaticSpanCallback, BeforeSendStreamedSpanCallback } from '../../types/options';\nimport type { SpanJSON, StreamedSpanJSON } from '../../types/span';\nimport { addNonEnumerableProperty } from '../../utils/object';\nimport { safeCallback } from '../../utils/safeCallback';\n\n/**\n * A wrapper to use the static, transaction-based span format in your `beforeSendSpan` callback.\n *\n * When using `traceLifecycle: 'static'`, wrap your callback with this function\n * to receive and return a static span instead of a {@link StreamedSpanJSON}.\n *\n * @example\n *\n * Sentry.init({\n *   traceLifecycle: 'static',\n *   beforeSendSpan: withStaticSpan((span) => {\n *     // span is of type SpanJSON\n *     return span;\n *   }),\n * });\n *\n * @param callback - A {@link BeforeSendStaticSpanCallback} that receives and returns a static span.\n * @returns A callback that is compatible with the `beforeSendSpan` option when using `traceLifecycle: 'static'`.\n */\nexport function withStaticSpan(callback: BeforeSendStaticSpanCallback): BeforeSendStreamedSpanCallback {\n  addNonEnumerableProperty(callback, '_static', true);\n  // `beforeSendSpan` is typed as a single streamed callback so that an unwrapped callback's parameter\n  // is contextually typed as `StreamedSpanJSON`. The `_static` marker tells the SDK to hand this\n  // callback a `SpanJSON` instead, so the declared parameter type is deliberately not what it receives.\n  return callback as unknown as BeforeSendStreamedSpanCallback;\n}\n\n/**\n * A wrapper to explicitly use the streamed span format in your `beforeSendSpan` callback.\n *\n * @deprecated `beforeSendSpan` callbacks receive {@link StreamedSpanJSON} by default.\n * This function returns the callback unchanged and will be removed in SDK version 12.\n *\n * @param callback - The callback function that receives and returns a {@link StreamedSpanJSON}.\n * @returns The provided callback.\n */\nexport function withStreamedSpan(\n  callback: (span: StreamedSpanJSON) => StreamedSpanJSON,\n): BeforeSendStreamedSpanCallback {\n  return callback;\n}\n\n/**\n * Typesafe check to identify if a `beforeSendSpan` callback expects the static span JSON format.\n *\n * @param callback - The `beforeSendSpan` callback to check.\n * @returns `true` if the callback was wrapped with {@link withStaticSpan}.\n */\nexport function isStaticBeforeSendSpanCallback(callback: unknown): callback is BeforeSendStaticSpanCallback {\n  return !!callback && typeof callback === 'function' && '_static' in callback && !!callback._static;\n}\n\n/**\n * Apply a user-provided beforeSendSpan callback to a span JSON.\n */\nexport function applyBeforeSendSpanCallback<T extends StreamedSpanJSON | SpanJSON>(\n  span: T,\n  beforeSendSpan: (span: T) => T,\n): T {\n  // Spans are captured synchronously when they end, so a throwing callback would otherwise\n  // propagate into whatever user code ended the span.\n  const modifiedSpan = safeCallback(\n    DEBUG_BUILD ? 'The `beforeSendSpan` callback threw an error, sending the span unmodified:' : '',\n    () => beforeSendSpan(span),\n    () => span,\n  );\n  return modifiedSpan || span;\n}\n","import type { Client } from '../../client';\nimport type { DynamicSamplingContext, SpanContainerItem, StreamedSpanEnvelope } from '../../types/envelope';\nimport type { SerializedStreamedSpan } from '../../types/span';\nimport { dsnToString } from '../../utils/dsn';\nimport { createEnvelope, getSdkMetadataForEnvelopeHeader } from '../../utils/envelope';\nimport { isBrowser } from '../../utils/isBrowser';\nimport { safeDateNow } from '../../utils/randomSafeContext';\n\n/**\n * Creates a span v2 span streaming envelope\n */\nexport function createStreamedSpanEnvelope(\n  serializedSpans: Array<SerializedStreamedSpan>,\n  dsc: Partial<DynamicSamplingContext>,\n  client: Client,\n): StreamedSpanEnvelope {\n  const options = client.getOptions();\n  const dsn = client.getDsn();\n  const tunnel = options.tunnel;\n  const sdk = getSdkMetadataForEnvelopeHeader(options._metadata);\n\n  const headers: StreamedSpanEnvelope[0] = {\n    sent_at: new Date(safeDateNow()).toISOString(),\n    ...(dscHasRequiredProps(dsc) && { trace: dsc }),\n    ...(sdk && { sdk }),\n    ...(!!tunnel && dsn && { dsn: dsnToString(dsn) }),\n  };\n\n  return createEnvelope<StreamedSpanEnvelope>(headers, [createSpanContainerItem(serializedSpans, client)]);\n}\n\n/**\n * Builds a span v2 container envelope item from already-serialized streamed spans.\n */\nexport function createSpanContainerItem(\n  serializedSpans: Array<SerializedStreamedSpan>,\n  client: Client,\n): SpanContainerItem {\n  const inferSetting = client.getDataCollectionOptions().userInfo ? 'auto' : 'never';\n\n  return [\n    { type: 'span', item_count: serializedSpans.length, content_type: 'application/vnd.sentry.items.span.v2+json' },\n    {\n      version: 2,\n      ingest_settings: isBrowser() ? { infer_ip: inferSetting, infer_user_agent: inferSetting } : undefined,\n      items: serializedSpans,\n    },\n  ];\n}\n\nfunction dscHasRequiredProps(dsc: Partial<DynamicSamplingContext>): dsc is DynamicSamplingContext {\n  return !!dsc.trace_id && !!dsc.public_key;\n}\n","import type { RawAttributes } from '../../attributes';\nimport type { SerializedStreamedSpan, SpanJSON, StreamedSpanJSON } from '../../types/span';\nimport { streamedSpanJsonToSerializedSpan } from '../../utils/spanUtils';\n\n/**\n * Converts a v1 SpanJSON (from a legacy transaction) to a serialized v2 StreamedSpan.\n */\nexport function spanJsonToSerializedStreamedSpan(span: SpanJSON): SerializedStreamedSpan {\n  const streamedSpan: StreamedSpanJSON = {\n    trace_id: span.trace_id,\n    span_id: span.span_id,\n    parent_span_id: span.parent_span_id,\n    name: span.description || '',\n    start_timestamp: span.start_timestamp,\n    end_timestamp: span.timestamp,\n    status: !span.status || span.status === 'ok' || span.status === 'cancelled' ? 'ok' : 'error',\n    is_segment: false,\n    attributes: { ...(span.data as RawAttributes<Record<string, unknown>>) },\n    links: span.links,\n  };\n\n  return streamedSpanJsonToSerializedSpan(streamedSpan);\n}\n","/**\n * Calls `unref` on a timer, if the method is available on @param timer.\n *\n * `unref()` is used to allow processes to exit immediately, even if the timer\n * is still running and hasn't resolved yet.\n *\n * Use this in places where code can run on browser or server, since browsers\n * do not support `unref`.\n */\nexport function safeUnref(timer: ReturnType<typeof setTimeout>): ReturnType<typeof setTimeout> {\n  if (typeof timer === 'object' && typeof timer.unref === 'function') {\n    timer.unref();\n  }\n  return timer;\n}\n","import { rejectedSyncPromise, resolvedSyncPromise } from './syncpromise';\nimport { safeUnref } from './timer';\n\nexport interface PromiseBuffer<T> {\n  // exposes the internal array so tests can assert on the state of it.\n  // XXX: this really should not be public api.\n  $: PromiseLike<T>[];\n  add(taskProducer: () => PromiseLike<T>): PromiseLike<T>;\n  drain(timeout?: number): PromiseLike<boolean>;\n}\n\nexport const SENTRY_BUFFER_FULL_ERROR = Symbol.for('SentryBufferFullError');\n\n/**\n * Creates an new PromiseBuffer object with the specified limit\n * @param limit max number of promises that can be stored in the buffer\n */\nexport function makePromiseBuffer<T>(limit: number = 100): PromiseBuffer<T> {\n  const buffer: Set<PromiseLike<T>> = new Set();\n\n  function isReady(): boolean {\n    return buffer.size < limit;\n  }\n\n  /**\n   * Remove a promise from the queue.\n   *\n   * @param task Can be any PromiseLike<T>\n   * @returns Removed promise.\n   */\n  function remove(task: PromiseLike<T>): void {\n    buffer.delete(task);\n  }\n\n  /**\n   * Add a promise (representing an in-flight action) to the queue, and set it to remove itself on fulfillment.\n   *\n   * @param taskProducer A function producing any PromiseLike<T>; In previous versions this used to be `task:\n   *        PromiseLike<T>`, but under that model, Promises were instantly created on the call-site and their executor\n   *        functions therefore ran immediately. Thus, even if the buffer was full, the action still happened. By\n   *        requiring the promise to be wrapped in a function, we can defer promise creation until after the buffer\n   *        limit check.\n   * @returns The original promise.\n   */\n  function add(taskProducer: () => PromiseLike<T>): PromiseLike<T> {\n    if (!isReady()) {\n      return rejectedSyncPromise(SENTRY_BUFFER_FULL_ERROR);\n    }\n\n    // start the task and add its promise to the queue\n    const task = taskProducer();\n    buffer.add(task);\n    void task.then(\n      () => remove(task),\n      () => remove(task),\n    );\n    return task;\n  }\n\n  /**\n   * Wait for all promises in the queue to resolve or for timeout to expire, whichever comes first.\n   *\n   * @param timeout The time, in ms, after which to resolve to `false` if the queue is still non-empty. Passing `0` (or\n   * not passing anything) will make the promise wait as long as it takes for the queue to drain before resolving to\n   * `true`.\n   * @returns A promise which will resolve to `true` if the queue is already empty or drains before the timeout, and\n   * `false` otherwise\n   */\n  function drain(timeout?: number): PromiseLike<boolean> {\n    if (!buffer.size) {\n      return resolvedSyncPromise(true);\n    }\n\n    // We want to resolve even if one of the promises rejects\n    const drainPromise = Promise.allSettled(Array.from(buffer)).then(() => true);\n\n    if (!timeout) {\n      return drainPromise;\n    }\n\n    const promises = [\n      drainPromise,\n      new Promise<boolean>(resolve => safeUnref(setTimeout(() => resolve(false), timeout))),\n    ];\n\n    return Promise.race(promises);\n  }\n\n  return {\n    get $(): PromiseLike<T>[] {\n      return Array.from(buffer);\n    },\n    add,\n    drain,\n  };\n}\n","import { DEBUG_BUILD } from '../debug-build';\nimport type { ClientOptions, IgnoreSpanAttributeValue } from '../types/options';\nimport type { SpanJSON } from '../types/span';\nimport { debug } from './debug-logger';\nimport { isMatchingPattern } from './string';\n\nfunction logIgnoredSpan(droppedSpan: Pick<SpanJSON, 'description' | 'op'>): void {\n  debug.log(`Ignoring span ${droppedSpan.op} - ${droppedSpan.description} because it matches \\`ignoreSpans\\`.`);\n}\n\n/**\n * Check if a span should be ignored based on the ignoreSpans configuration.\n */\nexport function shouldIgnoreSpan(\n  span: Pick<SpanJSON, 'description' | 'op'> & { attributes?: Record<string, unknown> },\n  ignoreSpans: Required<ClientOptions>['ignoreSpans'],\n): boolean {\n  if (!ignoreSpans?.length) {\n    return false;\n  }\n\n  for (const pattern of ignoreSpans) {\n    if (isStringOrRegExp(pattern)) {\n      if (span.description && isMatchingPattern(span.description, pattern)) {\n        DEBUG_BUILD && logIgnoredSpan(span);\n        return true;\n      }\n      continue;\n    }\n\n    const hasAttributes = !!pattern.attributes && Object.keys(pattern.attributes).length > 0;\n    if (!pattern.name && !pattern.op && !hasAttributes) {\n      continue;\n    }\n\n    const nameMatches = pattern.name ? span.description && isMatchingPattern(span.description, pattern.name) : true;\n    const opMatches = pattern.op ? span.op && isMatchingPattern(span.op, pattern.op) : true;\n    const attrsMatch = pattern.attributes\n      ? Object.entries(pattern.attributes).every(([key, valuePattern]) =>\n          _matchesAttributeValue(span.attributes?.[key], valuePattern),\n        )\n      : true;\n\n    // This check here is only correct because we can guarantee that we ran `isMatchingPattern`\n    // for at least one of `nameMatches`, `opMatches`, or `attrsMatch`. So in contrary to how this looks,\n    // not all of op, name, and attributes actually have to match. This is the most efficient way to check\n    // for all combinations of name, op, and attribute patterns.\n    if (nameMatches && opMatches && attrsMatch) {\n      DEBUG_BUILD && logIgnoredSpan(span);\n      return true;\n    }\n  }\n\n  return false;\n}\n\nfunction _matchesAttributeValue(actual: unknown, pat: IgnoreSpanAttributeValue): boolean {\n  // String values support pattern matching\n  if (typeof actual === 'string' && (typeof pat === 'string' || pat instanceof RegExp)) {\n    return isMatchingPattern(actual, pat);\n  }\n  // Arrays: element-wise strict equality\n  if (Array.isArray(actual) && Array.isArray(pat)) {\n    return actual.length === pat.length && actual.every((v, i) => v === pat[i]);\n  }\n  // Primitives: strict equality\n  return actual === pat;\n}\n\n/**\n * Takes a list of spans, and a span that was dropped, and re-parents the child spans of the dropped span to the parent of the dropped span, if possible.\n * This mutates the spans array in place!\n */\nexport function reparentChildSpans(spans: SpanJSON[], dropSpan: SpanJSON): void {\n  const droppedSpanParentId = dropSpan.parent_span_id;\n  const droppedSpanId = dropSpan.span_id;\n\n  // This should generally not happen, as we do not apply this on root spans\n  // but to be safe, we just bail in this case\n  if (!droppedSpanParentId) {\n    return;\n  }\n\n  for (const span of spans) {\n    if (span.parent_span_id === droppedSpanId) {\n      span.parent_span_id = droppedSpanParentId;\n    }\n  }\n}\n\nfunction isStringOrRegExp(value: unknown): value is string | RegExp {\n  return typeof value === 'string' || value instanceof RegExp;\n}\n","import type {\n  CollectBehavior,\n  DataCollection,\n  HttpHeadersCollection,\n  ResolvedDataCollection,\n} from '../../types/datacollection';\n\nconst DEFAULTS: ResolvedDataCollection = {\n  userInfo: true,\n  cookies: true,\n  httpHeaders: { request: true, response: true },\n  httpBodies: ['incomingRequest', 'outgoingRequest', 'incomingResponse', 'outgoingResponse'],\n  urlQueryParams: true,\n  graphQL: { document: true, variables: true },\n  genAI: { inputs: true, outputs: true },\n  databaseQueryData: true,\n  queues: true,\n  stackFrameVariables: true,\n  frameContextLines: 5,\n};\n\nfunction isCollectBehavior(value: CollectBehavior | HttpHeadersCollection): value is CollectBehavior {\n  return typeof value === 'boolean' || 'allow' in value || 'deny' in value;\n}\n\nfunction resolveHttpHeaders(httpHeaders: DataCollection['httpHeaders']): ResolvedDataCollection['httpHeaders'] {\n  if (httpHeaders === undefined) {\n    return { ...DEFAULTS.httpHeaders };\n  }\n\n  if (isCollectBehavior(httpHeaders)) {\n    return { request: httpHeaders, response: httpHeaders };\n  }\n\n  return {\n    request: httpHeaders.request ?? DEFAULTS.httpHeaders.request,\n    response: httpHeaders.response ?? DEFAULTS.httpHeaders.response,\n  };\n}\n\n/**\n * Resolves the effective `DataCollection` configuration from client options.\n *\n * Precedence:\n * 1. Spec defaults\n * 2. Fields explicitly set in `dataCollection`\n */\nexport function resolveDataCollectionOptions(options: { dataCollection?: DataCollection }): ResolvedDataCollection {\n  const dc = options.dataCollection ?? {};\n\n  return {\n    userInfo: dc.userInfo ?? DEFAULTS.userInfo,\n    cookies: dc.cookies ?? DEFAULTS.cookies,\n    httpHeaders: resolveHttpHeaders(dc.httpHeaders),\n    httpBodies: dc.httpBodies ?? DEFAULTS.httpBodies,\n    urlQueryParams: dc.urlQueryParams ?? DEFAULTS.urlQueryParams,\n    graphQL: {\n      document: dc.graphQL?.document ?? DEFAULTS.graphQL.document,\n      variables: dc.graphQL?.variables ?? DEFAULTS.graphQL.variables,\n    },\n    genAI: {\n      inputs: dc.genAI?.inputs ?? DEFAULTS.genAI.inputs,\n      outputs: dc.genAI?.outputs ?? DEFAULTS.genAI.outputs,\n    },\n    databaseQueryData: dc.databaseQueryData ?? DEFAULTS.databaseQueryData,\n    queues: dc.queues ?? DEFAULTS.queues,\n    stackFrameVariables: dc.stackFrameVariables ?? DEFAULTS.stackFrameVariables,\n    frameContextLines: dc.frameContextLines ?? DEFAULTS.frameContextLines,\n  };\n}\n","/* eslint-disable max-lines */\nimport { getEnvelopeEndpointWithUrlEncodedAuth } from './api';\nimport { DEFAULT_ENVIRONMENT } from './constants';\nimport { getCurrentScope, getIsolationScope, getTraceContextFromScope } from './currentScopes';\nimport { DEBUG_BUILD } from './debug-build';\nimport { createEventEnvelope, createSessionEnvelope } from './envelope';\nimport type { IntegrationIndex } from './integration';\nimport { afterSetupIntegrations, setupIntegration, setupIntegrations } from './integration';\nimport { _INTERNAL_flushLogsBuffer } from './logs/internal';\nimport { _INTERNAL_flushMetricsBuffer } from './metrics/internal';\nimport type { Scope } from './scope';\nimport { updateSession } from './session';\nimport { getDynamicSamplingContextFromScope } from './tracing/dynamicSamplingContext';\nimport { isStaticBeforeSendSpanCallback } from './tracing/spans/beforeSendSpan';\nimport { extractGenAiSpansFromEvent } from './tracing/spans/extractGenAiSpans';\nimport { DEFAULT_TRANSPORT_BUFFER_SIZE } from './transports/base';\nimport type { Breadcrumb, BreadcrumbHint, FetchBreadcrumbHint, XhrBreadcrumbHint } from './types/breadcrumb';\nimport type { CheckIn, MonitorConfig } from './types/checkin';\nimport type { EventDropReason, Outcome } from './types/clientreport';\nimport type { DataCategory } from './types/datacategory';\nimport type { DsnComponents } from './types/dsn';\nimport type { DynamicSamplingContext, Envelope } from './types/envelope';\nimport type { ErrorEvent, Event, EventHint, TransactionEvent } from './types/event';\nimport type { EventProcessor } from './types/eventprocessor';\nimport type { FeedbackEvent } from './types/feedback';\nimport type { Integration } from './types/integration';\nimport type { Log } from './types/log';\nimport type { Metric } from './types/metric';\nimport type { Primitive } from './types/misc';\nimport type { ClientOptions } from './types/options';\nimport type { ParameterizedString } from './types/parameterize';\nimport type { ReplayEndEvent, ReplayStartEvent } from './types/replay';\nimport type { RequestEventData } from './types/request';\nimport type { SdkMetadata } from './types/sdkmetadata';\nimport type { Session, SessionAggregates, SessionStatus } from './types/session';\nimport type { SeverityLevel } from './types/severity';\nimport type { Span, SpanAttributes, SpanContextData, SpanJSON, StreamedSpanJSON } from './types/span';\nimport type { StartSpanOptions } from './types/startSpanOptions';\nimport type { Transport, TransportMakeRequestResponse } from './types/transport';\nimport type { ResolvedDataCollection } from './types/datacollection';\nimport { createClientReportEnvelope } from './utils/clientreport';\nimport { consoleSandbox, debug } from './utils/debug-logger';\nimport { dsnToString, makeDsn } from './utils/dsn';\nimport { addItemToEnvelope, createAttachmentEnvelopeItem, getDataCategoryByType } from './utils/envelope';\nimport { getPossibleEventMessages } from './utils/eventUtils';\nimport { isObjectLike, isParameterizedString, isPlainObject, isPrimitive, isThenable } from './utils/is';\nimport { merge } from './utils/merge';\nimport { checkOrSetAlreadyCaught, uuid4 } from './utils/misc';\nimport { parseSampleRate } from './utils/parseSampleRate';\nimport { prepareEvent } from './utils/prepareEvent';\nimport { makePromiseBuffer, type PromiseBuffer, SENTRY_BUFFER_FULL_ERROR } from './utils/promisebuffer';\nimport { safeMathRandom } from './utils/randomSafeContext';\nimport { safeCallback } from './utils/safeCallback';\nimport { reparentChildSpans, shouldIgnoreSpan } from './utils/should-ignore-span';\nimport { safeUnref } from './utils/timer';\nimport { convertSpanJsonToTransactionEvent, convertTransactionEventToSpanJson } from './utils/transactionEvent';\nimport { maybeWarnAboutIgnoredTransactionOptions } from './utils/warnAboutIgnoredTransactionOptions';\nimport { resolveDataCollectionOptions } from './utils/data-collection/resolveDataCollectionOptions';\nimport { applyBeforeSendSpanCallback } from './tracing/spans/beforeSendSpan';\n\nconst ALREADY_SEEN_ERROR = \"Not capturing exception because it's already been captured.\";\nconst MISSING_RELEASE_FOR_SESSION_ERROR = 'Discarded session because of missing or non-string release';\n\nconst INTERNAL_ERROR_SYMBOL = Symbol.for('SentryInternalError');\nconst DO_NOT_SEND_EVENT_SYMBOL = Symbol.for('SentryDoNotSendEventError');\n\n// Default interval for flushing logs and metrics (5 seconds)\nconst DEFAULT_FLUSH_INTERVAL = 5000;\n\n// Clones of a scope keep their own reference to its client, so unbinding a\n// closed client from one scope does not reach the others. The mark lives on\n// the client under a `Symbol.for` key, so every copy of the SDK can read it.\nconst CLOSED_CLIENT_SYMBOL = Symbol.for('SentryClosedClient');\n\n/**\n * Whether `close()` was called on the given client.\n *\n * @hidden\n */\nexport function isClientClosed(client: Client): boolean {\n  return CLOSED_CLIENT_SYMBOL in client;\n}\n\ninterface InternalError {\n  message: string;\n  [INTERNAL_ERROR_SYMBOL]: true;\n}\n\ninterface DoNotSendEventError {\n  message: string;\n  [DO_NOT_SEND_EVENT_SYMBOL]: true;\n}\n\nfunction _makeInternalError(message: string): InternalError {\n  return {\n    message,\n    [INTERNAL_ERROR_SYMBOL]: true,\n  };\n}\n\nfunction _makeDoNotSendEventError(message: string): DoNotSendEventError {\n  return {\n    message,\n    [DO_NOT_SEND_EVENT_SYMBOL]: true,\n  };\n}\n\nfunction _isInternalError(error: unknown): error is InternalError {\n  return isObjectLike(error) && INTERNAL_ERROR_SYMBOL in error;\n}\n\nfunction _isDoNotSendEventError(error: unknown): error is DoNotSendEventError {\n  return isObjectLike(error) && DO_NOT_SEND_EVENT_SYMBOL in error;\n}\n\n/**\n * Sets up weight-based flushing for logs or metrics.\n * This helper function encapsulates the common pattern of:\n * 1. Tracking accumulated weight of items\n * 2. Flushing when weight exceeds threshold (800KB)\n * 3. Flushing after timeout period from the first item\n *\n * Uses closure variables to track weight and timeout state.\n */\nfunction setupWeightBasedFlushing<\n  T,\n  AfterCaptureHook extends 'afterCaptureLog' | 'afterCaptureMetric',\n  FlushHook extends 'flushLogs' | 'flushMetrics',\n>(\n  client: Client,\n  afterCaptureHook: AfterCaptureHook,\n  flushHook: FlushHook,\n  estimateSizeFn: (item: T) => number,\n  flushFn: (client: Client) => void,\n): void {\n  // Track weight and timeout in closure variables\n  let weight = 0;\n  let flushTimeout: ReturnType<typeof setTimeout> | undefined;\n  let isTimerActive = false;\n\n  // @ts-expect-error - TypeScript can't narrow generic hook types to match specific overloads, but we know this is type-safe\n  client.on(flushHook, () => {\n    weight = 0;\n    clearTimeout(flushTimeout);\n    isTimerActive = false;\n  });\n\n  // @ts-expect-error - TypeScript can't narrow generic hook types to match specific overloads, but we know this is type-safe\n  client.on(afterCaptureHook, (item: T) => {\n    weight += estimateSizeFn(item);\n\n    // We flush the buffer if it exceeds 0.8 MB\n    // The weight is a rough estimate, so we flush way before the payload gets too big.\n    if (weight >= 800_000) {\n      flushFn(client);\n    } else if (!isTimerActive) {\n      const flushInterval = client.getOptions()._flushInterval ?? DEFAULT_FLUSH_INTERVAL;\n      if (flushInterval > 0) {\n        // Only start timer if one isn't already running.\n        // This prevents flushing being delayed by items that arrive close to the timeout limit\n        // and thus resetting the flushing timeout and delaying items being flushed.\n        isTimerActive = true;\n        // Use safeUnref so the timer doesn't prevent the process from exiting\n        flushTimeout = safeUnref(\n          setTimeout(() => {\n            flushFn(client);\n            // Note: isTimerActive is reset by the flushHook handler above, not here,\n            // to avoid race conditions when new items arrive during the flush.\n          }, flushInterval),\n        );\n      }\n    }\n  });\n\n  client.on('flush', () => {\n    flushFn(client);\n  });\n}\n\n/**\n * Base implementation for all JavaScript SDK clients.\n *\n * Call the constructor with the corresponding options\n * specific to the client subclass. To access these options later, use\n * {@link Client.getOptions}.\n *\n * If a Dsn is specified in the options, it will be parsed and stored. Use\n * {@link Client.getDsn} to retrieve the Dsn at any moment. In case the Dsn is\n * invalid, the constructor will throw a {@link SentryException}. Note that\n * without a valid Dsn, the SDK will not send any events to Sentry.\n *\n * Before sending an event, it is passed through\n * {@link Client._prepareEvent} to add SDK information and scope data\n * (breadcrumbs and context). To add more custom information, override this\n * method and extend the resulting prepared event.\n *\n * To issue automatically created events (e.g. via instrumentation), use\n * {@link Client.captureEvent}. It will prepare the event and pass it through\n * the callback lifecycle. To issue auto-breadcrumbs, use\n * {@link Client.addBreadcrumb}.\n *\n * @example\n * class NodeClient extends Client<NodeOptions> {\n *   public constructor(options: NodeOptions) {\n *     super(options);\n *   }\n *\n *   // ...\n * }\n */\nexport abstract class Client<O extends ClientOptions = ClientOptions> {\n  /** Options passed to the SDK. */\n  protected readonly _options: O;\n\n  /** The client Dsn, if specified in options. Without this Dsn, the SDK will be disabled. */\n  protected readonly _dsn?: DsnComponents;\n\n  protected readonly _transport?: Transport;\n\n  /** Array of set up integrations. */\n  protected _integrations: IntegrationIndex;\n\n  /** Number of calls being processed */\n  protected _numProcessing: number;\n\n  protected _eventProcessors: EventProcessor[];\n\n  /** Holds flushable  */\n  protected _outcomes: { [key: string]: number };\n\n  // eslint-disable-next-line @typescript-eslint/ban-types\n  protected _hooks: Record<string, Set<Function>>;\n\n  protected _promiseBuffer: PromiseBuffer<unknown>;\n\n  protected readonly _dataCollection: ResolvedDataCollection;\n\n  /**\n   * The session status to set when an unhandled error terminates a session.\n   *\n   * Defaults to `'crashed'`. Browser SDKs override this to `'unhandled'` because unhandled errors\n   * don't actually crash the browser.\n   */\n  protected _unhandledSessionStatus: SessionStatus;\n\n  /**\n   * Initializes this client instance.\n   *\n   * @param options Options for the client.\n   */\n  protected constructor(options: O) {\n    // Any value other than `'static'` normalizes to the `'stream'` default, so that `traceLifecycle`\n    // is always one of the two known values for the rest of the SDK.\n    this._options = {\n      attachStacktrace: true,\n      ...options,\n      traceLifecycle: options.traceLifecycle === 'static' ? 'static' : 'stream',\n    };\n    this._integrations = {};\n    this._numProcessing = 0;\n    this._outcomes = {};\n    this._hooks = {};\n    this._eventProcessors = [];\n    this._promiseBuffer = makePromiseBuffer(options.transportOptions?.bufferSize ?? DEFAULT_TRANSPORT_BUFFER_SIZE);\n    this._dataCollection = resolveDataCollectionOptions(options);\n    this._unhandledSessionStatus = 'crashed';\n\n    if (options.dsn) {\n      this._dsn = makeDsn(options.dsn);\n    } else {\n      DEBUG_BUILD && debug.warn('No DSN provided, client will not send events.');\n    }\n\n    const { beforeSendSpan, traceLifecycle } = this._options;\n    // A `beforeSendSpan` callback is only invoked for the span format matching the trace lifecycle,\n    // so a mismatch means it is silently never called.\n    if (\n      DEBUG_BUILD &&\n      beforeSendSpan &&\n      isStaticBeforeSendSpanCallback(beforeSendSpan) !== (traceLifecycle === 'static')\n    ) {\n      consoleSandbox(() => {\n        // oxlint-disable-next-line no-console\n        console.warn(\n          `Ignoring \\`beforeSendSpan\\`: ${\n            traceLifecycle === 'static' ? 'wrap it with' : 'remove'\n          } \\`Sentry.withStaticSpan\\` to use it with \\`traceLifecycle: \"${traceLifecycle}\"\\`.`,\n        );\n      });\n    }\n\n    if (this._dsn) {\n      const url = getEnvelopeEndpointWithUrlEncodedAuth(\n        this._dsn,\n        options.tunnel,\n        options._metadata ? options._metadata.sdk : undefined,\n      );\n      this._transport = options.transport({\n        tunnel: this._options.tunnel,\n        recordDroppedEvent: this.recordDroppedEvent.bind(this),\n        ...options.transportOptions,\n        url,\n      });\n    }\n\n    // Setup log flushing with weight and timeout tracking\n    setupWeightBasedFlushing(this, 'afterCaptureLog', 'flushLogs', estimateLogSizeInBytes, _INTERNAL_flushLogsBuffer);\n\n    // Setup metric flushing with weight and timeout tracking\n    setupWeightBasedFlushing(\n      this,\n      'afterCaptureMetric',\n      'flushMetrics',\n      estimateMetricSizeInBytes,\n      _INTERNAL_flushMetricsBuffer,\n    );\n  }\n\n  /**\n   * Captures an exception event and sends it to Sentry.\n   *\n   * Unlike `captureException` exported from every SDK, this method requires that you pass it the current scope.\n   */\n  public captureException(exception: unknown, hint?: EventHint, scope?: Scope): string {\n    const eventId = uuid4();\n\n    // ensure we haven't captured this very object before\n    if (checkOrSetAlreadyCaught(exception)) {\n      DEBUG_BUILD && debug.log(ALREADY_SEEN_ERROR);\n      return eventId;\n    }\n\n    const hintWithEventId = {\n      event_id: eventId,\n      ...hint,\n    };\n\n    this._process(\n      () =>\n        this.eventFromException(exception, hintWithEventId)\n          .then(event => this._captureEvent(event, hintWithEventId, scope))\n          .then(res => res),\n      'error',\n    );\n\n    return hintWithEventId.event_id;\n  }\n\n  /**\n   * Captures a message event and sends it to Sentry.\n   *\n   * Unlike `captureMessage` exported from every SDK, this method requires that you pass it the current scope.\n   */\n  public captureMessage(\n    message: ParameterizedString,\n    level?: SeverityLevel,\n    hint?: EventHint,\n    currentScope?: Scope,\n  ): string {\n    const hintWithEventId = {\n      event_id: uuid4(),\n      ...hint,\n    };\n\n    const eventMessage = isParameterizedString(message) ? message : String(message);\n    const isMessage = isPrimitive(message);\n    const promisedEvent = isMessage\n      ? this.eventFromMessage(eventMessage, level, hintWithEventId)\n      : this.eventFromException(message, hintWithEventId);\n\n    this._process(\n      () => promisedEvent.then(event => this._captureEvent(event, hintWithEventId, currentScope)),\n      isMessage ? 'unknown' : 'error',\n    );\n\n    return hintWithEventId.event_id;\n  }\n\n  /**\n   * Captures a manually created event and sends it to Sentry.\n   *\n   * Unlike `captureEvent` exported from every SDK, this method requires that you pass it the current scope.\n   */\n  public captureEvent(event: Event, hint?: EventHint, currentScope?: Scope): string {\n    const eventId = uuid4();\n\n    // ensure we haven't captured this very object before\n    if (hint?.originalException && checkOrSetAlreadyCaught(hint.originalException)) {\n      DEBUG_BUILD && debug.log(ALREADY_SEEN_ERROR);\n      return eventId;\n    }\n\n    const hintWithEventId = {\n      event_id: eventId,\n      ...hint,\n    };\n\n    const sdkProcessingMetadata = event.sdkProcessingMetadata || {};\n    const capturedSpanScope: Scope | undefined = sdkProcessingMetadata.capturedSpanScope;\n    const capturedSpanIsolationScope: Scope | undefined = sdkProcessingMetadata.capturedSpanIsolationScope;\n    const dataCategory = getDataCategoryByType(event.type);\n\n    this._process(\n      () => this._captureEvent(event, hintWithEventId, capturedSpanScope || currentScope, capturedSpanIsolationScope),\n      dataCategory,\n    );\n\n    return hintWithEventId.event_id;\n  }\n\n  /**\n   * Captures a session.\n   */\n  public captureSession(session: Session): void {\n    this.sendSession(session);\n    // After sending, we set init false to indicate it's not the first occurrence\n    updateSession(session, { init: false });\n  }\n\n  /**\n   * Create a cron monitor check in and send it to Sentry. This method is not available on all clients.\n   *\n   * @param checkIn An object that describes a check in.\n   * @param upsertMonitorConfig An optional object that describes a monitor config. Use this if you want\n   * to create a monitor automatically when sending a check in.\n   * @param scope An optional scope containing event metadata.\n   * @returns A string representing the id of the check in.\n   */\n  public captureCheckIn?(checkIn: CheckIn, monitorConfig?: MonitorConfig, scope?: Scope): string;\n\n  /**\n   * Get the current Dsn.\n   */\n  public getDsn(): DsnComponents | undefined {\n    return this._dsn;\n  }\n\n  /**\n   * Get the current options.\n   */\n  public getOptions(): O {\n    return this._options;\n  }\n\n  /**\n   * Get the resolved data collection configuration.\n   */\n  public getDataCollectionOptions(): ResolvedDataCollection {\n    return this._dataCollection;\n  }\n\n  /**\n   * Get the SDK metadata.\n   * @see SdkMetadata\n   */\n  public getSdkMetadata(): SdkMetadata | undefined {\n    return this._options._metadata;\n  }\n\n  /**\n   * Returns the transport that is used by the client.\n   * Please note that the transport gets lazy initialized so it will only be there once the first event has been sent.\n   */\n  public getTransport(): Transport | undefined {\n    return this._transport;\n  }\n\n  /**\n   * Wait for all events to be sent or the timeout to expire, whichever comes first.\n   *\n   * @param timeout Maximum time in ms the client should wait for events to be flushed. Omitting this parameter will\n   *   cause the client to wait until all events are sent before resolving the promise.\n   * @returns A promise that will resolve with `true` if all events are sent before the timeout, or `false` if there are\n   * still events in the queue when the timeout is reached.\n   */\n  // @ts-expect-error - PromiseLike is a subset of Promise\n  public async flush(timeout?: number): PromiseLike<boolean> {\n    const transport = this._transport;\n\n    // Emit `flush` unconditionally so weight-based log/metric flushers drain\n    // their buffers and clear their idle timers, even when no transport is\n    // configured (e.g. no DSN).\n    this.emit('flush');\n\n    if (!transport) {\n      return true;\n    }\n\n    const clientFinished = await this._isClientDoneProcessing(timeout);\n    const transportFlushed = await transport.flush(timeout);\n\n    return clientFinished && transportFlushed;\n  }\n\n  /**\n   * Flush the event queue and set the client to `enabled = false`. See {@link Client.flush}.\n   *\n   * @param {number} timeout Maximum time in ms the client should wait before shutting down. Omitting this parameter will cause\n   *   the client to wait until all events are sent before disabling itself.\n   * @returns {Promise<boolean>} A promise which resolves to `true` if the flush completes successfully before the timeout, or `false` if\n   * it doesn't.\n   */\n  // @ts-expect-error - PromiseLike is a subset of Promise\n  public async close(timeout?: number): PromiseLike<boolean> {\n    Object.defineProperty(this, CLOSED_CLIENT_SYMBOL, { value: true });\n    const result = await this.flush(timeout);\n    this.getOptions().enabled = false;\n    this.emit('close');\n    return result;\n  }\n\n  /**\n   * Get all installed event processors.\n   */\n  public getEventProcessors(): EventProcessor[] {\n    return this._eventProcessors;\n  }\n\n  /**\n   * Adds an event processor that applies to any event processed by this client.\n   */\n  public addEventProcessor(eventProcessor: EventProcessor): void {\n    this._eventProcessors.push(eventProcessor);\n  }\n\n  /**\n   * Initialize this client.\n   * Call this after the client was set on a scope.\n   */\n  public init(): void {\n    if (\n      this._isEnabled() ||\n      // Force integrations to be setup even if no DSN was set when we have\n      // Spotlight enabled. This is particularly important for browser as we\n      // don't support the `spotlight` option there and rely on the users\n      // adding the `spotlightBrowserIntegration()` to their integrations which\n      // wouldn't get initialized with the check below when there's no DSN set.\n      this._options.integrations.some(({ name }) => name.startsWith('Spotlight'))\n    ) {\n      this._setupIntegrations();\n\n      maybeWarnAboutIgnoredTransactionOptions(this._options);\n    }\n  }\n\n  /**\n   * Gets an installed integration by its name.\n   *\n   * @returns {Integration|undefined} The installed integration or `undefined` if no integration with that `name` was installed.\n   */\n  public getIntegrationByName<T extends Integration = Integration>(integrationName: string): T | undefined {\n    return this._integrations[integrationName] as T | undefined;\n  }\n\n  /**\n   * Returns the names of all installed integrations.\n   */\n  public getIntegrationNames(): string[] {\n    return Object.keys(this._integrations);\n  }\n\n  /**\n   * Add an integration to the client.\n   * This can be used to e.g. lazy load integrations.\n   * In most cases, this should not be necessary,\n   * and you're better off just passing the integrations via `integrations: []` at initialization time.\n   * However, if you find the need to conditionally load & add an integration, you can use `addIntegration` to do so.\n   */\n  public addIntegration(integration: Integration): void {\n    const isAlreadyInstalled = this._integrations[integration.name];\n\n    if (!isAlreadyInstalled && integration.beforeSetup) {\n      integration.beforeSetup(this);\n    }\n\n    // This hook takes care of only installing if not already installed\n    setupIntegration(this, integration, this._integrations);\n    // Here we need to check manually to make sure to not run this multiple times\n    if (!isAlreadyInstalled) {\n      afterSetupIntegrations(this, [integration]);\n    }\n  }\n\n  /**\n   * Send a fully prepared event to Sentry.\n   */\n  public sendEvent(event: Event, hint: EventHint = {}): void {\n    this.emit('beforeSendEvent', event, hint);\n\n    // Extract gen_ai spans from transaction and convert to span v2 format.\n    // This mutates event.spans to remove the extracted spans.\n    const genAiSpanItem = extractGenAiSpansFromEvent(event, this);\n\n    let env = createEventEnvelope(event, this._dsn, this._options._metadata, this._options.tunnel);\n\n    for (const attachment of hint.attachments || []) {\n      env = addItemToEnvelope(env, createAttachmentEnvelopeItem(attachment));\n    }\n\n    if (genAiSpanItem) {\n      env = addItemToEnvelope(env, genAiSpanItem);\n    }\n\n    // sendEnvelope should not throw\n    // eslint-disable-next-line @typescript-eslint/no-floating-promises\n    this.sendEnvelope(env).then(sendResponse => this.emit('afterSendEvent', event, sendResponse));\n  }\n\n  /**\n   * Send a session or session aggregrates to Sentry.\n   */\n  public sendSession(session: Session | SessionAggregates): void {\n    // Backfill release and environment on session\n    const { release: clientReleaseOption, environment: clientEnvironmentOption = DEFAULT_ENVIRONMENT } = this._options;\n    if ('aggregates' in session) {\n      const sessionAttrs = session.attrs || {};\n      if (!sessionAttrs.release && !clientReleaseOption) {\n        DEBUG_BUILD && debug.warn(MISSING_RELEASE_FOR_SESSION_ERROR);\n        return;\n      }\n      sessionAttrs.release = sessionAttrs.release || clientReleaseOption;\n      sessionAttrs.environment = sessionAttrs.environment || clientEnvironmentOption;\n      session.attrs = sessionAttrs;\n    } else {\n      if (!session.release && !clientReleaseOption) {\n        DEBUG_BUILD && debug.warn(MISSING_RELEASE_FOR_SESSION_ERROR);\n        return;\n      }\n      session.release = session.release || clientReleaseOption;\n      session.environment = session.environment || clientEnvironmentOption;\n    }\n\n    this.emit('beforeSendSession', session);\n\n    const env = createSessionEnvelope(session, this._dsn, this._options._metadata, this._options.tunnel);\n\n    // sendEnvelope should not throw\n    // eslint-disable-next-line @typescript-eslint/no-floating-promises\n    this.sendEnvelope(env);\n  }\n\n  /**\n   * Record on the client that an event got dropped (ie, an event that will not be sent to Sentry).\n   */\n  public recordDroppedEvent(reason: EventDropReason, category: DataCategory, count: number = 1): void {\n    if (this._options.sendClientReports) {\n      // We want to track each category (error, transaction, session, replay_event) separately\n      // but still keep the distinction between different type of outcomes.\n      // We could use nested maps, but it's much easier to read and type this way.\n      // A correct type for map-based implementation if we want to go that route\n      // would be `Partial<Record<SentryRequestType, Partial<Record<Outcome, number>>>>`\n      // With typescript 4.1 we could even use template literal types\n      const key = `${reason}:${category}`;\n      DEBUG_BUILD && debug.log(`Recording outcome: \"${key}\"${count > 1 ? ` (${count} times)` : ''}`);\n      this._outcomes[key] = (this._outcomes[key] || 0) + count;\n    }\n  }\n\n  /* eslint-disable @typescript-eslint/unified-signatures */\n  /**\n   * Register a callback for whenever a span is started.\n   * Receives the span as argument.\n   * @returns {() => void} A function that, when executed, removes the registered callback.\n   */\n  public on(hook: 'spanStart', callback: (span: Span) => void): () => void;\n\n  /**\n   * Register a callback that can adjust the scope and the parent span right before a span is\n   * created. Listeners mutate the passed `spanScope` object. The Node SDK uses this to continue\n   * the trace of a remote (incoming) parent through the propagation context of a forked scope.\n   * @returns {() => void} A function that, when executed, removes the registered callback.\n   */\n  public on(\n    hook: 'prepareSpanScope',\n    callback: (spanScope: { scope: Scope; parentSpan: Span | undefined }) => void,\n  ): () => void;\n\n  /**\n   * Register a callback before span sampling runs. Receives a `samplingDecision` object argument with a `decision`\n   * property that can be used to make a sampling decision that will be enforced, before any span sampling runs.\n   * @returns {() => void} A function that, when executed, removes the registered callback.\n   */\n  public on(\n    hook: 'beforeSampling',\n    callback: (\n      samplingData: {\n        spanAttributes: SpanAttributes;\n        spanName: string;\n        parentSampled?: boolean;\n        parentSampleRate?: number;\n        parentContext?: SpanContextData;\n      },\n      samplingDecision: { decision: boolean },\n    ) => void,\n  ): void;\n\n  /**\n   * Register a callback for after a span is ended.\n   * NOTE: The span cannot be mutated anymore in this callback.\n   * Receives the span as argument.\n   * @returns {() => void} A function that, when executed, removes the registered callback.\n   */\n  public on(hook: 'spanEnd', callback: (span: Span) => void): () => void;\n\n  /** Register a callback before an idle span ends and its end timestamp is finalized. */\n  public on(hook: 'beforeIdleSpanEnd', callback: (idleSpan: Span) => void): () => void;\n\n  /**\n   * Register a callback for after a span is ended and the `spanEnd` hook has run.\n   * NOTE: The span cannot be mutated anymore in this callback.\n   */\n  public on(hook: 'afterSpanEnd', callback: (immutableSegmentSpan: Readonly<Span>) => void): () => void;\n\n  /**\n   * Register a callback for after a segment span is ended and the `segmentSpanEnd` hook has run.\n   * NOTE: The segment span cannot be mutated anymore in this callback.\n   */\n  public on(hook: 'afterSegmentSpanEnd', callback: (immutableSegmentSpan: Readonly<Span>) => void): () => void;\n\n  /**\n   * Register a callback to preprocess a span JSON _before_ it is passed to the `processSpan` and\n   * `processSegmentSpan` hooks. Use this to backfill data that subsequent hooks rely on.\n   */\n  public on(hook: 'preprocessSpan', callback: (streamedSpanJSON: StreamedSpanJSON) => void): () => void;\n\n  /**\n   * Register a callback for when a span JSON is processed, to add some data to the span JSON.\n   */\n  public on(hook: 'processSpan', callback: (streamedSpanJSON: StreamedSpanJSON) => void): () => void;\n\n  /**\n   * Register a callback for when a segment span JSON is processed, to add some data to the segment span JSON.\n   */\n  public on(hook: 'processSegmentSpan', callback: (streamedSpanJSON: StreamedSpanJSON) => void): () => void;\n\n  /**\n   * Register a callback for when an idle span is allowed to auto-finish.\n   * @returns {() => void} A function that, when executed, removes the registered callback.\n   */\n  public on(hook: 'idleSpanEnableAutoFinish', callback: (span: Span) => void): () => void;\n\n  /**\n   * Register a callback for transaction start and finish.\n   * @returns {() => void} A function that, when executed, removes the registered callback.\n   */\n  public on(hook: 'beforeEnvelope', callback: (envelope: Envelope) => void): () => void;\n\n  /**\n   * Register a callback for after an envelope has been accepted by the transport.\n   * @returns {() => void} A function that, when executed, removes the registered callback.\n   */\n  public on(hook: 'afterEnvelope', callback: (envelope: Envelope) => void): () => void;\n\n  /**\n   * Register a callback that runs when stack frame metadata should be applied to an event.\n   * @returns {() => void} A function that, when executed, removes the registered callback.\n   */\n  public on(hook: 'applyFrameMetadata', callback: (event: Event) => void): () => void;\n\n  /**\n   * Register a callback for before sending an event.\n   * This is called right before an event is sent and should not be used to mutate the event.\n   * Receives an Event & EventHint as arguments.\n   * @returns {() => void} A function that, when executed, removes the registered callback.\n   */\n  public on(hook: 'beforeSendEvent', callback: (event: Event, hint?: EventHint | undefined) => void): () => void;\n\n  /**\n   * Register a callback for before sending a session or session aggregrates..\n   * Receives the session/aggregate as second argument.\n   * @returns {() => void} A function that, when executed, removes the registered callback.\n   */\n  public on(hook: 'beforeSendSession', callback: (session: Session | SessionAggregates) => void): () => void;\n\n  /**\n   * Register a callback for preprocessing an event,\n   * before it is passed to (global) event processors.\n   * Receives an Event & EventHint as arguments.\n   * @returns {() => void} A function that, when executed, removes the registered callback.\n   */\n  public on(hook: 'preprocessEvent', callback: (event: Event, hint?: EventHint | undefined) => void): () => void;\n\n  /**\n   * Register a callback for postprocessing an event,\n   * after it was passed to (global) event processors, before it is being sent.\n   * Receives an Event & EventHint as arguments.\n   * @returns {() => void} A function that, when executed, removes the registered callback.\n   */\n  public on(hook: 'postprocessEvent', callback: (event: Event, hint?: EventHint | undefined) => void): () => void;\n\n  /**\n   * Register a callback for when an event has been sent.\n   * @returns {() => void} A function that, when executed, removes the registered callback.\n   */\n  public on(\n    hook: 'afterSendEvent',\n    callback: (event: Event, sendResponse: TransportMakeRequestResponse) => void,\n  ): () => void;\n\n  /**\n   * Register a callback before a breadcrumb is added.\n   * @returns {() => void} A function that, when executed, removes the registered callback.\n   */\n  public on(hook: 'beforeAddBreadcrumb', callback: (breadcrumb: Breadcrumb, hint?: BreadcrumbHint) => void): () => void;\n\n  /**\n   * Register a callback when a DSC (Dynamic Sampling Context) is created.\n   * @returns {() => void} A function that, when executed, removes the registered callback.\n   */\n  public on(hook: 'createDsc', callback: (dsc: DynamicSamplingContext, rootSpan?: Span) => void): () => void;\n\n  /**\n   * Register a callback when a Feedback event has been prepared.\n   * This should be used to mutate the event. The options argument can hint\n   * about what kind of mutation it expects.\n   * @returns {() => void} A function that, when executed, removes the registered callback.\n   */\n  public on(\n    hook: 'beforeSendFeedback',\n    callback: (feedback: FeedbackEvent, options?: { includeReplay?: boolean }) => void,\n  ): () => void;\n\n  /**\n   * Register a callback when the feedback widget is opened in a user's browser\n   */\n  public on(hook: 'openFeedbackWidget', callback: () => void): () => void;\n\n  /**\n   * A hook that is called when a replay session starts recording (either session or buffer mode).\n   * @returns {() => void} A function that, when executed, removes the registered callback.\n   */\n  public on(hook: 'replayStart', callback: (event: ReplayStartEvent) => void): () => void;\n\n  /**\n   * A hook that is called when a replay session stops recording, either manually or due to an\n   * internal condition such as `maxReplayDuration` expiry, send failure, or mutation limit.\n   * @returns {() => void} A function that, when executed, removes the registered callback.\n   */\n  public on(hook: 'replayEnd', callback: (event: ReplayEndEvent) => void): () => void;\n\n  /**\n   * A hook for the browser tracing integrations to trigger a span start for a page load.\n   * @returns {() => void} A function that, when executed, removes the registered callback.\n   */\n  public on(\n    hook: 'startPageLoadSpan',\n    callback: (\n      options: StartSpanOptions,\n      traceOptions?: { sentryTrace?: string | undefined; baggage?: string | undefined },\n    ) => void,\n  ): () => void;\n\n  /**\n   * A hook for the browser tracing integrations to trigger the end of a page load span.\n   * @returns {() => void} A function that, when executed, removes the registered callback.\n   */\n  public on(hook: 'endPageloadSpan', callback: () => void): () => void;\n\n  /**\n   * A hook for the browser tracing integrations to trigger after the pageload span was started.\n   * @returns {() => void} A function that, when executed, removes the registered callback.\n   */\n  public on(hook: 'afterStartPageLoadSpan', callback: (span: Span) => void): () => void;\n\n  /**\n   * A hook for triggering right before a navigation span is started.\n   * @returns {() => void} A function that, when executed, removes the registered callback.\n   */\n  public on(\n    hook: 'beforeStartNavigationSpan',\n    callback: (options: StartSpanOptions, navigationOptions?: { isRedirect?: boolean; url?: string }) => void,\n  ): () => void;\n\n  /**\n   * A hook for browser tracing integrations to trigger a span for a navigation.\n   * @returns {() => void} A function that, when executed, removes the registered callback.\n   */\n  public on(\n    hook: 'startNavigationSpan',\n    callback: (options: StartSpanOptions, navigationOptions?: { isRedirect?: boolean; url?: string }) => void,\n  ): () => void;\n\n  /**\n   * A hook for GraphQL client integration to enhance a span with request data.\n   * @returns A function that, when executed, removes the registered callback.\n   */\n  public on(\n    hook: 'beforeOutgoingRequestSpan',\n    callback: (span: Span, hint: XhrBreadcrumbHint | FetchBreadcrumbHint) => void,\n  ): () => void;\n\n  /**\n   * A hook for GraphQL client integration to enhance a breadcrumb with request data.\n   * @returns A function that, when executed, removes the registered callback.\n   */\n  public on(\n    hook: 'beforeOutgoingRequestBreadcrumb',\n    callback: (breadcrumb: Breadcrumb, hint: XhrBreadcrumbHint | FetchBreadcrumbHint) => void,\n  ): () => void;\n\n  /**\n   * A hook that is called when the client is flushing\n   * @returns {() => void} A function that, when executed, removes the registered callback.\n   */\n  public on(hook: 'flush', callback: () => void): () => void;\n\n  /**\n   * A hook that is called when spans of a single trace should be flushed eagerly,\n   * ahead of the trace's regular flush point. Only runtimes with a span streaming\n   * buffer (e.g. the Cloudflare SDK) listen to this hook.\n   * @returns {() => void} A function that, when executed, removes the registered callback.\n   */\n  public on(hook: 'flushTraceSpans', callback: (traceId: string) => void): () => void;\n\n  /**\n   * A hook that is called when the client is closing\n   * @returns {() => void} A function that, when executed, removes the registered callback.\n   */\n  public on(hook: 'close', callback: () => void): () => void;\n\n  /**\n   * A hook that is called before a log is captured. This hooks runs before `beforeSendLog` is fired.\n   *\n   * @returns {() => void} A function that, when executed, removes the registered callback.\n   */\n  public on(hook: 'beforeCaptureLog', callback: (log: Log) => void): () => void;\n\n  /**\n   * A hook that is called after a log is captured\n   *\n   * @returns {() => void} A function that, when executed, removes the registered callback.\n   */\n  public on(hook: 'afterCaptureLog', callback: (log: Log) => void): () => void;\n\n  /**\n   * A hook that is called when the client is flushing logs\n   *\n   * @returns {() => void} A function that, when executed, removes the registered callback.\n   */\n  public on(hook: 'flushLogs', callback: () => void): () => void;\n\n  /**\n   * A hook that is called after capturing a metric. This hooks runs after `beforeSendMetric` is fired.\n   *\n   * @returns {() => void} A function that, when executed, removes the registered callback.\n   */\n  public on(hook: 'afterCaptureMetric', callback: (metric: Metric) => void): () => void;\n\n  /**\n   * A hook that is called when the client is flushing metrics\n   *\n   * @returns {() => void} A function that, when executed, removes the registered callback.\n   */\n  public on(hook: 'flushMetrics', callback: () => void): () => void;\n\n  /**\n   * A hook that is called when a metric is processed before it is captured and before the `beforeSendMetric` callback is fired.\n   *\n   * @returns {() => void} A function that, when executed, removes the registered callback.\n   */\n  public on(hook: 'processMetric', callback: (metric: Metric) => void): () => void;\n\n  /**\n   * A hook that is called when a http server request is started.\n   * This hook is called after request isolation, but before the request is processed.\n   *\n   * @returns {() => void} A function that, when executed, removes the registered callback.\n   */\n  public on(\n    hook: 'httpServerRequest',\n    callback: (request: unknown, response: unknown, normalizedRequest: RequestEventData) => void,\n  ): () => void;\n\n  /**\n   * A hook that is called when the UI Profiler should start profiling.\n   *\n   * This hook is called when running `Sentry.uiProfiler.startProfiler()`.\n   *\n   * @returns {() => void} A function that, when executed, removes the registered callback.\n   */\n  public on(hook: 'startUIProfiler', callback: () => void): () => void;\n\n  /**\n   * A hook that is called when the UI Profiler should stop profiling.\n   *\n   * This hook is called when running `Sentry.uiProfiler.stopProfiler()`.\n   *\n   * @returns {() => void} A function that, when executed, removes the registered callback.\n   */\n  public on(hook: 'stopUIProfiler', callback: () => void): () => void;\n\n  /**\n   * A hook that is called when an instrumented module is injected —\n   * at runtime by the module hook, or at load of a bundler-transformed module.\n   * Channel-based integrations use it to subscribe their diagnostics-channel\n   * listeners lazily, only once the module they instrument is actually loaded.\n   * Receives the injected module name.\n   *\n   * @returns {() => void} A function that, when executed, removes the registered callback.\n   */\n  public on(hook: 'orchestrion.module-injected', callback: (moduleName: string) => void): () => void;\n\n  /**\n   * Register a hook on this client.\n   */\n  public on(hook: string, callback: unknown): () => void {\n    const hookCallbacks = (this._hooks[hook] = this._hooks[hook] || new Set());\n\n    // Wrap the callback in a function so that registering the same callback instance multiple\n    // times results in the callback being called multiple times.\n    // @ts-expect-error - The `callback` type is correct and must be a function due to the\n    // individual, specific overloads of this function.\n    // eslint-disable-next-line @typescript-eslint/ban-types\n    const uniqueCallback: Function = (...args: unknown[]) => callback(...args);\n\n    hookCallbacks.add(uniqueCallback);\n\n    // This function returns a callback execution handler that, when invoked,\n    // deregisters a callback. This is crucial for managing instances where callbacks\n    // need to be unregistered to prevent self-referencing in callback closures,\n    // ensuring proper garbage collection.\n    return () => {\n      hookCallbacks.delete(uniqueCallback);\n    };\n  }\n\n  /** Fire a hook whenever a span starts. */\n  public emit(hook: 'spanStart', span: Span): void;\n\n  /** A hook that is called right before a span is created; listeners mutate the passed object. */\n  public emit(hook: 'prepareSpanScope', spanScope: { scope: Scope; parentSpan: Span | undefined }): void;\n\n  /** A hook that is called every time before a span is sampled. */\n  public emit(\n    hook: 'beforeSampling',\n    samplingData: {\n      spanAttributes: SpanAttributes;\n      spanName: string;\n      parentSampled?: boolean;\n      parentSampleRate?: number;\n      parentContext?: SpanContextData;\n    },\n    samplingDecision: { decision: boolean },\n  ): void;\n\n  /** Fire a hook whenever a span ends. */\n  public emit(hook: 'spanEnd', span: Span): void;\n\n  /** Fire a hook before an idle span ends and its end timestamp is finalized. */\n  public emit(hook: 'beforeIdleSpanEnd', idleSpan: Span): void;\n\n  /**\n   * Fire a hook event after a span ends and the `spanEnd` hook has run.\n   */\n  public emit(hook: 'afterSpanEnd', immutableSpan: Readonly<Span>): void;\n\n  /**\n   * Fire a hook event after a segment span ends and the `spanEnd` hook has run.\n   */\n  public emit(hook: 'afterSegmentSpanEnd', immutableSegmentSpan: Readonly<Span>): void;\n\n  /**\n   * Fire a hook event to preprocess a span JSON before the `processSpan` and `processSegmentSpan` hooks run.\n   */\n  public emit(hook: 'preprocessSpan', streamedSpanJSON: StreamedSpanJSON): void;\n\n  /**\n   * Fire a hook event when a span JSON is processed, to add some data to the span JSON.\n   */\n  public emit(hook: 'processSpan', streamedSpanJSON: StreamedSpanJSON): void;\n\n  /**\n   * Fire a hook event for when a segment span JSON is processed, to add some data to the segment span JSON.\n   */\n  public emit(hook: 'processSegmentSpan', streamedSpanJSON: StreamedSpanJSON): void;\n\n  /**\n   * Fire a hook indicating that an idle span is allowed to auto finish.\n   */\n  public emit(hook: 'idleSpanEnableAutoFinish', span: Span): void;\n\n  /**\n   * Fire a hook event for envelope creation and sending. Expects to be given an envelope as the\n   * second argument.\n   */\n  public emit(hook: 'beforeEnvelope', envelope: Envelope): void;\n\n  /**\n   * Fire a hook event after an envelope has been accepted by the transport.\n   */\n  public emit(hook: 'afterEnvelope', envelope: Envelope): void;\n\n  /**\n   * Fire a hook indicating that stack frame metadata should be applied to the event passed to the hook.\n   */\n  public emit(hook: 'applyFrameMetadata', event: Event): void;\n\n  /**\n   * Fire a hook event before sending an event.\n   * This is called right before an event is sent and should not be used to mutate the event.\n   * Expects to be given an Event & EventHint as the second/third argument.\n   */\n  public emit(hook: 'beforeSendEvent', event: Event, hint?: EventHint): void;\n\n  /**\n   * Fire a hook event before sending a session/aggregates.\n   * Expects to be given the prepared session/aggregates as second argument.\n   */\n  public emit(hook: 'beforeSendSession', session: Session | SessionAggregates): void;\n\n  /**\n   * Fire a hook event to process events before they are passed to (global) event processors.\n   * Expects to be given an Event & EventHint as the second/third argument.\n   */\n  public emit(hook: 'preprocessEvent', event: Event, hint?: EventHint): void;\n\n  /**\n   * Fire a hook event to process a user on an event before it is sent to Sentry, after all other processors have run.\n   * Expects to be given an Event & EventHint as the second/third argument.\n   */\n  public emit(hook: 'postprocessEvent', event: Event, hint?: EventHint): void;\n\n  /**\n   * Fire a hook event after sending an event. Expects to be given an Event as the\n   * second argument.\n   */\n  public emit(hook: 'afterSendEvent', event: Event, sendResponse: TransportMakeRequestResponse): void;\n\n  /**\n   * Fire a hook for when a breadcrumb is added. Expects the breadcrumb as second argument.\n   */\n  public emit(hook: 'beforeAddBreadcrumb', breadcrumb: Breadcrumb, hint?: BreadcrumbHint): void;\n\n  /**\n   * Fire a hook for when a DSC (Dynamic Sampling Context) is created. Expects the DSC as second argument.\n   */\n  public emit(hook: 'createDsc', dsc: DynamicSamplingContext, rootSpan?: Span): void;\n\n  /**\n   * Fire a hook event for after preparing a feedback event. Events to be given\n   * a feedback event as the second argument, and an optional options object as\n   * third argument.\n   */\n  public emit(hook: 'beforeSendFeedback', feedback: FeedbackEvent, options?: { includeReplay?: boolean }): void;\n\n  /**\n   * Fire a hook event for when the feedback widget is opened in a user's browser\n   */\n  public emit(hook: 'openFeedbackWidget'): void;\n\n  /**\n   * Fire a hook event when a replay session starts recording.\n   */\n  public emit(hook: 'replayStart', event: ReplayStartEvent): void;\n\n  /**\n   * Fire a hook event when a replay session stops recording.\n   */\n  public emit(hook: 'replayEnd', event: ReplayEndEvent): void;\n\n  /**\n   * Emit a hook event for browser tracing integrations to trigger a span start for a page load.\n   */\n  public emit(\n    hook: 'startPageLoadSpan',\n    options: StartSpanOptions,\n    traceOptions?: { sentryTrace?: string | undefined; baggage?: string | undefined },\n  ): void;\n\n  /**\n   * Emit a hook event for browser tracing integrations to trigger the end of a page load span.\n   */\n  public emit(hook: 'endPageloadSpan'): void;\n\n  /**\n   * Emit a hook event for browser tracing integrations to trigger after the pageload span was started.\n   */\n  public emit(hook: 'afterStartPageLoadSpan', span: Span): void;\n\n  /**\n   * Emit a hook event for triggering right before a navigation span is started.\n   */\n  public emit(\n    hook: 'beforeStartNavigationSpan',\n    options: StartSpanOptions,\n    navigationOptions?: { isRedirect?: boolean; url?: string },\n  ): void;\n\n  /**\n   * Emit a hook event for browser tracing integrations to trigger a span for a navigation.\n   */\n  public emit(\n    hook: 'startNavigationSpan',\n    options: StartSpanOptions,\n    navigationOptions?: { isRedirect?: boolean; url?: string },\n  ): void;\n\n  /**\n   * Emit a hook event for GraphQL client integration to enhance a span with request data.\n   */\n  public emit(hook: 'beforeOutgoingRequestSpan', span: Span, hint: XhrBreadcrumbHint | FetchBreadcrumbHint): void;\n\n  /**\n   * Emit a hook event for GraphQL client integration to enhance a breadcrumb with request data.\n   */\n  public emit(\n    hook: 'beforeOutgoingRequestBreadcrumb',\n    breadcrumb: Breadcrumb,\n    hint: XhrBreadcrumbHint | FetchBreadcrumbHint,\n  ): void;\n\n  /**\n   * Emit a hook event for client flush\n   */\n  public emit(hook: 'flush'): void;\n\n  /**\n   * Fire a hook event indicating that spans of a single trace should be flushed eagerly.\n   */\n  public emit(hook: 'flushTraceSpans', traceId: string): void;\n\n  /**\n   * Emit a hook event for client close\n   */\n  public emit(hook: 'close'): void;\n\n  /**\n   * Emit a hook event for client before capturing a log. This hooks runs before `beforeSendLog` is fired.\n   */\n  public emit(hook: 'beforeCaptureLog', log: Log): void;\n\n  /**\n   * Emit a hook event for client after capturing a log.\n   */\n  public emit(hook: 'afterCaptureLog', log: Log): void;\n\n  /**\n   * Emit a hook event for client flush logs\n   */\n  public emit(hook: 'flushLogs'): void;\n\n  /**\n   * Emit a hook event for client after capturing a metric.\n   */\n  public emit(hook: 'afterCaptureMetric', metric: Metric): void;\n\n  /**\n   * Emit a hook event for client flush metrics\n   */\n  public emit(hook: 'flushMetrics'): void;\n\n  /**\n   *\n   * Emit a hook event for client to process a metric before it is captured.\n   * This hook is called before the `beforeSendMetric` callback is fired.\n   */\n  public emit(hook: 'processMetric', metric: Metric): void;\n\n  /**\n   * Emit a hook event for client when a http server request is started.\n   * This hook is called after request isolation, but before the request is processed.\n   */\n  public emit(\n    hook: 'httpServerRequest',\n    request: unknown,\n    response: unknown,\n    normalizedRequest: RequestEventData,\n  ): void;\n\n  /**\n   * Emit a hook event for starting the UI Profiler.\n   */\n  public emit(hook: 'startUIProfiler'): void;\n\n  /**\n   * Emit a hook event for stopping the UI Profiler.\n   */\n  public emit(hook: 'stopUIProfiler'): void;\n\n  /**\n   * Emit a hook when an instrumented module is injected (runtime\n   * module hook or bundler-transformed module load).\n   */\n  public emit(hook: 'orchestrion.module-injected', moduleName: string): void;\n\n  /**\n   * Emit a hook that was previously registered via `on()`.\n   */\n  public emit(hook: string, ...rest: unknown[]): void {\n    const callbacks = this._hooks[hook];\n    if (callbacks) {\n      callbacks.forEach(callback => callback(...rest));\n    }\n  }\n\n  /**\n   * Send an envelope to Sentry.\n   */\n  // @ts-expect-error - PromiseLike is a subset of Promise\n  public async sendEnvelope(envelope: Envelope): PromiseLike<TransportMakeRequestResponse> {\n    this.emit('beforeEnvelope', envelope);\n\n    if (this._isEnabled() && this._transport) {\n      try {\n        const result = await this._transport.send(envelope);\n        this.emit('afterEnvelope', envelope);\n        return result;\n      } catch (reason) {\n        DEBUG_BUILD && debug.error('Error while sending envelope:', reason);\n        return {};\n      }\n    }\n\n    DEBUG_BUILD && debug.error('Transport disabled');\n    return {};\n  }\n\n  /**\n   * Register a cleanup function to be called when the client is disposed.\n   * This is useful for integrations that need to clean up global state.\n   *\n   * NOTE: This is a no-op in the base `Client` class. Subclasses like `ServerRuntimeClient`\n   * override this method to actually register and execute cleanup callbacks.\n   */\n  // eslint-disable-next-line @typescript-eslint/no-unused-vars\n  public registerCleanup(callback: () => void): void {\n    // No-op in base class - subclasses override to implement cleanup registration\n  }\n\n  /**\n   * Disposes of the client and releases all resources.\n   *\n   * Subclasses should override this method to clean up their own resources, including invoking\n   * any callbacks registered via {@link Client.registerCleanup}. The base implementation is a\n   * no-op and does NOT execute registered cleanup callbacks.\n   *\n   * After calling dispose(), the client should not be used anymore.\n   */\n  public dispose(): void {\n    // Base class has no cleanup logic - subclasses implement their own\n  }\n\n  /* eslint-enable @typescript-eslint/unified-signatures */\n\n  /** Setup integrations for this client. */\n  protected _setupIntegrations(): void {\n    const { integrations } = this._options;\n    this._integrations = setupIntegrations(this, integrations);\n    afterSetupIntegrations(this, integrations);\n  }\n\n  /** Updates existing session based on the provided event */\n  protected _updateSessionFromEvent(session: Session, event: Event): void {\n    // initially, set `unhandled` based on the event level and update from exceptions if there are any later on\n    let unhandled = event.level === 'fatal';\n    let errored = false;\n    const exceptions = event.exception?.values;\n\n    if (exceptions) {\n      errored = true;\n      // reset `unhandled` to false if there are exceptions, to ensure `mechanism.handled` is respected.\n      unhandled = false;\n\n      for (const ex of exceptions) {\n        if (ex.mechanism?.handled === false) {\n          unhandled = true;\n          break;\n        }\n      }\n    }\n\n    // A session is updated and that session update is sent in only one of the two following scenarios:\n    // 1. Session with non terminal status and 0 errors + an error occurred -> Will set error count to 1 and send update\n    // 2. Session with non terminal status and 1 error + a crash occurred -> Will set status unhandled and send update\n    const sessionNonTerminal = session.status === 'ok';\n    const shouldUpdateAndSend = (sessionNonTerminal && session.errors === 0) || (sessionNonTerminal && unhandled);\n\n    if (shouldUpdateAndSend) {\n      updateSession(session, {\n        ...(unhandled && { status: this._unhandledSessionStatus }),\n        errors: session.errors || Number(errored || unhandled),\n      });\n      this.captureSession(session);\n    }\n  }\n\n  /**\n   * Determine if the client is finished processing. Returns a promise because it will wait `timeout` ms before saying\n   * \"no\" (resolving to `false`) in order to give the client a chance to potentially finish first.\n   *\n   * @param timeout The time, in ms, after which to resolve to `false` if the client is still busy. Passing `0` (or not\n   * passing anything) will make the promise wait as long as it takes for processing to finish before resolving to\n   * `true`.\n   * @returns A promise which will resolve to `true` if processing is already done or finishes before the timeout, and\n   * `false` otherwise\n   */\n  protected async _isClientDoneProcessing(timeout?: number): Promise<boolean> {\n    let ticked = 0;\n\n    while (!timeout || ticked < timeout) {\n      await new Promise(resolve => setTimeout(resolve, 1));\n\n      if (!this._numProcessing) {\n        return true;\n      }\n      ticked++;\n    }\n\n    return false;\n  }\n\n  /** Determines whether this SDK is enabled and a transport is present. */\n  protected _isEnabled(): boolean {\n    return this.getOptions().enabled !== false && this._transport !== undefined;\n  }\n\n  /**\n   * Adds common information to events.\n   *\n   * The information includes release and environment from `options`,\n   * breadcrumbs and context (extra, tags and user) from the scope.\n   *\n   * Information that is already present in the event is never overwritten. For\n   * nested objects, such as the context, keys are merged.\n   *\n   * @param event The original event.\n   * @param hint May contain additional information about the original exception.\n   * @param currentScope A scope containing event metadata.\n   * @returns A new event with more information.\n   */\n  protected _prepareEvent(\n    event: Event,\n    hint: EventHint,\n    currentScope: Scope,\n    isolationScope: Scope,\n  ): PromiseLike<Event | null> {\n    const options = this.getOptions();\n    const integrations = this.getIntegrationNames();\n    if (!hint.integrations && integrations.length) {\n      hint.integrations = integrations;\n    }\n\n    this.emit('preprocessEvent', event, hint);\n\n    if (!event.type) {\n      isolationScope.setLastEventId(event.event_id || hint.event_id);\n    }\n\n    return prepareEvent(options, event, hint, currentScope, this, isolationScope).then(evt => {\n      if (evt === null) {\n        return evt;\n      }\n\n      this.emit('postprocessEvent', evt, hint);\n\n      evt.contexts = {\n        trace: { ...evt.contexts?.trace, ...getTraceContextFromScope(currentScope) },\n        ...evt.contexts,\n      };\n\n      const dynamicSamplingContext = getDynamicSamplingContextFromScope(this, currentScope);\n\n      evt.sdkProcessingMetadata = {\n        dynamicSamplingContext,\n        ...evt.sdkProcessingMetadata,\n      };\n\n      return evt;\n    });\n  }\n\n  /**\n   * Processes the event and logs an error in case of rejection\n   * @param event\n   * @param hint\n   * @param scope\n   */\n  protected _captureEvent(\n    event: Event,\n    hint: EventHint = {},\n    currentScope = getCurrentScope(),\n    isolationScope = getIsolationScope(),\n  ): PromiseLike<string | undefined> {\n    if (DEBUG_BUILD && isErrorEvent(event)) {\n      debug.log(`Captured error event \\`${getPossibleEventMessages(event)[0] || '<unknown>'}\\``);\n    }\n\n    return this._processEvent(event, hint, currentScope, isolationScope).then(\n      finalEvent => {\n        return finalEvent.event_id;\n      },\n      reason => {\n        if (DEBUG_BUILD) {\n          if (_isDoNotSendEventError(reason)) {\n            debug.log(reason.message);\n          } else if (_isInternalError(reason)) {\n            debug.warn(reason.message);\n          } else {\n            debug.warn(reason);\n          }\n        }\n        return undefined;\n      },\n    );\n  }\n\n  /**\n   * Processes an event (either error or message) and sends it to Sentry.\n   *\n   * This also adds breadcrumbs and context information to the event. However,\n   * platform specific meta data (such as the User's IP address) must be added\n   * by the SDK implementor.\n   *\n   *\n   * @param event The event to send to Sentry.\n   * @param hint May contain additional information about the original exception.\n   * @param currentScope A scope containing event metadata.\n   * @returns A SyncPromise that resolves with the event or rejects in case event was/will not be send.\n   */\n  protected _processEvent(\n    event: Event,\n    hint: EventHint,\n    currentScope: Scope,\n    isolationScope: Scope,\n  ): PromiseLike<Event> {\n    const options = this.getOptions();\n    const { sampleRate } = options;\n\n    const isTransaction = isTransactionEvent(event);\n    const isError = isErrorEvent(event);\n    const eventType = event.type || 'error';\n    const beforeSendLabel = `before send for type \\`${eventType}\\``;\n    let beforeSendDropReason: 'before_send' | 'callback_error' = 'before_send';\n\n    // 1.0 === 100% events are sent\n    // 0.0 === 0% events are sent\n    // Sampling for transaction happens somewhere else\n    const parsedSampleRate = typeof sampleRate === 'undefined' ? undefined : parseSampleRate(sampleRate);\n    const dataCategory = getDataCategoryByType(event.type);\n\n    return this._prepareEvent(event, hint, currentScope, isolationScope)\n      .then(prepared => {\n        if (prepared === null) {\n          throw _makeDoNotSendEventError('An event processor returned `null`, will not send event.');\n        }\n\n        const isInternalException = (hint.data as { __sentry__: boolean })?.__sentry__ === true;\n        if (isInternalException) {\n          return prepared;\n        }\n\n        const result = processBeforeSend(this, options, prepared, hint, () => {\n          beforeSendDropReason = 'callback_error';\n        });\n        return _validateBeforeSendResult(result, beforeSendLabel);\n      })\n      .then(processedEvent => {\n        if (processedEvent === null) {\n          this.recordDroppedEvent(beforeSendDropReason, dataCategory);\n          if (isTransaction) {\n            const spans = event.spans || [];\n            // the transaction itself counts as one span, plus all the child spans that are added\n            this.recordDroppedEvent(beforeSendDropReason, 'span', 1 + spans.length);\n          }\n          const dropMessage = beforeSendDropReason === 'callback_error' ? 'threw an error' : 'returned `null`';\n          throw _makeDoNotSendEventError(`${beforeSendLabel} ${dropMessage}, will not send event.`);\n        }\n\n        const session = currentScope.getSession() || isolationScope.getSession();\n        if (isError && session) {\n          this._updateSessionFromEvent(session, processedEvent);\n        }\n\n        if (isError && typeof parsedSampleRate === 'number' && safeMathRandom() > parsedSampleRate) {\n          this.recordDroppedEvent('sample_rate', 'error');\n          throw _makeDoNotSendEventError(\n            `Discarding event because it's not included in the random sample (sampling rate = ${sampleRate})`,\n          );\n        }\n\n        if (isTransaction) {\n          const spanCountBefore = processedEvent.sdkProcessingMetadata?.spanCountBeforeProcessing || 0;\n          const spanCountAfter = processedEvent.spans ? processedEvent.spans.length : 0;\n\n          const droppedSpanCount = spanCountBefore - spanCountAfter;\n          if (droppedSpanCount > 0) {\n            this.recordDroppedEvent('before_send', 'span', droppedSpanCount);\n          }\n        }\n\n        // None of the Sentry built event processor will update transaction name,\n        // so if the transaction name has been changed by an event processor, we know\n        // it has to come from custom event processor added by a user\n        const transactionInfo = processedEvent.transaction_info;\n        if (isTransaction && transactionInfo && processedEvent.transaction !== event.transaction) {\n          const source = 'custom';\n          processedEvent.transaction_info = {\n            ...transactionInfo,\n            source,\n          };\n        }\n\n        this.sendEvent(processedEvent, hint);\n        return processedEvent;\n      })\n      .then(null, reason => {\n        if (_isDoNotSendEventError(reason) || _isInternalError(reason)) {\n          throw reason;\n        }\n\n        this.captureException(reason, {\n          mechanism: {\n            handled: false,\n            type: 'internal',\n          },\n          data: {\n            __sentry__: true,\n          },\n          originalException: reason,\n        });\n        throw _makeInternalError(\n          `Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\\nReason: ${reason}`,\n        );\n      });\n  }\n\n  /**\n   * Occupies the client with processing and event\n   */\n  protected _process<T>(taskProducer: () => PromiseLike<T>, dataCategory: DataCategory): void {\n    this._numProcessing++;\n\n    void this._promiseBuffer.add(taskProducer).then(\n      value => {\n        this._numProcessing--;\n        return value;\n      },\n      reason => {\n        this._numProcessing--;\n\n        if (reason === SENTRY_BUFFER_FULL_ERROR) {\n          this.recordDroppedEvent('queue_overflow', dataCategory);\n        }\n\n        return reason;\n      },\n    );\n  }\n\n  /**\n   * Clears outcomes on this client and returns them.\n   */\n  protected _clearOutcomes(): Outcome[] {\n    const outcomes = this._outcomes;\n    this._outcomes = {};\n    return Object.entries(outcomes).map(([key, quantity]) => {\n      const [reason, category] = key.split(':') as [EventDropReason, DataCategory];\n      return {\n        reason,\n        category,\n        quantity,\n      };\n    });\n  }\n\n  /**\n   * Sends client reports as an envelope.\n   */\n  protected _flushOutcomes(): void {\n    DEBUG_BUILD && debug.log('Flushing outcomes...');\n\n    const outcomes = this._clearOutcomes();\n\n    if (outcomes.length === 0) {\n      DEBUG_BUILD && debug.log('No outcomes to send');\n      return;\n    }\n\n    // This is really the only place where we want to check for a DSN and only send outcomes then\n    if (!this._dsn) {\n      DEBUG_BUILD && debug.log('No dsn provided, will not send outcomes');\n      return;\n    }\n\n    DEBUG_BUILD && debug.log('Sending outcomes:', outcomes);\n\n    const envelope = createClientReportEnvelope(outcomes, this._options.tunnel && dsnToString(this._dsn));\n\n    // sendEnvelope should not throw\n    // eslint-disable-next-line @typescript-eslint/no-floating-promises\n    this.sendEnvelope(envelope);\n  }\n\n  /**\n   * Creates an {@link Event} from all inputs to `captureException` and non-primitive inputs to `captureMessage`.\n   */\n  public abstract eventFromException(_exception: unknown, _hint?: EventHint): PromiseLike<Event>;\n\n  /**\n   * Creates an {@link Event} from primitive inputs to `captureMessage`.\n   */\n  public abstract eventFromMessage(\n    _message: ParameterizedString,\n    _level?: SeverityLevel,\n    _hint?: EventHint,\n  ): PromiseLike<Event>;\n}\n\n/**\n * Verifies that return value of configured `beforeSend` or `beforeSendTransaction` is of expected type, and returns the value if so.\n */\nfunction _validateBeforeSendResult(\n  beforeSendResult: PromiseLike<Event | null> | Event | null,\n  beforeSendLabel: string,\n): PromiseLike<Event | null> | Event | null {\n  const invalidValueError = `${beforeSendLabel} must return \\`null\\` or a valid event.`;\n  if (isThenable(beforeSendResult)) {\n    return beforeSendResult.then(\n      event => {\n        if (!isPlainObject(event) && event !== null) {\n          throw _makeInternalError(invalidValueError);\n        }\n        return event;\n      },\n      e => {\n        throw _makeInternalError(`${beforeSendLabel} rejected with ${e}`);\n      },\n    );\n  } else if (!isPlainObject(beforeSendResult) && beforeSendResult !== null) {\n    throw _makeInternalError(invalidValueError);\n  }\n  return beforeSendResult;\n}\n\n/**\n * Process the matching `beforeSendXXX` callback.\n */\nfunction processBeforeSend(\n  client: Client,\n  options: ClientOptions,\n  event: Event,\n  hint: EventHint,\n  onCallbackError: () => void,\n): PromiseLike<Event | null> | Event | null {\n  const {\n    beforeSend,\n    ignoreSpans,\n    // oxlint-disable-next-line typescript/no-deprecated\n    beforeSendTransaction,\n  } = options;\n  const beforeSendSpan = isStaticBeforeSendSpanCallback(options.beforeSendSpan) && options.beforeSendSpan;\n\n  let processedEvent = event;\n\n  if (isErrorEvent(processedEvent) && beforeSend) {\n    const errorEvent = processedEvent;\n    return safeCallback(\n      DEBUG_BUILD ? 'The `beforeSend` callback threw an error, dropping the event:' : '',\n      () => beforeSend(errorEvent, hint),\n      () => {\n        onCallbackError();\n        return null;\n      },\n    );\n  }\n\n  if (isTransactionEvent(processedEvent)) {\n    // Avoid processing if we don't have to\n    if (beforeSendSpan || ignoreSpans) {\n      // 1. Process root span\n      const rootSpanJson = convertTransactionEventToSpanJson(processedEvent);\n\n      // 1.1 If the root span should be ignored, drop the whole transaction\n      if (\n        ignoreSpans?.length &&\n        shouldIgnoreSpan(\n          { description: rootSpanJson.description, op: rootSpanJson.op, attributes: rootSpanJson.data },\n          ignoreSpans,\n        )\n      ) {\n        // dropping the whole transaction!\n        return null;\n      }\n\n      // 1.2 If a `beforeSendSpan` callback is defined, process the root span\n      if (beforeSendSpan) {\n        const processedRootSpanJson = applyBeforeSendSpanCallback(rootSpanJson, beforeSendSpan);\n        // update event with processed root span values\n        processedEvent = merge(event, convertSpanJsonToTransactionEvent(processedRootSpanJson));\n      }\n\n      // 2. Process child spans\n      if (processedEvent.spans) {\n        const processedSpans: SpanJSON[] = [];\n\n        const initialSpans = processedEvent.spans;\n\n        for (const span of initialSpans) {\n          // 2.a If the child span should be ignored, reparent it to the root span\n          if (\n            ignoreSpans?.length &&\n            shouldIgnoreSpan({ description: span.description, op: span.op, attributes: span.data }, ignoreSpans)\n          ) {\n            reparentChildSpans(initialSpans, span);\n            continue;\n          }\n\n          // 2.b If a `beforeSendSpan` callback is defined, process the child span\n          if (beforeSendSpan) {\n            processedSpans.push(applyBeforeSendSpanCallback(span, beforeSendSpan));\n          } else {\n            processedSpans.push(span);\n          }\n        }\n\n        const droppedSpans = processedEvent.spans.length - processedSpans.length;\n        if (droppedSpans) {\n          client.recordDroppedEvent('before_send', 'span', droppedSpans);\n        }\n\n        processedEvent.spans = processedSpans;\n      }\n    }\n\n    if (beforeSendTransaction) {\n      if (processedEvent.spans) {\n        // We store the # of spans before processing in SDK metadata,\n        // so we can compare it afterwards to determine how many spans were dropped\n        const spanCountBefore = processedEvent.spans.length;\n        processedEvent.sdkProcessingMetadata = {\n          ...event.sdkProcessingMetadata,\n          spanCountBeforeProcessing: spanCountBefore,\n        };\n      }\n      return safeCallback(\n        DEBUG_BUILD ? 'The `beforeSendTransaction` callback threw an error, dropping the event:' : '',\n        () => beforeSendTransaction(processedEvent as TransactionEvent, hint),\n        () => {\n          onCallbackError();\n          return null;\n        },\n      );\n    }\n  }\n\n  return processedEvent;\n}\n\nfunction isErrorEvent(event: Event): event is ErrorEvent {\n  return event.type === undefined;\n}\n\nfunction isTransactionEvent(event: Event): event is TransactionEvent {\n  return event.type === 'transaction';\n}\n\n/**\n * Estimate the size of a metric in bytes.\n *\n * @param metric - The metric to estimate the size of.\n * @returns The estimated size of the metric in bytes.\n */\nfunction estimateMetricSizeInBytes(metric: Metric): number {\n  let weight = 0;\n\n  // Estimate byte size of 2 bytes per character. This is a rough estimate JS strings are stored as UTF-16.\n  if (metric.name) {\n    weight += metric.name.length * 2;\n  }\n\n  // Add weight for number\n  weight += 8;\n\n  return weight + estimateAttributesSizeInBytes(metric.attributes);\n}\n\n/**\n * Estimate the size of a log in bytes.\n *\n * @param log - The log to estimate the size of.\n * @returns The estimated size of the log in bytes.\n */\nfunction estimateLogSizeInBytes(log: Log): number {\n  let weight = 0;\n\n  // Estimate byte size of 2 bytes per character. This is a rough estimate JS strings are stored as UTF-16.\n  if (log.message) {\n    weight += log.message.length * 2;\n  }\n\n  return weight + estimateAttributesSizeInBytes(log.attributes);\n}\n\n/**\n * Estimate the size of attributes in bytes.\n *\n * @param attributes - The attributes object to estimate the size of.\n * @returns The estimated size of the attributes in bytes.\n */\nfunction estimateAttributesSizeInBytes(attributes: Record<string, unknown> | undefined): number {\n  if (!attributes) {\n    return 0;\n  }\n\n  let weight = 0;\n\n  Object.values(attributes).forEach(value => {\n    if (Array.isArray(value)) {\n      weight += value.length * estimatePrimitiveSizeInBytes(value[0]);\n    } else if (isPrimitive(value)) {\n      weight += estimatePrimitiveSizeInBytes(value);\n    } else {\n      // For objects values, we estimate the size of the object as 100 bytes\n      weight += 100;\n    }\n  });\n\n  return weight;\n}\n\nfunction estimatePrimitiveSizeInBytes(value: Primitive): number {\n  if (typeof value === 'string') {\n    return value.length * 2;\n  } else if (typeof value === 'number') {\n    return 8;\n  } else if (typeof value === 'boolean') {\n    return 4;\n  }\n\n  return 0;\n}\n","import type { ClientOptions } from '../types/options';\nimport { consoleSandbox } from './debug-logger';\n\n/**\n * Warns about `beforeSendTransaction` and `ignoreTransactions` being ignored because span streaming is enabled.\n *\n * Both options are tied to the transaction event that span streaming no longer produces, so they silently\n * stop taking effect when users upgrade. Since that's easy to miss, this warning bypasses the `debug` logger\n * (which is opt-in and stripped from non-debug bundles) and writes to the console directly.\n */\nexport function maybeWarnAboutIgnoredTransactionOptions(options: ClientOptions): void {\n  if (\n    options.traceLifecycle !== 'stream' ||\n    // oxlint-disable-next-line typescript/no-deprecated\n    !(options.beforeSendTransaction || options.ignoreTransactions?.length)\n  ) {\n    return;\n  }\n\n  consoleSandbox(() => {\n    // oxlint-disable-next-line no-console\n    console.warn(\n      \"[Sentry] `beforeSendTransaction` and `ignoreTransactions` are ignored with `traceLifecycle: 'stream'` (enabled by default). Use `beforeSendSpan` and `ignoreSpans` instead, or set `traceLifecycle: 'static'`.\",\n    );\n  });\n}\n","import type { Client } from '../../client';\nimport type { SpanContainerItem } from '../../types/envelope';\nimport type { Event } from '../../types/event';\nimport { createSpanContainerItem } from './envelope';\nimport { hasSpanStreamingEnabled } from './hasSpanStreamingEnabled';\nimport { spanJsonToSerializedStreamedSpan } from './spanJsonToStreamedSpan';\n\n/**\n * Extracts gen_ai spans from a transaction event, converts them to span v2 format,\n * and returns them as a SpanContainerItem.\n *\n * Only applies to static mode (non-streaming) transactions.\n *\n * WARNING: This function mutates `event.spans` by removing the extracted gen_ai spans\n * from the array. Call this before creating the event envelope so the transaction\n * item does not include the extracted spans.\n */\nexport function extractGenAiSpansFromEvent(event: Event, client: Client): SpanContainerItem | undefined {\n  if (\n    event.type !== 'transaction' ||\n    !event.spans?.length ||\n    !event.sdkProcessingMetadata?.hasGenAiSpans ||\n    hasSpanStreamingEnabled(client)\n  ) {\n    return undefined;\n  }\n\n  const genAiSpans = [];\n  const remainingSpans = [];\n\n  for (const span of event.spans) {\n    if (span.op?.startsWith('gen_ai.')) {\n      genAiSpans.push(spanJsonToSerializedStreamedSpan(span));\n    } else {\n      remainingSpans.push(span);\n    }\n  }\n\n  if (genAiSpans.length === 0) {\n    return undefined;\n  }\n\n  event.spans = remainingSpans;\n\n  return createSpanContainerItem(genAiSpans, client);\n}\n","import type { Client } from '../../client';\n\n/**\n * Determines if span streaming is enabled for the given client\n */\nexport function hasSpanStreamingEnabled(client: Client): boolean {\n  return client.getOptions().traceLifecycle === 'stream';\n}\n","/**\n * Parse a sample rate from a given value.\n * This will either return a boolean or number sample rate, if the sample rate is valid (between 0 and 1).\n * If a string is passed, we try to convert it to a number.\n *\n * Any invalid sample rate will return `undefined`.\n */\nexport function parseSampleRate(sampleRate: unknown): number | undefined {\n  if (typeof sampleRate === 'boolean') {\n    return Number(sampleRate);\n  }\n\n  const rate = typeof sampleRate === 'string' ? parseFloat(sampleRate) : sampleRate;\n  if (typeof rate !== 'number' || isNaN(rate) || rate < 0 || rate > 1) {\n    return undefined;\n  }\n\n  return rate;\n}\n","import { SENTRY_PROFILE_ID, SENTRY_EXCLUSIVE_TIME } from '@sentry/conventions/attributes';\nimport type { TransactionEvent } from '../types/event';\nimport type { SpanJSON } from '../types/span';\n\n/**\n * Converts a transaction event to a span JSON object.\n */\nexport function convertTransactionEventToSpanJson(event: TransactionEvent): SpanJSON {\n  const { trace_id, parent_span_id, span_id, status, origin, data, op } = event.contexts?.trace ?? {};\n\n  return {\n    data: data ?? {},\n    description: event.transaction,\n    op,\n    parent_span_id,\n    span_id: span_id ?? '',\n    start_timestamp: event.start_timestamp ?? 0,\n    status: status ?? 'ok',\n    timestamp: event.timestamp,\n    trace_id: trace_id ?? '',\n    origin,\n    profile_id: data?.[SENTRY_PROFILE_ID] as string | undefined,\n    exclusive_time: data?.[SENTRY_EXCLUSIVE_TIME] as number | undefined,\n    measurements: event.measurements,\n    is_segment: true,\n  };\n}\n\n/**\n * Converts a span JSON object to a transaction event.\n */\nexport function convertSpanJsonToTransactionEvent(span: SpanJSON): TransactionEvent {\n  return {\n    type: 'transaction',\n    timestamp: span.timestamp,\n    start_timestamp: span.start_timestamp,\n    transaction: span.description,\n    contexts: {\n      trace: {\n        trace_id: span.trace_id,\n        span_id: span.span_id,\n        parent_span_id: span.parent_span_id,\n        op: span.op,\n        status: span.status,\n        origin: span.origin,\n        data: {\n          ...span.data,\n          ...(span.profile_id && { [SENTRY_PROFILE_ID]: span.profile_id }),\n          ...(span.exclusive_time && { [SENTRY_EXCLUSIVE_TIME]: span.exclusive_time }),\n        },\n      },\n    },\n    measurements: span.measurements,\n  };\n}\n","import type { ClientReport } from '../types/clientreport';\nimport type { ClientReportEnvelope, ClientReportItem } from '../types/envelope';\nimport { createEnvelope } from './envelope';\nimport { dateTimestampInSeconds } from './time';\n\n/**\n * Creates client report envelope\n * @param discarded_events An array of discard events\n * @param dsn A DSN that can be set on the header. Optional.\n */\nexport function createClientReportEnvelope(\n  discarded_events: ClientReport['discarded_events'],\n  dsn?: string,\n  timestamp?: number,\n): ClientReportEnvelope {\n  const clientReportItem: ClientReportItem = [\n    { type: 'client_report' },\n    {\n      timestamp: timestamp || dateTimestampInSeconds(),\n      discarded_events,\n    },\n  ];\n  return createEnvelope<ClientReportEnvelope>(dsn ? { dsn } : {}, [clientReportItem]);\n}\n","import type { Client } from './client';\nimport { isClientClosed } from './client';\nimport { getClient, getCurrentScope } from './currentScopes';\nimport { DEBUG_BUILD } from './debug-build';\nimport type { ClientOptions } from './types/options';\nimport { consoleSandbox, debug } from './utils/debug-logger';\n\n/** A class object that can instantiate Client objects. */\nexport type ClientClass<F extends Client, O extends ClientOptions> = new (options: O) => F;\n\n/**\n * Internal function to create a new SDK client instance. The client is\n * installed and then bound to the current scope.\n *\n * @param clientClass The client class to instantiate.\n * @param options Options to pass to the client.\n */\nexport function initAndBind<F extends Client, O extends ClientOptions>(\n  clientClass: ClientClass<F, O>,\n  options: O,\n): Client {\n  if (options.debug === true) {\n    if (DEBUG_BUILD) {\n      debug.enable();\n    } else {\n      // use `console.warn` rather than `debug.warn` since by non-debug bundles have all `debug.x` statements stripped\n      consoleSandbox(() => {\n        // eslint-disable-next-line no-console\n        console.warn('[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.');\n      });\n    }\n  }\n  warnIfClientIsActive();\n\n  const scope = getCurrentScope();\n  scope.update(options.initialScope);\n\n  const client = new clientClass(options);\n  setCurrentClient(client);\n  client.init();\n  return client;\n}\n\n/**\n * Returns the client bound to the current scope, unless it is closed.\n *\n * @hidden\n */\nexport function getActiveClient<C extends Client>(): C | undefined {\n  const client = getClient<C>();\n  return client && !isClientClosed(client) ? client : undefined;\n}\n\n/**\n * Warns when `init()` runs while a client is still bound. The new client\n * replaces it, but the old client stays alive, so the two can mix state.\n *\n * @hidden\n */\nexport function warnIfClientIsActive(): void {\n  if (getActiveClient()) {\n    consoleSandbox(() => {\n      // TODO(#24883): Point apps that share a page with another app to the\n      // isolated client helper, once that PR settles its name.\n      // eslint-disable-next-line no-console\n      console.warn(\n        '[Sentry] `Sentry.init()` was called more than once. The new client replaces the active client, but the active client is not closed, so state from both can mix. Call `Sentry.init()` only once, or call `await Sentry.close()` before you call it again.',\n      );\n    });\n  }\n}\n\n/**\n * Make the given client the current client.\n */\nexport function setCurrentClient(client: Client): void {\n  getCurrentScope().setClient(client);\n}\n","import type { SerializedSession, Session, SessionContext, SessionStatus } from './types/session';\nimport { uuid4 } from './utils/misc';\nimport { timestampInSeconds } from './utils/time';\n\n/**\n * Creates a new `Session` object by setting certain default parameters. If optional @param context\n * is passed, the passed properties are applied to the session object.\n *\n * @param context (optional) additional properties to be applied to the returned session object\n *\n * @returns a new `Session` object\n */\nexport function makeSession(context?: Omit<SessionContext, 'started' | 'status'>): Session {\n  // Both timestamp and started are in seconds since the UNIX epoch.\n  const startingTime = timestampInSeconds();\n\n  const session: Session = {\n    sid: uuid4(),\n    init: true,\n    timestamp: startingTime,\n    started: startingTime,\n    duration: 0,\n    status: 'ok',\n    errors: 0,\n    ignoreDuration: false,\n    toJSON: () => sessionToJSON(session),\n  };\n\n  if (context) {\n    updateSession(session, context);\n  }\n\n  return session;\n}\n\n/**\n * Updates a session object with the properties passed in the context.\n *\n * Note that this function mutates the passed object and returns void.\n * (Had to do this instead of returning a new and updated session because closing and sending a session\n * makes an update to the session after it was passed to the sending logic.\n * @see Client.captureSession )\n *\n * @param session the `Session` to update\n * @param context the `SessionContext` holding the properties that should be updated in @param session\n */\n// eslint-disable-next-line complexity\nexport function updateSession(session: Session, context: SessionContext = {}): void {\n  if (context.user) {\n    if (!session.ipAddress && context.user.ip_address) {\n      session.ipAddress = context.user.ip_address;\n    }\n\n    if (!session.did && !context.did) {\n      session.did = context.user.id || context.user.email || context.user.username;\n    }\n  }\n\n  session.timestamp = context.timestamp || timestampInSeconds();\n\n  if (context.abnormal_mechanism) {\n    session.abnormal_mechanism = context.abnormal_mechanism;\n  }\n\n  if (context.ignoreDuration) {\n    session.ignoreDuration = context.ignoreDuration;\n  }\n  if (context.sid) {\n    // Good enough uuid validation. — Kamil\n    session.sid = context.sid.length === 32 ? context.sid : uuid4();\n  }\n  if (context.init !== undefined) {\n    session.init = context.init;\n  }\n  if (!session.did && context.did) {\n    session.did = `${context.did}`;\n  }\n  if (typeof context.started === 'number') {\n    session.started = context.started;\n  }\n  if (session.ignoreDuration) {\n    session.duration = undefined;\n  } else if (typeof context.duration === 'number') {\n    session.duration = context.duration;\n  } else {\n    const duration = session.timestamp - session.started;\n    session.duration = duration >= 0 ? duration : 0;\n  }\n  if (context.release) {\n    session.release = context.release;\n  }\n  if (context.environment) {\n    session.environment = context.environment;\n  }\n  if (!session.ipAddress && context.ipAddress) {\n    session.ipAddress = context.ipAddress;\n  }\n  if (!session.userAgent && context.userAgent) {\n    session.userAgent = context.userAgent;\n  }\n  if (typeof context.errors === 'number') {\n    session.errors = context.errors;\n  }\n  if (context.status) {\n    session.status = context.status;\n  }\n}\n\n/**\n * Closes a session by setting its status and updating the session object with it.\n * Internally calls `updateSession` to update the passed session object.\n *\n * Note that this function mutates the passed session (@see updateSession for explanation).\n *\n * @param session the `Session` object to be closed\n * @param status the `SessionStatus` with which the session was closed. If you don't pass a status,\n *               this function will keep the previously set status, unless it was `'ok'` in which case\n *               it is changed to `'exited'`.\n */\nexport function closeSession(session: Session, status?: Exclude<SessionStatus, 'ok'>): void {\n  let context = {};\n  if (status) {\n    context = { status };\n  } else if (session.status === 'ok') {\n    context = { status: 'exited' };\n  }\n\n  updateSession(session, context);\n}\n\n/**\n * Serializes a passed session object to a JSON object with a slightly different structure.\n * This is necessary because the Sentry backend requires a slightly different schema of a session\n * than the one the JS SDKs use internally.\n *\n * @param session the session to be converted\n *\n * @returns a JSON object of the passed session\n */\nfunction sessionToJSON(session: Session): SerializedSession {\n  return {\n    sid: `${session.sid}`,\n    init: session.init,\n    // Make sure that sec is converted to ms for date constructor\n    started: new Date(session.started * 1000).toISOString(),\n    timestamp: new Date(session.timestamp * 1000).toISOString(),\n    status: session.status,\n    errors: session.errors,\n    did: typeof session.did === 'number' || typeof session.did === 'string' ? `${session.did}` : undefined,\n    duration: session.duration,\n    abnormal_mechanism: session.abnormal_mechanism,\n    attrs: {\n      release: session.release,\n      environment: session.environment,\n      ip_address: session.ipAddress,\n      user_agent: session.userAgent,\n    },\n  };\n}\n","/**\n * Shallow merge two objects.\n * Does not mutate the passed in objects.\n * Undefined/empty values in the merge object will overwrite existing values.\n *\n * By default, this merges 2 levels deep.\n */\nexport function merge<T>(initialObj: T, mergeObj: T, levels = 2): T {\n  // If the merge value is not an object, or we have no merge levels left,\n  // we just set the value to the merge value\n  if (!mergeObj || typeof mergeObj !== 'object' || levels <= 0) {\n    return mergeObj;\n  }\n\n  // If the merge object is an empty object, and the initial object is not undefined, we return the initial object\n  if (initialObj && Object.keys(mergeObj).length === 0) {\n    return initialObj;\n  }\n\n  // Clone object\n  const output = { ...initialObj };\n\n  // Merge values into output, resursively\n  for (const key in mergeObj) {\n    if (Object.prototype.hasOwnProperty.call(mergeObj, key)) {\n      output[key] = merge(output[key], mergeObj[key], levels - 1);\n    }\n  }\n\n  return output;\n}\n","/* eslint-disable max-lines */\nimport type { AttributeObject, RawAttribute, RawAttributes } from './attributes';\nimport type { Client } from './client';\nimport { DEBUG_BUILD } from './debug-build';\nimport { updateSession } from './session';\nimport type { Attachment } from './types/attachment';\nimport type { Breadcrumb } from './types/breadcrumb';\nimport type { Context, Contexts } from './types/context';\nimport type { DynamicSamplingContext } from './types/envelope';\nimport type { Event, EventHint } from './types/event';\nimport type { EventProcessor } from './types/eventprocessor';\nimport type { Extra, Extras } from './types/extra';\nimport type { Primitive } from './types/misc';\nimport type { RequestEventData } from './types/request';\nimport type { Session } from './types/session';\nimport type { SeverityLevel } from './types/severity';\nimport type { PropagationContext } from './types/tracing';\nimport type { User } from './types/user';\nimport { debug } from './utils/debug-logger';\nimport { isPlainObject } from './utils/is';\nimport { addNonEnumerableProperty } from './utils/object';\nimport { merge } from './utils/merge';\nimport { uuid4 } from './utils/misc';\nimport { generateTraceId } from './utils/propagationContext';\nimport { safeMathRandom } from './utils/randomSafeContext';\nimport { truncate } from './utils/string';\nimport { dateTimestampInSeconds } from './utils/time';\n\n/**\n * Default value for maximum number of breadcrumbs added to an event.\n */\nconst DEFAULT_MAX_BREADCRUMBS = 100;\n\n/**\n * A context to be used for capturing an event.\n * This can either be a Scope, or a partial ScopeContext,\n * or a callback that receives the current scope and returns a new scope to use.\n */\nexport type CaptureContext = Scope | Partial<ScopeContext> | ((scope: Scope) => Scope);\n\n/**\n * Data that can be converted to a Scope.\n */\nexport interface ScopeContext {\n  user: User;\n  level: SeverityLevel;\n  extra: Extras;\n  contexts: Contexts;\n  tags: { [key: string]: Primitive };\n  attributes?: RawAttributes<Record<string, unknown>>;\n  fingerprint: string[];\n  propagationContext: PropagationContext;\n  conversationId?: string;\n}\n\nexport interface SdkProcessingMetadata {\n  [key: string]: unknown;\n  requestSession?: {\n    status: 'ok' | 'errored' | 'crashed';\n  };\n  normalizedRequest?: RequestEventData;\n  dynamicSamplingContext?: Partial<DynamicSamplingContext>;\n  capturedSpanScope?: Scope;\n  capturedSpanIsolationScope?: Scope;\n  spanCountBeforeProcessing?: number;\n  ipAddress?: string;\n}\n\n/**\n * Normalized data of the Scope, ready to be used.\n */\nexport interface ScopeData {\n  eventProcessors: EventProcessor[];\n  breadcrumbs: Breadcrumb[];\n  user: User;\n  tags: { [key: string]: Primitive };\n  attributes: RawAttributes<Record<string, unknown>>;\n  extra: Extras;\n  contexts: Contexts;\n  attachments: Attachment[];\n  propagationContext: PropagationContext;\n  sdkProcessingMetadata: SdkProcessingMetadata;\n  fingerprint: string[];\n  level?: SeverityLevel;\n  transactionName?: string;\n  conversationId?: string;\n}\n\n/**\n * Holds additional event information.\n */\nexport class Scope {\n  /** Flag if notifying is happening. */\n  protected _notifyingListeners: boolean;\n\n  /** Callback for client to receive scope changes. */\n  protected _scopeListeners: Array<(scope: Scope) => void>;\n\n  /** Callback list that will be called during event processing. */\n  protected _eventProcessors: EventProcessor[];\n\n  /** Array of breadcrumbs. */\n  protected _breadcrumbs: Breadcrumb[];\n\n  /** User */\n  protected _user: User;\n\n  /** Tags */\n  protected _tags: { [key: string]: Primitive };\n\n  /** Attributes */\n  protected _attributes: RawAttributes<Record<string, unknown>>;\n\n  /** Extra */\n  protected _extra: Extras;\n\n  /** Contexts */\n  protected _contexts: Contexts;\n\n  /** Attachments */\n  protected _attachments: Attachment[];\n\n  /** Propagation Context for distributed tracing */\n  protected _propagationContext: PropagationContext;\n\n  /**\n   * A place to stash data which is needed at some point in the SDK's event processing pipeline but which shouldn't get\n   * sent to Sentry\n   */\n  protected _sdkProcessingMetadata: SdkProcessingMetadata;\n\n  /** Fingerprint */\n  protected _fingerprint?: string[];\n\n  /** Severity */\n  protected _level?: SeverityLevel;\n\n  /**\n   * Transaction Name\n   *\n   * IMPORTANT: The transaction name on the scope has nothing to do with root spans/transaction objects.\n   * It's purpose is to assign a transaction to the scope that's added to non-transaction events.\n   */\n  protected _transactionName?: string;\n\n  /** Session */\n  protected _session?: Session;\n\n  /** The client on this scope */\n  protected _client?: Client;\n\n  /** Contains the last event id of a captured event.  */\n  protected _lastEventId?: string;\n\n  /** Conversation ID */\n  protected _conversationId?: string;\n\n  /**\n   * A place to stash references to objects that are associated with this scope but should not be serialized,\n   * such as the currently active span (core) or the OpenTelemetry context (opentelemetry).\n   * These are cloned as-is (shallow) when the scope is cloned, so they survive `clone()`.\n   *\n   * This is non-enumerable so it does not leak into `toJSON`, `Object.keys` or structural comparisons.\n   */\n  declare public refs: Record<string, unknown>;\n\n  // NOTE: Any field which gets added here should get added not only to the constructor but also to the `clone` method.\n\n  public constructor() {\n    this._notifyingListeners = false;\n    this._scopeListeners = [];\n    this._eventProcessors = [];\n    this._breadcrumbs = [];\n    this._attachments = [];\n    this._user = {};\n    this._tags = {};\n    this._attributes = {};\n    this._extra = {};\n    this._contexts = {};\n    this._sdkProcessingMetadata = {};\n    addNonEnumerableProperty(this, 'refs', {});\n    this._propagationContext = {\n      traceId: generateTraceId(),\n      sampleRand: safeMathRandom(),\n    };\n  }\n\n  /**\n   * Clone all data from this scope into a new scope.\n   */\n  public clone(): Scope {\n    const newScope = new Scope();\n    newScope._breadcrumbs = [...this._breadcrumbs];\n    newScope._tags = { ...this._tags };\n    newScope._attributes = { ...this._attributes };\n    newScope._extra = { ...this._extra };\n    newScope._contexts = { ...this._contexts };\n    if (this._contexts.flags) {\n      // We need to copy the `values` array so insertions on a cloned scope\n      // won't affect the original array.\n      newScope._contexts.flags = {\n        values: [...this._contexts.flags.values],\n      };\n    }\n\n    newScope._user = this._user;\n    newScope._level = this._level;\n    newScope._session = this._session;\n    newScope._transactionName = this._transactionName;\n    newScope._fingerprint = this._fingerprint;\n    newScope._eventProcessors = [...this._eventProcessors];\n    newScope._attachments = [...this._attachments];\n    newScope._sdkProcessingMetadata = { ...this._sdkProcessingMetadata };\n    newScope._propagationContext = { ...this._propagationContext };\n    newScope._client = this._client;\n    newScope._lastEventId = this._lastEventId;\n    newScope._conversationId = this._conversationId;\n    newScope.refs = { ...this.refs };\n\n    return newScope;\n  }\n\n  /**\n   * Update the client assigned to this scope.\n   * Note that not every scope will have a client assigned - isolation scopes & the global scope will generally not have a client,\n   * as well as manually created scopes.\n   */\n  public setClient(client: Client | undefined): void {\n    this._client = client;\n  }\n\n  /**\n   * Set the ID of the last captured error event.\n   * This is generally only captured on the isolation scope.\n   */\n  public setLastEventId(lastEventId: string | undefined): void {\n    this._lastEventId = lastEventId;\n  }\n\n  /**\n   * Get the client assigned to this scope.\n   */\n  public getClient<C extends Client>(): C | undefined {\n    return this._client as C | undefined;\n  }\n\n  /**\n   * Get the ID of the last captured error event.\n   * This is generally only available on the isolation scope.\n   */\n  public lastEventId(): string | undefined {\n    return this._lastEventId;\n  }\n\n  /**\n   * @inheritDoc\n   */\n  public addScopeListener(callback: (scope: Scope) => void): void {\n    this._scopeListeners.push(callback);\n  }\n\n  /**\n   * Add an event processor that will be called before an event is sent.\n   */\n  public addEventProcessor(callback: EventProcessor): this {\n    this._eventProcessors.push(callback);\n    return this;\n  }\n\n  /**\n   * Set the user for this scope.\n   * Set to `null` to unset the user.\n   */\n  public setUser(user: User | null): this {\n    // If null is passed we want to unset everything, but still define keys,\n    // so that later down in the pipeline any existing values are cleared.\n    this._user = user || {\n      email: undefined,\n      id: undefined,\n      ip_address: undefined,\n      username: undefined,\n    };\n\n    if (this._session) {\n      updateSession(this._session, { user });\n    }\n\n    this._notifyScopeListeners();\n    return this;\n  }\n\n  /**\n   * Get the user from this scope.\n   */\n  public getUser(): User | undefined {\n    return this._user;\n  }\n\n  /**\n   * Set the conversation ID for this scope.\n   * Set to `null` to unset the conversation ID.\n   */\n  public setConversationId(conversationId: string | null | undefined): this {\n    this._conversationId = conversationId || undefined;\n    this._notifyScopeListeners();\n    return this;\n  }\n\n  /**\n   * Set an object that will be merged into existing tags on the scope,\n   * and will be sent as tags data with the event.\n   */\n  public setTags(tags: { [key: string]: Primitive }): this {\n    this._tags = {\n      ...this._tags,\n      ...tags,\n    };\n    this._notifyScopeListeners();\n    return this;\n  }\n\n  /**\n   * Set a single tag that will be sent as tags data with the event.\n   */\n  public setTag(key: string, value: Primitive): this {\n    return this.setTags({ [key]: value });\n  }\n\n  /**\n   * Sets attributes onto the scope.\n   *\n   * These attributes are applied to logs, metrics and streamed spans.\n   *\n   * Supported attribute value types are `string`, `number`, `boolean`, `string[]`, `number[]` and `boolean[]`.\n   *\n   * @param newAttributes - The attributes to set on the scope, as key-value pairs.\n   *\n   * @example\n   * ```typescript\n   * scope.setAttributes({\n   *   is_admin: true,\n   *   payment_selection: 'credit_card',\n   *   render_duration: 150,\n   * });\n   * ```\n   */\n  public setAttributes<T extends Record<string, unknown>>(newAttributes: RawAttributes<T>): this {\n    this._attributes = {\n      ...this._attributes,\n      ...newAttributes,\n    };\n\n    this._notifyScopeListeners();\n    return this;\n  }\n\n  /**\n   * Sets an attribute onto the scope.\n   *\n   * These attributes are applied to logs, metrics and streamed spans.\n   *\n   * Supported attribute value types are `string`, `number`, `boolean`, `string[]`, `number[]` and `boolean[]`.\n   *\n   * @param key - The attribute key.\n   * @param value - The attribute value.\n   *\n   * @example\n   * ```typescript\n   * scope.setAttribute('is_admin', true);\n   * scope.setAttribute('render_duration', 150);\n   * ```\n   */\n  // eslint-disable-next-line @typescript-eslint/no-explicit-any\n  public setAttribute<T extends (RawAttribute<T> extends { value: any } | { unit: any } ? AttributeObject : unknown)>(\n    key: string,\n    value: RawAttribute<T>,\n  ): this {\n    return this.setAttributes({ [key]: value });\n  }\n\n  /**\n   * Removes the attribute with the given key from the scope.\n   *\n   * @param key - The attribute key.\n   *\n   * @example\n   * ```typescript\n   * scope.removeAttribute('is_admin');\n   * ```\n   */\n  public removeAttribute(key: string): this {\n    if (key in this._attributes) {\n      // eslint-disable-next-line @typescript-eslint/no-dynamic-delete\n      delete this._attributes[key];\n      this._notifyScopeListeners();\n    }\n    return this;\n  }\n\n  /**\n   * Set an object that will be merged into existing extra on the scope,\n   * and will be sent as extra data with the event.\n   */\n  public setExtras(extras: Extras): this {\n    this._extra = {\n      ...this._extra,\n      ...extras,\n    };\n    this._notifyScopeListeners();\n    return this;\n  }\n\n  /**\n   * Set a single key:value extra entry that will be sent as extra data with the event.\n   */\n  public setExtra(key: string, extra: Extra): this {\n    this._extra = { ...this._extra, [key]: extra };\n    this._notifyScopeListeners();\n    return this;\n  }\n\n  /**\n   * Sets the fingerprint on the scope to send with the events.\n   * @param {string[]} fingerprint Fingerprint to group events in Sentry.\n   */\n  public setFingerprint(fingerprint: string[]): this {\n    this._fingerprint = fingerprint;\n    this._notifyScopeListeners();\n    return this;\n  }\n\n  /**\n   * Sets the level on the scope for future events.\n   */\n  public setLevel(level: SeverityLevel): this {\n    this._level = level;\n    this._notifyScopeListeners();\n    return this;\n  }\n\n  /**\n   * Sets the transaction name on the scope so that the name of e.g. taken server route or\n   * the page location is attached to future events.\n   *\n   * IMPORTANT: Calling this function does NOT change the name of the currently active\n   * root span. If you want to change the name of the active root span, use\n   * `Sentry.updateSpanName(rootSpan, 'new name')` instead.\n   *\n   * By default, the SDK updates the scope's transaction name automatically on sensible\n   * occasions, such as a page navigation or when handling a new request on the server.\n   */\n  public setTransactionName(name?: string): this {\n    this._transactionName = name;\n    this._notifyScopeListeners();\n    return this;\n  }\n\n  /**\n   * Sets context data with the given name.\n   * Data passed as context will be normalized. You can also pass `null` to unset the context.\n   * Note that context data will not be merged - calling `setContext` will overwrite an existing context with the same key.\n   */\n  public setContext(key: string, context: Context | null): this {\n    if (context === null) {\n      // eslint-disable-next-line @typescript-eslint/no-dynamic-delete\n      delete this._contexts[key];\n    } else {\n      this._contexts[key] = context;\n    }\n\n    this._notifyScopeListeners();\n    return this;\n  }\n\n  /**\n   * Set the session for the scope.\n   */\n  public setSession(session?: Session): this {\n    if (!session) {\n      delete this._session;\n    } else {\n      this._session = session;\n    }\n    this._notifyScopeListeners();\n    return this;\n  }\n\n  /**\n   * Get the session from the scope.\n   */\n  public getSession(): Session | undefined {\n    return this._session;\n  }\n\n  /**\n   * Updates the scope with provided data. Can work in three variations:\n   * - plain object containing updatable attributes\n   * - Scope instance that'll extract the attributes from\n   * - callback function that'll receive the current scope as an argument and allow for modifications\n   */\n  public update(captureContext?: CaptureContext): this {\n    if (!captureContext) {\n      return this;\n    }\n\n    const scopeToMerge = typeof captureContext === 'function' ? captureContext(this) : captureContext;\n\n    const scopeInstance =\n      scopeToMerge instanceof Scope\n        ? scopeToMerge.getScopeData()\n        : isPlainObject(scopeToMerge)\n          ? (captureContext as ScopeContext)\n          : undefined;\n\n    const {\n      tags,\n      attributes,\n      extra,\n      user,\n      contexts,\n      level,\n      fingerprint = [],\n      propagationContext,\n      conversationId,\n    } = scopeInstance || {};\n\n    this._tags = { ...this._tags, ...tags };\n    this._attributes = { ...this._attributes, ...attributes };\n    this._extra = { ...this._extra, ...extra };\n    this._contexts = { ...this._contexts, ...contexts };\n\n    if (user && Object.keys(user).length) {\n      this._user = user;\n    }\n\n    if (level) {\n      this._level = level;\n    }\n\n    if (fingerprint.length) {\n      this._fingerprint = fingerprint;\n    }\n\n    if (propagationContext) {\n      this._propagationContext = propagationContext;\n    }\n\n    if (conversationId) {\n      this._conversationId = conversationId;\n    }\n\n    return this;\n  }\n\n  /**\n   * Adds a breadcrumb to the scope.\n   * By default, the last 100 breadcrumbs are kept.\n   */\n  public addBreadcrumb(breadcrumb: Breadcrumb, maxBreadcrumbs?: number): this {\n    const maxCrumbs = typeof maxBreadcrumbs === 'number' ? maxBreadcrumbs : DEFAULT_MAX_BREADCRUMBS;\n\n    // No data has been changed, so don't notify scope listeners\n    if (maxCrumbs <= 0) {\n      return this;\n    }\n\n    const mergedBreadcrumb: Breadcrumb = {\n      timestamp: dateTimestampInSeconds(),\n      ...breadcrumb,\n      // Breadcrumb messages can theoretically be infinitely large and they're held in memory so we truncate them not to leak (too much) memory\n      message: breadcrumb.message ? truncate(breadcrumb.message, 2048) : breadcrumb.message,\n    };\n\n    this._breadcrumbs.push(mergedBreadcrumb);\n    if (this._breadcrumbs.length > maxCrumbs) {\n      this._breadcrumbs = this._breadcrumbs.slice(-maxCrumbs);\n    }\n\n    this._notifyScopeListeners();\n\n    return this;\n  }\n\n  /**\n   * Get the last breadcrumb of the scope.\n   */\n  public getLastBreadcrumb(): Breadcrumb | undefined {\n    return this._breadcrumbs[this._breadcrumbs.length - 1];\n  }\n\n  /**\n   * Clear all breadcrumbs from the scope.\n   */\n  public clearBreadcrumbs(): this {\n    this._breadcrumbs = [];\n    this._notifyScopeListeners();\n    return this;\n  }\n\n  /**\n   * Add an attachment to the scope.\n   */\n  public addAttachment(attachment: Attachment): this {\n    this._attachments.push(attachment);\n    return this;\n  }\n\n  /**\n   * Clear all attachments from the scope.\n   */\n  public clearAttachments(): this {\n    this._attachments = [];\n    return this;\n  }\n\n  /**\n   * Get the data of this scope, which should be applied to an event during processing.\n   */\n  public getScopeData(): ScopeData {\n    return {\n      breadcrumbs: this._breadcrumbs,\n      attachments: this._attachments,\n      contexts: this._contexts,\n      tags: this._tags,\n      attributes: this._attributes,\n      extra: this._extra,\n      user: this._user,\n      level: this._level,\n      fingerprint: this._fingerprint || [],\n      eventProcessors: this._eventProcessors,\n      propagationContext: this._propagationContext,\n      sdkProcessingMetadata: this._sdkProcessingMetadata,\n      transactionName: this._transactionName,\n      conversationId: this._conversationId,\n    };\n  }\n\n  /**\n   * Add data which will be accessible during event processing but won't get sent to Sentry.\n   */\n  public setSDKProcessingMetadata(newData: SdkProcessingMetadata): this {\n    this._sdkProcessingMetadata = merge(this._sdkProcessingMetadata, newData, 2);\n    return this;\n  }\n\n  /**\n   * Add propagation context to the scope, used for distributed tracing\n   */\n  public setPropagationContext(context: PropagationContext): this {\n    this._propagationContext = context;\n    return this;\n  }\n\n  /**\n   * Get propagation context from the scope, used for distributed tracing\n   */\n  public getPropagationContext(): PropagationContext {\n    return this._propagationContext;\n  }\n\n  /**\n   * Capture an exception for this scope.\n   *\n   * @returns {string} The id of the captured Sentry event.\n   */\n  public captureException(exception: unknown, hint?: EventHint): string {\n    const eventId = hint?.event_id || uuid4();\n\n    if (!this._client) {\n      DEBUG_BUILD && debug.warn('No client configured on scope - will not capture exception!');\n      return eventId;\n    }\n\n    const syntheticException = new Error('Sentry syntheticException');\n\n    this._client.captureException(\n      exception,\n      {\n        originalException: exception,\n        syntheticException,\n        ...hint,\n        event_id: eventId,\n      },\n      this,\n    );\n\n    return eventId;\n  }\n\n  /**\n   * Capture a message for this scope.\n   *\n   * @returns {string} The id of the captured message.\n   */\n  public captureMessage(message: string, level?: SeverityLevel, hint?: EventHint): string {\n    const eventId = hint?.event_id || uuid4();\n\n    if (!this._client) {\n      DEBUG_BUILD && debug.warn('No client configured on scope - will not capture message!');\n      return eventId;\n    }\n\n    const syntheticException = hint?.syntheticException ?? new Error(message);\n\n    this._client.captureMessage(\n      message,\n      level,\n      {\n        originalException: message,\n        syntheticException,\n        ...hint,\n        event_id: eventId,\n      },\n      this,\n    );\n\n    return eventId;\n  }\n\n  /**\n   * Capture a Sentry event for this scope.\n   *\n   * @returns {string} The id of the captured event.\n   */\n  public captureEvent(event: Event, hint?: EventHint): string {\n    const eventId = event.event_id || hint?.event_id || uuid4();\n\n    if (!this._client) {\n      DEBUG_BUILD && debug.warn('No client configured on scope - will not capture event!');\n      return eventId;\n    }\n\n    this._client.captureEvent(event, { ...hint, event_id: eventId }, this);\n\n    return eventId;\n  }\n\n  /**\n   * This will be called on every set call.\n   */\n  protected _notifyScopeListeners(): void {\n    // We need this check for this._notifyingListeners to be able to work on scope during updates\n    // If this check is not here we'll produce endless recursion when something is done with the scope\n    // during the callback.\n    if (!this._notifyingListeners) {\n      this._notifyingListeners = true;\n      this._scopeListeners.forEach(callback => {\n        callback(this);\n      });\n      this._notifyingListeners = false;\n    }\n  }\n}\n","import { uuid4 } from './misc';\n\n/**\n * Generate a random, valid trace ID.\n */\nexport function generateTraceId(): string {\n  return uuid4();\n}\n\n/**\n * Generate a random, valid span ID.\n */\nexport function generateSpanId(): string {\n  return uuid4().substring(16);\n}\n","import { isPrimitive, isRegExp, isString } from './is';\nimport { stringifyValue } from './normalize';\n\nexport { escapeStringForRegex } from '../vendor/escapeStringForRegex';\n\n/**\n * Coerce a value to a string without ever throwing. Strings pass through unchanged (so an\n * already-serialized value isn't double-encoded and a plain string isn't wrapped in quotes);\n * anything else is `JSON.stringify`-ed, falling back to `fallback` if that throws (e.g. on\n * circular references or `BigInt`). Returns `undefined` for values `JSON.stringify` itself drops\n * (top-level `undefined`, functions, symbols), matching `JSON.stringify`'s own runtime behavior.\n *\n * @param value the value to stringify\n * @param fallback returned when serialization throws, or, if a function, called with `value` to\n *   produce the fallback. Defaults to `'[unserializable]'`.\n */\nexport function stringify(\n  value: unknown,\n  fallback: string | ((value: unknown) => string) = '[unserializable]',\n): string | undefined {\n  if (typeof value === 'string') {\n    return value;\n  }\n  try {\n    return JSON.stringify(value);\n  } catch {\n    return typeof fallback === 'function' ? fallback(value) : fallback;\n  }\n}\n\n/**\n * Truncates given string to the maximum characters count\n *\n * @param str An object that contains serializable values\n * @param max Maximum number of characters in truncated string (0 = unlimited)\n * @returns string Encoded\n */\nexport function truncate(str: string, max: number = 0): string {\n  if (typeof str !== 'string' || max === 0) {\n    return str;\n  }\n  return str.length <= max ? str : `${str.slice(0, max)}...`;\n}\n\n/**\n * This is basically just `trim_line` from\n * https://github.com/getsentry/sentry/blob/master/src/sentry/lang/javascript/processor.py#L67\n *\n * @param str An object that contains serializable values\n * @param max Maximum number of characters in truncated string\n * @returns string Encoded\n */\nexport function snipLine(line: string, colno: number): string {\n  let newLine = line;\n  const lineLength = newLine.length;\n  if (lineLength <= 150) {\n    return newLine;\n  }\n  if (colno > lineLength) {\n    // eslint-disable-next-line no-param-reassign\n    colno = lineLength;\n  }\n\n  let start = Math.max(colno - 60, 0);\n  if (start < 5) {\n    start = 0;\n  }\n\n  let end = Math.min(start + 140, lineLength);\n  if (end > lineLength - 5) {\n    end = lineLength;\n  }\n  if (end === lineLength) {\n    start = Math.max(end - 140, 0);\n  }\n\n  newLine = newLine.slice(start, end);\n  if (start > 0) {\n    newLine = `'{snip} ${newLine}`;\n  }\n  if (end < lineLength) {\n    newLine += ' {snip}';\n  }\n\n  return newLine;\n}\n\n/**\n * Join values in array\n * @param input array of values to be joined together\n * @param delimiter string to be placed in-between values\n * @returns Joined values\n */\nexport function safeJoin(input: unknown[], delimiter?: string): string {\n  if (!Array.isArray(input)) {\n    return '';\n  }\n\n  const output = [];\n  // eslint-disable-next-line typescript/prefer-for-of\n  for (let i = 0; i < input.length; i++) {\n    const value = input[i];\n    if (isPrimitive(value)) {\n      output.push(String(value));\n    } else if (value instanceof Error) {\n      // While stringifyValue does not special-case errors, because we later handle them specifically based on the [object XXX] fallback,\n      // in this method we want to render them more nicely\n      output.push(value.message ? `${value.name}: ${value.message}` : value.name);\n    } else {\n      output.push(stringifyValue(undefined, value));\n    }\n  }\n\n  return output.join(delimiter);\n}\n\n/**\n * Checks if the given value matches a regex or string\n *\n * @param value The string to test\n * @param pattern Either a regex or a string against which `value` will be matched\n * @param requireExactStringMatch If true, `value` must match `pattern` exactly. If false, `value` will match\n * `pattern` if it contains `pattern`. Only applies to string-type patterns.\n */\nexport function isMatchingPattern(\n  value: string,\n  pattern: RegExp | string | ((value: string) => boolean),\n  requireExactStringMatch: boolean = false,\n): boolean {\n  if (!isString(value)) {\n    return false;\n  }\n\n  if (isRegExp(pattern)) {\n    return pattern.test(value);\n  }\n  if (isString(pattern)) {\n    return requireExactStringMatch ? value === pattern : value.includes(pattern);\n  }\n  if (typeof pattern === 'function') {\n    return pattern(value);\n  }\n\n  return false;\n}\n\n/**\n * Test the given string against an array of strings and regexes. By default, string matching is done on a\n * substring-inclusion basis rather than a strict equality basis\n *\n * @param testString The string to test\n * @param patterns The patterns against which to test the string\n * @param requireExactStringMatch If true, `testString` must match one of the given string patterns exactly in order to\n * count. If false, `testString` will match a string pattern if it contains that pattern.\n * @returns\n */\nexport function stringMatchesSomePattern(\n  testString: string,\n  patterns:\n    | Array<string | RegExp | ((value: string) => boolean)>\n    | Set<string | RegExp | ((value: string) => boolean)> = [],\n  requireExactStringMatch: boolean = false,\n): boolean {\n  for (const pattern of patterns) {\n    if (isMatchingPattern(testString, pattern, requireExactStringMatch)) {\n      return true;\n    }\n  }\n  return false;\n}\n","export const SUPPRESS_TRACING_KEY = '__SENTRY_SUPPRESS_TRACING__';\n","const isActualPromise = (p: unknown) =>\n  p instanceof Promise && !(p as unknown as ChainedPromiseLike<unknown>)[kChainedCopy];\n\ntype ChainedPromiseLike<T> = PromiseLike<T> & {\n  [kChainedCopy]: true;\n};\nconst kChainedCopy = Symbol('chained PromiseLike');\n\n/**\n * Copy the properties from a decorated promiselike object onto its chained\n * actual promise.\n */\nexport const chainAndCopyPromiseLike = <V, T extends PromiseLike<V>>(\n  original: T,\n  onSuccess: (value: V) => void,\n  onError: (e: unknown) => void,\n): T => {\n  const chained = original.then(\n    value => {\n      onSuccess(value);\n      return value;\n    },\n    err => {\n      onError(err);\n      throw err;\n    },\n  ) as T;\n\n  // if we're just dealing with \"normal\" Promise objects, return the chain\n  return isActualPromise(chained) && isActualPromise(original) ? chained : copyProps(original, chained);\n};\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nconst copyProps = <T extends Record<string, any>>(original: T, chained: T): T => {\n  if (!chained) return original;\n  let mutated = false;\n  //oxlint-disable-next-line guard-for-in\n  for (const key in original) {\n    if (key in chained) continue;\n    mutated = true;\n    const value = original[key];\n    if (typeof value === 'function') {\n      Object.defineProperty(chained, key, {\n        value: (...args: unknown[]) => value.apply(original, args),\n        enumerable: true,\n        configurable: true,\n        writable: true,\n      });\n    } else {\n      (chained as Record<string, unknown>)[key] = value;\n    }\n  }\n\n  if (mutated) Object.assign(chained, { [kChainedCopy]: true });\n  return chained;\n};\n","import type { Client } from '../client';\nimport { getDefaultCurrentScope, getDefaultIsolationScope } from '../defaultScopes';\nimport { Scope } from '../scope';\nimport { SUPPRESS_TRACING_KEY } from '../tracing/constants';\nimport { chainAndCopyPromiseLike } from '../utils/chain-and-copy-promiselike';\nimport { isThenable } from '../utils/is';\nimport { getMainCarrier, getSentryCarrier } from './../carrier';\nimport type { AsyncContextStrategy } from './types';\n\ninterface Layer {\n  client?: Client;\n  scope: Scope;\n}\n\n/**\n * This is an object that holds a stack of scopes.\n */\nexport class AsyncContextStack {\n  private readonly _stack: [Layer, ...Layer[]];\n  private _isolationScope: Scope;\n\n  public constructor(scope?: Scope, isolationScope?: Scope) {\n    let assignedScope;\n    if (!scope) {\n      assignedScope = new Scope();\n    } else {\n      assignedScope = scope;\n    }\n\n    let assignedIsolationScope;\n    if (!isolationScope) {\n      assignedIsolationScope = new Scope();\n    } else {\n      assignedIsolationScope = isolationScope;\n    }\n\n    // scope stack for domains or the process\n    this._stack = [{ scope: assignedScope }];\n    this._isolationScope = assignedIsolationScope;\n  }\n\n  /**\n   * Fork a scope for the stack.\n   */\n  public withScope<T>(callback: (scope: Scope) => T): T {\n    const scope = this._pushScope();\n\n    let maybePromiseResult: T;\n    try {\n      maybePromiseResult = callback(scope);\n    } catch (e) {\n      this._popScope();\n      throw e;\n    }\n\n    if (isThenable(maybePromiseResult)) {\n      return chainAndCopyPromiseLike(\n        maybePromiseResult as PromiseLike<Awaited<typeof maybePromiseResult>> & Record<string, unknown>,\n        () => this._popScope(),\n        () => this._popScope(),\n      ) as T;\n    }\n\n    this._popScope();\n    return maybePromiseResult;\n  }\n\n  /**\n   * Get the client of the stack.\n   */\n  public getClient<C extends Client>(): C | undefined {\n    return this.getStackTop().client as C;\n  }\n\n  /**\n   * Returns the scope of the top stack.\n   */\n  public getScope(): Scope {\n    return this.getStackTop().scope;\n  }\n\n  /**\n   * Get the isolation scope for the stack.\n   */\n  public getIsolationScope(): Scope {\n    return this._isolationScope;\n  }\n\n  /**\n   * Returns the topmost scope layer in the order domain > local > process.\n   */\n  public getStackTop(): Layer {\n    return this._stack[this._stack.length - 1] as Layer;\n  }\n\n  /**\n   * Push a scope to the stack.\n   */\n  private _pushScope(): Scope {\n    // We want to clone the content of prev scope\n    const scope = this.getScope().clone();\n    this._stack.push({\n      client: this.getClient(),\n      scope,\n    });\n    return scope;\n  }\n\n  /**\n   * Pop a scope from the stack.\n   */\n  private _popScope(): boolean {\n    if (this._stack.length <= 1) return false;\n    return !!this._stack.pop();\n  }\n}\n\n/**\n * Get the global async context stack.\n * This will be removed during the v8 cycle and is only here to make migration easier.\n */\nfunction getAsyncContextStack(): AsyncContextStack {\n  const registry = getMainCarrier();\n  const sentry = getSentryCarrier(registry);\n\n  return (sentry.stack = sentry.stack || new AsyncContextStack(getDefaultCurrentScope(), getDefaultIsolationScope()));\n}\n\nfunction withScope<T>(callback: (scope: Scope) => T): T {\n  return getAsyncContextStack().withScope(callback);\n}\n\nfunction withSetScope<T>(scope: Scope, callback: (scope: Scope) => T): T {\n  const stack = getAsyncContextStack();\n  return stack.withScope(() => {\n    stack.getStackTop().scope = scope;\n    return callback(scope);\n  });\n}\n\nfunction withIsolationScope<T>(callback: (isolationScope: Scope) => T): T {\n  return getAsyncContextStack().withScope(() => {\n    return callback(getAsyncContextStack().getIsolationScope());\n  });\n}\n\n/**\n * Get the stack-based async context strategy.\n */\nexport function getStackAsyncContextStrategy(): AsyncContextStrategy {\n  return {\n    suppressTracing: suppressTracingInStack,\n    withIsolationScope,\n    withScope,\n    withSetScope,\n    withSetIsolationScope: <T>(_isolationScope: Scope, callback: (isolationScope: Scope) => T) => {\n      return withIsolationScope(callback);\n    },\n    getCurrentScope: () => getAsyncContextStack().getScope(),\n    getIsolationScope: () => getAsyncContextStack().getIsolationScope(),\n  };\n}\n\n/**\n * In stack-based ACS, we do not wait for the callback to finish before we reset the metadata\n * the reason for this is that otherwise, in the stack this can lead to very weird behavior\n * as there is only a single top scope, if the callback takes longer to finish,\n * other, unrelated spans may also be suppressed, which we do not want\n * so instead, we only suppress tracing synchronoysly in the stack.\n */\nfunction suppressTracingInStack<T>(callback: () => T): T {\n  return withScope(scope => {\n    scope.setSDKProcessingMetadata({ [SUPPRESS_TRACING_KEY]: true });\n    const res = callback();\n    scope.setSDKProcessingMetadata({ [SUPPRESS_TRACING_KEY]: undefined });\n    return res;\n  });\n}\n","import { getGlobalSingleton } from './carrier';\nimport { Scope } from './scope';\n\n/** Get the default current scope. */\nexport function getDefaultCurrentScope(): Scope {\n  return getGlobalSingleton('defaultCurrentScope', () => new Scope());\n}\n\n/** Get the default isolation scope. */\nexport function getDefaultIsolationScope(): Scope {\n  return getGlobalSingleton('defaultIsolationScope', () => new Scope());\n}\n","import type { Carrier } from './../carrier';\nimport { getMainCarrier, getSentryCarrier } from './../carrier';\nimport { getStackAsyncContextStrategy } from './stackStrategy';\nimport type { AsyncContextStrategy } from './types';\n\n/**\n * @private Private API with no semver guarantees!\n *\n * Sets the global async context strategy\n */\nexport function setAsyncContextStrategy(strategy: AsyncContextStrategy | undefined): void {\n  // Get main carrier (global for every environment)\n  const registry = getMainCarrier();\n  const sentry = getSentryCarrier(registry);\n  sentry.acs = strategy;\n}\n\n/**\n * Get the current async context strategy.\n * If none has been setup, the default will be used.\n */\nexport function getAsyncContextStrategy(carrier: Carrier): AsyncContextStrategy {\n  const sentry = getSentryCarrier(carrier);\n\n  if (sentry.acs) {\n    return sentry.acs;\n  }\n\n  // Otherwise, use the default one (stack)\n  return getStackAsyncContextStrategy();\n}\n","import { getAsyncContextStrategy } from './asyncContext';\nimport { getGlobalSingleton, getMainCarrier, getSentryCarrier } from './carrier';\nimport type { Client } from './client';\nimport { Scope } from './scope';\nimport type { TraceContext } from './types/context';\nimport { generateSpanId } from './utils/propagationContext';\n\n/**\n * Register an external propagation context provider function.\n * When registered, trace context will be read from the external source (e.g. OpenTelemetry)\n * instead of from the Sentry scope's propagation context.\n */\nexport function registerExternalPropagationContext(fn: () => { traceId: string; spanId: string } | undefined): void {\n  // Kept on the carrier rather than in module state: bundlers routinely emit more than one copy of\n  // `@sentry/core` (e.g. one per Next.js server chunk), and the copy the integration registers on is\n  // usually not the copy that reads it back when an event is assembled.\n  getSentryCarrier(getMainCarrier()).externalPropagationContextProvider = fn;\n}\n\n/**\n * Get the external propagation context, if a provider has been registered.\n */\nexport function getExternalPropagationContext(): { traceId: string; spanId: string } | undefined {\n  return getSentryCarrier(getMainCarrier()).externalPropagationContextProvider?.();\n}\n\n/**\n * Check if an external propagation context provider has been registered.\n */\nexport function hasExternalPropagationContext(): boolean {\n  return getSentryCarrier(getMainCarrier()).externalPropagationContextProvider !== undefined;\n}\n\n/**\n * Get the currently active scope.\n */\nexport function getCurrentScope(): Scope {\n  const carrier = getMainCarrier();\n  const acs = getAsyncContextStrategy(carrier);\n  return acs.getCurrentScope();\n}\n\n/**\n * Get the currently active isolation scope.\n * The isolation scope is active for the current execution context.\n */\nexport function getIsolationScope(): Scope {\n  const carrier = getMainCarrier();\n  const acs = getAsyncContextStrategy(carrier);\n  return acs.getIsolationScope();\n}\n\n/**\n * Get the global scope.\n * This scope is applied to _all_ events.\n */\nexport function getGlobalScope(): Scope {\n  return getGlobalSingleton('globalScope', () => new Scope());\n}\n\n/**\n * Creates a new scope with and executes the given operation within.\n * The scope is automatically removed once the operation\n * finishes or throws.\n */\nexport function withScope<T>(callback: (scope: Scope) => T): T;\n/**\n * Set the given scope as the active scope in the callback.\n */\nexport function withScope<T>(scope: Scope | undefined, callback: (scope: Scope) => T): T;\n/**\n * Either creates a new active scope, or sets the given scope as active scope in the given callback.\n */\nexport function withScope<T>(\n  ...rest: [callback: (scope: Scope) => T] | [scope: Scope | undefined, callback: (scope: Scope) => T]\n): T {\n  const carrier = getMainCarrier();\n  const acs = getAsyncContextStrategy(carrier);\n\n  // If a scope is defined, we want to make this the active scope instead of the default one\n  if (rest.length === 2) {\n    const [scope, callback] = rest;\n\n    if (!scope) {\n      return acs.withScope(callback);\n    }\n\n    return acs.withSetScope(scope, callback);\n  }\n\n  return acs.withScope(rest[0]);\n}\n\n/**\n * Attempts to fork the current isolation scope and the current scope based on the current async context strategy. If no\n * async context strategy is set, the isolation scope and the current scope will not be forked (this is currently the\n * case, for example, in the browser).\n *\n * Usage of this function in environments without async context strategy is discouraged and may lead to unexpected behaviour.\n *\n * This function is intended for Sentry SDK and SDK integration development. It is not recommended to be used in \"normal\"\n * applications directly because it comes with pitfalls. Use at your own risk!\n */\nexport function withIsolationScope<T>(callback: (isolationScope: Scope) => T): T;\n/**\n * Set the provided isolation scope as active in the given callback. If no\n * async context strategy is set, the isolation scope and the current scope will not be forked (this is currently the\n * case, for example, in the browser).\n *\n * Usage of this function in environments without async context strategy is discouraged and may lead to unexpected behaviour.\n *\n * This function is intended for Sentry SDK and SDK integration development. It is not recommended to be used in \"normal\"\n * applications directly because it comes with pitfalls. Use at your own risk!\n *\n * If you pass in `undefined` as a scope, it will fork a new isolation scope, the same as if no scope is passed.\n */\nexport function withIsolationScope<T>(isolationScope: Scope | undefined, callback: (isolationScope: Scope) => T): T;\n/**\n * Either creates a new active isolation scope, or sets the given isolation scope as active scope in the given callback.\n */\nexport function withIsolationScope<T>(\n  ...rest:\n    | [callback: (isolationScope: Scope) => T]\n    | [isolationScope: Scope | undefined, callback: (isolationScope: Scope) => T]\n): T {\n  const carrier = getMainCarrier();\n  const acs = getAsyncContextStrategy(carrier);\n\n  // If a scope is defined, we want to make this the active scope instead of the default one\n  if (rest.length === 2) {\n    const [isolationScope, callback] = rest;\n\n    if (!isolationScope) {\n      return acs.withIsolationScope(callback);\n    }\n\n    return acs.withSetIsolationScope(isolationScope, callback);\n  }\n\n  return acs.withIsolationScope(rest[0]);\n}\n\n/**\n * Get the currently active client.\n */\nexport function getClient<C extends Client>(): C | undefined {\n  return getCurrentScope().getClient<C>();\n}\n\n/**\n * Get a trace context for the given scope.\n */\nexport function getTraceContextFromScope(scope: Scope): TraceContext {\n  const externalContext = getExternalPropagationContext();\n  if (externalContext) {\n    return { trace_id: externalContext.traceId, span_id: externalContext.spanId };\n  }\n\n  const propagationContext = scope.getPropagationContext();\n\n  const { traceId, parentSpanId, propagationSpanId } = propagationContext;\n\n  const traceContext: TraceContext = {\n    trace_id: traceId,\n    span_id: propagationSpanId || generateSpanId(),\n  };\n\n  if (parentSpanId) {\n    traceContext.parent_span_id = parentSpanId;\n  }\n\n  return traceContext;\n}\n","import type { Client } from '@sentry/core';\nimport { debug, getClient, LRUMap, parseStringToURLObject, safeCallback } from '@sentry/core';\nimport { DEBUG_BUILD } from './debug-build';\nimport { getLocationHref } from './getLocationHref';\n\n/** The parts of a URL a route depends on. A `URL` satisfies it. */\ntype RouteUrl = Pick<URL, 'pathname' | 'search' | 'hash'>;\n\n/**\n * Resolves URLs to low-cardinality route names.\n *\n * Framework SDKs register one so that everything the SDK names after a route (span names, the scope's\n * transaction name, metric and span segment attributes) gets the parameterized route instead of the raw\n * URL, without each integration having to reach into the framework's router itself.\n */\nexport interface RouteProvider {\n  /**\n   * Resolves a URL path template for a specific URL, e.g. `/users/42` -> `/users/:id`.\n   *\n   * Must return a path template, never a route identifier. Routers that name routes independently of\n   * their path (Vue Router's `route.name`, Ember's `posts.show`) have to return the matched path\n   * instead: callers set `url.template` from this, and an identifier is not a template. An SDK that\n   * wants to name its span after the identifier still can, on the span itself.\n   *\n   * Returns `undefined` when the URL matches no known route. Must answer for the URL it is given rather\n   * than for wherever the router currently is, so that callers can resolve a URL they captured earlier\n   * (a web vital reported after a soft navigation, for example).\n   */\n  resolveRoute(url: RouteUrl): string | undefined;\n\n  /**\n   * Resolves the route the app is currently on.\n   *\n   * Routers whose location lives in the address bar can delegate to `resolveRoute`, which is what\n   * {@link createUrlRouteProvider} does. Routers that keep their own location (memory and hash routers)\n   * have to answer from that location instead: for those, `location.href` is the unchanging shell URL\n   * and would bucket every route together.\n   */\n  resolveCurrentRoute(): string | undefined;\n}\n\nconst CLIENT_ROUTE_PROVIDERS = new WeakMap<Client, RouteProvider>();\n\n/**\n * Registers the route provider for a client, replacing any previously registered one. `BrowserClient`\n * calls this with its `routeProvider` option.\n *\n * Prefer the `routeProvider` option where the provider is known at `init`: the pageload span is named\n * while `browserTracingIntegration` sets up, so a provider registered after `init` can only rename it\n * after the fact.\n *\n * A client holds one provider. An app running two routers (a framework migration, or a shell plus an\n * island) registers twice and the last one wins, so the first router's routes stop resolving.\n */\nexport function setRouteProvider(provider: RouteProvider, client: Client | undefined = getClient()): void {\n  if (!client) {\n    DEBUG_BUILD && debug.warn('Cannot set a route provider without a client.');\n    return;\n  }\n\n  if (DEBUG_BUILD && getRouteProvider(client)) {\n    debug.warn(\n      'A route provider is already registered for this client and will be replaced. Routes only the previous provider knows about will no longer resolve.',\n    );\n  }\n\n  CLIENT_ROUTE_PROVIDERS.set(client, provider);\n}\n\n/**\n * Returns the route provider registered for a client.\n */\nexport function getRouteProvider(client: Client | undefined = getClient()): RouteProvider | undefined {\n  return client && CLIENT_ROUTE_PROVIDERS.get(client);\n}\n\n/**\n * Resolves a URL to a low-cardinality route name, e.g. `/users/42` -> `/users/:id`.\n *\n * Returns `undefined` when no route provider is registered or the URL matches no route. Callers pick\n * their own fallback, because the right one differs: a span name falls back to a low-cardinality\n * constant, the scope's transaction name to the raw path.\n */\nexport function resolveRoute(url: string | URL, client: Client | undefined = getClient()): string | undefined {\n  const provider = getRouteProvider(client);\n  if (!provider) {\n    return undefined;\n  }\n\n  const urlObject = typeof url === 'string' ? parseLocation(url) : url;\n  if (!urlObject) {\n    return undefined;\n  }\n\n  return safeCallback(\n    DEBUG_BUILD ? 'Route provider threw while resolving a route:' : '',\n    () => provider.resolveRoute(urlObject) || undefined,\n    () => undefined,\n  );\n}\n\n/**\n * Resolves the route the app is currently on.\n *\n * Returns `undefined` when no route provider is registered or the current location matches no route.\n */\nexport function resolveCurrentRoute(client: Client | undefined = getClient()): string | undefined {\n  const provider = getRouteProvider(client);\n\n  return safeCallback(\n    DEBUG_BUILD ? 'Route provider threw while resolving a route:' : '',\n    () => provider?.resolveCurrentRoute() || undefined,\n    () => undefined,\n  );\n}\n\n/**\n * Builds a {@link RouteProvider} for a router whose location is the browser's, which covers every\n * router except memory and hash routers.\n */\nexport function createUrlRouteProvider(resolveRouteFromUrl: (url: RouteUrl) => string | undefined): RouteProvider {\n  return {\n    resolveRoute: resolveRouteFromUrl,\n    resolveCurrentRoute: () => {\n      const urlObject = parseLocation(getLocationHref());\n\n      return urlObject && resolveRouteFromUrl(urlObject);\n    },\n  };\n}\n\n/**\n * A {@link RouteProvider} that answers from routes it has been told about, rather than by matching.\n */\nexport interface CachedRouteProvider extends RouteProvider {\n  /** Records the route name a router reported for a path. Ignores empty values. */\n  record(pathname: string | undefined, routeName: string | null | undefined): void;\n}\n\n/**\n * Builds a route provider for a router with no usable matcher, which can only report the route it is\n * on as it gets there (SvelteKit's `page.route.id`, Solid Router's current matches).\n *\n * A URL the app has not visited resolves to `undefined`, which includes the first pageload until the\n * router reports. Backed by an LRU so a long-lived app visiting many URLs can't grow it without end,\n * and so routes that keep being resolved outlive ones passed through once.\n */\nexport function createCachedRouteProvider(maxEntries: number = 50): CachedRouteProvider {\n  const routeNames = new LRUMap<string, string>(maxEntries);\n\n  return {\n    ...createUrlRouteProvider(url => routeNames.get(url.pathname)),\n    record(pathname, routeName) {\n      if (pathname && routeName) {\n        routeNames.set(pathname, routeName);\n      }\n    },\n  };\n}\n\n/**\n * Parses up front so providers never have to, and resolves relative locations (which memory routers\n * hand around) against the document.\n */\nfunction parseLocation(url: string): RouteUrl | undefined {\n  // Without a document `getLocationHref()` is empty, which would otherwise parse as `/`.\n  return url ? parseStringToURLObject(url, getLocationHref() || undefined) : undefined;\n}\n","import type { Session, SessionAggregates } from '../types/session';\n\n// By default, we want to infer the IP address, unless this is explicitly set to `null`\n// We do this after all other processing is done\n// If `ip_address` is explicitly set to `null` or a value, we leave it as is\n\n/**\n * @internal\n */\nexport function addAutoIpAddressToSession(session: Session | SessionAggregates): void {\n  if ('aggregates' in session) {\n    if (session.attrs?.['ip_address'] === undefined) {\n      session.attrs = {\n        ...session.attrs,\n        ip_address: '{{auto}}',\n      };\n    }\n  } else {\n    if (session.ipAddress === undefined) {\n      session.ipAddress = '{{auto}}';\n    }\n  }\n}\n","import type { Client } from '../client';\nimport type { Event, EventHint } from '../types/event';\nimport type { Exception } from '../types/exception';\nimport type { Extras } from '../types/extra';\nimport type { Mechanism } from '../types/mechanism';\nimport type { ParameterizedString } from '../types/parameterize';\nimport type { SeverityLevel } from '../types/severity';\nimport type { StackFrame } from '../types/stackframe';\nimport type { StackParser } from '../types/stacktrace';\nimport { isError, isErrorEvent, isParameterizedString, isPlainObject } from './is';\nimport { addExceptionMechanism, addExceptionTypeValue } from './misc';\nimport { normalizeToSize } from './normalize';\nimport { extractExceptionKeysForMessage } from './object';\n\n/**\n * Extracts stack frames from the error.stack string\n */\nexport function parseStackFrames(stackParser: StackParser, error: Error): StackFrame[] {\n  return stackParser(error.stack || '', 1);\n}\n\nfunction hasSentryFetchUrlHost(error: unknown): error is Error & { __sentry_fetch_url_host__: string } {\n  return isError(error) && '__sentry_fetch_url_host__' in error && typeof error.__sentry_fetch_url_host__ === 'string';\n}\n\n/**\n * Enhances the error message with the hostname for better Sentry error reporting.\n * This allows third-party packages to still match on the original error message,\n * while Sentry gets the enhanced version with context.\n *\n * Only used internally\n * @hidden\n */\nexport function _enhanceErrorWithSentryInfo<T extends Error>(error: T): string {\n  // If the error has a __sentry_fetch_url_host__ property (added by fetch instrumentation),\n  // enhance the error message with the hostname.\n  if (hasSentryFetchUrlHost(error)) {\n    return `${error.message} (${error.__sentry_fetch_url_host__})`;\n  }\n\n  return error.message;\n}\n\n/**\n * Extracts stack frames from the error and builds a Sentry Exception\n */\nexport function exceptionFromError(stackParser: StackParser, error: Error): Exception {\n  const exception: Exception = {\n    type: error.name || error.constructor.name,\n    value: _enhanceErrorWithSentryInfo(error),\n  };\n\n  const frames = parseStackFrames(stackParser, error);\n  if (frames.length) {\n    exception.stacktrace = { frames };\n  }\n\n  return exception;\n}\n\n/** If a plain object has a property that is an `Error`, return this error. */\nfunction getErrorPropertyFromObject(obj: Record<string, unknown>): Error | undefined {\n  for (const prop in obj) {\n    if (Object.prototype.hasOwnProperty.call(obj, prop)) {\n      const value = obj[prop];\n      if (isError(value)) {\n        return value;\n      }\n    }\n  }\n\n  return undefined;\n}\n\nfunction getMessageForObject(exception: Record<string, unknown>): string {\n  if ('name' in exception && typeof exception.name === 'string') {\n    let message = `'${exception.name}' captured as exception`;\n\n    if ('message' in exception && typeof exception.message === 'string') {\n      message += ` with message '${exception.message}'`;\n    }\n\n    return message;\n  } else if ('message' in exception && typeof exception.message === 'string') {\n    return exception.message;\n  }\n\n  const keys = extractExceptionKeysForMessage(exception);\n\n  // Some ErrorEvent instances do not have an `error` property, which is why they are not handled before\n  // We still want to try to get a decent message for these cases\n  if (isErrorEvent(exception)) {\n    return `Event \\`ErrorEvent\\` captured as exception with message \\`${exception.message}\\``;\n  }\n\n  const className = getObjectClassName(exception);\n\n  return `${\n    className && className !== 'Object' ? `'${className}'` : 'Object'\n  } captured as exception with keys: ${keys}`;\n}\n\nfunction getObjectClassName(obj: unknown): string | undefined | void {\n  try {\n    const prototype: unknown | null = Object.getPrototypeOf(obj);\n    return prototype ? prototype.constructor.name : undefined;\n  } catch {\n    // ignore errors here\n  }\n}\n\nfunction getException(\n  client: Client,\n  mechanism: Mechanism,\n  exception: unknown,\n  hint?: EventHint,\n): [Error, Extras | undefined] {\n  if (isError(exception)) {\n    return [exception, undefined];\n  }\n\n  // Mutate this!\n  mechanism.synthetic = true;\n\n  if (isPlainObject(exception)) {\n    const normalizeDepth = client?.getOptions().normalizeDepth;\n    const extras = { ['__serialized__']: normalizeToSize(exception, normalizeDepth) };\n\n    const errorFromProp = getErrorPropertyFromObject(exception);\n    if (errorFromProp) {\n      return [errorFromProp, extras];\n    }\n\n    const message = getMessageForObject(exception);\n    const ex = hint?.syntheticException || new Error(message);\n    ex.message = message;\n\n    return [ex, extras];\n  }\n\n  // This handles when someone does: `throw \"something awesome\";`\n  // We use synthesized Error here so we can extract a (rough) stack trace.\n  const ex = hint?.syntheticException || new Error(exception as string);\n  ex.message = `${exception}`;\n\n  return [ex, undefined];\n}\n\n/**\n * Builds and Event from a Exception\n * @hidden\n */\nexport function eventFromUnknownInput(\n  client: Client,\n  stackParser: StackParser,\n  exception: unknown,\n  hint?: EventHint,\n): Event {\n  const providedMechanism: Mechanism | undefined = hint?.data && (hint.data as { mechanism: Mechanism }).mechanism;\n  const mechanism: Mechanism = providedMechanism || {\n    handled: true,\n    type: 'generic',\n  };\n\n  const [ex, extras] = getException(client, mechanism, exception, hint);\n\n  const event: Event = {\n    exception: {\n      values: [exceptionFromError(stackParser, ex)],\n    },\n  };\n\n  if (extras) {\n    event.extra = extras;\n  }\n\n  addExceptionTypeValue(event, undefined, undefined);\n  addExceptionMechanism(event, mechanism);\n\n  return {\n    ...event,\n    event_id: hint?.event_id,\n  };\n}\n\n/**\n * Builds and Event from a Message\n * @hidden\n */\nexport function eventFromMessage(\n  stackParser: StackParser,\n  message: ParameterizedString,\n  level: SeverityLevel = 'info',\n  hint?: EventHint,\n  attachStacktrace?: boolean,\n): Event {\n  const event: Event = {\n    event_id: hint?.event_id,\n    level,\n  };\n\n  if (attachStacktrace && hint?.syntheticException) {\n    const frames = parseStackFrames(stackParser, hint.syntheticException);\n    if (frames.length) {\n      event.exception = {\n        values: [\n          {\n            value: message,\n            stacktrace: { frames },\n          },\n        ],\n      };\n      addExceptionMechanism(event, { synthetic: true });\n    }\n  }\n\n  if (isParameterizedString(message)) {\n    const { __sentry_template_string__, __sentry_template_values__ } = message;\n\n    event.logentry = {\n      message: __sentry_template_string__,\n      params: __sentry_template_values__,\n    };\n    return event;\n  }\n\n  event.message = message;\n  return event;\n}\n","import type {\n  Event,\n  EventHint,\n  Exception,\n  ParameterizedString,\n  SeverityLevel,\n  StackFrame,\n  StackParser,\n} from '@sentry/core';\nimport {\n  _INTERNAL_enhanceErrorWithSentryInfo,\n  addExceptionMechanism,\n  addExceptionTypeValue,\n  extractExceptionKeysForMessage,\n  getClient,\n  isDOMError,\n  isDOMException,\n  isError,\n  isErrorEvent,\n  isEvent,\n  isParameterizedString,\n  isPlainObject,\n  normalizeToSize,\n  resolvedSyncPromise,\n} from '@sentry/core';\n\ntype Prototype = { constructor: (...args: unknown[]) => unknown };\n\n/**\n * This function creates an exception from a JavaScript Error\n */\nexport function exceptionFromError(stackParser: StackParser, ex: Error): Exception {\n  // Get the frames first since Opera can lose the stack if we touch anything else first\n  const frames = parseStackFrames(stackParser, ex);\n\n  const exception: Exception = {\n    type: extractType(ex),\n    value: extractMessage(ex),\n  };\n\n  if (frames.length) {\n    exception.stacktrace = { frames };\n  }\n\n  if (exception.type === undefined && exception.value === '') {\n    exception.value = 'Unrecoverable error caught';\n  }\n\n  return exception;\n}\n\nfunction eventFromPlainObject(\n  stackParser: StackParser,\n  exception: Record<string, unknown>,\n  syntheticException?: Error,\n  isUnhandledRejection?: boolean,\n): Event {\n  const client = getClient();\n  const normalizeDepth = client?.getOptions().normalizeDepth;\n\n  // If we can, we extract an exception from the object properties\n  const errorFromProp = getErrorPropertyFromObject(exception);\n\n  const extra = {\n    __serialized__: normalizeToSize(exception, normalizeDepth),\n  };\n\n  if (errorFromProp) {\n    return {\n      exception: {\n        values: [exceptionFromError(stackParser, errorFromProp)],\n      },\n      extra,\n    };\n  }\n\n  const exceptionValue: Exception = {\n    type: isEvent(exception) ? exception.constructor.name : isUnhandledRejection ? 'UnhandledRejection' : 'Error',\n    value: getNonErrorObjectExceptionValue(exception, { isUnhandledRejection }),\n  };\n\n  const event = {\n    exception: {\n      values: [exceptionValue],\n    },\n    extra,\n  } satisfies Event;\n\n  if (syntheticException) {\n    const frames = parseStackFrames(stackParser, syntheticException);\n    if (frames.length) {\n      // event.exception.values[0] has been set above\n      // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n      event.exception.values[0]!.stacktrace = { frames };\n    }\n  }\n\n  return event;\n}\n\nfunction eventFromError(stackParser: StackParser, ex: Error): Event {\n  return {\n    exception: {\n      values: [exceptionFromError(stackParser, ex)],\n    },\n  };\n}\n\n/** Parses stack frames from an error */\nfunction parseStackFrames(\n  stackParser: StackParser,\n  ex: Error & { framesToPop?: number; stacktrace?: string },\n): StackFrame[] {\n  // Access and store the stacktrace property before doing ANYTHING\n  // else to it because Opera is not very good at providing it\n  // reliably in other circumstances.\n  const stacktrace = ex.stacktrace || ex.stack || '';\n\n  const skipLines = getSkipFirstStackStringLines(ex);\n  const framesToPop = getPopFirstTopFrames(ex);\n\n  try {\n    return stackParser(stacktrace, skipLines, framesToPop);\n  } catch {\n    // no-empty\n  }\n\n  return [];\n}\n\n// Based on our own mapping pattern - https://github.com/getsentry/sentry/blob/9f08305e09866c8bd6d0c24f5b0aabdd7dd6c59c/src/sentry/lang/javascript/errormapping.py#L83-L108\nconst reactMinifiedRegexp = /Minified React error #\\d+;/i;\n\n/**\n * Certain known React errors contain links that would be falsely\n * parsed as frames. This function check for these errors and\n * returns number of the stack string lines to skip.\n */\nfunction getSkipFirstStackStringLines(ex: Error): number {\n  if (ex && reactMinifiedRegexp.test(ex.message)) {\n    return 1;\n  }\n\n  return 0;\n}\n\n/**\n * If error has `framesToPop` property, it means that the\n * creator tells us the first x frames will be useless\n * and should be discarded. Typically error from wrapper function\n * which don't point to the actual location in the developer's code.\n *\n * Example: https://github.com/zertosh/invariant/blob/master/invariant.js#L46\n */\nfunction getPopFirstTopFrames(ex: Error & { framesToPop?: unknown }): number {\n  if (typeof ex.framesToPop === 'number') {\n    return ex.framesToPop;\n  }\n\n  return 0;\n}\n\n// https://developer.mozilla.org/en-US/docs/WebAssembly/JavaScript_interface/Exception\nfunction isWebAssemblyException(exception: unknown): exception is WebAssembly.Exception {\n  // Check for support\n  // oxlint-disable-next-line typescript/prefer-optional-chain\n  if (typeof WebAssembly !== 'undefined' && typeof WebAssembly.Exception !== 'undefined') {\n    return exception instanceof WebAssembly.Exception;\n  } else {\n    return false;\n  }\n}\n\n/**\n * Extracts from errors what we use as the exception `type` in error events.\n *\n * Usually, this is the `name` property on Error objects but WASM errors need to be treated differently.\n */\nexport function extractType(ex: Error & { message: { error?: Error } }): string | undefined {\n  const name = ex?.name;\n\n  // The name for WebAssembly.Exception Errors needs to be extracted differently.\n  // Context: https://github.com/getsentry/sentry-javascript/issues/13787\n  if (!name && isWebAssemblyException(ex)) {\n    // Emscripten sets array[type, message] to the \"message\" property on the WebAssembly.Exception object\n    const hasTypeInMessage = ex.message && Array.isArray(ex.message) && ex.message.length == 2;\n    return hasTypeInMessage ? ex.message[0] : 'WebAssembly.Exception';\n  }\n\n  return name;\n}\n\n/**\n * There are cases where stacktrace.message is an Event object\n * https://github.com/getsentry/sentry-javascript/issues/1949\n * In this specific case we try to extract stacktrace.message.error.message\n */\nexport function extractMessage(ex: Error & { message: { error?: Error } }): string {\n  const message = ex?.message;\n\n  if (isWebAssemblyException(ex)) {\n    // For Node 18, Emscripten sets array[type, message] to the \"message\" property on the WebAssembly.Exception object\n    if (Array.isArray(ex.message) && ex.message.length == 2) {\n      return ex.message[1];\n    }\n    return 'wasm exception';\n  }\n\n  if (!message) {\n    return 'No error message';\n  }\n\n  if (message.error && typeof message.error.message === 'string') {\n    return _INTERNAL_enhanceErrorWithSentryInfo(message.error);\n  }\n\n  return _INTERNAL_enhanceErrorWithSentryInfo(ex);\n}\n\n/**\n * Creates an {@link Event} from all inputs to `captureException` and non-primitive inputs to `captureMessage`.\n * @hidden\n */\nexport function eventFromException(\n  stackParser: StackParser,\n  exception: unknown,\n  hint?: EventHint,\n  attachStacktrace?: boolean,\n): PromiseLike<Event> {\n  const syntheticException = hint?.syntheticException || undefined;\n  const event = eventFromUnknownInput(stackParser, exception, syntheticException, attachStacktrace);\n  addExceptionMechanism(event); // defaults to { type: 'generic', handled: true }\n  event.level = 'error';\n  if (hint?.event_id) {\n    event.event_id = hint.event_id;\n  }\n  return resolvedSyncPromise(event);\n}\n\n/**\n * Builds and Event from a Message\n * @hidden\n */\nexport function eventFromMessage(\n  stackParser: StackParser,\n  message: ParameterizedString,\n  level: SeverityLevel = 'info',\n  hint?: EventHint,\n  attachStacktrace?: boolean,\n): PromiseLike<Event> {\n  const syntheticException = hint?.syntheticException || undefined;\n  const event = eventFromString(stackParser, message, syntheticException, attachStacktrace);\n  event.level = level;\n  if (hint?.event_id) {\n    event.event_id = hint.event_id;\n  }\n  return resolvedSyncPromise(event);\n}\n\n/**\n * @hidden\n */\nexport function eventFromUnknownInput(\n  stackParser: StackParser,\n  exception: unknown,\n  syntheticException?: Error,\n  attachStacktrace?: boolean,\n  isUnhandledRejection?: boolean,\n): Event {\n  let event: Event;\n\n  if (isErrorEvent(exception) && (exception as ErrorEvent).error) {\n    // If it is an ErrorEvent with `error` property, extract it to get actual Error\n    const errorEvent = exception as ErrorEvent;\n    return eventFromError(stackParser, errorEvent.error as Error);\n  }\n\n  // If it is a `DOMError` (which is a legacy API, but still supported in some browsers) then we just extract the name\n  // and message, as it doesn't provide anything else. According to the spec, all `DOMExceptions` should also be\n  // `Error`s, but that's not the case in IE11, so in that case we treat it the same as we do a `DOMError`.\n  //\n  // https://developer.mozilla.org/en-US/docs/Web/API/DOMError\n  // https://developer.mozilla.org/en-US/docs/Web/API/DOMException\n  // https://webidl.spec.whatwg.org/#es-DOMException-specialness\n  if (isDOMError(exception) || isDOMException(exception)) {\n    const domException = exception as DOMException;\n\n    if ('stack' in (exception as Error)) {\n      event = eventFromError(stackParser, exception as Error);\n\n      const firstException = event.exception?.values?.[0];\n      if (attachStacktrace && syntheticException && firstException && !firstException.stacktrace) {\n        const frames = parseStackFrames(stackParser, syntheticException);\n        if (frames.length) {\n          firstException.stacktrace = { frames };\n          addExceptionMechanism(event, { synthetic: true });\n        }\n      }\n    } else {\n      const name = domException.name || (isDOMError(domException) ? 'DOMError' : 'DOMException');\n      const message = domException.message ? `${name}: ${domException.message}` : name;\n      event = eventFromString(stackParser, message, syntheticException, attachStacktrace);\n      addExceptionTypeValue(event, message);\n    }\n\n    return event;\n  }\n  if (isError(exception)) {\n    // we have a real Error object, do nothing\n    return eventFromError(stackParser, exception);\n  }\n  if (isPlainObject(exception) || isEvent(exception)) {\n    // If it's a plain object or an instance of `Event` (the built-in JS kind, not this SDK's `Event` type), serialize\n    // it manually. This will allow us to group events based on top-level keys which is much better than creating a new\n    // group on any key/value change.\n    const objectException = exception;\n    event = eventFromPlainObject(stackParser, objectException, syntheticException, isUnhandledRejection);\n    addExceptionMechanism(event, {\n      synthetic: true,\n    });\n    return event;\n  }\n\n  // If none of previous checks were valid, then it means that it's not:\n  // - an instance of DOMError\n  // - an instance of DOMException\n  // - an instance of Event\n  // - an instance of Error\n  // - a valid ErrorEvent (one with an error property)\n  // - a plain Object\n  //\n  // So bail out and capture it as a simple message:\n  const stringifiedException = String(exception);\n  event = eventFromString(stackParser, stringifiedException, syntheticException, attachStacktrace);\n  addExceptionTypeValue(event, stringifiedException, undefined);\n  addExceptionMechanism(event, {\n    synthetic: true,\n  });\n\n  return event;\n}\n\nfunction eventFromString(\n  stackParser: StackParser,\n  message: ParameterizedString,\n  syntheticException?: Error,\n  attachStacktrace?: boolean,\n): Event {\n  const event: Event = {};\n\n  if (attachStacktrace && syntheticException) {\n    const frames = parseStackFrames(stackParser, syntheticException);\n    if (frames.length) {\n      event.exception = {\n        values: [{ value: message, stacktrace: { frames } }],\n      };\n    }\n    addExceptionMechanism(event, { synthetic: true });\n  }\n\n  if (isParameterizedString(message)) {\n    const { __sentry_template_string__, __sentry_template_values__ } = message;\n\n    event.logentry = {\n      message: __sentry_template_string__,\n      params: __sentry_template_values__,\n    };\n    return event;\n  }\n\n  event.message = message;\n  return event;\n}\n\nfunction getNonErrorObjectExceptionValue(\n  exception: Record<string, unknown>,\n  { isUnhandledRejection }: { isUnhandledRejection?: boolean },\n): string {\n  const keys = extractExceptionKeysForMessage(exception);\n  const captureType = isUnhandledRejection ? 'promise rejection' : 'exception';\n\n  // Some ErrorEvent instances do not have an `error` property, which is why they are not handled before\n  // We still want to try to get a decent message for these cases\n  if (isErrorEvent(exception)) {\n    return `Event \\`ErrorEvent\\` captured as ${captureType} with message \\`${exception.message}\\``;\n  }\n\n  if (isEvent(exception)) {\n    const className = getObjectClassName(exception);\n    return `Event \\`${className}\\` (type=${exception.type}) captured as ${captureType}`;\n  }\n\n  return `Object captured as ${captureType} with keys: ${keys}`;\n}\n\nfunction getObjectClassName(obj: unknown): string | undefined | void {\n  try {\n    const prototype: Prototype | null = Object.getPrototypeOf(obj);\n    return prototype ? prototype.constructor.name : undefined;\n  } catch {\n    // ignore errors here\n  }\n}\n\n/** If a plain object has a property that is an `Error`, return this error. */\nfunction getErrorPropertyFromObject(obj: Record<string, unknown>): Error | undefined {\n  return Object.values(obj).find(isError);\n}\n","import type {\n  ClientOptions,\n  Event,\n  EventHint,\n  Options as CoreOptions,\n  ParameterizedString,\n  Scope,\n  SeverityLevel,\n} from '@sentry/core';\nimport type { BrowserClientReplayOptions } from '@sentry/core/browser';\nimport type { RouteProvider } from '@sentry/browser-utils';\nimport { setRouteProvider } from '@sentry/browser-utils';\nimport { addAutoIpAddressToSession, applySdkMetadata, Client, getSDKSource } from '@sentry/core';\nimport { eventFromException, eventFromMessage } from './eventbuilder';\nimport { WINDOW } from './helpers';\nimport type { BrowserTransportOptions } from './transports/types';\n\n/**\n * A magic string that build tooling can leverage in order to inject a release value into the SDK.\n */\ndeclare const __SENTRY_RELEASE__: string | undefined;\n\nexport type BrowserClientProfilingOptions = {\n  /**\n   * Sets profiling session sample rate for the entire profiling session.\n   *\n   * A profiling session corresponds to a user session, meaning it is set once at integration initialization and\n   * persisted until the next page reload. This rate determines what percentage of user sessions will have profiling enabled.\n   * @default 0\n   */\n  profileSessionSampleRate?: number;\n\n  /**\n   * Set the lifecycle mode of the profiler.\n   * - **manual**: The profiler will be manually started and stopped via `startProfiler`/`stopProfiler`.\n   *    If a session is sampled, is dependent on the `profileSessionSampleRate`.\n   * - **trace**: The profiler will be automatically started when a root span exists and stopped when there are no\n   *    more sampled root spans. Whether a session is sampled, is dependent on the `profileSessionSampleRate` and the\n   *    existing sampling configuration for tracing (`tracesSampleRate`/`tracesSampler`).\n   *\n   * @default 'manual'\n   */\n  profileLifecycle?: 'manual' | 'trace';\n};\n\ntype BrowserSpecificOptions = BrowserClientReplayOptions &\n  BrowserClientProfilingOptions & {\n    /** If configured, this URL will be used as base URL for lazy loading integration. */\n    cdnBaseUrl?: string;\n\n    /**\n     * Important: Only set this option if you know what you are doing!\n     *\n     * By default, the SDK will check if `Sentry.init` is called in a browser extension.\n     * In case it is, it will stop initialization and log a warning\n     * because browser extensions require a different Sentry initialization process:\n     * https://docs.sentry.io/platforms/javascript/best-practices/shared-environments/\n     *\n     * Setting up the SDK in a browser extension with global error monitoring is not recommended\n     * and will likely flood you with errors from other web sites or extensions. This can heavily\n     * impact your quota and cause interference with your and other Sentry SDKs in shared environments.\n     *\n     * If this check wrongfully flags your setup as a browser extension, you can set this\n     * option to `true` to skip the check.\n     *\n     * @default false\n     */\n    skipBrowserExtensionCheck?: boolean;\n\n    /**\n     * If you use Spotlight by Sentry during development, use\n     * this option to forward captured Sentry events to Spotlight.\n     *\n     * Either set it to true, or provide a specific Spotlight Sidecar URL.\n     *\n     * More details: https://spotlightjs.com/\n     *\n     * IMPORTANT: Only set this option to `true` while developing, not in production!\n     */\n    spotlight?: boolean | string;\n\n    /**\n     * Resolves URLs to low-cardinality route names, e.g. `/users/42` -> `/users/:id`.\n     *\n     * Framework SDKs set this for you. Set it yourself to name routes for a router the SDK has no\n     * integration for. `setRouteProvider` replaces it at runtime.\n     */\n    routeProvider?: RouteProvider;\n  };\n/**\n * Configuration options for the Sentry Browser SDK.\n * @see @sentry/core Options for more information.\n */\nexport type BrowserOptions = CoreOptions<BrowserTransportOptions> & BrowserSpecificOptions;\n\n/**\n * Configuration options for the Sentry Browser SDK Client class\n * @see BrowserClient for more information.\n */\nexport type BrowserClientOptions = ClientOptions<BrowserTransportOptions> & BrowserSpecificOptions;\n\n/**\n * The Sentry Browser SDK Client.\n *\n * @see BrowserOptions for documentation on configuration options.\n * @see SentryClient for usage documentation.\n */\nexport class BrowserClient extends Client<BrowserClientOptions> {\n  /**\n   * Creates a new Browser SDK instance.\n   *\n   * @param options Configuration options for this SDK.\n   */\n  public constructor(options: BrowserClientOptions) {\n    const opts = applyDefaultOptions(options);\n    const sdkSource = WINDOW.SENTRY_SDK_SOURCE || getSDKSource();\n    applySdkMetadata(opts, 'browser', ['browser'], sdkSource);\n\n    super(opts);\n\n    if (opts.routeProvider) {\n      setRouteProvider(opts.routeProvider, this);\n    }\n\n    // Unhandled errors don't actually crash the browser, so we report `unhandled` rather than `crashed`.\n    this._unhandledSessionStatus = 'unhandled';\n\n    const { userInfo } = this.getDataCollectionOptions();\n\n    if (opts._metadata?.sdk) {\n      opts._metadata.sdk.settings = {\n        // Only allow IP inferral by Relay if the user opted in via dataCollection\n        infer_ip: userInfo ? 'auto' : 'never',\n        // purposefully allowing already passed settings to override the default\n        ...opts._metadata.sdk.settings,\n      };\n    }\n\n    const { sendClientReports } = this._options;\n\n    // Flush buffered data when the page becomes hidden (e.g. tab switch, navigation, or the page\n    // being discarded). `flush()` emits the `flush` hook, which drains the span (streaming), log and\n    // metric buffers and hands the resulting envelopes to the transport (which uses `keepalive`).\n    // Client report outcomes don't listen to the `flush` hook, so we flush them separately.\n    if (WINDOW.document) {\n      WINDOW.document.addEventListener('visibilitychange', () => {\n        if (WINDOW.document.visibilityState === 'hidden') {\n          if (sendClientReports) {\n            this._flushOutcomes();\n          }\n          // Defer the flush to a microtask so that visibilitychange listeners registered after this\n          // one have already run. In particular, browser tracing's background-tab detection ends the\n          // active pageload/navigation (segment) span when the page is hidden. Deferring ensures that\n          // segment span has been added to the streaming buffer before we flush, so it is sent\n          // together with its child spans instead of being orphaned.\n          queueMicrotask(() => {\n            void this.flush();\n          });\n        }\n      });\n    }\n\n    if (userInfo) {\n      this.on('beforeSendSession', addAutoIpAddressToSession);\n    }\n  }\n\n  /**\n   * @inheritDoc\n   */\n  public eventFromException(exception: unknown, hint?: EventHint): PromiseLike<Event> {\n    return eventFromException(this._options.stackParser, exception, hint, this._options.attachStacktrace);\n  }\n\n  /**\n   * @inheritDoc\n   */\n  public eventFromMessage(\n    message: ParameterizedString,\n    level: SeverityLevel = 'info',\n    hint?: EventHint,\n  ): PromiseLike<Event> {\n    return eventFromMessage(this._options.stackParser, message, level, hint, this._options.attachStacktrace);\n  }\n\n  /**\n   * @inheritDoc\n   */\n  protected _prepareEvent(\n    event: Event,\n    hint: EventHint,\n    currentScope: Scope,\n    isolationScope: Scope,\n  ): PromiseLike<Event | null> {\n    event.platform = event.platform || 'javascript';\n\n    return super._prepareEvent(event, hint, currentScope, isolationScope);\n  }\n}\n\n/** Exported only for tests. */\nexport function applyDefaultOptions<T extends Partial<BrowserClientOptions>>(optionsArg: T): T {\n  return {\n    release:\n      typeof __SENTRY_RELEASE__ === 'string' // This allows build tooling to find-and-replace __SENTRY_RELEASE__ to inject a release value\n        ? __SENTRY_RELEASE__\n        : WINDOW.SENTRY_RELEASE?.id, // This supports the variable that sentry-webpack-plugin injects\n    sendClientReports: true,\n    // We default this to true, as it is the safer scenario\n    parentSpanIsAlwaysRootSpan: true,\n    ...optionsArg,\n  };\n}\n","import type { CoreOptions } from '../types/options';\nimport { SDK_VERSION } from '../utils/version';\n\n/**\n * A builder for the SDK metadata in the options for the SDK initialization.\n *\n * Note: This function is identical to `buildMetadata` in Remix and NextJS and SvelteKit.\n * We don't extract it for bundle size reasons.\n * @see https://github.com/getsentry/sentry-javascript/pull/7404\n * @see https://github.com/getsentry/sentry-javascript/pull/4196\n *\n * If you make changes to this function consider updating the others as well.\n *\n * @param options SDK options object that gets mutated\n * @param names list of package names\n */\nexport function applySdkMetadata(options: CoreOptions, name: string, names = [name], source = 'npm'): void {\n  const sdk = ((options._metadata = options._metadata || {}).sdk = options._metadata.sdk || {});\n\n  if (!sdk.name) {\n    sdk.name = `sentry.javascript.${name}`;\n    sdk.packages = names.map(name => ({\n      name: `${source}:@sentry/${name}`,\n      version: SDK_VERSION,\n    }));\n    sdk.version = SDK_VERSION;\n  }\n}\n","/*\n * This module exists for optimizations in the build process through rollup and terser.  We define some global\n * constants, which can be overridden during build. By guarding certain pieces of code with functions that return these\n * constants, we can control whether or not they appear in the final bundle. (Any code guarded by a false condition will\n * never run, and will hence be dropped during treeshaking.) The two primary uses for this are stripping out calls to\n * `debug` and preventing node-related code from appearing in browser bundles.\n *\n * Attention:\n * This file should not be used to define constants/flags that are intended to be used for tree-shaking conducted by\n * users. These flags should live in their respective packages, as we identified user tooling (specifically webpack)\n * having issues tree-shaking these constants across package boundaries.\n * An example for this is the __SENTRY_DEBUG__ constant. It is declared in each package individually because we want\n * users to be able to shake away expressions that it guards.\n */\n\ndeclare const __SENTRY_BROWSER_BUNDLE__: boolean | undefined;\n\nexport type SdkSource = 'npm' | 'cdn' | 'loader' | 'aws-lambda-layer';\n\n/**\n * Figures out if we're building a browser bundle.\n *\n * @returns true if this is a browser bundle build.\n */\nexport function isBrowserBundle(): boolean {\n  return typeof __SENTRY_BROWSER_BUNDLE__ !== 'undefined' && !!__SENTRY_BROWSER_BUNDLE__;\n}\n\n/**\n * Get source of SDK.\n */\nexport function getSDKSource(): SdkSource {\n  // The `/*! ... */` marker is replaced by our CDN bundle build step with `return 'cdn';`.\n  // It uses the `/*!` legal-comment syntax specifically so it survives esbuild's transpile\n  // (which strips ordinary `/* ... */` block comments).\n  /*! __SENTRY_SDK_SOURCE__ */ return 'npm';\n}\n","/*\n * Portions of this file are derived from Google's web-vitals library.\n *\n * Copyright 2020-2024 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { WINDOW } from '../types';\n\n/**\n * web-vitals 5.1.0 switched listeners to be added on the window rather than the document.\n * Instead of having to check for window/document every time we add a listener, we can use this function.\n */\nexport function addPageListener(type: string, listener: EventListener, options?: boolean | AddEventListenerOptions) {\n  if (WINDOW.document) {\n    WINDOW.addEventListener(type, listener, options);\n  }\n}\n\n/**\n * web-vitals 5.1.0 switched listeners to be removed from the window rather than the document.\n * Instead of having to check for window/document every time we remove a listener, we can use this function.\n */\nexport function removePageListener(type: string, listener: EventListener, options?: boolean | AddEventListenerOptions) {\n  if (WINDOW.document) {\n    WINDOW.removeEventListener(type, listener, options);\n  }\n}\n\n// sentry-specific change:\n// add optional param to not check for responseStart (see comment below)\nexport const getNavigationEntry = (checkResponseStart = true): PerformanceNavigationTiming | void => {\n  const navigationEntry = WINDOW.performance?.getEntriesByType?.('navigation')[0];\n  // Check to ensure the `responseStart` property is present and valid.\n  // In some cases a zero value is reported by the browser (for\n  // privacy/security reasons), and in other cases (bugs) the value is\n  // negative or is larger than the current page time. Ignore these cases:\n  // - https://github.com/GoogleChrome/web-vitals/issues/137\n  // - https://github.com/GoogleChrome/web-vitals/issues/162\n  // - https://github.com/GoogleChrome/web-vitals/issues/275\n  if (\n    // sentry-specific change:\n    // We don't want to check for responseStart for our own use of `getNavigationEntry`\n    !checkResponseStart ||\n    (navigationEntry && navigationEntry.responseStart > 0 && navigationEntry.responseStart < performance.now())\n  ) {\n    return navigationEntry;\n  }\n};\n\nexport const getActivationStart = (): number => {\n  const navEntry = getNavigationEntry();\n  return navEntry?.activationStart ?? 0;\n};\n\nexport interface OnHiddenCallback {\n  (event: Event): void;\n}\n\nexport const onHidden = (cb: OnHiddenCallback) => {\n  const onHiddenCallback = (event: Event) => {\n    if (WINDOW.document?.visibilityState === 'hidden') {\n      cb(event);\n    }\n  };\n\n  addPageListener('visibilitychange', onHiddenCallback, { capture: true });\n};\n\nlet firstHiddenTime = -1;\nconst onHiddenFunctions: Set<() => void> = new Set();\n\nconst initHiddenTime = () => {\n  // If the document is hidden when this code runs, assume it was always\n  // hidden and the page was loaded in the background, with the one exception\n  // that visibility state is always 'hidden' during prerendering, so we have\n  // to ignore that case until prerendering finishes (see: `prerenderingchange`\n  // event logic below).\n  return WINDOW.document?.visibilityState === 'hidden' && !WINDOW.document?.prerendering ? 0 : Infinity;\n};\n\nconst onVisibilityUpdate = (event: Event) => {\n  // Handle changes to hidden state\n  if (WINDOW.document?.visibilityState === 'hidden' && firstHiddenTime > -1) {\n    // Call onHidden callbacks when the page becomes hidden\n    if (event.type === 'visibilitychange') {\n      for (const onHiddenFunction of onHiddenFunctions) {\n        onHiddenFunction();\n      }\n    }\n\n    // If the document is 'hidden' and no previous hidden timestamp has been\n    // set (so is infinity), update it based on the current event data.\n    if (!isFinite(firstHiddenTime)) {\n      // If the event is a 'visibilitychange' event, it means the page was\n      // visible prior to this change, so the event timestamp is the first\n      // hidden time.\n      // However, if the event is not a 'visibilitychange' event, then it must\n      // be a 'prerenderingchange' event, and the fact that the document is\n      // still 'hidden' from the above check means the tab was activated\n      // in a background state and so has always been hidden.\n      firstHiddenTime = event.type === 'visibilitychange' ? event.timeStamp : 0;\n\n      // We no longer need the `prerenderingchange` event listener now we've\n      // set an initial init time so remove that\n      // (we'll keep the visibilitychange one for onHiddenFunction above)\n      removePageListener('prerenderingchange', onVisibilityUpdate, true);\n    }\n  }\n};\n\nexport const getVisibilityWatcher = () => {\n  if (WINDOW.document && firstHiddenTime < 0) {\n    // Check if we have a previous hidden `visibility-state` performance entry.\n    const activationStart = getActivationStart();\n    const firstVisibilityStateHiddenTime = !WINDOW.document.prerendering\n      ? globalThis.performance\n          .getEntriesByType('visibility-state')\n          .filter(e => e.name === 'hidden' && e.startTime > activationStart)[0]?.startTime\n      : undefined;\n\n    // Prefer that, but if it's not available and the document is hidden when\n    // this code runs, assume it was hidden since navigation start. This isn't\n    // a perfect heuristic, but it's the best we can do until the\n    // `visibility-state` performance entry becomes available in all browsers.\n    firstHiddenTime = firstVisibilityStateHiddenTime ?? initHiddenTime();\n    // Listen for visibility changes so we can handle things like bfcache\n    // restores and/or prerender without having to examine individual\n    // timestamps in detail and also for onHidden function calls.\n    addPageListener('visibilitychange', onVisibilityUpdate, true);\n\n    // IMPORTANT: when a page is prerendering, its `visibilityState` is\n    // 'hidden', so in order to account for cases where this module checks for\n    // visibility during prerendering, an additional check after prerendering\n    // completes is also required.\n    addPageListener('prerenderingchange', onVisibilityUpdate, true);\n  }\n\n  return {\n    get firstHiddenTime() {\n      return firstHiddenTime;\n    },\n    onHidden(cb: () => void) {\n      onHiddenFunctions.add(cb);\n    },\n  };\n};\n\n/**\n * Runs the passed callback during the next idle period, or immediately\n * if the browser's visibility state is (or becomes) hidden.\n */\nexport const whenIdleOrHidden = (cb: () => void) => {\n  const rIC = WINDOW.requestIdleCallback || WINDOW.setTimeout;\n\n  // If the document is hidden, run the callback immediately, otherwise\n  // race an idle callback with the next `visibilitychange` event.\n  if (WINDOW.document?.visibilityState === 'hidden') {\n    cb();\n  } else {\n    // Ensure the callback only runs once, whichever of the two racers wins.\n    let called = false;\n    const runOnce = () => {\n      if (!called) {\n        cb();\n        called = true;\n      }\n    };\n    addPageListener('visibilitychange', runOnce, { once: true, capture: true });\n    rIC(() => {\n      runOnce();\n      // Remove the above event listener since no longer required.\n      // See: https://github.com/GoogleChrome/web-vitals/issues/622\n      removePageListener('visibilitychange', runOnce, { capture: true });\n    });\n  }\n};\n","import { captureSession, debug, defineIntegration, getIsolationScope, startSession } from '@sentry/core';\nimport { addHistoryInstrumentationHandler, whenIdleOrHidden } from '@sentry/browser-utils';\nimport { DEBUG_BUILD } from '../debug-build';\nimport { WINDOW } from '../helpers';\n\ninterface BrowserSessionOptions {\n  /**\n   * Controls the session lifecycle - when new sessions are created.\n   *\n   * - `'page'`: A session is created once when the page is loaded. Session is not\n   *   updated on navigation. This is the default behavior.\n   * - `'route'`: A session is created on page load and on every navigation.\n   *\n   * @default 'page'\n   */\n  lifecycle?: 'route' | 'page';\n}\n\n/**\n * When added, automatically creates sessions which allow you to track adoption and crashes (crash free rate) in your Releases in Sentry.\n * More information: https://docs.sentry.io/product/releases/health/\n *\n * Note: In order for session tracking to work, you need to set up Releases: https://docs.sentry.io/product/releases/\n */\nexport const browserSessionIntegration = defineIntegration((options: BrowserSessionOptions = {}) => {\n  const lifecycle = options.lifecycle ?? 'page';\n\n  return {\n    name: 'BrowserSession' as const,\n    setupOnce() {\n      if (typeof WINDOW.document === 'undefined') {\n        DEBUG_BUILD &&\n          debug.warn('Using the `browserSessionIntegration` in non-browser environments is not supported.');\n        return;\n      }\n\n      // The session duration for browser sessions does not track a meaningful\n      // concept that can be used as a metric.\n      // Automatically captured sessions are akin to page views, and thus we\n      // discard their duration.\n      startSession({ ignoreDuration: true });\n\n      // Sending the session envelope synchronously in `init()` runs the full send\n      // pipeline during page load, competing with critical resources for the network and\n      // adding overhead that measurably hurts LCP. We defer the initial send until the\n      // browser is idle; `whenIdleOrHidden` flushes it on page-hide so we don't lose short\n      // (page-view-like) sessions.\n      let initialSessionSent = false;\n      whenIdleOrHidden(() => {\n        // A navigation (in `'route'` lifecycle) may start and send a new session before this\n        // deferred callback fires. In that case the current session was already sent, so\n        // re-capturing here would send it a second time - guard against that.\n        if (!initialSessionSent) {\n          captureSession();\n          initialSessionSent = true;\n        }\n      });\n\n      // User data can be set at any time, for example async after Sentry.init has run and the initial session\n      // envelope was already sent, but still on the initial page.\n      // Therefore, we have to update the ongoing session with the new user data if it exists, to send the `did`.\n      // In theory, sessions, as well as user data is always put onto the isolation scope. So we listen to the\n      // isolation scope for changes and update the session with the new user data if it exists.\n      // This will not catch users set onto other scopes, like the current scope. For now, we'll accept this limitation.\n      // The alternative is to update and capture the session from within the scope. This could be too costly or would not\n      // play well with session aggregates on the server side. Since this happens in the scope class, we'd need change\n      // scope behaviour in the browser.\n      const isolationScope = getIsolationScope();\n      let previousUser = isolationScope.getUser();\n      isolationScope.addScopeListener(scope => {\n        const maybeNewUser = scope.getUser();\n        // sessions only care about user id and ip address, so we only need to capture the session if the user has changed\n        if (previousUser?.id !== maybeNewUser?.id || previousUser?.ip_address !== maybeNewUser?.ip_address) {\n          previousUser = maybeNewUser;\n          // Only emit a dedicated update envelope for user data that arrives _after_ the\n          // deferred initial session was sent. User data set during page load is already\n          // reflected in that session (the scope writes it onto the session), so capturing\n          // here would send a redundant envelope - and do so during page load, which is\n          // exactly the overhead we're deferring away from.\n          if (initialSessionSent) {\n            captureSession();\n          }\n        }\n      });\n\n      if (lifecycle === 'route') {\n        // We want to create a session for every navigation as well\n        addHistoryInstrumentationHandler(({ from, to }) => {\n          // Don't create an additional session for the initial route or if the location did not change\n          if (from !== to) {\n            startSession({ ignoreDuration: true });\n            captureSession();\n            // A session has now been sent, so the deferred initial capture (if still pending)\n            // must not re-send this navigation session.\n            initialSessionSent = true;\n          }\n        });\n      }\n    },\n  };\n});\n","import type { RawAttributes } from '../../attributes';\nimport type { Client } from '../../client';\nimport type { ScopeData } from '../../scope';\nimport type { SerializedStreamedSpan, Span, SpanAttributeValue, SpanJSON, StreamedSpanJSON } from '../../types/span';\nimport { getCombinedScopeData } from '../../utils/scopeData';\nimport {\n  INTERNAL_getSegmentSpan,\n  spanToStaticSpanJSON,\n  spanToJSON,\n  streamedSpanJsonToSerializedSpan,\n} from '../../utils/spanUtils';\nimport { getCapturedScopesOnSpan } from '../utils';\nimport { applyBeforeSendSpanCallback, isStaticBeforeSendSpanCallback } from './beforeSendSpan';\nimport { spanJsonToSerializedStreamedSpan } from './spanJsonToStreamedSpan';\nimport { scopeContextsToSpanAttributes } from './scopeContextAttributes';\nimport { DEFAULT_ENVIRONMENT } from '../../constants';\nimport {\n  SENTRY_SDK_NAME,\n  SENTRY_SDK_VERSION,\n  SENTRY_SEGMENT_ID,\n  SENTRY_SEGMENT_NAME,\n  SENTRY_TRACE_LIFECYCLE,\n  USER_EMAIL,\n  USER_ID,\n  USER_IP_ADDRESS,\n  USER_NAME,\n  SENTRY_ENVIRONMENT,\n  SENTRY_RELEASE,\n  SENTRY_SDK_INTEGRATIONS,\n} from '@sentry/conventions/attributes';\n\nexport type SerializedStreamedSpanWithSegmentSpan = SerializedStreamedSpan & {\n  _segmentSpan: Span;\n};\n\n/**\n * Captures a span and returns a JSON representation to be enqueued for sending.\n *\n * IMPORTANT: This function converts the span to JSON immediately to avoid writing\n * to an already-ended OTel span instance (which is blocked by the OTel Span class).\n *\n * @returns the final serialized span with a reference to its segment span. This reference\n * is needed later on to compute the DSC for the span envelope.\n */\nexport function captureSpan(span: Span, client: Client): SerializedStreamedSpanWithSegmentSpan {\n  // Convert to JSON FIRST - we cannot write to an already-ended span\n  const spanJSON = spanToJSON(span);\n\n  const segmentSpan = INTERNAL_getSegmentSpan(span);\n  const serializedSegmentSpan = spanToJSON(segmentSpan);\n\n  const { isolationScope: spanIsolationScope, scope: spanScope } = getCapturedScopesOnSpan(span);\n\n  const finalScopeData = getCombinedScopeData(spanIsolationScope, spanScope);\n\n  applyCommonSpanAttributes(spanJSON, serializedSegmentSpan, client, finalScopeData);\n\n  // Preprocess the span JSON before any other hooks run, so that `processSpan`/`processSegmentSpan`\n  // subscribers (incl. integrations) and `beforeSendSpan` see fully inferred span data.\n  client.emit('preprocessSpan', spanJSON);\n\n  if (spanJSON.is_segment) {\n    applyScopeToSegmentSpan(spanJSON, finalScopeData);\n    applySdkMetadataToSegmentSpan(spanJSON, client);\n    // Allow hook subscribers to mutate the segment span JSON\n    // This also invokes the `processSegmentSpan` hook of all integrations\n    client.emit('processSegmentSpan', spanJSON);\n  }\n\n  // This allows hook subscribers to mutate the span JSON\n  // This also invokes the `processSpan` hook of all integrations\n  client.emit('processSpan', spanJSON);\n\n  const { beforeSendSpan, traceLifecycle } = client.getOptions();\n  const processedSpan =\n    // check for traceLifecycle here because in static lifecycle,\n    // captureSpan is called for INP spans. If an unmigrated beforeSendSpan\n    // callback is run on these spans, it will throw an error.\n    traceLifecycle !== 'static' && beforeSendSpan && !isStaticBeforeSendSpanCallback(beforeSendSpan)\n      ? applyBeforeSendSpanCallback(spanJSON, beforeSendSpan)\n      : spanJSON;\n\n  return {\n    ...streamedSpanJsonToSerializedSpan(processedSpan),\n    _segmentSpan: segmentSpan,\n  };\n}\n\nfunction applyScopeToSegmentSpan(segmentSpanJSON: StreamedSpanJSON, scopeData: ScopeData): void {\n  const contextAttributes = scopeContextsToSpanAttributes(scopeData.contexts);\n  safeSetSpanJSONAttributes(segmentSpanJSON, contextAttributes);\n}\n\n/**\n * Safely set attributes on a span JSON.\n * If an attribute already exists, it will not be overwritten.\n */\nexport function safeSetSpanJSONAttributes(\n  spanJSON: StreamedSpanJSON,\n  newAttributes: RawAttributes<Record<string, unknown>>,\n): void {\n  const originalAttributes = spanJSON.attributes ?? (spanJSON.attributes = {});\n\n  Object.entries(newAttributes).forEach(([key, value]) => {\n    if (value != null && !(key in originalAttributes)) {\n      originalAttributes[key] = value;\n    }\n  });\n}\n\nfunction applySdkMetadataToSegmentSpan(segmentSpanJSON: StreamedSpanJSON, client: Client): void {\n  const integrationNames = client.getIntegrationNames();\n  if (!integrationNames.length) return;\n\n  safeSetSpanJSONAttributes(segmentSpanJSON, {\n    [SENTRY_SDK_INTEGRATIONS]: integrationNames,\n  });\n}\n\nfunction commonSpanAttributes(\n  serializedSegmentSpan: StreamedSpanJSON,\n  client: Client,\n  scopeData: ScopeData,\n  // TODO(standalone): remove this param (always include scope attributes) once the static (transaction)\n  // trace lifecycle is dropped and standalone spans no longer need to look transaction-shaped.\n  includeScopeAttributes = true,\n): RawAttributes<Record<string, unknown>> {\n  const sdk = client.getSdkMetadata();\n  const { release, environment } = client.getOptions();\n\n  return {\n    [SENTRY_TRACE_LIFECYCLE]: 'stream',\n    [SENTRY_SEGMENT_NAME]: serializedSegmentSpan.name,\n    [SENTRY_SEGMENT_ID]: serializedSegmentSpan.span_id,\n    [SENTRY_SDK_NAME]: sdk?.sdk?.name,\n    [SENTRY_SDK_VERSION]: sdk?.sdk?.version,\n    [SENTRY_RELEASE]: release,\n    [SENTRY_ENVIRONMENT]: environment || DEFAULT_ENVIRONMENT,\n    [USER_ID]: scopeData.user?.id,\n    [USER_EMAIL]: scopeData.user?.email,\n    [USER_IP_ADDRESS]: scopeData.user?.ip_address,\n    [USER_NAME]: scopeData.user?.username,\n    ...(includeScopeAttributes ? scopeData.attributes : undefined),\n  };\n}\n\nfunction applyCommonSpanAttributes(\n  spanJSON: StreamedSpanJSON,\n  serializedSegmentSpan: StreamedSpanJSON,\n  client: Client,\n  scopeData: ScopeData,\n): void {\n  // avoid overwriting any previously set attributes (from users or potentially our SDK instrumentation)\n  safeSetSpanJSONAttributes(spanJSON, commonSpanAttributes(serializedSegmentSpan, client, scopeData));\n}\n\n/**\n * Captures a standalone span whose `beforeSendSpan` callback expects the v1 {@link SpanJSON} format\n * (i.e. the user opted out of span streaming). The span is serialized to v1, the common attributes are\n * applied, the callback runs in its native format, and the result is converted forward to a serialized\n * v2 span. This mirrors how gen_ai spans reach the v2 span path from a static transaction (a plain\n * conversion, no `processSpan` hooks), so there is never a reverse v2 -> v1 conversion.\n *\n * TODO(standalone): remove once the static (transaction) trace lifecycle is dropped.\n */\nexport function captureStandaloneSpanWithStaticCallback(\n  span: Span,\n  client: Client,\n  beforeSendSpan: (span: SpanJSON) => SpanJSON,\n): SerializedStreamedSpan {\n  const spanJSON = spanToStaticSpanJSON(span);\n\n  const segmentSpan = INTERNAL_getSegmentSpan(span);\n  const serializedSegmentSpan = spanToJSON(segmentSpan);\n\n  const { isolationScope: spanIsolationScope, scope: spanScope } = getCapturedScopesOnSpan(span);\n  const finalScopeData = getCombinedScopeData(spanIsolationScope, spanScope);\n\n  // Skip scope attributes: their `{ unit, value }` shape is unexpected for a static callback, and like\n  // transactions, standalone spans don't get them.\n  const commonAttributes = commonSpanAttributes(serializedSegmentSpan, client, finalScopeData, false);\n  Object.entries(commonAttributes).forEach(([key, value]) => {\n    if (value != null && !(key in spanJSON.data)) {\n      spanJSON.data[key] = value as SpanAttributeValue;\n    }\n  });\n\n  const processedSpan = applyBeforeSendSpanCallback(spanJSON, beforeSendSpan);\n\n  return spanJsonToSerializedStreamedSpan(processedSpan);\n}\n","import type { CultureContext, IntegrationFn } from '@sentry/core';\nimport { defineIntegration, safeSetSpanJSONAttributes } from '@sentry/core';\nimport { WINDOW } from '../helpers';\n\nconst INTEGRATION_NAME = 'CultureContext' as const;\n\nconst _cultureContextIntegration = (() => {\n  return {\n    name: INTEGRATION_NAME,\n    preprocessEvent(event) {\n      const culture = getCultureContext();\n\n      if (culture) {\n        event.contexts = {\n          ...event.contexts,\n          culture: { ...culture, ...event.contexts?.culture },\n        };\n      }\n    },\n    processSegmentSpan(span) {\n      const culture = getCultureContext();\n\n      if (culture) {\n        safeSetSpanJSONAttributes(span, {\n          'culture.locale': culture.locale,\n          'culture.timezone': culture.timezone,\n          'culture.calendar': culture.calendar,\n        });\n      }\n    },\n  };\n}) satisfies IntegrationFn;\n\n/**\n * Captures culture context from the browser.\n *\n * Enabled by default.\n *\n * @example\n * ```js\n * import * as Sentry from '@sentry/browser';\n *\n * Sentry.init({\n *   integrations: [Sentry.cultureContextIntegration()],\n * });\n * ```\n */\nexport const cultureContextIntegration = defineIntegration(_cultureContextIntegration);\n\n/**\n * Returns the culture context from the browser's Intl API.\n */\nfunction getCultureContext(): CultureContext | undefined {\n  try {\n    const intl = (WINDOW as { Intl?: typeof Intl }).Intl;\n    if (!intl) {\n      return undefined;\n    }\n\n    const options = intl.DateTimeFormat().resolvedOptions();\n\n    return {\n      locale: options.locale,\n      timezone: options.timeZone,\n      calendar: options.calendar,\n    };\n  } catch {\n    // Ignore errors\n    return undefined;\n  }\n}\n","import type { HandlerDataError } from '../types/instrument';\nimport { GLOBAL_OBJ } from '../utils/worldwide';\nimport { addHandler, maybeInstrument, triggerHandlers } from './handlers';\n\nlet _oldOnErrorHandler: (typeof GLOBAL_OBJ)['onerror'] | null = null;\n\n/**\n * Add an instrumentation handler for when an error is captured by the global error handler.\n *\n * Use at your own risk, this might break without changelog notice, only used internally.\n * @hidden\n */\nexport function addGlobalErrorInstrumentationHandler(handler: (data: HandlerDataError) => void): void {\n  const type = 'error';\n  addHandler(type, handler);\n  maybeInstrument(type, instrumentError);\n}\n\nfunction instrumentError(): void {\n  _oldOnErrorHandler = GLOBAL_OBJ.onerror;\n\n  // Note: The reason we are doing window.onerror instead of window.addEventListener('error')\n  // is that we are using this handler in the Loader Script, to handle buffered errors consistently\n  GLOBAL_OBJ.onerror = function (\n    msg: string | object,\n    url?: string,\n    line?: number,\n    column?: number,\n    error?: Error,\n  ): boolean {\n    const handlerData: HandlerDataError = {\n      column,\n      error,\n      line,\n      msg,\n      url,\n    };\n    triggerHandlers('error', handlerData);\n\n    if (_oldOnErrorHandler) {\n      // eslint-disable-next-line prefer-rest-params\n      return _oldOnErrorHandler.apply(this, arguments);\n    }\n\n    return false;\n  };\n\n  GLOBAL_OBJ.onerror.__SENTRY_INSTRUMENTED__ = true;\n}\n","import type { HandlerDataUnhandledRejection } from '../types/instrument';\nimport { GLOBAL_OBJ } from '../utils/worldwide';\nimport { addHandler, maybeInstrument, triggerHandlers } from './handlers';\n\nlet _oldOnUnhandledRejectionHandler: (typeof GLOBAL_OBJ)['onunhandledrejection'] | null = null;\n\n/**\n * Add an instrumentation handler for when an unhandled promise rejection is captured.\n *\n * Use at your own risk, this might break without changelog notice, only used internally.\n * @hidden\n */\nexport function addGlobalUnhandledRejectionInstrumentationHandler(\n  handler: (data: HandlerDataUnhandledRejection) => void,\n): void {\n  const type = 'unhandledrejection';\n  addHandler(type, handler);\n  maybeInstrument(type, instrumentUnhandledRejection);\n}\n\nfunction instrumentUnhandledRejection(): void {\n  _oldOnUnhandledRejectionHandler = GLOBAL_OBJ.onunhandledrejection;\n\n  // Note: The reason we are doing window.onunhandledrejection instead of window.addEventListener('unhandledrejection')\n  // is that we are using this handler in the Loader Script, to handle buffered rejections consistently\n  GLOBAL_OBJ.onunhandledrejection = function (e: unknown): boolean {\n    const handlerData: HandlerDataUnhandledRejection = e;\n    triggerHandlers('unhandledrejection', handlerData);\n\n    if (_oldOnUnhandledRejectionHandler) {\n      // eslint-disable-next-line prefer-rest-params\n      return _oldOnUnhandledRejectionHandler.apply(this, arguments);\n    }\n\n    return true;\n  };\n\n  GLOBAL_OBJ.onunhandledrejection.__SENTRY_INSTRUMENTED__ = true;\n}\n","import type { Client, Event, IntegrationFn, Primitive, StackParser } from '@sentry/core';\nimport {\n  addGlobalErrorInstrumentationHandler,\n  addGlobalUnhandledRejectionInstrumentationHandler,\n  captureEvent,\n  debug,\n  defineIntegration,\n  getClient,\n  isPrimitive,\n  isString,\n  stripDataUrlContent,\n  UNKNOWN_FUNCTION,\n} from '@sentry/core';\nimport type { BrowserClient } from '../client';\nimport { DEBUG_BUILD } from '../debug-build';\nimport { getLocationHref } from '@sentry/browser-utils';\nimport { eventFromUnknownInput } from '../eventbuilder';\nimport { shouldIgnoreOnError } from '../helpers';\n\ntype GlobalHandlersIntegrationsOptionKeys = 'onerror' | 'onunhandledrejection';\n\ntype GlobalHandlersIntegrations = Record<GlobalHandlersIntegrationsOptionKeys, boolean>;\n\nconst INTEGRATION_NAME = 'GlobalHandlers' as const;\n\nconst _globalHandlersIntegration = ((options: Partial<GlobalHandlersIntegrations> = {}) => {\n  const _options = {\n    onerror: true,\n    onunhandledrejection: true,\n    ...options,\n  };\n\n  return {\n    name: INTEGRATION_NAME,\n    setupOnce() {\n      Error.stackTraceLimit = 50;\n    },\n    setup(client) {\n      if (_options.onerror) {\n        _installGlobalOnErrorHandler(client);\n        globalHandlerLog('onerror');\n      }\n      if (_options.onunhandledrejection) {\n        _installGlobalOnUnhandledRejectionHandler(client);\n        globalHandlerLog('onunhandledrejection');\n      }\n    },\n  };\n}) satisfies IntegrationFn;\n\nexport const globalHandlersIntegration = defineIntegration(_globalHandlersIntegration);\n\nfunction _installGlobalOnErrorHandler(client: Client): void {\n  addGlobalErrorInstrumentationHandler(data => {\n    const { stackParser, attachStacktrace } = getOptions();\n\n    if (getClient() !== client || shouldIgnoreOnError(data)) {\n      return;\n    }\n\n    const { msg, url, line, column, error } = data;\n\n    const event = _enhanceEventWithInitialFrame(\n      eventFromUnknownInput(stackParser, error || msg, undefined, attachStacktrace, false),\n      url,\n      line,\n      column,\n    );\n\n    event.level = 'error';\n\n    captureEvent(event, {\n      originalException: error,\n      mechanism: {\n        handled: false,\n        type: 'auto.browser.global_handlers.onerror',\n      },\n    });\n  });\n}\n\nfunction _installGlobalOnUnhandledRejectionHandler(client: Client): void {\n  addGlobalUnhandledRejectionInstrumentationHandler(e => {\n    const { stackParser, attachStacktrace } = getOptions();\n\n    if (getClient() !== client || shouldIgnoreOnError()) {\n      return;\n    }\n\n    const error = _getUnhandledRejectionError(e);\n\n    const event = isPrimitive(error)\n      ? _eventFromRejectionWithPrimitive(error)\n      : eventFromUnknownInput(stackParser, error, undefined, attachStacktrace, true);\n\n    event.level = 'error';\n\n    captureEvent(event, {\n      originalException: error,\n      mechanism: {\n        handled: false,\n        type: 'auto.browser.global_handlers.onunhandledrejection',\n      },\n    });\n  });\n}\n\n/**\n *\n */\nexport function _getUnhandledRejectionError(error: unknown): unknown {\n  if (isPrimitive(error)) {\n    return error;\n  }\n\n  // dig the object of the rejection out of known event types\n  try {\n    type ErrorWithReason = { reason: unknown };\n    // PromiseRejectionEvents store the object of the rejection under 'reason'\n    // see https://developer.mozilla.org/en-US/docs/Web/API/PromiseRejectionEvent\n    if ('reason' in (error as ErrorWithReason)) {\n      return (error as ErrorWithReason).reason;\n    }\n\n    type CustomEventWithDetail = { detail: { reason: unknown } };\n    // something, somewhere, (likely a browser extension) effectively casts PromiseRejectionEvents\n    // to CustomEvents, moving the `promise` and `reason` attributes of the PRE into\n    // the CustomEvent's `detail` attribute, since they're not part of CustomEvent's spec\n    // see https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent and\n    // https://github.com/getsentry/sentry-javascript/issues/2380\n    if ('detail' in (error as CustomEventWithDetail) && 'reason' in (error as CustomEventWithDetail).detail) {\n      return (error as CustomEventWithDetail).detail.reason;\n    }\n  } catch {} // eslint-disable-line no-empty\n\n  return error;\n}\n\n/**\n * Create an event from a promise rejection where the `reason` is a primitive.\n *\n * @param reason: The `reason` property of the promise rejection\n * @returns An Event object with an appropriate `exception` value\n */\nexport function _eventFromRejectionWithPrimitive(reason: Primitive): Event {\n  return {\n    exception: {\n      values: [\n        {\n          type: 'UnhandledRejection',\n          // String() is needed because the Primitive type includes symbols (which can't be automatically stringified)\n          value: `Non-Error promise rejection captured with value: ${String(reason)}`,\n        },\n      ],\n    },\n  };\n}\n\n/**\n * Adds a frame built from the error location when the event has none.\n */\nexport function _enhanceEventWithInitialFrame(\n  event: Event,\n  url: string | undefined,\n  lineno: number | undefined,\n  colno: number | undefined,\n): Event {\n  // event.exception\n  const e = (event.exception = event.exception || {});\n  // event.exception.values\n  const ev = (e.values = e.values || []);\n  // event.exception.values[0]\n  const ev0 = (ev[0] = ev[0] || {});\n  // event.exception.values[0].stacktrace\n  const ev0s = (ev0.stacktrace = ev0.stacktrace || {});\n  // event.exception.values[0].stacktrace.frames\n  const ev0sf = (ev0s.frames = ev0s.frames || []);\n\n  if (ev0sf.length === 0) {\n    ev0sf.push({\n      colno,\n      lineno,\n      filename: getFilenameFromUrl(url) ?? getLocationHref(),\n      function: UNKNOWN_FUNCTION,\n      in_app: true,\n    });\n  }\n\n  return event;\n}\n\nfunction globalHandlerLog(type: string): void {\n  DEBUG_BUILD && debug.log(`Global Handler attached: ${type}`);\n}\n\nfunction getOptions(): { stackParser: StackParser; attachStacktrace?: boolean } {\n  const client = getClient<BrowserClient>();\n  const options = client?.getOptions() || {\n    stackParser: () => [],\n    attachStacktrace: false,\n  };\n  return options;\n}\n\nfunction getFilenameFromUrl(url: string | undefined): string | undefined {\n  if (!isString(url) || url.length === 0) {\n    return undefined;\n  }\n\n  // Strip data URL content to avoid long base64 strings in stack frames\n  // (e.g. when initializing a Worker with a base64 encoded script)\n  // Don't include data prefix for filenames as it's not useful for stack traces\n  // Wrap with < > to indicate it's a placeholder\n  if (url.startsWith('data:')) {\n    return `<${stripDataUrlContent(url, false)}>`;\n  }\n\n  return url;\n}\n","export const FILTERED_VALUE = '[Filtered]';\n\nexport const SENSITIVE_KEY_SNIPPETS = [\n  'auth',\n  'token',\n  'secret',\n  'session', // for the user_session cookie\n  'password',\n  'passwd',\n  'pwd',\n  'key',\n  'jwt',\n  'bearer',\n  'sso',\n  'saml',\n  'csrf',\n  'xsrf',\n  'credentials',\n  'sid',\n  'identity',\n  // Always treat cookie headers as sensitive in case individual key-value cookie pairs cannot properly be extracted\n  'set-cookie',\n  'cookie',\n];\n\n/**\n * Extra substrings matched only against individual Cookie / Set-Cookie **names** (not header names),\n * so we can cover common session secrets that do not match {@link SENSITIVE_KEY_SNIPPETS}\n * (e.g. `connect.sid` does not contain `session`) without false positives on arbitrary HTTP headers.\n *\n * Cookie names are checked with the same `includes()` list as headers plus these entries; omit redundant\n * cookie-only snippets that are already implied by a header match (e.g. `oauth` → `auth`, `id_token` → `token`,\n * `next-auth` → `auth`).\n */\nexport const SENSITIVE_COOKIE_NAME_SNIPPETS = [\n  // Express / Connect default session cookie\n  '.sid',\n  // Opaque session ids (PHPSESSID, ASPSESSIONID*, BIGipServer*, *sessid*, …)\n  'sessid',\n  // Laravel etc. \"remember me\" tokens\n  'remember',\n  // OIDC / OAuth auxiliary (`oauth*` covered by header snippet `auth`)\n  'oidc',\n  'pkce',\n  'nonce',\n  // RFC 6265bis high-security cookie name prefixes\n  '__secure-',\n  '__host-',\n  // Load balancer / CDN sticky-session cookies (opaque routing tokens)\n  'awsalb',\n  'awselb',\n  'akamai',\n  // BaaS / IdP session cookies (names often omit \"session\")\n  '__stripe',\n  'cognito',\n  'firebase',\n  'supabase',\n  'sb-',\n  // Step-up / MFA cookies\n  'mfa',\n  '2fa',\n];\n","import type { CollectBehavior } from '../../types/datacollection';\nimport { FILTERED_VALUE as FILTERED, SENSITIVE_KEY_SNIPPETS } from './filtering-snippets';\n\nfunction isSensitiveKey(lower: string, denySnippets: string[]): boolean {\n  return denySnippets.some(snippet => lower.includes(snippet));\n}\n\nexport function shouldFilterDataKey(key: string, behavior: CollectBehavior, additionalDenyTerms?: string[]): boolean {\n  if (behavior === false) {\n    return true;\n  }\n\n  const lowerKey = key.toLowerCase();\n  const denySnippets =\n    additionalDenyTerms != null ? [...SENSITIVE_KEY_SNIPPETS, ...additionalDenyTerms] : SENSITIVE_KEY_SNIPPETS;\n\n  if (isSensitiveKey(lowerKey, denySnippets)) {\n    return true;\n  }\n\n  if (behavior === true) {\n    return false;\n  }\n\n  const terms = 'deny' in behavior ? behavior.deny : behavior.allow;\n  const matchesConfiguredTerm = terms.some(term => lowerKey.includes(term.toLowerCase()));\n  return 'deny' in behavior ? matchesConfiguredTerm : !matchesConfiguredTerm;\n}\n\n/**\n * Filters a key-value record according to a `CollectBehavior`.\n *\n * Key names are always preserved. Values are either kept, replaced with\n * `[Filtered]`, or the entire record is dropped (off mode).\n *\n * @param additionalDenyTerms - Additional sensitive snippets to check beyond the built-in denylist.\n */\nexport function filterKeyValueData<T>(\n  data: Record<string, T>,\n  behavior: CollectBehavior,\n  additionalDenyTerms?: string[],\n): Record<string, T | string> {\n  if (behavior === false) {\n    return {};\n  }\n\n  const result: Record<string, T | string> = {};\n  for (const key of Object.keys(data)) {\n    result[key] = shouldFilterDataKey(key, behavior, additionalDenyTerms) ? FILTERED : data[key]!;\n  }\n  return result;\n}\n","import type { CollectBehavior } from '../../types/datacollection';\nimport { filterQueryParams } from './filterQueryParams';\n\n/**\n * Applies a `CollectBehavior` to the query string of a full URL, leaving every other URL component\n * (scheme, host, path, fragment) untouched.\n *\n * The query is located by string offsets rather than by parsing, so the URL is returned byte-for-byte\n * apart from the query itself. This keeps relative URLs, non-HTTP schemes and unusual encodings intact,\n * none of which survive a `URL` round-trip.\n *\n * Returns the URL with its query filtered, or with the query removed entirely when collection is off.\n */\nexport function filterUrlQuery(url: string, behavior: CollectBehavior): string {\n  // The fragment is delimited first: a `?` after a `#` belongs to the fragment, not the query.\n  const fragmentStart = url.indexOf('#');\n  const queryEnd = fragmentStart === -1 ? url.length : fragmentStart;\n\n  const queryStart = url.indexOf('?');\n  if (queryStart === -1 || queryStart > queryEnd) {\n    return url;\n  }\n\n  const prefix = url.slice(0, queryStart);\n  const query = url.slice(queryStart + 1, queryEnd);\n  const suffix = url.slice(queryEnd);\n\n  const filtered = filterQueryParams(query, behavior);\n\n  return filtered ? `${prefix}?${filtered}${suffix}` : `${prefix}${suffix}`;\n}\n","import type { CollectBehavior } from '../../types/datacollection';\nimport { FILTERED_VALUE } from './filtering-snippets';\nimport { shouldFilterDataKey } from './filterKeyValueData';\n\n/**\n * Filters a query parameter string according to a `CollectBehavior`.\n *\n * Parameter names are decoded for filtering, while the original encoding, order, and duplicate keys are preserved.\n */\nexport function filterQueryParams(queryString: string, behavior: CollectBehavior): string | undefined {\n  if (!queryString || behavior === false) {\n    return undefined;\n  }\n\n  return queryString\n    .split('&')\n    .map(pair => {\n      const separatorIndex = pair.indexOf('=');\n      const encodedKey = separatorIndex === -1 ? pair : pair.slice(0, separatorIndex);\n      const key = new URLSearchParams(`${encodedKey}=`).keys().next().value;\n\n      return key !== undefined && shouldFilterDataKey(key, behavior) ? `${encodedKey}=${FILTERED_VALUE}` : pair;\n    })\n    .join('&');\n}\n","import type { Client } from '../../client';\nimport { getClient } from '../../currentScopes';\nimport type { CollectBehavior } from '../../types/datacollection';\nimport { filterQueryParams } from './filterQueryParams';\nimport { filterUrlQuery } from './filterUrlQuery';\n\nfunction urlQueryParamsBehavior(client: Client | undefined): CollectBehavior {\n  // Instrumentation can run before a client exists; the denylist default is the safe fallback.\n  return (client ?? getClient())?.getDataCollectionOptions().urlQueryParams ?? true;\n}\n\n/**\n * Applies `dataCollection.urlQueryParams` to a URL the SDK collected itself, for use as `url.full`.\n *\n * Call this at every site where instrumentation records a URL. Routing the SDK's own URLs through a\n * helper is what makes the filtering provenance-correct: a URL a user attaches themselves never passes\n * through here, and `dataCollection` is only meant to gate automatically collected data.\n *\n * Pass the `client` the URL belongs to whenever one is at hand — falling back to `getClient()` resolves\n * against the current scope, which is the wrong client in a multi-client setup.\n */\nexport function filterCollectedUrl(url: string, client?: Client): string;\nexport function filterCollectedUrl(url: string | undefined, client?: Client): string | undefined;\nexport function filterCollectedUrl(url: string | undefined, client?: Client): string | undefined {\n  return url === undefined ? undefined : filterUrlQuery(url, urlQueryParamsBehavior(client));\n}\n\n/**\n * Applies `dataCollection.urlQueryParams` to a query string the SDK collected itself, for use as\n * `url.query`. Returns `undefined` when the query must not be collected at all.\n *\n * See {@link filterCollectedUrl} for why this is a helper and why passing `client` is preferred.\n */\nexport function filterCollectedUrlQuery(query: string | undefined, client?: Client): string | undefined {\n  return query ? filterQueryParams(query, urlQueryParamsBehavior(client)) : undefined;\n}\n","import { _INTERNAL_filterKeyValueData, defineIntegration, safeSetSpanJSONAttributes } from '@sentry/core';\nimport { getHttpRequestData, WINDOW } from '../helpers';\nimport { filterCollectedUrl } from '@sentry/core';\nimport {\n  HTTP_REQUEST_HEADER_KEY_BASE,\n  SENTRY_IS_LOCALHOST,\n  SENTRY_OP,\n  URL_FULL,\n  USER_AGENT_ORIGINAL,\n} from '@sentry/conventions/attributes';\n\n/**\n * Collects information about HTTP request headers and\n * attaches them to the event.\n */\nexport const httpContextIntegration = defineIntegration(() => {\n  return {\n    name: 'HttpContext' as const,\n    preprocessEvent(event, _hint, client) {\n      // if none of the information we want exists, don't bother\n      if (!WINDOW.navigator && !WINDOW.location && !WINDOW.document) {\n        return;\n      }\n\n      const { url, headers: collectedHeaders } = getHttpRequestData();\n\n      // We only filter the headers we collected ourselves, so headers the user set are left alone. Going by key\n      // means we also catch these headers when `browserTracingIntegration` already put them on the event.\n      const behavior = client.getDataCollectionOptions().httpHeaders.request;\n      const userHeaders = Object.entries(event.request?.headers ?? {}).filter(([key]) => !(key in collectedHeaders));\n\n      const headers = {\n        ..._INTERNAL_filterKeyValueData(collectedHeaders, behavior),\n        ...Object.fromEntries(userHeaders),\n      };\n\n      event.request = {\n        // The URL isn't gated by `dataCollection`, same as on the server.\n        url,\n        ...event.request,\n        ...(Object.keys(headers).length > 0 ? { headers } : { headers: undefined }),\n      };\n    },\n\n    processSpan(span, client) {\n      // if none of the information we want exists, don't bother\n      if (!WINDOW.navigator && !WINDOW.location && !WINDOW.document) {\n        return;\n      }\n\n      const reqData = getHttpRequestData();\n\n      // `httpHeadersToSpanAttributes` would also work here, but its cookie and array handling never runs for these\n      // two headers and costs every browser bundle ~400B gzip.\n      const headers = _INTERNAL_filterKeyValueData(\n        reqData.headers,\n        client.getDataCollectionOptions().httpHeaders.request,\n      );\n      const referer = headers['Referer'];\n      const { hostname, protocol } = WINDOW.location || {};\n\n      safeSetSpanJSONAttributes(span, {\n        // This attribute is used by the \"Filter out events from legacy browsers and crawlers\" features on the Sentry backend.\n        // Therefore, it's set on every span.\n        [USER_AGENT_ORIGINAL]: headers['User-Agent'],\n\n        // Likewise for the \"Filter out localhost events\" feature. Deliberately inlined rather than\n        // sharing the server-side helper, which costs bundle size for request headers and IPs that\n        // don't exist here. Mirrors Relay's localhost filter (relay-filter/src/localhost.rs).\n        [SENTRY_IS_LOCALHOST]:\n          protocol === 'file:' ||\n          hostname === 'localhost' ||\n          hostname === '127.0.0.1' ||\n          // `location.hostname` keeps the brackets for IPv6 hosts, so this is `[::1]`, not `::1`.\n          hostname === '[::1]' ||\n          !!hostname?.endsWith('.localhost'),\n\n        // These attributes, we only need on the segment span (analogous to the `request` context for events)\n        ...(span.is_segment && {\n          // Coerce empty string to undefined so the helper's nullish check drops it,\n          // rather than writing an empty `url.full` attribute onto the span.\n          [URL_FULL]: span.attributes?.[SENTRY_OP] !== 'http.client' ? filterCollectedUrl(reqData.url) : undefined,\n          [`${HTTP_REQUEST_HEADER_KEY_BASE}.referer`]: referer ? [referer] : undefined,\n        }),\n      });\n    },\n  };\n});\n","import type { ExtendedError } from '../types/error';\nimport type { Event, EventHint } from '../types/event';\nimport type { Exception } from '../types/exception';\nimport type { StackParser } from '../types/stacktrace';\nimport { isError } from './is';\n\n/**\n * Creates exceptions inside `event.exception.values` for errors that are nested on properties based on the `key` parameter.\n */\nexport function applyAggregateErrorsToEvent(\n  exceptionFromErrorImplementation: (stackParser: StackParser, ex: Error) => Exception,\n  parser: StackParser,\n  key: string,\n  limit: number,\n  event: Event,\n  hint?: EventHint,\n): void {\n  if (!event.exception?.values || !hint || !isError(hint.originalException)) {\n    return;\n  }\n\n  // Generally speaking the last item in `event.exception.values` is the exception originating from the original Error\n  const originalException: Exception | undefined =\n    event.exception.values.length > 0 ? event.exception.values[event.exception.values.length - 1] : undefined;\n\n  // We only create exception grouping if there is an exception in the event.\n  if (originalException) {\n    event.exception.values = aggregateExceptionsFromError(\n      exceptionFromErrorImplementation,\n      parser,\n      limit,\n      hint.originalException as ExtendedError,\n      key,\n      event.exception.values,\n      originalException,\n      0,\n    );\n  }\n}\n\nfunction aggregateExceptionsFromError(\n  exceptionFromErrorImplementation: (stackParser: StackParser, ex: Error) => Exception,\n  parser: StackParser,\n  limit: number,\n  error: ExtendedError,\n  key: string,\n  prevExceptions: Exception[],\n  exception: Exception,\n  exceptionId: number,\n): Exception[] {\n  if (prevExceptions.length >= limit + 1) {\n    return prevExceptions;\n  }\n\n  let newExceptions = [...prevExceptions];\n\n  // Recursively call this function in order to walk down a chain of errors\n  if (isError(error[key])) {\n    applyExceptionGroupFieldsForParentException(exception, exceptionId, error);\n    const newException = exceptionFromErrorImplementation(parser, error[key]);\n    const newExceptionId = newExceptions.length;\n    applyExceptionGroupFieldsForChildException(newException, key, newExceptionId, exceptionId);\n    newExceptions = aggregateExceptionsFromError(\n      exceptionFromErrorImplementation,\n      parser,\n      limit,\n      error[key] as ExtendedError,\n      key,\n      [newException, ...newExceptions],\n      newException,\n      newExceptionId,\n    );\n  }\n\n  // This will create exception grouping for AggregateErrors\n  // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/AggregateError\n  if (isExceptionGroup(error)) {\n    error.errors.forEach((childError, i) => {\n      if (isError(childError)) {\n        applyExceptionGroupFieldsForParentException(exception, exceptionId, error);\n        const newException = exceptionFromErrorImplementation(parser, childError);\n        const newExceptionId = newExceptions.length;\n        applyExceptionGroupFieldsForChildException(newException, `errors[${i}]`, newExceptionId, exceptionId);\n        newExceptions = aggregateExceptionsFromError(\n          exceptionFromErrorImplementation,\n          parser,\n          limit,\n          childError as ExtendedError,\n          key,\n          [newException, ...newExceptions],\n          newException,\n          newExceptionId,\n        );\n      }\n    });\n  }\n\n  return newExceptions;\n}\n\nfunction isExceptionGroup(error: ExtendedError): error is ExtendedError & { errors: unknown[] } {\n  return Array.isArray(error.errors);\n}\n\nfunction applyExceptionGroupFieldsForParentException(\n  exception: Exception,\n  exceptionId: number,\n  error: ExtendedError,\n): void {\n  exception.mechanism = {\n    handled: true,\n    type: 'auto.core.linked_errors',\n    ...(isExceptionGroup(error) && { is_exception_group: true }),\n    ...exception.mechanism,\n    exception_id: exceptionId,\n  };\n}\n\nfunction applyExceptionGroupFieldsForChildException(\n  exception: Exception,\n  source: string,\n  exceptionId: number,\n  parentId: number | undefined,\n): void {\n  exception.mechanism = {\n    handled: true,\n    ...exception.mechanism,\n    type: 'chained',\n    source,\n    exception_id: exceptionId,\n    parent_id: parentId,\n  };\n}\n","import type { IntegrationFn } from '@sentry/core';\nimport { applyAggregateErrorsToEvent, defineIntegration } from '@sentry/core';\nimport { exceptionFromError } from '../eventbuilder';\n\ninterface LinkedErrorsOptions {\n  key?: string;\n  limit?: number;\n}\n\nconst DEFAULT_KEY = 'cause';\nconst DEFAULT_LIMIT = 5;\n\nconst INTEGRATION_NAME = 'LinkedErrors' as const;\n\nconst _linkedErrorsIntegration = ((options: LinkedErrorsOptions = {}) => {\n  const limit = options.limit || DEFAULT_LIMIT;\n  const key = options.key || DEFAULT_KEY;\n\n  return {\n    name: INTEGRATION_NAME,\n    preprocessEvent(event, hint, client) {\n      const options = client.getOptions();\n\n      applyAggregateErrorsToEvent(\n        // This differs from the LinkedErrors integration in core by using a different exceptionFromError function\n        exceptionFromError,\n        options.stackParser,\n        key,\n        limit,\n        event,\n        hint,\n      );\n    },\n  };\n}) satisfies IntegrationFn;\n\n/**\n * Aggregrate linked errors in an event.\n */\nexport const linkedErrorsIntegration = defineIntegration(_linkedErrorsIntegration);\n","// This was originally forked from https://github.com/csnover/TraceKit, and was largely\n// re - written as part of raven - js.\n//\n// This code was later copied to the JavaScript mono - repo and further modified and\n// refactored over the years.\n\n// Copyright (c) 2013 Onur Can Cakmak onur.cakmak@gmail.com and all TraceKit contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy of this\n// software and associated documentation files(the 'Software'), to deal in the Software\n// without restriction, including without limitation the rights to use, copy, modify,\n// merge, publish, distribute, sublicense, and / or sell copies of the Software, and to\n// permit persons to whom the Software is furnished to do so, subject to the following\n// conditions:\n//\n// The above copyright notice and this permission notice shall be included in all copies\n// or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,\n// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A\n// PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT\n// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF\n// CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE\n// OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nimport type { StackFrame, StackLineParser, StackLineParserFn } from '@sentry/core';\nimport { createStackParser, UNKNOWN_FUNCTION } from '@sentry/core';\n\nconst OPERA10_PRIORITY = 10;\nconst OPERA11_PRIORITY = 20;\nconst CHROME_PRIORITY = 30;\nconst WINJS_PRIORITY = 40;\nconst GECKO_PRIORITY = 50;\n\nfunction createFrame(filename: string, func: string, lineno?: number, colno?: number): StackFrame {\n  const frame: StackFrame = {\n    filename,\n    function: func === '<anonymous>' ? UNKNOWN_FUNCTION : func,\n    in_app: true, // All browser frames are considered in_app\n  };\n\n  if (lineno !== undefined) {\n    frame.lineno = lineno;\n  }\n\n  if (colno !== undefined) {\n    frame.colno = colno;\n  }\n\n  return frame;\n}\n\n// This regex matches frames that have no function name (ie. are at the top level of a module).\n// For example \"at http://localhost:5000//script.js:1:126\"\n// Frames _with_ function names usually look as follows: \"at commitLayoutEffects (react-dom.development.js:23426:1)\"\nconst chromeRegexNoFnName = /^\\s*at (\\S+?)(?::(\\d+))(?::(\\d+))\\s*$/i;\n\n// This regex matches all the frames that have a function name.\nconst chromeRegex =\n  /^\\s*at (?:(.+?\\)(?: \\[.+\\])?|.*?) ?\\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\\/)?.*?)(?::(\\d+))?(?::(\\d+))?\\)?\\s*$/i;\n\nconst chromeEvalRegex = /\\((\\S*)(?::(\\d+))(?::(\\d+))\\)/;\n\n// Matches stack frames with data URIs instead of filename so we can still get the function name\n// Example: \"at dynamicFn (data:application/javascript,export function dynamicFn() {...\"\nconst chromeDataUriRegex = /at (.+?) ?\\(data:(.+?),/;\n\n// Chromium based browsers: Chrome, Brave, new Opera, new Edge\n// We cannot call this variable `chrome` because it can conflict with global `chrome` variable in certain environments\n// See: https://github.com/getsentry/sentry-javascript/issues/6880\nconst chromeStackParserFn: StackLineParserFn = line => {\n  const dataUriMatch = line.match(chromeDataUriRegex);\n  if (dataUriMatch) {\n    return {\n      filename: `<data:${dataUriMatch[2]}>`,\n      function: dataUriMatch[1],\n    };\n  }\n\n  // If the stack line has no function name, we need to parse it differently\n  const noFnParts = chromeRegexNoFnName.exec(line) as null | [string, string, string, string];\n\n  if (noFnParts) {\n    const [, filename, line, col] = noFnParts;\n    return createFrame(filename, UNKNOWN_FUNCTION, +line, +col);\n  }\n\n  const parts = chromeRegex.exec(line) as null | [string, string, string, string, string];\n\n  if (parts) {\n    const isEval = parts[2]?.indexOf('eval') === 0; // start of line\n\n    if (isEval) {\n      const subMatch = chromeEvalRegex.exec(parts[2]) as null | [string, string, string, string];\n\n      if (subMatch) {\n        // throw out eval line/column and use top-most line/column number\n        parts[2] = subMatch[1]; // url\n        parts[3] = subMatch[2]; // line\n        parts[4] = subMatch[3]; // column\n      }\n    }\n\n    // Kamil: One more hack won't hurt us right? Understanding and adding more rules on top of these regexps right now\n    // would be way too time consuming. (TODO: Rewrite whole RegExp to be more readable)\n    const [func, filename] = extractSafariExtensionDetails(parts[1] || UNKNOWN_FUNCTION, parts[2]);\n\n    return createFrame(filename, func, parts[3] ? +parts[3] : undefined, parts[4] ? +parts[4] : undefined);\n  }\n\n  return;\n};\n\nexport const chromeStackLineParser: StackLineParser = [CHROME_PRIORITY, chromeStackParserFn];\n\n// gecko regex: `(?:bundle|\\d+\\.js)`: `bundle` is for react native, `\\d+\\.js` also but specifically for ram bundles because it\n// generates filenames without a prefix like `file://` the filenames in the stacktrace are just 42.js\n// We need this specific case for now because we want no other regex to match.\nconst geckoREgex =\n  /^\\s*(.*?)(?:\\((.*?)\\))?(?:^|@)?((?:[-a-z]+)?:\\/.*?|\\[native code\\]|[^@]*(?:bundle|\\d+\\.js)|\\/[\\w\\-. /=]+)(?::(\\d+))?(?::(\\d+))?\\s*$/i;\nconst geckoEvalRegex = /(\\S+) line (\\d+)(?: > eval line \\d+)* > eval/i;\n\nconst gecko: StackLineParserFn = line => {\n  const parts = geckoREgex.exec(line) as null | [string, string, string, string, string, string];\n\n  if (parts) {\n    const isEval = parts[3] && parts[3].indexOf(' > eval') > -1;\n    if (isEval) {\n      const subMatch = geckoEvalRegex.exec(parts[3]) as null | [string, string, string];\n\n      if (subMatch) {\n        // throw out eval line/column and use top-most line number\n        parts[1] = parts[1] || 'eval';\n        parts[3] = subMatch[1];\n        parts[4] = subMatch[2];\n        parts[5] = ''; // no column when eval\n      }\n    }\n\n    let filename = parts[3];\n    let func = parts[1] || UNKNOWN_FUNCTION;\n    [func, filename] = extractSafariExtensionDetails(func, filename);\n\n    return createFrame(filename, func, parts[4] ? +parts[4] : undefined, parts[5] ? +parts[5] : undefined);\n  }\n\n  return;\n};\n\nexport const geckoStackLineParser: StackLineParser = [GECKO_PRIORITY, gecko];\n\nconst winjsRegex = /^\\s*at (?:((?:\\[object object\\])?.+) )?\\(?((?:[-a-z]+):.*?):(\\d+)(?::(\\d+))?\\)?\\s*$/i;\n\nconst winjs: StackLineParserFn = line => {\n  const parts = winjsRegex.exec(line) as null | [string, string, string, string, string];\n\n  return parts\n    ? createFrame(parts[2], parts[1] || UNKNOWN_FUNCTION, +parts[3], parts[4] ? +parts[4] : undefined)\n    : undefined;\n};\n\nexport const winjsStackLineParser: StackLineParser = [WINJS_PRIORITY, winjs];\n\nconst opera10Regex = / line (\\d+).*script (?:in )?(\\S+)(?:: in function (\\S+))?$/i;\n\nconst opera10: StackLineParserFn = line => {\n  const parts = opera10Regex.exec(line) as null | [string, string, string, string];\n  return parts ? createFrame(parts[2], parts[3] || UNKNOWN_FUNCTION, +parts[1]) : undefined;\n};\n\nexport const opera10StackLineParser: StackLineParser = [OPERA10_PRIORITY, opera10];\n\nconst opera11Regex =\n  / line (\\d+), column (\\d+)\\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\\(.*\\))? in (.*):\\s*$/i;\n\nconst opera11: StackLineParserFn = line => {\n  const parts = opera11Regex.exec(line) as null | [string, string, string, string, string, string];\n  return parts ? createFrame(parts[5], parts[3] || parts[4] || UNKNOWN_FUNCTION, +parts[1], +parts[2]) : undefined;\n};\n\nexport const opera11StackLineParser: StackLineParser = [OPERA11_PRIORITY, opera11];\n\nexport const defaultStackLineParsers = [chromeStackLineParser, geckoStackLineParser];\n\nexport const defaultStackParser = createStackParser(...defaultStackLineParsers);\n\n/**\n * Safari web extensions, starting version unknown, can produce \"frames-only\" stacktraces.\n * What it means, is that instead of format like:\n *\n * Error: wat\n *   at function@url:row:col\n *   at function@url:row:col\n *   at function@url:row:col\n *\n * it produces something like:\n *\n *   function@url:row:col\n *   function@url:row:col\n *   function@url:row:col\n *\n * Because of that, it won't be captured by `chrome` RegExp and will fall into `Gecko` branch.\n * This function is extracted so that we can use it in both places without duplicating the logic.\n * Unfortunately \"just\" changing RegExp is too complicated now and making it pass all tests\n * and fix this case seems like an impossible, or at least way too time-consuming task.\n */\nconst extractSafariExtensionDetails = (func: string, filename: string): [string, string] => {\n  const isSafariExtension = func.indexOf('safari-extension') !== -1;\n  const isSafariWebExtension = func.indexOf('safari-web-extension') !== -1;\n\n  return isSafariExtension || isSafariWebExtension\n    ? [\n        func.indexOf('@') !== -1 ? (func.split('@')[0] as string) : UNKNOWN_FUNCTION,\n        isSafariExtension ? `safari-extension:${filename}` : `safari-web-extension:${filename}`,\n      ]\n    : [func, filename];\n};\n","import type { DataCategory } from '../types/datacategory';\nimport type { TransportMakeRequestResponse } from '../types/transport';\nimport { safeDateNow } from './randomSafeContext';\n\n// Intentionally keeping the key broad, as we don't know for sure what rate limit headers get returned from backend\nexport type RateLimits = Record<string, number>;\n\nexport const DEFAULT_RETRY_AFTER = 60 * 1000; // 60 seconds\n\n/**\n * Extracts Retry-After value from the request header or returns default value\n * @param header string representation of 'Retry-After' header\n * @param now current unix timestamp\n *\n */\nexport function parseRetryAfterHeader(header: string, now: number = safeDateNow()): number {\n  const headerDelay = parseInt(`${header}`, 10);\n  if (!isNaN(headerDelay)) {\n    return headerDelay * 1000;\n  }\n\n  const headerDate = Date.parse(`${header}`);\n  if (!isNaN(headerDate)) {\n    return headerDate - now;\n  }\n\n  return DEFAULT_RETRY_AFTER;\n}\n\n/**\n * Gets the time that the given category is disabled until for rate limiting.\n * In case no category-specific limit is set but a general rate limit across all categories is active,\n * that time is returned.\n *\n * @return the time in ms that the category is disabled until or 0 if there's no active rate limit.\n */\nexport function disabledUntil(limits: RateLimits, dataCategory: DataCategory): number {\n  return limits[dataCategory] || limits.all || 0;\n}\n\n/**\n * Checks if a category is rate limited\n */\nexport function isRateLimited(limits: RateLimits, dataCategory: DataCategory, now: number = safeDateNow()): boolean {\n  return disabledUntil(limits, dataCategory) > now;\n}\n\n/**\n * Update ratelimits from incoming headers.\n *\n * @return the updated RateLimits object.\n */\nexport function updateRateLimits(\n  limits: RateLimits,\n  { statusCode, headers }: TransportMakeRequestResponse,\n  now: number = safeDateNow(),\n): RateLimits {\n  const updatedRateLimits: RateLimits = {\n    ...limits,\n  };\n\n  // \"The name is case-insensitive.\"\n  // https://developer.mozilla.org/en-US/docs/Web/API/Headers/get\n  const rateLimitHeader = headers?.['x-sentry-rate-limits'];\n  const retryAfterHeader = headers?.['retry-after'];\n\n  if (rateLimitHeader) {\n    /**\n     * rate limit headers are of the form\n     *     <header>,<header>,..\n     * where each <header> is of the form\n     *     <retry_after>: <categories>: <scope>: <reason_code>: <namespaces>\n     * where\n     *     <retry_after> is a delay in seconds\n     *     <categories> is the event type(s) (error, transaction, etc) being rate limited and is of the form\n     *         <category>;<category>;...\n     *     <scope> is what's being limited (org, project, or key) - ignored by SDK\n     *     <reason_code> is an arbitrary string like \"org_quota\" - ignored by SDK\n     *     <namespaces> Semicolon-separated list of metric namespace identifiers. Defines which namespace(s) will be affected.\n     *         Only present if rate limit applies to the metric_bucket data category.\n     */\n    for (const limit of rateLimitHeader.trim().split(',')) {\n      const [retryAfter, categories, , , namespaces] = limit.split(':', 5) as [string, ...string[]];\n      const headerDelay = parseInt(retryAfter, 10);\n      const delay = (!isNaN(headerDelay) ? headerDelay : 60) * 1000; // 60sec default\n      if (!categories) {\n        updatedRateLimits.all = now + delay;\n      } else {\n        for (const category of categories.split(';')) {\n          if (category === 'metric_bucket') {\n            // namespaces will be present when category === 'metric_bucket'\n            if (!namespaces || namespaces.split(';').includes('custom')) {\n              updatedRateLimits[category] = now + delay;\n            }\n          } else {\n            updatedRateLimits[category] = now + delay;\n          }\n        }\n      }\n    }\n  } else if (retryAfterHeader) {\n    updatedRateLimits.all = now + parseRetryAfterHeader(retryAfterHeader, now);\n  } else if (statusCode === 429) {\n    updatedRateLimits.all = now + 60 * 1000;\n  }\n\n  return updatedRateLimits;\n}\n","import { DEBUG_BUILD } from '../debug-build';\nimport type { EventDropReason } from '../types/clientreport';\nimport type { Envelope, EnvelopeItem } from '../types/envelope';\nimport type {\n  InternalBaseTransportOptions,\n  Transport,\n  TransportMakeRequestResponse,\n  TransportRequestExecutor,\n} from '../types/transport';\nimport { debug } from '../utils/debug-logger';\nimport {\n  createEnvelope,\n  envelopeContainsItemType,\n  envelopeItemTypeToDataCategory,\n  forEachEnvelopeItem,\n  serializeEnvelope,\n} from '../utils/envelope';\nimport { makePromiseBuffer, type PromiseBuffer, SENTRY_BUFFER_FULL_ERROR } from '../utils/promisebuffer';\nimport { isRateLimited, type RateLimits, updateRateLimits } from '../utils/ratelimit';\n\nexport const DEFAULT_TRANSPORT_BUFFER_SIZE = 64;\n\n/**\n * Creates an instance of a Sentry `Transport`\n *\n * @param options\n * @param makeRequest\n */\nexport function createTransport(\n  options: InternalBaseTransportOptions,\n  makeRequest: TransportRequestExecutor,\n  buffer: PromiseBuffer<TransportMakeRequestResponse> = makePromiseBuffer(\n    options.bufferSize || DEFAULT_TRANSPORT_BUFFER_SIZE,\n  ),\n): Transport {\n  let rateLimits: RateLimits = {};\n  const flush = (timeout?: number): PromiseLike<boolean> => buffer.drain(timeout);\n\n  function send(envelope: Envelope): PromiseLike<TransportMakeRequestResponse> {\n    const filteredEnvelopeItems: EnvelopeItem[] = [];\n\n    // Drop rate limited items from envelope\n    forEachEnvelopeItem(envelope, (item, type) => {\n      const dataCategory = envelopeItemTypeToDataCategory(type);\n      if (isRateLimited(rateLimits, dataCategory)) {\n        options.recordDroppedEvent('ratelimit_backoff', dataCategory);\n      } else {\n        filteredEnvelopeItems.push(item);\n      }\n    });\n\n    // Skip sending if envelope is empty after filtering out rate limited events\n    if (filteredEnvelopeItems.length === 0) {\n      return Promise.resolve({});\n    }\n\n    const filteredEnvelope: Envelope = createEnvelope(envelope[0], filteredEnvelopeItems as (typeof envelope)[1]);\n\n    // Creates client report for each item in an envelope\n    const recordEnvelopeLoss = (reason: EventDropReason): void => {\n      // Don't record outcomes for client reports - we don't want to create a feedback loop if client reports themselves fail to send\n      if (envelopeContainsItemType(filteredEnvelope, ['client_report'])) {\n        DEBUG_BUILD && debug.warn(`Dropping client report. Will not send outcomes (reason: ${reason}).`);\n        return;\n      }\n      forEachEnvelopeItem(filteredEnvelope, (item, type) => {\n        options.recordDroppedEvent(reason, envelopeItemTypeToDataCategory(type));\n      });\n    };\n\n    const requestTask = (): PromiseLike<TransportMakeRequestResponse> =>\n      makeRequest({ body: serializeEnvelope(filteredEnvelope) }).then(\n        response => {\n          // Handle 413 Content Too Large\n          // Loss of envelope content is expected so we record a send_error client report\n          // https://develop.sentry.dev/sdk/expected-features/#dealing-with-network-failures\n          if (response.statusCode === 413) {\n            DEBUG_BUILD &&\n              debug.error(\n                'Sentry responded with status code 413. Envelope was discarded due to exceeding size limits.',\n              );\n            recordEnvelopeLoss('send_error');\n            return response;\n          }\n\n          // We don't want to throw on NOK responses, but we want to at least log them\n          if (\n            DEBUG_BUILD &&\n            response.statusCode !== undefined &&\n            (response.statusCode < 200 || response.statusCode >= 300)\n          ) {\n            debug.warn(`Sentry responded with status code ${response.statusCode} to sent event.`);\n          }\n\n          rateLimits = updateRateLimits(rateLimits, response);\n          return response;\n        },\n        error => {\n          recordEnvelopeLoss('network_error');\n          DEBUG_BUILD && debug.error('Encountered error running transport request:', error);\n          throw error;\n        },\n      );\n\n    return buffer.add(requestTask).then(\n      result => result,\n      error => {\n        if (error === SENTRY_BUFFER_FULL_ERROR) {\n          DEBUG_BUILD && debug.error('Skipped sending event because buffer is full.');\n          recordEnvelopeLoss('queue_overflow');\n          return Promise.resolve({});\n        } else {\n          throw error;\n        }\n      },\n    );\n  }\n\n  return {\n    send,\n    flush,\n  };\n}\n","import { DEBUG_BUILD } from '../debug-build';\nimport { debug } from './debug-logger';\nimport { GLOBAL_OBJ } from './worldwide';\n\nconst WINDOW = GLOBAL_OBJ as unknown as Window;\n\ndeclare const EdgeRuntime: string | undefined;\n\n/**\n * Tells whether current environment supports ErrorEvent objects\n * {@link supportsErrorEvent}.\n *\n * @returns Answer to the given question.\n */\nexport function supportsErrorEvent(): boolean {\n  try {\n    new ErrorEvent('');\n    return true;\n  } catch {\n    return false;\n  }\n}\n\n/**\n * Tells whether current environment supports DOMException objects\n * {@link supportsDOMException}.\n *\n * @returns Answer to the given question.\n */\nexport function supportsDOMException(): boolean {\n  try {\n    new DOMException('');\n    return true;\n  } catch {\n    return false;\n  }\n}\n\n/**\n * Tells whether current environment supports Fetch API\n * {@link supportsFetch}.\n *\n * @returns Answer to the given question.\n * @deprecated This is no longer used and will be removed in a future major version.\n */\nexport const supportsFetch = _isFetchSupported;\n\nfunction _isFetchSupported(): boolean {\n  if (!('fetch' in WINDOW)) {\n    return false;\n  }\n\n  try {\n    new Headers();\n    // Deno requires a valid URL so '' cannot be used as an argument\n    new Request('data:,');\n    new Response();\n    return true;\n  } catch {\n    return false;\n  }\n}\n\n/**\n * isNative checks if the given function is a native implementation\n */\n// eslint-disable-next-line @typescript-eslint/ban-types\nexport function isNativeFunction(func: Function): boolean {\n  return func && /^function\\s+\\w+\\(\\)\\s+\\{\\s+\\[native code\\]\\s+\\}$/.test(func.toString());\n}\n\n/**\n * Tells whether current environment supports Fetch API natively\n * {@link supportsNativeFetch}.\n *\n * @returns true if `window.fetch` is natively implemented, false otherwise\n */\nexport function supportsNativeFetch(): boolean {\n  if (typeof EdgeRuntime === 'string') {\n    return true;\n  }\n\n  if (!_isFetchSupported()) {\n    return false;\n  }\n\n  // Fast path to avoid DOM I/O\n  // eslint-disable-next-line @typescript-eslint/unbound-method\n  if (isNativeFunction(WINDOW.fetch)) {\n    return true;\n  }\n\n  // window.fetch is implemented, but is polyfilled or already wrapped (e.g: by a chrome extension)\n  // so create a \"pure\" iframe to see if that has native fetch\n  let result = false;\n  const doc = WINDOW.document;\n  // eslint-disable-next-line typescript/no-deprecated\n  if (doc && typeof (doc.createElement as unknown) === 'function') {\n    try {\n      const sandbox = doc.createElement('iframe');\n      sandbox.hidden = true;\n      doc.head.appendChild(sandbox);\n      if (sandbox.contentWindow?.fetch) {\n        // eslint-disable-next-line @typescript-eslint/unbound-method\n        result = isNativeFunction(sandbox.contentWindow.fetch);\n      }\n      doc.head.removeChild(sandbox);\n    } catch (err) {\n      DEBUG_BUILD && debug.warn('Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ', err);\n    }\n  }\n\n  return result;\n}\n\n/**\n * Tells whether current environment supports Referrer Policy API\n * {@link supportsReferrerPolicy}.\n *\n * @returns Answer to the given question.\n * @deprecated This is no longer used and will be removed in a future major version.\n */\nexport function supportsReferrerPolicy(): boolean {\n  // Despite all stars in the sky saying that Edge supports old draft syntax, aka 'never', 'always', 'origin' and 'default'\n  // (see https://caniuse.com/#feat=referrer-policy),\n  // it doesn't. And it throws an exception instead of ignoring this parameter...\n  // REF: https://github.com/getsentry/raven-js/issues/1233\n\n  if (!_isFetchSupported()) {\n    return false;\n  }\n\n  try {\n    new Request('_', {\n      referrerPolicy: 'origin' as ReferrerPolicy,\n    });\n    return true;\n  } catch {\n    return false;\n  }\n}\n","import { debug, isNativeFunction } from '@sentry/core';\nimport { DEBUG_BUILD } from './debug-build';\nimport { WINDOW } from './types';\n\n/**\n * We generally want to use window.fetch / window.setTimeout.\n * However, in some cases this may be wrapped (e.g. by Zone.js for Angular),\n * so we try to get an unpatched version of this from a sandboxed iframe.\n */\n\ninterface CacheableImplementations {\n  setTimeout: typeof WINDOW.setTimeout;\n  fetch: typeof WINDOW.fetch;\n}\n\nconst cachedImplementations: Partial<CacheableImplementations> = {};\n\n/**\n * Get the native implementation of a browser function.\n *\n * This can be used to ensure we get an unwrapped version of a function, in cases where a wrapped function can lead to problems.\n *\n * The following methods can be retrieved:\n * - `setTimeout`: This can be wrapped by e.g. Angular, causing change detection to be triggered.\n * - `fetch`: This can be wrapped by e.g. ad-blockers, causing an infinite loop when a request is blocked.\n */\nexport function getNativeImplementation<T extends keyof CacheableImplementations>(\n  name: T,\n): CacheableImplementations[T] {\n  const cached = cachedImplementations[name];\n  if (cached) {\n    return cached;\n  }\n\n  let impl = WINDOW[name] as CacheableImplementations[T];\n\n  // Fast path to avoid DOM I/O\n  if (isNativeFunction(impl)) {\n    return (cachedImplementations[name] = impl.bind(WINDOW) as CacheableImplementations[T]);\n  }\n\n  const document = WINDOW.document;\n  // eslint-disable-next-line typescript/no-deprecated\n  if (document && typeof document.createElement === 'function') {\n    try {\n      const sandbox = document.createElement('iframe');\n      sandbox.hidden = true;\n      document.head.appendChild(sandbox);\n      const contentWindow = sandbox.contentWindow;\n      if (contentWindow?.[name]) {\n        impl = contentWindow[name] as CacheableImplementations[T];\n      }\n      document.head.removeChild(sandbox);\n    } catch (e) {\n      // Could not create sandbox iframe, just use window.xxx\n      DEBUG_BUILD && debug.warn(`Could not create sandbox iframe for ${name} check, bailing to window.${name}: `, e);\n    }\n  }\n\n  // Sanity check: This _should_ not happen, but if it does, we just skip caching...\n  // This can happen e.g. in tests where fetch may not be available in the env, or similar.\n  if (!impl) {\n    return impl;\n  }\n\n  return (cachedImplementations[name] = impl.bind(WINDOW) as CacheableImplementations[T]);\n}\n\n/** Clear a cached implementation. */\nexport function clearCachedImplementation(name: keyof CacheableImplementations): void {\n  cachedImplementations[name] = undefined;\n}\n\n/**\n * A special usecase for incorrectly wrapped Fetch APIs in conjunction with ad-blockers.\n * Whenever someone wraps the Fetch API and returns the wrong promise chain,\n * this chain becomes orphaned and there is no possible way to capture it's rejections\n * other than allowing it bubble up to this very handler. eg.\n *\n * const f = window.fetch;\n * window.fetch = function () {\n *   const p = f.apply(this, arguments);\n *\n *   p.then(function() {\n *     console.log('hi.');\n *   });\n *\n *   return p;\n * }\n *\n * `p.then(function () { ... })` is producing a completely separate promise chain,\n * however, what's returned is `p` - the result of original `fetch` call.\n *\n * This mean, that whenever we use the Fetch API to send our own requests, _and_\n * some ad-blocker blocks it, this orphaned chain will _always_ reject,\n * effectively causing another event to be captured.\n * This makes a whole process become an infinite loop, which we need to somehow\n * deal with, and break it in one way or another.\n *\n * To deal with this issue, we are making sure that we _always_ use the real\n * browser Fetch API, instead of relying on what `window.fetch` exposes.\n * The only downside to this would be missing our own requests as breadcrumbs,\n * but because we are already not doing this, it should be just fine.\n *\n * Possible failed fetch error messages per-browser:\n *\n * Chrome:  Failed to fetch\n * Edge:    Failed to Fetch\n * Firefox: NetworkError when attempting to fetch resource\n * Safari:  resource blocked by content blocker\n */\nexport function fetch(...rest: Parameters<typeof WINDOW.fetch>): ReturnType<typeof WINDOW.fetch> {\n  return getNativeImplementation('fetch')(...rest);\n}\n\n/**\n * Get an unwrapped `setTimeout` method.\n * This ensures that even if e.g. Angular wraps `setTimeout`, we get the native implementation,\n * avoiding triggering change detection.\n */\nexport function setTimeout(...rest: Parameters<typeof WINDOW.setTimeout>): ReturnType<typeof WINDOW.setTimeout> {\n  try {\n    return getNativeImplementation('setTimeout')(...rest);\n  } catch (e) {\n    // The implementation retrieved from the (since removed) sandbox iframe may throw when invoked,\n    // e.g. Firefox throws `NS_ERROR_NOT_INITIALIZED` for timers of a detached window.\n    // In this case, fall back to (and cache) the window's own setTimeout.\n    DEBUG_BUILD && debug.warn('Could not use native setTimeout implementation, falling back to window.setTimeout: ', e);\n    const fallback = WINDOW.setTimeout.bind(WINDOW) as typeof WINDOW.setTimeout;\n    cachedImplementations.setTimeout = fallback;\n    return fallback(...rest);\n  }\n}\n","import type { Transport, TransportMakeRequestResponse, TransportRequest } from '@sentry/core';\nimport { createTransport, makePromiseBuffer } from '@sentry/core';\nimport { clearCachedImplementation, getNativeImplementation } from '@sentry/browser-utils';\nimport type { WINDOW } from '../helpers';\nimport type { BrowserTransportOptions } from './types';\n\nconst DEFAULT_BROWSER_TRANSPORT_BUFFER_SIZE = 40;\n\n/**\n * Creates a Transport that uses the Fetch API to send events to Sentry.\n */\nexport function makeFetchTransport(\n  options: BrowserTransportOptions,\n  nativeFetch: typeof WINDOW.fetch = getNativeImplementation('fetch'),\n): Transport {\n  let pendingBodySize = 0;\n  let pendingCount = 0;\n\n  async function makeRequest(request: TransportRequest): Promise<TransportMakeRequestResponse> {\n    const requestSize = request.body.length;\n    pendingBodySize += requestSize;\n    pendingCount++;\n\n    const requestOptions: RequestInit = {\n      body: request.body as BodyInit,\n      method: 'POST',\n      referrerPolicy: 'strict-origin',\n      headers: options.headers,\n      // Outgoing requests are usually cancelled when navigating to a different page, causing a \"TypeError: Failed to\n      // fetch\" error and sending a \"network_error\" client-outcome - in Chrome, the request status shows \"(cancelled)\".\n      // The `keepalive` flag keeps outgoing requests alive, even when switching pages. We want this since we're\n      // frequently sending events right before the user is switching pages (eg. when finishing navigation transactions).\n      // Gotchas:\n      // - `keepalive` isn't supported by Firefox\n      // - As per spec (https://fetch.spec.whatwg.org/#http-network-or-cache-fetch):\n      //   If the sum of contentLength and inflightKeepaliveBytes is greater than 64 kibibytes, then return a network error.\n      //   We will therefore only activate the flag when we're below that limit.\n      // There is also a limit of requests that can be open at the same time, so we also limit this to 15\n      // See https://github.com/getsentry/sentry-javascript/pull/7553 for details\n      keepalive: pendingBodySize <= 60_000 && pendingCount < 15,\n      ...options.fetchOptions,\n    };\n\n    try {\n      // Note: We do not need to suppress tracing here, because we are using the native fetch, instead of our wrapped one.\n      const response = await nativeFetch(options.url, requestOptions);\n\n      return {\n        statusCode: response.status,\n        headers: {\n          'x-sentry-rate-limits': response.headers.get('X-Sentry-Rate-Limits'),\n          'retry-after': response.headers.get('Retry-After'),\n        },\n      };\n    } catch (e) {\n      clearCachedImplementation('fetch');\n      throw e;\n    } finally {\n      pendingBodySize -= requestSize;\n      pendingCount--;\n    }\n  }\n\n  return createTransport(\n    options,\n    makeRequest,\n    makePromiseBuffer(options.bufferSize || DEFAULT_BROWSER_TRANSPORT_BUFFER_SIZE),\n  );\n}\n","import { htmlTreeAsString, isElement } from '@sentry/browser-utils';\n\ntype Prototype = { constructor?: (...args: unknown[]) => unknown };\n\nconst HTML_ELEMENT_CONSTRUCTOR_NAME_REGEX = /^HTML(\\w*)Element$/;\n\n/**\n * Browser-specific contributions to `normalize()`'s `stringifyValue`. Plug into\n * `setNormalizeStringifier` from the browser SDK so DOM values get a useful string\n * representation without forcing core to carry the DOM-specific code.\n *\n * Handles:\n * - `window` → `[Window]`\n * - `document` → `[Document]`\n * - `HTMLElement` subclasses → `[HTMLElement: <css-selector-path>]` (via `htmlTreeAsString`)\n *\n * Vue ViewModels and React SyntheticEvents are not handled here — the Vue and React\n * SDKs wrap this function in their `init` and add their own checks on top.\n */\nexport function normalizeStringifyValue(value: Exclude<unknown, string | number | boolean | null>): string | undefined {\n  // oxlint-disable-next-line no-restricted-globals\n  if (typeof window !== 'undefined' && value === window) {\n    return '[Window]';\n  }\n  // oxlint-disable-next-line no-restricted-globals\n  if (typeof document !== 'undefined' && value === document) {\n    return '[Document]';\n  }\n\n  if (isElement(value)) {\n    const objName = getConstructorName(value);\n    if (HTML_ELEMENT_CONSTRUCTOR_NAME_REGEX.test(objName)) {\n      return `[HTMLElement: ${htmlTreeAsString(value)}]`;\n    }\n  }\n\n  return undefined;\n}\n\nfunction getConstructorName(value: unknown): string {\n  const prototype: Prototype | null = Object.getPrototypeOf(value);\n\n  return prototype?.constructor ? prototype.constructor.name : 'null prototype';\n}\n","/**\n * Checks whether given value's type is an Element instance.\n *\n * Returns false if `Element` is not available in the current runtime.\n */\nexport function isElement(wat: unknown): boolean {\n  if (typeof Element === 'undefined') {\n    return false;\n  }\n  try {\n    return wat instanceof Element;\n  } catch {\n    return false;\n  }\n}\n","import { getLocationHref } from '@sentry/browser-utils';\nimport { consoleSandbox } from '@sentry/core';\nimport { DEBUG_BUILD } from '../debug-build';\nimport { WINDOW } from '../helpers';\n\ntype ExtensionRuntime = {\n  runtime?: {\n    id?: string;\n  };\n};\ntype ExtensionProperties = {\n  chrome?: ExtensionRuntime;\n  browser?: ExtensionRuntime;\n  nw?: unknown;\n};\n\n/**\n * Returns true if the SDK is running in an embedded browser extension.\n * Stand-alone browser extensions (which do not share the same data as the main browser page) are fine.\n */\nexport function checkAndWarnIfIsEmbeddedBrowserExtension(): boolean {\n  if (_isEmbeddedBrowserExtension()) {\n    if (DEBUG_BUILD) {\n      consoleSandbox(() => {\n        // eslint-disable-next-line no-console\n        console.error(\n          '[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/',\n        );\n      });\n    }\n\n    return true;\n  }\n\n  return false;\n}\n\nfunction _isEmbeddedBrowserExtension(): boolean {\n  if (typeof WINDOW.window === 'undefined') {\n    // No need to show the error if we're not in a browser window environment (e.g. service workers)\n    return false;\n  }\n\n  const _window = WINDOW as typeof WINDOW & ExtensionProperties;\n\n  // Running the SDK in NW.js, which appears like a browser extension but isn't, is also fine\n  // see: https://github.com/getsentry/sentry-javascript/issues/12668\n  if (_window.nw) {\n    return false;\n  }\n\n  const extensionObject = _window['chrome'] || _window['browser'];\n\n  if (!extensionObject?.runtime?.id) {\n    return false;\n  }\n\n  const href = getLocationHref();\n\n  // Running the SDK in a dedicated extension page and calling Sentry.init is fine; no risk of data leakage\n  const isDedicatedExtensionPage =\n    WINDOW === WINDOW.top &&\n    /^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\\/\\//.test(href);\n\n  return !isDedicatedExtensionPage;\n}\n","import type { Client, Integration, Options } from '@sentry/core';\nimport {\n  consoleIntegration,\n  conversationIdIntegration,\n  dedupeIntegration,\n  eventFiltersIntegration,\n  functionToStringIntegration,\n  getIntegrationsToSetup,\n  initAndBind,\n  setNormalizeStringifier,\n  stackParserFromStackParserOptions,\n} from '@sentry/core';\nimport type { BrowserClientOptions, BrowserOptions } from './client';\nimport { BrowserClient } from './client';\nimport { breadcrumbsIntegration } from './integrations/breadcrumbs';\nimport { browserApiErrorsIntegration } from './integrations/browserapierrors';\nimport { browserSessionIntegration } from './integrations/browsersession';\nimport { cultureContextIntegration } from './integrations/culturecontext';\nimport { globalHandlersIntegration } from './integrations/globalhandlers';\nimport { httpContextIntegration } from './integrations/httpcontext';\nimport { linkedErrorsIntegration } from './integrations/linkederrors';\nimport { spotlightBrowserIntegration } from './integrations/spotlight';\nimport { defaultStackParser } from './stack-parsers';\nimport { makeFetchTransport } from './transports/fetch';\nimport { normalizeStringifyValue } from './normalizeStringifyValue';\nimport { checkAndWarnIfIsEmbeddedBrowserExtension } from './utils/detectBrowserExtension';\n\n/** Get the default integrations for the browser SDK. */\nexport function getDefaultIntegrations(_options: Options): Integration[] {\n  /**\n   * Note: Please make sure this stays in sync with Angular SDK, which re-exports\n   * `getDefaultIntegrations` but with an adjusted set of integrations.\n   */\n  return [\n    eventFiltersIntegration(),\n    functionToStringIntegration(),\n    conversationIdIntegration(),\n    browserApiErrorsIntegration(),\n    breadcrumbsIntegration(),\n    consoleIntegration(),\n    globalHandlersIntegration(),\n    linkedErrorsIntegration(),\n    dedupeIntegration(),\n    httpContextIntegration(),\n    cultureContextIntegration(),\n    browserSessionIntegration(),\n  ];\n}\n\n/**\n * The Sentry Browser SDK Client.\n *\n * To use this SDK, call the {@link init} function as early as possible when\n * loading the web page. To set context information or send manual events, use\n * the provided methods.\n *\n * @example\n *\n * ```\n *\n * import { init } from '@sentry/browser';\n *\n * init({\n *   dsn: '__DSN__',\n *   // ...\n * });\n * ```\n *\n * @example\n * ```\n *\n * import { addBreadcrumb } from '@sentry/browser';\n * addBreadcrumb({\n *   message: 'My Breadcrumb',\n *   // ...\n * });\n * ```\n *\n * @example\n *\n * ```\n *\n * import * as Sentry from '@sentry/browser';\n * Sentry.captureMessage('Hello, world!');\n * Sentry.captureException(new Error('Good bye'));\n * Sentry.captureEvent({\n *   message: 'Manual',\n *   stacktrace: [\n *     // ...\n *   ],\n * });\n * ```\n *\n * @see {@link BrowserOptions} for documentation on configuration options.\n */\nexport function init(options: BrowserOptions = {}): Client | undefined {\n  const shouldDisableBecauseIsBrowserExtenstion =\n    !options.skipBrowserExtensionCheck && checkAndWarnIfIsEmbeddedBrowserExtension();\n\n  let defaultIntegrations =\n    options.defaultIntegrations == null ? getDefaultIntegrations(options) : options.defaultIntegrations;\n\n  /*! rollup-include-development-only */\n  if (options.spotlight) {\n    if (!defaultIntegrations) {\n      defaultIntegrations = [];\n    }\n    const args = typeof options.spotlight === 'string' ? { sidecarUrl: options.spotlight } : undefined;\n    defaultIntegrations.push(spotlightBrowserIntegration(args));\n  }\n  /*! rollup-include-development-only-end */\n\n  const integrations = getIntegrationsToSetup({\n    integrations: options.integrations,\n    defaultIntegrations,\n  });\n\n  const clientOptions: BrowserClientOptions = {\n    ...options,\n    enabled: shouldDisableBecauseIsBrowserExtenstion ? false : options.enabled,\n    stackParser: stackParserFromStackParserOptions(options.stackParser || defaultStackParser),\n    integrations,\n    transport: options.transport || makeFetchTransport,\n  };\n\n  setNormalizeStringifier(normalizeStringifyValue);\n\n  return initAndBind(BrowserClient, clientOptions);\n}\n\n/**\n * This function is here to be API compatible with the loader.\n * @hidden\n */\nexport function forceLoad(): void {\n  // Noop\n}\n\n/**\n * This function is here to be API compatible with the loader.\n * @hidden\n */\nexport function onLoad(callback: () => void): void {\n  callback();\n}\n","import type { Breadcrumb } from '@sentry/browser';\n\n/**\n * Sentry breadcrumb hook that drops known third-party console noise before it is recorded. These\n * are messages logged by Shopify, in-app browsers, and various pixels that would otherwise pile up\n * as breadcrumbs and attach to unrelated events without telling us anything useful. Returning null\n * discards the breadcrumb.\n *\n * In this latest version, we have removed the third party filters. Now that we filter by log level,\n * most of them go away. We have to wait and see which reappear.\n *\n * Take care not to throw from here. On the path that captures console calls a throw is caught and\n * swallowed, so it will not break the page or stop the original console output. But that safety net\n * does not cover every caller. A breadcrumb added manually elsewhere reaches this hook directly,\n * and a throw would escape back to whoever added it. So treat the breadcrumb as untrusted and guard\n * each field before reading it, which is what the checks below do.\n */\nexport function beforeBreadcrumb(breadcrumb: Breadcrumb) {\n  // Drop console.debug entirely. Debug is our ephemeral tier, it prints to the local console but is\n  // never recorded, so developers can log freely at this level without fattening the breadcrumb\n  // trail that rides along on every event we send. Sentry maps console.debug to a console\n  // breadcrumb at debug level. The other console levels keep their capture behavior.\n  if (breadcrumb?.category === 'console' && breadcrumb.level === 'debug') {\n    return null;\n  }\n\n  // Drop Rivo's self-promotion banner. Their loyalty scripts log a styled multi-line advert for\n  // their own developer program on every page they load, which the console integration records as\n  // an info breadcrumb that then rides along on unrelated events from those pages. It says nothing\n  // about what the visitor or the page was doing. Match on the developer-program link, the one part\n  // of the banner that is not decorative and is unlikely to be reworded.\n  if (breadcrumb?.category === 'console' && breadcrumb.message?.includes('rivo.io/developers')) {\n    return null;\n  }\n\n  // Drop ShopMy's click-tracking chatter. Their affiliate script narrates every step of registering\n  // a creator click through console.info, several lines per click, and the console integration\n  // records each one. They say nothing about what the visitor was doing and they crowd genuinely\n  // useful crumbs out of the trail on unrelated events. Their errors are already dropped by the\n  // message ignore list, so this is the breadcrumb half of the same filter and matches the same\n  // prefix every one of those lines carries.\n  if (breadcrumb?.category === 'console' && breadcrumb.message?.startsWith('ShopMy:')) {\n    return null;\n  }\n\n  // Drop the TouchBridge script's console chatter. It logs a line when it sends a fake touch\n  // gesture and another when the gesture finishes, and the console integration records both. They\n  // say nothing about what the visitor was doing, because the visitor is a script. Its events are\n  // already dropped by the message ignore list, so this is the breadcrumb half of the same filter\n  // and matches the same prefixes those lines carry, the second belonging to what we think is a\n  // newer build of the script.\n  if (breadcrumb?.category === 'console' && (breadcrumb.message?.includes('[GM_touchBridge]') ||\n    breadcrumb.message?.includes('[TouchBridgeAuto]'))) {\n    return null;\n  }\n\n  // Drop the console chatter from Shopify's bugsnag-light library. It is Shopify's own error\n  // reporting talking about Shopify's own scripts, so it says nothing about what the visitor was\n  // doing. Its events are already dropped by the message ignore list, so this is the breadcrumb\n  // half of the same filter and matches the same prefix.\n  if (breadcrumb?.category === 'console' && breadcrumb.message?.includes('[bugsnag-light]')) {\n    return null;\n  }\n\n  return breadcrumb;\n}\n","import type { BrowserOptions, Event } from '@sentry/browser';\n\n/**\n * Derived from the browser options rather than imported directly so it resolves against the same\n * core types the SDK uses internally.\n */\ntype Integration = Extract<BrowserOptions['integrations'], unknown[]>[number];\n\n/**\n * Drops the cross-origin frame errors that scrapers and AI browser agents produce while reading our\n * pages. Their scripts walk every iframe on the page and try to read its document, and the browser\n * blocks that for frames from another origin, like a chat widget or a payment button. The script\n * catches the error and logs it to the console, and the console integration turns that log into an\n * event. This is a steady, frequent source of events, and it never involves our code or a real\n * visitor.\n *\n * The message alone is too generic to filter on, since our own code could someday trip the same\n * browser check. So we only drop the event when it also has a frame from one of the automation\n * scripts we have actually seen. One is the wrapper Playwright puts around code it runs in the\n * page, and the other is the DOM reading script used by AI browser agents such as browser-use.\n * These scripts can rename their functions in a new version, and then this stops matching and the\n * events come back.\n *\n * @see https://github.com/microsoft/playwright\n * @see https://github.com/browser-use/browser-use\n */\nexport const browserAutomationIntegration: Integration = {\n  name: 'BrowserAutomationFilter',\n  processEvent(event: Event) {\n    try {\n      return processEventUnsafe(event);\n    } catch (error) {\n      return event;\n    }\n  }\n};\n\n/**\n * Returns null to drop a cross-origin frame error thrown from an automation script, and the event\n * itself otherwise. Throws freely, since the caller swallows anything that goes wrong.\n */\nfunction processEventUnsafe(event: Event) {\n  const automationFunctions = [\n    'UtilityScript.evaluate',\n    'buildDomTree',\n    'domBuilder'\n  ];\n\n  const values = event.exception?.values;\n  if (!Array.isArray(values)) {\n    return event;\n  }\n\n  const message = 'from accessing a cross-origin frame';\n\n  for (const value of values) {\n    if (typeof value.value !== 'string' || !value.value.includes(message)) {\n      continue;\n    }\n\n    const frames = value.stacktrace?.frames;\n    if (!Array.isArray(frames)) {\n      continue;\n    }\n\n    for (const frame of frames) {\n      if (automationFunctions.includes(frame.function)) {\n        return null;\n      }\n    }\n  }\n\n  return event;\n}\n","import type { BrowserOptions, Event } from '@sentry/browser';\n\n/**\n * Derived from the browser options rather than imported directly so it resolves against the same\n * core types the SDK uses internally.\n */\ntype Integration = Extract<BrowserOptions['integrations'], unknown[]>[number];\n\n/**\n * Drops Sentry noise generated by DuckDuckGo's own injected code. Its browsers inject scripts into\n * every page (the content-scope features and the password autofill), and several of those scripts\n * fail in ways we cannot fix: a native bridge the app is meant to answer never responds, or a\n * response the script assumes is populated comes back empty and is dereferenced anyway. The\n * failures carry no useful stacktrace because the frames are the browser's rather than ours, and\n * they fire on a large share of loads in that browser, so they drown out real issues.\n *\n * Each failure is keyed on a short, distinctive string confirmed to appear nowhere else in the\n * project, rather than on a generic error title that would swallow unrelated real errors. A given\n * failure can reach Sentry three ways depending on how the browser surfaced it: as the event\n * message, as an exception value (an uncaught rejection, or an Error the script caught and handed\n * to the console), or preserved among the captured console arguments, so all three are checked.\n *\n * A few failures surface only through a generic minified message that could equally describe an\n * unrelated first-party error, so those are matched only when the running browser is itself\n * DuckDuckGo. Gating the broad wording on the user agent keeps it from discarding real errors in\n * every other browser.\n *\n * Permalinks are pinned to a commit so the referenced lines do not drift; main may move.\n *\n * @see https://github.com/duckduckgo/content-scope-scripts/blob/9a746ad7046cd7e6e64a9a656b40b1c7d91071d0/injected/src/features/duck-player-native.js\n * @see https://github.com/duckduckgo/duckduckgo-autofill/blob/6ca1da812ca63219e96a7b8be0ee8a667dde26ac/src/DeviceInterface/InterfacePrototype.js\n * @see https://github.com/WebKit/WebKit/blob/98d170109035f7fbc581cbdf5fb038c64451561a/Source/WebKit/UIProcess/API/Cocoa/WKUserContentController.mm#L162\n */\nexport const ddgIntegration: Integration = {\n  name: 'DuckDuckGoFilter',\n  processEvent(event: Event) {\n    try {\n      if (isDDGError(event)) {\n        return null;\n      }\n\n      return event;\n    } catch (error) {\n      // A filter that cannot run must not filter. If inspecting the event throws we never confirmed\n      // it was DuckDuckGo noise, so keep it rather than silently discard a possibly real error.\n      return event;\n    }\n  }\n};\n\nfunction isDDGError(event: Event) {\n  const signatures = [\n    // Duck Player Native awaits an initial setup payload from the native app during startup and, on\n    // rejection, warns with this fixed label. The console integration captures it either titled by\n    // the label or promoted to a generic \"an unknown error occurred\" exception that keeps the label\n    // only among the console arguments, so matching the label catches both variants.\n    'Failed to get initial setup',\n    // The password autofill asks the native app for its initial data and passes the response's\n    // success payload straight into storage without guarding for its absence. When the app returns\n    // no payload, because the bridge is absent or the request was blocked, on any page carrying a\n    // form for autofill to act on, the read of the credentials property off the missing payload\n    // throws an uncaught rejection with no stacktrace. Match the precise property access so the\n    // generic wording cannot over-match unrelated errors.\n    '(evaluating \\'data.credentials\\')',\n    // The same autofill, when a fill is triggered and the native app answers with a response\n    // missing its success payload, rejects with this fixed phrase and hands it to the console,\n    // which the console integration captures. It is the vendor's own bridge failure that we cannot\n    // fix.\n    'none-success response',\n    // DuckDuckGo's injected scripts talk to their native app with reply-style bridge calls: a\n    // message handler whose postMessage returns a JavaScript promise, while the native side is\n    // handed a one-shot reply block it is expected to invoke with the result. When the app takes\n    // the message but lets that reply block deallocate without ever calling it (an abandoned reply,\n    // not a strict timeout), WebKit's own completion-handler finalizer rejects the pending promise\n    // with this fixed string. The rejection carries only that plain string, with no error object\n    // and no stacktrace, so it reaches us as a bare unhandled rejection. WebKit core emits the\n    // wording rather than DuckDuckGo, so it holds stable across their bundle updates, and our own\n    // code never messages a native handler, so nothing of ours can produce it.\n    'WKWebView API client did not respond to this postMessage'\n  ];\n\n  // Signatures whose wording is too generic to attribute on their own, matched only when the\n  // running browser is DuckDuckGo (see the class comment).\n  if (isDuckDuckGoBrowser()) {\n    // A DuckDuckGo injected script rejects with a type error, carrying no stacktrace, reading the\n    // type property off an undefined value. It surfaces on ordinary page loads in that browser\n    // rather than tied to any one of our features, and every observed occurrence is DuckDuckGo, so\n    // it is that browser's own injected code we cannot fix. The wording is generic enough that an\n    // unrelated handler of ours could throw it, which is why it is gated on the user agent.\n    signatures.push('(evaluating \\'e.type\\')');\n  }\n\n  const message = event.message;\n  if (typeof message === 'string' && matchesSignature(message, signatures)) {\n    return true;\n  }\n\n  const values = event.exception?.values;\n  if (Array.isArray(values)) {\n    for (const value of values) {\n      if (typeof value.value === 'string' && matchesSignature(value.value, signatures)) {\n        return true;\n      }\n    }\n  }\n\n  // The Duck Player variant titled with the generic \"an unknown error occurred\" message is caught\n  // here rather than by the checks above. That title is too broad to match on directly, but the\n  // browser still logs its own label as a separate console argument, which the console integration\n  // preserves on the event, so matching the label among the arguments still nets this variant.\n  const args = event.extra?.arguments;\n  if (Array.isArray(args)) {\n    for (const arg of args) {\n      if (typeof arg === 'string' && matchesSignature(arg, signatures)) {\n        return true;\n      }\n    }\n  }\n\n  return false;\n}\n\nfunction matchesSignature(text: string, signatures: string[]) {\n  for (const signature of signatures) {\n    if (text.includes(signature)) {\n      return true;\n    }\n  }\n\n  return false;\n}\n\nfunction isDuckDuckGoBrowser() {\n  const userAgent = navigator.userAgent;\n  if (typeof userAgent !== 'string') {\n    return false;\n  }\n\n  // Both the iOS and macOS DuckDuckGo apps carry a DuckDuckGo token in their user agent, so a\n  // single case-insensitive test covers both.\n  return /duckduckgo/i.test(userAgent);\n}\n","import type { BrowserOptions } from '@sentry/browser';\n\nconst browserProtocolDenyUrls = [\n  /^chrome:/i,\n  /^chrome-extension:/i,\n  /extension:/i,\n  /^moz-extension:/i,\n  /^pptr:/i,\n  /^safari-extension:/i,\n  /^safari-web-extension:/i,\n  /^webkit-masked-url:/i,\n  /^file:/i,\n  // Facebook's in-app browser injects its instrumentation scripts under this custom scheme, which\n  // has no artifact name Sentry can resolve against source maps. We ship nothing under it, so\n  // anything here is the embedded browser's own injected code that we cannot fix.\n  /^iabjs:/i,\n  // ChromeXt, an Android script manager somebody installs in their own browser, injects its own\n  // runtime under this made up scheme, and that runtime throws when it initializes twice on a page.\n  // We ship nothing under a local: scheme, so anything here is injected code in a browser we do not\n  // control and cannot fix.\n  /^local:/i,\n  // Third party code injected at our origin from a script built as a blob, which Sentry blames on\n  // our theme because it runs under our domain. A blob script has no stable artifact name, so its\n  // frames can never resolve against uploaded source maps, leaving an opaque minified stack that is\n  // impossible to action. We ship no blob scripts ourselves, so anything here is injected vendor\n  // code. The frame filename is the blob url, so the url deny list catches it.\n  /^blob:/i\n];\n\nconst shopifyDenyUrls = [\n  /cdn\\/wpm/i,\n  /shopifycloud\\/shopify/i,\n  /shopifycloud\\/payment-sheet/i,\n  /shopifycloud\\/perf-kit/i,\n  // Shopify's accelerated checkout wallet-button bundle ships an OpenTelemetry exporter that logs a\n  // suppressed error through the console whenever one of its telemetry posts fails, typically an\n  // ephemeral fetch failure. It is caught and non fatal, the frames are entirely the vendor's code,\n  // and it fires on a large share of page loads. A message filter is leaky because the underlying\n  // cause varies, so drop everything originating from the bundle by its script path.\n  /shopifycloud\\/portable-wallets/i,\n  /cdn\\/s\\/trekkie/i,\n  // Shopify's storefront standard-actions bundle ships modern syntax (optional chaining) that old\n  // mobile browsers below our support floor cannot parse, so the whole script fails at parse time\n  // with a generic unexpected-token error. It is Shopify's own code served from our origin, the\n  // frames are entirely theirs, and it only fires on unsupported browsers, so drop it by script\n  // path. The message itself is a single punctuation token that message filtering cannot safely\n  // target.\n  /storefront\\/standard-actions/i,\n  // Shopify's new storefront agent-integration bundle tries to register its tools on the browser's\n  // model-context object at load, but the page's permissions policy withholds that feature, so the\n  // registration call throws a security error. It is Shopify's own code served from our origin, the\n  // frames are entirely theirs, and we can neither grant the policy nor change their bundle, so\n  // drop it by script path. Match the versionless path segment so a version bump in the filename\n  // cannot slip past the filter.\n  /storefront\\/webmcp/i,\n  // Shopify's native consent banner bundle fetches its consent-management configuration from their\n  // edge as it initializes, and when that request fails on a flaky connection it throws a generic\n  // could-not-reach-the-server error that the banner's own init logs to the console. The frames are\n  // entirely Shopify's own bundle served from our origin, it is an ephemeral network outcome we\n  // cannot fix, and the message is a generic connectivity phrase that message filtering cannot\n  // safely target, so drop everything from the bundle by its script path. This is the same bundle\n  // whose cookie-decode init failure is filtered by message in the Shopify ignore-errors entry.\n  /shopifycloud\\/privacy-banner/i,\n  // Shopify's Shop platform bundle, which powers Sign in with Shop and the Shop Pay cart sync. It\n  // ships as ESM chunks that import each other by filenames carrying a content hash, and it fails\n  // in two shapes we have seen. A chunk hits a parse error on browsers too old for the syntax it\n  // ships, and a chunk imports a named export that the sibling it names does not have. The second\n  // one is a visitor side cache problem rather than a bad Shopify build, since the chunks currently\n  // served agree with each other when fetched directly, so a browser pairing a stale cached chunk\n  // with a fresh sibling is what breaks the link. It is all Shopify's own code served from our\n  // origin and we can change neither their bundle nor what a browser kept in its cache, so drop it\n  // by script path. Match the versionless path segment, since the chunk filenames rotate their hash\n  // on every rebuild and the messages name those hashes, which makes message filtering useless\n  // here. This is a different bundle from the shop_events_listener one that has its own filtering\n  // integration.\n  /shopifycloud\\/shop-js/i,\n  // Shopify's Shop Promise bundle, which shows delivery estimates on the product page. Its timing\n  // helper calls Promise.prototype.finally, so it throws an unhandled rejection on engines too old\n  // to have it. It is all Shopify's own code and the frames are entirely theirs, so drop it by the\n  // versionless path segment.\n  /shopifycloud\\/shop-promise-pdp/i\n];\n\nconst payPalDenyUrls = [\n  /paypalobjects/i,\n  // PayPal's buttons SDK, loaded by Shopify's accelerated-checkout express button rather than by\n  // us. Its zoid cross-frame framework guards against registering the same global message listener\n  // twice, and that guard throws when the SDK bootstraps more than once on a page, which happens in\n  // flaky in-app browsers that re-evaluate injected scripts. The frames are entirely the vendor's,\n  // it only degrades their own button, and it reaches us only because it ran inside a timer Sentry\n  // patched, so drop anything from the SDK's script path.\n  /paypal\\.com\\/sdk\\/js/i\n];\n\nconst doubleClickDenyUrls = [\n  /doubleclick\\.net\\/pagead/i\n];\n\nconst gladlyDenyUrls = [\n  /cdn\\.gladly\\.com/i\n];\n\nconst bingDenyUrls = [\n  /bat\\.bing\\.com/i\n];\n\nconst tikTokDenyUrls = [\n  /analytics\\.tiktok\\.com/i\n];\n\nconst facebookDenyUrls = [\n  /payments_sdk\\/v1\\/fbpay_sdk/i\n];\n\nconst klaviyoDenyUrls = [\n  /klaviyo\\.com/i,\n  // Routine misc. errors from klaviyo.js\n  /post_identification_sync/i\n];\n\nconst forterDenyUrls = [\n  // Analytics library used by Global-E that we cannot get rid of\n  /forter\\.com/i\n];\n\nconst attentiveDenyUrls = [\n  // Attentive\n  /cdn\\.attn\\.tv/i,\n  // Attentive's engagement tag, served first party through a CNAME subdomain (loaded via\n  // Cloudflare) rather than their CDN, so the rule above misses it. It reads the top frame's\n  // referrer, which throws a cross-origin security error whenever the page is embedded under a\n  // different-origin parent such as an in-app browser. The frames are entirely the vendor's code\n  // and it fires on a huge share of page loads, so drop anything from its script path.\n  /\\/eat\\/core/i\n];\n\nconst taboolaDenyUrls = [\n  // Taboola Shopify App\n  /taboola\\.com/i\n];\n\nconst axonDenyUrls = [\n  // Axon (AppLovin) Shopify App\n  /axon-64\\/assets\\/app-embed\\.js/i\n];\n\nconst yotpoDenyUrls = [\n  // Yotpo's tracking pixel bundle throws routine errors (e.g. an \"Illegal invocation\" TypeError\n  // from its Tracker fingerprint logic) that originate entirely within Yotpo's injected code on\n  // their CDN\n  // cspell:ignore widgetsrepository\n  /cdn-widgetsrepository\\.yotpo\\.com/i\n];\n\nconst tryNowDenyUrls = [\n  // TryNow Assets\n  /shopify\\/(\\d+\\.)?(\\d+\\.)?(\\*|\\d+)\\/trynow/i\n];\n\nconst awinDenyUrls = [\n  // Awin affiliate-tracking Shopify app, served through the storefront app proxy. Its script reads\n  // web storage on load without guarding for the case where the store is unavailable, so it throws\n  // a null getItem read in restrictive Android in-app browsers. It is the vendor's code, degrades\n  // only their own tracking, and fires often enough to be pure noise, so drop anything from it.\n  /\\/apps\\/awin\\//i\n];\n\nconst translateDenyUrls = [\n  // Google Translate's in-page translation element, injected at our origin by the browser's\n  // \"Translate this page\" feature, throws minified errors (such as \"Aa\") inside its own code that\n  // surface through our global rejection handler. The frames are entirely Google's and the message\n  // is a single minified token that message filtering cannot safely target, so drop anything from\n  // its script path.\n  /translate_http/i\n];\n\nconst rechargeDenyUrls = [\n  // Recharge's subscription-management customer portal, served entirely from their CDN and reached\n  // through the storefront app proxy under the recurring-tools path. Its storefront-renderer bundle\n  // reads a nested calendar-settings property off a config object without guarding for the case\n  // where the config is null, throwing a minified property-access error while rendering a\n  // reschedule/delay page. The frames are entirely the vendor's code, it only affects their own\n  // portal, and the message is a minified property path that message filtering cannot safely\n  // target, so drop anything from their CDN by script path.\n  /rechargecdn\\.com/i\n];\n\nconst rivoDenyUrls = [\n  // Rivo's own metrics tracking module, served as a theme asset under our origin so Sentry blames\n  // it on us. It reads a tag name off a node it looked up without guarding for the case where the\n  // lookup returned null, throwing a generic null property-access error, most often in mobile in-\n  // app browsers on the loyalty rewards page. The frames are entirely the vendor's code and it only\n  // degrades their own tracking, but the message is a generic minified property access that message\n  // filtering cannot safely target, so drop it by its distinctive script filename. Rivo's other\n  // noise is message-based and lives in the ignore-errors list.\n  /assets\\/ba_tracking/i,\n  // Rivo's loyalty script (loy_ for loyalty), uploaded as a theme asset under our origin so Sentry\n  // blames it on us. Firefox refuses one of its storage or cookie operations in a restricted\n  // context and throws a security error (DOMException 18, \"The operation is insecure\"), low volume\n  // and Firefox only. The frames are entirely the vendor's code and it only degrades their own\n  // loyalty widget, but the message is a generic insecure-operation phrase that many unrelated\n  // sources also throw, so message filtering cannot safely target it. Drop it by its distinctive\n  // script filename, whose trailing digits are our stable shop id rather than a version.\n  /assets\\/loy_22041955/i\n];\n\nconst clarityDenyUrls = [\n  // Microsoft Clarity's analytics bundles throw routine minified errors entirely within their own\n  // versioned scripts, such as a null property read while advancing its internal event sequence.\n  // The frames are entirely the vendor's code, it fires across a large share of page loads, and the\n  // messages are generic minified property accesses whose underlying cause varies, so a message\n  // filter is leaky. Drop everything originating from each bundle by its script filename, which\n  // stays stable as the leading version segment of the path changes. Clarity serves a main bundle\n  // and an extended one, and each needs its own entry.\n  /clarity\\.js/i,\n  /clarity-extended\\.js/i\n];\n\nconst postPilotPixelDenyUrls = [\n  // PostPilot's SiteMatch pixel. Its Shopify pixel-block extension injects a companion script\n  // served from this S3 bucket under a randomized, high-entropy filename (a px_ prefix followed by\n  // random characters, rotated to evade content blockers). The script registers a page-hide\n  // listener and, as the page unloads, touches a browser feature that Mobile Safari refuses in a\n  // restricted context, throwing an insecure-operation security error. It reaches us only because\n  // Sentry wraps event listeners, but the throwing frames are entirely the vendor's script, it\n  // fires only on iOS Safari, and it degrades only their own tracking. The filename randomizes so\n  // it cannot be matched, but the bucket host is stable, so drop anything from it by host. This is\n  // the same pixel whose unload-time null read is filtered by message in the PostPilot ignore-\n  // errors entry.\n  /xp2023-pix\\.s3\\.amazonaws\\.com/i\n];\n\nconst tangentDenyUrls = [\n  // Tangent's inline quiz bundle, the vendor powering our hair quiz. On page unload it reads a\n  // session_id off a state object it never guarded for the case where that object is null, throwing\n  // a generic minified null property-access error, most often in mobile in-app browsers. The frames\n  // are entirely the vendor's code and it only degrades their own quiz analytics, but the message\n  // is a generic minified property access that message filtering cannot safely target, so drop it\n  // by script path. Match the versionless path segment so a version bump in the filename cannot\n  // slip past the filter.\n  //\n  // This was appearing in Sentry as TypeError: Cannot read properties of null (reading\n  // 'session_id')\n  /\\/quiz-inline\\//i\n];\n\nconst miscDenyUrls = [\n  /vulcanV2Player/i\n];\n\n/**\n * We prefer to filter errors server side so that we can revise filtering configuration without a\n * deployment. However, there are some errors we will never care about, and there are some errors\n * that we know about that happen on almost every page load, leading to millions of error events, to\n * the point where we exceed error tracking quotas very quickly.\n */\nexport const denyUrls: BrowserOptions['denyUrls'] = [\n  ...browserProtocolDenyUrls,\n  ...shopifyDenyUrls,\n  ...payPalDenyUrls,\n  ...doubleClickDenyUrls,\n  ...gladlyDenyUrls,\n  ...bingDenyUrls,\n  ...tikTokDenyUrls,\n  ...facebookDenyUrls,\n  ...klaviyoDenyUrls,\n  ...forterDenyUrls,\n  ...attentiveDenyUrls,\n  ...taboolaDenyUrls,\n  ...axonDenyUrls,\n  ...yotpoDenyUrls,\n  ...tryNowDenyUrls,\n  ...awinDenyUrls,\n  ...translateDenyUrls,\n  ...rechargeDenyUrls,\n  ...rivoDenyUrls,\n  ...clarityDenyUrls,\n  ...postPilotPixelDenyUrls,\n  ...tangentDenyUrls,\n  ...miscDenyUrls\n];\n","import type { BrowserOptions, Event } from '@sentry/browser';\n\n/**\n * Derived from the browser options rather than imported directly so it resolves against the same\n * core types the SDK uses internally.\n */\ntype Integration = Extract<BrowserOptions['integrations'], unknown[]>[number];\n\n/**\n * Drops the console noise that Gladly's chat widget emits. When the widget's own code fails, most\n * often a web-storage read inside a promise, it catches the rejection and logs it by passing the\n * literal lowercase \"error:\" as the first console argument followed by the failure, rather than\n * logging an Error. Our console integration turns error-level console calls into Sentry events, so\n * each of these becomes an event whose message reads \"error: <failure>\". The widget logs a string\n * and not an Error, so the event has no frames and a filter keyed on the script origin cannot tell\n * it came from Gladly, which is how the high-volume variants slip past the url deny list.\n *\n * The event we are interested in is always two args and the first arg is \"error:\". The Gladly\n * widget is the only thing on the storefront that produces this signature.\n *\n * We cannot match by frame name (e.g. cdn.gladly.com) because it is not always present.\n *\n * We key on the captured console arguments the integration records on the event rather than the\n * console logger marker it also sets, because that marker is applied by a scope processor that runs\n * after this one and is not on the event yet at this point.\n */\nexport const gladlyIntegration: Integration = {\n  name: 'GladlyConsoleFilter',\n  processEvent(event: Event) {\n    try {\n      const args = event.extra?.arguments;\n      if (Array.isArray(args) && args.length === 2 && args[0] === 'error:') {\n        return null;\n      }\n    } catch (error) {\n      // Ignore\n    }\n\n    return event;\n  }\n};\n","import type { BrowserOptions } from '@sentry/browser';\n\n/**\n * The cart api produces several scary looking errors that all amount to ephemeral networking\n * errors. There are other means of monitoring networking error volume. There is no point to\n * tracking these errors as issues to address.\n */\nconst routineShopifyCartErrors = [\n  'Received status 503 fetching cart',\n  'Received status 504 fetching cart',\n  'Received status 403 updating cart',\n  'Received status 429 updating cart',\n  'Received status 502 updating cart',\n  'Received status 503 updating cart',\n  'Received status 504 updating cart',\n  'Received status 400 changing cart',\n  'Received status 502 changing cart',\n  'Received status 503 changing cart',\n  'Received status 502 adding to cart',\n  'Received status 503 adding to cart'\n];\n\nconst routineRecommendationErrors = [\n  // Shopify answers with this when the request leaves out the product id.\n  'Received status 422 fetching recommendations',\n  'Received status 429 fetching recommendations',\n  // A transient failure on Shopify's side. The same request succeeds a little later.\n  'Received status 500 fetching recommendations',\n  'Received status 502 fetching recommendations',\n  'Received status 503 fetching recommendations',\n  'Received status 504 fetching recommendations',\n  // Not a standard HTTP status. Shopify's recommendations endpoint occasionally answers with it.\n  'Received status 580 fetching recommendations'\n];\n\nconst routineYotpoErrors = [\n  'Received status 404 submitting vote',\n  // Our AI reviews-summary section fetches Yotpo's summary endpoint through the Shopify app proxy,\n  // and that endpoint routinely answers with a non-ok status (transient 503 and 504 gateway errors,\n  // 429 rate limits, the occasional 404 or 406 for a given product). Our fetch wrapper throws on\n  // any non-ok response and the section logs it through the console, which the console integration\n  // captures. Our request is well formed, so there is nothing for us to fix, and there is nothing\n  // to render when Yotpo declines, so this is pure noise. The throw resolves to our own section\n  // bundle rather than a Yotpo CDN url, so the deny list cannot catch it. Match the distinctive\n  // phrase to drop the whole family of statuses rather than enumerate each one.\n  'fetching reviews summary',\n  // The product reviews section fetches the first page of reviews through a Shopify app proxy,\n  // which can answer with a 500 or a transient gateway error. The section logs the throw through\n  // the console. Our request is well formed, so there is nothing for the theme to fix.\n  'Received status 500 fetching product reviews',\n  'Received status 502 fetching product reviews',\n  'Received status 503 fetching product reviews',\n  'Received status 504 fetching product reviews'\n];\n\nconst gladlyErrors = [\n  // We have a hack that pre-fetches this to determine availability and avoid initializing so as to\n  // avoid Gladly's infinite polling logic when unavailable, but that pre-fetch sometimes fails. We\n  // do not care about most of the reasons for those fetch failures.\n  'Received status 403 fetching Gladly dynamic config',\n  // An offer-landing button's inline click handler calls a chat-widget method that does not exist\n  // when the widget has not loaded (often in in-app browsers where it never initializes). The frame\n  // originates from the page rather than the widget's CDN, so the URL deny list does not catch it.\n  'Gladly.show is not a function',\n  'Failed to fetch dynamic configuration',\n  'Failed to fetch configuration for appID',\n  // Gladly's chat SDK code-splits its bundle, and on a flaky connection (common in mobile in-app\n  // and privacy browsers) one of its chunk requests to their CDN drops mid-flight, so the SDK's own\n  // runtime throws a chunk-load failure that it logs to the console. The throw carries no\n  // resolvable stack frame, only the CDN url embedded in the message text, and its culprit is our\n  // own page, so the deny list keyed on their CDN url cannot catch it. It is the vendor's own\n  // bundle and an ephemeral network outcome we cannot fix, so match the distinctive chunk-loader\n  // path and drop it.\n  'cdn.gladly.com/assets/chat-sdk'\n];\n\nconst klaviyoErrors = [\n  // Issues with running custom klaviyo next to Klaviyo's theme app embed block, these are usually\n  // temporary, not important, but it is a console warning that causes spam\n  'Already loaded for account',\n  // Klaviyo error from post_identification_sync\n  'Failed to send bulk events',\n  // Klaviyo's own script logs this console warning when it decides not to track a visitor, which\n  // the console integration captures. It fires when Klaviyo flags the visitor as a bot (headless\n  // browsers, crawlers) and disables tracking, so it is entirely the vendor's decision in the\n  // vendor's code, high volume, and nothing we can act on. Match the stable leading phrase and drop\n  // the noise.\n  'Klaviyo tracking is disabled',\n  // Klaviyo indexedDB error\n  'One of the specified object stores was not found',\n  // Klaviyo indexedDB error\n  'in-progress transaction',\n  // Klaviyo indexedDB error\n  'invalid security context',\n  // Klaviyo indexedDB error\n  'database file on disk',\n  // Klaviyo indexedDB error\n  'disk is full',\n  // Klaviyo indexedDB error\n  'unable to open database file',\n  // Klaviyo indexedDB error\n  'Internal error opening database',\n  // Klaviyo indexedDB error\n  'IDBObjectStoreInfo',\n  // Klaviyo indexedDB error\n  'Indexed Database',\n  // Klaviyo indexedDB error\n  '_store.supported',\n  // Klaviyo indexedDB error\n  'table in database',\n  // Klaviyo sdk error (with status 400 or 403 or etc)\n  'identify failed with status',\n  // Klaviyo indexedDB error\n  'objectStoreNames',\n  // Klaviyo indexedDB error\n  'Database deleted',\n  // Klaviyo indexedDB error\n  'The connection was closed',\n  // Klaviyo indexedDB error\n  'Connection is closing',\n  // Klaviyo indexedDB error\n  'Version change transaction',\n  // Klaviyo indexedDB error\n  'Transaction timed out',\n  // Klaviyo indexedDB error\n  'opening backing store',\n  // Klaviyo indexedDB error\n  'access the database',\n  // Klaviyo indexedDB error\n  'Error creating Records',\n  // Klaviyo indexedDB error\n  'out of memory',\n  // Klaviyo indexedDB error\n  'IDB database file',\n  // Klaviyo indexedDB error\n  'Internal error committing transaction',\n  // Klaviyo indexedDB error\n  'Backend aborted error',\n  // Klaviyo indexedDB error\n  'start SQLite',\n  // Klaviyo indexedDB error\n  'mutation operation was attempted',\n  // Klaviyo indexedDB error\n  'exceeded its quota limitations'\n];\n\nconst axonErrors = [\n  'Error: Event ID mismatch v2',\n  'Gateway Time-out 504',\n  'SyntaxError: Unexpected identifier \\'Promise\\'. Expected \\';\\' after variable declaration.',\n  'Can\\'t find variable: webkit'\n];\n\nconst tryNowErrors = [\n  'window.waitForShopifyToLoad is not a function',\n  'Failed to update cart attributes: 502 Bad Gateway',\n  'function is not a constructor (evaluating \\'new AudioBuffer({length:2e3,sampleRate:44100})\\')',\n  'Member PerformanceObserverInit.entryTypes is required and must be an instance of sequence',\n  'Failed to update cart attributes: 500 Internal Server Error',\n  'Array.from requires an array-like object - not null or undefined',\n  'Failed to update cart attributes: 404 Not Found',\n  'Received status 502 fetching cart',\n  'TryNow did not initialize within the specified timeout',\n  'onTrynowReady is not defined',\n  'Cannot read properties of undefined (reading \\'initialize\\')',\n  'undefined is not an object (evaluating \\'window.trynow.initialize\\')'\n];\n\nconst postHogErrors = [\n  '[PostHog.js] You have already initialized PostHog! Re-initializing is a no-op',\n  'Unable to process event: toJSON,147,function(i){t&&t(i),n(i)}',\n  'Unterminated regular expression literal \\'/(aquos-tv[\\w ]+)\\'',\n  'Unterminated regular expression literal \\'/fil|che|ra\\'',\n  'Empty or invalid request undefined'\n];\n\nconst clarityErrors = [\n  'Cannot use \\'in\\' operator to search for \\'36\\' in null',\n  'Error CL001: Multiple Clarity tags detected.',\n  // The Microsoft Clarity app embed puts an inline snippet on the page that loads Shopify's consent\n  // tracking API and, in the load callback, calls the marketing consent method without checking\n  // that the customer privacy object exists. On some loads it does not, so the call throws inside\n  // the app's inline script. The frame resolves to the page itself rather than to the Clarity\n  // bundle, so the deny url entry for Clarity never sees it. Each engine words the error\n  // differently, so there is one entry per engine. The Firefox and Safari wordings carry the\n  // snippet's own expression. The Chrome wording does not, so it is the one entry that could also\n  // match a different script.\n  'Cannot read properties of undefined (reading \\'marketingAllowed\\')',\n  'can\\'t access property \"marketingAllowed\", c.Shopify.customerPrivacy is undefined',\n  'c.Shopify.customerPrivacy.marketingAllowed is not a function'\n];\n\nconst rivoErrors = [\n  'Cannot read properties of undefined (reading ' +\n  '\\'loyalty_page_vip_tiers_progress_column_subtitle\\')',\n  'Cannot read properties of undefined (reading ' +\n  '\\'loyalty_page_vip_tiers_progress_column_title\\')',\n  'Cannot read properties of undefined (reading ' +\n  '\\'loyalty_page_vip_tiers_logged_in_title\\')',\n  'Cannot read properties of null (reading \\'tagName\\')',\n  'Cannot read properties of undefined (reading \\'loyalty_page_ways_to_earn_title\\')',\n  'Cannot read properties of undefined (reading \\'loyalty_page_vip_tier_2_threshold_text\\')',\n  'Cannot read properties of undefined (reading \\'loyalty_page_ways_to_redeem_title\\')',\n  'Cannot read properties of undefined (reading \\'loyalty_page_vip_tiers_logged_out_title\\')',\n  'Cannot read properties of undefined (reading \\'loyalty_page_vip_tiers_logged_out_subtitle\\')',\n  'Cannot read properties of undefined (reading \\'loyalty_page_ways_to_redeem_subtitle\\')',\n  'Cannot read properties of undefined (reading \\'loyalty_page_ways_to_earn_subtitle\\')',\n  'Cannot read properties of undefined (reading \\'loyalty_page_vip_tier_1_threshold_text\\')',\n  'Cannot read properties of undefined (reading \\'loyalty_page_vip_tiers_logged_in_subtitle\\')',\n  'Cannot read properties of undefined (reading \\'loyalty_page_rewards_no_rewards\\')',\n  'Cannot read properties of undefined (reading \\'loyalty_page_explainer_logged_in_title\\')',\n  'Cannot read properties of undefined (reading \\'loyalty_page_explainer_logged_in_subtitle\\')',\n  'Cannot read properties of undefined (reading \\'loyalty_page_rewards_subtitle\\')',\n  'Cannot read properties of undefined (reading \\'loyalty_page_rewards_title\\')',\n  'Cannot read properties of undefined (reading \\'loyalty_page_activity_expiration_warning\\')',\n  'undefined is not an object (evaluating ' +\n  '\\'$store.rivo_lp_translation.loyalty_page_ways_to_earn_title\\')',\n  'can\\'t access property \"loyalty_page_vip_tier_1_threshold_text\"',\n  'can\\'t access property \"loyalty_page_ways_to_redeem_title\", ',\n  'undefined is not an object (evaluating \\'$store.rivo_lp_translation[\\'loyalty_page_vip_tier_\\'' +\n  ' + (index + 1) + \\'_threshold_text\\']\\')',\n  'undefined is not an object (evaluating ' +\n  '\\'$store.rivo_lp_translation.loyalty_page_vip_tiers_logged_out_title\\')',\n  'undefined is not an object (evaluating \\'e.points_purchases.map\\')',\n  'null is not an object (evaluating \\'s.focus\\')',\n  'null is not an object (evaluating \\'e.target.parentNode.hasAttribute\\')',\n  // The same parentNode.hasAttribute fault as the WebKit phrasing above, as worded by Chrome/V8\n  // when a Rivo rewards-page modal copy-icon click fires in a Chromium in-app browser.\n  'Cannot read properties of null (reading \\'hasAttribute\\')',\n  'Alpine Expression Error: undefined is not an object (evaluating',\n  'log is not defined',\n  'index is not defined',\n  // The loyalty page bundle reads a pagination cursor off an API response without guarding for the\n  // case where the response shape is missing its metadata, throwing on the rewards activity feed.\n  // The two phrasings are the same fault as seen by Chrome and by iOS/WebKit. The leading object is\n  // a minified variable, so match only the stable property path.\n  'reading \\'next_page\\'',\n  'metadata.next_page',\n  // Rivo's loyalty scripts log this through console.error whenever one of their own API calls comes\n  // back with a non-ok status, and the console integration captures it as an event. The status\n  // varies across their backend's outcomes, server errors, rate limits, unprocessable and not-found\n  // responses, so the trailing number is left off to collapse them into one filter. It is the\n  // vendor's own request to the vendor's own backend, logged by the vendor's own code, and it fires\n  // on a large share of loyalty page loads. The event is console-captured with no stacktrace, so\n  // there is no vendor frame for the deny list to key on despite their scripts already being in it.\n  'API response status is'\n];\n\nconst searchErrors = [\n  // Shopify's predictive search suggest endpoint sometimes answers with a 200 and an empty or\n  // truncated body, typically on flaky mobile connections and in social in-app browsers. Our search\n  // input parses that body as JSON, and the parser throws on the missing input. These messages are\n  // the end-of-input signatures as worded by WebKit, by V8, and by Firefox, which fire only on an\n  // empty or truncated body. A genuinely malformed but complete response throws a different\n  // unexpected-token message instead, so a real Shopify response-shape regression still surfaces.\n  // It is an ephemeral networking outcome we cannot fix, so drop the noise.\n  'Unexpected EOF',\n  'Unexpected end of JSON input',\n  'unexpected end of data',\n  // The same suggest endpoint sometimes answers with a 502 gateway error. Our search input throws\n  // on the non-ok response and logs it through the console, which the console integration captures.\n  // The request is well formed, so this is a transient fault on Shopify's side we cannot fix.\n  'Received status 502 fetching search results'\n];\n\nconst shopifyErrors = [\n  // New Shopify error regarding automatic injection of Amazon Buy Now Button that we cannot do\n  // anything about so must ignore.\n  'Amazon Pay Button not able to render',\n  // Shopify web pixels strict loading error that is out of our control\n  'Failed to get ServiceWorkerRegistration objects',\n  // Shopify's web-pixels sandbox runs each pixel and app extension in its own worker that\n  // bootstraps by calling importScripts with a root-relative path. In some mobile browsers (seen on\n  // Chrome for iOS) the worker resolves that path against an opaque origin, so the URL is rejected\n  // as invalid and the worker throws a SyntaxError at load. The pixel id and content hash in the\n  // path vary per app and the frames are entirely Shopify's own web-pixels bundle served from our\n  // origin, so match the stable web-pixel path segment the message always carries and drop the\n  // noise.\n  '/web-pixels/strict/app/web-pixel-',\n  // Shopify's own discount validation messages, surfaced verbatim. When a cart-update call to apply\n  // a discount fails, the ajax api overwrites the thrown error's message with the response body\n  // message Shopify returns, so these are Shopify checkout copy that bubbles up without\n  // interpretation, not strings our code authors. They are routine user input outcomes rather than\n  // programming errors, and frequent enough that filtering them here beats filtering on the\n  // backend.\n  'Cart requirements not met for discount code',\n  'Unable to find a valid discount matching the code entered',\n  'Unable to apply this discount code',\n  'This discount is not valid anymore',\n  // Shopify\n  'Bugsnag',\n  // Shopify\n  'Shop is not configured to block privacy regulation',\n  // Shopify\n  '[SPB]',\n  // Shopify\n  'ppxo_',\n  // A very frequent bug with Shopify's Shopify Pay React code\n  'Consumer used without a Provider',\n  // Weird warnings from Shopify Pay\n  'js_v1.',\n  '[getFeatureFlag.fail]',\n  '[merge_features.fail]',\n  // Shopify Monorail\n  'Retry count of 5 exceeded',\n  // Shopify's telemetry pipeline logs this when an event post to its edge endpoint is rejected,\n  // most often a 400 for a bot or otherwise invalid user agent (Chrome-Lighthouse and similar) or\n  // an ephemeral network failure, and it now surfaces from their privacy-banner bundle. Shopify\n  // ships the message both with and without the article (\"Error producing to the Monorail Edge\"),\n  // so an exact-phrase filter misses the variant carrying the article. It is Shopify's own code we\n  // cannot fix and it fires on a large share of loads, so match the distinctive endpoint name to\n  // collapse every wording and source variant and drop the noise.\n  'Monorail Edge',\n  // Shopify's perf-kit bundle reads its configuration off the data attributes of its own script\n  // tag, and throws when the application attribute is empty. It catches that itself and logs the\n  // failure to the console, so nothing on the page breaks and we only lose Shopify's own timing\n  // telemetry for that load. We already deny the bundle by url, but that cannot catch this, because\n  // the console shape arrives with no stack frame for the url list to read. Seen in embedded mobile\n  // browsers, where injected or rewritten markup is the likely reason the attribute went missing.\n  'Error initializing PerfKit',\n  // Shopify's Shop Promise bundle, the delivery promise widget on product pages, fetches an\n  // experiment flag from Shopify's own site with a short timeout. When that request runs long it\n  // aborts, and the bundle logs the failure through the console, which the console integration\n  // captures as an event. It is Shopify's own code and we cannot fix it. The url deny list cannot\n  // catch it, because a console capture's innermost frame is our own Sentry bundle rather than\n  // theirs, so match the distinctive log prefix the bundle puts on the message.\n  '[Verdict NetworkFetcher]',\n  // Shopify Boomerang\n  '_boomrl',\n  // A console warning from Shopify pixel that mysteriously started happening recently\n  'getShopPrefs is deprecated',\n  // Shopify library\n  '[bugsnag-light]',\n  // Shopify library\n  'OpenTelemetryClientError',\n  // New shopify analytics library that has routine errors and we cannot do anything about it\n  'Invalid attempt to call recordCounter outside of context.',\n  'Invalid attempt to call notify outside of context.',\n  // Error loading Shopify's customer privacy API, which is not critical and we cannot do anything\n  // about it\n  'Error loading Shopify customer privacy API',\n  // Shopify's own customer-privacy bundle logs this console deprecation warning when it auto-\n  // applies a data-sale opt-out at initialization. For a visitor in a CCPA-style region whose\n  // browser sends a Global Privacy Control signal, the bundle honors that signal by internally\n  // calling one of its own deprecated consent methods, and the console integration captures the\n  // resulting warning. So it fires on ordinary page loads rather than only the opt-out page, on the\n  // share of traffic from privacy browsers that send the signal. The message body is a generic\n  // \"this method is deprecated\" sentence, so match on the distinctive documentation path that only\n  // this warning carries. It is Shopify's own code we cannot change, so drop the high-volume noise.\n  'shopify.dev/docs/api/customer-privacy',\n  // Shopify's storefront feature loader logs this when one of its own injected scripts (such as the\n  // consent tracking API) fails to download from their CDN, typically an ephemeral network failure\n  // in mobile browsers. The frames are entirely Shopify's loader code, it fires on a large share of\n  // page loads, and we cannot fix it, so drop the console noise.\n  'Error loading Shopify features',\n  // The same Shopify storefront feature loader rejects with this when one of its own script tags\n  // fails to download from their CDN (the shop-js modules such as user recognition and consent\n  // tracking). This is the loader's rejected error itself, surfaced through Sentry's event-listener\n  // instrumentation rather than the console, so it slips past the message above. The trailing\n  // script URL varies per feature, so match the stable prefix to collapse the variants. It is an\n  // ephemeral network failure in Shopify's own loader code that we cannot fix, so drop the noise.\n  'load error: https://cdn.shopify.com/shopifycloud',\n  // Shopify's native consent banner script decodes cookies naively, so any visitor whose browser\n  // holds a cookie with a malformed percent-encoding makes it throw a URI malformed error while\n  // initializing. It is Shopify's own code and we cannot fix it, so ignore the noise.\n  'Error initializing banner',\n  // Shopify's injected consent tracking code warns when it cannot initialize, appending a reason\n  // that is frequently the literal undefined. It is the vendor's own script, fires on a large share\n  // of page loads, and we cannot fix it, so match the stable prefix and ignore the noise. The\n  // trailing reason is omitted so the variants collapse to one filter.\n  'Unable to initialize Shopify Consent Tracking API',\n  // Shopify injects its hot reload client into development and preview themes only, never into the\n  // published storefront, and that client narrates its own startup through the console. When it is\n  // loaded outside a live theme dev session there is no port for it to connect to, so it announces\n  // that it is standing down, and the console integration captures the message as an event. It is\n  // developer tooling talking to developers, so none of it is worth a dashboard entry even though\n  // the only message seen so far is the no-port one. Match the client's own log prefix so every\n  // message it emits collapses into this one filter. Since the client never runs on the published\n  // theme, this can only ever drop events tagged to the development environment.\n  '[HotReload]'\n];\n\nconst growthBookErrors = [\n  // GrowthBook's feature-repository fetches our feature definitions as it initializes, and throws a\n  // generic \"HTTP error: <status>\" whenever that fetch comes back non-ok, seen as a 403. It reaches\n  // us only because our own wrapper catches it and logs it through the console, which the console\n  // integration captures. The throw resolves to the GrowthBook library bundled inside one of our\n  // theme assets rather than a vendor CDN url, so the deny list cannot key on it. It is the vendor\n  // library's own thrown error and an outcome we cannot fix, so match the stable prefix to collapse\n  // every status.\n  'HTTP error:'\n];\n\nconst globalEErrors = [\n  // Global-E fetch hook error. Global-E's javascript overwrites global fetch, and in doing so, it\n  // incorrectly assumes that fetch works as normal, and it clones the request object, but not all\n  // requests can be cloned, because we only partially polyfill fetch, so this completely breaks all\n  // fetches in some older browsers. Global-E is not interested in fixing the error. The only option\n  // is to stop using Global-E. For now this error is just spam and for now we cannot support older\n  // browsers because of Global-E.\n  'req.clone is not a function'\n];\n\nconst attentiveErrors = [\n  // Attentive loads its own gtag. Attentive's gtag logic has routine errors. We cannot do anything\n  // about this error and Attentive will not fix it, so just ignore it.\n  'b.container[a]'\n];\n\nconst tiktokErrors = [\n  // Tiktok console warning\n  'This version has Break Change',\n  // A bare console warning logged by the ad-network SDK injected into the in-app browser WebView\n  // that renders TikTok ad landing pages. The SDK tries to lock down an object it cannot, then\n  // warns about it. It carries no stacktrace and is only captured because of the CaptureConsole\n  // integration. It is third party code we cannot fix, so ignore the noise.\n  'Cannot freeze',\n  // TikTok's in-app browser offers to autofill a visitor's saved contact details into forms on any\n  // page opened inside it, a feature of the app rather than anything we integrate with. It ships as\n  // a script the webview injects natively, so it has no source url and cannot be fetched or read\n  // from our side. That script scans our pages, reads a property off a value that is undefined, and\n  // throws, then logs the failure through the console itself, which is the only reason the console\n  // integration ever sees it. Why the value is undefined is not something we can determine without\n  // the script's source, so treat that as unknown. Two shapes of the throw show up, one on the\n  // autofill capability check and one on the contact field list, and the object name is minified\n  // and rotates between the vendor's rebuilds, so these match the property name alone. The only\n  // resolvable frame is our own document url rather than a vendor script, so the deny list cannot\n  // catch it. It fires on a large share of loads from that browser, the failure is contained to\n  // TikTok's own autofill, and we cannot fix natively injected code, so ignore the noise.\n  'canAutoFill',\n  'contactInfoFields',\n  // The same injected autofill script also narrates its own routine activity through the console,\n  // such as its controller becoming ready, a native callback being routed, and a checkout url being\n  // blocked. These are status lines rather than failures, and every one carries the same bracketed\n  // prefix, so match on that.\n  '[AutofillPlugin]',\n  // TikTok's in-app browser also injects a login and payment plugin that logs through the console\n  // as it watches the page, such as each click a visitor makes and its detector skipping or timing\n  // a run. These are status lines rather than failures, and every one carries the same bracketed\n  // prefix, so match on that.\n  '[login-payment]'\n];\n\nconst hCaptchaErrors = [\n  // hCaptcha's fingerprinting code runs inside Android in-app browsers and tries to call a native\n  // Java bridge that is not present, then logs the failure to the console. We cannot fix the third\n  // party code or the embedded browser, so just ignore it.\n  'Java bridge method invocation error',\n  // hCaptcha logs this to the console when its own request to hCaptcha is throttled or fails on a\n  // flaky connection, which the console integration captures. It is an ephemeral outcome in the\n  // vendor's own code on the data-sale opt-out page that we cannot fix, so drop the noise.\n  'Rate limited or network error'\n];\n\nconst fairingErrors = [\n  // fairing performance metric\n  'domContentLoadedEventEnd'\n];\n\nconst postPilotErrors = [\n  // PostPilot's SiteMatch pixel reads a stored timestamp off a storage object on DOMContentLoaded\n  // without guarding for the case where that object is null. In restrictive in-app browsers\n  // (Android WebView from social apps) where web storage is unavailable, the read targets null and\n  // throws. It is the vendor's pixel code that we cannot fix and it only degrades their own\n  // tracking in those browsers, so ignore the noise.\n  '_pxTimeBeforeUnload'\n];\n\nconst shopMyErrors = [\n  // ShopMy, our creator-commerce affiliate vendor, logs status lines through console.info, and the\n  // console integration turns each info-level log into a Sentry event. They carry no stacktrace,\n  // the text is entirely the vendor's own log line, and they fire on a large share of loads. It is\n  // not our code and there is nothing to fix, so drop every event whose message the vendor prefixes\n  // with \"ShopMy:\".\n  /^ShopMy:/,\n  // The one ShopMy status line written without the colon, so the prefix above misses it. Their\n  // script logs it when one attempt at copying the click id into the cart fails, then retries, and\n  // logs a \"ShopMy:\" line only if the final attempt fails too. It mostly fires in in-app browsers.\n  /^ShopMy failed to set click:/\n];\n\nconst tangentErrors = [\n  // Tangent, the vendor powering our hair quiz, runs a selfie face-analysis step that pulls its\n  // MediaPipe face-detection assets (the WASM runtime and the model file) from its own host as the\n  // step starts. On a flaky connection those fetches fail with a TypeError, and Tangent's inline\n  // bundle logs each one through the console, which the console integration captures. The event is\n  // a console-captured message with no stacktrace, and the only url it carries is the fetched asset\n  // in the message text rather than a resolvable vendor frame, so neither the deny list nor the\n  // existing quiz-inline deny url can catch it. It is the vendor's own code and an ephemeral\n  // network outcome that only degrades their quiz, so match the vendor host and drop the noise.\n  'a.tangent.ai'\n];\n\n/**\n * A third-party Shopify app bundles Apollo Client, a GraphQL client we do not ship ourselves, and\n * constructs it with the deprecated uri option rather than a dedicated link, so Apollo logs a\n * deprecation warning when the client initializes and the console integration captures it. The\n * readable text lives only on the linked error page; the captured message is Apollo's minified\n * production form, which always carries this documentation link regardless of which invariant\n * fired. Every Apollo message we see originates from vendor code we cannot change, so match the\n * stable link path and drop the noise.\n */\nconst apolloErrors = [\n  'go.apollo.dev/c/err'\n];\n\n/**\n * Sentry's own bookkeeping surfaced as an error. When one of Sentry's event processors decides not\n * to send an event it rejects internally with a bare object carrying only a message, and that\n * rejection reaches the browser's global error handler, where Sentry re-captures it as a fresh\n * exception. Because the captured value is a plain object rather than an Error, Sentry labels it by\n * its keys, which is the only text a message filter can see; the descriptive reason lives in the\n * serialized extra data out of reach here. It carries no actionable stacktrace and is Sentry\n * catching its own dropped-event bookkeeping, so ignore it. The single-key form keeps this narrow\n * to this exact case rather than every object capture.\n */\nconst sentryErrors = [\n  'Object captured as exception with keys: message'\n];\n\n/** Ephemeral networking failures from a visitor's connection, not programming errors. */\nconst networkErrors = [\n  // Ephemeral networking error, this is not a programming error, this is just some visitor's\n  // problem with their Internet connection where a fetch call fails\n  'Load failed',\n  // Ephemeral networking error, this is not a programming error, this is just some visitor's\n  // problem with their Internet connection where a fetch call fails\n  'Failed to fetch',\n  // Common temporary networking errors that happen during fetch calls\n  'NetworkError',\n  // Routine fetch error\n  'Network Error',\n  // fetch hook error\n  '[object ProgressEvent]',\n  // Routine custom errors from fetch from scraped/cached site\n  'Received status code 404',\n  // This commonly occurs because of pending fetches during page navigation\n  'The operation was aborted',\n  // This commonly occurs because of pending fetches during page navigation\n  'AbortError'\n];\n\n/**\n * A dynamically imported module chunk failed to load. With async code splitting on, a flaky\n * connection (common in mobile in-app browsers) drops the chunk request mid-flight and the import\n * promise rejects. These carry no stacktrace, so the url deny list cannot catch them. The three\n * phrasings are the same fault as worded by WebKit, by Firefox, and by Chrome. It is an ephemeral\n * networking outcome rather than a programming error.\n */\nconst dynamicImportErrors = [\n  'Importing a module script failed',\n  'dynamically imported module'\n];\n\n/** Injected extension and content-script noise, mostly seen via the console integration. */\nconst browserExtensionErrors = [\n  // The error message is generated by Sentry when it encountered an unhandled rejection that is not\n  // an instanceof Error. We cannot fix these issues. We avoid them by convention because in our\n  // convention this kind of code is strictly forbidden. So these only happen because of bad third\n  // party code such as Microsoft Outlook or a buggy extension. Event `CustomEvent`\n  // (type=unhandledrejection) captured as promise rejection\n  'captured as promise rejection',\n  // Unknown error that is very frequent and appears to be related to Microsoft Outlook's web\n  // extension interacting with our site in some way, but we are not sure how. This error is not a\n  // programming error in our code, it is some kind of bad interaction between the extension and our\n  // site, but we cannot do anything about it, so we just ignore it.\n  'hxp-chat-suppression',\n  // unknown extension\n  'PerformanceMonitoringJavascriptInterface',\n  // Unknown browser extension that routinely errors\n  'ResizeObserver loop limit exceeded',\n  // We do not use this, so this error largely comes from extensions, so it is safe to ignore\n  // See https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver#observation_errors\n  'ResizeObserver loop completed with undelivered notifications.',\n  // Unknown browser extension, possibly PayPal Honey\n  'PopWidgetInterface',\n  // A browser extension's injected code calls the WebExtensions messaging API against a tab that no\n  // longer exists, throwing an unhandled rejection with no stacktrace. It is extension code we\n  // cannot fix, so ignore the noise.\n  'Invalid call to runtime.sendMessage()',\n  // cspell:ignore cobrowse\n  // buggy browser extension from cobrowse\n  'cobrowseIOgetRedactedElementsBounds',\n  // Bad extension\n  'window.webkit.messageHandlers',\n  // A browser extension (or other injected content script) tries to lock down the clipboard write\n  // method to intercept copies, but the property was already made non-configurable by something\n  // else, so it cannot and logs a warning instead. It is injected third party code with no\n  // stacktrace, captured only via the console integration, and it fires on a large share of page\n  // loads, so ignore the noise.\n  'writeText interception is disabled',\n  // https://github.com/getsentry/sentry-javascript/issues/3440#issuecomment-865857552\n  'Object Not Found Matching Id',\n  // A script called TouchBridge, installed into the browser through ChromeXt on Android, narrates\n  // its fake touch gestures through the console in Chinese, a couple of lines per gesture. The\n  // console integration turns each of those lines into an event. Somebody installed the script in\n  // their own browser to automate the page, so there is nothing here for us to fix. Every line it\n  // logs carries the same bracketed prefix.\n  '[GM_touchBridge]',\n  // A script logging under a TouchBridgeAuto prefix shows up in Android webviews the same way, in\n  // Chinese, starting with a line saying it has loaded. We think it is a newer build of the same\n  // TouchBridge script under a new name, unconfirmed. It is somebody's automation either way.\n  '[TouchBridgeAuto]'\n];\n\n/** In-app browser and privacy-browser injected scripts (Instagram, Facebook, DuckDuckGo, Brave). */\nconst inAppBrowserErrors = [\n  // Instagram IAB\n  '__AutoFillPopupClose__',\n  // Instagram bug in their injected code\n  // https://connect.facebook.net/en_US/iab.autofill.enhanced.js\n  '_AutofillCallbackHandler',\n  // Unknown, possibly Instagram IAB\n  '_pcmBridgeCallbackHandler',\n  // Might be from injected code from Facebook IAB\n  'Java object',\n  // Also probably from FB IAB\n  'javaEnabled',\n  // A fetch/XHR wrapper injected by a mobile in-app browser instruments the global fetch, and its\n  // debug check references an interface global its own injection never defined, throwing before the\n  // real fetch runs. The failing frames are the injected script's own eval'd code with no source\n  // URL, so the url deny list cannot catch it, and it reaches us only because our own catch logs\n  // the rejection through the console integration. The identifier has no public footprint, so it\n  // stays unattributed, but it only degrades the injected instrumentation's own tracking and we\n  // cannot fix third party injected code, so ignore the noise.\n  'XHRInterface is not defined',\n  // Facebook's in-app browser injects a native performance logger that posts navigation timing back\n  // to the host app over a Java bridge on unload. On some Android devices that bridge call raises a\n  // Java exception, which the injected script surfaces as a thrown error, reaching us only because\n  // Sentry patched the unload listener it runs inside. The frames are entirely the injected script\n  // and we cannot fix the embedded browser, so drop the noise by its distinctive message.\n  'Java exception was raised during method invocation',\n  // Brave on iOS injects its own content scripts into every page, and a couple of them throw when\n  // the globals they expect are not present. One assigns to the crypto wallet global, the other\n  // reads the reader mode object Brave inherits from its Firefox iOS lineage. We ship neither\n  // global, the failing frames are entirely Brave's injected code, and we cannot fix the browser,\n  // so drop the noise.\n  'window.ethereum.selectedAddress',\n  'window.__firefox__.reader'\n];\n\n/**\n * Firefox surfaces a generic Gecko internal-failure code with no message text through the global\n * error handler. It fires only in Firefox and only from third party scripts, and the culprit varies\n * across unrelated vendors (HUMAN/PerimeterX bot protection, a loyalty app asset, a widget\n * initializer), typically when the vendor's code hits a browser-internal API failure such as\n * restricted storage or cookie access. The common thread is the failure code, not any one script,\n * so a url filter would be endless whack-a-mole across vendors. Our own code never throws this, the\n * frames are entirely the vendor's, and it only occurs on a browser we cannot fix, so match the\n * code and drop the noise.\n */\nconst firefoxErrors = [\n  'NS_ERROR_FAILURE'\n];\n\n/** Buggy scraper and bot scripts, including ones circumventing bot protection. */\nconst scraperBotErrors = [\n  // Some kind of scraper/bot\n  'Can\\'t find variable: IFrameMessageHandler',\n  // Some kind of scraper circumventing bot protection that has bugs\n  // cspell:ignore converShodowDOM\n  'converShodowDOM',\n  // Some kind of scraper circumventing bot protection that has bugs\n  'getDocHTMLAndText',\n  // Injected code wraps attachShadow and other element methods, likely to force shadow roots open\n  // so it can read inside them, and narrates each call through console.info. The console\n  // integration turns every line into an event, one issue per custom element. The wrapper's frames\n  // are an anonymous injected script, and it runs alongside a patched Function.prototype.toString.\n  // We think it is a browser extension or automation tool, unconfirmed. Either way it is injected\n  // code and not ours to fix. Every line it logs carries the same bracketed prefix.\n  '[v3-piercer]'\n];\n\n/** Assorted third party and unsupported-browser noise with no better home. */\nconst miscErrors = [\n  // Ignore \"Cannot read properties of undefined (reading 'domInteractive')\". Not sure exactly what\n  // keeps triggering this error, I think it is something interaction with the performance api in a\n  // browser that does not support the performance api.\n  'reading \\'domInteractive\\'',\n  // Unknown\n  'startGetFields',\n  // Something is constantly console.error logging this event, not our code\n  'XMLHttpRequestProgressEvent',\n  // Routine cookie blocking is not an error\n  'Failed to set the \\'cookie\\'',\n  // Routine video autoplay error\n  'The request is not allowed by the user agent',\n  // Old Safari (iOS below 14.5) cannot parse the class field syntax our bundles ship, so the whole\n  // snippet script fails at parse time. Those browsers are already below our support floor, so this\n  // is just noise from devices we do not support.\n  'Unexpected token \\'=\\'. Expected an opening \\'(\\' before a method\\'s parameter list.'\n];\n\n/**\n * Errors we never care to know about. Some come from Shopify. Some come from the content scripts\n * injected by in-app browsers such as Instagram. Some come from third parties that have broken\n * code. Some must be ignored because we made the decision to use the CaptureConsole integration,\n * and some third parties log warnings on almost every page load, leading to excessive events.\n */\nexport const ignoreErrors: BrowserOptions['ignoreErrors'] = [\n  ...routineShopifyCartErrors,\n  ...routineRecommendationErrors,\n  ...routineYotpoErrors,\n  ...searchErrors,\n  ...klaviyoErrors,\n  ...gladlyErrors,\n  ...axonErrors,\n  ...tryNowErrors,\n  ...postHogErrors,\n  ...clarityErrors,\n  ...rivoErrors,\n  ...shopifyErrors,\n  ...growthBookErrors,\n  ...globalEErrors,\n  ...attentiveErrors,\n  ...tiktokErrors,\n  ...hCaptchaErrors,\n  ...fairingErrors,\n  ...postPilotErrors,\n  ...shopMyErrors,\n  ...tangentErrors,\n  ...apolloErrors,\n  ...sentryErrors,\n  ...networkErrors,\n  ...dynamicImportErrors,\n  ...browserExtensionErrors,\n  ...inAppBrowserErrors,\n  ...scraperBotErrors,\n  ...firefoxErrors,\n  ...miscErrors\n];\n","import type { BrowserOptions, Event } from '@sentry/browser';\n\n/**\n * Derived from the browser options rather than imported directly so it resolves against the same\n * core types the SDK uses internally.\n */\ntype Integration = Extract<BrowserOptions['integrations'], unknown[]>[number];\n\n/**\n * Drops the stack overflow errors thrown by the image-detection code that the Google app's in-app\n * browser injects into the page. That injected code runs at our origin, so Sentry blames our theme,\n * and its generic maximum-call-stack message slips past message-based filtering. The injected\n * function names in the stack are the only reliable signal, so this matches on those.\n */\nexport const injectedRecursionFilterIntegration: Integration = {\n  name: 'InjectedRecursionFilter',\n  processEvent(event: Event) {\n    try {\n      return processEventUnsafe(event);\n    } catch (error) {\n      return event;\n    }\n  }\n};\n\n/**\n * Returns null to drop an event whose stack names one of the injected functions, and the event\n * itself otherwise. Throws freely, since the caller swallows anything that goes wrong.\n */\nfunction processEventUnsafe(event: Event) {\n  const injectedFunctions = [\n    'findTopmostVisibleElement',\n    'checkForImage',\n    'isImage'\n  ];\n\n  const values = event.exception?.values;\n  if (!Array.isArray(values)) {\n    return event;\n  }\n\n  for (const value of values) {\n    const frames = value.stacktrace?.frames;\n    if (!Array.isArray(frames)) {\n      continue;\n    }\n\n    for (const frame of frames) {\n      if (injectedFunctions.includes(frame.function)) {\n        return null;\n      }\n    }\n  }\n\n  return event;\n}\n","import type { BrowserOptions, Event } from '@sentry/browser';\n\n/**\n * Derived from the browser options rather than imported directly so it resolves against the same\n * core types the SDK uses internally.\n */\ntype Integration = Extract<BrowserOptions['integrations'], unknown[]>[number];\n\n/**\n * The globals worth checking for a wrapper. Most are the iteration and construction building blocks\n * that libraries rely on, so replacing one silently corrupts unrelated code, which is how a\n * tampered environment breaks a carousel mount or similar init deep in vendor code. Fetch is the\n * odd one out and is expected to be wrapped, since several storefront vendors chain-wrap it on most\n * page loads, so read a wrapped fetch as routine and a wrapped primitive as an anomaly. Stored as\n * dotted paths and resolved fresh from the global on each event, since a stored reference would\n * keep pointing at the original function after a later reassignment and always report clean.\n *\n * getAttribute is here for a narrower reason. The carousel parses an options attribute off the\n * carousel root while constructing, and an absent attribute reads as null and parses fine, so a\n * construction that fails on invalid JSON means something handed it a value that is not in our\n * markup. We do not know what does that yet, and watching this is how we find out the next time it\n * happens.\n */\nconst watchedPaths = [\n  'Object.keys',\n  'Object.getOwnPropertyNames',\n  'Object.assign',\n  'Object.defineProperty',\n  'Object.freeze',\n  'Object.create',\n  'Array.prototype.forEach',\n  'Array.prototype.map',\n  'Array.prototype.filter',\n  'Array.prototype.slice',\n  'Array.prototype.reverse',\n  'JSON.parse',\n  'JSON.stringify',\n  'Function.prototype.bind',\n  'Function.prototype.toString',\n  'Element.prototype.getAttribute',\n  'fetch'\n];\n\n/**\n * Truncated wrapper source memoized by function identity, so a wrapper that stays installed across\n * many events is stringified and truncated only once rather than on every event.\n */\nconst sourceCache = new WeakMap<object, string>();\n\n/**\n * Attaches a context block to every captured event listing each watched global and whether it is\n * still native, with the wrapper's source for the ones that are not, so triage can see exactly what\n * replaced it.\n *\n * Several faults we see are unreachable in a clean browser and only happen when an injected script\n * or a browser extension has replaced a primitive that a library assumed was native, breaking\n * unrelated code far from the patch. The carousel mount crash is one such case, inferred from\n * source reading rather than observed. This makes that condition visible on the event itself, so\n * the next mystery does not need the same detective work. Every watched global gets a row even when\n * it is clean, because a block that only appeared on a hit left a clean browser looking the same as\n * an integration that never ran.\n */\nexport const monkeyPatchIntegration: Integration = {\n  name: 'MonkeyPatch',\n  processEvent(event: Event) {\n    try {\n      processEventUnsafe(event);\n    } catch (error) {\n      // Enrichment only. A failure to inspect the environment must never drop or block the event.\n    }\n\n    return event;\n  }\n};\n\n/**\n * Reads each watched global and writes the result onto the event as a context block. Throws freely,\n * since the caller swallows anything that goes wrong.\n *\n * Detection stringifies each target through Function.prototype.toString and checks for the native\n * code marker. A native function carries that marker, a wrapper stringifies as ordinary source. If\n * that toString is itself replaced it simply shows up as patched like any other target, so we do\n * not bother hardening against a wrapper that forges a native marker to cover its tracks, since\n * this is a debugging aid rather than tamper detection. The source text is the function body only,\n * not its closure state, so no runtime values leak, and it is truncated because minified wrappers\n * can be large.\n *\n * The reading is taken per event rather than once at load, because the wrappers install\n * asynchronously after the page loads and a reading taken at init would frequently predate them and\n * report clean. It is a snapshot at capture time either way, so a patch installed during the\n * failing operation but reverted before capture is missed, as is the true state behind an event\n * queued before init and replayed during it.\n */\nfunction processEventUnsafe(event: Event) {\n  const reading: Record<string, string> = {};\n\n  for (const path of watchedPaths) {\n    const target = resolvePath(path);\n    if (typeof target !== 'function') {\n      reading[path] = 'missing';\n      continue;\n    }\n\n    const source = Function.prototype.toString.call(target);\n    if (source.includes('[native code]')) {\n      reading[path] = 'native';\n      continue;\n    }\n\n    let truncated = sourceCache.get(target);\n    if (!truncated) {\n      truncated = source;\n      if (truncated.length > 500) {\n        truncated = truncated.slice(0, 500) + '…';\n      }\n\n      sourceCache.set(target, truncated);\n    }\n\n    reading[path] = truncated;\n  }\n\n  event.contexts = event.contexts || {};\n  event.contexts['Monkey Patching'] = reading;\n}\n\n/**\n * Walks a dotted path from the global object, guarding each hop, and returns the current value or\n * undefined if any segment is missing.\n */\nfunction resolvePath(path: string) {\n  const parts = path.split('.');\n  let value: unknown = window;\n  for (const part of parts) {\n    if (value === null || value === undefined) {\n      return undefined;\n    }\n\n    value = (<Record<string, unknown>>value)[part];\n  }\n\n  return value;\n}\n","import type { BrowserOptions, Event, StackFrame } from '@sentry/browser';\n\n// cspell:ignore Zalgo\n\n/**\n * Derived from the browser options rather than imported directly so it resolves against the same\n * core types the SDK uses internally.\n */\ntype Integration = Extract<BrowserOptions['integrations'], unknown[]>[number];\n\n/**\n * Drops the noise from PayPal's Buttons SDK when its promise dispatcher recurses until the stack\n * overflows. That dispatcher can re-enter itself resolving and rejecting the same chain, and when\n * it does the browser throws a maximum-call-stack error whose frames are entirely PayPal's own\n * bundle loaded from paypal.com. It is PayPal's bug in third-party code we cannot fix, and it fires\n * on the product pages that carry the PayPal button.\n *\n * The same overflow reaches Sentry two ways, because the promise library's unhandled-rejection\n * handling does two things from one call on the same rejection. It rethrows the error inside a\n * timer, and it notifies PayPal's own handler, which logs the rejection to the console under a\n * fixed label. So one overflow produces two events at the same instant sharing a trace, and both\n * are caught here. The console one is matched by that label, which is distinctive enough to\n * attribute on its own, against the event message, the exception values, and the preserved console\n * arguments the same way the other vendor filters match their labels. The timer one arrives through\n * the browser-api instrumentation as a plain maximum-call-stack error. That wording is far too\n * generic to match on its own, so it is attributed only when the stack also contains a PayPal SDK\n * frame, which keeps a genuine first-party stack overflow surfacing normally.\n *\n * The dispatcher is ZalgoPromise, PayPal's deliberately synchronous promise library, written for\n * their cross-window messaging. An ordinary promise resolves on a later tick, so a chain unrolls\n * one link per tick and depth never matters. The catch for PayPal was that the tick is scheduled\n * with a timer, and browsers throttle timers in unfocused popups and background windows, so a\n * promise awaited across windows stalls waiting on a tick the browser keeps deferring. ZalgoPromise\n * resolves in the same call stack instead, skipping the wait. The tradeoff, which this issue is an\n * instance of, is that a deep enough chain unrolls far enough in one synchronous go to overflow the\n * stack. The name is a wink at the essay below, which calls an API that is sometimes synchronous\n * and sometimes asynchronous \"releasing Zalgo\". This library releases it on purpose, and the\n * author's own writeup of why is the first link below.\n *\n * @see https://bluepnume.medium.com/intentionally-unleashing-zalgo-with-promises-ab3f63ead2fd (the author's own rationale for resolving synchronously)\n * @see https://github.com/krakenjs/zalgo-promise (the library in the captured stack, \"release zalgo with synchronous promises\")\n * @see https://blog.izs.me/2013/08/designing-apis-for-asynchrony/ (the \"don't release Zalgo\" essay the library name winks at)\n * @see https://stackoverflow.com/a/1732454 (the most famous appearance of Zalgo in programming lore, \"the pony he comes\")\n */\nexport const paypalIntegration: Integration = {\n  name: 'PayPalFilter',\n  processEvent(event: Event) {\n    try {\n      if (isPaypalUnhandledException(event)) {\n        return null;\n      }\n\n      if (isPaypalStackOverflow(event)) {\n        return null;\n      }\n    } catch (error) {\n      // A filter that cannot run must not filter. If inspecting the event throws we never confirmed\n      // it was PayPal noise, so fall through to keeping it rather than silently discard a possibly\n      // real error.\n    }\n\n    return event;\n  }\n};\n\nfunction isPaypalUnhandledException(event: Event) {\n  // PayPal's SDK words its self-reported unhandled exception with this fixed label. It appears\n  // nowhere else in the project, so matching it alone is safe.\n  const label = 'paypal_js_sdk_v5_unhandled_exception';\n\n  const message = event.message;\n  if (typeof message === 'string' && message.includes(label)) {\n    return true;\n  }\n\n  const values = event.exception?.values;\n  if (Array.isArray(values)) {\n    for (const value of values) {\n      if (typeof value.value === 'string' && value.value.includes(label)) {\n        return true;\n      }\n    }\n  }\n\n  // The console integration preserves the original console arguments on the event, and PayPal\n  // passes the label as the first argument, so a variant titled by a generic message is still\n  // netted here.\n  const args = event.extra?.arguments;\n  if (Array.isArray(args)) {\n    for (const arg of args) {\n      if (typeof arg === 'string' && arg.includes(label)) {\n        return true;\n      }\n    }\n  }\n\n  return false;\n}\n\nfunction isPaypalStackOverflow(event: Event) {\n  const values = event.exception?.values;\n  if (!Array.isArray(values)) {\n    return false;\n  }\n\n  for (const value of values) {\n    const message = value.value;\n    if (typeof message !== 'string') {\n      continue;\n    }\n\n    if (!message.includes('Maximum call stack size exceeded')) {\n      continue;\n    }\n\n    const frames = value.stacktrace?.frames;\n    if (!Array.isArray(frames)) {\n      continue;\n    }\n\n    for (const frame of frames) {\n      if (isPaypalSdkFrame(frame)) {\n        return true;\n      }\n    }\n  }\n\n  return false;\n}\n\nfunction isPaypalSdkFrame(frame: StackFrame) {\n  // The SDK loads from a stable path on PayPal's domain. Sentry keeps the full script URL on one\n  // frame field and the path alone on another depending on how the stack was parsed, so both are\n  // checked for the path segment the URL always carries.\n  const absPath = frame.abs_path;\n  if (typeof absPath === 'string' && absPath.includes('/sdk/js')) {\n    return true;\n  }\n\n  const filename = frame.filename;\n  if (typeof filename === 'string' && filename.includes('/sdk/js')) {\n    return true;\n  }\n\n  return false;\n}\n","import type { BrowserOptions, Event } from '@sentry/browser';\n\n/**\n * Derived from the browser options rather than imported directly so it resolves against the same\n * core types the SDK uses internally.\n */\ntype Integration = Extract<BrowserOptions['integrations'], unknown[]>[number];\n\ninterface ExtraProperties {\n  /**\n   * Lowercase names of the query params whose values get masked. Matching ignores the case of the\n   * param in the url. When it is left unset or empty, every event passes through untouched.\n   */\n  names: string[];\n}\n\ntype IntegrationExtended = Integration & ExtraProperties;\n\n/**\n * Masks the values of chosen query params in the urls an event carries, meaning the page url, the\n * referrer, and navigation breadcrumbs. The param stays in the url with its value replaced, so we\n * can still tell it was there. Every failure is swallowed and the event is always kept, so this can\n * never cost us an error report.\n *\n * The SDK has its own query param filtering option, but it does not reach the url or the referrer\n * on a browser error event.\n */\nexport const redactUrlParamsIntegration: IntegrationExtended = {\n  name: 'RedactUrlParams',\n  names: [],\n  processEvent(event: Event) {\n    try {\n      processEventUnsafe(event);\n    } catch (error) {}\n\n    return event;\n  }\n};\n\nfunction processEventUnsafe(event: Event) {\n  const names = redactUrlParamsIntegration.names;\n  if (!Array.isArray(names) || names.length === 0) {\n    return;\n  }\n\n  const request = event.request;\n  if (request) {\n    request.url = redact(request.url, names);\n\n    if (request.headers) {\n      request.headers.Referer = redact(request.headers.Referer, names);\n    }\n  }\n\n  if (Array.isArray(event.breadcrumbs)) {\n    for (const breadcrumb of event.breadcrumbs) {\n      if (breadcrumb?.category === 'navigation' && breadcrumb.data) {\n        breadcrumb.data.from = redact(breadcrumb.data.from, names);\n        breadcrumb.data.to = redact(breadcrumb.data.to, names);\n      }\n    }\n  }\n}\n\n/**\n * Returns the url with the value of each named param replaced. Anything that is not a string or\n * does not parse as a url comes back untouched, and so does a url carrying none of the params.\n */\nfunction redact<T>(value: T, names: string[]) {\n  if (typeof value !== 'string') {\n    return value;\n  }\n\n  // An event carries several urls, the page url, the referrer, and the ones in each navigation\n  // breadcrumb. Parsing throws on a malformed url, and if we left that to the catch in\n  // processEvent, one bad url would stop the run and leave every url after it unredacted. Catching\n  // it here skips just the bad url and keeps going.\n  try {\n    return redactUnsafe(value, names);\n  } catch (error) {\n    return value;\n  }\n}\n\nfunction redactUnsafe(value: string, names: string[]) {\n  // Navigation breadcrumbs hold same-site urls as a bare path, so resolve against the page to parse\n  // them, and hand back the same form we were given.\n  const url = new URL(value, location.href);\n\n  const keys = Array.from(url.searchParams.keys());\n  const lowercaseKeys = keys.map(key => key.toLowerCase());\n\n  let changed = false;\n\n  // Match on the lowercase key, but write with the original key since params are case sensitive.\n  for (let index = 0; index < keys.length; index++) {\n    if (names.includes(lowercaseKeys[index])) {\n      url.searchParams.set(keys[index], 'REDACTED');\n      changed = true;\n    }\n  }\n\n  // Writing a param re-encodes the whole query string, so leave a url we did not need to touch\n  // exactly as it was.\n  if (!changed) {\n    return value;\n  }\n\n  // When we were given a full url it starts with its own origin, so hand back the full url. When we\n  // were given a bare path, the origin came from resolving against the page, so hand back just the\n  // path, query, and fragment.\n  if (value.startsWith(url.origin)) {\n    return url.href;\n  } else {\n    return url.pathname + url.search + url.hash;\n  }\n}\n","import type { BrowserOptions, Event } from '@sentry/browser';\n\n/**\n * Derived from the browser options rather than imported directly so it resolves against the same\n * core types the SDK uses internally.\n */\ntype Integration = Extract<BrowserOptions['integrations'], unknown[]>[number];\n\n/**\n * Drops the noise from Shopify's Customer Privacy API failing to write tracking consent. When we\n * record the cookie-banner experiment decision we call that API's set-tracking-consent method,\n * which wraps a fetch that propagates the choice to the Storefront API. On a flaky mobile\n * connection that fetch fails and Shopify's own injected code logs the failure, so it is a routine\n * networking blip in vendor code we cannot fix, not a fault in the theme. It fires on a large share\n * of not-yet-consented mobile loads, so it is pure cost to keep logging.\n *\n * The message and URL ignore lists cannot express this. Shopify logs the failure by passing an\n * object to the console, so the capture-console integration records the event message as the\n * useless stringified form and the real text survives only inside the captured console arguments,\n * which neither a message substring nor a deny-by-URL rule inspects. This reads those arguments and\n * matches the stable Shopify-authored prefix, so it drops the consent-write failure whatever\n * network reason the engine appends while leaving any unrelated console noise untouched.\n */\nexport const shopifyCustomerPrivacyIntegration: Integration = {\n  name: 'ShopifyCustomerPrivacy',\n  processEvent(event: Event) {\n    try {\n      return processEventUnsafe(event);\n    } catch (error) {\n      // A filter that cannot run must not filter. If inspecting the event throws we never confirmed\n      // it was noise, so keep it rather than silently discard a possibly real error.\n      return event;\n    }\n  }\n};\n\n/**\n * Returns null to drop an event whose captured console arguments carry the consent-write failure,\n * and the event itself otherwise. Throws freely, since the caller swallows anything that goes\n * wrong.\n */\nfunction processEventUnsafe(event: Event) {\n  const args = event.extra?.arguments;\n  if (!Array.isArray(args)) {\n    return event;\n  }\n\n  for (const arg of args) {\n    if (!arg) {\n      continue;\n    }\n\n    const reason = arg.error;\n    if (typeof reason !== 'string') {\n      continue;\n    }\n\n    if (reason.includes('Error while setting storefront API consent')) {\n      return null;\n    }\n  }\n\n  return event;\n}\n","import type { BrowserOptions, Event } from '@sentry/browser';\n\n/**\n * Derived from the browser options rather than imported directly so it resolves against the same\n * core types the SDK uses internally.\n */\ntype Integration = Extract<BrowserOptions['integrations'], unknown[]>[number];\n\n/**\n * Derived because the browser package does not export the exception value type on its own.\n */\ntype ExceptionValue = NonNullable<NonNullable<Event['exception']>['values']>[number];\n\n/**\n * Drops the noise from Shopify's storefront event-listener bundle, which wraps the global fetch to\n * instrument storefront events.\n *\n * It fails in two different shapes and we need to catch both.\n *\n * In the first shape something throws and the throw escapes, so the innermost frame that resolves\n * to a file is the bundle's own. A wrapped fetch rejecting is the usual cause, and a browser too\n * old to parse the modern syntax the bundle ships is another, which fails the whole script at parse\n * time. Third party app callers land here too, since their fetch failures unwind through Shopify's\n * wrapper. All of those we can recognize by the script the frames point at.\n *\n * The second shape is the one that kept reaching us. Their listener catches its own fetch failure\n * and logs a plain string to the console instead of letting an Error escape, so our console\n * integration turns it into a message event carrying no exception at all. Sentry's url deny list\n * reads the script url off a stack frame, and a message event has no frames, so the deny list never\n * gets a url to test and cannot drop it. That is why this concern lives in an integration now\n * rather than split across the ignore lists. An integration reads the whole event, so one place\n * covers both shapes and there is no guess to get wrong.\n *\n * All of it is Shopify's own code. They catch these themselves so nothing on the page breaks, and\n * it fires on a large share of page loads.\n */\nexport const shopifyShopEventsListenerIntegration: Integration = {\n  name: 'ShopifyShopEventsListener',\n  processEvent(event: Event) {\n    try {\n      return processEventUnsafe(event);\n    } catch (error) {\n      return event;\n    }\n  }\n};\n\n/**\n * Returns null to drop the event and the event itself to keep it. Assumes the event is well formed\n * and makes no attempt to survive one that is not, which is what the caller's catch is for.\n */\nfunction processEventUnsafe(event: Event) {\n  const prefix = '[shop_events_listener]';\n\n  if (typeof event.message === 'string' && event.message.includes(prefix)) {\n    return null;\n  }\n\n  const exceptions = event.exception?.values;\n  if (!Array.isArray(exceptions)) {\n    return event;\n  }\n\n  for (const exception of exceptions) {\n    // Covers the console shape arriving as an exception instead, which happens when the listener\n    // hands an Error to the console rather than a string.\n    if (typeof exception.value === 'string' && exception.value.includes(prefix)) {\n      return null;\n    }\n\n    const filename = findThrowingScript(exception);\n    if (filename?.includes('shop_events_listener')) {\n      return null;\n    }\n  }\n\n  return event;\n}\n\n/**\n * Search an exception's stackframe for the innermost named file\n */\nfunction findThrowingScript(value: ExceptionValue) {\n  const frames = value.stacktrace?.frames;\n  if (Array.isArray(frames)) {\n    for (let index = frames.length - 1; index > -1; index--) {\n      const name = frames[index]?.filename;\n      if (name && name !== '<anonymous>' && name !== '[native code]') {\n        return name;\n      }\n    }\n  }\n\n  return null;\n}\n","import type { BrowserOptions, Event } from '@sentry/browser';\n\n// Drops the noise from a long-standing defect in Shopify's web pixels bootstrap, the minified block\n// Shopify injects inline into the document head on every storefront page. We do not own that code\n// and cannot patch it, so all we can do is stop paying to log a failure we cannot fix.\n//\n// The bootstrap builds a URL for the web pixels manager bundle, served from the shop origin under a\n// pixels path, creates a script element for it, and registers a load handler. The bundle, when it\n// executes, defines the manager as a global as a side effect. The handler then immediately calls\n// init on that global. In deobfuscated form it is roughly:\n//\n//   function () {\n//     if (!window.Shopify?.analytics?.initialized) {\n//       var instance = window.webPixelsManager.init(config);  // throws when the global is absent\n//       if (instance) { ...replay the queued analytics events, mark initialized... }\n//     }\n//   }\n//\n// The defect is that the handler guards two things and misses a third. It guards against double\n// init through the already initialized flag, and it handles the bundle failing to fetch through a\n// sibling error handler that emits a failed status. It never guards that the global was actually\n// defined. A script that fetches successfully still fires its load event, so when the bundle is\n// delivered but leaves no global the handler runs anyway and reads init off undefined. That gap is\n// reached when a content blocker or privacy extension answers the bundle URL with an empty stub,\n// when a bot or an embedded webview returns a neutered body, or when the bundle throws partway\n// through its own execution before the assignment, since a runtime throw still lets the load event\n// fire afterward. On a healthy load the global is a real object and none of this triggers, which is\n// why it correlates with blockers and bots.\n//\n// The simple message and URL ignore lists cannot express this on their own, which is why the whole\n// concern lives here. The deny by URL list keys on the file the throw came from, but the throw is\n// in the inline handler, so the frame's file is the page document itself and the bundle's URL never\n// appears anywhere in the stack. A message substring on its own is no better, because the engines\n// that phrase the message without naming a variable phrase it the same way for any unrelated init\n// failure on the page. So it takes the message and the frame together, and each pairing that has\n// actually been seen is enumerated below rather than generalized into one loose rule.\n\n/**\n * Derived from the browser options rather than imported directly so it resolves against the same\n * core types the SDK uses internally.\n */\ntype Integration = Extract<BrowserOptions['integrations'], unknown[]>[number];\n\n/**\n * One observed shape of the failure, the name a stack frame reports for the bundle's load handler\n * paired with the message an engine throws out of it.\n */\ninterface Signature {\n  /** Matched against a frame's function in full, never as a prefix. */\n  frameFunction: string;\n  /** Matched as a substring of the thrown message. */\n  message: string;\n}\n\n/**\n * Returns null to drop the event and the event itself to keep it. Assumes the event is well formed\n * and makes no attempt to survive one that is not, which is what the caller's catch is for.\n */\nfunction processEventUnsafe(event: Event) {\n  const values = event.exception?.values;\n  if (!Array.isArray(values)) {\n    return event;\n  }\n\n  // Every pairing observed in the wild. A pairing that is not here is not filtered, so a bundle\n  // rebuild that renames the handler needs a new entry, which is the cost of matching exactly.\n  const signatures: Signature[] = [\n    // Shopify's minifier currently names the handler with a single letter, and the name is not\n    // specific to one engine or one vendor's browser, the same one shows up on Chromium, on WebKit,\n    // and inside embedded app browsers.\n    {\n      frameFunction: 'HTMLScriptElement.C',\n      message: 'Cannot read property \\'init\\' of undefined'\n    },\n    {\n      frameFunction: 'HTMLScriptElement.C',\n      message: 'Cannot read properties of undefined (reading \\'init\\')'\n    },\n    // An older bootstrap assigned the handler to the element's property instead of registering it\n    // as a listener, and the frame took the property's name.\n    {\n      frameFunction: 'HTMLScriptElement.onload',\n      message: 'Cannot read property \\'init\\' of undefined'\n    },\n    {\n      frameFunction: 'HTMLScriptElement.onload',\n      message: 'Cannot read properties of undefined (reading \\'init\\')'\n    }\n  ];\n\n  for (const value of values) {\n    if (typeof value.value !== 'string') {\n      continue;\n    }\n\n    const message = value.value;\n\n    // Some engines spell the manager global out in the thrown message. That names the bundle\n    // outright, so it stands on its own without a matching frame.\n    if (message.includes('webPixelsManager')) {\n      return null;\n    }\n\n    const frames = value.stacktrace?.frames;\n    if (!Array.isArray(frames)) {\n      continue;\n    }\n\n    for (const signature of signatures) {\n      if (!message.includes(signature.message)) {\n        continue;\n      }\n\n      for (const frame of frames) {\n        if (frame.function === signature.frameFunction) {\n          return null;\n        }\n      }\n    }\n  }\n\n  return event;\n}\n\nexport const shopifyWpmIntegration: Integration = {\n  name: 'ShopifyWpm',\n  processEvent(event: Event) {\n    try {\n      return processEventUnsafe(event);\n    } catch (error) {\n      // Failing to inspect an event is not the same as confirming it is noise.\n      return event;\n    }\n  }\n};\n","import type { BrowserOptions, Event } from '@sentry/browser';\n\n/**\n * Derived from the browser options rather than imported directly so it resolves against the same\n * core types the SDK uses internally.\n */\ntype Integration = Extract<BrowserOptions['integrations'], unknown[]>[number];\n\ninterface ExtraProperties {\n  /**\n   * How old a page may be, in milliseconds, before its events are dropped as stale. It originates\n   * as a plain literal, so the snippet has no say in it, but it is assigned onto the integration in\n   * init rather than hardcoded here so the threshold lives next to the rest of the Sentry setup.\n   * When it is left unset the age is never judged and every event is kept.\n   */\n  maxAgeMs: number | undefined;\n}\n\ntype IntegrationExtended = Integration & ExtraProperties;\n\n/**\n * Drops events fired by a page the server rendered long ago that is only running now because the\n * browser revived a stale cached copy: a suspended tab restored days later, a back/forward or disk-\n * cache reparse, and so on. A revival re-runs an old bundle against an old page, surfacing errors\n * from code that has since changed or been removed, so the event describes a past state rather than\n * a live bug. The loader snippet stamps the server render epoch into the page as frozen text that\n * survives every revival unchanged, so comparing it to the current clock tells us how stale the\n * page is. When the stamp is missing, on a page rendered before this existed, the age is unknowable\n * and the event is left alone rather than dropped.\n */\nexport const stalePageIntegration: IntegrationExtended = {\n  name: 'StalePage',\n  maxAgeMs: undefined,\n  processEvent(event: Event) {\n    try {\n      return processEventUnsafe(event);\n    } catch (error) {\n      return event;\n    }\n  }\n};\n\nfunction processEventUnsafe(event: Event) {\n  if (!window.sentry_embed) {\n    return event;\n  }\n\n  // When the threshold is unset the integration is inert and keeps every event.\n  if (!Number.isInteger(stalePageIntegration.maxAgeMs)) {\n    return event;\n  }\n\n  // render_epoch is whole seconds since the server rendered the page. It is absent or non-integer\n  // on pages predating the stamp, where the age cannot be judged, so keep the event.\n  if (!Number.isInteger(sentry_embed.render_epoch)) {\n    return event;\n  }\n\n  const currentEpochInMilliseconds = Date.now();\n  const renderEpochInMilliseconds = sentry_embed.render_epoch * 1000;\n  const ageInMilliseconds = currentEpochInMilliseconds - renderEpochInMilliseconds;\n\n  // If the age is more than the max age, return null to drop the event.\n  if (ageInMilliseconds > stalePageIntegration.maxAgeMs) {\n    return null;\n  }\n\n  return event;\n}\n","import * as SentryBrowser from '@sentry/browser';\nimport { beforeBreadcrumb } from './breadcrumbs.js';\nimport { browserAutomationIntegration } from './browser-automation-integration.js';\nimport { ddgIntegration } from './ddg-integration.js';\nimport { denyUrls } from './deny-urls.js';\nimport { gladlyIntegration } from './gladly-integration.js';\nimport { ignoreErrors } from './ignore-errors.js';\nimport { injectedRecursionFilterIntegration } from './injected-recursion-filter.js';\nimport { monkeyPatchIntegration } from './monkey-patch-integration.js';\nimport { paypalIntegration } from './paypal-integration.js';\nimport { redactUrlParamsIntegration } from './redact-url-params-integration.js';\nimport { shopifyCustomerPrivacyIntegration } from './shopify-customer-privacy-integration.js';\nimport { shopifyShopEventsListenerIntegration } from './shopify-shop-events-listener-integration.js';\nimport { shopifyWpmIntegration } from './shopify-wpm-integration.js';\nimport { stalePageIntegration } from './stale-page-integration.js';\n\n/**\n * Initialize Sentry\n */\nfunction main() {\n  // These are the types subscribed in the loader snippet to capture events that occur prior to\n  // Sentry init.\n  const eventTypes = [\n    'error',\n    'unhandledrejection'\n  ];\n\n  // Before init, remove the global listeners from the loader snippet. We will start listening using\n  // local functions during and after init.\n  for (const eventType of eventTypes) {\n    removeEventListener(eventType, sentry_embed.listener);\n  }\n\n  const initOptions = <SentryBrowser.BrowserOptions>{};\n\n  initOptions.environment = 'production';\n  try {\n    initOptions.environment = determineEnvironment();\n  } catch (error) {\n    console.warn(error);\n  }\n\n  initOptions.release = createReleaseName();\n  initOptions.dsn = sentry_embed.dsn;\n  initOptions.denyUrls = denyUrls;\n  initOptions.ignoreErrors = ignoreErrors;\n\n  stalePageIntegration.maxAgeMs = 7 * 24 * 60 * 60 * 1000;\n\n  // Mask the params that identify a single visit, such as the click ids an ad network appends to a\n  // landing url. The referrer keeps the landing url's params for the rest of a same-site visit, so\n  // they turn up on events well after the landing page.\n  redactUrlParamsIntegration.names = [\n    'gclid',\n    'gbraid',\n    'wbraid',\n    'fbclid',\n    'ttclid',\n    'msclkid',\n    'transaction_id'\n  ];\n\n  initOptions.integrations = [\n    SentryBrowser.breadcrumbsIntegration({\n      dom: false,\n      fetch: false,\n      sentry: false,\n      xhr: false\n    }),\n    SentryBrowser.browserApiErrorsIntegration({\n      XMLHttpRequest: false\n    }),\n    SentryBrowser.captureConsoleIntegration({\n      levels: ['error', 'warn', 'info']\n    }),\n    SentryBrowser.extraErrorDataIntegration({ depth: 6 }),\n    stalePageIntegration,\n    injectedRecursionFilterIntegration,\n    browserAutomationIntegration,\n    paypalIntegration,\n    monkeyPatchIntegration,\n    ddgIntegration,\n    gladlyIntegration,\n    shopifyWpmIntegration,\n    shopifyShopEventsListenerIntegration,\n    shopifyCustomerPrivacyIntegration,\n    redactUrlParamsIntegration\n  ];\n\n  // Console breadcrumbs come from Sentry's default Console integration. Outside production, replace\n  // it by name with one that records no levels, so only production events carry console\n  // breadcrumbs.\n  if (initOptions.environment !== 'production') {\n    initOptions.integrations.push(SentryBrowser.consoleIntegration({ levels: [] }));\n  }\n\n  initOptions.normalizeDepth = 10;\n  initOptions.beforeBreadcrumb = beforeBreadcrumb;\n\n  SentryBrowser.init(initOptions);\n\n  // Replay prior events (with some healthy paranoia).\n\n  for (const event of sentry_embed.queue) {\n    try {\n      replayEvent(event);\n    } catch (error) {}\n  }\n\n  // Enable garbage collection of queued events and avoid any idempotency issues.\n  sentry_embed.queue = [];\n\n  // We do not subscribe any global error handlers here: Sentry subscribes to the global error and\n  // unhandledrejection events during init via a plugin.\n}\n\n/**\n * This implicitly drops unknown events.\n *\n * This has no error safety.\n */\nfunction replayEvent(event: Event) {\n  if (isErrorEvent(event) && event.error instanceof Error) {\n    SentryBrowser.captureException(event.error);\n  } else if (isPromiseRejectionEvent(event) && event.reason instanceof Error) {\n    SentryBrowser.captureException(event.reason);\n  }\n}\n\nfunction isPromiseRejectionEvent(value: any): value is PromiseRejectionEvent {\n  return value instanceof Event && value.type === 'unhandledrejection';\n}\n\nfunction isErrorEvent(value: any): value is ErrorEvent {\n  return value instanceof Event && value.type === 'error';\n}\n\n/**\n * Obtain a release name for tagging issues in Sentry\n *\n * This logic must be careful to consider to not error and to only provide a valid release name.\n *\n * * Shopify can change its API at any time, so Shopify.theme.id might be missing\n * * content_for_header may not specified before sentry script load or not present or invalid so\n *   Shopify global may be undefined\n * * third party vendor apps may incorrectly mess with globals\n * * there is no clear documentation on what characters are not allowed, theme names can contain\n *   misc. characters but some characters are rejected (e.g. \"/\"), release name cannot contain\n *   spaces because Sentry release report UI breaks\n */\nfunction createReleaseName() {\n  // A plain truthiness check would let a non-object through. Error-reporting code runs in corrupted\n  // and partially-loaded environments where a third-party script could clobber the global, so\n  // verify it is genuinely an object before reading from it.\n\n  if (typeof Shopify !== 'object' || Shopify === null) {\n    return;\n  }\n\n  // While the base object is correctly declared and initialized, its properties might not be. We\n  // are still extra cautious here.\n\n  const id = Shopify.theme?.id;\n  if (!Number.isInteger(id)) {\n    return;\n  }\n\n  let name = Shopify.theme?.name;\n  if (typeof name !== 'string') {\n    return `${id}`;\n  }\n\n  // Sentry rejects events that have a release containing a forward slash.\n  name = name.replace(/\\//g, '-');\n\n  name = name.trim();\n\n  // Sentry's accepts release names that contain whitespace but the reporting UI breaks when it\n  // tries to client side parse a release name containing a space on render.\n  name = name.replace(/\\s+/g, '-');\n\n  return name ? `${id}-${name}` : `${id}`;\n}\n\n/**\n * Returns the stage of the current deployment. This involves some tricky logic to account for the\n * many ways in which the site can be deployed and issues with some developers using incorrect test\n * deployment settings.\n *\n * Be careful with changing the return values. Some users of this function such as Sentry naively\n * forward along the output value to a backend system that processes data based upon this exact\n * string.\n *\n * This cannot rely on node env as that has other meanings during CI/CD deployment.\n */\nfunction determineEnvironment() {\n  // A plain truthiness check would let a non-object through. Error-reporting code runs in corrupted\n  // and partially-loaded environments where a third-party script could clobber the global, so\n  // verify it is genuinely an object before reading from it.\n\n  if (typeof Shopify !== 'object' || Shopify === null) {\n    return 'development';\n  }\n\n  if (Shopify.previewMode || Shopify.inspectMode || Shopify.designMode) {\n    return 'development';\n  }\n\n  // Extra detection for when the website was loaded as a Shopify theme preview (or sometimes in\n  // editor mode).\n\n  // While the base object is correctly declared and initialized, its properties might not be. We\n  // are still extra cautious here.\n\n  if (Shopify.theme?.role === 'unpublished') {\n    return 'development';\n  }\n\n  return 'production';\n}\n\nmain();\n"],"names":["addEventListener","_event","console","log","document","visibilityState","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","undefined","exports","module","__webpack_modules__","GLOBAL_OBJ","globalThis","getMainCarrier","getSentryCarrier","carrier","__SENTRY__","version","getGlobalSingleton","name","creator","obj","CONSOLE_LEVELS","originalConsoleMethods","consoleSandbox","callback","wrappedFuncs","wrappedLevels","Object","keys","forEach","level","originalConsoleMethod","objectToString","prototype","toString","isError","wat","call","isInstanceOf","Error","isBuiltin","className","isErrorEvent","isDOMError","isString","isParameterizedString","isPrimitive","isPlainObject","isObjectLike","isEvent","Event","isThenable","Boolean","then","base","isRequest","request","Request","fill","source","replacementFactory","original","wrapped","markFunctionWrapped","addNonEnumerableProperty","value","defineProperty","writable","configurable","proto","getOriginalFunction","func","__sentry_original__","convertToPlainObject","_extends","message","stack","getOwnProperties","type","target","currentTarget","detail","fromEntries","entries","RESOLVED_RUNNER","withRandomSafeContext","cb","sym","Symbol","for","globalWithSymbol","safeMathRandom","Math","random","safeDateNow","Date","now","emptyUuid","uuid4","crypto","gbl","msCrypto","getCrypto","_crypto","randomUUID","replace","c","getFirstException","event","_event$exception","exception","values","getEventDescription","event_id","eventId","firstException","addExceptionTypeValue","addExceptionMechanism","newMechanism","applyExceptionMechanism","currentMechanism","mechanism","misc_extends","handled","data","checkOrSetAlreadyCaught","__sentry_captured__","isAlreadyCaptured","dateTimestampInSeconds","_cachedTimestampInSeconds","timestampInSeconds","performance","timeOrigin","createUnixTimestampInSecondsFunc","makeSession","context","startingTime","session","sid","init","timestamp","started","duration","status","errors","ignoreDuration","toJSON","toISOString","did","abnormal_mechanism","attrs","release","environment","ip_address","ipAddress","user_agent","userAgent","sessionToJSON","updateSession","user","id","email","username","length","merge","initialObj","mergeObj","levels","output","merge_extends","key","hasOwnProperty","generateSpanId","substring","SENTRY_SKIP_NORMALIZATION","SENTRY_OVERRIDE_NORMALIZATION_DEPTH","WEBPACK_ERROR_REGEXP","STRIP_FRAME_REGEXP","createStackParser","_len","arguments","parsers","Array","_key","sortedParsers","sort","a","b","map","p","skipFirstLines","framesToPop","frames","lines","split","i","line","slice","cleanedLine","test","includes","parser","frame","push","localStack","from","getLastStackFrame","function","pop","reverse","stacktrace_extends","filename","stripSentryFramesAndReverse","arr","defaultFunctionName","getFunctionName","fn","getFramesFromEvent","stacktrace","stringifier","normalize","input","depth","maxProperties","Infinity","visit","err","ERROR","normalizeToSize","object","maxSize","normalized","encodeURI","utf8Length","JSON","stringify","memo","inner","WeakSet","memoize","has","add","unmemoize","delete","memoBuilder","Number","isFinite","stringified","stringifyValue","startsWith","hasSkipNormalizationHint","overrideDepth","v","getNormalizationDepthOverrideHint","remainingDepth","valueWithToJSON","isArray","numAdded","visitable","visitKey","visitValue","global","String","objName","getPrototypeOf","constructor","getConstructorName","truncate","str","max","safeJoin","delimiter","join","isMatchingPattern","pattern","requireExactStringMatch","stringMatchesSomePattern","testString","patterns","Scope","this","_notifyingListeners","_scopeListeners","_eventProcessors","_breadcrumbs","_attachments","_user","_tags","_attributes","_extra","_contexts","_sdkProcessingMetadata","_propagationContext","traceId","sampleRand","clone","newScope","scope_extends","flags","_level","_session","_transactionName","_fingerprint","_client","_lastEventId","_conversationId","refs","setClient","client","setLastEventId","lastEventId","getClient","addScopeListener","addEventProcessor","setUser","_notifyScopeListeners","getUser","setConversationId","conversationId","setTags","tags","setTag","setAttributes","newAttributes","setAttribute","removeAttribute","setExtras","extras","setExtra","extra","setFingerprint","fingerprint","setLevel","setTransactionName","setContext","setSession","getSession","update","captureContext","scopeToMerge","scopeInstance","getScopeData","attributes","contexts","propagationContext","addBreadcrumb","breadcrumb","maxBreadcrumbs","maxCrumbs","mergedBreadcrumb","getLastBreadcrumb","clearBreadcrumbs","addAttachment","attachment","clearAttachments","breadcrumbs","attachments","eventProcessors","sdkProcessingMetadata","transactionName","setSDKProcessingMetadata","newData","setPropagationContext","getPropagationContext","captureException","hint","syntheticException","originalException","captureMessage","_hint$syntheticExcept","captureEvent","SUPPRESS_TRACING_KEY","isActualPromise","Promise","kChainedCopy","copyProps","chained","mutated","args","apply","enumerable","assign","AsyncContextStack","scope","isolationScope","assignedScope","assignedIsolationScope","_stack","_isolationScope","withScope","_pushScope","maybePromiseResult","e","_popScope","onSuccess","onError","chainAndCopyPromiseLike","getStackTop","getScope","getIsolationScope","getAsyncContextStack","sentry","withSetScope","withIsolationScope","suppressTracingInStack","res","getAsyncContextStrategy","acs","suppressTracing","withSetIsolationScope","getCurrentScope","getExternalPropagationContext","_getSentryCarrier$ext","_getSentryCarrier","externalPropagationContextProvider","currentScopes_withScope","rest","getTraceContextFromScope","externalContext","trace_id","span_id","spanId","parentSpanId","propagationSpanId","traceContext","parent_span_id","DEFAULT_ENVIRONMENT","safeCallback","fallback","result","error","recover","resolvedSyncPromise","SyncPromise","resolve","rejectedSyncPromise","reason","_","reject","executor","_state","_handlers","_runExecutor","onfulfilled","onrejected","_executeHandlers","val","onfinally","isRejected","cachedHandlers","handler","_value","setResult","state","notifyEventProcessors","processors","index","onDrop","_notifyEventProcessors","processor","callbackError","eventProcessors_extends","final","parsedStackResults","lastSentryKeysCount","lastNativeKeysCount","cachedFilenameDebugIds","getFilenameToDebugIdMap","stackParser","sentryDebugIdMap","_sentryDebugIds","nativeDebugIdMap","_debugIds","sentryDebugIdKeys","nativeDebugIdKeys","processDebugIds","debugIdKeys","debugIdMap","_parsedStackResults","debugId","parsedStack","stackFrame","ORG_ID_REGEX","DSN_REGEX","dsnToString","dsn","withPassword","host","path","pass","port","projectId","protocol","publicKey","dsnFromComponents","components","extractOrgIdFromClient","options","getOptions","getDsn","org_id","orgId","match","extractOrgIdFromDsnHost","makeDsn","exec","lastPath","projectMatch","dsnFromString","createEnvelope","headers","items","addItemToEnvelope","envelope","newItem","forEachEnvelopeItem","envelopeItems","envelopeItem","encodeUTF8","encodePolyfill","TextEncoder","encode","serializeEnvelope","envHeaders","parts","append","next","item","itemHeaders","payload","Uint8Array","stringifiedPayload","buffers","totalLength","reduce","acc","buf","merged","offset","buffer","set","concatBuffers","createAttachmentEnvelopeItem","content_type","contentType","attachment_type","attachmentType","DATA_CATEGORY_OVERRIDES","sessions","client_report","user_report","profile_chunk","replay_event","replay_recording","check_in","raw_security","trace_metric","envelopeItemTypeToDataCategory","_isOverriddenType","getSdkMetadataForEnvelopeHeader","metadataOrEvent","sdk","getDataCategoryByType","escapedSpanTraceContexts","WeakMap","toWeakMapKey","rd","gd","Rd","qd","fb","Rb","SENTRY_BAGGAGE_KEY_PREFIX","parseBaggageHeader","baggageHeader","curr","currBaggageObject","baggageHeaderToObject","_ref3","baggageEntry","eqIdx","indexOf","keyOrValue","decodeURIComponent","trim","_ref4","attributeValueToTypedAttributeValue","rawValue","useFallback","unit","maybeObj","attributeValue","primitiveType","isNaN","isInteger","getTypedAttributeValue","checkedUnit","attributes_extends","stringValue","_JSON$stringify","serializeAttributes","serializedAttributes","typedValue","SPAN_STATUS_TYPES","derefWeakRef","ref","deref","SCOPE_ON_START_SPAN_FIELD","ISOLATION_SCOPE_ON_START_SPAN_FIELD","getCapturedScopesOnSpan","span","spanWithScopes","SCOPE_SPAN_FIELD","spanUtils_spanToTraceContext","isRemote","spanContext","spanToStaticSpanJSON","convertSpanLinksForEnvelope","links","_ref","traceFlags","restContext","_objectWithoutProperties","_excluded","spanUtils_extends","sampled","spanTimeInputToSeconds","ensureTimestampInSeconds","getTime","spanIsSentrySpan","getStaticSpanJSON","spanIsOpenTelemetrySdkTraceBaseSpan","startTime","endTime","description","getOtelParentSpanId","start_timestamp","getStatusMessage","op","origin","_span$parentSpanConte","parentSpanContext","castSpan","getSpanJSON","code","ROOT_SPAN_FIELD","getRootSpan","INTERNAL_getSegmentSpan","getActiveSpan","_getSpanForScope","NON_RECORDING_SPAN_FIELD","FROZEN_DSC_FIELD","getDynamicSamplingContextFromClient","public_key","dsc","emit","getDynamicSamplingContextFromScope","getDynamicSamplingContextFromSpan","_traceState$get","rootSpan","rootSpanJson","rootSpanAttributes","traceState","rootSpanSampleRate","get","applyLocalSampleRateToDsc","sample_rate","frozenDsc","isNonRecordingRoot","spanIsNonRecordingSpan","isIgnoredRoot","dropReason","capturedScope","scopeDsc","dynamicSamplingContext_extends","traceStateDsc","dscOnTraceState","baggageObject","dynamicSamplingContext","baggageHeaderToDynamicSamplingContext","transaction","applyScopeDataToEvent","scopeData_extends","applyDataToEvent","concat","applyFingerprintToEvent","mergedBreadcrumbs","applyBreadcrumbsToEvent","applySdkMetadataToEvent","mergeScopeData","mergeData","mergeAndOverwriteScopeData","prop","mergeVal","getCombinedScopeData","currentScope","scopeData","prepareEvent","normalizeDepth","normalizeMaxBreadth","prepared","prepareEvent_extends","integrations","dist","maxValueLength","url","applyClientOptions","integrationNames","applyIntegrationsMetadata","_event$exception2","filenameDebugIdMap","_exception$stacktrace","debug_id","applyDebugIds","finalScope","getFinalScope","_exceptions$find","exceptions","capturedException","find","_exception$mechanism","exception_id","addExceptionMechanismToCapturedException","clientEventProcessors","getEventProcessors","trace","applySpanToEvent","_event$contexts","_eventTraceContext$tr","eventTraceContext","errorSpanAttribution_extends","applyEscapedErrorSpanToEvent","__sentry__","recordDroppedEvent","spans","evt","_event$exception3","_exception$stacktrace2","abs_path","debug_meta","images","code_file","applyDebugMeta","maxBreadth","_event$contexts2","normalizeEvent","parseEventHintOrCaptureContext","hintIsScopeOrFunction","some","captureContextKeys","hintIsScopeContext","startSession","navigator","exports_extends","currentSession","endSession","closeSession","_sendSessionUpdate","captureSession","end","persisted","script_epoch","sentry_embed","render_epoch","navigation","getEntriesByType","_s","_y","requestID","timing","_navigation$serverTim","serverTiming","_Shopify$currency","_Shopify$theme","_Shopify$theme2","_Shopify$theme3","Shopify","country","currency","active","locale","market_handle","market","theme_id","theme","theme_name","theme_role","role","async","alphabet","randomString","charAt","floor","timeout","flush","isTopFrame","top","window","isBrowser","webdriver","WINDOW","_isFetchSupported","Headers","Response","isNativeFunction","handlers","instrumented","addHandler","typeHandlers","splice","maybeInstrument","instrumentFn","triggerHandlers","instrumentFetch","onFetchResolved","EdgeRuntime","fetch","doc","createElement","_sandbox$contentWindo","sandbox","hidden","head","appendChild","contentWindow","removeChild","supportsNativeFetch","originalFetch","Proxy","_thisArg","virtualError","method","fetchArgs","resource","getUrlFromResource","hasProp","toUpperCase","arg","parseFetchArgs","handlerData","fetchData","startTimestamp","getHeadersFromFetchArgs","fetch_extends","Reflect","response","endTimestamp","_client$getOptions$en","enhanceOption","enhanceFetchErrorMessages","hostname","URL","requestArgument","optionsArgument","installedIntegrations","getIntegrationsToSetup","defaultIntegrations","userIntegrations","integration","isDefaultInstance","resolvedUserIntegrations","integrationsByName","currentInstance","existingInstance","filterDuplicates","afterSetupIntegrations","afterAllSetup","setupIntegration","integrationIndex","setupOnce","setup","preprocessEvent","bind","on","processEvent","hook","DEFAULT_BREADCRUMBS","beforeBreadcrumb","breadcrumbs_extends","finalBreadcrumb","getBreadcrumbLogLevelFromHttpStatusCode","statusCode","parseUrl","query","fragment","search","hash","relative","worldwide_GLOBAL_OBJ","carrier_getMainCarrier","carrier_getSentryCarrier","carrier_getGlobalSingleton","handlers_handlers","handlers_instrumented","handlers_addHandler","handlers_maybeInstrument","handlers_triggerHandlers","object_fill","object_markFunctionWrapped","object_addNonEnumerableProperty","randomSafeContext_RESOLVED_RUNNER","randomSafeContext_withRandomSafeContext","randomSafeContext_safeMathRandom","misc_emptyUuid","misc_uuid4","misc_getCrypto","types_WINDOW","debounceTimerID","lastCapturedEventType","lastCapturedEventTargetId","getCapture","capture","instrumentDOM","triggerDOMHandler","globalDOMEventHandler","makeDOMEventHandler","_globalObject$target","originalAddEventListener","listener","__sentry_instrumentation_handlers__","handlerForType","captureListeners","bubbleListeners","listenerCount","listeners","once","signal","sticky","originalRemoveEventListener","globalListener","getEventTarget","eventType","tagName","isContentEditable","shouldSkipDOMEvent","_sentryId","isSimilarToLastCapturedEvent","clearTimeout","setTimeout","time_dateTimestampInSeconds","time_cachedTimestampInSeconds","time_timestampInSeconds","time_createUnixTimestampInSecondsFunc","is_objectToString","is_isBuiltin","is_isString","is_isPlainObject","SENTRY_XHR_DATA_KEY","instrumentXHR","XMLHttpRequest","xhrproto","open","originalOpen","xhrOpenThisArg","xhrOpenArgArray","parseXhrUrlArg","request_headers","__sentry_own_request__","onreadystatechangeHandler","xhrInfo","readyState","status_code","xhr","removeEventListener","onreadystatechange","originalOnreadystatechange","onreadystatechangeThisArg","onreadystatechangeArgArray","setRequestHeader","originalSetRequestHeader","setRequestHeaderThisArg","setRequestHeaderArgArray","header","toLowerCase","send","originalSend","sendThisArg","sendArgArray","sentryXhrData","body","lastHref","addHistoryInstrumentationHandler","instrumentHistory","historyReplacementFunction","originalHistoryFunction","to","urlOrPath","location","getAbsoluteUrl","href","history","accessors","Node","parentNode","getOwnPropertyDescriptor","Element","getAttribute","HTMLElement","dataset","_safeRead","el","htmlTreeAsString","elem","currentElem","MAX_TRAVERSE_HEIGHT","out","height","len","separator","sepLength","nextStr","keyAttrs","maxStringLength","_htmlElementAsString","keyAttrPairs","filter","keyAttr","keyAttrPair","classes","k","attr","getLocationHref","_WINDOW$document$loca","_WINDOW$document","helpers_WINDOW","ignoreOnError","ignoredErrorReports","shouldIgnoreOnError","findIndex","report","msg","column","isSameErrorReport","wrap","wrapper","__sentry_wrapped__","sentryWrapped","_sentryWrappedDepth","wrappedArguments","ex","helpers_extends","property","getHttpRequestData","referrer","Referer","MAX_ALLOWED_STRING_LENGTH","breadcrumbsIntegration","_options","integrations_breadcrumbs_extends","dom","componentName","serializeAttribute","element","_isEvent","maxTraverseHeight","getComponentName","category","_getDomBreadcrumbHandler","addXhrInstrumentationHandler","_getXhrBreadcrumbHandler","removeHandler","addFetchInstrumentationHandler","_getFetchBreadcrumbHandler","_parsedFrom","parsedLoc","parsedFrom","parsedTo","_getHistoryBreadcrumbHandler","_getSentryBreadcrumbHandler","DEFAULT_EVENT_TARGET","browserApiErrorsIntegration","browserapierrors_extends","eventTarget","requestAnimationFrame","setInterval","unregisterOriginalCallbacks","_wrapTimeFunction","_wrapRAF","_wrapXHR","eventTargetOption","integrationOptions","eventName","handleEvent","unregisterOriginalCallback","originalEventHandler","_wrapEventTarget","originalCallback","wrapOptions","originalFunction","_len2","_key2","_filter","Set","addConsoleInstrumentationHandler","instrumentConsole","instrumentedLevels","firstArg","isFiltered","size","severityLevelFromString","captureConsoleIntegration","_options$handled","severityLevel","logger","consoleHandler","extraErrorDataIntegration","captureErrorCause","exceptionName","errorData","_extractErrorData","extraerrordata_extends","normalizedErrorData","_enhanceEventWithErrorData","nativeKeys","extraErrorInfo","cause","errorName","serializedError","oO","consoleIntegration","unsubscribe","formatConsoleArgs","assertionArgs","addConsoleBreadcrumb","registerCleanup","f","addConsoleInstrumentationFilter","util","format","DEFAULT_IGNORE_ERRORS","eventFiltersIntegration","mergedOptions","clientOptions","_mergeOptions","_hint","ignoreTransactions","_isIgnoredTransaction","ignoreErrors","possibleMessages","lastException","getPossibleEventMessages","_isIgnoredError","_isUselessError","denyUrls","_getEventFilterUrl","_isDeniedUrl","allowUrls","_isAllowedUrl","_shouldDropEvent","internalOptions","disableErrorDefaults","_event$exception$valu","_rootException$stackt","rootException","_value$mechanism","_value$stacktrace","parent_id","_getLastValidUrl","SETUP_CLIENTS","functionToStringIntegration","originalFunctionToString","Function","unwrappedFunction","conversationIdIntegration","isolationScopeData","dedupeIntegration","previousEvent","currentEvent","currentMessage","previousMessage","_isSameFingerprint","_isSameStacktrace","_isSameMessageEvent","previousException","_getExceptionFromEvent","currentException","_isSameExceptionEvent","dedupe_shouldDropEvent","currentFrames","previousFrames","frameA","frameB","lineno","colno","currentFingerprint","previousFingerprint","getBaseApiEndpoint","getEnvelopeEndpointWithUrlEncodedAuth","tunnel","sdkInfo","_getIngestEndpoint","params","sentry_version","sentry_key","sentry_client","URLSearchParams","_encodedAuth","createEventEnvelope","metadata","newSdkInfo","_event$sdk","_event$sdk2","_event$sdk3","_event$sdk4","eventSdkInfo","esm_envelope_extends","packages","settings","_enhanceEventWithSdkInfo","envelopeHeaders","_event$sdkProcessingM","envelope_extends","sent_at","createEventEnvelopeHeaders","createLogContainerEnvelopeItem","inferUserData","inferSetting","item_count","logs_envelope_extends","ingest_settings","infer_ip","infer_user_agent","_INTERNAL_flushLogsBuffer","maybeLogBuffer","logBuffer","_INTERNAL_getLogBuffer","logs","createLogEnvelope","_metadata","getDataCollectionOptions","userInfo","_getBufferMap","sendEnvelope","createMetricContainerEnvelopeItem","metrics_envelope_extends","_INTERNAL_flushMetricsBuffer","maybeMetricBuffer","metricBuffer","_INTERNAL_getMetricBuffer","metrics","createMetricEnvelope","internal_getBufferMap","isStaticBeforeSendSpanCallback","_static","applyBeforeSendSpanCallback","beforeSendSpan","createSpanContainerItem","serializedSpans","spanJsonToSerializedStreamedSpan","streamedSpan","end_timestamp","is_segment","spanJsonToStreamedSpan_extends","spanJson","_spanJson$end_timesta","_spanJson$links","link","safeUnref","timer","unref","SENTRY_BUFFER_FULL_ERROR","makePromiseBuffer","limit","remove","task","$","taskProducer","drain","drainPromise","allSettled","promises","race","shouldIgnoreSpan","ignoreSpans","isStringOrRegExp","hasAttributes","nameMatches","opMatches","attrsMatch","every","_span$attributes","valuePattern","_matchesAttributeValue","actual","pat","RegExp","reparentChildSpans","dropSpan","droppedSpanParentId","droppedSpanId","DEFAULTS","cookies","httpHeaders","httpBodies","urlQueryParams","graphQL","variables","genAI","inputs","outputs","databaseQueryData","queues","stackFrameVariables","frameContextLines","INTERNAL_ERROR_SYMBOL","DO_NOT_SEND_EVENT_SYMBOL","CLOSED_CLIENT_SYMBOL","_makeInternalError","_makeDoNotSendEventError","_isInternalError","_isDoNotSendEventError","setupWeightBasedFlushing","afterCaptureHook","flushHook","estimateSizeFn","flushFn","flushTimeout","weight","isTimerActive","_client$getOptions$_f","flushInterval","_flushInterval","Client","_options$transportOpt","_options$transportOpt2","client_extends","attachStacktrace","traceLifecycle","_integrations","_numProcessing","_outcomes","_hooks","_promiseBuffer","transportOptions","bufferSize","_dataCollection","_options$dataCollecti","_dc$userInfo","_dc$cookies","_dc$httpBodies","_dc$urlQueryParams","_dc$graphQL$document","_dc$graphQL","_dc$graphQL$variables","_dc$graphQL2","_dc$genAI$inputs","_dc$genAI","_dc$genAI$outputs","_dc$genAI2","_dc$databaseQueryData","_dc$queues","_dc$stackFrameVariabl","_dc$frameContextLines","dc","dataCollection","resolveDataCollectionOptions_extends","_httpHeaders$request","_httpHeaders$response","resolveDataCollectionOptions","_unhandledSessionStatus","_dsn","_transport","transport","estimateLogSizeInBytes","estimateMetricSizeInBytes","hintWithEventId","_process","eventFromException","_captureEvent","eventMessage","isMessage","promisedEvent","eventFromMessage","capturedSpanScope","capturedSpanIsolationScope","dataCategory","sendSession","getSdkMetadata","getTransport","clientFinished","_isClientDoneProcessing","transportFlushed","close","enabled","eventProcessor","_options$ignoreTransa","_isEnabled","_setupIntegrations","beforeSendTransaction","warn","getIntegrationByName","integrationName","getIntegrationNames","addIntegration","isAlreadyInstalled","beforeSetup","sendEvent","genAiSpanItem","_event$spans","hasGenAiSpans","hasSpanStreamingEnabled","genAiSpans","remainingSpans","_span$op","extractGenAiSpansFromEvent","env","sendResponse","clientReleaseOption","clientEnvironmentOption","sessionAttrs","createSessionEnvelope","count","sendClientReports","hookCallbacks","uniqueCallback","callbacks","dispose","setupIntegrations","_updateSessionFromEvent","unhandled","errored","_ex$mechanism","sessionNonTerminal","ticked","_prepareEvent","_evt$contexts","_processEvent","finalEvent","sampleRate","isTransaction","isTransactionEvent","client_isErrorEvent","beforeSendLabel","beforeSendDropReason","parsedSampleRate","rate","parseFloat","parseSampleRate","_hint$data","onCallbackError","beforeSend","processedEvent","errorEvent","_event$contexts$trace","_event$start_timestam","profile_id","exclusive_time","measurements","convertTransactionEventToSpanJson","processedRootSpanJson","transactionEvent_extends","processedSpans","initialSpans","droppedSpans","spanCountBefore","spanCountBeforeProcessing","processBeforeSend","beforeSendResult","invalidValueError","_validateBeforeSendResult","_processedEvent$sdkPr","droppedSpanCount","transactionInfo","transaction_info","_clearOutcomes","outcomes","_ref2","quantity","_flushOutcomes","discarded_events","metric","estimateAttributesSizeInBytes","client_estimatePrimitiveSizeInBytes","initAndBind","clientClass","debug","isClientClosed","getActiveClient","initialScope","setCurrentClient","session_updateSession","merge_merge","utils_merge_extends","scope_Scope","esm_scope_extends","constants_SUPPRESS_TRACING_KEY","chain_and_copy_promiselike_isActualPromise","chain_and_copy_promiselike_kChainedCopy","chain_and_copy_promiselike_copyProps","stackStrategy_AsyncContextStack","chain_and_copy_promiselike_chainAndCopyPromiseLike","stackStrategy_getAsyncContextStack","stackStrategy_withScope","stackStrategy_withSetScope","stackStrategy_withIsolationScope","stackStrategy_suppressTracingInStack","asyncContext_getAsyncContextStrategy","currentScopes_getClient","CLIENT_ROUTE_PROVIDERS","addAutoIpAddressToSession","_session$attrs","ipAddress_extends","_enhanceErrorWithSentryInfo","__sentry_fetch_url_host__","hasSentryFetchUrlHost","eventbuilder_exceptionFromError","eventbuilder_parseStackFrames","extractType","extractMessage","eventFromPlainObject","isUnhandledRejection","errorFromProp","__serialized__","getNonErrorObjectExceptionValue","eventFromError","skipLines","reactMinifiedRegexp","getSkipFirstStackStringLines","getPopFirstTopFrames","isWebAssemblyException","WebAssembly","Exception","eventbuilder_eventFromUnknownInput","domException","synthetic","eventFromString","stringifiedException","__sentry_template_string__","__sentry_template_values__","logentry","extractExceptionKeysForMessage","captureType","eventbuilder_getObjectClassName","BrowserClient","_opts$_metadata","opts","optionsArg","prod_client_extends","__SENTRY_RELEASE__","_WINDOW$SENTRY_RELEAS","SENTRY_RELEASE","parentSpanIsAlwaysRootSpan","provider","names","name2","applySdkMetadata","SENTRY_SDK_SOURCE","super","routeProvider","queueMicrotask","eventbuilder_eventFromMessage","platform","addPageListener","removePageListener","browserSessionIntegration","_options$lifecycle","lifecycle","initialSessionSent","_WINDOW$document5","rIC","requestIdleCallback","called","runOnce","whenIdleOrHidden","previousUser","_previousUser","_previousUser2","maybeNewUser","safeSetSpanJSONAttributes","spanJSON","_spanJSON$attributes","originalAttributes","cultureContextIntegration","culture","getCultureContext","culturecontext_extends","processSegmentSpan","timezone","calendar","intl","Intl","DateTimeFormat","resolvedOptions","timeZone","_oldOnErrorHandler","instrumentError","onerror","__SENTRY_INSTRUMENTED__","_oldOnUnhandledRejectionHandler","instrumentUnhandledRejection","onunhandledrejection","globalHandlersIntegration","globalhandlers_extends","stackTraceLimit","addGlobalErrorInstrumentationHandler","ev","ev0","ev0s","ev0sf","_getFilenameFromUrl","getFilenameFromUrl","in_app","_enhanceEventWithInitialFrame","_installGlobalOnErrorHandler","globalHandlerLog","addGlobalUnhandledRejectionInstrumentationHandler","_getUnhandledRejectionError","_installGlobalOnUnhandledRejectionHandler","includeDataPrefix","mimeType","isBase64","dataStart","dataPrefix","stripDataUrlContent","FILTERED_VALUE","SENSITIVE_KEY_SNIPPETS","shouldFilterDataKey","behavior","additionalDenyTerms","lowerKey","denySnippets","lower","snippet","isSensitiveKey","matchesConfiguredTerm","deny","allow","term","filterKeyValueData","FILTERED","filterUrlQuery","fragmentStart","queryEnd","queryStart","prefix","suffix","filtered","queryString","pair","separatorIndex","encodedKey","filterQueryParams","urlQueryParamsBehavior","_getDataCollectionOpt","filterCollectedUrl_filterCollectedUrl","httpContextIntegration","_event$request$header","_event$request","collectedHeaders","userHeaders","httpcontext_extends","processSpan","reqData","referer","endsWith","applyAggregateErrorsToEvent","exceptionFromErrorImplementation","aggregateExceptionsFromError","prevExceptions","exceptionId","newExceptions","applyExceptionGroupFieldsForParentException","newException","newExceptionId","applyExceptionGroupFieldsForChildException","isExceptionGroup","childError","aggregate_errors_extends","is_exception_group","parentId","linkedErrorsIntegration","createFrame","chromeRegexNoFnName","chromeRegex","chromeEvalRegex","chromeDataUriRegex","geckoREgex","geckoEvalRegex","defaultStackParser","dataUriMatch","noFnParts","col","_parts$","subMatch","extractSafariExtensionDetails","isSafariExtension","isSafariWebExtension","updateRateLimits","limits","updatedRateLimits","ratelimit_extends","rateLimitHeader","retryAfterHeader","retryAfter","categories","namespaces","headerDelay","parseInt","delay","all","headerDate","parse","parseRetryAfterHeader","createTransport","makeRequest","rateLimits","filteredEnvelopeItems","disabledUntil","isRateLimited","filteredEnvelope","recordEnvelopeLoss","types","envelopeContainsItemType","supports_isNativeFunction","cachedImplementations","getNativeImplementation","cached","impl","makeFetchTransport","nativeFetch","pendingBodySize","pendingCount","requestSize","requestOptions","transports_fetch_extends","referrerPolicy","keepalive","fetchOptions","HTML_ELEMENT_CONSTRUCTOR_NAME_REGEX","normalizeStringifyValue","esm_is_isElement","normalizeStringifyValue_getConstructorName","checkAndWarnIfIsEmbeddedBrowserExtension","_extensionObject$runt","_window","nw","extensionObject","runtime","_isEmbeddedBrowserExtension","shouldDisableBecauseIsBrowserExtenstion","skipBrowserExtensionCheck","sdk_extends","_breadcrumb$message","_breadcrumb$message2","_breadcrumb$message3","_breadcrumb$message4","_breadcrumb$message5","browserAutomationIntegration","automationFunctions","processEventUnsafe","ddgIntegration","_event$extra","signatures","isDuckDuckGoBrowser","matchesSignature","isDDGError","text","signature","gladlyIntegration","injectedRecursionFilterIntegration","injectedFunctions","injected_recursion_filter_processEventUnsafe","watchedPaths","sourceCache","monkeyPatchIntegration","reading","resolvePath","truncated","monkey_patch_integration_processEventUnsafe","part","paypalIntegration","label","isPaypalUnhandledException","isPaypalSdkFrame","isPaypalStackOverflow","absPath","redactUrlParamsIntegration","redact","redact_url_params_integration_processEventUnsafe","searchParams","lowercaseKeys","changed","pathname","redactUnsafe","shopifyCustomerPrivacyIntegration","shopify_customer_privacy_integration_processEventUnsafe","shopifyShopEventsListenerIntegration","findThrowingScript","shopify_shop_events_listener_integration_processEventUnsafe","_frames$index","shopifyWpmIntegration","frameFunction","shopify_wpm_integration_processEventUnsafe","stalePageIntegration","maxAgeMs","currentEpochInMilliseconds","renderEpochInMilliseconds","stale_page_integration_processEventUnsafe","replayEvent","isPromiseRejectionEvent","eventTypes","initOptions","previewMode","inspectMode","designMode","determineEnvironment","createReleaseName","queue","main"],"sourceRoot":""}