{ "version": 3, "sources": ["../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/debug-build.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/utils/worldwide.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/utils/version.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/carrier.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/utils/debug-logger.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/utils/stacktrace.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/instrument/handlers.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/instrument/globalError.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/instrument/globalUnhandledRejection.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/utils/is.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/utils/object.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/utils/randomSafeContext.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/utils/normalizationHints.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/utils/normalize.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/utils/string.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/utils/misc.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/utils/time.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/session.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/utils/merge.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/utils/propagationContext.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/utils/weakRef.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/utils/spanOnScope.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/scope.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/defaultScopes.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/utils/chain-and-copy-promiselike.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/asyncContext/stackStrategy.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/asyncContext/index.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/attributes.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/currentScopes.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/semanticAttributes.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/tracing/spanstatus.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/tracing/utils.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/utils/baggage.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/utils/dsn.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/utils/parseSampleRate.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/utils/tracing.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/utils/spanUtils.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/tracing/errors.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/utils/hasSpansEnabled.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/utils/should-ignore-span.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/tracing/sentryNonRecordingSpan.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/constants.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/tracing/dynamicSamplingContext.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/tracing/spans/beforeSendSpan.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/utils/envelope.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/envelope.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/tracing/logSpans.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/tracing/measurement.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/tracing/segmentSpanCaptureStrategy.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/tracing/spans/hasSpanStreamingEnabled.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/tracing/sentrySpan.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/tracing/sampling.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/tracing/trace.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/tracing/idleSpan.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/utils/scopeData.ts", "../../../../../../node_modules/.pnpm/@sentry+conventions@0.16.0/node_modules/@sentry/conventions/src/attributes.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/tracing/spans/captureSpan.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/utils/syncpromise.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/eventProcessors.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/utils/debug-ids.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/utils/prepareEvent.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/exports.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/utils/timer.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/api.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/integration.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/utils/env.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/utils/node.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/utils/isBrowser.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/logs/envelope.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/logs/internal.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/metrics/envelope.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/metrics/internal.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/tracing/spans/spanJsonToStreamedSpan.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/tracing/spans/extractGenAiSpans.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/utils/promisebuffer.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/utils/ratelimit.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/transports/base.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/utils/clientreport.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/utils/eventUtils.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/utils/transactionEvent.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/utils/data-collection/filtering-snippets.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/utils/data-collection/defaultPiiToCollectionOptions.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/utils/data-collection/resolveDataCollectionOptions.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/client.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/sdk.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/utils/data-collection/filterKeyValueData.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/utils/data-collection/filterQueryParams.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/utils/data-collection/filterUrlQuery.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/utils/data-collection/filterCollectedUrl.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/utils/url.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/utils/ipAddress.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/utils/sdkMetadata.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/utils/traceData.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/breadcrumbs.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/integrations/functiontostring.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/integrations/eventFilters.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/utils/aggregate-errors.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/utils/eventbuilder.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/instrument/console.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/utils/severity.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/integrations/dedupe.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/integrations/conversationId.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/fetch.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/utils/breadcrumb-log-level.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/utils/supports.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/instrument/fetch.ts", "../../../../../../node_modules/.pnpm/@sentry+core@10.75.3/node_modules/@sentry/core/src/utils/browser.ts", "../../../../../../node_modules/.pnpm/@sentry+browser@10.75.3/node_modules/@sentry/browser/src/helpers.ts", "../../../../../../node_modules/.pnpm/@sentry+browser@10.75.3/node_modules/@sentry/browser/src/eventbuilder.ts", "../../../../../../node_modules/.pnpm/@sentry+browser@10.75.3/node_modules/@sentry/browser/src/client.ts", "../../../../../../node_modules/.pnpm/@sentry+browser-utils@10.75.3/node_modules/@sentry/browser-utils/src/debug-build.ts", "../../../../../../node_modules/.pnpm/@sentry+browser-utils@10.75.3/node_modules/@sentry/browser-utils/src/types.ts", "../../../../../../node_modules/.pnpm/@sentry+browser-utils@10.75.3/node_modules/@sentry/browser-utils/src/metrics/web-vitals/lib/bindReporter.ts", "../../../../../../node_modules/.pnpm/@sentry+browser-utils@10.75.3/node_modules/@sentry/browser-utils/src/metrics/web-vitals/lib/getNavigationEntry.ts", "../../../../../../node_modules/.pnpm/@sentry+browser-utils@10.75.3/node_modules/@sentry/browser-utils/src/metrics/web-vitals/lib/getActivationStart.ts", "../../../../../../node_modules/.pnpm/@sentry+browser-utils@10.75.3/node_modules/@sentry/browser-utils/src/metrics/web-vitals/lib/globalListeners.ts", "../../../../../../node_modules/.pnpm/@sentry+browser-utils@10.75.3/node_modules/@sentry/browser-utils/src/metrics/web-vitals/lib/getVisibilityWatcher.ts", "../../../../../../node_modules/.pnpm/@sentry+browser-utils@10.75.3/node_modules/@sentry/browser-utils/src/metrics/web-vitals/lib/generateUniqueID.ts", "../../../../../../node_modules/.pnpm/@sentry+browser-utils@10.75.3/node_modules/@sentry/browser-utils/src/metrics/web-vitals/lib/initMetric.ts", "../../../../../../node_modules/.pnpm/@sentry+browser-utils@10.75.3/node_modules/@sentry/browser-utils/src/metrics/web-vitals/lib/initUnique.ts", "../../../../../../node_modules/.pnpm/@sentry+browser-utils@10.75.3/node_modules/@sentry/browser-utils/src/metrics/web-vitals/lib/LayoutShiftManager.ts", "../../../../../../node_modules/.pnpm/@sentry+browser-utils@10.75.3/node_modules/@sentry/browser-utils/src/metrics/web-vitals/lib/observe.ts", "../../../../../../node_modules/.pnpm/@sentry+browser-utils@10.75.3/node_modules/@sentry/browser-utils/src/metrics/web-vitals/lib/runOnce.ts", "../../../../../../node_modules/.pnpm/@sentry+browser-utils@10.75.3/node_modules/@sentry/browser-utils/src/metrics/web-vitals/lib/whenActivated.ts", "../../../../../../node_modules/.pnpm/@sentry+browser-utils@10.75.3/node_modules/@sentry/browser-utils/src/metrics/web-vitals/onFCP.ts", "../../../../../../node_modules/.pnpm/@sentry+browser-utils@10.75.3/node_modules/@sentry/browser-utils/src/metrics/web-vitals/getCLS.ts", "../../../../../../node_modules/.pnpm/@sentry+browser-utils@10.75.3/node_modules/@sentry/browser-utils/src/metrics/web-vitals/lib/polyfills/interactionCountPolyfill.ts", "../../../../../../node_modules/.pnpm/@sentry+browser-utils@10.75.3/node_modules/@sentry/browser-utils/src/metrics/web-vitals/lib/InteractionManager.ts", "../../../../../../node_modules/.pnpm/@sentry+browser-utils@10.75.3/node_modules/@sentry/browser-utils/src/metrics/web-vitals/lib/whenIdleOrHidden.ts", "../../../../../../node_modules/.pnpm/@sentry+browser-utils@10.75.3/node_modules/@sentry/browser-utils/src/metrics/web-vitals/getINP.ts", "../../../../../../node_modules/.pnpm/@sentry+browser-utils@10.75.3/node_modules/@sentry/browser-utils/src/metrics/web-vitals/lib/LCPEntryManager.ts", "../../../../../../node_modules/.pnpm/@sentry+browser-utils@10.75.3/node_modules/@sentry/browser-utils/src/metrics/web-vitals/getLCP.ts", "../../../../../../node_modules/.pnpm/@sentry+browser-utils@10.75.3/node_modules/@sentry/browser-utils/src/metrics/web-vitals/onTTFB.ts", "../../../../../../node_modules/.pnpm/@sentry+browser-utils@10.75.3/node_modules/@sentry/browser-utils/src/metrics/instrument.ts", "../../../../../../node_modules/.pnpm/@sentry+browser-utils@10.75.3/node_modules/@sentry/browser-utils/src/htmlTreeAsString.ts", "../../../../../../node_modules/.pnpm/@sentry+browser-utils@10.75.3/node_modules/@sentry/browser-utils/src/metrics/web-vitals/lib/onHidden.ts", "../../../../../../node_modules/.pnpm/@sentry+browser-utils@10.75.3/node_modules/@sentry/browser-utils/src/metrics/utils.ts", "../../../../../../node_modules/.pnpm/@sentry+browser-utils@10.75.3/node_modules/@sentry/browser-utils/src/metrics/cls.ts", "../../../../../../node_modules/.pnpm/@sentry+browser-utils@10.75.3/node_modules/@sentry/browser-utils/src/metrics/lcp.ts", "../../../../../../node_modules/.pnpm/@sentry+browser-utils@10.75.3/node_modules/@sentry/browser-utils/src/metrics/resourceTiming.ts", "../../../../../../node_modules/.pnpm/@sentry+browser-utils@10.75.3/node_modules/@sentry/browser-utils/src/metrics/browserMetrics.ts", "../../../../../../node_modules/.pnpm/@sentry+browser-utils@10.75.3/node_modules/@sentry/browser-utils/src/metrics/inp.ts", "../../../../../../node_modules/.pnpm/@sentry+browser-utils@10.75.3/node_modules/@sentry/browser-utils/src/metrics/webVitalSpans.ts", "../../../../../../node_modules/.pnpm/@sentry+browser-utils@10.75.3/node_modules/@sentry/browser-utils/src/instrument/dom.ts", "../../../../../../node_modules/.pnpm/@sentry+browser-utils@10.75.3/node_modules/@sentry/browser-utils/src/instrument/history.ts", "../../../../../../node_modules/.pnpm/@sentry+browser-utils@10.75.3/node_modules/@sentry/browser-utils/src/getNativeImplementation.ts", "../../../../../../node_modules/.pnpm/@sentry+browser-utils@10.75.3/node_modules/@sentry/browser-utils/src/instrument/xhr.ts", "../../../../../../node_modules/.pnpm/@sentry+browser-utils@10.75.3/node_modules/@sentry/browser-utils/src/networkUtils.ts", "../../../../../../node_modules/.pnpm/@sentry+browser-utils@10.75.3/node_modules/@sentry/browser-utils/src/is.ts", "../../../../../../node_modules/.pnpm/@sentry+browser@10.75.3/node_modules/@sentry/browser/src/transports/fetch.ts", "../../../../../../node_modules/.pnpm/@sentry+browser@10.75.3/node_modules/@sentry/browser/src/debug-build.ts", "../../../../../../node_modules/.pnpm/@sentry+browser@10.75.3/node_modules/@sentry/browser/src/stack-parsers.ts", "../../../../../../node_modules/.pnpm/@sentry+browser@10.75.3/node_modules/@sentry/browser/src/integrations/breadcrumbs.ts", "../../../../../../node_modules/.pnpm/@sentry+browser@10.75.3/node_modules/@sentry/browser/src/integrations/browserapierrors.ts", "../../../../../../node_modules/.pnpm/@sentry+browser@10.75.3/node_modules/@sentry/browser/src/integrations/browsersession.ts", "../../../../../../node_modules/.pnpm/@sentry+browser@10.75.3/node_modules/@sentry/browser/src/integrations/culturecontext.ts", "../../../../../../node_modules/.pnpm/@sentry+browser@10.75.3/node_modules/@sentry/browser/src/integrations/globalhandlers.ts", "../../../../../../node_modules/.pnpm/@sentry+browser@10.75.3/node_modules/@sentry/browser/src/integrations/httpcontext.ts", "../../../../../../node_modules/.pnpm/@sentry+browser@10.75.3/node_modules/@sentry/browser/src/integrations/linkederrors.ts", "../../../../../../node_modules/.pnpm/@sentry+browser@10.75.3/node_modules/@sentry/browser/src/normalizeStringifyValue.ts", "../../../../../../node_modules/.pnpm/@sentry+browser@10.75.3/node_modules/@sentry/browser/src/utils/detectBrowserExtension.ts", "../../../../../../node_modules/.pnpm/@sentry+browser@10.75.3/node_modules/@sentry/browser/src/sdk.ts", "../../../../../../node_modules/.pnpm/@sentry+browser@10.75.3/node_modules/@sentry/browser/src/tracing/utils.ts", "../../../../../../node_modules/.pnpm/@sentry+browser@10.75.3/node_modules/@sentry/browser/src/tracing/request.ts", "../../../../../../node_modules/.pnpm/@sentry+browser@10.75.3/node_modules/@sentry/browser/src/integrations/fetchStreamPerformance.ts", "../../../../../../node_modules/.pnpm/@sentry+browser@10.75.3/node_modules/@sentry/browser/src/integrations/webVitals.ts", "../../../../../../node_modules/.pnpm/@sentry+browser@10.75.3/node_modules/@sentry/browser/src/tracing/backgroundtab.ts", "../../../../../../node_modules/.pnpm/@sentry+browser@10.75.3/node_modules/@sentry/browser/src/tracing/linkedTraces.ts", "../../../../../../node_modules/.pnpm/@sentry+browser@10.75.3/node_modules/@sentry/browser/src/tracing/browserTracingIntegration.ts", "../../../javascript/packs/sentry.js"], "sourcesContent": ["declare const __DEBUG_BUILD__: boolean;\n\n/**\n * This serves as a build time flag that will be true by default, but false in non-debug builds or if users replace `__SENTRY_DEBUG__` in their generated code.\n *\n * ATTENTION: This constant must never cross package boundaries (i.e. be exported) to guarantee that it can be used for tree shaking.\n */\nexport const DEBUG_BUILD = __DEBUG_BUILD__;\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;\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;\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;\n _sentryEsmLoaderHookRegistered?: boolean;\n _sentryWrappedDepth?: number;\n /**\n * Orchestrion bundler and runtime detection.\n */\n __SENTRY_ORCHESTRION__?: {\n /** Empty array signifies runtime hooked */\n runtime?: string[];\n /** Empty array signifies bundler plugin ran */\n bundler?: string[];\n /**\n * Channel-subscriber integration factories a bundler plugin's\n * subscribe-injection stored here, keyed by export name (one per instrumented\n * package actually bundled; the key dedupes packages split across several\n * files). A bundler-only SDK (e.g. `@sentry/cloudflare`) reads these at\n * `init()` and instantiates them.\n */\n integrations?: Map Integration>;\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", "// This is a magic string replaced by rollup\ndeclare const __SENTRY_SDK_VERSION__: string;\n\nexport const SDK_VERSION = typeof __SENTRY_SDK_VERSION__ === 'string' ? __SENTRY_SDK_VERSION__ : '0.0.0-unknown.0';\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, 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>;\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>;\n\n /** Strategy for assembling segment spans into transactions; set by SDKs that defer capture. */\n segmentSpanCaptureStrategy?: SegmentSpanCaptureStrategy;\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(\n name: Prop,\n creator: () => NonNullable,\n obj = GLOBAL_OBJ,\n): NonNullable {\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): void;\n warn(...args: Parameters): void;\n error(...args: Parameters): 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): void;\n info(...args: Parameters): void;\n warn(...args: Parameters): void;\n error(...args: Parameters): void;\n debug(...args: Parameters): void;\n assert(...args: Parameters): void;\n trace(...args: Parameters): 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(callback: () => T): T {\n if (!('console' in GLOBAL_OBJ)) {\n return callback();\n }\n\n const console = GLOBAL_OBJ.console;\n const wrappedFuncs: Partial 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): void {\n _maybeLog('log', ...args);\n}\n\nfunction warn(...args: Parameters): void {\n _maybeLog('warn', ...args);\n}\n\nfunction error(...args: Parameters): 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", "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\u00B2) 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[] {\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 = '';\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 \u2014 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 { 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", "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", "/* 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 {\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 {\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 {\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 */\n// TODO: fix in v11, convert any to unknown\n// export function isInstanceOf(wat: unknown, base: { new (...args: any[]): T }): wat is T {\nexport function isInstanceOf(wat: any, base: any): wat is T {\n try {\n return wat instanceof base;\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, )` or `origMethod.apply(this, [])` (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(\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(func: WrappedFunction): 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(value: V): Record | 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 {\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(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();\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(inputValue: T, memoizationMap: Map): 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 {\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 = (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(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 { 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)[SENTRY_SKIP_NORMALIZATION]);\n}\n\n/** @internal */\nexport function getNormalizationDepthOverrideHint(value: object): number | undefined {\n const v = (value as Record)[SENTRY_OVERRIDE_NORMALIZATION_DEPTH];\n return typeof v === 'number' ? v : undefined;\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) => 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 = { [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(\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 {\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;\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;\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);\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,\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();\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 boolean)>\n | Set 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", "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 || '';\n }\n return eventId || '';\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): void {\n const firstException = getFirstException(event);\n if (!firstException) {\n return;\n }\n\n const defaultMechanism = { type: 'generic', handled: true };\n const currentMechanism = firstException.mechanism;\n firstException.mechanism = { ...defaultMechanism, ...currentMechanism, ...newMechanism };\n\n if (newMechanism && 'data' in newMechanism) {\n const mergedData = { ...currentMechanism?.data, ...newMechanism.data };\n firstException.mechanism.data = mergedData;\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 * 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 an inaccurate time origin data, through either performance.timeOrigin or\n * performance.timing.navigationStart, which results in poor results in performance data. We only treat time origin\n * data as reliable if they are 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 // TODO: Remove all code related to `performance.timing.navigationStart` once we drop support for Safari 14.\n // `performance.timeSince` is available in Safari 15.\n // see: https://caniuse.com/mdn-api_performance_timeorigin\n\n // While performance.timing.navigationStart is deprecated in favor of performance.timeOrigin, performance.timeOrigin\n // is not as widely supported. Namely, performance.timeOrigin is undefined in Safari as of writing.\n // Also as of writing, performance.timing is not available in Web Workers in mainstream browsers, so it is not always\n // a valid fallback. In the absence of an initial time provided by the browser, fallback to the current time from the\n // Date API.\n // eslint-disable-next-line typescript/no-deprecated\n const navigationStart = performance.timing?.navigationStart;\n if (typeof navigationStart === 'number') {\n const navigationStartDelta = Math.abs(navigationStart + performanceNow - dateNow);\n if (navigationStartDelta < threshold) {\n return navigationStart;\n }\n }\n\n // Either both timeOrigin and navigationStart are skewed or neither is available, 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): 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. \u2014 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): 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(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 { 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 {\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 = WeakRefLike | 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(value: T): MaybeWeakRef {\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(ref: MaybeWeakRef | 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 './weakRef';\n\nconst SCOPE_SPAN_FIELD = '_sentrySpan';\n\ntype ScopeWithMaybeSpan = Scope & {\n [SCOPE_SPAN_FIELD]?: MaybeWeakRef;\n};\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 addNonEnumerableProperty(scope as ScopeWithMaybeSpan, SCOPE_SPAN_FIELD, makeWeakRef(span));\n } else {\n // eslint-disable-next-line @typescript-eslint/no-dynamic-delete\n delete (scope as ScopeWithMaybeSpan)[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: ScopeWithMaybeSpan): Span | undefined {\n return derefWeakRef(scope[SCOPE_SPAN_FIELD]);\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 { Span } from './types/span';\nimport type { PropagationContext } from './types/tracing';\nimport type { User } from './types/user';\nimport { debug } from './utils/debug-logger';\nimport { isPlainObject } from './utils/is';\nimport { merge } from './utils/merge';\nimport { uuid4 } from './utils/misc';\nimport { generateTraceId } from './utils/propagationContext';\nimport { safeMathRandom } from './utils/randomSafeContext';\nimport { _getSpanForScope, _setSpanForScope } from './utils/spanOnScope';\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 | ((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>;\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;\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 // TODO(v11): Make this a required field (could be subtly breaking if we did it today)\n attributes?: RawAttributes>;\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 span?: Span;\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>;\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 // 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 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\n _setSpanForScope(newScope, _getSpanForScope(this));\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 | 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>(newAttributes: RawAttributes): 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 extends { value: any } | { unit: any } ? AttributeObject : unknown>(\n key: string,\n value: RawAttribute,\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 * Clears the current scope and resets its properties.\n * Note: The client will not be cleared.\n *\n * @deprecated This method will be removed in v11. To reset scope state, re-initialize the SDK or run\n * your code in a fresh scope via `withScope` instead.\n */\n public clear(): this {\n // client is not cleared here on purpose!\n this._breadcrumbs = [];\n this._tags = {};\n this._attributes = {};\n this._extra = {};\n this._user = {};\n this._contexts = {};\n this._level = undefined;\n this._transactionName = undefined;\n this._fingerprint = undefined;\n this._session = undefined;\n this._conversationId = undefined;\n _setSpanForScope(this, undefined);\n this._attachments = [];\n this.setPropagationContext({\n traceId: generateTraceId(),\n sampleRand: safeMathRandom(),\n });\n\n this._notifyScopeListeners();\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 this._client?.recordDroppedEvent('buffer_overflow', 'log_item');\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 span: _getSpanForScope(this),\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 { 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", "const isActualPromise = (p: unknown) =>\n p instanceof Promise && !(p as unknown as ChainedPromiseLike)[kChainedCopy];\n\ntype ChainedPromiseLike = PromiseLike & {\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 = >(\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 = >(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)[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 { 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(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> & Record,\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 | 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(callback: (scope: Scope) => T): T {\n return getAsyncContextStack().withScope(callback);\n}\n\nfunction withSetScope(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(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 withIsolationScope,\n withScope,\n withSetScope,\n withSetIsolationScope: (_isolationScope: Scope, callback: (isolationScope: Scope) => T) => {\n return withIsolationScope(callback);\n },\n getCurrentScope: () => getAsyncContextStack().getScope(),\n getIsolationScope: () => getAsyncContextStack().getIsolationScope(),\n };\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 type { DurationUnit, FractionUnit, InformationUnit } from './types/measurement';\nimport type { Primitive } from './types/misc';\nimport { isPrimitive } from './utils/is';\n\nexport type RawAttributes = T & ValidatedAttributes;\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport type RawAttribute = T extends { value: any } | { unit: any } ? AttributeObject : T;\n\nexport type Attributes = Record;\n\nexport type AttributeValueType = string | number | boolean | Array | Array | Array;\n\ntype AttributeTypeMap = {\n string: string;\n integer: number;\n double: number;\n boolean: boolean;\n array: Array | Array | Array;\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\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 = {\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(\n attributes: RawAttributes | 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", "import { getAsyncContextStrategy } from './asyncContext';\nimport { getGlobalSingleton, getMainCarrier } from './carrier';\nimport type { Client } from './client';\nimport { Scope } from './scope';\nimport type { TraceContext } from './types/context';\nimport { generateSpanId } from './utils/propagationContext';\n\nlet _externalPropagationContextProvider: (() => { traceId: string; spanId: string } | undefined) | undefined;\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 _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 _externalPropagationContextProvider?.();\n}\n\n/**\n * Check if an external propagation context provider has been registered.\n */\nexport function hasExternalPropagationContext(): boolean {\n return _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(callback: (scope: Scope) => T): T;\n/**\n * Set the given scope as the active scope in the callback.\n */\nexport function withScope(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(\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(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(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(\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 | undefined {\n return getCurrentScope().getClient();\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", "/**\n * Use this attribute to represent the source of a span name.\n * Must be one of: custom, url, route, view, component, task\n * TODO(v11): remove this export\n */\nexport const SEMANTIC_ATTRIBUTE_SENTRY_SOURCE = 'sentry.source';\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 */\nexport const SEMANTIC_ATTRIBUTE_SENTRY_OP = 'sentry.op';\n\n/**\n * Use this attribute to represent the origin of a span.\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 */\nexport const SEMANTIC_ATTRIBUTE_SENTRY_STATUS_MESSAGE = 'sentry.status.message';\n\n/** The reason why an idle span finished. */\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/** The release version of the application */\nexport const SEMANTIC_ATTRIBUTE_SENTRY_RELEASE = 'sentry.release';\n/** The environment name (e.g., \"production\", \"staging\", \"development\") */\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/** The list of integrations enabled in the Sentry SDK (e.g., [\"InboundFilters\", \"BrowserTracing\"]) */\nexport const SEMANTIC_ATTRIBUTE_SENTRY_SDK_INTEGRATIONS = 'sentry.sdk.integrations';\n\n/** The user ID */\nexport const SEMANTIC_ATTRIBUTE_USER_ID = 'user.id';\n/** The user email */\nexport const SEMANTIC_ATTRIBUTE_USER_EMAIL = 'user.email';\n/** The user IP address */\nexport const SEMANTIC_ATTRIBUTE_USER_IP_ADDRESS = 'user.ip_address';\n/** The user username */\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 */\nexport const SEMANTIC_ATTRIBUTE_PROFILE_ID = 'sentry.profile_id';\n\nexport const SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME = 'sentry.exclusive_time';\n\nexport const SEMANTIC_ATTRIBUTE_CACHE_HIT = 'cache.hit';\n\nexport const SEMANTIC_ATTRIBUTE_CACHE_KEY = 'cache.key';\n\nexport const SEMANTIC_ATTRIBUTE_CACHE_ITEM_SIZE = 'cache.item_size';\n\n/** TODO: Remove these once we update to latest semantic conventions */\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 * @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 */\nexport const GEN_AI_CONVERSATION_ID_ATTRIBUTE = 'gen_ai.conversation.id';\n", "import type { Span } from '../types/span';\nimport 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\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 { 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 whose `sentry.source` should be inferred OTel-style at span end (by\n// `applyOtelSpanData`) rather than pinned. `SentryTraceProvider` sets it on the spans it creates\n// so they behave like OTel SDK spans, which carry no Sentry source concept. We use `Symbol.for`\n// so the key is shared across duplicated copies of `@sentry/core`.\nconst OTEL_SOURCE_INFERENCE_SPAN_FIELD = Symbol.for('sentry.otelSourceInference');\n\n// Brand marking a span (otherwise subject to OTel-style source inference, see above) whose\n// `sentry.source` was explicitly set by user code after creation, so `applyOtelSpanData` stops\n// inferring and respects the chosen source and name. This is what tells a user-set `custom` source\n// apart from the default `custom` that `_startRootSpan` stamps on every root span.\nconst OTEL_SOURCE_EXPLICITLY_SET_SPAN_FIELD = Symbol.for('sentry.otelSourceExplicitlySet');\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;\n};\n\ntype SpanWithOtelSourceInference = Span & {\n [OTEL_SOURCE_INFERENCE_SPAN_FIELD]?: boolean;\n [OTEL_SOURCE_EXPLICITLY_SET_SPAN_FIELD]?: boolean;\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 eligible for OTel-style `sentry.source` inference at span end.\n * Set by `SentryTraceProvider` on the spans it creates; read by `SentrySpan.updateName()` and\n * `applyOtelSpanData()`.\n */\nexport function markSpanForOtelSourceInference(span: Span): void {\n addNonEnumerableProperty(span, OTEL_SOURCE_INFERENCE_SPAN_FIELD, true);\n}\n\n/** Whether a span is marked for OTel-style `sentry.source` inference (see {@link markSpanForOtelSourceInference}). */\nexport function spanShouldInferOtelSource(span: Span): boolean {\n return (span as SpanWithOtelSourceInference)[OTEL_SOURCE_INFERENCE_SPAN_FIELD] === true;\n}\n\n/**\n * Mark that user code explicitly set `sentry.source` on a span subject to OTel-style inference, so\n * `applyOtelSpanData` keeps that source (and name) instead of overriding it. Set by `SentrySpan`\n * when `setAttribute` writes the source on an already-branded span (the default `custom` source is\n * stamped at construction, before the brand, so it doesn't trip this).\n */\nexport function markSpanSourceAsExplicit(span: Span): void {\n addNonEnumerableProperty(span, OTEL_SOURCE_EXPLICITLY_SET_SPAN_FIELD, true);\n}\n\n/** Whether user code explicitly set `sentry.source` on a span (see {@link markSpanSourceAsExplicit}). */\nexport function spanSourceWasExplicitlySet(span: Span): boolean {\n return (span as SpanWithOtelSourceInference)[OTEL_SOURCE_EXPLICITLY_SET_SPAN_FIELD] === true;\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 { 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 | 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>((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 as Partial;\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,\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>(\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 | 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>((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 {\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>((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 | 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(\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 = {};\n\n // partition incoming entries into sentry and non-sentry prefixed\n let hasNewSentryEntries = false;\n const newSentryEntries: Record = {};\n const newNonSentryEntries: Record = {};\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 { 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 = ['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", "/**\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 type { Client } from '../client';\nimport type { DynamicSamplingContext } from '../types/envelope';\nimport type { PropagationContext } from '../types/tracing';\nimport type { TraceparentData } from '../types/transaction';\nimport { debug } from '../utils/debug-logger';\nimport { baggageHeaderToDynamicSamplingContext } from './baggage';\nimport { extractOrgIdFromClient } from './dsn';\nimport { parseSampleRate } from './parseSampleRate';\nimport { generateSpanId, generateTraceId } from './propagationContext';\nimport { safeMathRandom } from './randomSafeContext';\n\n// oxlint-disable-next-line sdk/no-regexp-constructor -- RegExp is used for readability here\nexport const TRACEPARENT_REGEXP = new RegExp(\n '^[ \\\\t]*' + // whitespace\n '([0-9a-f]{32})?' + // trace_id\n '-?([0-9a-f]{16})?' + // span_id\n '-?([01])?' + // sampled\n '[ \\\\t]*$', // whitespace\n);\n\n/**\n * Extract transaction context data from a `sentry-trace` header.\n *\n * This is terrible naming but the function has nothing to do with the W3C traceparent header.\n * It can only parse the `sentry-trace` header and extract the \"trace parent\" data.\n *\n * @param traceparent Traceparent string\n *\n * @returns Object containing data from the header, or undefined if traceparent string is malformed\n */\nexport function extractTraceparentData(traceparent?: string): TraceparentData | undefined {\n if (!traceparent) {\n return undefined;\n }\n\n const matches = traceparent.match(TRACEPARENT_REGEXP);\n if (!matches) {\n return undefined;\n }\n\n let parentSampled: boolean | undefined;\n if (matches[3] === '1') {\n parentSampled = true;\n } else if (matches[3] === '0') {\n parentSampled = false;\n }\n\n return {\n traceId: matches[1],\n parentSampled,\n parentSpanId: matches[2],\n };\n}\n\n/**\n * Whether a propagation context continues an incoming trace, rather than being the head of a new one.\n *\n * Both fields have to be checked. `parentSpanId` is unset when the incoming `sentry-trace` header\n * carried no span id, which the header format allows. `dsc` is unset when a remote parent arrived\n * without any incoming baggage. Either one on its own therefore misses a continued trace.\n */\nexport function isContinuingTrace(propagationContext: PropagationContext): boolean {\n return !!propagationContext.parentSpanId || !!propagationContext.dsc;\n}\n\n/**\n * Create a propagation context from incoming headers or\n * creates a minimal new one if the headers are undefined.\n */\nexport function propagationContextFromHeaders(\n sentryTrace: string | undefined,\n baggage: string | number | boolean | string[] | null | undefined,\n): PropagationContext {\n const traceparentData = extractTraceparentData(sentryTrace);\n const dynamicSamplingContext = baggageHeaderToDynamicSamplingContext(baggage);\n\n if (!traceparentData?.traceId) {\n return {\n traceId: generateTraceId(),\n sampleRand: safeMathRandom(),\n };\n }\n\n const sampleRand = getSampleRandFromTraceparentAndDsc(traceparentData, dynamicSamplingContext);\n\n // The sample_rand on the DSC needs to be generated based on traceparent + baggage.\n if (dynamicSamplingContext) {\n dynamicSamplingContext.sample_rand = sampleRand.toString();\n }\n\n const { traceId, parentSpanId, parentSampled } = traceparentData;\n\n return {\n traceId,\n parentSpanId,\n sampled: parentSampled,\n dsc: dynamicSamplingContext || {}, // If we have traceparent data but no DSC it means we are not head of trace and we must freeze it\n sampleRand,\n };\n}\n\n/**\n * Create sentry-trace header from span context values.\n */\nexport function generateSentryTraceHeader(\n traceId: string | undefined = generateTraceId(),\n spanId: string | undefined = generateSpanId(),\n sampled?: boolean,\n): string {\n let sampledString = '';\n if (sampled !== undefined) {\n sampledString = sampled ? '-1' : '-0';\n }\n return `${traceId}-${spanId}${sampledString}`;\n}\n\n/**\n * Creates a W3C traceparent header from the given trace and span ids.\n */\nexport function generateTraceparentHeader(\n traceId: string | undefined = generateTraceId(),\n spanId: string | undefined = generateSpanId(),\n sampled?: boolean,\n): string {\n return `00-${traceId}-${spanId}-${sampled ? '01' : '00'}`;\n}\n\n/**\n * Given any combination of an incoming trace, generate a sample rand based on its defined semantics.\n *\n * Read more: https://develop.sentry.dev/sdk/telemetry/traces/#propagated-random-value\n */\nfunction getSampleRandFromTraceparentAndDsc(\n traceparentData: TraceparentData | undefined,\n dsc: Partial | undefined,\n): number {\n // When there is an incoming sample rand use it.\n const parsedSampleRand = parseSampleRate(dsc?.sample_rand);\n if (parsedSampleRand !== undefined) {\n return parsedSampleRand;\n }\n\n // Otherwise, if there is an incoming sampling decision + sample rate, generate a sample rand that would lead to the same sampling decision.\n const parsedSampleRate = parseSampleRate(dsc?.sample_rate);\n if (parsedSampleRate && traceparentData?.parentSampled !== undefined) {\n return traceparentData.parentSampled\n ? // Returns a sample rand with positive sampling decision [0, sampleRate)\n safeMathRandom() * parsedSampleRate\n : // Returns a sample rand with negative sampling decision [sampleRate, 1)\n parsedSampleRate + safeMathRandom() * (1 - parsedSampleRate);\n } else {\n // If nothing applies, return a random sample rand.\n return safeMathRandom();\n }\n}\n\n/**\n * Determines whether a new trace should be continued based on the provided baggage org ID and the client's `strictTraceContinuation` option.\n * If the trace should not be continued, a new trace will be started.\n *\n * The result is dependent on the `strictTraceContinuation` option in the client.\n * See https://develop.sentry.dev/sdk/telemetry/traces/#stricttracecontinuation\n */\nexport function shouldContinueTrace(client: Client, baggageOrgId?: string): boolean {\n const clientOrgId = extractOrgIdFromClient(client);\n\n // Case: baggage orgID and Client orgID don't match - always start new trace\n if (baggageOrgId && clientOrgId && baggageOrgId !== clientOrgId) {\n debug.log(\n `Won't continue trace because org IDs don't match (incoming baggage: ${baggageOrgId}, SDK options: ${clientOrgId})`,\n );\n return false;\n }\n\n const strictTraceContinuation = client.getOptions().strictTraceContinuation || false; // default for `strictTraceContinuation` is `false`\n\n if (strictTraceContinuation) {\n // With strict continuation enabled, don't continue trace if:\n // - Baggage has orgID, but Client doesn't have one\n // - Client has orgID, but baggage doesn't have one\n if ((baggageOrgId && !clientOrgId) || (!baggageOrgId && clientOrgId)) {\n debug.log(\n `Starting a new trace because strict trace continuation is enabled but one org ID is missing (incoming baggage: ${baggageOrgId}, Sentry client: ${clientOrgId})`,\n );\n return false;\n }\n }\n\n return true;\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 {\n SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME,\n SEMANTIC_ATTRIBUTE_SENTRY_OP,\n SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,\n SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,\n SEMANTIC_ATTRIBUTE_SENTRY_STATUS_MESSAGE,\n} from '../semanticAttributes';\nimport type { SentrySpan } from '../tracing/sentrySpan';\nimport { 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 {\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 { consoleSandbox } from './debug-logger';\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\nlet hasShownSpanDropWarning = false;\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 } = spanToJSON(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 : spanToJSON(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>>[] | 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 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 spanToJSON(span: Span): SpanJSON {\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 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[SEMANTIC_ATTRIBUTE_SENTRY_OP],\n origin: attributes[SEMANTIC_ATTRIBUTE_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 data: {},\n };\n}\n\n/**\n * Convert a span to the intermediate {@link StreamedSpanJSON} representation.\n */\nexport function spanToStreamedSpanJSON(span: Span): StreamedSpanJSON {\n if (spanIsSentrySpan(span)) {\n return span.getStreamedSpanJSON();\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 end_timestamp: spanTimeInputToSeconds(endTime),\n is_segment: span === INTERNAL_getSegmentSpan(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 end_timestamp: 0,\n status: 'ok',\n is_segment: span === INTERNAL_getSegmentSpan(span),\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 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;\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 | undefined {\n if (!status || status.code === SPAN_STATUS_UNSET) {\n return undefined;\n }\n\n if (status.code === SPAN_STATUS_OK) {\n return 'ok';\n }\n\n return 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 SEMANTIC_ATTRIBUTE_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> {\n const statusMessage = getSimpleStatus(status) === 'error' ? status?.message : undefined;\n return {\n ...(statusMessage && { [SEMANTIC_ATTRIBUTE_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;\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 as SpanWithPotentialChildren, ROOT_SPAN_FIELD, rootSpan);\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();\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 * Returns the currently active span.\n */\nexport function getActiveSpan(): Span | undefined {\n const carrier = getMainCarrier();\n const acs = getAsyncContextStrategy(carrier);\n if (acs.getActiveSpan) {\n return acs.getActiveSpan();\n }\n\n return _getSpanForScope(getCurrentScope());\n}\n\n/**\n * Logs a warning once if `beforeSendSpan` is used to drop spans.\n */\nexport function showSpanDropWarning(): void {\n if (!hasShownSpanDropWarning) {\n consoleSandbox(() => {\n // eslint-disable-next-line no-console\n console.warn(\n '[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.',\n );\n });\n hasShownSpanDropWarning = true;\n }\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_SOURCE]: 'custom',\n [SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME]: name,\n });\n}\n", "import { DEBUG_BUILD } from '../debug-build';\nimport { addGlobalErrorInstrumentationHandler } from '../instrument/globalError';\nimport { addGlobalUnhandledRejectionInstrumentationHandler } from '../instrument/globalUnhandledRejection';\nimport { debug } from '../utils/debug-logger';\nimport { getActiveSpan, getRootSpan } from '../utils/spanUtils';\nimport { SPAN_STATUS_ERROR } from './spanstatus';\n\nlet errorsInstrumented = false;\n\n/** Only exposed for testing */\nexport function _resetErrorsInstrumented(): void {\n errorsInstrumented = false;\n}\n\n/**\n * Ensure that global errors automatically set the active span status.\n */\nexport function registerSpanErrorInstrumentation(): void {\n if (errorsInstrumented) {\n return;\n }\n\n /**\n * If an error or unhandled promise occurs, we mark the active root span as failed\n */\n function errorCallback(): void {\n const activeSpan = getActiveSpan();\n const rootSpan = activeSpan && getRootSpan(activeSpan);\n if (rootSpan) {\n const message = 'internal_error';\n DEBUG_BUILD && debug.log(`[Tracing] Root span: ${message} -> Global error occurred`);\n rootSpan.setStatus({ code: SPAN_STATUS_ERROR, message });\n }\n }\n\n errorsInstrumented = true;\n addGlobalErrorInstrumentationHandler(errorCallback);\n addGlobalUnhandledRejectionInstrumentationHandler(errorCallback);\n}\n", "import { getClient } from '../currentScopes';\nimport type { CoreOptions } from '../types/options';\n\n// Treeshakable guard to remove all code related to tracing\ndeclare const __SENTRY_TRACING__: boolean | undefined;\n\n/**\n * Determines if span recording is currently enabled.\n *\n * Spans are recorded when at least one of `tracesSampleRate` and `tracesSampler`\n * is defined in the SDK config. This function does not make any assumption about\n * sampling decisions, it only checks if the SDK is configured to record spans.\n *\n * Important: This function only determines if span recording is enabled. Trace\n * continuation and propagation is separately controlled and not covered by this function.\n * If this function returns `false`, traces can still be propagated (which is what\n * we refer to by \"Tracing without Performance\")\n * @see https://develop.sentry.dev/sdk/telemetry/traces/tracing-without-performance/\n *\n * @param maybeOptions An SDK options object to be passed to this function.\n * If this option is not provided, the function will use the current client's options.\n */\nexport function hasSpansEnabled(\n maybeOptions?: Pick | undefined,\n): boolean {\n if (typeof __SENTRY_TRACING__ === 'boolean' && !__SENTRY_TRACING__) {\n return false;\n }\n\n const options = maybeOptions || getClient()?.getOptions();\n return (\n !!options &&\n // Note: This check is `!= null`, meaning \"nullish\". `0` is not \"nullish\", `undefined` and `null` are. (This comment was brought to you by 15 minutes of questioning life)\n (options.tracesSampleRate != null || !!options.tracesSampler)\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): 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 & { attributes?: Record },\n ignoreSpans: Required['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 { 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", "export const DEFAULT_ENVIRONMENT = 'production';\nexport const DEV_ENVIRONMENT = 'development';\n", "import type { Client } from '../client';\nimport { DEFAULT_ENVIRONMENT } from '../constants';\nimport { getClient } from '../currentScopes';\nimport type { Scope } from '../scope';\nimport {\n SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE,\n SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,\n SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,\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, spanToJSON } 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 | undefined;\n};\n\n/**\n * Freeze the given DSC on the given span.\n */\nexport function freezeDscOnSpan(span: Span, dsc: Partial): 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(client: Client, scope: Scope): Partial {\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> {\n const client = getClient();\n if (!client) {\n return {};\n }\n\n const rootSpan = getRootSpan(span);\n const rootSpanJson = spanToJSON(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): Partial {\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 if (capturedScope) {\n const dsc = { ...getDynamicSamplingContextFromScope(client, capturedScope) };\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 // TODO(v11): Only read `SENTRY_SEGMENT_NAME_SOURCE` once we removed `SEMANTIC_ATTRIBUTE_SENTRY_SOURCE`\n const source =\n rootSpanAttributes[SEMANTIC_ATTRIBUTE_SENTRY_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", "import type { CoreOptions } from '../../types/options';\nimport type { BeforeSendStreamedSpanCallback } from '../../types/options';\nimport type { StreamedSpanJSON } from '../../types/span';\nimport { addNonEnumerableProperty } from '../../utils/object';\n\ntype StaticBeforeSendSpanCallback = CoreOptions['beforeSendSpan'];\n\n/**\n * A wrapper to use the new span format in your `beforeSendSpan` callback.\n *\n * When using `traceLifecycle: 'stream'`, wrap your callback with this function\n * to receive and return {@link StreamedSpanJSON} instead of the standard {@link SpanJSON}.\n *\n * @example\n *\n * Sentry.init({\n * traceLifecycle: 'stream',\n * beforeSendSpan: withStreamedSpan((span) => {\n * // span is of type StreamedSpanJSON\n * return span;\n * }),\n * });\n *\n * @param callback - The callback function that receives and returns a {@link StreamedSpanJSON}.\n * @returns A callback that is compatible with the `beforeSendSpan` option when using `traceLifecycle: 'stream'`.\n */\nexport function withStreamedSpan(\n callback: (span: StreamedSpanJSON) => StreamedSpanJSON,\n): StaticBeforeSendSpanCallback & { _streamed: true } {\n addNonEnumerableProperty(callback, '_streamed', true);\n return callback as unknown as StaticBeforeSendSpanCallback & { _streamed: true };\n}\n\n/**\n * Typesafe check to identify if a `beforeSendSpan` callback expects the streamed span JSON format.\n *\n * @param callback - The `beforeSendSpan` callback to check.\n * @returns `true` if the callback was wrapped with {@link withStreamedSpan}.\n */\nexport function isStreamedBeforeSendSpanCallback(callback: unknown): callback is BeforeSendStreamedSpanCallback {\n return !!callback && typeof callback === 'function' && '_streamed' in callback && !!callback._streamed;\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 SpanItem,\n} from '../types/envelope';\nimport type { Event } from '../types/event';\nimport type { SdkInfo } from '../types/sdkinfo';\nimport type { SdkMetadata } from '../types/sdkmetadata';\nimport type { SpanJSON } from '../types/span';\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(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(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(\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 {\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();\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const items: [any, any][] = [];\n\n while (buffer.length) {\n const itemHeader = readJson();\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 envelope item for a single span\n */\nexport function createSpanEnvelopeItem(spanJson: Partial): SpanItem {\n const spanHeaders: SpanItem[0] = {\n type: 'span',\n };\n\n return [spanHeaders, spanJson];\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;\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 = {\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", "import type { Client } from './client';\nimport { getDynamicSamplingContextFromSpan } from './tracing/dynamicSamplingContext';\nimport type { SentrySpan } from './tracing/sentrySpan';\nimport { isStreamedBeforeSendSpanCallback } from './tracing/spans/beforeSendSpan';\nimport type { LegacyCSPReport } from './types/csp';\nimport type { DsnComponents } from './types/dsn';\nimport type {\n DynamicSamplingContext,\n EventEnvelope,\n EventItem,\n RawSecurityEnvelope,\n RawSecurityItem,\n SessionEnvelope,\n SessionItem,\n SpanEnvelope,\n SpanItem,\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 {\n createEnvelope,\n createEventEnvelopeHeaders,\n createSpanEnvelopeItem,\n getSdkMetadataForEnvelopeHeader,\n} from './utils/envelope';\nimport { uuid4 } from './utils/misc';\nimport { safeDateNow } from './utils/randomSafeContext';\nimport { shouldIgnoreSpan } from './utils/should-ignore-span';\nimport { showSpanDropWarning, spanToJSON } from './utils/spanUtils';\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(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(envelopeHeaders, [eventItem]);\n}\n\n/**\n * Create envelope from Span item.\n *\n * Takes an optional client and runs spans through `beforeSendSpan` if available.\n */\nexport function createSpanEnvelope(spans: [SentrySpan, ...SentrySpan[]], client?: Client): SpanEnvelope {\n function dscHasRequiredProps(dsc: Partial): dsc is DynamicSamplingContext {\n return !!dsc.trace_id && !!dsc.public_key;\n }\n\n // For the moment we'll obtain the DSC from the first span in the array\n // This might need to be changed if we permit sending multiple spans from\n // different segments in one envelope\n const dsc = getDynamicSamplingContextFromSpan(spans[0]);\n\n const dsn = client?.getDsn();\n const tunnel = client?.getOptions().tunnel;\n\n const headers: SpanEnvelope[0] = {\n sent_at: new Date(safeDateNow()).toISOString(),\n ...(dscHasRequiredProps(dsc) && { trace: dsc }),\n ...(!!tunnel && dsn && { dsn: dsnToString(dsn) }),\n };\n\n const { beforeSendSpan, ignoreSpans } = client?.getOptions() || {};\n\n const filteredSpans = ignoreSpans?.length\n ? spans.filter(span => {\n const json = spanToJSON(span);\n return !shouldIgnoreSpan({ description: json.description, op: json.op, attributes: json.data }, ignoreSpans);\n })\n : spans;\n const droppedSpans = spans.length - filteredSpans.length;\n\n if (droppedSpans) {\n client?.recordDroppedEvent('before_send', 'span', droppedSpans);\n }\n\n const convertToSpanJSON = beforeSendSpan\n ? (span: SentrySpan) => {\n const spanJson = spanToJSON(span);\n const processedSpan = !isStreamedBeforeSendSpanCallback(beforeSendSpan) ? beforeSendSpan(spanJson) : spanJson;\n\n if (!processedSpan) {\n showSpanDropWarning();\n return spanJson;\n }\n\n return processedSpan;\n }\n : spanToJSON;\n\n const items: SpanItem[] = [];\n for (const span of filteredSpans) {\n const spanJson = convertToSpanJSON(span);\n if (spanJson) {\n items.push(createSpanEnvelopeItem(spanJson));\n }\n }\n\n return createEnvelope(headers, items);\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(envelopeHeaders, [eventItem]);\n}\n", "import { DEBUG_BUILD } from '../debug-build';\nimport type { Span } from '../types/span';\nimport { debug } from '../utils/debug-logger';\nimport { getRootSpan, spanIsSampled, spanToJSON } from '../utils/spanUtils';\n\n/**\n * Print a log message for a started span.\n */\nexport function logSpanStart(span: Span): void {\n if (!DEBUG_BUILD) return;\n\n const { description = '< unknown name >', op = '< unknown op >', parent_span_id: parentSpanId } = spanToJSON(span);\n const { spanId } = span.spanContext();\n\n const sampled = spanIsSampled(span);\n const rootSpan = getRootSpan(span);\n const isRootSpan = rootSpan === span;\n\n const header = `[Tracing] Starting ${sampled ? 'sampled' : 'unsampled'} ${isRootSpan ? 'root ' : ''}span`;\n\n const infoParts: string[] = [`op: ${op}`, `name: ${description}`, `ID: ${spanId}`];\n\n if (parentSpanId) {\n infoParts.push(`parent ID: ${parentSpanId}`);\n }\n\n if (!isRootSpan) {\n const { op, description } = spanToJSON(rootSpan);\n infoParts.push(`root ID: ${rootSpan.spanContext().spanId}`);\n if (op) {\n infoParts.push(`root op: ${op}`);\n }\n if (description) {\n infoParts.push(`root description: ${description}`);\n }\n }\n\n debug.log(`${header}\n ${infoParts.join('\\n ')}`);\n}\n\n/**\n * Print a log message for an ended span.\n */\nexport function logSpanEnd(span: Span): void {\n if (!DEBUG_BUILD) return;\n\n const { description = '< unknown name >', op = '< unknown op >' } = spanToJSON(span);\n const { spanId } = span.spanContext();\n const rootSpan = getRootSpan(span);\n const isRootSpan = rootSpan === span;\n\n const msg = `[Tracing] Finishing \"${op}\" ${isRootSpan ? 'root ' : ''}span \"${description}\" with ID ${spanId}`;\n debug.log(msg);\n}\n", "import { DEBUG_BUILD } from '../debug-build';\nimport {\n SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT,\n SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE,\n} from '../semanticAttributes';\nimport type { Measurements, MeasurementUnit } from '../types/measurement';\nimport type { TimedEvent } from '../types/timedEvent';\nimport { debug } from '../utils/debug-logger';\nimport { getActiveSpan, getRootSpan } from '../utils/spanUtils';\n\n/**\n * Adds a measurement to the active transaction on the current global scope. You can optionally pass in a different span\n * as the 4th parameter.\n */\nexport function setMeasurement(name: string, value: number, unit: MeasurementUnit, activeSpan = getActiveSpan()): void {\n const rootSpan = activeSpan && getRootSpan(activeSpan);\n\n if (rootSpan) {\n DEBUG_BUILD && debug.log(`[Measurement] Setting measurement on root span: ${name} = ${value} ${unit}`);\n rootSpan.addEvent(name, {\n [SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]: value,\n [SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]: unit as string,\n });\n }\n}\n\n/**\n * Convert timed events to measurements.\n */\nexport function timedEventsToMeasurements(events: TimedEvent[]): Measurements | undefined {\n if (!events || events.length === 0) {\n return undefined;\n }\n\n const measurements: Measurements = {};\n events.forEach(event => {\n const attributes = event.attributes || {};\n const unit = attributes[SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT] as MeasurementUnit | undefined;\n const value = attributes[SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE] as number | undefined;\n\n if (typeof unit === 'string' && typeof value === 'number') {\n measurements[event.name] = { value, unit };\n }\n });\n\n return measurements;\n}\n", "import { getMainCarrier, getSentryCarrier } from '../carrier';\nimport type { Scope } from '../scope';\nimport type { TransactionEvent } from '../types/event';\nimport type { Span } from '../types/span';\n\n/**\n * Callbacks the deferred-capture strategy hands to `_convertSpanToTransaction` when assembling a\n * transaction. The synchronous (browser) path calls the converter with no options, so neither runs.\n */\nexport interface SegmentSpanCaptureConvertOptions {\n /** Skip a descendant already sent in an earlier transaction, so it isn't sent twice. */\n isSpanAlreadyCaptured?: (span: Span) => boolean;\n /** Record each span included here, so a child that ends after the snapshot can be emitted as an orphan. */\n onSpanCaptured?: (span: Span) => void;\n}\n\nexport type SegmentSpanConverter = (options?: SegmentSpanCaptureConvertOptions) => TransactionEvent | undefined;\n\n/**\n * Assembles segment spans into transactions. Registered by SDKs that defer capture (see\n * `_INTERNAL_setDeferSegmentSpanCapture`); when unset, `SentrySpan` captures synchronously. Living\n * behind this seam tree-shakes the deferral machinery out of SDKs that never register one (e.g. browser).\n */\nexport interface SegmentSpanCaptureStrategy {\n /** Assemble and capture a segment (root or standalone-root) span's transaction through its captured scope. */\n onSegmentSpanEnded(convert: SegmentSpanConverter, scope: Scope): void;\n /** Consider a child that ended after its segment for emission as its own orphan transaction. */\n onChildSpanEnded(span: Span, rootSpan: Span, convert: SegmentSpanConverter, scope: Scope): void;\n}\n\n/**\n * @private Private API with no semver guarantees!\n *\n * Set the global segment-span capture strategy (or clear it with `undefined`).\n */\nexport function setSegmentSpanCaptureStrategy(strategy: SegmentSpanCaptureStrategy | undefined): void {\n getSentryCarrier(getMainCarrier()).segmentSpanCaptureStrategy = strategy;\n}\n\n/** Get the global segment-span capture strategy, or `undefined` when none is registered. */\nexport function getSegmentSpanCaptureStrategy(): SegmentSpanCaptureStrategy | undefined {\n return getSentryCarrier(getMainCarrier()).segmentSpanCaptureStrategy;\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", "/* eslint-disable max-lines */\nimport { getClient, getCurrentScope } from '../currentScopes';\nimport { DEBUG_BUILD } from '../debug-build';\nimport { createSpanEnvelope } from '../envelope';\nimport {\n SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME,\n SEMANTIC_ATTRIBUTE_PROFILE_ID,\n SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME,\n SEMANTIC_ATTRIBUTE_SENTRY_OP,\n SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,\n SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,\n} from '../semanticAttributes';\nimport type { SpanEnvelope } from '../types/envelope';\nimport type { TransactionEvent } from '../types/event';\nimport type { SpanLink } from '../types/link';\nimport type {\n SentrySpanArguments,\n Span,\n SpanAttributes,\n SpanAttributeValue,\n SpanContextData,\n SpanJSON,\n SpanOrigin,\n SpanTimeInput,\n StreamedSpanJSON,\n} from '../types/span';\nimport type { SpanStatus } from '../types/spanStatus';\nimport type { TimedEvent } from '../types/timedEvent';\nimport { debug } from '../utils/debug-logger';\nimport { generateSpanId, generateTraceId } from '../utils/propagationContext';\nimport {\n addStatusMessageAttribute,\n convertSpanLinksForEnvelope,\n getRootSpan,\n getSimpleStatus,\n getSpanDescendants,\n getStatusMessage,\n getStreamedSpanLinks,\n spanTimeInputToSeconds,\n spanToJSON,\n spanToTransactionTraceContext,\n TRACE_FLAG_NONE,\n TRACE_FLAG_SAMPLED,\n} from '../utils/spanUtils';\nimport { timestampInSeconds } from '../utils/time';\nimport { getDynamicSamplingContextFromSpan } from './dynamicSamplingContext';\nimport { logSpanEnd } from './logSpans';\nimport { timedEventsToMeasurements } from './measurement';\nimport { getSegmentSpanCaptureStrategy, type SegmentSpanCaptureConvertOptions } from './segmentSpanCaptureStrategy';\nimport { hasSpanStreamingEnabled } from './spans/hasSpanStreamingEnabled';\nimport {\n getCapturedScopesOnSpan,\n markSpanSourceAsExplicit,\n spanIsTracerProviderSpan,\n spanShouldInferOtelSource,\n} from './utils';\n\nconst MAX_SPAN_COUNT = 1000;\n\n/**\n * Span contains all data about a span\n */\nexport class SentrySpan implements Span {\n protected _traceId: string;\n protected _spanId: string;\n protected _parentSpanId?: string | undefined;\n protected _sampled: boolean | undefined;\n protected _name?: string | undefined;\n protected _attributes: SpanAttributes;\n protected _links?: SpanLink[];\n /** Epoch timestamp in seconds when the span started. */\n protected _startTime: number;\n /** Epoch timestamp in seconds when the span ended. */\n protected _endTime?: number | undefined;\n /** Internal keeper of the status */\n protected _status?: SpanStatus;\n /** The timed events added to this span. */\n protected _events: TimedEvent[];\n\n /** if true, treat span as a standalone span (not part of a transaction) */\n private _isStandaloneSpan?: boolean;\n\n /** if true, the span is sealed and ignores further mutations (set after end for tracer-provider spans) */\n private _frozen?: boolean;\n\n /**\n * You should never call the constructor manually, always use `Sentry.startSpan()`\n * or other span methods.\n * @internal\n * @hideconstructor\n * @hidden\n */\n public constructor(spanContext: SentrySpanArguments = {}) {\n this._traceId = spanContext.traceId || generateTraceId();\n this._spanId = spanContext.spanId || generateSpanId();\n this._startTime = spanContext.startTimestamp || timestampInSeconds();\n this._links = spanContext.links;\n\n this._attributes = {};\n this.setAttributes({\n [SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'manual',\n [SEMANTIC_ATTRIBUTE_SENTRY_OP]: spanContext.op,\n ...spanContext.attributes,\n });\n\n this._name = spanContext.name;\n\n if (spanContext.parentSpanId) {\n this._parentSpanId = spanContext.parentSpanId;\n }\n // We want to include booleans as well here\n if ('sampled' in spanContext) {\n this._sampled = spanContext.sampled;\n }\n if (spanContext.endTimestamp) {\n this._endTime = spanContext.endTimestamp;\n }\n\n this._events = [];\n\n this._isStandaloneSpan = spanContext.isStandalone;\n\n // If the span is already ended, ensure we finalize the span immediately\n if (this._endTime) {\n this._onSpanEnded();\n }\n }\n\n /** @inheritDoc */\n public addLink(link: SpanLink): this {\n if (this._frozen) {\n return this;\n }\n if (this._links) {\n this._links.push(link);\n } else {\n this._links = [link];\n }\n return this;\n }\n\n /** @inheritDoc */\n public addLinks(links: SpanLink[]): this {\n if (this._frozen) {\n return this;\n }\n if (this._links) {\n this._links.push(...links);\n } else {\n this._links = links;\n }\n return this;\n }\n\n /**\n * This should generally not be used,\n * but it is needed 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 /** @inheritdoc */\n public spanContext(): SpanContextData {\n const { _spanId: spanId, _traceId: traceId, _sampled: sampled } = this;\n return {\n spanId,\n traceId,\n traceFlags: sampled ? TRACE_FLAG_SAMPLED : TRACE_FLAG_NONE,\n };\n }\n\n /** @inheritdoc */\n public setAttribute(key: string, value: SpanAttributeValue | undefined): this {\n if (this._frozen) {\n return this;\n }\n\n if (value === undefined) {\n // eslint-disable-next-line @typescript-eslint/no-dynamic-delete\n delete this._attributes[key];\n } else {\n this._attributes[key] = value;\n }\n\n // Setting the source on a span branded for OTel-style inference means user code is choosing it\n // explicitly, so flag it to keep `applyOtelSpanData` from overriding it with an inferred source.\n if (key === SEMANTIC_ATTRIBUTE_SENTRY_SOURCE && value !== undefined && spanShouldInferOtelSource(this)) {\n markSpanSourceAsExplicit(this);\n }\n\n return this;\n }\n\n /** @inheritdoc */\n public setAttributes(attributes: SpanAttributes): this {\n Object.keys(attributes).forEach(key => this.setAttribute(key, attributes[key]));\n return this;\n }\n\n /**\n * This should generally not be used,\n * but we need it for browser tracing where we want to adjust the start time afterwards.\n * USE THIS WITH CAUTION!\n *\n * @hidden\n * @internal\n */\n public updateStartTime(timeInput: SpanTimeInput): void {\n if (this._frozen) {\n return;\n }\n this._startTime = spanTimeInputToSeconds(timeInput);\n }\n\n /**\n * @inheritDoc\n */\n public setStatus(value: SpanStatus): this {\n if (this._frozen) {\n return this;\n }\n this._status = value;\n return this;\n }\n\n /**\n * @inheritDoc\n */\n public updateName(name: string): this {\n if (this._frozen) {\n return this;\n }\n this._name = name;\n // Renaming a span marks its name as explicitly chosen, so we stamp `custom`.\n // The exception is spans created by SentryTraceProvider: those are branded for\n // OTel-style source inference at span end (mirroring OTel SDK spans, which have\n // no Sentry source concept), so instrumentations renaming them must not pin\n // `custom` \u2014 applyOtelSpanData infers the correct source (e.g. 'route', 'task').\n if (!spanShouldInferOtelSource(this)) {\n this.setAttribute(SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, 'custom');\n }\n return this;\n }\n\n /** @inheritdoc */\n public end(endTimestamp?: SpanTimeInput): void {\n // If already ended, skip the end-of-span processing, but still seal a tracer-provider span. The\n // seal at the bottom of this method is skipped on this early return, and `_endTime` may have been\n // set before this first `end()` call (e.g. via the constructor's `endTimestamp`), which would\n // otherwise leave the span mutable after `end()`. End-of-span processing already ran in that case.\n if (this._endTime) {\n this._frozen = spanIsTracerProviderSpan(this);\n return;\n }\n\n this._endTime = spanTimeInputToSeconds(endTimestamp);\n logSpanEnd(this);\n\n this._onSpanEnded();\n\n // A span created by the SentryTracerProvider is handed to OTel instrumentations as an OTel span,\n // so once end-of-span processing is done (including the `spanEnd` hook where `applyOtelSpanData`\n // finalizes status/source) it is sealed against further writes \u2014 mirroring the OpenTelemetry SDK,\n // where setters no-op after a span has ended. Without this, an instrumentation that sets\n // status/attributes after `end()` (e.g. Next.js on a render error) would overwrite the finalized\n // values, and the deferred capture would then serialize those late writes. Spans created directly\n // through the core API (e.g. the browser SDK, which backfills resource-timing attributes after a\n // span ends) are not tracer-provider spans and stay mutable.\n this._frozen = spanIsTracerProviderSpan(this);\n }\n\n /**\n * Get JSON representation of this span.\n *\n * @hidden\n * @internal This method is purely for internal purposes and should not be used outside\n * of SDK code. If you need to get a JSON representation of a span,\n * use `spanToJSON(span)` instead.\n */\n public getSpanJSON(): SpanJSON {\n return {\n data: this._attributes,\n description: this._name,\n op: this._attributes[SEMANTIC_ATTRIBUTE_SENTRY_OP],\n parent_span_id: this._parentSpanId,\n span_id: this._spanId,\n start_timestamp: this._startTime,\n status: getStatusMessage(this._status),\n timestamp: this._endTime,\n trace_id: this._traceId,\n origin: this._attributes[SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN] as SpanOrigin | undefined,\n profile_id: this._attributes[SEMANTIC_ATTRIBUTE_PROFILE_ID] as string | undefined,\n exclusive_time: this._attributes[SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME] as number | undefined,\n measurements: timedEventsToMeasurements(this._events),\n is_segment: (this._isStandaloneSpan && getRootSpan(this) === this) || undefined,\n segment_id: this._isStandaloneSpan ? getRootSpan(this).spanContext().spanId : undefined,\n links: convertSpanLinksForEnvelope(this._links),\n };\n }\n\n /**\n * Get {@link StreamedSpanJSON} representation of this span.\n *\n * @hidden\n * @internal This method is purely for internal purposes and should not be used outside\n * of SDK code. If you need to get a JSON representation of a span,\n * use `spanToStreamedSpanJSON(span)` instead.\n */\n public getStreamedSpanJSON(): StreamedSpanJSON {\n return {\n name: this._name ?? '',\n span_id: this._spanId,\n trace_id: this._traceId,\n parent_span_id: this._parentSpanId,\n start_timestamp: this._startTime,\n // just in case _endTime is not set, we use the start time (i.e. duration 0)\n end_timestamp: this._endTime ?? this._startTime,\n is_segment: this._isStandaloneSpan || this === getRootSpan(this),\n status: getSimpleStatus(this._status),\n attributes: addStatusMessageAttribute(this._attributes, this._status),\n links: getStreamedSpanLinks(this._links),\n };\n }\n\n /** @inheritdoc */\n public isRecording(): boolean {\n return !this._endTime && !!this._sampled;\n }\n\n /**\n * @inheritdoc\n */\n public addEvent(\n name: string,\n attributesOrStartTime?: SpanAttributes | SpanTimeInput,\n startTime?: SpanTimeInput,\n ): this {\n if (this._frozen) {\n return this;\n }\n DEBUG_BUILD && debug.log('[Tracing] Adding an event to span:', name);\n\n const time = isSpanTimeInput(attributesOrStartTime) ? attributesOrStartTime : startTime || timestampInSeconds();\n const attributes = isSpanTimeInput(attributesOrStartTime) ? {} : attributesOrStartTime || {};\n\n const event: TimedEvent = {\n name,\n time: spanTimeInputToSeconds(time),\n attributes,\n };\n\n this._events.push(event);\n\n return this;\n }\n\n /**\n * This method should generally not be used,\n * but for now we need a way to publicly check if the `_isStandaloneSpan` flag is set.\n * USE THIS WITH CAUTION!\n * @internal\n * @hidden\n * @experimental\n */\n public isStandaloneSpan(): boolean {\n return !!this._isStandaloneSpan;\n }\n\n /** Emit `spanEnd` when the span is ended. */\n private _onSpanEnded(): void {\n const client = getClient();\n if (client) {\n client.emit('spanEnd', this);\n // Guarding sending standalone v1 spans as v2 streamed spans for now.\n // Otherwise they'd be sent once as v1 spans and again as streamed spans.\n // We'll migrate CLS and LCP spans to streamed spans in a later PR and\n // INP spans in the next major of the SDK. At that point, we can fully remove\n // standalone v1 spans <3\n if (!this._isStandaloneSpan) {\n client.emit('afterSpanEnd', this);\n }\n }\n\n // A segment span is basically the root span of a local span tree.\n // So for now, this is either what we previously refer to as the root span,\n // or a standalone span.\n const rootSpan = getRootSpan(this);\n const isSegmentSpan = this._isStandaloneSpan || this === rootSpan;\n\n // if this is a standalone span, we send it immediately\n if (this._isStandaloneSpan) {\n if (this._sampled) {\n sendSpanEnvelope(createSpanEnvelope([this], client));\n } else {\n DEBUG_BUILD &&\n debug.log('[Tracing] Discarding standalone span because its trace was not chosen to be sampled.');\n if (client) {\n client.recordDroppedEvent('sample_rate', 'span');\n }\n }\n return;\n }\n\n // Non-segment children aren't captured on their own. A registered strategy may re-emit a late child\n // as its own orphan transaction; without one, it's dropped.\n if (!isSegmentSpan) {\n const strategy = getSegmentSpanCaptureStrategy();\n if (strategy) {\n const scope = getCapturedScopesOnSpan(this).scope || getCurrentScope();\n strategy.onChildSpanEnded(this, rootSpan, options => this._convertSpanToTransaction(options), scope);\n }\n return;\n }\n\n if (client && hasSpanStreamingEnabled(client)) {\n // TODO (spans): Remove standalone span custom logic in favor of sending simple v2 web vital spans\n client.emit('afterSegmentSpanEnd', this);\n return;\n }\n\n // A registered strategy defers the snapshot so children closing just after the segment still land\n // (and late ones can orphan); without one, assemble synchronously from the live tree.\n const scope = getCapturedScopesOnSpan(this).scope || getCurrentScope();\n const strategy = getSegmentSpanCaptureStrategy();\n if (strategy) {\n strategy.onSegmentSpanEnded(options => this._convertSpanToTransaction(options), scope);\n } else {\n const transactionEvent = this._convertSpanToTransaction();\n if (transactionEvent) {\n scope.captureEvent(transactionEvent);\n }\n }\n }\n\n /**\n * Finish the transaction & prepare the event to send to Sentry.\n */\n private _convertSpanToTransaction(options: SegmentSpanCaptureConvertOptions = {}): TransactionEvent | undefined {\n // We can only convert finished spans\n if (!isFullFinishedSpan(spanToJSON(this))) {\n return undefined;\n }\n\n if (!this._name) {\n DEBUG_BUILD && debug.warn('Transaction has no name, falling back to ``.');\n this._name = '';\n }\n\n const { scope: capturedSpanScope, isolationScope: capturedSpanIsolationScope } = getCapturedScopesOnSpan(this);\n\n const normalizedRequest = capturedSpanScope?.getScopeData().sdkProcessingMetadata?.normalizedRequest;\n\n if (this._sampled !== true) {\n return undefined;\n }\n\n // Skip the span itself, standalone spans, and (when a strategy tracks it) spans already sent. The\n // synchronous default passes no hooks, so this bookkeeping stays out of SDKs that don't defer.\n options.onSpanCaptured?.(this);\n const spans: SpanJSON[] = [];\n for (const descendant of getSpanDescendants(this)) {\n if (descendant === this || isStandaloneSpan(descendant) || options.isSpanAlreadyCaptured?.(descendant)) {\n continue;\n }\n const spanJSON = spanToJSON(descendant);\n if (!isFullFinishedSpan(spanJSON)) {\n continue;\n }\n options.onSpanCaptured?.(descendant);\n spans.push(spanJSON);\n }\n\n const source = this._attributes[SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];\n\n // remove internal root span attributes we don't need to send.\n /* eslint-disable @typescript-eslint/no-dynamic-delete */\n delete this._attributes[SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME];\n let hasGenAiSpans = false;\n spans.forEach(span => {\n delete span.data[SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME];\n if (span.op?.startsWith('gen_ai.')) {\n hasGenAiSpans = true;\n }\n });\n // eslint-enabled-next-line @typescript-eslint/no-dynamic-delete\n\n const transaction: TransactionEvent = {\n contexts: {\n trace: spanToTransactionTraceContext(this),\n },\n spans:\n // spans.sort() mutates the array, but `spans` is already a copy so we can safely do this here\n // we do not use spans anymore after this point\n spans.length > MAX_SPAN_COUNT\n ? spans.sort((a, b) => a.start_timestamp - b.start_timestamp).slice(0, MAX_SPAN_COUNT)\n : spans,\n start_timestamp: this._startTime,\n timestamp: this._endTime,\n transaction: this._name,\n type: 'transaction',\n sdkProcessingMetadata: {\n capturedSpanScope,\n capturedSpanIsolationScope,\n dynamicSamplingContext: getDynamicSamplingContextFromSpan(this),\n hasGenAiSpans,\n },\n request: normalizedRequest,\n ...(source && {\n transaction_info: {\n source,\n },\n }),\n };\n\n const measurements = timedEventsToMeasurements(this._events);\n const hasMeasurements = measurements && Object.keys(measurements).length;\n\n if (hasMeasurements) {\n DEBUG_BUILD &&\n debug.log(\n '[Measurements] Adding measurements to transaction event',\n JSON.stringify(measurements, undefined, 2),\n );\n transaction.measurements = measurements;\n }\n\n return transaction;\n }\n}\n\nfunction isSpanTimeInput(value: undefined | SpanAttributes | SpanTimeInput): value is SpanTimeInput {\n return (value && typeof value === 'number') || value instanceof Date || Array.isArray(value);\n}\n\n// We want to filter out any incomplete SpanJSON objects\nfunction isFullFinishedSpan(input: Partial): input is SpanJSON {\n return !!input.start_timestamp && !!input.timestamp && !!input.span_id && !!input.trace_id;\n}\n\n/** `SentrySpan`s can be sent as a standalone span rather than belonging to a transaction */\nfunction isStandaloneSpan(span: Span): boolean {\n return span instanceof SentrySpan && span.isStandaloneSpan();\n}\n\n/**\n * Sends a `SpanEnvelope`.\n *\n * Note: If the envelope's spans are dropped, e.g. via `beforeSendSpan`,\n * the envelope will not be sent either.\n */\nfunction sendSpanEnvelope(envelope: SpanEnvelope): void {\n const client = getClient();\n if (!client) {\n return;\n }\n\n const spanItems = envelope[1];\n if (!spanItems || spanItems.length === 0) {\n client.recordDroppedEvent('before_send', 'span');\n return;\n }\n\n // sendEnvelope should not throw\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n client.sendEnvelope(envelope);\n}\n", "import { DEBUG_BUILD } from '../debug-build';\nimport type { CoreOptions } from '../types/options';\nimport type { SamplingContext } from '../types/samplingcontext';\nimport { debug } from '../utils/debug-logger';\nimport { hasSpansEnabled } from '../utils/hasSpansEnabled';\nimport { parseSampleRate } from '../utils/parseSampleRate';\n\n/**\n * Makes a sampling decision for the given options.\n *\n * Called every time a root span is created. Only root spans which emerge with a `sampled` value of `true` will be\n * sent to Sentry.\n */\nexport function sampleSpan(\n options: Pick,\n samplingContext: SamplingContext,\n sampleRand: number,\n): [sampled: boolean, sampleRate?: number, localSampleRateWasApplied?: boolean] {\n // nothing to do if span recording is not enabled\n if (!hasSpansEnabled(options)) {\n return [false];\n }\n\n let localSampleRateWasApplied = undefined;\n\n // we would have bailed already if neither `tracesSampler` nor `tracesSampleRate` were defined, so one of these should\n // work; prefer the hook if so\n let sampleRate;\n if (typeof options.tracesSampler === 'function') {\n sampleRate = options.tracesSampler({\n ...samplingContext,\n inheritOrSampleWith: fallbackSampleRate => {\n // If we have an incoming parent sample rate, we'll just use that one.\n // The sampling decision will be inherited because of the sample_rand that was generated when the trace reached the incoming boundaries of the SDK.\n if (typeof samplingContext.parentSampleRate === 'number') {\n return samplingContext.parentSampleRate;\n }\n\n // Fallback if parent sample rate is not on the incoming trace (e.g. if there is no baggage)\n // This is to provide backwards compatibility if there are incoming traces from older SDKs that don't send a parent sample rate or a sample rand. In these cases we just want to force either a sampling decision on the downstream traces via the sample rate.\n if (typeof samplingContext.parentSampled === 'boolean') {\n return Number(samplingContext.parentSampled);\n }\n\n return fallbackSampleRate;\n },\n });\n localSampleRateWasApplied = true;\n } else if (samplingContext.parentSampled !== undefined) {\n sampleRate = samplingContext.parentSampled;\n } else if (typeof options.tracesSampleRate !== 'undefined') {\n sampleRate = options.tracesSampleRate;\n localSampleRateWasApplied = true;\n }\n\n // Since this is coming from the user (or from a function provided by the user), who knows what we might get.\n // (The only valid values are booleans or numbers between 0 and 1.)\n const parsedSampleRate = parseSampleRate(sampleRate);\n\n if (parsedSampleRate === undefined) {\n DEBUG_BUILD &&\n debug.warn(\n `[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(\n sampleRate,\n )} of type ${JSON.stringify(typeof sampleRate)}.`,\n );\n return [false];\n }\n\n // if the function returned 0 (or false), or if `tracesSampleRate` is 0, it's a sign the transaction should be dropped\n if (!parsedSampleRate) {\n DEBUG_BUILD &&\n debug.log(\n `[Tracing] Discarding transaction because ${\n typeof options.tracesSampler === 'function'\n ? 'tracesSampler returned 0 or false'\n : 'a negative sampling decision was inherited or tracesSampleRate is set to 0'\n }`,\n );\n return [false, parsedSampleRate, localSampleRateWasApplied];\n }\n\n // We always compare the sample rand for the current execution context against the chosen sample rate.\n // Read more: https://develop.sentry.dev/sdk/telemetry/traces/#propagated-random-value\n const shouldSample = sampleRand < parsedSampleRate;\n\n // if we're not going to keep it, we're done\n if (!shouldSample) {\n DEBUG_BUILD &&\n debug.log(\n `[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(\n sampleRate,\n )})`,\n );\n }\n\n return [shouldSample, parsedSampleRate, localSampleRateWasApplied];\n}\n", "/* eslint-disable max-lines */\n\nimport { getAsyncContextStrategy } from '../asyncContext';\nimport type { AsyncContextStrategy } from '../asyncContext/types';\nimport { getMainCarrier } from '../carrier';\nimport { getClient, getCurrentScope, getIsolationScope, withScope } from '../currentScopes';\nimport { DEBUG_BUILD } from '../debug-build';\nimport type { Scope } from '../scope';\nimport {\n SEMANTIC_ATTRIBUTE_SENTRY_OP,\n SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,\n SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,\n} from '../semanticAttributes';\nimport type { ClientOptions } from '../types/options';\nimport type { SentrySpanArguments, Span, SpanTimeInput } from '../types/span';\nimport type { StartSpanOptions } from '../types/startSpanOptions';\nimport { baggageHeaderToDynamicSamplingContext } from '../utils/baggage';\nimport { debug } from '../utils/debug-logger';\nimport { handleCallbackErrors } from '../utils/handleCallbackErrors';\nimport { hasSpansEnabled } from '../utils/hasSpansEnabled';\nimport { shouldIgnoreSpan } from '../utils/should-ignore-span';\nimport { hasSpanStreamingEnabled } from './spans/hasSpanStreamingEnabled';\nimport { parseSampleRate } from '../utils/parseSampleRate';\nimport { generateTraceId } from '../utils/propagationContext';\nimport { safeMathRandom } from '../utils/randomSafeContext';\nimport { _getSpanForScope, _setSpanForScope } from '../utils/spanOnScope';\nimport { addChildSpanToSpan, getRootSpan, spanIsSampled, spanTimeInputToSeconds, spanToJSON } from '../utils/spanUtils';\nimport { propagationContextFromHeaders, shouldContinueTrace } from '../utils/tracing';\nimport { freezeDscOnSpan, getDynamicSamplingContextFromSpan } from './dynamicSamplingContext';\nimport { logSpanStart } from './logSpans';\nimport { sampleSpan } from './sampling';\nimport { SentryNonRecordingSpan, spanIsNonRecordingSpan } from './sentryNonRecordingSpan';\nimport { SentrySpan } from './sentrySpan';\nimport { SPAN_STATUS_ERROR } from './spanstatus';\nimport { setCapturedScopesOnSpan } from './utils';\nimport type { Client } from '../client';\n\nexport const SUPPRESS_TRACING_KEY = '__SENTRY_SUPPRESS_TRACING__';\n\n/**\n * Wraps a function with a transaction/span and finishes the span after the function is done.\n * The created span is the active span and will be used as parent by other spans created inside the function\n * and can be accessed via `Sentry.getActiveSpan()`, as long as the function is executed while the scope is active.\n *\n * If you want to create a span that is not set as active, use {@link startInactiveSpan}.\n *\n * You'll always get a span passed to the callback,\n * it may just be a non-recording span if the span is not sampled or if tracing is disabled.\n */\nexport function startSpan(options: StartSpanOptions, callback: (span: Span) => T): T {\n const acs = getAcs();\n if (acs.startSpan) {\n return acs.startSpan(options, callback);\n }\n\n const spanArguments = parseSentrySpanArguments(options);\n const { forceTransaction, parentSpan: customParentSpan, scope: customScope } = options;\n\n // We still need to fork a potentially passed scope, as we set the active span on it\n // and we need to ensure that it is cleaned up properly once the span ends.\n const customForkedScope = customScope?.clone();\n\n return withScope(customForkedScope, () => {\n // If `options.parentSpan` is defined, we want to wrap the callback in `withActiveSpan`\n const wrapper = getActiveSpanWrapper(customParentSpan);\n\n return wrapper(() => {\n const scope = getCurrentScope();\n const parentSpan = getParentSpan(scope, customParentSpan);\n const client = getClient();\n\n const missingRequiredParent = options.onlyIfParent && !parentSpan;\n const activeSpan = missingRequiredParent\n ? startMissingRequiredParentSpan(scope, client)\n : createChildOrRootSpan({\n parentSpan,\n spanArguments,\n forceTransaction,\n scope,\n });\n\n // Ignored root spans still need to be set on scope so that `getActiveSpan()` returns them\n // and descendants are also non-recording. Ignored child spans don't need this because\n // the parent span is already on scope.\n if (!spanIsIgnored(activeSpan) || !parentSpan) {\n _setSpanForScope(scope, activeSpan);\n }\n\n return handleCallbackErrors(\n () => callback(activeSpan),\n () => {\n // Only update the span status if it hasn't been changed yet, and the span is not yet finished\n const { status } = spanToJSON(activeSpan);\n if (activeSpan.isRecording() && (!status || status === 'ok')) {\n activeSpan.setStatus({ code: SPAN_STATUS_ERROR, message: 'internal_error' });\n }\n },\n () => {\n activeSpan.end();\n },\n );\n });\n });\n}\n\n/**\n * Similar to `Sentry.startSpan`. Wraps a function with a transaction/span, but does not finish the span\n * after the function is done automatically. Use `span.end()` to end the span.\n *\n * The created span is the active span and will be used as parent by other spans created inside the function\n * and can be accessed via `Sentry.getActiveSpan()`, as long as the function is executed while the scope is active.\n *\n * You'll always get a span passed to the callback,\n * it may just be a non-recording span if the span is not sampled or if tracing is disabled.\n */\nexport function startSpanManual(options: StartSpanOptions, callback: (span: Span, finish: () => void) => T): T {\n const acs = getAcs();\n if (acs.startSpanManual) {\n return acs.startSpanManual(options, callback);\n }\n\n const spanArguments = parseSentrySpanArguments(options);\n const { forceTransaction, parentSpan: customParentSpan, scope: customScope } = options;\n\n const customForkedScope = customScope?.clone();\n\n return withScope(customForkedScope, () => {\n // If `options.parentSpan` is defined, we want to wrap the callback in `withActiveSpan`\n const wrapper = getActiveSpanWrapper(customParentSpan);\n\n return wrapper(() => {\n const scope = getCurrentScope();\n const parentSpan = getParentSpan(scope, customParentSpan);\n\n const missingRequiredParent = options.onlyIfParent && !parentSpan;\n const activeSpan = missingRequiredParent\n ? startMissingRequiredParentSpan(scope, getClient())\n : createChildOrRootSpan({\n parentSpan,\n spanArguments,\n forceTransaction,\n scope,\n });\n\n // We don't set ignored child spans onto the scope because there likely is an active,\n // unignored span on the scope already.\n if (!spanIsIgnored(activeSpan) || !parentSpan) {\n _setSpanForScope(scope, activeSpan);\n }\n\n return handleCallbackErrors(\n // We pass the `finish` function to the callback, so the user can finish the span manually\n // this is mainly here for historic purposes because previously, we instructed users to call\n // `finish` instead of `span.end()` to also clean up the scope. Nowadays, calling `span.end()`\n // or `finish` has the same effect and we simply leave it here to avoid breaking user code.\n () => callback(activeSpan, () => activeSpan.end()),\n () => {\n // Only update the span status if it hasn't been changed yet, and the span is not yet finished\n const { status } = spanToJSON(activeSpan);\n if (activeSpan.isRecording() && (!status || status === 'ok')) {\n activeSpan.setStatus({ code: SPAN_STATUS_ERROR, message: 'internal_error' });\n }\n },\n );\n });\n });\n}\n\n/**\n * Creates a span. This span is not set as active, so will not get automatic instrumentation spans\n * as children or be able to be accessed via `Sentry.getActiveSpan()`.\n *\n * If you want to create a span that is set as active, use {@link startSpan}.\n *\n * This function will always return a span,\n * it may just be a non-recording span if the span is not sampled or if tracing is disabled.\n */\nexport function startInactiveSpan(options: StartSpanOptions): Span {\n const acs = getAcs();\n if (acs.startInactiveSpan) {\n return acs.startInactiveSpan(options);\n }\n\n return _startInactiveSpanImpl(options);\n}\n\n/**\n * Internal version of startInactiveSpan that bypasses the ACS check.\n * Used by SentryTracerProvider to create spans without triggering recursion\n * through ACS overrides.\n * @hidden\n */\nexport function _INTERNAL_startInactiveSpan(options: StartSpanOptions): Span {\n return _startInactiveSpanImpl(options);\n}\n\nfunction _startInactiveSpanImpl(options: StartSpanOptions): Span {\n const spanArguments = parseSentrySpanArguments(options);\n const { forceTransaction, parentSpan: customParentSpan } = options;\n\n // If `options.scope` is defined, we use this as as a wrapper,\n // If `options.parentSpan` is defined, we want to wrap the callback in `withActiveSpan`\n const wrapper = options.scope\n ? (callback: () => Span) => withScope(options.scope, callback)\n : customParentSpan !== undefined\n ? (callback: () => Span) => withActiveSpan(customParentSpan, callback)\n : (callback: () => Span) => callback();\n\n return wrapper(() => {\n const scope = getCurrentScope();\n const parentSpan = getParentSpan(scope, customParentSpan);\n const client = getClient();\n\n const missingRequiredParent = options.onlyIfParent && !parentSpan;\n\n if (missingRequiredParent) {\n return startMissingRequiredParentSpan(scope, client);\n }\n\n return createChildOrRootSpan({\n parentSpan,\n spanArguments,\n forceTransaction,\n scope,\n });\n });\n}\n\n/**\n * Continue a trace from `sentry-trace` and `baggage` values.\n * These values can be obtained from incoming request headers, or in the browser from ``\n * and `` HTML tags.\n *\n * Spans started with `startSpan`, `startSpanManual` and `startInactiveSpan`, within the callback will automatically\n * be attached to the incoming trace.\n */\nexport const continueTrace = (\n options: {\n sentryTrace: Parameters[0];\n baggage: Parameters[1];\n },\n callback: () => V,\n): V => {\n const carrier = getMainCarrier();\n const acs = getAsyncContextStrategy(carrier);\n if (acs.continueTrace) {\n return acs.continueTrace(options, callback);\n }\n\n const { sentryTrace, baggage } = options;\n\n const client = getClient();\n const incomingDsc = baggageHeaderToDynamicSamplingContext(baggage);\n if (client && !shouldContinueTrace(client, incomingDsc?.org_id)) {\n return startNewTrace(callback);\n }\n\n return withScope(scope => {\n const propagationContext = propagationContextFromHeaders(sentryTrace, baggage);\n scope.setPropagationContext(propagationContext);\n _setSpanForScope(scope, undefined);\n return callback();\n });\n};\n\n/**\n * Forks the current scope and sets the provided span as active span in the context of the provided callback. Can be\n * passed `null` to start an entirely new span tree.\n *\n * @param span Spans started in the context of the provided callback will be children of this span. If `null` is passed,\n * spans started within the callback will not be attached to a parent span.\n * @param callback Execution context in which the provided span will be active. Is passed the newly forked scope.\n * @returns the value returned from the provided callback function.\n */\nexport function withActiveSpan(span: Span | null, callback: (scope: Scope) => T): T {\n const acs = getAcs();\n if (acs.withActiveSpan) {\n return acs.withActiveSpan(span, callback);\n }\n\n return withScope(scope => {\n _setSpanForScope(scope, span || undefined);\n return callback(scope);\n });\n}\n\n/** Suppress tracing in the given callback, ensuring no spans are generated inside of it. */\nexport function suppressTracing(callback: () => T): T {\n const acs = getAcs();\n\n if (acs.suppressTracing) {\n return acs.suppressTracing(callback);\n }\n\n return withScope(scope => {\n // Note: We do not wait for the callback to finish before we reset the metadata\n // the reason for this is that otherwise, in the browser 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 browser\n scope.setSDKProcessingMetadata({ [SUPPRESS_TRACING_KEY]: true });\n const res = callback();\n scope.setSDKProcessingMetadata({ [SUPPRESS_TRACING_KEY]: undefined });\n return res;\n });\n}\n\n/** Check if tracing is suppressed. */\nexport function isTracingSuppressed(scope = getCurrentScope()): boolean {\n const acs = getAcs();\n\n if (acs.isTracingSuppressed) {\n return acs.isTracingSuppressed(scope);\n }\n\n return scope.getScopeData().sdkProcessingMetadata[SUPPRESS_TRACING_KEY] === true;\n}\n\n/**\n * Starts a new trace for the duration of the provided callback. Spans started within the\n * callback will be part of the new trace instead of a potentially previously started trace.\n *\n * Important: Only use this function if you want to override the default trace lifetime and\n * propagation mechanism of the SDK for the duration and scope of the provided callback.\n * The newly created trace will also be the root of a new distributed trace, for example if\n * you make http requests within the callback.\n * This function might be useful if the operation you want to instrument should not be part\n * of a potentially ongoing trace.\n *\n * Default behavior:\n * - Server-side: A new trace is started for each incoming request.\n * - Browser: A new trace is started for each page our route. Navigating to a new route\n * or page will automatically create a new trace.\n */\nexport function startNewTrace(callback: () => T): T {\n const acs = getAcs();\n if (acs.startNewTrace) {\n return acs.startNewTrace(callback);\n }\n\n return withScope(scope => {\n scope.setPropagationContext({\n traceId: generateTraceId(),\n sampleRand: safeMathRandom(),\n });\n DEBUG_BUILD && debug.log(`Starting a new trace with id ${scope.getPropagationContext().traceId}`);\n return withActiveSpan(null, callback);\n });\n}\n\n/**\n * The placeholder returned from `startSpan*` when `onlyIfParent` is set but there is no parent span.\n * It carries the current trace id and captured scopes so the trace data it propagates (and any nested\n * span that resolves it as its root via `getRootSpan`) reads its DSC from the scope, preserving a\n * continued trace's DSC instead of fabricating a fresh client one. Also records the dropped-span outcome.\n */\nfunction startMissingRequiredParentSpan(scope: Scope, client: Client | undefined): SentryNonRecordingSpan {\n client?.recordDroppedEvent('no_parent_span', 'span');\n const span = new SentryNonRecordingSpan({ traceId: scope.getPropagationContext().traceId });\n setCapturedScopesOnSpan(span, scope, getIsolationScope());\n return span;\n}\n\nfunction createChildOrRootSpan({\n parentSpan,\n spanArguments,\n forceTransaction,\n scope,\n}: {\n parentSpan: SentrySpan | undefined;\n spanArguments: SentrySpanArguments;\n forceTransaction?: boolean;\n scope: Scope;\n}): Span {\n const isolationScope = getIsolationScope();\n\n if (!hasSpansEnabled()) {\n const scopePropagationContext = scope.getPropagationContext();\n const traceId = parentSpan ? parentSpan.spanContext().traceId : scopePropagationContext.traceId;\n\n // The placeholder is a thin marker; it carries no sampling decision or DSC. Both are read from\n // the scope: the sampling decision in `getTraceData`, the DSC in `getDynamicSamplingContextFromSpan`.\n const span = new SentryNonRecordingSpan({ traceId });\n\n // Nested placeholders link to their parent so `getRootSpan` resolves to the root placeholder,\n // whose captured scope is the source of truth. Root/forced placeholders are their own root.\n if (parentSpan && !forceTransaction) {\n addChildSpanToSpan(parentSpan, span);\n }\n\n // Capture scopes so consumers (e.g. SentryTraceProvider) can read them and so the DSC can be\n // resolved from the scope by `getDynamicSamplingContextFromSpan`. Consistent with `startIdleSpan`.\n setCapturedScopesOnSpan(span, scope, isolationScope);\n\n return span;\n }\n\n const client = getClient();\n if (_shouldIgnoreStreamedSpan(client, spanArguments)) {\n if (!isTracingSuppressed(scope)) {\n // if tracing is actively suppressed (Sentry.suppressTracing(...)),\n // we don't want to record a client outcome for the ignored span\n client?.recordDroppedEvent('ignored', 'span');\n }\n\n const ignoredSpan = new SentryNonRecordingSpan({\n dropReason: 'ignored',\n traceId: parentSpan?.spanContext().traceId ?? scope.getPropagationContext().traceId,\n });\n if (parentSpan && !forceTransaction) {\n // Preserve the root relationship so async context strategies can distinguish\n // ignored children from ignored segments and keep the parent active.\n addChildSpanToSpan(parentSpan, ignoredSpan);\n }\n setCapturedScopesOnSpan(ignoredSpan, scope, isolationScope);\n\n return ignoredSpan;\n }\n\n let span: Span;\n if (parentSpan && !forceTransaction) {\n span = _startChildSpan(parentSpan, scope, spanArguments, isolationScope);\n addChildSpanToSpan(parentSpan, span);\n } else if (parentSpan) {\n // If we forced a transaction but have a parent span, make sure to continue from the parent span, not the scope\n const dsc = getDynamicSamplingContextFromSpan(parentSpan);\n const { traceId, spanId: parentSpanId } = parentSpan.spanContext();\n const parentSampled = spanIsSampled(parentSpan);\n\n span = _startRootSpan(\n {\n traceId,\n parentSpanId,\n ...spanArguments,\n },\n scope,\n isolationScope,\n parentSampled,\n );\n\n freezeDscOnSpan(span, dsc);\n } else {\n const { traceId, dsc, parentSpanId, sampled: parentSampled } = scope.getPropagationContext();\n\n span = _startRootSpan(\n {\n traceId,\n parentSpanId,\n ...spanArguments,\n },\n scope,\n isolationScope,\n parentSampled,\n );\n\n if (dsc) {\n freezeDscOnSpan(span, dsc);\n }\n }\n\n logSpanStart(span);\n\n return span;\n}\n\n/**\n * This converts StartSpanOptions to SentrySpanArguments.\n * For the most part (for now) we accept the same options,\n * but some of them need to be transformed.\n */\nfunction parseSentrySpanArguments(options: StartSpanOptions): SentrySpanArguments {\n const exp = options.experimental || {};\n const initialCtx: SentrySpanArguments = {\n isStandalone: exp.standalone,\n ...options,\n };\n\n if (options.startTime) {\n const ctx: SentrySpanArguments & { startTime?: SpanTimeInput } = { ...initialCtx };\n ctx.startTimestamp = spanTimeInputToSeconds(options.startTime);\n delete ctx.startTime;\n return ctx;\n }\n\n return initialCtx;\n}\n\nfunction getAcs(): AsyncContextStrategy {\n const carrier = getMainCarrier();\n return getAsyncContextStrategy(carrier);\n}\n\nfunction _startRootSpan(\n spanArguments: SentrySpanArguments,\n scope: Scope,\n isolationScope: Scope,\n parentSampled?: boolean,\n): SentrySpan {\n const client = getClient();\n const options: Partial = client?.getOptions() || {};\n\n const { name = '' } = spanArguments;\n\n const mutableSpanSamplingData = { spanAttributes: { ...spanArguments.attributes }, spanName: name, parentSampled };\n\n // we don't care about the decision for the moment; this is just a placeholder\n client?.emit('beforeSampling', mutableSpanSamplingData, { decision: false });\n\n // If hook consumers override the parentSampled flag, we will use that value instead of the actual one\n const finalParentSampled = mutableSpanSamplingData.parentSampled ?? parentSampled;\n const finalAttributes = mutableSpanSamplingData.spanAttributes;\n\n const currentPropagationContext = scope.getPropagationContext();\n const _isTracingSuppressed = isTracingSuppressed(scope);\n\n const [sampled, sampleRate, localSampleRateWasApplied] = _isTracingSuppressed\n ? [false]\n : sampleSpan(\n options,\n {\n name,\n parentSampled: finalParentSampled,\n attributes: finalAttributes,\n normalizedRequest: isolationScope.getScopeData().sdkProcessingMetadata.normalizedRequest,\n parentSampleRate: parseSampleRate(currentPropagationContext.dsc?.sample_rate),\n },\n currentPropagationContext.sampleRand,\n );\n\n const rootSpan = new SentrySpan({\n ...spanArguments,\n attributes: {\n [SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]: 'custom',\n [SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE]:\n sampleRate !== undefined && localSampleRateWasApplied ? sampleRate : undefined,\n ...finalAttributes,\n },\n sampled,\n });\n\n if (!sampled && client && !_isTracingSuppressed) {\n DEBUG_BUILD && debug.log('[Tracing] Discarding root span because its trace was not chosen to be sampled.');\n client.recordDroppedEvent('sample_rate', hasSpanStreamingEnabled(client) ? 'span' : 'transaction');\n }\n\n setCapturedScopesOnSpan(rootSpan, scope, isolationScope);\n\n if (client) {\n client.emit('spanStart', rootSpan);\n }\n\n return rootSpan;\n}\n\n/**\n * Creates a new `Span` while setting the current `Span.id` as `parentSpanId`.\n * This inherits the sampling decision from the parent span.\n */\nfunction _startChildSpan(\n parentSpan: Span,\n scope: Scope,\n spanArguments: SentrySpanArguments,\n isolationScope: Scope,\n): Span {\n const { spanId, traceId } = parentSpan.spanContext();\n const _isTracingSuppressed = isTracingSuppressed(scope);\n const sampled = _isTracingSuppressed ? false : spanIsSampled(parentSpan);\n\n const childSpan = sampled\n ? new SentrySpan({\n ...spanArguments,\n parentSpanId: spanId,\n traceId,\n sampled,\n })\n : new SentryNonRecordingSpan({ traceId });\n\n addChildSpanToSpan(parentSpan, childSpan);\n\n setCapturedScopesOnSpan(childSpan, scope, isolationScope);\n\n const client = getClient();\n\n if (!client) {\n return childSpan;\n }\n\n if (hasSpanStreamingEnabled(client) && spanIsNonRecordingSpan(childSpan)) {\n if (spanIsNonRecordingSpan(parentSpan) && parentSpan.dropReason) {\n // We land here if the parent span was a segment span that was ignored (`ignoreSpans`).\n // In this case, the child was also ignored (see `sampled` above) but we need to\n // record a client outcome for the child.\n childSpan.dropReason = parentSpan.dropReason;\n client.recordDroppedEvent(parentSpan.dropReason, 'span');\n } else if (!_isTracingSuppressed) {\n // Otherwise, the child is not sampled due to sampling of the parent span,\n // hence we record a sample_rate client outcome for the child.\n childSpan.dropReason = 'sample_rate';\n client.recordDroppedEvent('sample_rate', 'span');\n }\n }\n\n client.emit('spanStart', childSpan);\n // If it has an endTimestamp, it's already ended\n if (spanArguments.endTimestamp) {\n client.emit('spanEnd', childSpan);\n client.emit('afterSpanEnd', childSpan);\n }\n\n return childSpan;\n}\n\nfunction getParentSpan(scope: Scope, customParentSpan: Span | null | undefined): SentrySpan | undefined {\n // always use the passed in span directly\n if (customParentSpan) {\n return customParentSpan as SentrySpan;\n }\n\n // This is different from `undefined` as it means the user explicitly wants no parent span\n if (customParentSpan === null) {\n return undefined;\n }\n\n const span = _getSpanForScope(scope) as SentrySpan | undefined;\n\n if (!span) {\n return undefined;\n }\n\n const client = getClient();\n const options: Partial = client ? client.getOptions() : {};\n if (options.parentSpanIsAlwaysRootSpan) {\n return getRootSpan(span) as SentrySpan;\n }\n\n return span;\n}\n\nfunction getActiveSpanWrapper(parentSpan: Span | undefined | null): (callback: () => T) => T {\n return parentSpan !== undefined\n ? (callback: () => T) => {\n return withActiveSpan(parentSpan, callback);\n }\n : (callback: () => T) => callback();\n}\n\n/* Checks if `ignoreSpans` applies (extracted for bundle size)*/\nfunction _shouldIgnoreStreamedSpan(client: Client | undefined, spanArguments: SentrySpanArguments): boolean {\n const ignoreSpans = client?.getOptions().ignoreSpans;\n\n if (!client || !hasSpanStreamingEnabled(client) || !ignoreSpans?.length) {\n return false;\n }\n\n return shouldIgnoreSpan(\n {\n description: spanArguments.name || '',\n op: spanArguments.attributes?.[SEMANTIC_ATTRIBUTE_SENTRY_OP] || spanArguments.op,\n attributes: spanArguments.attributes,\n },\n ignoreSpans,\n );\n}\n\n/**\n * Whether a span is an ignored (`ignoreSpans`) placeholder. Such a span must not be set as the active\n * span when it has a parent, so its children attach to that parent and get re-parented rather than\n * dropped with it. Shared with the OTel-based provider so both span pipelines apply the same rule.\n */\nexport function spanIsIgnored(span: Span): span is SentryNonRecordingSpan {\n return spanIsNonRecordingSpan(span) && span.dropReason === 'ignored';\n}\n", "import { getClient, getCurrentScope, getIsolationScope } from '../currentScopes';\nimport { DEBUG_BUILD } from '../debug-build';\nimport { SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON } from '../semanticAttributes';\nimport type { Span } from '../types/span';\nimport type { StartSpanOptions } from '../types/startSpanOptions';\nimport { debug } from '../utils/debug-logger';\nimport { hasSpansEnabled } from '../utils/hasSpansEnabled';\nimport { shouldIgnoreSpan } from '../utils/should-ignore-span';\nimport { _setSpanForScope } from '../utils/spanOnScope';\nimport {\n getActiveSpan,\n getSpanDescendants,\n removeChildSpanFromSpan,\n spanTimeInputToSeconds,\n spanToJSON,\n} from '../utils/spanUtils';\nimport { timestampInSeconds } from '../utils/time';\nimport { SentryNonRecordingSpan, spanIsNonRecordingSpan } from './sentryNonRecordingSpan';\nimport { SentrySpan } from './sentrySpan';\nimport { SPAN_STATUS_ERROR, SPAN_STATUS_OK } from './spanstatus';\nimport { startInactiveSpan } from './trace';\nimport { setCapturedScopesOnSpan } from './utils';\n\nexport const TRACING_DEFAULTS = {\n idleTimeout: 1_000,\n finalTimeout: 30_000,\n childSpanTimeout: 15_000,\n};\n\nconst FINISH_REASON_HEARTBEAT_FAILED = 'heartbeatFailed';\nconst FINISH_REASON_IDLE_TIMEOUT = 'idleTimeout';\nconst FINISH_REASON_FINAL_TIMEOUT = 'finalTimeout';\nconst FINISH_REASON_EXTERNAL_FINISH = 'externalFinish';\nconst FINISH_REASON_CANCELLED = 'cancelled';\n\n// unused\nconst FINISH_REASON_DOCUMENT_HIDDEN = 'documentHidden';\n\n// unused in this file, but used in BrowserTracing\nconst FINISH_REASON_INTERRUPTED = 'interactionInterrupted';\n\ntype IdleSpanFinishReason =\n | typeof FINISH_REASON_CANCELLED\n | typeof FINISH_REASON_DOCUMENT_HIDDEN\n | typeof FINISH_REASON_EXTERNAL_FINISH\n | typeof FINISH_REASON_FINAL_TIMEOUT\n | typeof FINISH_REASON_HEARTBEAT_FAILED\n | typeof FINISH_REASON_IDLE_TIMEOUT\n | typeof FINISH_REASON_INTERRUPTED;\n\ninterface IdleSpanOptions {\n /**\n * The time that has to pass without any span being created.\n * If this time is exceeded, the idle span will finish.\n */\n idleTimeout: number;\n /**\n * The max. time an idle span may run.\n * If this time is exceeded, the idle span will finish no matter what.\n */\n finalTimeout: number;\n /**\n * The max. time a child span may run.\n * If the time since the last span was started exceeds this time, the idle span will finish.\n */\n childSpanTimeout?: number;\n /**\n * When set to `true`, will disable the idle timeout and child timeout\n * until the `idleSpanEnableAutoFinish` hook is emitted for the idle span.\n * The final timeout mechanism will not be affected by this option,\n * meaning the idle span will definitely be finished when the final timeout is\n * reached, no matter what this option is configured to.\n *\n * Defaults to `false`.\n */\n disableAutoFinish?: boolean;\n\n /** Allows to configure a hook that is called when the idle span is ended, before it is processed. */\n beforeSpanEnd?: (span: Span) => void;\n\n /**\n * If set to `true`, the idle span will be trimmed to the latest span end timestamp of its children.\n *\n * @default `true`.\n */\n trimIdleSpanEndTimestamp?: boolean;\n}\n\n/**\n * An idle span is a span that automatically finishes. It does this by tracking child spans as activities.\n * An idle span is always the active span.\n */\nexport function startIdleSpan(startSpanOptions: StartSpanOptions, options: Partial = {}): Span {\n // Activities store a list of active spans\n const activities = new Map();\n\n // We should not use heartbeat if we finished a span\n let _finished = false;\n\n // Timer that tracks idleTimeout\n let _idleTimeoutID: ReturnType | undefined;\n\n // Timer that tracks maxSpanTime for child spans\n let _childSpanTimeoutID: ReturnType | undefined;\n\n // The reason why the span was finished\n let _finishReason: IdleSpanFinishReason = FINISH_REASON_EXTERNAL_FINISH;\n\n let _autoFinishAllowed: boolean = !options.disableAutoFinish;\n\n const _cleanupHooks: (() => void)[] = [];\n\n const {\n idleTimeout = TRACING_DEFAULTS.idleTimeout,\n finalTimeout = TRACING_DEFAULTS.finalTimeout,\n childSpanTimeout = TRACING_DEFAULTS.childSpanTimeout,\n beforeSpanEnd,\n trimIdleSpanEndTimestamp = true,\n } = options;\n\n const client = getClient();\n const scope = getCurrentScope();\n\n if (!client || !hasSpansEnabled()) {\n // The placeholder is a thin marker; it carries no sampling decision or DSC. Both are read from\n // the scope: the sampling decision in `getTraceData`, the DSC in `getDynamicSamplingContextFromSpan`.\n const span = new SentryNonRecordingSpan({ traceId: scope.getPropagationContext().traceId });\n\n // Capture scopes so consumers (e.g. SentryTraceProvider) can read them and so the DSC can be\n // resolved from the scope by `getDynamicSamplingContextFromSpan`.\n setCapturedScopesOnSpan(span, scope, getIsolationScope());\n\n return span;\n }\n\n const previousActiveSpan = getActiveSpan();\n const span = _startIdleSpan(startSpanOptions);\n\n // We patch span.end to ensure we can run some things before the span is ended\n // eslint-disable-next-line @typescript-eslint/unbound-method\n span.end = new Proxy(span.end, {\n apply(target, thisArg, args: Parameters) {\n if (beforeSpanEnd) {\n beforeSpanEnd(span);\n }\n\n // If the span is non-recording, nothing more to do here...\n // This is the case if tracing is enabled but this specific span was not sampled\n if (spanIsNonRecordingSpan(thisArg)) {\n return;\n }\n\n // Just ensuring that this keeps working, even if we ever have more arguments here\n const [definedEndTimestamp, ...rest] = args;\n const timestamp = definedEndTimestamp || timestampInSeconds();\n const spanEndTimestamp = spanTimeInputToSeconds(timestamp);\n\n // Ensure we end with the last span timestamp, if possible\n const spans = getSpanDescendants(span).filter(child => child !== span);\n\n const spanJson = spanToJSON(span);\n\n // If we have no spans, we just end, nothing else to do here\n // Likewise, if users explicitly ended the span, we simply end the span without timestamp adjustment\n if (!spans.length || !trimIdleSpanEndTimestamp) {\n onIdleSpanEnded(spanEndTimestamp);\n return Reflect.apply(target, thisArg, [spanEndTimestamp, ...rest]);\n }\n\n const ignoreSpans = client.getOptions().ignoreSpans;\n\n const latestSpanEndTimestamp = spans?.reduce((acc: number | undefined, current) => {\n const currentSpanJson = spanToJSON(current);\n if (!currentSpanJson.timestamp) {\n return acc;\n }\n // Ignored spans will get dropped later (in the client) but since we already adjust\n // the idle span end timestamp here, we can already take to-be-ignored spans out of\n // the calculation here.\n if (\n ignoreSpans &&\n shouldIgnoreSpan(\n { description: currentSpanJson.description, op: currentSpanJson.op, attributes: currentSpanJson.data },\n ignoreSpans,\n )\n ) {\n return acc;\n }\n return acc ? Math.max(acc, currentSpanJson.timestamp) : currentSpanJson.timestamp;\n }, undefined);\n\n // In reality this should always exist here, but type-wise it may be undefined...\n const spanStartTimestamp = spanJson.start_timestamp;\n\n // The final endTimestamp should:\n // * Never be before the span start timestamp\n // * Be the latestSpanEndTimestamp, if there is one, and it is smaller than the passed span end timestamp\n // * Otherwise be the passed end timestamp\n // Final timestamp can never be after finalTimeout\n const endTimestamp = Math.min(\n spanStartTimestamp ? spanStartTimestamp + finalTimeout / 1000 : Infinity,\n Math.max(spanStartTimestamp || -Infinity, Math.min(spanEndTimestamp, latestSpanEndTimestamp || Infinity)),\n );\n\n onIdleSpanEnded(endTimestamp);\n return Reflect.apply(target, thisArg, [endTimestamp, ...rest]);\n },\n });\n\n /**\n * Cancels the existing idle timeout, if there is one.\n */\n function _cancelIdleTimeout(): void {\n if (_idleTimeoutID) {\n clearTimeout(_idleTimeoutID);\n _idleTimeoutID = undefined;\n }\n }\n\n /**\n * Cancels the existing child span timeout, if there is one.\n */\n function _cancelChildSpanTimeout(): void {\n if (_childSpanTimeoutID) {\n clearTimeout(_childSpanTimeoutID);\n _childSpanTimeoutID = undefined;\n }\n }\n\n /**\n * Restarts idle timeout, if there is no running idle timeout it will start one.\n */\n function _restartIdleTimeout(endTimestamp?: number): void {\n _cancelIdleTimeout();\n _idleTimeoutID = setTimeout(() => {\n if (!_finished && activities.size === 0 && _autoFinishAllowed) {\n _finishReason = FINISH_REASON_IDLE_TIMEOUT;\n span.end(endTimestamp);\n }\n }, idleTimeout);\n }\n\n /**\n * Restarts child span timeout, if there is none running it will start one.\n */\n function _restartChildSpanTimeout(endTimestamp?: number): void {\n _cancelChildSpanTimeout();\n _childSpanTimeoutID = setTimeout(() => {\n if (!_finished && _autoFinishAllowed) {\n _finishReason = FINISH_REASON_HEARTBEAT_FAILED;\n span.end(endTimestamp);\n }\n }, childSpanTimeout);\n }\n\n /**\n * Start tracking a specific activity.\n * @param spanId The span id that represents the activity\n */\n function _pushActivity(spanId: string): void {\n _cancelIdleTimeout();\n activities.set(spanId, true);\n\n const endTimestamp = timestampInSeconds();\n // We need to add the timeout here to have the real endtimestamp of the idle span\n // Remember timestampInSeconds is in seconds, timeout is in ms\n _restartChildSpanTimeout(endTimestamp + childSpanTimeout / 1000);\n }\n\n /**\n * Remove an activity from usage\n * @param spanId The span id that represents the activity\n */\n function _popActivity(spanId: string): void {\n if (activities.has(spanId)) {\n activities.delete(spanId);\n }\n\n if (activities.size === 0) {\n const endTimestamp = timestampInSeconds();\n // We need to add the timeout here to have the real endtimestamp of the idle span\n // Remember timestampInSeconds is in seconds, timeout is in ms\n _restartIdleTimeout(endTimestamp + idleTimeout / 1000);\n _cancelChildSpanTimeout();\n }\n }\n\n function onIdleSpanEnded(endTimestamp: number): void {\n _finished = true;\n activities.clear();\n\n _cleanupHooks.forEach(cleanup => cleanup());\n\n _setSpanForScope(scope, previousActiveSpan);\n\n const spanJSON = spanToJSON(span);\n\n const { start_timestamp: startTimestamp } = spanJSON;\n // This should never happen, but to make TS happy...\n if (!startTimestamp) {\n return;\n }\n\n const attributes = spanJSON.data;\n if (!attributes[SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON]) {\n span.setAttribute(SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON, _finishReason);\n }\n\n // Set span status to 'ok' if it hasn't been explicitly set to an error status\n const currentStatus = spanJSON.status;\n if (!currentStatus || currentStatus === 'unknown') {\n span.setStatus({ code: SPAN_STATUS_OK });\n }\n\n debug.log(`[Tracing] Idle span \"${spanJSON.op}\" finished`);\n\n const childSpans = getSpanDescendants(span).filter(child => child !== span);\n\n let discardedSpans = 0;\n childSpans.forEach(childSpan => {\n // We cancel all pending spans with status \"cancelled\" to indicate the idle span was finished early\n if (childSpan.isRecording()) {\n childSpan.setStatus({ code: SPAN_STATUS_ERROR, message: 'cancelled' });\n childSpan.end(endTimestamp);\n DEBUG_BUILD &&\n debug.log('[Tracing] Cancelling span since span ended early', JSON.stringify(childSpan, undefined, 2));\n }\n\n const childSpanJSON = spanToJSON(childSpan);\n const { timestamp: childEndTimestamp = 0, start_timestamp: childStartTimestamp = 0 } = childSpanJSON;\n\n const spanStartedBeforeIdleSpanEnd = childStartTimestamp <= endTimestamp;\n\n // Add a delta with idle timeout so that we prevent false positives\n const timeoutWithMarginOfError = (finalTimeout + idleTimeout) / 1000;\n const spanEndedBeforeFinalTimeout = childEndTimestamp - childStartTimestamp <= timeoutWithMarginOfError;\n\n if (DEBUG_BUILD) {\n const stringifiedSpan = JSON.stringify(childSpan, undefined, 2);\n if (!spanStartedBeforeIdleSpanEnd) {\n debug.log('[Tracing] Discarding span since it happened after idle span was finished', stringifiedSpan);\n } else if (!spanEndedBeforeFinalTimeout) {\n debug.log('[Tracing] Discarding span since it finished after idle span final timeout', stringifiedSpan);\n }\n }\n\n if (!spanEndedBeforeFinalTimeout || !spanStartedBeforeIdleSpanEnd) {\n removeChildSpanFromSpan(span, childSpan);\n discardedSpans++;\n }\n });\n\n if (discardedSpans > 0) {\n span.setAttribute('sentry.idle_span_discarded_spans', discardedSpans);\n }\n }\n\n _cleanupHooks.push(\n client.on('spanStart', startedSpan => {\n // If we already finished the idle span,\n // or if this is the idle span itself being started,\n // or if the started span has already been closed,\n // we don't care about it for activity\n if (\n _finished ||\n startedSpan === span ||\n !!spanToJSON(startedSpan).timestamp ||\n (startedSpan instanceof SentrySpan && startedSpan.isStandaloneSpan())\n ) {\n return;\n }\n\n const allSpans = getSpanDescendants(span);\n\n // If the span that was just started is a child of the idle span, we should track it\n if (allSpans.includes(startedSpan)) {\n _pushActivity(startedSpan.spanContext().spanId);\n }\n }),\n );\n\n _cleanupHooks.push(\n client.on('spanEnd', endedSpan => {\n if (_finished) {\n return;\n }\n\n _popActivity(endedSpan.spanContext().spanId);\n }),\n );\n\n _cleanupHooks.push(\n client.on('idleSpanEnableAutoFinish', spanToAllowAutoFinish => {\n if (spanToAllowAutoFinish === span) {\n _autoFinishAllowed = true;\n _restartIdleTimeout();\n\n if (activities.size) {\n _restartChildSpanTimeout();\n }\n }\n }),\n );\n\n // We only start the initial idle timeout if we are not delaying the auto finish\n if (!options.disableAutoFinish) {\n _restartIdleTimeout();\n }\n\n setTimeout(() => {\n if (!_finished) {\n span.setStatus({ code: SPAN_STATUS_ERROR, message: 'deadline_exceeded' });\n _finishReason = FINISH_REASON_FINAL_TIMEOUT;\n span.end();\n }\n }, finalTimeout);\n\n return span;\n}\n\nfunction _startIdleSpan(options: StartSpanOptions): Span {\n const span = startInactiveSpan(options);\n\n _setSpanForScope(getCurrentScope(), span);\n\n DEBUG_BUILD && debug.log('[Tracing] Started span is an idle span');\n\n return span;\n}\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, spanToJSON, 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, span, breadcrumbs, sdkProcessingMetadata } = data;\n\n // Apply general data\n applyDataToEvent(event, data);\n\n // We want to set the trace context for normal events only if there isn't already\n // a trace context on the event. There is a product feature in place where we link\n // errors with transaction and it relies on that.\n if (span) {\n applySpanToEvent(event, span);\n }\n\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 span,\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 (span) {\n data.span = span;\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(\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\nfunction 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 = spanToJSON(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", "// This is an auto-generated file. Do not edit!\n\n// Path: model/attributes/ai/ai__citations.json\n\n/**\n * References or sources cited by the AI model in its response. `ai.citations`\n *\n * Attribute Value Type: `Array` {@link AI_CITATIONS_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated\n * @example [\"Citation 1\",\"Citation 2\"]\n */\nexport const AI_CITATIONS = 'ai.citations';\n\n/**\n * Type for {@link AI_CITATIONS} ai.citations\n */\nexport type AI_CITATIONS_TYPE = Array;\n\n// Path: model/attributes/ai/ai__completion_tokens__used.json\n\n/**\n * The number of tokens used to respond to the message. `ai.completion_tokens.used`\n *\n * Attribute Value Type: `number` {@link AI_COMPLETION_TOKENS_USED_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_USAGE_OUTPUT_TOKENS} `gen_ai.usage.output_tokens`, {@link GEN_AI_USAGE_COMPLETION_TOKENS} `gen_ai.usage.completion_tokens`\n *\n * @deprecated Use {@link GEN_AI_USAGE_OUTPUT_TOKENS} (gen_ai.usage.output_tokens) instead\n * @example 10\n */\nexport const AI_COMPLETION_TOKENS_USED = 'ai.completion_tokens.used';\n\n/**\n * Type for {@link AI_COMPLETION_TOKENS_USED} ai.completion_tokens.used\n */\nexport type AI_COMPLETION_TOKENS_USED_TYPE = number;\n\n// Path: model/attributes/ai/ai__documents.json\n\n/**\n * Documents or content chunks used as context for the AI model. `ai.documents`\n *\n * Attribute Value Type: `Array` {@link AI_DOCUMENTS_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated\n * @example [\"document1.txt\",\"document2.pdf\"]\n */\nexport const AI_DOCUMENTS = 'ai.documents';\n\n/**\n * Type for {@link AI_DOCUMENTS} ai.documents\n */\nexport type AI_DOCUMENTS_TYPE = Array;\n\n// Path: model/attributes/ai/ai__finish_reason.json\n\n/**\n * The reason why the model stopped generating. `ai.finish_reason`\n *\n * Attribute Value Type: `string` {@link AI_FINISH_REASON_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_RESPONSE_FINISH_REASONS} `gen_ai.response.finish_reasons`\n *\n * @deprecated Use {@link GEN_AI_RESPONSE_FINISH_REASONS} (gen_ai.response.finish_reasons) instead\n * @example \"COMPLETE\"\n */\nexport const AI_FINISH_REASON = 'ai.finish_reason';\n\n/**\n * Type for {@link AI_FINISH_REASON} ai.finish_reason\n */\nexport type AI_FINISH_REASON_TYPE = string;\n\n// Path: model/attributes/ai/ai__frequency_penalty.json\n\n/**\n * 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. `ai.frequency_penalty`\n *\n * Attribute Value Type: `number` {@link AI_FREQUENCY_PENALTY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_REQUEST_FREQUENCY_PENALTY} `gen_ai.request.frequency_penalty`\n *\n * @deprecated Use {@link GEN_AI_REQUEST_FREQUENCY_PENALTY} (gen_ai.request.frequency_penalty) instead\n * @example 0.5\n */\nexport const AI_FREQUENCY_PENALTY = 'ai.frequency_penalty';\n\n/**\n * Type for {@link AI_FREQUENCY_PENALTY} ai.frequency_penalty\n */\nexport type AI_FREQUENCY_PENALTY_TYPE = number;\n\n// Path: model/attributes/ai/ai__function_call.json\n\n/**\n * For an AI model call, the function that was called. This is deprecated for OpenAI, and replaced by tool_calls `ai.function_call`\n *\n * Attribute Value Type: `string` {@link AI_FUNCTION_CALL_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_TOOL_NAME} `gen_ai.tool.name`, {@link MCP_TOOL_NAME} `mcp.tool.name`\n *\n * @deprecated Use {@link GEN_AI_TOOL_NAME} (gen_ai.tool.name) instead\n * @example \"function_name\"\n */\nexport const AI_FUNCTION_CALL = 'ai.function_call';\n\n/**\n * Type for {@link AI_FUNCTION_CALL} ai.function_call\n */\nexport type AI_FUNCTION_CALL_TYPE = string;\n\n// Path: model/attributes/ai/ai__generation_id.json\n\n/**\n * Unique identifier for the completion. `ai.generation_id`\n *\n * Attribute Value Type: `string` {@link AI_GENERATION_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_RESPONSE_ID} `gen_ai.response.id`\n *\n * @deprecated Use {@link GEN_AI_RESPONSE_ID} (gen_ai.response.id) instead\n * @example \"gen_123abc\"\n */\nexport const AI_GENERATION_ID = 'ai.generation_id';\n\n/**\n * Type for {@link AI_GENERATION_ID} ai.generation_id\n */\nexport type AI_GENERATION_ID_TYPE = string;\n\n// Path: model/attributes/ai/ai__input_messages.json\n\n/**\n * The input messages sent to the model `ai.input_messages`\n *\n * Attribute Value Type: `string` {@link AI_INPUT_MESSAGES_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_REQUEST_MESSAGES} `gen_ai.request.messages`\n *\n * @deprecated Use {@link GEN_AI_INPUT_MESSAGES} (gen_ai.input.messages) instead\n * @example \"[{\\\"role\\\": \\\"user\\\", \\\"message\\\": \\\"hello\\\"}]\"\n */\nexport const AI_INPUT_MESSAGES = 'ai.input_messages';\n\n/**\n * Type for {@link AI_INPUT_MESSAGES} ai.input_messages\n */\nexport type AI_INPUT_MESSAGES_TYPE = string;\n\n// Path: model/attributes/ai/ai__is_search_required.json\n\n/**\n * Boolean indicating if the model needs to perform a search. `ai.is_search_required`\n *\n * Attribute Value Type: `boolean` {@link AI_IS_SEARCH_REQUIRED_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated\n * @example false\n */\nexport const AI_IS_SEARCH_REQUIRED = 'ai.is_search_required';\n\n/**\n * Type for {@link AI_IS_SEARCH_REQUIRED} ai.is_search_required\n */\nexport type AI_IS_SEARCH_REQUIRED_TYPE = boolean;\n\n// Path: model/attributes/ai/ai__metadata.json\n\n/**\n * Extra metadata passed to an AI pipeline step. `ai.metadata`\n *\n * Attribute Value Type: `string` {@link AI_METADATA_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated\n * @example \"{\\\"user_id\\\": 123, \\\"session_id\\\": \\\"abc123\\\"}\"\n */\nexport const AI_METADATA = 'ai.metadata';\n\n/**\n * Type for {@link AI_METADATA} ai.metadata\n */\nexport type AI_METADATA_TYPE = string;\n\n// Path: model/attributes/ai/ai__model_id.json\n\n/**\n * The vendor-specific ID of the model used. `ai.model_id`\n *\n * Attribute Value Type: `string` {@link AI_MODEL_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_RESPONSE_MODEL} `gen_ai.response.model`\n *\n * @deprecated Use {@link GEN_AI_RESPONSE_MODEL} (gen_ai.response.model) instead\n * @example \"gpt-4\"\n */\nexport const AI_MODEL_ID = 'ai.model_id';\n\n/**\n * Type for {@link AI_MODEL_ID} ai.model_id\n */\nexport type AI_MODEL_ID_TYPE = string;\n\n// Path: model/attributes/ai/ai__model__provider.json\n\n/**\n * The provider of the model. `ai.model.provider`\n *\n * Attribute Value Type: `string` {@link AI_MODEL_PROVIDER_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_PROVIDER_NAME} `gen_ai.provider.name`, {@link GEN_AI_SYSTEM} `gen_ai.system`\n *\n * @deprecated Use {@link GEN_AI_PROVIDER_NAME} (gen_ai.provider.name) instead\n * @example \"openai\"\n */\nexport const AI_MODEL_PROVIDER = 'ai.model.provider';\n\n/**\n * Type for {@link AI_MODEL_PROVIDER} ai.model.provider\n */\nexport type AI_MODEL_PROVIDER_TYPE = string;\n\n// Path: model/attributes/ai/ai__pipeline__name.json\n\n/**\n * The name of the AI pipeline. `ai.pipeline.name`\n *\n * Attribute Value Type: `string` {@link AI_PIPELINE_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_PIPELINE_NAME} `gen_ai.pipeline.name`\n *\n * @deprecated Use {@link GEN_AI_PIPELINE_NAME} (gen_ai.pipeline.name) instead\n * @example \"Autofix Pipeline\"\n */\nexport const AI_PIPELINE_NAME = 'ai.pipeline.name';\n\n/**\n * Type for {@link AI_PIPELINE_NAME} ai.pipeline.name\n */\nexport type AI_PIPELINE_NAME_TYPE = string;\n\n// Path: model/attributes/ai/ai__preamble.json\n\n/**\n * 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. `ai.preamble`\n *\n * Attribute Value Type: `string` {@link AI_PREAMBLE_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_SYSTEM_INSTRUCTIONS} `gen_ai.system_instructions`\n *\n * @deprecated Use {@link GEN_AI_SYSTEM_INSTRUCTIONS} (gen_ai.system_instructions) instead\n * @example \"You are now a clown.\"\n */\nexport const AI_PREAMBLE = 'ai.preamble';\n\n/**\n * Type for {@link AI_PREAMBLE} ai.preamble\n */\nexport type AI_PREAMBLE_TYPE = string;\n\n// Path: model/attributes/ai/ai__presence_penalty.json\n\n/**\n * 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. `ai.presence_penalty`\n *\n * Attribute Value Type: `number` {@link AI_PRESENCE_PENALTY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_REQUEST_PRESENCE_PENALTY} `gen_ai.request.presence_penalty`\n *\n * @deprecated Use {@link GEN_AI_REQUEST_PRESENCE_PENALTY} (gen_ai.request.presence_penalty) instead\n * @example 0.5\n */\nexport const AI_PRESENCE_PENALTY = 'ai.presence_penalty';\n\n/**\n * Type for {@link AI_PRESENCE_PENALTY} ai.presence_penalty\n */\nexport type AI_PRESENCE_PENALTY_TYPE = number;\n\n// Path: model/attributes/ai/ai__prompt_tokens__used.json\n\n/**\n * The number of tokens used to process just the prompt. `ai.prompt_tokens.used`\n *\n * Attribute Value Type: `number` {@link AI_PROMPT_TOKENS_USED_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_USAGE_PROMPT_TOKENS} `gen_ai.usage.prompt_tokens`, {@link GEN_AI_USAGE_INPUT_TOKENS} `gen_ai.usage.input_tokens`\n *\n * @deprecated Use {@link GEN_AI_USAGE_INPUT_TOKENS} (gen_ai.usage.input_tokens) instead\n * @example 20\n */\nexport const AI_PROMPT_TOKENS_USED = 'ai.prompt_tokens.used';\n\n/**\n * Type for {@link AI_PROMPT_TOKENS_USED} ai.prompt_tokens.used\n */\nexport type AI_PROMPT_TOKENS_USED_TYPE = number;\n\n// Path: model/attributes/ai/ai__raw_prompting.json\n\n/**\n * When enabled, the user\u2019s prompt will be sent to the model without any pre-processing. `ai.raw_prompting`\n *\n * Attribute Value Type: `boolean` {@link AI_RAW_PROMPTING_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated\n * @example true\n */\nexport const AI_RAW_PROMPTING = 'ai.raw_prompting';\n\n/**\n * Type for {@link AI_RAW_PROMPTING} ai.raw_prompting\n */\nexport type AI_RAW_PROMPTING_TYPE = boolean;\n\n// Path: model/attributes/ai/ai__responses.json\n\n/**\n * The response messages sent back by the AI model. `ai.responses`\n *\n * Attribute Value Type: `Array` {@link AI_RESPONSES_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated Use {@link GEN_AI_OUTPUT_MESSAGES} (gen_ai.output.messages) instead\n * @example [\"hello\",\"world\"]\n */\nexport const AI_RESPONSES = 'ai.responses';\n\n/**\n * Type for {@link AI_RESPONSES} ai.responses\n */\nexport type AI_RESPONSES_TYPE = Array;\n\n// Path: model/attributes/ai/ai__response_format.json\n\n/**\n * For an AI model call, the format of the response `ai.response_format`\n *\n * Attribute Value Type: `string` {@link AI_RESPONSE_FORMAT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated\n * @example \"json_object\"\n */\nexport const AI_RESPONSE_FORMAT = 'ai.response_format';\n\n/**\n * Type for {@link AI_RESPONSE_FORMAT} ai.response_format\n */\nexport type AI_RESPONSE_FORMAT_TYPE = string;\n\n// Path: model/attributes/ai/ai__search_queries.json\n\n/**\n * Queries used to search for relevant context or documents. `ai.search_queries`\n *\n * Attribute Value Type: `Array` {@link AI_SEARCH_QUERIES_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated\n * @example [\"climate change effects\",\"renewable energy\"]\n */\nexport const AI_SEARCH_QUERIES = 'ai.search_queries';\n\n/**\n * Type for {@link AI_SEARCH_QUERIES} ai.search_queries\n */\nexport type AI_SEARCH_QUERIES_TYPE = Array;\n\n// Path: model/attributes/ai/ai__search_results.json\n\n/**\n * Results returned from search queries for context. `ai.search_results`\n *\n * Attribute Value Type: `Array` {@link AI_SEARCH_RESULTS_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated\n * @example [\"search_result_1, search_result_2\"]\n */\nexport const AI_SEARCH_RESULTS = 'ai.search_results';\n\n/**\n * Type for {@link AI_SEARCH_RESULTS} ai.search_results\n */\nexport type AI_SEARCH_RESULTS_TYPE = Array;\n\n// Path: model/attributes/ai/ai__seed.json\n\n/**\n * The seed, ideally models given the same seed and same other parameters will produce the exact same output. `ai.seed`\n *\n * Attribute Value Type: `string` {@link AI_SEED_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_REQUEST_SEED} `gen_ai.request.seed`\n *\n * @deprecated Use {@link GEN_AI_REQUEST_SEED} (gen_ai.request.seed) instead\n * @example \"1234567890\"\n */\nexport const AI_SEED = 'ai.seed';\n\n/**\n * Type for {@link AI_SEED} ai.seed\n */\nexport type AI_SEED_TYPE = string;\n\n// Path: model/attributes/ai/ai__streaming.json\n\n/**\n * Whether the request was streamed back. `ai.streaming`\n *\n * Attribute Value Type: `boolean` {@link AI_STREAMING_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_RESPONSE_STREAMING} `gen_ai.response.streaming`\n *\n * @deprecated Use {@link GEN_AI_RESPONSE_STREAMING} (gen_ai.response.streaming) instead\n * @example true\n */\nexport const AI_STREAMING = 'ai.streaming';\n\n/**\n * Type for {@link AI_STREAMING} ai.streaming\n */\nexport type AI_STREAMING_TYPE = boolean;\n\n// Path: model/attributes/ai/ai__tags.json\n\n/**\n * Tags that describe an AI pipeline step. `ai.tags`\n *\n * Attribute Value Type: `string` {@link AI_TAGS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated\n * @example \"{\\\"executed_function\\\": \\\"add_integers\\\"}\"\n */\nexport const AI_TAGS = 'ai.tags';\n\n/**\n * Type for {@link AI_TAGS} ai.tags\n */\nexport type AI_TAGS_TYPE = string;\n\n// Path: model/attributes/ai/ai__temperature.json\n\n/**\n * For an AI model call, the temperature parameter. Temperature essentially means how random the output will be. `ai.temperature`\n *\n * Attribute Value Type: `number` {@link AI_TEMPERATURE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_REQUEST_TEMPERATURE} `gen_ai.request.temperature`\n *\n * @deprecated Use {@link GEN_AI_REQUEST_TEMPERATURE} (gen_ai.request.temperature) instead\n * @example 0.1\n */\nexport const AI_TEMPERATURE = 'ai.temperature';\n\n/**\n * Type for {@link AI_TEMPERATURE} ai.temperature\n */\nexport type AI_TEMPERATURE_TYPE = number;\n\n// Path: model/attributes/ai/ai__texts.json\n\n/**\n * Raw text inputs provided to the model. `ai.texts`\n *\n * Attribute Value Type: `Array` {@link AI_TEXTS_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_INPUT_MESSAGES} `gen_ai.input.messages`\n *\n * @deprecated Use {@link GEN_AI_INPUT_MESSAGES} (gen_ai.input.messages) instead\n * @example [\"Hello, how are you?\",\"What is the capital of France?\"]\n */\nexport const AI_TEXTS = 'ai.texts';\n\n/**\n * Type for {@link AI_TEXTS} ai.texts\n */\nexport type AI_TEXTS_TYPE = Array;\n\n// Path: model/attributes/ai/ai__tools.json\n\n/**\n * For an AI model call, the functions that are available `ai.tools`\n *\n * Attribute Value Type: `Array` {@link AI_TOOLS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated Use {@link GEN_AI_TOOL_DEFINITIONS} (gen_ai.tool.definitions) instead\n * @example [\"function_1\",\"function_2\"]\n */\nexport const AI_TOOLS = 'ai.tools';\n\n/**\n * Type for {@link AI_TOOLS} ai.tools\n */\nexport type AI_TOOLS_TYPE = Array;\n\n// Path: model/attributes/ai/ai__tool_calls.json\n\n/**\n * For an AI model call, the tool calls that were made. `ai.tool_calls`\n *\n * Attribute Value Type: `Array` {@link AI_TOOL_CALLS_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated Use {@link GEN_AI_OUTPUT_MESSAGES} (gen_ai.output.messages) instead\n * @example [\"tool_call_1\",\"tool_call_2\"]\n */\nexport const AI_TOOL_CALLS = 'ai.tool_calls';\n\n/**\n * Type for {@link AI_TOOL_CALLS} ai.tool_calls\n */\nexport type AI_TOOL_CALLS_TYPE = Array;\n\n// Path: model/attributes/ai/ai__top_k.json\n\n/**\n * 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). `ai.top_k`\n *\n * Attribute Value Type: `number` {@link AI_TOP_K_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_REQUEST_TOP_K} `gen_ai.request.top_k`\n *\n * @deprecated Use {@link GEN_AI_REQUEST_TOP_K} (gen_ai.request.top_k) instead\n * @example 35\n */\nexport const AI_TOP_K = 'ai.top_k';\n\n/**\n * Type for {@link AI_TOP_K} ai.top_k\n */\nexport type AI_TOP_K_TYPE = number;\n\n// Path: model/attributes/ai/ai__top_p.json\n\n/**\n * 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). `ai.top_p`\n *\n * Attribute Value Type: `number` {@link AI_TOP_P_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_REQUEST_TOP_P} `gen_ai.request.top_p`\n *\n * @deprecated Use {@link GEN_AI_REQUEST_TOP_P} (gen_ai.request.top_p) instead\n * @example 0.7\n */\nexport const AI_TOP_P = 'ai.top_p';\n\n/**\n * Type for {@link AI_TOP_P} ai.top_p\n */\nexport type AI_TOP_P_TYPE = number;\n\n// Path: model/attributes/ai/ai__total_cost.json\n\n/**\n * The total cost for the tokens used. `ai.total_cost`\n *\n * Attribute Value Type: `number` {@link AI_TOTAL_COST_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_COST_TOTAL_TOKENS} `gen_ai.cost.total_tokens`\n *\n * @deprecated Use {@link GEN_AI_COST_TOTAL_TOKENS} (gen_ai.cost.total_tokens) instead\n * @example 12.34\n */\nexport const AI_TOTAL_COST = 'ai.total_cost';\n\n/**\n * Type for {@link AI_TOTAL_COST} ai.total_cost\n */\nexport type AI_TOTAL_COST_TYPE = number;\n\n// Path: model/attributes/ai/ai__total_tokens__used.json\n\n/**\n * The total number of tokens used to process the prompt. `ai.total_tokens.used`\n *\n * Attribute Value Type: `number` {@link AI_TOTAL_TOKENS_USED_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_USAGE_TOTAL_TOKENS} `gen_ai.usage.total_tokens`\n *\n * @deprecated Use {@link GEN_AI_USAGE_TOTAL_TOKENS} (gen_ai.usage.total_tokens) instead\n * @example 30\n */\nexport const AI_TOTAL_TOKENS_USED = 'ai.total_tokens.used';\n\n/**\n * Type for {@link AI_TOTAL_TOKENS_USED} ai.total_tokens.used\n */\nexport type AI_TOTAL_TOKENS_USED_TYPE = number;\n\n// Path: model/attributes/ai/ai__warnings.json\n\n/**\n * Warning messages generated during model execution. `ai.warnings`\n *\n * Attribute Value Type: `Array` {@link AI_WARNINGS_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated\n * @example [\"Token limit exceeded\"]\n */\nexport const AI_WARNINGS = 'ai.warnings';\n\n/**\n * Type for {@link AI_WARNINGS} ai.warnings\n */\nexport type AI_WARNINGS_TYPE = Array;\n\n// Path: model/attributes/angular/angular__version.json\n\n/**\n * The version of the Angular framework `angular.version`\n *\n * Attribute Value Type: `string` {@link ANGULAR_VERSION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"17.1.0\"\n */\nexport const ANGULAR_VERSION = 'angular.version';\n\n/**\n * Type for {@link ANGULAR_VERSION} angular.version\n */\nexport type ANGULAR_VERSION_TYPE = string;\n\n// Path: model/attributes/app/app__app_build.json\n\n/**\n * Internal build identifier, as it appears on the platform. `app.app_build`\n *\n * Attribute Value Type: `string` {@link APP_APP_BUILD_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link APP_BUILD} `app.build`\n *\n * @deprecated Use {@link APP_BUILD} (app.build) instead - Deprecated in favor of app.build\n * @example \"1\"\n */\nexport const APP_APP_BUILD = 'app.app_build';\n\n/**\n * Type for {@link APP_APP_BUILD} app.app_build\n */\nexport type APP_APP_BUILD_TYPE = string;\n\n// Path: model/attributes/app/app__app_identifier.json\n\n/**\n * Version-independent application identifier, often a dotted bundle ID. `app.app_identifier`\n *\n * Attribute Value Type: `string` {@link APP_APP_IDENTIFIER_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link APP_IDENTIFIER} `app.identifier`\n *\n * @deprecated Use {@link APP_IDENTIFIER} (app.identifier) instead - Deprecated in favor of app.identifier\n * @example \"com.example.myapp\"\n */\nexport const APP_APP_IDENTIFIER = 'app.app_identifier';\n\n/**\n * Type for {@link APP_APP_IDENTIFIER} app.app_identifier\n */\nexport type APP_APP_IDENTIFIER_TYPE = string;\n\n// Path: model/attributes/app/app__app_name.json\n\n/**\n * Human readable application name, as it appears on the platform. `app.app_name`\n *\n * Attribute Value Type: `string` {@link APP_APP_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link APP_NAME} `app.name`\n *\n * @deprecated Use {@link APP_NAME} (app.name) instead - Deprecated in favor of app.name\n * @example \"My App\"\n */\nexport const APP_APP_NAME = 'app.app_name';\n\n/**\n * Type for {@link APP_APP_NAME} app.app_name\n */\nexport type APP_APP_NAME_TYPE = string;\n\n// Path: model/attributes/app/app__app_start_time.json\n\n/**\n * Formatted UTC timestamp when the user started the application. `app.app_start_time`\n *\n * Attribute Value Type: `string` {@link APP_APP_START_TIME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link APP_START_TIME} `app.start_time`\n *\n * @deprecated Use {@link APP_START_TIME} (app.start_time) instead - Deprecated in favor of app.start_time\n * @example \"2025-01-01T00:00:00.000Z\"\n */\nexport const APP_APP_START_TIME = 'app.app_start_time';\n\n/**\n * Type for {@link APP_APP_START_TIME} app.app_start_time\n */\nexport type APP_APP_START_TIME_TYPE = string;\n\n// Path: model/attributes/app/app__app_version.json\n\n/**\n * Human readable application version, as it appears on the platform. `app.app_version`\n *\n * Attribute Value Type: `string` {@link APP_APP_VERSION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link APP_VERSION} `app.version`\n *\n * @deprecated Use {@link APP_VERSION} (app.version) instead - Deprecated in favor of app.version\n * @example \"1.0.0\"\n */\nexport const APP_APP_VERSION = 'app.app_version';\n\n/**\n * Type for {@link APP_APP_VERSION} app.app_version\n */\nexport type APP_APP_VERSION_TYPE = string;\n\n// Path: model/attributes/app/app__build.json\n\n/**\n * Internal build identifier, as it appears on the platform. `app.build`\n *\n * Attribute Value Type: `string` {@link APP_BUILD_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link APP_APP_BUILD} `app.app_build`\n *\n * @example \"1\"\n */\nexport const APP_BUILD = 'app.build';\n\n/**\n * Type for {@link APP_BUILD} app.build\n */\nexport type APP_BUILD_TYPE = string;\n\n// Path: model/attributes/app/app__identifier.json\n\n/**\n * Version-independent application identifier, often a dotted bundle ID. `app.identifier`\n *\n * Attribute Value Type: `string` {@link APP_IDENTIFIER_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link APP_APP_IDENTIFIER} `app.app_identifier`\n *\n * @example \"com.example.myapp\"\n */\nexport const APP_IDENTIFIER = 'app.identifier';\n\n/**\n * Type for {@link APP_IDENTIFIER} app.identifier\n */\nexport type APP_IDENTIFIER_TYPE = string;\n\n// Path: model/attributes/app/app__in_foreground.json\n\n/**\n * Whether the application is currently in the foreground. `app.in_foreground`\n *\n * Attribute Value Type: `boolean` {@link APP_IN_FOREGROUND_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example true\n */\nexport const APP_IN_FOREGROUND = 'app.in_foreground';\n\n/**\n * Type for {@link APP_IN_FOREGROUND} app.in_foreground\n */\nexport type APP_IN_FOREGROUND_TYPE = boolean;\n\n// Path: model/attributes/app/app__name.json\n\n/**\n * Human readable application name, as it appears on the platform. `app.name`\n *\n * Attribute Value Type: `string` {@link APP_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link APP_APP_NAME} `app.app_name`\n *\n * @example \"My App\"\n */\nexport const APP_NAME = 'app.name';\n\n/**\n * Type for {@link APP_NAME} app.name\n */\nexport type APP_NAME_TYPE = string;\n\n// Path: model/attributes/app_start_cold.json\n\n/**\n * The duration of a cold app start in milliseconds `app_start_cold`\n *\n * Attribute Value Type: `number` {@link APP_START_COLD_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link APP_VITALS_START_COLD_VALUE} `app.vitals.start.cold.value`\n *\n * @deprecated Use {@link APP_VITALS_START_COLD_VALUE} (app.vitals.start.cold.value) instead - Replaced by app.vitals.start.cold.value to align with the app.vitals.* namespace for mobile performance attributes\n * @example 1234.56\n */\nexport const APP_START_COLD = 'app_start_cold';\n\n/**\n * Type for {@link APP_START_COLD} app_start_cold\n */\nexport type APP_START_COLD_TYPE = number;\n\n// Path: model/attributes/app/app__start_time.json\n\n/**\n * Formatted UTC timestamp when the user started the application. `app.start_time`\n *\n * Attribute Value Type: `string` {@link APP_START_TIME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link APP_APP_START_TIME} `app.app_start_time`\n *\n * @example \"2025-01-01T00:00:00.000Z\"\n */\nexport const APP_START_TIME = 'app.start_time';\n\n/**\n * Type for {@link APP_START_TIME} app.start_time\n */\nexport type APP_START_TIME_TYPE = string;\n\n// Path: model/attributes/app_start_type.json\n\n/**\n * Mobile app start variant. Either cold or warm. `app_start_type`\n *\n * Attribute Value Type: `string` {@link APP_START_TYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link APP_VITALS_START_TYPE} `app.vitals.start.type`\n *\n * @deprecated Use {@link APP_VITALS_START_TYPE} (app.vitals.start.type) instead - Replaced by app.vitals.start.type to align with the app.vitals.* namespace for mobile performance attributes\n * @example \"cold\"\n */\nexport const APP_START_TYPE = 'app_start_type';\n\n/**\n * Type for {@link APP_START_TYPE} app_start_type\n */\nexport type APP_START_TYPE_TYPE = string;\n\n// Path: model/attributes/app_start_warm.json\n\n/**\n * The duration of a warm app start in milliseconds `app_start_warm`\n *\n * Attribute Value Type: `number` {@link APP_START_WARM_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link APP_VITALS_START_WARM_VALUE} `app.vitals.start.warm.value`\n *\n * @deprecated Use {@link APP_VITALS_START_WARM_VALUE} (app.vitals.start.warm.value) instead - Replaced by app.vitals.start.warm.value to align with the app.vitals.* namespace for mobile performance attributes\n * @example 1234.56\n */\nexport const APP_START_WARM = 'app_start_warm';\n\n/**\n * Type for {@link APP_START_WARM} app_start_warm\n */\nexport type APP_START_WARM_TYPE = number;\n\n// Path: model/attributes/app/app__version.json\n\n/**\n * Human readable application version, as it appears on the platform. `app.version`\n *\n * Attribute Value Type: `string` {@link APP_VERSION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link APP_APP_VERSION} `app.app_version`\n *\n * @example \"1.0.0\"\n */\nexport const APP_VERSION = 'app.version';\n\n/**\n * Type for {@link APP_VERSION} app.version\n */\nexport type APP_VERSION_TYPE = string;\n\n// Path: model/attributes/app/app__vitals__frames__delay__value.json\n\n/**\n * 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/). `app.vitals.frames.delay.value`\n *\n * Attribute Value Type: `number` {@link APP_VITALS_FRAMES_DELAY_VALUE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link FRAMES_DELAY} `frames.delay`\n *\n * @example 5\n */\nexport const APP_VITALS_FRAMES_DELAY_VALUE = 'app.vitals.frames.delay.value';\n\n/**\n * Type for {@link APP_VITALS_FRAMES_DELAY_VALUE} app.vitals.frames.delay.value\n */\nexport type APP_VITALS_FRAMES_DELAY_VALUE_TYPE = number;\n\n// Path: model/attributes/app/app__vitals__frames__frozen__count.json\n\n/**\n * The number of frozen frames rendered during the lifetime of the span. `app.vitals.frames.frozen.count`\n *\n * Attribute Value Type: `number` {@link APP_VITALS_FRAMES_FROZEN_COUNT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link FRAMES_FROZEN} `frames.frozen`\n *\n * @example 3\n */\nexport const APP_VITALS_FRAMES_FROZEN_COUNT = 'app.vitals.frames.frozen.count';\n\n/**\n * Type for {@link APP_VITALS_FRAMES_FROZEN_COUNT} app.vitals.frames.frozen.count\n */\nexport type APP_VITALS_FRAMES_FROZEN_COUNT_TYPE = number;\n\n// Path: model/attributes/app/app__vitals__frames__slow__count.json\n\n/**\n * The number of slow frames rendered during the lifetime of the span. `app.vitals.frames.slow.count`\n *\n * Attribute Value Type: `number` {@link APP_VITALS_FRAMES_SLOW_COUNT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link FRAMES_SLOW} `frames.slow`\n *\n * @example 1\n */\nexport const APP_VITALS_FRAMES_SLOW_COUNT = 'app.vitals.frames.slow.count';\n\n/**\n * Type for {@link APP_VITALS_FRAMES_SLOW_COUNT} app.vitals.frames.slow.count\n */\nexport type APP_VITALS_FRAMES_SLOW_COUNT_TYPE = number;\n\n// Path: model/attributes/app/app__vitals__frames__total__count.json\n\n/**\n * The number of total frames rendered during the lifetime of the span. `app.vitals.frames.total.count`\n *\n * Attribute Value Type: `number` {@link APP_VITALS_FRAMES_TOTAL_COUNT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link FRAMES_TOTAL} `frames.total`\n *\n * @example 60\n */\nexport const APP_VITALS_FRAMES_TOTAL_COUNT = 'app.vitals.frames.total.count';\n\n/**\n * Type for {@link APP_VITALS_FRAMES_TOTAL_COUNT} app.vitals.frames.total.count\n */\nexport type APP_VITALS_FRAMES_TOTAL_COUNT_TYPE = number;\n\n// Path: model/attributes/app/app__vitals__start__cold__value.json\n\n/**\n * The duration of a cold app start in milliseconds `app.vitals.start.cold.value`\n *\n * Attribute Value Type: `number` {@link APP_VITALS_START_COLD_VALUE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link APP_START_COLD} `app_start_cold`\n *\n * @example 1234.56\n */\nexport const APP_VITALS_START_COLD_VALUE = 'app.vitals.start.cold.value';\n\n/**\n * Type for {@link APP_VITALS_START_COLD_VALUE} app.vitals.start.cold.value\n */\nexport type APP_VITALS_START_COLD_VALUE_TYPE = number;\n\n// Path: model/attributes/app/app__vitals__start__prewarmed.json\n\n/**\n * Whether the app start was prewarmed. `app.vitals.start.prewarmed`\n *\n * Attribute Value Type: `boolean` {@link APP_VITALS_START_PREWARMED_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example true\n */\nexport const APP_VITALS_START_PREWARMED = 'app.vitals.start.prewarmed';\n\n/**\n * Type for {@link APP_VITALS_START_PREWARMED} app.vitals.start.prewarmed\n */\nexport type APP_VITALS_START_PREWARMED_TYPE = boolean;\n\n// Path: model/attributes/app/app__vitals__start__reason.json\n\n/**\n * The reason that triggered the app start. `app.vitals.start.reason`\n *\n * Attribute Value Type: `string` {@link APP_VITALS_START_REASON_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"push\"\n */\nexport const APP_VITALS_START_REASON = 'app.vitals.start.reason';\n\n/**\n * Type for {@link APP_VITALS_START_REASON} app.vitals.start.reason\n */\nexport type APP_VITALS_START_REASON_TYPE = string;\n\n// Path: model/attributes/app/app__vitals__start__screen.json\n\n/**\n * 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. `app.vitals.start.screen`\n *\n * Attribute Value Type: `string` {@link APP_VITALS_START_SCREEN_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"MainActivity\"\n */\nexport const APP_VITALS_START_SCREEN = 'app.vitals.start.screen';\n\n/**\n * Type for {@link APP_VITALS_START_SCREEN} app.vitals.start.screen\n */\nexport type APP_VITALS_START_SCREEN_TYPE = string;\n\n// Path: model/attributes/app/app__vitals__start__type.json\n\n/**\n * The type of app start, for example `cold` or `warm` `app.vitals.start.type`\n *\n * Attribute Value Type: `string` {@link APP_VITALS_START_TYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link APP_START_TYPE} `app_start_type`\n *\n * @example \"cold\"\n */\nexport const APP_VITALS_START_TYPE = 'app.vitals.start.type';\n\n/**\n * Type for {@link APP_VITALS_START_TYPE} app.vitals.start.type\n */\nexport type APP_VITALS_START_TYPE_TYPE = string;\n\n// Path: model/attributes/app/app__vitals__start__warm__value.json\n\n/**\n * The duration of a warm app start in milliseconds `app.vitals.start.warm.value`\n *\n * Attribute Value Type: `number` {@link APP_VITALS_START_WARM_VALUE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link APP_START_WARM} `app_start_warm`\n *\n * @example 1234.56\n */\nexport const APP_VITALS_START_WARM_VALUE = 'app.vitals.start.warm.value';\n\n/**\n * Type for {@link APP_VITALS_START_WARM_VALUE} app.vitals.start.warm.value\n */\nexport type APP_VITALS_START_WARM_VALUE_TYPE = number;\n\n// Path: model/attributes/app/app__vitals__ttfd__value.json\n\n/**\n * The duration of time to full display in milliseconds `app.vitals.ttfd.value`\n *\n * Attribute Value Type: `number` {@link APP_VITALS_TTFD_VALUE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link TIME_TO_FULL_DISPLAY} `time_to_full_display`\n *\n * @example 1234.56\n */\nexport const APP_VITALS_TTFD_VALUE = 'app.vitals.ttfd.value';\n\n/**\n * Type for {@link APP_VITALS_TTFD_VALUE} app.vitals.ttfd.value\n */\nexport type APP_VITALS_TTFD_VALUE_TYPE = number;\n\n// Path: model/attributes/app/app__vitals__ttid__value.json\n\n/**\n * The duration of time to initial display in milliseconds `app.vitals.ttid.value`\n *\n * Attribute Value Type: `number` {@link APP_VITALS_TTID_VALUE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link TIME_TO_INITIAL_DISPLAY} `time_to_initial_display`\n *\n * @example 1234.56\n */\nexport const APP_VITALS_TTID_VALUE = 'app.vitals.ttid.value';\n\n/**\n * Type for {@link APP_VITALS_TTID_VALUE} app.vitals.ttid.value\n */\nexport type APP_VITALS_TTID_VALUE_TYPE = number;\n\n// Path: model/attributes/art/art__gc__blocking_count.json\n\n/**\n * Total number of blocking (stop-the-world) garbage collections performed by the Android Runtime `art.gc.blocking_count`\n *\n * Attribute Value Type: `number` {@link ART_GC_BLOCKING_COUNT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 1\n */\nexport const ART_GC_BLOCKING_COUNT = 'art.gc.blocking_count';\n\n/**\n * Type for {@link ART_GC_BLOCKING_COUNT} art.gc.blocking_count\n */\nexport type ART_GC_BLOCKING_COUNT_TYPE = number;\n\n// Path: model/attributes/art/art__gc__blocking_time.json\n\n/**\n * Total time spent in blocking (stop-the-world) garbage collections by the Android Runtime, in milliseconds `art.gc.blocking_time`\n *\n * Attribute Value Type: `number` {@link ART_GC_BLOCKING_TIME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 11.873\n */\nexport const ART_GC_BLOCKING_TIME = 'art.gc.blocking_time';\n\n/**\n * Type for {@link ART_GC_BLOCKING_TIME} art.gc.blocking_time\n */\nexport type ART_GC_BLOCKING_TIME_TYPE = number;\n\n// Path: model/attributes/art/art__gc__pre_oome_count.json\n\n/**\n * Total number of garbage collections triggered as a last resort before an OutOfMemoryError by the Android Runtime `art.gc.pre_oome_count`\n *\n * Attribute Value Type: `number` {@link ART_GC_PRE_OOME_COUNT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 0\n */\nexport const ART_GC_PRE_OOME_COUNT = 'art.gc.pre_oome_count';\n\n/**\n * Type for {@link ART_GC_PRE_OOME_COUNT} art.gc.pre_oome_count\n */\nexport type ART_GC_PRE_OOME_COUNT_TYPE = number;\n\n// Path: model/attributes/art/art__gc__total_count.json\n\n/**\n * Total number of garbage collections performed by the Android Runtime `art.gc.total_count`\n *\n * Attribute Value Type: `number` {@link ART_GC_TOTAL_COUNT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 1\n */\nexport const ART_GC_TOTAL_COUNT = 'art.gc.total_count';\n\n/**\n * Type for {@link ART_GC_TOTAL_COUNT} art.gc.total_count\n */\nexport type ART_GC_TOTAL_COUNT_TYPE = number;\n\n// Path: model/attributes/art/art__gc__total_time.json\n\n/**\n * Total time spent in garbage collection by the Android Runtime, in milliseconds `art.gc.total_time`\n *\n * Attribute Value Type: `number` {@link ART_GC_TOTAL_TIME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 11.807\n */\nexport const ART_GC_TOTAL_TIME = 'art.gc.total_time';\n\n/**\n * Type for {@link ART_GC_TOTAL_TIME} art.gc.total_time\n */\nexport type ART_GC_TOTAL_TIME_TYPE = number;\n\n// Path: model/attributes/art/art__gc__waiting_time.json\n\n/**\n * Total time threads spent waiting for garbage collection to complete in the Android Runtime, in milliseconds `art.gc.waiting_time`\n *\n * Attribute Value Type: `number` {@link ART_GC_WAITING_TIME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 8.054\n */\nexport const ART_GC_WAITING_TIME = 'art.gc.waiting_time';\n\n/**\n * Type for {@link ART_GC_WAITING_TIME} art.gc.waiting_time\n */\nexport type ART_GC_WAITING_TIME_TYPE = number;\n\n// Path: model/attributes/art/art__memory__free.json\n\n/**\n * Free memory available to the process as reported by the Android Runtime, in bytes `art.memory.free`\n *\n * Attribute Value Type: `number` {@link ART_MEMORY_FREE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 3181568\n */\nexport const ART_MEMORY_FREE = 'art.memory.free';\n\n/**\n * Type for {@link ART_MEMORY_FREE} art.memory.free\n */\nexport type ART_MEMORY_FREE_TYPE = number;\n\n// Path: model/attributes/art/art__memory__free_until_gc.json\n\n/**\n * Free memory available before a garbage collection would be triggered by the Android Runtime, in bytes `art.memory.free_until_gc`\n *\n * Attribute Value Type: `number` {@link ART_MEMORY_FREE_UNTIL_GC_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 3181568\n */\nexport const ART_MEMORY_FREE_UNTIL_GC = 'art.memory.free_until_gc';\n\n/**\n * Type for {@link ART_MEMORY_FREE_UNTIL_GC} art.memory.free_until_gc\n */\nexport type ART_MEMORY_FREE_UNTIL_GC_TYPE = number;\n\n// Path: model/attributes/art/art__memory__free_until_oome.json\n\n/**\n * Free memory available before an OutOfMemoryError would be thrown by the Android Runtime, in bytes `art.memory.free_until_oome`\n *\n * Attribute Value Type: `number` {@link ART_MEMORY_FREE_UNTIL_OOME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 196083712\n */\nexport const ART_MEMORY_FREE_UNTIL_OOME = 'art.memory.free_until_oome';\n\n/**\n * Type for {@link ART_MEMORY_FREE_UNTIL_OOME} art.memory.free_until_oome\n */\nexport type ART_MEMORY_FREE_UNTIL_OOME_TYPE = number;\n\n// Path: model/attributes/art/art__memory__max.json\n\n/**\n * Maximum memory the process is allowed to use as reported by the Android Runtime, in bytes `art.memory.max`\n *\n * Attribute Value Type: `number` {@link ART_MEMORY_MAX_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 201326592\n */\nexport const ART_MEMORY_MAX = 'art.memory.max';\n\n/**\n * Type for {@link ART_MEMORY_MAX} art.memory.max\n */\nexport type ART_MEMORY_MAX_TYPE = number;\n\n// Path: model/attributes/art/art__memory__total.json\n\n/**\n * Total memory currently allocated to the process by the Android Runtime, in bytes `art.memory.total`\n *\n * Attribute Value Type: `number` {@link ART_MEMORY_TOTAL_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 7774208\n */\nexport const ART_MEMORY_TOTAL = 'art.memory.total';\n\n/**\n * Type for {@link ART_MEMORY_TOTAL} art.memory.total\n */\nexport type ART_MEMORY_TOTAL_TYPE = number;\n\n// Path: model/attributes/aws/aws__cloudwatch__logs__log_group.json\n\n/**\n * The name of the CloudWatch Logs log group `aws.cloudwatch.logs.log_group`\n *\n * Attribute Value Type: `string` {@link AWS_CLOUDWATCH_LOGS_LOG_GROUP_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"/aws/lambda/my-function\"\n */\nexport const AWS_CLOUDWATCH_LOGS_LOG_GROUP = 'aws.cloudwatch.logs.log_group';\n\n/**\n * Type for {@link AWS_CLOUDWATCH_LOGS_LOG_GROUP} aws.cloudwatch.logs.log_group\n */\nexport type AWS_CLOUDWATCH_LOGS_LOG_GROUP_TYPE = string;\n\n// Path: model/attributes/aws/aws__cloudwatch__logs__log_stream.json\n\n/**\n * The name of the CloudWatch Logs log stream `aws.cloudwatch.logs.log_stream`\n *\n * Attribute Value Type: `string` {@link AWS_CLOUDWATCH_LOGS_LOG_STREAM_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"2024/01/01/[$LATEST]abcdef1234567890\"\n */\nexport const AWS_CLOUDWATCH_LOGS_LOG_STREAM = 'aws.cloudwatch.logs.log_stream';\n\n/**\n * Type for {@link AWS_CLOUDWATCH_LOGS_LOG_STREAM} aws.cloudwatch.logs.log_stream\n */\nexport type AWS_CLOUDWATCH_LOGS_LOG_STREAM_TYPE = string;\n\n// Path: model/attributes/aws/aws__cloudwatch__logs__url.json\n\n/**\n * The URL to the CloudWatch Logs log group `aws.cloudwatch.logs.url`\n *\n * Attribute Value Type: `string` {@link AWS_CLOUDWATCH_LOGS_URL_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"https://console.aws.amazon.com/cloudwatch/home?region=us-east-1#logsV2:log-groups/log-group/my-log-group\"\n */\nexport const AWS_CLOUDWATCH_LOGS_URL = 'aws.cloudwatch.logs.url';\n\n/**\n * Type for {@link AWS_CLOUDWATCH_LOGS_URL} aws.cloudwatch.logs.url\n */\nexport type AWS_CLOUDWATCH_LOGS_URL_TYPE = string;\n\n// Path: model/attributes/aws/aws__dynamodb__attribute_definitions.json\n\n/**\n * The JSON-serialized value of each item in the `AttributeDefinitions` request field. `aws.dynamodb.attribute_definitions`\n *\n * Attribute Value Type: `Array` {@link AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example [\"{ \\\"AttributeName\\\": \\\"string\\\", \\\"AttributeType\\\": \\\"string\\\" }\"]\n */\nexport const AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS = 'aws.dynamodb.attribute_definitions';\n\n/**\n * Type for {@link AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS} aws.dynamodb.attribute_definitions\n */\nexport type AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS_TYPE = Array;\n\n// Path: model/attributes/aws/aws__dynamodb__consistent_read.json\n\n/**\n * The value of the `ConsistentRead` request parameter. `aws.dynamodb.consistent_read`\n *\n * Attribute Value Type: `boolean` {@link AWS_DYNAMODB_CONSISTENT_READ_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example true\n */\nexport const AWS_DYNAMODB_CONSISTENT_READ = 'aws.dynamodb.consistent_read';\n\n/**\n * Type for {@link AWS_DYNAMODB_CONSISTENT_READ} aws.dynamodb.consistent_read\n */\nexport type AWS_DYNAMODB_CONSISTENT_READ_TYPE = boolean;\n\n// Path: model/attributes/aws/aws__dynamodb__consumed_capacity.json\n\n/**\n * The JSON-serialized value of each item in the `ConsumedCapacity` response field. `aws.dynamodb.consumed_capacity`\n *\n * Attribute Value Type: `Array` {@link AWS_DYNAMODB_CONSUMED_CAPACITY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @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 }\"]\n */\nexport const AWS_DYNAMODB_CONSUMED_CAPACITY = 'aws.dynamodb.consumed_capacity';\n\n/**\n * Type for {@link AWS_DYNAMODB_CONSUMED_CAPACITY} aws.dynamodb.consumed_capacity\n */\nexport type AWS_DYNAMODB_CONSUMED_CAPACITY_TYPE = Array;\n\n// Path: model/attributes/aws/aws__dynamodb__count.json\n\n/**\n * The value of the `Count` response parameter. `aws.dynamodb.count`\n *\n * Attribute Value Type: `number` {@link AWS_DYNAMODB_COUNT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example 10\n */\nexport const AWS_DYNAMODB_COUNT = 'aws.dynamodb.count';\n\n/**\n * Type for {@link AWS_DYNAMODB_COUNT} aws.dynamodb.count\n */\nexport type AWS_DYNAMODB_COUNT_TYPE = number;\n\n// Path: model/attributes/aws/aws__dynamodb__exclusive_start_table.json\n\n/**\n * The value of the `ExclusiveStartTableName` request parameter. `aws.dynamodb.exclusive_start_table`\n *\n * Attribute Value Type: `string` {@link AWS_DYNAMODB_EXCLUSIVE_START_TABLE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"Users\"\n */\nexport const AWS_DYNAMODB_EXCLUSIVE_START_TABLE = 'aws.dynamodb.exclusive_start_table';\n\n/**\n * Type for {@link AWS_DYNAMODB_EXCLUSIVE_START_TABLE} aws.dynamodb.exclusive_start_table\n */\nexport type AWS_DYNAMODB_EXCLUSIVE_START_TABLE_TYPE = string;\n\n// Path: model/attributes/aws/aws__dynamodb__global_secondary_indexes.json\n\n/**\n * The JSON-serialized value of each item of the `GlobalSecondaryIndexes` request field. `aws.dynamodb.global_secondary_indexes`\n *\n * Attribute Value Type: `Array` {@link AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example [\"{ \\\"IndexName\\\": \\\"string\\\", \\\"KeySchema\\\": [ { \\\"AttributeName\\\": \\\"string\\\", \\\"KeyType\\\": \\\"string\\\" } ], \\\"Projection\\\": { \\\"NonKeyAttributes\\\": [ \\\"string\\\" ], \\\"ProjectionType\\\": \\\"string\\\" }, \\\"ProvisionedThroughput\\\": { \\\"ReadCapacityUnits\\\": number, \\\"WriteCapacityUnits\\\": number } }\"]\n */\nexport const AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES = 'aws.dynamodb.global_secondary_indexes';\n\n/**\n * Type for {@link AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES} aws.dynamodb.global_secondary_indexes\n */\nexport type AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES_TYPE = Array;\n\n// Path: model/attributes/aws/aws__dynamodb__global_secondary_index_updates.json\n\n/**\n * The JSON-serialized value of each item in the `GlobalSecondaryIndexUpdates` request field. `aws.dynamodb.global_secondary_index_updates`\n *\n * Attribute Value Type: `Array` {@link AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example [\"{ \\\"Create\\\": { \\\"IndexName\\\": \\\"string\\\", \\\"KeySchema\\\": [ { \\\"AttributeName\\\": \\\"string\\\", \\\"KeyType\\\": \\\"string\\\" } ], \\\"Projection\\\": { \\\"NonKeyAttributes\\\": [ \\\"string\\\" ], \\\"ProjectionType\\\": \\\"string\\\" }, \\\"ProvisionedThroughput\\\": { \\\"ReadCapacityUnits\\\": number, \\\"WriteCapacityUnits\\\": number } }\"]\n */\nexport const AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES = 'aws.dynamodb.global_secondary_index_updates';\n\n/**\n * Type for {@link AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES} aws.dynamodb.global_secondary_index_updates\n */\nexport type AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES_TYPE = Array;\n\n// Path: model/attributes/aws/aws__dynamodb__index_name.json\n\n/**\n * The value of the `IndexName` request parameter. `aws.dynamodb.index_name`\n *\n * Attribute Value Type: `string` {@link AWS_DYNAMODB_INDEX_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"name_to_group\"\n */\nexport const AWS_DYNAMODB_INDEX_NAME = 'aws.dynamodb.index_name';\n\n/**\n * Type for {@link AWS_DYNAMODB_INDEX_NAME} aws.dynamodb.index_name\n */\nexport type AWS_DYNAMODB_INDEX_NAME_TYPE = string;\n\n// Path: model/attributes/aws/aws__dynamodb__item_collection_metrics.json\n\n/**\n * The JSON-serialized value of the `ItemCollectionMetrics` response field. `aws.dynamodb.item_collection_metrics`\n *\n * Attribute Value Type: `string` {@link AWS_DYNAMODB_ITEM_COLLECTION_METRICS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @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 ] } ] }\"\n */\nexport const AWS_DYNAMODB_ITEM_COLLECTION_METRICS = 'aws.dynamodb.item_collection_metrics';\n\n/**\n * Type for {@link AWS_DYNAMODB_ITEM_COLLECTION_METRICS} aws.dynamodb.item_collection_metrics\n */\nexport type AWS_DYNAMODB_ITEM_COLLECTION_METRICS_TYPE = string;\n\n// Path: model/attributes/aws/aws__dynamodb__limit.json\n\n/**\n * The value of the `Limit` request parameter. `aws.dynamodb.limit`\n *\n * Attribute Value Type: `number` {@link AWS_DYNAMODB_LIMIT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example 10\n */\nexport const AWS_DYNAMODB_LIMIT = 'aws.dynamodb.limit';\n\n/**\n * Type for {@link AWS_DYNAMODB_LIMIT} aws.dynamodb.limit\n */\nexport type AWS_DYNAMODB_LIMIT_TYPE = number;\n\n// Path: model/attributes/aws/aws__dynamodb__local_secondary_indexes.json\n\n/**\n * The JSON-serialized value of each item of the `LocalSecondaryIndexes` request field. `aws.dynamodb.local_secondary_indexes`\n *\n * Attribute Value Type: `Array` {@link AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example [\"{ \\\"IndexArn\\\": \\\"string\\\", \\\"IndexName\\\": \\\"string\\\", \\\"IndexSizeBytes\\\": number, \\\"ItemCount\\\": number, \\\"KeySchema\\\": [ { \\\"AttributeName\\\": \\\"string\\\", \\\"KeyType\\\": \\\"string\\\" } ], \\\"Projection\\\": { \\\"NonKeyAttributes\\\": [ \\\"string\\\" ], \\\"ProjectionType\\\": \\\"string\\\" } }\"]\n */\nexport const AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES = 'aws.dynamodb.local_secondary_indexes';\n\n/**\n * Type for {@link AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES} aws.dynamodb.local_secondary_indexes\n */\nexport type AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES_TYPE = Array;\n\n// Path: model/attributes/aws/aws__dynamodb__projection.json\n\n/**\n * The value of the `ProjectionExpression` request parameter. `aws.dynamodb.projection`\n *\n * Attribute Value Type: `string` {@link AWS_DYNAMODB_PROJECTION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"Title, Price, Color\"\n */\nexport const AWS_DYNAMODB_PROJECTION = 'aws.dynamodb.projection';\n\n/**\n * Type for {@link AWS_DYNAMODB_PROJECTION} aws.dynamodb.projection\n */\nexport type AWS_DYNAMODB_PROJECTION_TYPE = string;\n\n// Path: model/attributes/aws/aws__dynamodb__provisioned_read_capacity.json\n\n/**\n * The value of the `ProvisionedThroughput.ReadCapacityUnits` request parameter. `aws.dynamodb.provisioned_read_capacity`\n *\n * Attribute Value Type: `number` {@link AWS_DYNAMODB_PROVISIONED_READ_CAPACITY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example 1\n */\nexport const AWS_DYNAMODB_PROVISIONED_READ_CAPACITY = 'aws.dynamodb.provisioned_read_capacity';\n\n/**\n * Type for {@link AWS_DYNAMODB_PROVISIONED_READ_CAPACITY} aws.dynamodb.provisioned_read_capacity\n */\nexport type AWS_DYNAMODB_PROVISIONED_READ_CAPACITY_TYPE = number;\n\n// Path: model/attributes/aws/aws__dynamodb__provisioned_write_capacity.json\n\n/**\n * The value of the `ProvisionedThroughput.WriteCapacityUnits` request parameter. `aws.dynamodb.provisioned_write_capacity`\n *\n * Attribute Value Type: `number` {@link AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example 2\n */\nexport const AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY = 'aws.dynamodb.provisioned_write_capacity';\n\n/**\n * Type for {@link AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY} aws.dynamodb.provisioned_write_capacity\n */\nexport type AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY_TYPE = number;\n\n// Path: model/attributes/aws/aws__dynamodb__scanned_count.json\n\n/**\n * The value of the `ScannedCount` response parameter. `aws.dynamodb.scanned_count`\n *\n * Attribute Value Type: `number` {@link AWS_DYNAMODB_SCANNED_COUNT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example 50\n */\nexport const AWS_DYNAMODB_SCANNED_COUNT = 'aws.dynamodb.scanned_count';\n\n/**\n * Type for {@link AWS_DYNAMODB_SCANNED_COUNT} aws.dynamodb.scanned_count\n */\nexport type AWS_DYNAMODB_SCANNED_COUNT_TYPE = number;\n\n// Path: model/attributes/aws/aws__dynamodb__scan_forward.json\n\n/**\n * The value of the `ScanIndexForward` request parameter. `aws.dynamodb.scan_forward`\n *\n * Attribute Value Type: `boolean` {@link AWS_DYNAMODB_SCAN_FORWARD_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example true\n */\nexport const AWS_DYNAMODB_SCAN_FORWARD = 'aws.dynamodb.scan_forward';\n\n/**\n * Type for {@link AWS_DYNAMODB_SCAN_FORWARD} aws.dynamodb.scan_forward\n */\nexport type AWS_DYNAMODB_SCAN_FORWARD_TYPE = boolean;\n\n// Path: model/attributes/aws/aws__dynamodb__segment.json\n\n/**\n * The value of the `Segment` request parameter. `aws.dynamodb.segment`\n *\n * Attribute Value Type: `number` {@link AWS_DYNAMODB_SEGMENT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example 10\n */\nexport const AWS_DYNAMODB_SEGMENT = 'aws.dynamodb.segment';\n\n/**\n * Type for {@link AWS_DYNAMODB_SEGMENT} aws.dynamodb.segment\n */\nexport type AWS_DYNAMODB_SEGMENT_TYPE = number;\n\n// Path: model/attributes/aws/aws__dynamodb__select.json\n\n/**\n * The value of the `Select` request parameter. `aws.dynamodb.select`\n *\n * Attribute Value Type: `string` {@link AWS_DYNAMODB_SELECT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"ALL_ATTRIBUTES\"\n */\nexport const AWS_DYNAMODB_SELECT = 'aws.dynamodb.select';\n\n/**\n * Type for {@link AWS_DYNAMODB_SELECT} aws.dynamodb.select\n */\nexport type AWS_DYNAMODB_SELECT_TYPE = string;\n\n// Path: model/attributes/aws/aws__dynamodb__table_count.json\n\n/**\n * The number of items in the `TableNames` response parameter. `aws.dynamodb.table_count`\n *\n * Attribute Value Type: `number` {@link AWS_DYNAMODB_TABLE_COUNT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example 20\n */\nexport const AWS_DYNAMODB_TABLE_COUNT = 'aws.dynamodb.table_count';\n\n/**\n * Type for {@link AWS_DYNAMODB_TABLE_COUNT} aws.dynamodb.table_count\n */\nexport type AWS_DYNAMODB_TABLE_COUNT_TYPE = number;\n\n// Path: model/attributes/aws/aws__dynamodb__table_names.json\n\n/**\n * The keys in the `RequestItems` object field. `aws.dynamodb.table_names`\n *\n * Attribute Value Type: `Array` {@link AWS_DYNAMODB_TABLE_NAMES_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example [\"Users\",\"Cats\"]\n */\nexport const AWS_DYNAMODB_TABLE_NAMES = 'aws.dynamodb.table_names';\n\n/**\n * Type for {@link AWS_DYNAMODB_TABLE_NAMES} aws.dynamodb.table_names\n */\nexport type AWS_DYNAMODB_TABLE_NAMES_TYPE = Array;\n\n// Path: model/attributes/aws/aws__dynamodb__total_segments.json\n\n/**\n * The value of the `TotalSegments` request parameter. `aws.dynamodb.total_segments`\n *\n * Attribute Value Type: `number` {@link AWS_DYNAMODB_TOTAL_SEGMENTS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example 100\n */\nexport const AWS_DYNAMODB_TOTAL_SEGMENTS = 'aws.dynamodb.total_segments';\n\n/**\n * Type for {@link AWS_DYNAMODB_TOTAL_SEGMENTS} aws.dynamodb.total_segments\n */\nexport type AWS_DYNAMODB_TOTAL_SEGMENTS_TYPE = number;\n\n// Path: model/attributes/aws/aws__extended_request_id.json\n\n/**\n * The AWS extended request ID as returned in the response headers. `aws.extended_request_id`\n *\n * Attribute Value Type: `string` {@link AWS_EXTENDED_REQUEST_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link AWS_REQUEST_EXTENDED_ID} `aws.request.extended_id`\n *\n * @example \"wzHcyEWfmOGDIE5QOhTAqFDoDWP3y8IUvpNINCwL9N4TEHbUw0/gZJ+VZTmCNCWR7fezEN3eCiQ=\"\n */\nexport const AWS_EXTENDED_REQUEST_ID = 'aws.extended_request_id';\n\n/**\n * Type for {@link AWS_EXTENDED_REQUEST_ID} aws.extended_request_id\n */\nexport type AWS_EXTENDED_REQUEST_ID_TYPE = string;\n\n// Path: model/attributes/aws/aws__kinesis__stream_name.json\n\n/**\n * The name of the AWS Kinesis stream the request refers to. `aws.kinesis.stream_name`\n *\n * Attribute Value Type: `string` {@link AWS_KINESIS_STREAM_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link _AWS_KINESIS_STREAM_NAME} `aws.kinesis.stream.name`\n *\n * @example \"some-stream-name\"\n */\nexport const AWS_KINESIS_STREAM_NAME = 'aws.kinesis.stream_name';\n\n/**\n * Type for {@link AWS_KINESIS_STREAM_NAME} aws.kinesis.stream_name\n */\nexport type AWS_KINESIS_STREAM_NAME_TYPE = string;\n\n// Path: model/attributes/aws/aws__kinesis__stream__name.json\n\n/**\n * The name of the AWS Kinesis stream the request refers to. `aws.kinesis.stream.name`\n *\n * Attribute Value Type: `string` {@link _AWS_KINESIS_STREAM_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link AWS_KINESIS_STREAM_NAME} `aws.kinesis.stream_name`\n *\n * @deprecated Use {@link AWS_KINESIS_STREAM_NAME} (aws.kinesis.stream_name) instead - This attribute is being deprecated in favor of aws.kinesis.stream_name, which is the OTel-aligned replacement.\n * @example \"some-stream-name\"\n */\nexport const _AWS_KINESIS_STREAM_NAME = 'aws.kinesis.stream.name';\n\n/**\n * Type for {@link _AWS_KINESIS_STREAM_NAME} aws.kinesis.stream.name\n */\nexport type _AWS_KINESIS_STREAM_NAME_TYPE = string;\n\n// Path: model/attributes/aws/aws__lambda__aws_request_id.json\n\n/**\n * The AWS request ID as received by the Lambda function runtime `aws.lambda.aws_request_id`\n *\n * Attribute Value Type: `string` {@link AWS_LAMBDA_AWS_REQUEST_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link FAAS_INVOCATION_ID} `faas.invocation_id`, {@link FAAS_EXECUTION} `faas.execution`\n *\n * @deprecated Use {@link FAAS_INVOCATION_ID} (faas.invocation_id) instead - This attribute is being deprecated in favor of faas.invocation_id\n * @example \"8476a536-e9f4-11e8-9739-2dfe598c3fcd\"\n */\nexport const AWS_LAMBDA_AWS_REQUEST_ID = 'aws.lambda.aws_request_id';\n\n/**\n * Type for {@link AWS_LAMBDA_AWS_REQUEST_ID} aws.lambda.aws_request_id\n */\nexport type AWS_LAMBDA_AWS_REQUEST_ID_TYPE = string;\n\n// Path: model/attributes/aws/aws__lambda__execution_duration_in_millis.json\n\n/**\n * The execution duration of the Lambda function invocation in milliseconds `aws.lambda.execution_duration_in_millis`\n *\n * Attribute Value Type: `number` {@link AWS_LAMBDA_EXECUTION_DURATION_IN_MILLIS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 1234.56\n */\nexport const AWS_LAMBDA_EXECUTION_DURATION_IN_MILLIS = 'aws.lambda.execution_duration_in_millis';\n\n/**\n * Type for {@link AWS_LAMBDA_EXECUTION_DURATION_IN_MILLIS} aws.lambda.execution_duration_in_millis\n */\nexport type AWS_LAMBDA_EXECUTION_DURATION_IN_MILLIS_TYPE = number;\n\n// Path: model/attributes/aws/aws__lambda__function_name.json\n\n/**\n * The name of the Lambda function `aws.lambda.function_name`\n *\n * Attribute Value Type: `string` {@link AWS_LAMBDA_FUNCTION_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link FAAS_NAME} `faas.name`\n *\n * @deprecated Use {@link FAAS_NAME} (faas.name) instead - Use the OTel-aligned faas.name attribute instead\n * @example \"my-function\"\n */\nexport const AWS_LAMBDA_FUNCTION_NAME = 'aws.lambda.function_name';\n\n/**\n * Type for {@link AWS_LAMBDA_FUNCTION_NAME} aws.lambda.function_name\n */\nexport type AWS_LAMBDA_FUNCTION_NAME_TYPE = string;\n\n// Path: model/attributes/aws/aws__lambda__function_version.json\n\n/**\n * The version of the Lambda function `aws.lambda.function_version`\n *\n * Attribute Value Type: `string` {@link AWS_LAMBDA_FUNCTION_VERSION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link FAAS_VERSION} `faas.version`\n *\n * @deprecated Use {@link FAAS_VERSION} (faas.version) instead - Use the OTel-aligned faas.version attribute instead\n * @example \"$LATEST\"\n */\nexport const AWS_LAMBDA_FUNCTION_VERSION = 'aws.lambda.function_version';\n\n/**\n * Type for {@link AWS_LAMBDA_FUNCTION_VERSION} aws.lambda.function_version\n */\nexport type AWS_LAMBDA_FUNCTION_VERSION_TYPE = string;\n\n// Path: model/attributes/aws/aws__lambda__invoked_arn.json\n\n/**\n * The full ARN of the Lambda function that was invoked `aws.lambda.invoked_arn`\n *\n * Attribute Value Type: `string` {@link AWS_LAMBDA_INVOKED_ARN_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link AWS_LAMBDA_INVOKED_FUNCTION_ARN} `aws.lambda.invoked_function_arn`\n *\n * @example \"arn:aws:lambda:us-east-1:123456789012:function:my-function\"\n */\nexport const AWS_LAMBDA_INVOKED_ARN = 'aws.lambda.invoked_arn';\n\n/**\n * Type for {@link AWS_LAMBDA_INVOKED_ARN} aws.lambda.invoked_arn\n */\nexport type AWS_LAMBDA_INVOKED_ARN_TYPE = string;\n\n// Path: model/attributes/aws/aws__lambda__invoked_function_arn.json\n\n/**\n * The full ARN of the Lambda function that was invoked `aws.lambda.invoked_function_arn`\n *\n * Attribute Value Type: `string` {@link AWS_LAMBDA_INVOKED_FUNCTION_ARN_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link AWS_LAMBDA_INVOKED_ARN} `aws.lambda.invoked_arn`\n *\n * @deprecated Use {@link AWS_LAMBDA_INVOKED_ARN} (aws.lambda.invoked_arn) instead - This attribute is being deprecated in favor of aws.lambda.invoked_arn\n * @example \"arn:aws:lambda:us-east-1:123456789012:function:my-function\"\n */\nexport const AWS_LAMBDA_INVOKED_FUNCTION_ARN = 'aws.lambda.invoked_function_arn';\n\n/**\n * Type for {@link AWS_LAMBDA_INVOKED_FUNCTION_ARN} aws.lambda.invoked_function_arn\n */\nexport type AWS_LAMBDA_INVOKED_FUNCTION_ARN_TYPE = string;\n\n// Path: model/attributes/aws/aws__lambda__remaining_time_in_millis.json\n\n/**\n * The remaining time in milliseconds before the Lambda function times out `aws.lambda.remaining_time_in_millis`\n *\n * Attribute Value Type: `number` {@link AWS_LAMBDA_REMAINING_TIME_IN_MILLIS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 5000\n */\nexport const AWS_LAMBDA_REMAINING_TIME_IN_MILLIS = 'aws.lambda.remaining_time_in_millis';\n\n/**\n * Type for {@link AWS_LAMBDA_REMAINING_TIME_IN_MILLIS} aws.lambda.remaining_time_in_millis\n */\nexport type AWS_LAMBDA_REMAINING_TIME_IN_MILLIS_TYPE = number;\n\n// Path: model/attributes/aws/aws__log__group__names.json\n\n/**\n * The name(s) of the AWS log group(s) an application is writing to. `aws.log.group.names`\n *\n * Attribute Value Type: `Array` {@link AWS_LOG_GROUP_NAMES_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example [\"/aws/lambda/my-function\",\"opentelemetry-service\"]\n */\nexport const AWS_LOG_GROUP_NAMES = 'aws.log.group.names';\n\n/**\n * Type for {@link AWS_LOG_GROUP_NAMES} aws.log.group.names\n */\nexport type AWS_LOG_GROUP_NAMES_TYPE = Array;\n\n// Path: model/attributes/aws/aws__log__stream__names.json\n\n/**\n * The name(s) of the AWS log stream(s) an application is writing to. `aws.log.stream.names`\n *\n * Attribute Value Type: `Array` {@link AWS_LOG_STREAM_NAMES_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example [\"logs/main/10838bed-421f-43ef-870a-f43feacbbb5b\"]\n */\nexport const AWS_LOG_STREAM_NAMES = 'aws.log.stream.names';\n\n/**\n * Type for {@link AWS_LOG_STREAM_NAMES} aws.log.stream.names\n */\nexport type AWS_LOG_STREAM_NAMES_TYPE = Array;\n\n// Path: model/attributes/aws/aws__request__extended_id.json\n\n/**\n * The AWS extended request ID as returned in the response headers. `aws.request.extended_id`\n *\n * Attribute Value Type: `string` {@link AWS_REQUEST_EXTENDED_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link AWS_EXTENDED_REQUEST_ID} `aws.extended_request_id`\n *\n * @deprecated Use {@link AWS_EXTENDED_REQUEST_ID} (aws.extended_request_id) instead - This attribute is being deprecated in favor of aws.extended_request_id, which is the OTel-aligned replacement.\n * @example \"wzHcyEWfmOGDIE5QOhTAqFDoDWP3y8IUvpNINCwL9N4TEHbUw0/gZJ+VZTmCNCWR7fezEN3eCiQ=\"\n */\nexport const AWS_REQUEST_EXTENDED_ID = 'aws.request.extended_id';\n\n/**\n * Type for {@link AWS_REQUEST_EXTENDED_ID} aws.request.extended_id\n */\nexport type AWS_REQUEST_EXTENDED_ID_TYPE = string;\n\n// Path: model/attributes/aws/aws__request_id.json\n\n/**\n * The AWS request ID as returned in the response headers. `aws.request_id`\n *\n * Attribute Value Type: `string` {@link AWS_REQUEST_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link _AWS_REQUEST_ID} `aws.request.id`\n *\n * @example \"79b9da39-b7ae-508a-a6bc-864b2829c622\"\n */\nexport const AWS_REQUEST_ID = 'aws.request_id';\n\n/**\n * Type for {@link AWS_REQUEST_ID} aws.request_id\n */\nexport type AWS_REQUEST_ID_TYPE = string;\n\n// Path: model/attributes/aws/aws__request__id.json\n\n/**\n * The AWS request ID as returned in the response headers. `aws.request.id`\n *\n * Attribute Value Type: `string` {@link _AWS_REQUEST_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link AWS_REQUEST_ID} `aws.request_id`\n *\n * @deprecated Use {@link AWS_REQUEST_ID} (aws.request_id) instead - This attribute is being deprecated in favor of aws.request_id, which is the OTel-aligned replacement.\n * @example \"79b9da39-b7ae-508a-a6bc-864b2829c622\"\n */\nexport const _AWS_REQUEST_ID = 'aws.request.id';\n\n/**\n * Type for {@link _AWS_REQUEST_ID} aws.request.id\n */\nexport type _AWS_REQUEST_ID_TYPE = string;\n\n// Path: model/attributes/aws/aws__s3__bucket.json\n\n/**\n * The S3 bucket name the request refers to. `aws.s3.bucket`\n *\n * Attribute Value Type: `string` {@link AWS_S3_BUCKET_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"ot-demo-test\"\n */\nexport const AWS_S3_BUCKET = 'aws.s3.bucket';\n\n/**\n * Type for {@link AWS_S3_BUCKET} aws.s3.bucket\n */\nexport type AWS_S3_BUCKET_TYPE = string;\n\n// Path: model/attributes/aws/aws__secretsmanager__secret__arn.json\n\n/**\n * The ARN of the Secret stored in Secrets Manager. `aws.secretsmanager.secret.arn`\n *\n * Attribute Value Type: `string` {@link AWS_SECRETSMANAGER_SECRET_ARN_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"arn:aws:secretsmanager:us-east-1:123456789012:secret:SecretName-6RandomCharacters\"\n */\nexport const AWS_SECRETSMANAGER_SECRET_ARN = 'aws.secretsmanager.secret.arn';\n\n/**\n * Type for {@link AWS_SECRETSMANAGER_SECRET_ARN} aws.secretsmanager.secret.arn\n */\nexport type AWS_SECRETSMANAGER_SECRET_ARN_TYPE = string;\n\n// Path: model/attributes/aws/aws__sns__topic__arn.json\n\n/**\n * The ARN of the AWS SNS Topic. An Amazon SNS topic is a logical access point that acts as a communication channel. `aws.sns.topic.arn`\n *\n * Attribute Value Type: `string` {@link AWS_SNS_TOPIC_ARN_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"arn:aws:sns:us-east-1:123456789012:mystack-mytopic-NZJ5JSMVGFIE\"\n */\nexport const AWS_SNS_TOPIC_ARN = 'aws.sns.topic.arn';\n\n/**\n * Type for {@link AWS_SNS_TOPIC_ARN} aws.sns.topic.arn\n */\nexport type AWS_SNS_TOPIC_ARN_TYPE = string;\n\n// Path: model/attributes/aws/aws__step_functions__activity__arn.json\n\n/**\n * The ARN of the AWS Step Functions Activity. `aws.step_functions.activity.arn`\n *\n * Attribute Value Type: `string` {@link AWS_STEP_FUNCTIONS_ACTIVITY_ARN_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"arn:aws:states:us-east-1:123456789012:activity:get-greeting\"\n */\nexport const AWS_STEP_FUNCTIONS_ACTIVITY_ARN = 'aws.step_functions.activity.arn';\n\n/**\n * Type for {@link AWS_STEP_FUNCTIONS_ACTIVITY_ARN} aws.step_functions.activity.arn\n */\nexport type AWS_STEP_FUNCTIONS_ACTIVITY_ARN_TYPE = string;\n\n// Path: model/attributes/aws/aws__step_functions__state_machine__arn.json\n\n/**\n * The ARN of the AWS Step Functions State Machine. `aws.step_functions.state_machine.arn`\n *\n * Attribute Value Type: `string` {@link AWS_STEP_FUNCTIONS_STATE_MACHINE_ARN_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"arn:aws:states:us-east-1:123456789012:stateMachine:myStateMachine:1\"\n */\nexport const AWS_STEP_FUNCTIONS_STATE_MACHINE_ARN = 'aws.step_functions.state_machine.arn';\n\n/**\n * Type for {@link AWS_STEP_FUNCTIONS_STATE_MACHINE_ARN} aws.step_functions.state_machine.arn\n */\nexport type AWS_STEP_FUNCTIONS_STATE_MACHINE_ARN_TYPE = string;\n\n// Path: model/attributes/blocked_main_thread.json\n\n/**\n * Whether the main thread was blocked by the span. `blocked_main_thread`\n *\n * Attribute Value Type: `boolean` {@link BLOCKED_MAIN_THREAD_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example true\n */\nexport const BLOCKED_MAIN_THREAD = 'blocked_main_thread';\n\n/**\n * Type for {@link BLOCKED_MAIN_THREAD} blocked_main_thread\n */\nexport type BLOCKED_MAIN_THREAD_TYPE = boolean;\n\n// Path: model/attributes/browser/browser__name.json\n\n/**\n * The name of the browser. `browser.name`\n *\n * Attribute Value Type: `string` {@link BROWSER_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link SENTRY_BROWSER_NAME} `sentry.browser.name`\n *\n * @example \"Chrome\"\n */\nexport const BROWSER_NAME = 'browser.name';\n\n/**\n * Type for {@link BROWSER_NAME} browser.name\n */\nexport type BROWSER_NAME_TYPE = string;\n\n// Path: model/attributes/browser/browser__performance__navigation__activation_start.json\n\n/**\n * The time between initiating a navigation to a page and the browser activating the page `browser.performance.navigation.activation_start`\n *\n * Attribute Value Type: `number` {@link BROWSER_PERFORMANCE_NAVIGATION_ACTIVATION_START_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link PERFORMANCE_ACTIVATIONSTART} `performance.activationStart`\n *\n * @example 1.983\n */\nexport const BROWSER_PERFORMANCE_NAVIGATION_ACTIVATION_START = 'browser.performance.navigation.activation_start';\n\n/**\n * Type for {@link BROWSER_PERFORMANCE_NAVIGATION_ACTIVATION_START} browser.performance.navigation.activation_start\n */\nexport type BROWSER_PERFORMANCE_NAVIGATION_ACTIVATION_START_TYPE = number;\n\n// Path: model/attributes/browser/browser__performance__time_origin.json\n\n/**\n * The browser's performance.timeOrigin timestamp representing the time when the pageload was initiated `browser.performance.time_origin`\n *\n * Attribute Value Type: `number` {@link BROWSER_PERFORMANCE_TIME_ORIGIN_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link PERFORMANCE_TIMEORIGIN} `performance.timeOrigin`\n *\n * @example 1776185678.886\n */\nexport const BROWSER_PERFORMANCE_TIME_ORIGIN = 'browser.performance.time_origin';\n\n/**\n * Type for {@link BROWSER_PERFORMANCE_TIME_ORIGIN} browser.performance.time_origin\n */\nexport type BROWSER_PERFORMANCE_TIME_ORIGIN_TYPE = number;\n\n// Path: model/attributes/browser/browser__report__type.json\n\n/**\n * A browser report sent via reporting API.. `browser.report.type`\n *\n * Attribute Value Type: `string` {@link BROWSER_REPORT_TYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"network-error\"\n */\nexport const BROWSER_REPORT_TYPE = 'browser.report.type';\n\n/**\n * Type for {@link BROWSER_REPORT_TYPE} browser.report.type\n */\nexport type BROWSER_REPORT_TYPE_TYPE = string;\n\n// Path: model/attributes/browser/browser__script__invoker.json\n\n/**\n * How a script was called in the browser. `browser.script.invoker`\n *\n * Attribute Value Type: `string` {@link BROWSER_SCRIPT_INVOKER_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"Window.requestAnimationFrame\"\n */\nexport const BROWSER_SCRIPT_INVOKER = 'browser.script.invoker';\n\n/**\n * Type for {@link BROWSER_SCRIPT_INVOKER} browser.script.invoker\n */\nexport type BROWSER_SCRIPT_INVOKER_TYPE = string;\n\n// Path: model/attributes/browser/browser__script__invoker_type.json\n\n/**\n * Browser script entry point type. `browser.script.invoker_type`\n *\n * Attribute Value Type: `string` {@link BROWSER_SCRIPT_INVOKER_TYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"event-listener\"\n */\nexport const BROWSER_SCRIPT_INVOKER_TYPE = 'browser.script.invoker_type';\n\n/**\n * Type for {@link BROWSER_SCRIPT_INVOKER_TYPE} browser.script.invoker_type\n */\nexport type BROWSER_SCRIPT_INVOKER_TYPE_TYPE = string;\n\n// Path: model/attributes/browser/browser__script__source_char_position.json\n\n/**\n * A number representing the script character position of the script. `browser.script.source_char_position`\n *\n * Attribute Value Type: `number` {@link BROWSER_SCRIPT_SOURCE_CHAR_POSITION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 678\n */\nexport const BROWSER_SCRIPT_SOURCE_CHAR_POSITION = 'browser.script.source_char_position';\n\n/**\n * Type for {@link BROWSER_SCRIPT_SOURCE_CHAR_POSITION} browser.script.source_char_position\n */\nexport type BROWSER_SCRIPT_SOURCE_CHAR_POSITION_TYPE = number;\n\n// Path: model/attributes/browser/browser__version.json\n\n/**\n * The version of the browser. `browser.version`\n *\n * Attribute Value Type: `string` {@link BROWSER_VERSION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link SENTRY_BROWSER_VERSION} `sentry.browser.version`\n *\n * @example \"120.0.6099.130\"\n */\nexport const BROWSER_VERSION = 'browser.version';\n\n/**\n * Type for {@link BROWSER_VERSION} browser.version\n */\nexport type BROWSER_VERSION_TYPE = string;\n\n// Path: model/attributes/browser/browser__web_vital__cls__report_event.json\n\n/**\n * The event that caused the SDK to report CLS (pagehide or navigation) `browser.web_vital.cls.report_event`\n *\n * Attribute Value Type: `string` {@link BROWSER_WEB_VITAL_CLS_REPORT_EVENT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"navigation\"\n */\nexport const BROWSER_WEB_VITAL_CLS_REPORT_EVENT = 'browser.web_vital.cls.report_event';\n\n/**\n * Type for {@link BROWSER_WEB_VITAL_CLS_REPORT_EVENT} browser.web_vital.cls.report_event\n */\nexport type BROWSER_WEB_VITAL_CLS_REPORT_EVENT_TYPE = string;\n\n// Path: model/attributes/browser/browser__web_vital__cls__source__[key].json\n\n/**\n * The HTML elements or components responsible for the layout shift. is a numeric index from 1 to N `browser.web_vital.cls.source.`\n *\n * Attribute Value Type: `string` {@link BROWSER_WEB_VITAL_CLS_SOURCE_KEY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Has Dynamic Suffix: true\n *\n * Aliases: {@link CLS_SOURCE_KEY} `cls.source.`\n *\n * @example \"body > div#app\"\n */\nexport const BROWSER_WEB_VITAL_CLS_SOURCE_KEY = 'browser.web_vital.cls.source.';\n\n/**\n * Base key for {@link BROWSER_WEB_VITAL_CLS_SOURCE_KEY}. Use with a dynamic suffix, e.g. `${BROWSER_WEB_VITAL_CLS_SOURCE_KEY_BASE}.${key}`.\n */\nexport const BROWSER_WEB_VITAL_CLS_SOURCE_KEY_BASE = 'browser.web_vital.cls.source';\n\n/**\n * Type for {@link BROWSER_WEB_VITAL_CLS_SOURCE_KEY} browser.web_vital.cls.source.\n */\nexport type BROWSER_WEB_VITAL_CLS_SOURCE_KEY_TYPE = string;\n\n// Path: model/attributes/browser/browser__web_vital__cls__value.json\n\n/**\n * The value of the recorded Cumulative Layout Shift (CLS) web vital `browser.web_vital.cls.value`\n *\n * Attribute Value Type: `number` {@link BROWSER_WEB_VITAL_CLS_VALUE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link CLS} `cls`\n *\n * @example 0.2361\n */\nexport const BROWSER_WEB_VITAL_CLS_VALUE = 'browser.web_vital.cls.value';\n\n/**\n * Type for {@link BROWSER_WEB_VITAL_CLS_VALUE} browser.web_vital.cls.value\n */\nexport type BROWSER_WEB_VITAL_CLS_VALUE_TYPE = number;\n\n// Path: model/attributes/browser/browser__web_vital__fcp__value.json\n\n/**\n * The time it takes for the browser to render the first piece of meaningful content on the screen `browser.web_vital.fcp.value`\n *\n * Attribute Value Type: `number` {@link BROWSER_WEB_VITAL_FCP_VALUE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link FCP} `fcp`\n *\n * @example 547.6951\n */\nexport const BROWSER_WEB_VITAL_FCP_VALUE = 'browser.web_vital.fcp.value';\n\n/**\n * Type for {@link BROWSER_WEB_VITAL_FCP_VALUE} browser.web_vital.fcp.value\n */\nexport type BROWSER_WEB_VITAL_FCP_VALUE_TYPE = number;\n\n// Path: model/attributes/browser/browser__web_vital__fp__value.json\n\n/**\n * The time in milliseconds it takes for the browser to render the first pixel on the screen `browser.web_vital.fp.value`\n *\n * Attribute Value Type: `number` {@link BROWSER_WEB_VITAL_FP_VALUE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link FP} `fp`\n *\n * @example 477.1926\n */\nexport const BROWSER_WEB_VITAL_FP_VALUE = 'browser.web_vital.fp.value';\n\n/**\n * Type for {@link BROWSER_WEB_VITAL_FP_VALUE} browser.web_vital.fp.value\n */\nexport type BROWSER_WEB_VITAL_FP_VALUE_TYPE = number;\n\n// Path: model/attributes/browser/browser__web_vital__inp__value.json\n\n/**\n * The value of the recorded Interaction to Next Paint (INP) web vital `browser.web_vital.inp.value`\n *\n * Attribute Value Type: `number` {@link BROWSER_WEB_VITAL_INP_VALUE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link INP} `inp`\n *\n * @example 200\n */\nexport const BROWSER_WEB_VITAL_INP_VALUE = 'browser.web_vital.inp.value';\n\n/**\n * Type for {@link BROWSER_WEB_VITAL_INP_VALUE} browser.web_vital.inp.value\n */\nexport type BROWSER_WEB_VITAL_INP_VALUE_TYPE = number;\n\n// Path: model/attributes/browser/browser__web_vital__lcp__element.json\n\n/**\n * The HTML element selector or component name for which LCP was reported `browser.web_vital.lcp.element`\n *\n * Attribute Value Type: `string` {@link BROWSER_WEB_VITAL_LCP_ELEMENT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link LCP_ELEMENT} `lcp.element`\n *\n * @example \"body > div#app > div#container > div\"\n */\nexport const BROWSER_WEB_VITAL_LCP_ELEMENT = 'browser.web_vital.lcp.element';\n\n/**\n * Type for {@link BROWSER_WEB_VITAL_LCP_ELEMENT} browser.web_vital.lcp.element\n */\nexport type BROWSER_WEB_VITAL_LCP_ELEMENT_TYPE = string;\n\n// Path: model/attributes/browser/browser__web_vital__lcp__id.json\n\n/**\n * The id of the dom element responsible for the largest contentful paint `browser.web_vital.lcp.id`\n *\n * Attribute Value Type: `string` {@link BROWSER_WEB_VITAL_LCP_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link LCP_ID} `lcp.id`\n *\n * @example \"#gero\"\n */\nexport const BROWSER_WEB_VITAL_LCP_ID = 'browser.web_vital.lcp.id';\n\n/**\n * Type for {@link BROWSER_WEB_VITAL_LCP_ID} browser.web_vital.lcp.id\n */\nexport type BROWSER_WEB_VITAL_LCP_ID_TYPE = string;\n\n// Path: model/attributes/browser/browser__web_vital__lcp__load_time.json\n\n/**\n * The time it took for the LCP element to be loaded `browser.web_vital.lcp.load_time`\n *\n * Attribute Value Type: `number` {@link BROWSER_WEB_VITAL_LCP_LOAD_TIME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link LCP_LOADTIME} `lcp.loadTime`\n *\n * @example 1402\n */\nexport const BROWSER_WEB_VITAL_LCP_LOAD_TIME = 'browser.web_vital.lcp.load_time';\n\n/**\n * Type for {@link BROWSER_WEB_VITAL_LCP_LOAD_TIME} browser.web_vital.lcp.load_time\n */\nexport type BROWSER_WEB_VITAL_LCP_LOAD_TIME_TYPE = number;\n\n// Path: model/attributes/browser/browser__web_vital__lcp__render_time.json\n\n/**\n * The time it took for the LCP element to be rendered `browser.web_vital.lcp.render_time`\n *\n * Attribute Value Type: `number` {@link BROWSER_WEB_VITAL_LCP_RENDER_TIME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link LCP_RENDERTIME} `lcp.renderTime`\n *\n * @example 1685\n */\nexport const BROWSER_WEB_VITAL_LCP_RENDER_TIME = 'browser.web_vital.lcp.render_time';\n\n/**\n * Type for {@link BROWSER_WEB_VITAL_LCP_RENDER_TIME} browser.web_vital.lcp.render_time\n */\nexport type BROWSER_WEB_VITAL_LCP_RENDER_TIME_TYPE = number;\n\n// Path: model/attributes/browser/browser__web_vital__lcp__report_event.json\n\n/**\n * The event that caused the SDK to report LCP (pagehide or navigation) `browser.web_vital.lcp.report_event`\n *\n * Attribute Value Type: `string` {@link BROWSER_WEB_VITAL_LCP_REPORT_EVENT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"pagehide\"\n */\nexport const BROWSER_WEB_VITAL_LCP_REPORT_EVENT = 'browser.web_vital.lcp.report_event';\n\n/**\n * Type for {@link BROWSER_WEB_VITAL_LCP_REPORT_EVENT} browser.web_vital.lcp.report_event\n */\nexport type BROWSER_WEB_VITAL_LCP_REPORT_EVENT_TYPE = string;\n\n// Path: model/attributes/browser/browser__web_vital__lcp__size.json\n\n/**\n * The size of the largest contentful paint element `browser.web_vital.lcp.size`\n *\n * Attribute Value Type: `number` {@link BROWSER_WEB_VITAL_LCP_SIZE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link LCP_SIZE} `lcp.size`\n *\n * @example 1024\n */\nexport const BROWSER_WEB_VITAL_LCP_SIZE = 'browser.web_vital.lcp.size';\n\n/**\n * Type for {@link BROWSER_WEB_VITAL_LCP_SIZE} browser.web_vital.lcp.size\n */\nexport type BROWSER_WEB_VITAL_LCP_SIZE_TYPE = number;\n\n// Path: model/attributes/browser/browser__web_vital__lcp__url.json\n\n/**\n * The url of the dom element responsible for the largest contentful paint `browser.web_vital.lcp.url`\n *\n * Attribute Value Type: `string` {@link BROWSER_WEB_VITAL_LCP_URL_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link LCP_URL} `lcp.url`\n *\n * @example \"https://example.com/static/img.png\"\n */\nexport const BROWSER_WEB_VITAL_LCP_URL = 'browser.web_vital.lcp.url';\n\n/**\n * Type for {@link BROWSER_WEB_VITAL_LCP_URL} browser.web_vital.lcp.url\n */\nexport type BROWSER_WEB_VITAL_LCP_URL_TYPE = string;\n\n// Path: model/attributes/browser/browser__web_vital__lcp__value.json\n\n/**\n * The value of the recorded Largest Contentful Paint (LCP) web vital `browser.web_vital.lcp.value`\n *\n * Attribute Value Type: `number` {@link BROWSER_WEB_VITAL_LCP_VALUE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link LCP} `lcp`\n *\n * @example 2500\n */\nexport const BROWSER_WEB_VITAL_LCP_VALUE = 'browser.web_vital.lcp.value';\n\n/**\n * Type for {@link BROWSER_WEB_VITAL_LCP_VALUE} browser.web_vital.lcp.value\n */\nexport type BROWSER_WEB_VITAL_LCP_VALUE_TYPE = number;\n\n// Path: model/attributes/browser/browser__web_vital__ttfb__request_time.json\n\n/**\n * 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 `browser.web_vital.ttfb.request_time`\n *\n * Attribute Value Type: `number` {@link BROWSER_WEB_VITAL_TTFB_REQUEST_TIME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link TTFB_REQUESTTIME} `ttfb.requestTime`\n *\n * @example 1554.5814\n */\nexport const BROWSER_WEB_VITAL_TTFB_REQUEST_TIME = 'browser.web_vital.ttfb.request_time';\n\n/**\n * Type for {@link BROWSER_WEB_VITAL_TTFB_REQUEST_TIME} browser.web_vital.ttfb.request_time\n */\nexport type BROWSER_WEB_VITAL_TTFB_REQUEST_TIME_TYPE = number;\n\n// Path: model/attributes/browser/browser__web_vital__ttfb__value.json\n\n/**\n * The value of the recorded Time To First Byte (TTFB) web vital in Milliseconds `browser.web_vital.ttfb.value`\n *\n * Attribute Value Type: `number` {@link BROWSER_WEB_VITAL_TTFB_VALUE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link TTFB} `ttfb`\n *\n * @example 194.3322\n */\nexport const BROWSER_WEB_VITAL_TTFB_VALUE = 'browser.web_vital.ttfb.value';\n\n/**\n * Type for {@link BROWSER_WEB_VITAL_TTFB_VALUE} browser.web_vital.ttfb.value\n */\nexport type BROWSER_WEB_VITAL_TTFB_VALUE_TYPE = number;\n\n// Path: model/attributes/cache/cache__hit.json\n\n/**\n * If the cache was hit during this span. `cache.hit`\n *\n * Attribute Value Type: `boolean` {@link CACHE_HIT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example true\n */\nexport const CACHE_HIT = 'cache.hit';\n\n/**\n * Type for {@link CACHE_HIT} cache.hit\n */\nexport type CACHE_HIT_TYPE = boolean;\n\n// Path: model/attributes/cache/cache__item_size.json\n\n/**\n * The size of the requested item in the cache. In bytes. `cache.item_size`\n *\n * Attribute Value Type: `number` {@link CACHE_ITEM_SIZE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 58\n */\nexport const CACHE_ITEM_SIZE = 'cache.item_size';\n\n/**\n * Type for {@link CACHE_ITEM_SIZE} cache.item_size\n */\nexport type CACHE_ITEM_SIZE_TYPE = number;\n\n// Path: model/attributes/cache/cache__key.json\n\n/**\n * The key of the cache accessed. `cache.key`\n *\n * Attribute Value Type: `Array` {@link CACHE_KEY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example [\"my-cache-key\",\"my-other-cache-key\"]\n */\nexport const CACHE_KEY = 'cache.key';\n\n/**\n * Type for {@link CACHE_KEY} cache.key\n */\nexport type CACHE_KEY_TYPE = Array;\n\n// Path: model/attributes/cache/cache__operation.json\n\n/**\n * The operation being performed on the cache. `cache.operation`\n *\n * Attribute Value Type: `string` {@link CACHE_OPERATION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"get\"\n */\nexport const CACHE_OPERATION = 'cache.operation';\n\n/**\n * Type for {@link CACHE_OPERATION} cache.operation\n */\nexport type CACHE_OPERATION_TYPE = string;\n\n// Path: model/attributes/cache/cache__ttl.json\n\n/**\n * The ttl of the cache in seconds `cache.ttl`\n *\n * Attribute Value Type: `number` {@link CACHE_TTL_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 120\n */\nexport const CACHE_TTL = 'cache.ttl';\n\n/**\n * Type for {@link CACHE_TTL} cache.ttl\n */\nexport type CACHE_TTL_TYPE = number;\n\n// Path: model/attributes/cache/cache__write.json\n\n/**\n * If the cache operation resulted in a write to the cache. `cache.write`\n *\n * Attribute Value Type: `boolean` {@link CACHE_WRITE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example true\n */\nexport const CACHE_WRITE = 'cache.write';\n\n/**\n * Type for {@link CACHE_WRITE} cache.write\n */\nexport type CACHE_WRITE_TYPE = boolean;\n\n// Path: model/attributes/channel.json\n\n/**\n * The channel name that is being used. `channel`\n *\n * Attribute Value Type: `string` {@link CHANNEL_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"mail\"\n */\nexport const CHANNEL = 'channel';\n\n/**\n * Type for {@link CHANNEL} channel\n */\nexport type CHANNEL_TYPE = string;\n\n// Path: model/attributes/client/client__address.json\n\n/**\n * Client address - domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name. `client.address`\n *\n * Attribute Value Type: `string` {@link CLIENT_ADDRESS_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link HTTP_CLIENT_IP} `http.client_ip`\n *\n * @example \"example.com\"\n */\nexport const CLIENT_ADDRESS = 'client.address';\n\n/**\n * Type for {@link CLIENT_ADDRESS} client.address\n */\nexport type CLIENT_ADDRESS_TYPE = string;\n\n// Path: model/attributes/client/client__port.json\n\n/**\n * Client port number. `client.port`\n *\n * Attribute Value Type: `number` {@link CLIENT_PORT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example 5432\n */\nexport const CLIENT_PORT = 'client.port';\n\n/**\n * Type for {@link CLIENT_PORT} client.port\n */\nexport type CLIENT_PORT_TYPE = number;\n\n// Path: model/attributes/cloudflare/cloudflare__d1__duration.json\n\n/**\n * The duration of a Cloudflare D1 operation. `cloudflare.d1.duration`\n *\n * Attribute Value Type: `number` {@link CLOUDFLARE_D1_DURATION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 543\n */\nexport const CLOUDFLARE_D1_DURATION = 'cloudflare.d1.duration';\n\n/**\n * Type for {@link CLOUDFLARE_D1_DURATION} cloudflare.d1.duration\n */\nexport type CLOUDFLARE_D1_DURATION_TYPE = number;\n\n// Path: model/attributes/cloudflare/cloudflare__d1__query_type.json\n\n/**\n * The type of query executed in a Cloudflare D1 operation `cloudflare.d1.query_type`\n *\n * Attribute Value Type: `string` {@link CLOUDFLARE_D1_QUERY_TYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link DB_OPERATION_NAME} `db.operation.name`, {@link DB_OPERATION} `db.operation`\n *\n * @deprecated Use {@link DB_OPERATION_NAME} (db.operation.name) instead\n * @example \"run\"\n */\nexport const CLOUDFLARE_D1_QUERY_TYPE = 'cloudflare.d1.query_type';\n\n/**\n * Type for {@link CLOUDFLARE_D1_QUERY_TYPE} cloudflare.d1.query_type\n */\nexport type CLOUDFLARE_D1_QUERY_TYPE_TYPE = string;\n\n// Path: model/attributes/cloudflare/cloudflare__d1__rows_read.json\n\n/**\n * The number of rows read in a Cloudflare D1 operation. `cloudflare.d1.rows_read`\n *\n * Attribute Value Type: `number` {@link CLOUDFLARE_D1_ROWS_READ_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 12\n */\nexport const CLOUDFLARE_D1_ROWS_READ = 'cloudflare.d1.rows_read';\n\n/**\n * Type for {@link CLOUDFLARE_D1_ROWS_READ} cloudflare.d1.rows_read\n */\nexport type CLOUDFLARE_D1_ROWS_READ_TYPE = number;\n\n// Path: model/attributes/cloudflare/cloudflare__d1__rows_written.json\n\n/**\n * The number of rows written in a Cloudflare D1 operation. `cloudflare.d1.rows_written`\n *\n * Attribute Value Type: `number` {@link CLOUDFLARE_D1_ROWS_WRITTEN_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 12\n */\nexport const CLOUDFLARE_D1_ROWS_WRITTEN = 'cloudflare.d1.rows_written';\n\n/**\n * Type for {@link CLOUDFLARE_D1_ROWS_WRITTEN} cloudflare.d1.rows_written\n */\nexport type CLOUDFLARE_D1_ROWS_WRITTEN_TYPE = number;\n\n// Path: model/attributes/cloudflare/cloudflare__durable_object__query__bindings.json\n\n/**\n * The number of bound parameters passed to the SQL exec call. `cloudflare.durable_object.query.bindings`\n *\n * Attribute Value Type: `number` {@link CLOUDFLARE_DURABLE_OBJECT_QUERY_BINDINGS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 2\n */\nexport const CLOUDFLARE_DURABLE_OBJECT_QUERY_BINDINGS = 'cloudflare.durable_object.query.bindings';\n\n/**\n * Type for {@link CLOUDFLARE_DURABLE_OBJECT_QUERY_BINDINGS} cloudflare.durable_object.query.bindings\n */\nexport type CLOUDFLARE_DURABLE_OBJECT_QUERY_BINDINGS_TYPE = number;\n\n// Path: model/attributes/cloudflare/cloudflare__durable_object__response__rows_read.json\n\n/**\n * The number of rows read by a Cloudflare Durable Object SQL operation. `cloudflare.durable_object.response.rows_read`\n *\n * Attribute Value Type: `number` {@link CLOUDFLARE_DURABLE_OBJECT_RESPONSE_ROWS_READ_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 12\n */\nexport const CLOUDFLARE_DURABLE_OBJECT_RESPONSE_ROWS_READ = 'cloudflare.durable_object.response.rows_read';\n\n/**\n * Type for {@link CLOUDFLARE_DURABLE_OBJECT_RESPONSE_ROWS_READ} cloudflare.durable_object.response.rows_read\n */\nexport type CLOUDFLARE_DURABLE_OBJECT_RESPONSE_ROWS_READ_TYPE = number;\n\n// Path: model/attributes/cloudflare/cloudflare__durable_object__response__rows_written.json\n\n/**\n * The number of rows written by a Cloudflare Durable Object SQL operation. `cloudflare.durable_object.response.rows_written`\n *\n * Attribute Value Type: `number` {@link CLOUDFLARE_DURABLE_OBJECT_RESPONSE_ROWS_WRITTEN_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 1\n */\nexport const CLOUDFLARE_DURABLE_OBJECT_RESPONSE_ROWS_WRITTEN = 'cloudflare.durable_object.response.rows_written';\n\n/**\n * Type for {@link CLOUDFLARE_DURABLE_OBJECT_RESPONSE_ROWS_WRITTEN} cloudflare.durable_object.response.rows_written\n */\nexport type CLOUDFLARE_DURABLE_OBJECT_RESPONSE_ROWS_WRITTEN_TYPE = number;\n\n// Path: model/attributes/cloudflare/cloudflare__r2__bucket.json\n\n/**\n * The name of the Cloudflare R2 bucket binding `cloudflare.r2.bucket`\n *\n * Attribute Value Type: `string` {@link CLOUDFLARE_R2_BUCKET_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"MY_BUCKET\"\n */\nexport const CLOUDFLARE_R2_BUCKET = 'cloudflare.r2.bucket';\n\n/**\n * Type for {@link CLOUDFLARE_R2_BUCKET} cloudflare.r2.bucket\n */\nexport type CLOUDFLARE_R2_BUCKET_TYPE = string;\n\n// Path: model/attributes/cloudflare/cloudflare__r2__operation.json\n\n/**\n * The R2 API operation being performed `cloudflare.r2.operation`\n *\n * Attribute Value Type: `string` {@link CLOUDFLARE_R2_OPERATION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"GetObject\"\n */\nexport const CLOUDFLARE_R2_OPERATION = 'cloudflare.r2.operation';\n\n/**\n * Type for {@link CLOUDFLARE_R2_OPERATION} cloudflare.r2.operation\n */\nexport type CLOUDFLARE_R2_OPERATION_TYPE = string;\n\n// Path: model/attributes/cloudflare/cloudflare__r2__request__delimiter.json\n\n/**\n * The delimiter used to group objects in an R2 list operation `cloudflare.r2.request.delimiter`\n *\n * Attribute Value Type: `string` {@link CLOUDFLARE_R2_REQUEST_DELIMITER_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"/\"\n */\nexport const CLOUDFLARE_R2_REQUEST_DELIMITER = 'cloudflare.r2.request.delimiter';\n\n/**\n * Type for {@link CLOUDFLARE_R2_REQUEST_DELIMITER} cloudflare.r2.request.delimiter\n */\nexport type CLOUDFLARE_R2_REQUEST_DELIMITER_TYPE = string;\n\n// Path: model/attributes/cloudflare/cloudflare__r2__request__key.json\n\n/**\n * The object key used in the R2 operation `cloudflare.r2.request.key`\n *\n * Attribute Value Type: `string` {@link CLOUDFLARE_R2_REQUEST_KEY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"my-file.txt\"\n */\nexport const CLOUDFLARE_R2_REQUEST_KEY = 'cloudflare.r2.request.key';\n\n/**\n * Type for {@link CLOUDFLARE_R2_REQUEST_KEY} cloudflare.r2.request.key\n */\nexport type CLOUDFLARE_R2_REQUEST_KEY_TYPE = string;\n\n// Path: model/attributes/cloudflare/cloudflare__r2__request__part_number.json\n\n/**\n * The part number in a multipart upload operation `cloudflare.r2.request.part_number`\n *\n * Attribute Value Type: `number` {@link CLOUDFLARE_R2_REQUEST_PART_NUMBER_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 1\n */\nexport const CLOUDFLARE_R2_REQUEST_PART_NUMBER = 'cloudflare.r2.request.part_number';\n\n/**\n * Type for {@link CLOUDFLARE_R2_REQUEST_PART_NUMBER} cloudflare.r2.request.part_number\n */\nexport type CLOUDFLARE_R2_REQUEST_PART_NUMBER_TYPE = number;\n\n// Path: model/attributes/cloudflare/cloudflare__r2__request__prefix.json\n\n/**\n * The prefix used to filter objects in an R2 list operation `cloudflare.r2.request.prefix`\n *\n * Attribute Value Type: `string` {@link CLOUDFLARE_R2_REQUEST_PREFIX_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"images/\"\n */\nexport const CLOUDFLARE_R2_REQUEST_PREFIX = 'cloudflare.r2.request.prefix';\n\n/**\n * Type for {@link CLOUDFLARE_R2_REQUEST_PREFIX} cloudflare.r2.request.prefix\n */\nexport type CLOUDFLARE_R2_REQUEST_PREFIX_TYPE = string;\n\n// Path: model/attributes/cloudflare/cloudflare__workflow__attempt.json\n\n/**\n * The current attempt number for a Cloudflare Workflow step `cloudflare.workflow.attempt`\n *\n * Attribute Value Type: `number` {@link CLOUDFLARE_WORKFLOW_ATTEMPT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 1\n */\nexport const CLOUDFLARE_WORKFLOW_ATTEMPT = 'cloudflare.workflow.attempt';\n\n/**\n * Type for {@link CLOUDFLARE_WORKFLOW_ATTEMPT} cloudflare.workflow.attempt\n */\nexport type CLOUDFLARE_WORKFLOW_ATTEMPT_TYPE = number;\n\n// Path: model/attributes/cloudflare/cloudflare__workflow__retries__backoff.json\n\n/**\n * The backoff strategy for Cloudflare Workflow step retries `cloudflare.workflow.retries.backoff`\n *\n * Attribute Value Type: `string` {@link CLOUDFLARE_WORKFLOW_RETRIES_BACKOFF_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"exponential\"\n */\nexport const CLOUDFLARE_WORKFLOW_RETRIES_BACKOFF = 'cloudflare.workflow.retries.backoff';\n\n/**\n * Type for {@link CLOUDFLARE_WORKFLOW_RETRIES_BACKOFF} cloudflare.workflow.retries.backoff\n */\nexport type CLOUDFLARE_WORKFLOW_RETRIES_BACKOFF_TYPE = string;\n\n// Path: model/attributes/cloudflare/cloudflare__workflow__retries__delay.json\n\n/**\n * The delay between Cloudflare Workflow step retries `cloudflare.workflow.retries.delay`\n *\n * Attribute Value Type: `string` {@link CLOUDFLARE_WORKFLOW_RETRIES_DELAY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"5 seconds\"\n */\nexport const CLOUDFLARE_WORKFLOW_RETRIES_DELAY = 'cloudflare.workflow.retries.delay';\n\n/**\n * Type for {@link CLOUDFLARE_WORKFLOW_RETRIES_DELAY} cloudflare.workflow.retries.delay\n */\nexport type CLOUDFLARE_WORKFLOW_RETRIES_DELAY_TYPE = string;\n\n// Path: model/attributes/cloudflare/cloudflare__workflow__retries__limit.json\n\n/**\n * The maximum number of retries for a Cloudflare Workflow step `cloudflare.workflow.retries.limit`\n *\n * Attribute Value Type: `number` {@link CLOUDFLARE_WORKFLOW_RETRIES_LIMIT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 3\n */\nexport const CLOUDFLARE_WORKFLOW_RETRIES_LIMIT = 'cloudflare.workflow.retries.limit';\n\n/**\n * Type for {@link CLOUDFLARE_WORKFLOW_RETRIES_LIMIT} cloudflare.workflow.retries.limit\n */\nexport type CLOUDFLARE_WORKFLOW_RETRIES_LIMIT_TYPE = number;\n\n// Path: model/attributes/cloudflare/cloudflare__workflow__timeout.json\n\n/**\n * The timeout duration for a Cloudflare Workflow step `cloudflare.workflow.timeout`\n *\n * Attribute Value Type: `string` {@link CLOUDFLARE_WORKFLOW_TIMEOUT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"1 minute\"\n */\nexport const CLOUDFLARE_WORKFLOW_TIMEOUT = 'cloudflare.workflow.timeout';\n\n/**\n * Type for {@link CLOUDFLARE_WORKFLOW_TIMEOUT} cloudflare.workflow.timeout\n */\nexport type CLOUDFLARE_WORKFLOW_TIMEOUT_TYPE = string;\n\n// Path: model/attributes/cloud/cloud__account__id.json\n\n/**\n * The cloud account ID the resource is assigned to `cloud.account.id`\n *\n * Attribute Value Type: `string` {@link CLOUD_ACCOUNT_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"123456789012\"\n */\nexport const CLOUD_ACCOUNT_ID = 'cloud.account.id';\n\n/**\n * Type for {@link CLOUD_ACCOUNT_ID} cloud.account.id\n */\nexport type CLOUD_ACCOUNT_ID_TYPE = string;\n\n// Path: model/attributes/cloud/cloud__availability_zone.json\n\n/**\n * Cloud regions often have multiple, isolated locations known as zones to increase availability `cloud.availability_zone`\n *\n * Attribute Value Type: `string` {@link CLOUD_AVAILABILITY_ZONE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"us-east-1c\"\n */\nexport const CLOUD_AVAILABILITY_ZONE = 'cloud.availability_zone';\n\n/**\n * Type for {@link CLOUD_AVAILABILITY_ZONE} cloud.availability_zone\n */\nexport type CLOUD_AVAILABILITY_ZONE_TYPE = string;\n\n// Path: model/attributes/cloud/cloud__platform.json\n\n/**\n * The cloud platform in use `cloud.platform`\n *\n * Attribute Value Type: `string` {@link CLOUD_PLATFORM_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"aws_lambda\"\n */\nexport const CLOUD_PLATFORM = 'cloud.platform';\n\n/**\n * Type for {@link CLOUD_PLATFORM} cloud.platform\n */\nexport type CLOUD_PLATFORM_TYPE = string;\n\n// Path: model/attributes/cloud/cloud__provider.json\n\n/**\n * Name of the cloud provider `cloud.provider`\n *\n * Attribute Value Type: `string` {@link CLOUD_PROVIDER_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"aws\"\n */\nexport const CLOUD_PROVIDER = 'cloud.provider';\n\n/**\n * Type for {@link CLOUD_PROVIDER} cloud.provider\n */\nexport type CLOUD_PROVIDER_TYPE = string;\n\n// Path: model/attributes/cloud/cloud__region.json\n\n/**\n * The geographical region the resource is running `cloud.region`\n *\n * Attribute Value Type: `string` {@link CLOUD_REGION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"us-east-1\"\n */\nexport const CLOUD_REGION = 'cloud.region';\n\n/**\n * Type for {@link CLOUD_REGION} cloud.region\n */\nexport type CLOUD_REGION_TYPE = string;\n\n// Path: model/attributes/cloud/cloud__resource_id.json\n\n/**\n * Cloud provider-specific native identifier of the monitored cloud resource `cloud.resource_id`\n *\n * Attribute Value Type: `string` {@link CLOUD_RESOURCE_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link FAAS_ID} `faas.id`\n *\n * @example \"arn:aws:lambda:REGION:ACCOUNT_ID:function:my-function\"\n */\nexport const CLOUD_RESOURCE_ID = 'cloud.resource_id';\n\n/**\n * Type for {@link CLOUD_RESOURCE_ID} cloud.resource_id\n */\nexport type CLOUD_RESOURCE_ID_TYPE = string;\n\n// Path: model/attributes/cls.json\n\n/**\n * The value of the recorded Cumulative Layout Shift (CLS) web vital `cls`\n *\n * Attribute Value Type: `number` {@link CLS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link BROWSER_WEB_VITAL_CLS_VALUE} `browser.web_vital.cls.value`\n *\n * @deprecated Use {@link BROWSER_WEB_VITAL_CLS_VALUE} (browser.web_vital.cls.value) instead - The CLS web vital is now recorded as a browser.web_vital.cls.value attribute.\n * @example 0.2361\n */\nexport const CLS = 'cls';\n\n/**\n * Type for {@link CLS} cls\n */\nexport type CLS_TYPE = number;\n\n// Path: model/attributes/cls/cls__source__[key].json\n\n/**\n * The HTML elements or components responsible for the layout shift. is a numeric index from 1 to N `cls.source.`\n *\n * Attribute Value Type: `string` {@link CLS_SOURCE_KEY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Has Dynamic Suffix: true\n *\n * Aliases: {@link BROWSER_WEB_VITAL_CLS_SOURCE_KEY} `browser.web_vital.cls.source.`\n *\n * @deprecated Use {@link BROWSER_WEB_VITAL_CLS_SOURCE_KEY} (browser.web_vital.cls.source.) instead - The CLS source is now recorded as a browser.web_vital.cls.source. attribute.\n * @example \"body > div#app\"\n */\nexport const CLS_SOURCE_KEY = 'cls.source.';\n\n/**\n * Base key for {@link CLS_SOURCE_KEY}. Use with a dynamic suffix, e.g. `${CLS_SOURCE_KEY_BASE}.${key}`.\n *\n * @deprecated Use {@link BROWSER_WEB_VITAL_CLS_SOURCE_KEY_BASE} (browser.web_vital.cls.source) instead - The CLS source is now recorded as a browser.web_vital.cls.source. attribute.\n */\nexport const CLS_SOURCE_KEY_BASE = 'cls.source';\n\n/**\n * Type for {@link CLS_SOURCE_KEY} cls.source.\n */\nexport type CLS_SOURCE_KEY_TYPE = string;\n\n// Path: model/attributes/code/code__filepath.json\n\n/**\n * The source code file name that identifies the code unit as uniquely as possible (preferably an absolute file path). `code.filepath`\n *\n * Attribute Value Type: `string` {@link CODE_FILEPATH_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link CODE_FILE_PATH} `code.file.path`\n *\n * @deprecated Use {@link CODE_FILE_PATH} (code.file.path) instead\n * @example \"/app/myapplication/http/handler/server.py\"\n */\nexport const CODE_FILEPATH = 'code.filepath';\n\n/**\n * Type for {@link CODE_FILEPATH} code.filepath\n */\nexport type CODE_FILEPATH_TYPE = string;\n\n// Path: model/attributes/code/code__file__path.json\n\n/**\n * The source code file name that identifies the code unit as uniquely as possible (preferably an absolute file path). `code.file.path`\n *\n * Attribute Value Type: `string` {@link CODE_FILE_PATH_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link CODE_FILEPATH} `code.filepath`\n *\n * @example \"/app/myapplication/http/handler/server.py\"\n */\nexport const CODE_FILE_PATH = 'code.file.path';\n\n/**\n * Type for {@link CODE_FILE_PATH} code.file.path\n */\nexport type CODE_FILE_PATH_TYPE = string;\n\n// Path: model/attributes/code/code__function.json\n\n/**\n * The method or function name, or equivalent (usually rightmost part of the code unit's name). `code.function`\n *\n * Attribute Value Type: `string` {@link CODE_FUNCTION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link CODE_FUNCTION_NAME} `code.function.name`\n *\n * @example \"server_request\"\n */\nexport const CODE_FUNCTION = 'code.function';\n\n/**\n * Type for {@link CODE_FUNCTION} code.function\n */\nexport type CODE_FUNCTION_TYPE = string;\n\n// Path: model/attributes/code/code__function__name.json\n\n/**\n * The method or function fully-qualified name without arguments. `code.function.name`\n *\n * Attribute Value Type: `string` {@link CODE_FUNCTION_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link CODE_FUNCTION} `code.function`\n *\n * @example \"server_request\"\n */\nexport const CODE_FUNCTION_NAME = 'code.function.name';\n\n/**\n * Type for {@link CODE_FUNCTION_NAME} code.function.name\n */\nexport type CODE_FUNCTION_NAME_TYPE = string;\n\n// Path: model/attributes/code/code__lineno.json\n\n/**\n * The line number in code.filepath best representing the operation. It SHOULD point within the code unit named in code.function `code.lineno`\n *\n * Attribute Value Type: `number` {@link CODE_LINENO_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link CODE_LINE_NUMBER} `code.line.number`\n *\n * @deprecated Use {@link CODE_LINE_NUMBER} (code.line.number) instead\n * @example 42\n */\nexport const CODE_LINENO = 'code.lineno';\n\n/**\n * Type for {@link CODE_LINENO} code.lineno\n */\nexport type CODE_LINENO_TYPE = number;\n\n// Path: model/attributes/code/code__line__number.json\n\n/**\n * The line number in code.filepath best representing the operation. It SHOULD point within the code unit named in code.function `code.line.number`\n *\n * Attribute Value Type: `number` {@link CODE_LINE_NUMBER_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link CODE_LINENO} `code.lineno`\n *\n * @example 42\n */\nexport const CODE_LINE_NUMBER = 'code.line.number';\n\n/**\n * Type for {@link CODE_LINE_NUMBER} code.line.number\n */\nexport type CODE_LINE_NUMBER_TYPE = number;\n\n// Path: model/attributes/code/code__namespace.json\n\n/**\n * 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. `code.namespace`\n *\n * Attribute Value Type: `string` {@link CODE_NAMESPACE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"http.handler\"\n */\nexport const CODE_NAMESPACE = 'code.namespace';\n\n/**\n * Type for {@link CODE_NAMESPACE} code.namespace\n */\nexport type CODE_NAMESPACE_TYPE = string;\n\n// Path: model/attributes/connectionType.json\n\n/**\n * Specifies the type of the current connection (e.g. wifi, ethernet, cellular , etc). `connectionType`\n *\n * Attribute Value Type: `string` {@link CONNECTIONTYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link NETWORK_CONNECTION_TYPE} `network.connection.type`, {@link DEVICE_CONNECTION_TYPE} `device.connection_type`\n *\n * @deprecated Use {@link NETWORK_CONNECTION_TYPE} (network.connection.type) instead - Old namespace-less attribute, to be replaced with network.connection.type for span-first future\n * @example \"wifi\"\n */\nexport const CONNECTIONTYPE = 'connectionType';\n\n/**\n * Type for {@link CONNECTIONTYPE} connectionType\n */\nexport type CONNECTIONTYPE_TYPE = string;\n\n// Path: model/attributes/connection/connection__rtt.json\n\n/**\n * Specifies the estimated effective round-trip time of the current connection, in milliseconds. `connection.rtt`\n *\n * Attribute Value Type: `number` {@link CONNECTION_RTT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link NETWORK_CONNECTION_RTT} `network.connection.rtt`\n *\n * @deprecated Use {@link NETWORK_CONNECTION_RTT} (network.connection.rtt) instead - Old attribute name (no official namespace), to be replaced with network.connection.rtt for span-first future\n * @example 100\n */\nexport const CONNECTION_RTT = 'connection.rtt';\n\n/**\n * Type for {@link CONNECTION_RTT} connection.rtt\n */\nexport type CONNECTION_RTT_TYPE = number;\n\n// Path: model/attributes/culture/culture__calendar.json\n\n/**\n * The calendar system used by the culture. `culture.calendar`\n *\n * Attribute Value Type: `string` {@link CULTURE_CALENDAR_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"GregorianCalendar\"\n */\nexport const CULTURE_CALENDAR = 'culture.calendar';\n\n/**\n * Type for {@link CULTURE_CALENDAR} culture.calendar\n */\nexport type CULTURE_CALENDAR_TYPE = string;\n\n// Path: model/attributes/culture/culture__display_name.json\n\n/**\n * Human readable name of the culture. `culture.display_name`\n *\n * Attribute Value Type: `string` {@link CULTURE_DISPLAY_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"English (United States)\"\n */\nexport const CULTURE_DISPLAY_NAME = 'culture.display_name';\n\n/**\n * Type for {@link CULTURE_DISPLAY_NAME} culture.display_name\n */\nexport type CULTURE_DISPLAY_NAME_TYPE = string;\n\n// Path: model/attributes/culture/culture__is_24_hour_format.json\n\n/**\n * Whether the culture uses 24-hour time format. `culture.is_24_hour_format`\n *\n * Attribute Value Type: `boolean` {@link CULTURE_IS_24_HOUR_FORMAT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example true\n */\nexport const CULTURE_IS_24_HOUR_FORMAT = 'culture.is_24_hour_format';\n\n/**\n * Type for {@link CULTURE_IS_24_HOUR_FORMAT} culture.is_24_hour_format\n */\nexport type CULTURE_IS_24_HOUR_FORMAT_TYPE = boolean;\n\n// Path: model/attributes/culture/culture__locale.json\n\n/**\n * The locale identifier following RFC 4646. `culture.locale`\n *\n * Attribute Value Type: `string` {@link CULTURE_LOCALE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"en-US\"\n */\nexport const CULTURE_LOCALE = 'culture.locale';\n\n/**\n * Type for {@link CULTURE_LOCALE} culture.locale\n */\nexport type CULTURE_LOCALE_TYPE = string;\n\n// Path: model/attributes/culture/culture__timezone.json\n\n/**\n * The timezone of the culture, as a geographic timezone identifier. `culture.timezone`\n *\n * Attribute Value Type: `string` {@link CULTURE_TIMEZONE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"Europe/Vienna\"\n */\nexport const CULTURE_TIMEZONE = 'culture.timezone';\n\n/**\n * Type for {@link CULTURE_TIMEZONE} culture.timezone\n */\nexport type CULTURE_TIMEZONE_TYPE = string;\n\n// Path: model/attributes/db/db__collection__name.json\n\n/**\n * The name of a collection (table, container) within the database. `db.collection.name`\n *\n * Attribute Value Type: `string` {@link DB_COLLECTION_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"users\"\n */\nexport const DB_COLLECTION_NAME = 'db.collection.name';\n\n/**\n * Type for {@link DB_COLLECTION_NAME} db.collection.name\n */\nexport type DB_COLLECTION_NAME_TYPE = string;\n\n// Path: model/attributes/db/db__driver__name.json\n\n/**\n * The name of the driver used for the database connection. `db.driver.name`\n *\n * Attribute Value Type: `string` {@link DB_DRIVER_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"psycopg2\"\n */\nexport const DB_DRIVER_NAME = 'db.driver.name';\n\n/**\n * Type for {@link DB_DRIVER_NAME} db.driver.name\n */\nexport type DB_DRIVER_NAME_TYPE = string;\n\n// Path: model/attributes/db/db__name.json\n\n/**\n * The name of the database being accessed. `db.name`\n *\n * Attribute Value Type: `string` {@link DB_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link DB_NAMESPACE} `db.namespace`\n *\n * @deprecated Use {@link DB_NAMESPACE} (db.namespace) instead\n * @example \"customers\"\n */\nexport const DB_NAME = 'db.name';\n\n/**\n * Type for {@link DB_NAME} db.name\n */\nexport type DB_NAME_TYPE = string;\n\n// Path: model/attributes/db/db__namespace.json\n\n/**\n * The name of the database being accessed. `db.namespace`\n *\n * Attribute Value Type: `string` {@link DB_NAMESPACE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link DB_NAME} `db.name`\n *\n * @example \"customers\"\n */\nexport const DB_NAMESPACE = 'db.namespace';\n\n/**\n * Type for {@link DB_NAMESPACE} db.namespace\n */\nexport type DB_NAMESPACE_TYPE = string;\n\n// Path: model/attributes/db/db__operation.json\n\n/**\n * The name of the operation being executed. `db.operation`\n *\n * Attribute Value Type: `string` {@link DB_OPERATION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link DB_OPERATION_NAME} `db.operation.name`, {@link CLOUDFLARE_D1_QUERY_TYPE} `cloudflare.d1.query_type`\n *\n * @deprecated Use {@link DB_OPERATION_NAME} (db.operation.name) instead\n * @example \"SELECT\"\n */\nexport const DB_OPERATION = 'db.operation';\n\n/**\n * Type for {@link DB_OPERATION} db.operation\n */\nexport type DB_OPERATION_TYPE = string;\n\n// Path: model/attributes/db/db__operation__batch__size.json\n\n/**\n * 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. `db.operation.batch.size`\n *\n * Attribute Value Type: `number` {@link DB_OPERATION_BATCH_SIZE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example 3\n */\nexport const DB_OPERATION_BATCH_SIZE = 'db.operation.batch.size';\n\n/**\n * Type for {@link DB_OPERATION_BATCH_SIZE} db.operation.batch.size\n */\nexport type DB_OPERATION_BATCH_SIZE_TYPE = number;\n\n// Path: model/attributes/db/db__operation__name.json\n\n/**\n * The name of the operation being executed. `db.operation.name`\n *\n * Attribute Value Type: `string` {@link DB_OPERATION_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link DB_OPERATION} `db.operation`, {@link CLOUDFLARE_D1_QUERY_TYPE} `cloudflare.d1.query_type`\n *\n * @example \"SELECT\"\n */\nexport const DB_OPERATION_NAME = 'db.operation.name';\n\n/**\n * Type for {@link DB_OPERATION_NAME} db.operation.name\n */\nexport type DB_OPERATION_NAME_TYPE = string;\n\n// Path: model/attributes/db/db__query__parameter__[key].json\n\n/**\n * A query parameter used in db.query.text, with being the parameter name, and the attribute value being a string representation of the parameter value. `db.query.parameter.`\n *\n * Attribute Value Type: `string` {@link DB_QUERY_PARAMETER_KEY_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Has Dynamic Suffix: true\n *\n * @example \"db.query.parameter.foo='123'\"\n */\nexport const DB_QUERY_PARAMETER_KEY = 'db.query.parameter.';\n\n/**\n * Base key for {@link DB_QUERY_PARAMETER_KEY}. Use with a dynamic suffix, e.g. `${DB_QUERY_PARAMETER_KEY_BASE}.${key}`.\n */\nexport const DB_QUERY_PARAMETER_KEY_BASE = 'db.query.parameter';\n\n/**\n * Type for {@link DB_QUERY_PARAMETER_KEY} db.query.parameter.\n */\nexport type DB_QUERY_PARAMETER_KEY_TYPE = string;\n\n// Path: model/attributes/db/db__query__summary.json\n\n/**\n * A shortened representation of operation(s) in the full query. This attribute must be low-cardinality and should only contain the operation table names. `db.query.summary`\n *\n * Attribute Value Type: `string` {@link DB_QUERY_SUMMARY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"SELECT users\"\n */\nexport const DB_QUERY_SUMMARY = 'db.query.summary';\n\n/**\n * Type for {@link DB_QUERY_SUMMARY} db.query.summary\n */\nexport type DB_QUERY_SUMMARY_TYPE = string;\n\n// Path: model/attributes/db/db__query__text.json\n\n/**\n * 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.` to add the parameter value. `db.query.text`\n *\n * Attribute Value Type: `string` {@link DB_QUERY_TEXT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link DB_STATEMENT} `db.statement`\n *\n * @example \"SELECT * FROM users WHERE id = $1\"\n */\nexport const DB_QUERY_TEXT = 'db.query.text';\n\n/**\n * Type for {@link DB_QUERY_TEXT} db.query.text\n */\nexport type DB_QUERY_TEXT_TYPE = string;\n\n// Path: model/attributes/db/db__redis__connection.json\n\n/**\n * The redis connection name. `db.redis.connection`\n *\n * Attribute Value Type: `string` {@link DB_REDIS_CONNECTION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"my-redis-instance\"\n */\nexport const DB_REDIS_CONNECTION = 'db.redis.connection';\n\n/**\n * Type for {@link DB_REDIS_CONNECTION} db.redis.connection\n */\nexport type DB_REDIS_CONNECTION_TYPE = string;\n\n// Path: model/attributes/db/db__redis__key.json\n\n/**\n * The key the Redis command is operating on. `db.redis.key`\n *\n * Attribute Value Type: `string` {@link DB_REDIS_KEY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"user:2047:city\"\n */\nexport const DB_REDIS_KEY = 'db.redis.key';\n\n/**\n * Type for {@link DB_REDIS_KEY} db.redis.key\n */\nexport type DB_REDIS_KEY_TYPE = string;\n\n// Path: model/attributes/db/db__redis__parameters.json\n\n/**\n * The array of command parameters given to a redis command. `db.redis.parameters`\n *\n * Attribute Value Type: `Array` {@link DB_REDIS_PARAMETERS_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example [\"test\",\"*\"]\n */\nexport const DB_REDIS_PARAMETERS = 'db.redis.parameters';\n\n/**\n * Type for {@link DB_REDIS_PARAMETERS} db.redis.parameters\n */\nexport type DB_REDIS_PARAMETERS_TYPE = Array;\n\n// Path: model/attributes/db/db__response__status_code.json\n\n/**\n * 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. `db.response.status_code`\n *\n * Attribute Value Type: `string` {@link DB_RESPONSE_STATUS_CODE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"ORA-17002\"\n */\nexport const DB_RESPONSE_STATUS_CODE = 'db.response.status_code';\n\n/**\n * Type for {@link DB_RESPONSE_STATUS_CODE} db.response.status_code\n */\nexport type DB_RESPONSE_STATUS_CODE_TYPE = string;\n\n// Path: model/attributes/db/db__sql__bindings.json\n\n/**\n * The array of query bindings. `db.sql.bindings`\n *\n * Attribute Value Type: `Array` {@link DB_SQL_BINDINGS_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated Use {@link DB_QUERY_PARAMETER_KEY} (db.query.parameter.) instead - Instead of adding every binding in the db.sql.bindings attribute, add them as individual entires with db.query.parameter..\n * @example [\"1\",\"foo\"]\n */\nexport const DB_SQL_BINDINGS = 'db.sql.bindings';\n\n/**\n * Type for {@link DB_SQL_BINDINGS} db.sql.bindings\n */\nexport type DB_SQL_BINDINGS_TYPE = Array;\n\n// Path: model/attributes/db/db__statement.json\n\n/**\n * The database statement being executed. `db.statement`\n *\n * Attribute Value Type: `string` {@link DB_STATEMENT_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link DB_QUERY_TEXT} `db.query.text`\n *\n * @deprecated Use {@link DB_QUERY_TEXT} (db.query.text) instead\n * @example \"SELECT * FROM users\"\n */\nexport const DB_STATEMENT = 'db.statement';\n\n/**\n * Type for {@link DB_STATEMENT} db.statement\n */\nexport type DB_STATEMENT_TYPE = string;\n\n// Path: model/attributes/db/db__stored_procedure__name.json\n\n/**\n * The name of a stored procedure being called. `db.stored_procedure.name`\n *\n * Attribute Value Type: `string` {@link DB_STORED_PROCEDURE_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"GetUserById\"\n */\nexport const DB_STORED_PROCEDURE_NAME = 'db.stored_procedure.name';\n\n/**\n * Type for {@link DB_STORED_PROCEDURE_NAME} db.stored_procedure.name\n */\nexport type DB_STORED_PROCEDURE_NAME_TYPE = string;\n\n// Path: model/attributes/db/db__system.json\n\n/**\n * 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. `db.system`\n *\n * Attribute Value Type: `string` {@link DB_SYSTEM_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link DB_SYSTEM_NAME} `db.system.name`\n *\n * @deprecated Use {@link DB_SYSTEM_NAME} (db.system.name) instead\n * @example \"postgresql\"\n */\nexport const DB_SYSTEM = 'db.system';\n\n/**\n * Type for {@link DB_SYSTEM} db.system\n */\nexport type DB_SYSTEM_TYPE = string;\n\n// Path: model/attributes/db/db__system__name.json\n\n/**\n * 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. `db.system.name`\n *\n * Attribute Value Type: `string` {@link DB_SYSTEM_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link DB_SYSTEM} `db.system`\n *\n * @example \"postgresql\"\n */\nexport const DB_SYSTEM_NAME = 'db.system.name';\n\n/**\n * Type for {@link DB_SYSTEM_NAME} db.system.name\n */\nexport type DB_SYSTEM_NAME_TYPE = string;\n\n// Path: model/attributes/db/db__user.json\n\n/**\n * The database user. `db.user`\n *\n * Attribute Value Type: `string` {@link DB_USER_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"fancy_user\"\n */\nexport const DB_USER = 'db.user';\n\n/**\n * Type for {@link DB_USER} db.user\n */\nexport type DB_USER_TYPE = string;\n\n// Path: model/attributes/deviceMemory.json\n\n/**\n * The estimated total memory capacity of the device, only a rough estimation in gigabytes. `deviceMemory`\n *\n * Attribute Value Type: `string` {@link DEVICEMEMORY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link DEVICE_MEMORY_ESTIMATED_CAPACITY} `device.memory.estimated_capacity`\n *\n * @deprecated Use {@link DEVICE_MEMORY_ESTIMATED_CAPACITY} (device.memory.estimated_capacity) instead - Old namespace-less attribute, to be replaced with device.memory.estimated_capacity for span-first future\n * @example \"8 GB\"\n */\nexport const DEVICEMEMORY = 'deviceMemory';\n\n/**\n * Type for {@link DEVICEMEMORY} deviceMemory\n */\nexport type DEVICEMEMORY_TYPE = string;\n\n// Path: model/attributes/device/device__archs.json\n\n/**\n * The CPU architectures of the device. `device.archs`\n *\n * Attribute Value Type: `Array` {@link DEVICE_ARCHS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example [\"arm64-v8a\",\"armeabi-v7a\",\"armeabi\"]\n */\nexport const DEVICE_ARCHS = 'device.archs';\n\n/**\n * Type for {@link DEVICE_ARCHS} device.archs\n */\nexport type DEVICE_ARCHS_TYPE = Array;\n\n// Path: model/attributes/device/device__battery_level.json\n\n/**\n * The battery level of the device as a percentage (0-100). `device.battery_level`\n *\n * Attribute Value Type: `number` {@link DEVICE_BATTERY_LEVEL_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 100\n */\nexport const DEVICE_BATTERY_LEVEL = 'device.battery_level';\n\n/**\n * Type for {@link DEVICE_BATTERY_LEVEL} device.battery_level\n */\nexport type DEVICE_BATTERY_LEVEL_TYPE = number;\n\n// Path: model/attributes/device/device__battery_temperature.json\n\n/**\n * The battery temperature of the device in Celsius. `device.battery_temperature`\n *\n * Attribute Value Type: `number` {@link DEVICE_BATTERY_TEMPERATURE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 25\n */\nexport const DEVICE_BATTERY_TEMPERATURE = 'device.battery_temperature';\n\n/**\n * Type for {@link DEVICE_BATTERY_TEMPERATURE} device.battery_temperature\n */\nexport type DEVICE_BATTERY_TEMPERATURE_TYPE = number;\n\n// Path: model/attributes/device/device__boot_time.json\n\n/**\n * A formatted UTC timestamp when the system was booted. `device.boot_time`\n *\n * Attribute Value Type: `string` {@link DEVICE_BOOT_TIME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"2018-02-08T12:52:12Z\"\n */\nexport const DEVICE_BOOT_TIME = 'device.boot_time';\n\n/**\n * Type for {@link DEVICE_BOOT_TIME} device.boot_time\n */\nexport type DEVICE_BOOT_TIME_TYPE = string;\n\n// Path: model/attributes/device/device__brand.json\n\n/**\n * The brand of the device. `device.brand`\n *\n * Attribute Value Type: `string` {@link DEVICE_BRAND_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"Apple\"\n */\nexport const DEVICE_BRAND = 'device.brand';\n\n/**\n * Type for {@link DEVICE_BRAND} device.brand\n */\nexport type DEVICE_BRAND_TYPE = string;\n\n// Path: model/attributes/device/device__charging.json\n\n/**\n * Whether the device was charging or not. `device.charging`\n *\n * Attribute Value Type: `boolean` {@link DEVICE_CHARGING_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example false\n */\nexport const DEVICE_CHARGING = 'device.charging';\n\n/**\n * Type for {@link DEVICE_CHARGING} device.charging\n */\nexport type DEVICE_CHARGING_TYPE = boolean;\n\n// Path: model/attributes/device/device__chipset.json\n\n/**\n * The chipset of the device. `device.chipset`\n *\n * Attribute Value Type: `string` {@link DEVICE_CHIPSET_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"Qualcomm SM8550\"\n */\nexport const DEVICE_CHIPSET = 'device.chipset';\n\n/**\n * Type for {@link DEVICE_CHIPSET} device.chipset\n */\nexport type DEVICE_CHIPSET_TYPE = string;\n\n// Path: model/attributes/device/device__class.json\n\n/**\n * The classification of the device. For example, `low`, `medium`, or `high`. Typically inferred by Relay - SDKs generally do not need to set this directly. `device.class`\n *\n * Attribute Value Type: `string` {@link DEVICE_CLASS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"medium\"\n */\nexport const DEVICE_CLASS = 'device.class';\n\n/**\n * Type for {@link DEVICE_CLASS} device.class\n */\nexport type DEVICE_CLASS_TYPE = string;\n\n// Path: model/attributes/device/device__connection_type.json\n\n/**\n * The internet connection type currently being used by the device. `device.connection_type`\n *\n * Attribute Value Type: `string` {@link DEVICE_CONNECTION_TYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link NETWORK_CONNECTION_TYPE} `network.connection.type`, {@link CONNECTIONTYPE} `connectionType`\n *\n * @deprecated Use {@link NETWORK_CONNECTION_TYPE} (network.connection.type) instead - This attribute is being deprecated in favor of network.connection.type\n * @example \"wifi\"\n */\nexport const DEVICE_CONNECTION_TYPE = 'device.connection_type';\n\n/**\n * Type for {@link DEVICE_CONNECTION_TYPE} device.connection_type\n */\nexport type DEVICE_CONNECTION_TYPE_TYPE = string;\n\n// Path: model/attributes/device/device__cpu_description.json\n\n/**\n * A description of the CPU of the device. `device.cpu_description`\n *\n * Attribute Value Type: `string` {@link DEVICE_CPU_DESCRIPTION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz\"\n */\nexport const DEVICE_CPU_DESCRIPTION = 'device.cpu_description';\n\n/**\n * Type for {@link DEVICE_CPU_DESCRIPTION} device.cpu_description\n */\nexport type DEVICE_CPU_DESCRIPTION_TYPE = string;\n\n// Path: model/attributes/device/device__external_free_storage.json\n\n/**\n * External storage free size in bytes. `device.external_free_storage`\n *\n * Attribute Value Type: `number` {@link DEVICE_EXTERNAL_FREE_STORAGE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 67108864000\n */\nexport const DEVICE_EXTERNAL_FREE_STORAGE = 'device.external_free_storage';\n\n/**\n * Type for {@link DEVICE_EXTERNAL_FREE_STORAGE} device.external_free_storage\n */\nexport type DEVICE_EXTERNAL_FREE_STORAGE_TYPE = number;\n\n// Path: model/attributes/device/device__external_storage_size.json\n\n/**\n * External storage total size in bytes. `device.external_storage_size`\n *\n * Attribute Value Type: `number` {@link DEVICE_EXTERNAL_STORAGE_SIZE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 134217728000\n */\nexport const DEVICE_EXTERNAL_STORAGE_SIZE = 'device.external_storage_size';\n\n/**\n * Type for {@link DEVICE_EXTERNAL_STORAGE_SIZE} device.external_storage_size\n */\nexport type DEVICE_EXTERNAL_STORAGE_SIZE_TYPE = number;\n\n// Path: model/attributes/device/device__family.json\n\n/**\n * The family of the device. `device.family`\n *\n * Attribute Value Type: `string` {@link DEVICE_FAMILY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"iPhone\"\n */\nexport const DEVICE_FAMILY = 'device.family';\n\n/**\n * Type for {@link DEVICE_FAMILY} device.family\n */\nexport type DEVICE_FAMILY_TYPE = string;\n\n// Path: model/attributes/device/device__free_memory.json\n\n/**\n * Free system memory in bytes. `device.free_memory`\n *\n * Attribute Value Type: `number` {@link DEVICE_FREE_MEMORY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 2147483648\n */\nexport const DEVICE_FREE_MEMORY = 'device.free_memory';\n\n/**\n * Type for {@link DEVICE_FREE_MEMORY} device.free_memory\n */\nexport type DEVICE_FREE_MEMORY_TYPE = number;\n\n// Path: model/attributes/device/device__free_storage.json\n\n/**\n * Free device storage in bytes. `device.free_storage`\n *\n * Attribute Value Type: `number` {@link DEVICE_FREE_STORAGE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 107374182400\n */\nexport const DEVICE_FREE_STORAGE = 'device.free_storage';\n\n/**\n * Type for {@link DEVICE_FREE_STORAGE} device.free_storage\n */\nexport type DEVICE_FREE_STORAGE_TYPE = number;\n\n// Path: model/attributes/device/device__id.json\n\n/**\n * Unique device identifier. `device.id`\n *\n * Attribute Value Type: `string` {@link DEVICE_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"a1b2c3d4-e5f6-7890-abcd-ef1234567890\"\n */\nexport const DEVICE_ID = 'device.id';\n\n/**\n * Type for {@link DEVICE_ID} device.id\n */\nexport type DEVICE_ID_TYPE = string;\n\n// Path: model/attributes/device/device__locale.json\n\n/**\n * The locale of the device. `device.locale`\n *\n * Attribute Value Type: `string` {@link DEVICE_LOCALE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"en-US\"\n */\nexport const DEVICE_LOCALE = 'device.locale';\n\n/**\n * Type for {@link DEVICE_LOCALE} device.locale\n */\nexport type DEVICE_LOCALE_TYPE = string;\n\n// Path: model/attributes/device/device__low_memory.json\n\n/**\n * Whether the device was low on memory. `device.low_memory`\n *\n * Attribute Value Type: `boolean` {@link DEVICE_LOW_MEMORY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example false\n */\nexport const DEVICE_LOW_MEMORY = 'device.low_memory';\n\n/**\n * Type for {@link DEVICE_LOW_MEMORY} device.low_memory\n */\nexport type DEVICE_LOW_MEMORY_TYPE = boolean;\n\n// Path: model/attributes/device/device__low_power_mode.json\n\n/**\n * Whether the device is in Low Power Mode. `device.low_power_mode`\n *\n * Attribute Value Type: `boolean` {@link DEVICE_LOW_POWER_MODE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example true\n */\nexport const DEVICE_LOW_POWER_MODE = 'device.low_power_mode';\n\n/**\n * Type for {@link DEVICE_LOW_POWER_MODE} device.low_power_mode\n */\nexport type DEVICE_LOW_POWER_MODE_TYPE = boolean;\n\n// Path: model/attributes/device/device__manufacturer.json\n\n/**\n * The manufacturer of the device. `device.manufacturer`\n *\n * Attribute Value Type: `string` {@link DEVICE_MANUFACTURER_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"Google\"\n */\nexport const DEVICE_MANUFACTURER = 'device.manufacturer';\n\n/**\n * Type for {@link DEVICE_MANUFACTURER} device.manufacturer\n */\nexport type DEVICE_MANUFACTURER_TYPE = string;\n\n// Path: model/attributes/device/device__memory__estimated_capacity.json\n\n/**\n * 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 `device.memory.estimated_capacity`\n *\n * Attribute Value Type: `number` {@link DEVICE_MEMORY_ESTIMATED_CAPACITY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link DEVICEMEMORY} `deviceMemory`\n *\n * @example 8\n */\nexport const DEVICE_MEMORY_ESTIMATED_CAPACITY = 'device.memory.estimated_capacity';\n\n/**\n * Type for {@link DEVICE_MEMORY_ESTIMATED_CAPACITY} device.memory.estimated_capacity\n */\nexport type DEVICE_MEMORY_ESTIMATED_CAPACITY_TYPE = number;\n\n// Path: model/attributes/device/device__memory_size.json\n\n/**\n * Total system memory available in bytes. `device.memory_size`\n *\n * Attribute Value Type: `number` {@link DEVICE_MEMORY_SIZE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 17179869184\n */\nexport const DEVICE_MEMORY_SIZE = 'device.memory_size';\n\n/**\n * Type for {@link DEVICE_MEMORY_SIZE} device.memory_size\n */\nexport type DEVICE_MEMORY_SIZE_TYPE = number;\n\n// Path: model/attributes/device/device__model.json\n\n/**\n * The model of the device. `device.model`\n *\n * Attribute Value Type: `string` {@link DEVICE_MODEL_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"iPhone 15 Pro Max\"\n */\nexport const DEVICE_MODEL = 'device.model';\n\n/**\n * Type for {@link DEVICE_MODEL} device.model\n */\nexport type DEVICE_MODEL_TYPE = string;\n\n// Path: model/attributes/device/device__model_id.json\n\n/**\n * An internal hardware revision to identify the device exactly. `device.model_id`\n *\n * Attribute Value Type: `string` {@link DEVICE_MODEL_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"N861AP\"\n */\nexport const DEVICE_MODEL_ID = 'device.model_id';\n\n/**\n * Type for {@link DEVICE_MODEL_ID} device.model_id\n */\nexport type DEVICE_MODEL_ID_TYPE = string;\n\n// Path: model/attributes/device/device__name.json\n\n/**\n * The name of the device. On mobile, this is the user-assigned device name. On servers and desktops, this is typically the hostname. `device.name`\n *\n * Attribute Value Type: `string` {@link DEVICE_NAME_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"localhost\"\n */\nexport const DEVICE_NAME = 'device.name';\n\n/**\n * Type for {@link DEVICE_NAME} device.name\n */\nexport type DEVICE_NAME_TYPE = string;\n\n// Path: model/attributes/device/device__online.json\n\n/**\n * Whether the device was online or not. `device.online`\n *\n * Attribute Value Type: `boolean` {@link DEVICE_ONLINE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example true\n */\nexport const DEVICE_ONLINE = 'device.online';\n\n/**\n * Type for {@link DEVICE_ONLINE} device.online\n */\nexport type DEVICE_ONLINE_TYPE = boolean;\n\n// Path: model/attributes/device/device__orientation.json\n\n/**\n * The orientation of the device, either \"portrait\" or \"landscape\". `device.orientation`\n *\n * Attribute Value Type: `string` {@link DEVICE_ORIENTATION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"portrait\"\n */\nexport const DEVICE_ORIENTATION = 'device.orientation';\n\n/**\n * Type for {@link DEVICE_ORIENTATION} device.orientation\n */\nexport type DEVICE_ORIENTATION_TYPE = string;\n\n// Path: model/attributes/device/device__processor_count.json\n\n/**\n * Number of \"logical processors\". `device.processor_count`\n *\n * Attribute Value Type: `number` {@link DEVICE_PROCESSOR_COUNT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link HARDWARECONCURRENCY} `hardwareConcurrency`\n *\n * @example 8\n */\nexport const DEVICE_PROCESSOR_COUNT = 'device.processor_count';\n\n/**\n * Type for {@link DEVICE_PROCESSOR_COUNT} device.processor_count\n */\nexport type DEVICE_PROCESSOR_COUNT_TYPE = number;\n\n// Path: model/attributes/device/device__processor_frequency.json\n\n/**\n * Processor frequency in MHz. `device.processor_frequency`\n *\n * Attribute Value Type: `number` {@link DEVICE_PROCESSOR_FREQUENCY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 2400\n */\nexport const DEVICE_PROCESSOR_FREQUENCY = 'device.processor_frequency';\n\n/**\n * Type for {@link DEVICE_PROCESSOR_FREQUENCY} device.processor_frequency\n */\nexport type DEVICE_PROCESSOR_FREQUENCY_TYPE = number;\n\n// Path: model/attributes/device/device__screen_density.json\n\n/**\n * The screen density of the device. `device.screen_density`\n *\n * Attribute Value Type: `number` {@link DEVICE_SCREEN_DENSITY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 2.625\n */\nexport const DEVICE_SCREEN_DENSITY = 'device.screen_density';\n\n/**\n * Type for {@link DEVICE_SCREEN_DENSITY} device.screen_density\n */\nexport type DEVICE_SCREEN_DENSITY_TYPE = number;\n\n// Path: model/attributes/device/device__screen_dpi.json\n\n/**\n * The screen density in dots-per-inch (DPI) of the device. `device.screen_dpi`\n *\n * Attribute Value Type: `number` {@link DEVICE_SCREEN_DPI_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 420\n */\nexport const DEVICE_SCREEN_DPI = 'device.screen_dpi';\n\n/**\n * Type for {@link DEVICE_SCREEN_DPI} device.screen_dpi\n */\nexport type DEVICE_SCREEN_DPI_TYPE = number;\n\n// Path: model/attributes/device/device__screen_height_pixels.json\n\n/**\n * The height of the device screen in pixels. `device.screen_height_pixels`\n *\n * Attribute Value Type: `number` {@link DEVICE_SCREEN_HEIGHT_PIXELS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 2400\n */\nexport const DEVICE_SCREEN_HEIGHT_PIXELS = 'device.screen_height_pixels';\n\n/**\n * Type for {@link DEVICE_SCREEN_HEIGHT_PIXELS} device.screen_height_pixels\n */\nexport type DEVICE_SCREEN_HEIGHT_PIXELS_TYPE = number;\n\n// Path: model/attributes/device/device__screen_width_pixels.json\n\n/**\n * The width of the device screen in pixels. `device.screen_width_pixels`\n *\n * Attribute Value Type: `number` {@link DEVICE_SCREEN_WIDTH_PIXELS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 1080\n */\nexport const DEVICE_SCREEN_WIDTH_PIXELS = 'device.screen_width_pixels';\n\n/**\n * Type for {@link DEVICE_SCREEN_WIDTH_PIXELS} device.screen_width_pixels\n */\nexport type DEVICE_SCREEN_WIDTH_PIXELS_TYPE = number;\n\n// Path: model/attributes/device/device__simulator.json\n\n/**\n * Whether the device is a simulator or an actual device. `device.simulator`\n *\n * Attribute Value Type: `boolean` {@link DEVICE_SIMULATOR_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example false\n */\nexport const DEVICE_SIMULATOR = 'device.simulator';\n\n/**\n * Type for {@link DEVICE_SIMULATOR} device.simulator\n */\nexport type DEVICE_SIMULATOR_TYPE = boolean;\n\n// Path: model/attributes/device/device__storage_size.json\n\n/**\n * Total device storage in bytes. `device.storage_size`\n *\n * Attribute Value Type: `number` {@link DEVICE_STORAGE_SIZE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 274877906944\n */\nexport const DEVICE_STORAGE_SIZE = 'device.storage_size';\n\n/**\n * Type for {@link DEVICE_STORAGE_SIZE} device.storage_size\n */\nexport type DEVICE_STORAGE_SIZE_TYPE = number;\n\n// Path: model/attributes/device/device__thermal_state.json\n\n/**\n * The thermal state of the device. Based on Apple's `ProcessInfo.ThermalState` enum: `nominal`, `fair`, `serious`, or `critical`. `device.thermal_state`\n *\n * Attribute Value Type: `string` {@link DEVICE_THERMAL_STATE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"nominal\"\n */\nexport const DEVICE_THERMAL_STATE = 'device.thermal_state';\n\n/**\n * Type for {@link DEVICE_THERMAL_STATE} device.thermal_state\n */\nexport type DEVICE_THERMAL_STATE_TYPE = string;\n\n// Path: model/attributes/device/device__timezone.json\n\n/**\n * The timezone of the device. `device.timezone`\n *\n * Attribute Value Type: `string` {@link DEVICE_TIMEZONE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"Europe/Vienna\"\n */\nexport const DEVICE_TIMEZONE = 'device.timezone';\n\n/**\n * Type for {@link DEVICE_TIMEZONE} device.timezone\n */\nexport type DEVICE_TIMEZONE_TYPE = string;\n\n// Path: model/attributes/device/device__usable_memory.json\n\n/**\n * Memory usable for the app in bytes. `device.usable_memory`\n *\n * Attribute Value Type: `number` {@link DEVICE_USABLE_MEMORY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 2147483648\n */\nexport const DEVICE_USABLE_MEMORY = 'device.usable_memory';\n\n/**\n * Type for {@link DEVICE_USABLE_MEMORY} device.usable_memory\n */\nexport type DEVICE_USABLE_MEMORY_TYPE = number;\n\n// Path: model/attributes/dist.json\n\n/**\n * The sentry dist. `dist`\n *\n * Attribute Value Type: `string` {@link DIST_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link SENTRY_DIST} `sentry.dist`\n *\n * @deprecated Use {@link SENTRY_DIST} (sentry.dist) instead - This attribute is being deprecated in favor of sentry.dist.\n * @example \"1.0\"\n */\nexport const DIST = 'dist';\n\n/**\n * Type for {@link DIST} dist\n */\nexport type DIST_TYPE = string;\n\n// Path: model/attributes/effectiveConnectionType.json\n\n/**\n * Specifies the estimated effective type of the current connection (e.g. slow-2g, 2g, 3g, 4g). `effectiveConnectionType`\n *\n * Attribute Value Type: `string` {@link EFFECTIVECONNECTIONTYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link NETWORK_CONNECTION_EFFECTIVE_TYPE} `network.connection.effective_type`\n *\n * @deprecated Use {@link NETWORK_CONNECTION_EFFECTIVE_TYPE} (network.connection.effective_type) instead - Old namespace-less attribute, to be replaced with network.connection.effective_type for span-first future\n * @example \"4g\"\n */\nexport const EFFECTIVECONNECTIONTYPE = 'effectiveConnectionType';\n\n/**\n * Type for {@link EFFECTIVECONNECTIONTYPE} effectiveConnectionType\n */\nexport type EFFECTIVECONNECTIONTYPE_TYPE = string;\n\n// Path: model/attributes/environment.json\n\n/**\n * The sentry environment. `environment`\n *\n * Attribute Value Type: `string` {@link ENVIRONMENT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link SENTRY_ENVIRONMENT} `sentry.environment`\n *\n * @deprecated Use {@link SENTRY_ENVIRONMENT} (sentry.environment) instead\n * @example \"production\"\n */\nexport const ENVIRONMENT = 'environment';\n\n/**\n * Type for {@link ENVIRONMENT} environment\n */\nexport type ENVIRONMENT_TYPE = string;\n\n// Path: model/attributes/error/error__type.json\n\n/**\n * Describes a class of error the operation ended with. `error.type`\n *\n * Attribute Value Type: `string` {@link ERROR_TYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"timeout\"\n */\nexport const ERROR_TYPE = 'error.type';\n\n/**\n * Type for {@link ERROR_TYPE} error.type\n */\nexport type ERROR_TYPE_TYPE = string;\n\n// Path: model/attributes/event/event__id.json\n\n/**\n * The unique identifier for this event (log record) `event.id`\n *\n * Attribute Value Type: `number` {@link EVENT_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 1234567890\n */\nexport const EVENT_ID = 'event.id';\n\n/**\n * Type for {@link EVENT_ID} event.id\n */\nexport type EVENT_ID_TYPE = number;\n\n// Path: model/attributes/event/event__name.json\n\n/**\n * The name that uniquely identifies this event (log record) `event.name`\n *\n * Attribute Value Type: `string` {@link EVENT_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"Process Payload\"\n */\nexport const EVENT_NAME = 'event.name';\n\n/**\n * Type for {@link EVENT_NAME} event.name\n */\nexport type EVENT_NAME_TYPE = string;\n\n// Path: model/attributes/exception/exception__escaped.json\n\n/**\n * 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. `exception.escaped`\n *\n * Attribute Value Type: `boolean` {@link EXCEPTION_ESCAPED_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example true\n */\nexport const EXCEPTION_ESCAPED = 'exception.escaped';\n\n/**\n * Type for {@link EXCEPTION_ESCAPED} exception.escaped\n */\nexport type EXCEPTION_ESCAPED_TYPE = boolean;\n\n// Path: model/attributes/exception/exception__message.json\n\n/**\n * The error message. `exception.message`\n *\n * Attribute Value Type: `string` {@link EXCEPTION_MESSAGE_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"ENOENT: no such file or directory\"\n */\nexport const EXCEPTION_MESSAGE = 'exception.message';\n\n/**\n * Type for {@link EXCEPTION_MESSAGE} exception.message\n */\nexport type EXCEPTION_MESSAGE_TYPE = string;\n\n// Path: model/attributes/exception/exception__stacktrace.json\n\n/**\n * 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. `exception.stacktrace`\n *\n * Attribute Value Type: `string` {@link EXCEPTION_STACKTRACE_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @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)\"\n */\nexport const EXCEPTION_STACKTRACE = 'exception.stacktrace';\n\n/**\n * Type for {@link EXCEPTION_STACKTRACE} exception.stacktrace\n */\nexport type EXCEPTION_STACKTRACE_TYPE = string;\n\n// Path: model/attributes/exception/exception__type.json\n\n/**\n * 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. `exception.type`\n *\n * Attribute Value Type: `string` {@link EXCEPTION_TYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"OSError\"\n */\nexport const EXCEPTION_TYPE = 'exception.type';\n\n/**\n * Type for {@link EXCEPTION_TYPE} exception.type\n */\nexport type EXCEPTION_TYPE_TYPE = string;\n\n// Path: model/attributes/faas/faas__coldstart.json\n\n/**\n * A boolean that is true if the serverless function is executed for the first time (aka cold-start). `faas.coldstart`\n *\n * Attribute Value Type: `boolean` {@link FAAS_COLDSTART_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example true\n */\nexport const FAAS_COLDSTART = 'faas.coldstart';\n\n/**\n * Type for {@link FAAS_COLDSTART} faas.coldstart\n */\nexport type FAAS_COLDSTART_TYPE = boolean;\n\n// Path: model/attributes/faas/faas__cron.json\n\n/**\n * A string containing the schedule period as Cron Expression. `faas.cron`\n *\n * Attribute Value Type: `string` {@link FAAS_CRON_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"0/5 * * * ? *\"\n */\nexport const FAAS_CRON = 'faas.cron';\n\n/**\n * Type for {@link FAAS_CRON} faas.cron\n */\nexport type FAAS_CRON_TYPE = string;\n\n// Path: model/attributes/faas/faas__duration_in_ms.json\n\n/**\n * The duration a function took to run, in milliseconds. `faas.duration_in_ms`\n *\n * Attribute Value Type: `number` {@link FAAS_DURATION_IN_MS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 120\n */\nexport const FAAS_DURATION_IN_MS = 'faas.duration_in_ms';\n\n/**\n * Type for {@link FAAS_DURATION_IN_MS} faas.duration_in_ms\n */\nexport type FAAS_DURATION_IN_MS_TYPE = number;\n\n// Path: model/attributes/faas/faas__entry_point.json\n\n/**\n * The code that's run when the cloud provider invokes your function. `faas.entry_point`\n *\n * Attribute Value Type: `string` {@link FAAS_ENTRY_POINT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"my_main_function\"\n */\nexport const FAAS_ENTRY_POINT = 'faas.entry_point';\n\n/**\n * Type for {@link FAAS_ENTRY_POINT} faas.entry_point\n */\nexport type FAAS_ENTRY_POINT_TYPE = string;\n\n// Path: model/attributes/faas/faas__execution.json\n\n/**\n * The execution ID of the current function execution. `faas.execution`\n *\n * Attribute Value Type: `string` {@link FAAS_EXECUTION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link FAAS_INVOCATION_ID} `faas.invocation_id`, {@link AWS_LAMBDA_AWS_REQUEST_ID} `aws.lambda.aws_request_id`\n *\n * @deprecated Use {@link FAAS_INVOCATION_ID} (faas.invocation_id) instead - This attribute is being deprecated in favor of faas.invocation_id, which is the OTel-aligned replacement.\n * @example \"af9d5aa4-a685-4c5f-a22b-444f80b3cc28\"\n */\nexport const FAAS_EXECUTION = 'faas.execution';\n\n/**\n * Type for {@link FAAS_EXECUTION} faas.execution\n */\nexport type FAAS_EXECUTION_TYPE = string;\n\n// Path: model/attributes/faas/faas__id.json\n\n/**\n * The unique ID of the single function that this runtime instance executes. `faas.id`\n *\n * Attribute Value Type: `string` {@link FAAS_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link CLOUD_RESOURCE_ID} `cloud.resource_id`\n *\n * @deprecated Use {@link CLOUD_RESOURCE_ID} (cloud.resource_id) instead - 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).\n * @example \"arn:aws:lambda:REGION:ACCOUNT_ID:function:my-function\"\n */\nexport const FAAS_ID = 'faas.id';\n\n/**\n * Type for {@link FAAS_ID} faas.id\n */\nexport type FAAS_ID_TYPE = string;\n\n// Path: model/attributes/faas/faas__identity.json\n\n/**\n * The Service Account (GCP), IAM Execution Role (AWS), or Managed Identity (Azure) used by the serverless function when interacting with other cloud services `faas.identity`\n *\n * Attribute Value Type: `string` {@link FAAS_IDENTITY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"name@project.iam.gserviceaccount.com (GCP), arn:aws:iam::123456789012:role/role-name (AWS), 00000000-0000-0000-0000-000000000000 (Azure)\"\n */\nexport const FAAS_IDENTITY = 'faas.identity';\n\n/**\n * Type for {@link FAAS_IDENTITY} faas.identity\n */\nexport type FAAS_IDENTITY_TYPE = string;\n\n// Path: model/attributes/faas/faas__invocation_id.json\n\n/**\n * The invocation ID of the current function invocation. `faas.invocation_id`\n *\n * Attribute Value Type: `string` {@link FAAS_INVOCATION_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link AWS_LAMBDA_AWS_REQUEST_ID} `aws.lambda.aws_request_id`, {@link FAAS_EXECUTION} `faas.execution`\n *\n * @example \"af9d5aa4-a685-4c5f-a22b-444f80b3cc28\"\n */\nexport const FAAS_INVOCATION_ID = 'faas.invocation_id';\n\n/**\n * Type for {@link FAAS_INVOCATION_ID} faas.invocation_id\n */\nexport type FAAS_INVOCATION_ID_TYPE = string;\n\n// Path: model/attributes/faas/faas__invoked_name.json\n\n/**\n * The name of the invoked function. `faas.invoked_name`\n *\n * Attribute Value Type: `string` {@link FAAS_INVOKED_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"my-function\"\n */\nexport const FAAS_INVOKED_NAME = 'faas.invoked_name';\n\n/**\n * Type for {@link FAAS_INVOKED_NAME} faas.invoked_name\n */\nexport type FAAS_INVOKED_NAME_TYPE = string;\n\n// Path: model/attributes/faas/faas__invoked_provider.json\n\n/**\n * The cloud provider of the invoked function. `faas.invoked_provider`\n *\n * Attribute Value Type: `string` {@link FAAS_INVOKED_PROVIDER_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"aws\"\n */\nexport const FAAS_INVOKED_PROVIDER = 'faas.invoked_provider';\n\n/**\n * Type for {@link FAAS_INVOKED_PROVIDER} faas.invoked_provider\n */\nexport type FAAS_INVOKED_PROVIDER_TYPE = string;\n\n// Path: model/attributes/faas/faas__invoked_region.json\n\n/**\n * The cloud region of the invoked function. `faas.invoked_region`\n *\n * Attribute Value Type: `string` {@link FAAS_INVOKED_REGION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"eu-central-1\"\n */\nexport const FAAS_INVOKED_REGION = 'faas.invoked_region';\n\n/**\n * Type for {@link FAAS_INVOKED_REGION} faas.invoked_region\n */\nexport type FAAS_INVOKED_REGION_TYPE = string;\n\n// Path: model/attributes/faas/faas__name.json\n\n/**\n * The name of the serverless function `faas.name`\n *\n * Attribute Value Type: `string` {@link FAAS_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link AWS_LAMBDA_FUNCTION_NAME} `aws.lambda.function_name`\n *\n * @example \"my_function\"\n */\nexport const FAAS_NAME = 'faas.name';\n\n/**\n * Type for {@link FAAS_NAME} faas.name\n */\nexport type FAAS_NAME_TYPE = string;\n\n// Path: model/attributes/faas/faas__time.json\n\n/**\n * A string containing the function invocation time in the ISO 8601 format expressed in UTC. `faas.time`\n *\n * Attribute Value Type: `string` {@link FAAS_TIME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"2020-01-23T13:47:06Z\"\n */\nexport const FAAS_TIME = 'faas.time';\n\n/**\n * Type for {@link FAAS_TIME} faas.time\n */\nexport type FAAS_TIME_TYPE = string;\n\n// Path: model/attributes/faas/faas__trigger.json\n\n/**\n * Type of the trigger which caused this function invocation. `faas.trigger`\n *\n * Attribute Value Type: `string` {@link FAAS_TRIGGER_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"timer\"\n */\nexport const FAAS_TRIGGER = 'faas.trigger';\n\n/**\n * Type for {@link FAAS_TRIGGER} faas.trigger\n */\nexport type FAAS_TRIGGER_TYPE = string;\n\n// Path: model/attributes/faas/faas__version.json\n\n/**\n * The version of the function that was invoked `faas.version`\n *\n * Attribute Value Type: `string` {@link FAAS_VERSION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link AWS_LAMBDA_FUNCTION_VERSION} `aws.lambda.function_version`\n *\n * @example \"$LATEST\"\n */\nexport const FAAS_VERSION = 'faas.version';\n\n/**\n * Type for {@link FAAS_VERSION} faas.version\n */\nexport type FAAS_VERSION_TYPE = string;\n\n// Path: model/attributes/fcp.json\n\n/**\n * The time it takes for the browser to render the first piece of meaningful content on the screen `fcp`\n *\n * Attribute Value Type: `number` {@link FCP_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link BROWSER_WEB_VITAL_FCP_VALUE} `browser.web_vital.fcp.value`\n *\n * @deprecated Use {@link BROWSER_WEB_VITAL_FCP_VALUE} (browser.web_vital.fcp.value) instead - This attribute is being deprecated in favor of browser.web_vital.fcp.value\n * @example 547.6951\n */\nexport const FCP = 'fcp';\n\n/**\n * Type for {@link FCP} fcp\n */\nexport type FCP_TYPE = number;\n\n// Path: model/attributes/flag/flag__evaluation__[key].json\n\n/**\n * An instance of a feature flag evaluation. The value of this attribute is the boolean representing the evaluation result. The suffix is the name of the feature flag. `flag.evaluation.`\n *\n * Attribute Value Type: `boolean` {@link FLAG_EVALUATION_KEY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Has Dynamic Suffix: true\n *\n * @example \"flag.evaluation.is_new_ui=true\"\n */\nexport const FLAG_EVALUATION_KEY = 'flag.evaluation.';\n\n/**\n * Base key for {@link FLAG_EVALUATION_KEY}. Use with a dynamic suffix, e.g. `${FLAG_EVALUATION_KEY_BASE}.${key}`.\n */\nexport const FLAG_EVALUATION_KEY_BASE = 'flag.evaluation';\n\n/**\n * Type for {@link FLAG_EVALUATION_KEY} flag.evaluation.\n */\nexport type FLAG_EVALUATION_KEY_TYPE = boolean;\n\n// Path: model/attributes/fp.json\n\n/**\n * The time it takes for the browser to render the first pixel on the screen `fp`\n *\n * Attribute Value Type: `number` {@link FP_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link BROWSER_WEB_VITAL_FP_VALUE} `browser.web_vital.fp.value`\n *\n * @deprecated Use {@link BROWSER_WEB_VITAL_FP_VALUE} (browser.web_vital.fp.value) instead - This attribute is being deprecated in favor of browser.web_vital.fp.value\n * @example 477.1926\n */\nexport const FP = 'fp';\n\n/**\n * Type for {@link FP} fp\n */\nexport type FP_TYPE = number;\n\n// Path: model/attributes/frames/frames__delay.json\n\n/**\n * 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/). `frames.delay`\n *\n * Attribute Value Type: `number` {@link FRAMES_DELAY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link APP_VITALS_FRAMES_DELAY_VALUE} `app.vitals.frames.delay.value`\n *\n * @deprecated Use {@link APP_VITALS_FRAMES_DELAY_VALUE} (app.vitals.frames.delay.value) instead - Replaced by app.vitals.frames.delay.value to align with the app.vitals.* namespace for mobile performance attributes\n * @example 5\n */\nexport const FRAMES_DELAY = 'frames.delay';\n\n/**\n * Type for {@link FRAMES_DELAY} frames.delay\n */\nexport type FRAMES_DELAY_TYPE = number;\n\n// Path: model/attributes/frames/frames__frozen.json\n\n/**\n * The number of frozen frames rendered during the lifetime of the span. `frames.frozen`\n *\n * Attribute Value Type: `number` {@link FRAMES_FROZEN_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link APP_VITALS_FRAMES_FROZEN_COUNT} `app.vitals.frames.frozen.count`\n *\n * @deprecated Use {@link APP_VITALS_FRAMES_FROZEN_COUNT} (app.vitals.frames.frozen.count) instead - Replaced by app.vitals.frames.frozen.count to align with the app.vitals.* namespace for mobile performance attributes\n * @example 3\n */\nexport const FRAMES_FROZEN = 'frames.frozen';\n\n/**\n * Type for {@link FRAMES_FROZEN} frames.frozen\n */\nexport type FRAMES_FROZEN_TYPE = number;\n\n// Path: model/attributes/frames_frozen_rate.json\n\n/**\n * The rate of frozen frames, or `app_vitals.frames.frozen.count` divided by `app_vitals.frames.total.count`. This is computed by Relay. `frames_frozen_rate`\n *\n * Attribute Value Type: `number` {@link FRAMES_FROZEN_RATE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n */\nexport const FRAMES_FROZEN_RATE = 'frames_frozen_rate';\n\n/**\n * Type for {@link FRAMES_FROZEN_RATE} frames_frozen_rate\n */\nexport type FRAMES_FROZEN_RATE_TYPE = number;\n\n// Path: model/attributes/frames/frames__slow.json\n\n/**\n * The number of slow frames rendered during the lifetime of the span. `frames.slow`\n *\n * Attribute Value Type: `number` {@link FRAMES_SLOW_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link APP_VITALS_FRAMES_SLOW_COUNT} `app.vitals.frames.slow.count`\n *\n * @deprecated Use {@link APP_VITALS_FRAMES_SLOW_COUNT} (app.vitals.frames.slow.count) instead - Replaced by app.vitals.frames.slow.count to align with the app.vitals.* namespace for mobile performance attributes\n * @example 1\n */\nexport const FRAMES_SLOW = 'frames.slow';\n\n/**\n * Type for {@link FRAMES_SLOW} frames.slow\n */\nexport type FRAMES_SLOW_TYPE = number;\n\n// Path: model/attributes/frames_slow_rate.json\n\n/**\n * The rate of slow frames, or `app_vitals.frames.slow.count` divided by `app_vitals.frames.total.count`. This is computed by Relay. `frames_slow_rate`\n *\n * Attribute Value Type: `number` {@link FRAMES_SLOW_RATE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n */\nexport const FRAMES_SLOW_RATE = 'frames_slow_rate';\n\n/**\n * Type for {@link FRAMES_SLOW_RATE} frames_slow_rate\n */\nexport type FRAMES_SLOW_RATE_TYPE = number;\n\n// Path: model/attributes/frames/frames__total.json\n\n/**\n * The number of total frames rendered during the lifetime of the span. `frames.total`\n *\n * Attribute Value Type: `number` {@link FRAMES_TOTAL_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link APP_VITALS_FRAMES_TOTAL_COUNT} `app.vitals.frames.total.count`\n *\n * @deprecated Use {@link APP_VITALS_FRAMES_TOTAL_COUNT} (app.vitals.frames.total.count) instead - Replaced by app.vitals.frames.total.count to align with the app.vitals.* namespace for mobile performance attributes\n * @example 60\n */\nexport const FRAMES_TOTAL = 'frames.total';\n\n/**\n * Type for {@link FRAMES_TOTAL} frames.total\n */\nexport type FRAMES_TOTAL_TYPE = number;\n\n// Path: model/attributes/fs_error.json\n\n/**\n * The error message of a file system error. `fs_error`\n *\n * Attribute Value Type: `string` {@link FS_ERROR_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated Use {@link ERROR_TYPE} (error.type) instead - This attribute is not part of the OpenTelemetry specification and error.type fits much better.\n * @example \"ENOENT: no such file or directory\"\n */\nexport const FS_ERROR = 'fs_error';\n\n/**\n * Type for {@link FS_ERROR} fs_error\n */\nexport type FS_ERROR_TYPE = string;\n\n// Path: model/attributes/gcp/gcp__function__context__event_id.json\n\n/**\n * The event ID from the legacy GCP Cloud Function context (1st gen) `gcp.function.context.event_id`\n *\n * Attribute Value Type: `string` {@link GCP_FUNCTION_CONTEXT_EVENT_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"1234567890\"\n */\nexport const GCP_FUNCTION_CONTEXT_EVENT_ID = 'gcp.function.context.event_id';\n\n/**\n * Type for {@link GCP_FUNCTION_CONTEXT_EVENT_ID} gcp.function.context.event_id\n */\nexport type GCP_FUNCTION_CONTEXT_EVENT_ID_TYPE = string;\n\n// Path: model/attributes/gcp/gcp__function__context__event_type.json\n\n/**\n * The type of the GCP Cloud Function event `gcp.function.context.event_type`\n *\n * Attribute Value Type: `string` {@link GCP_FUNCTION_CONTEXT_EVENT_TYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"google.pubsub.topic.publish\"\n */\nexport const GCP_FUNCTION_CONTEXT_EVENT_TYPE = 'gcp.function.context.event_type';\n\n/**\n * Type for {@link GCP_FUNCTION_CONTEXT_EVENT_TYPE} gcp.function.context.event_type\n */\nexport type GCP_FUNCTION_CONTEXT_EVENT_TYPE_TYPE = string;\n\n// Path: model/attributes/gcp/gcp__function__context__id.json\n\n/**\n * The unique event ID from the GCP CloudEvents context (2nd gen Cloud Functions) `gcp.function.context.id`\n *\n * Attribute Value Type: `string` {@link GCP_FUNCTION_CONTEXT_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"1234567890\"\n */\nexport const GCP_FUNCTION_CONTEXT_ID = 'gcp.function.context.id';\n\n/**\n * Type for {@link GCP_FUNCTION_CONTEXT_ID} gcp.function.context.id\n */\nexport type GCP_FUNCTION_CONTEXT_ID_TYPE = string;\n\n// Path: model/attributes/gcp/gcp__function__context__resource.json\n\n/**\n * The resource that triggered the GCP Cloud Function event `gcp.function.context.resource`\n *\n * Attribute Value Type: `string` {@link GCP_FUNCTION_CONTEXT_RESOURCE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"projects/my-project/topics/my-topic\"\n */\nexport const GCP_FUNCTION_CONTEXT_RESOURCE = 'gcp.function.context.resource';\n\n/**\n * Type for {@link GCP_FUNCTION_CONTEXT_RESOURCE} gcp.function.context.resource\n */\nexport type GCP_FUNCTION_CONTEXT_RESOURCE_TYPE = string;\n\n// Path: model/attributes/gcp/gcp__function__context__source.json\n\n/**\n * The source of the GCP Cloud Function event `gcp.function.context.source`\n *\n * Attribute Value Type: `string` {@link GCP_FUNCTION_CONTEXT_SOURCE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"//pubsub.googleapis.com/projects/my-project/topics/my-topic\"\n */\nexport const GCP_FUNCTION_CONTEXT_SOURCE = 'gcp.function.context.source';\n\n/**\n * Type for {@link GCP_FUNCTION_CONTEXT_SOURCE} gcp.function.context.source\n */\nexport type GCP_FUNCTION_CONTEXT_SOURCE_TYPE = string;\n\n// Path: model/attributes/gcp/gcp__function__context__specversion.json\n\n/**\n * The CloudEvents specification version of the GCP Cloud Function event `gcp.function.context.specversion`\n *\n * Attribute Value Type: `string` {@link GCP_FUNCTION_CONTEXT_SPECVERSION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"1.0\"\n */\nexport const GCP_FUNCTION_CONTEXT_SPECVERSION = 'gcp.function.context.specversion';\n\n/**\n * Type for {@link GCP_FUNCTION_CONTEXT_SPECVERSION} gcp.function.context.specversion\n */\nexport type GCP_FUNCTION_CONTEXT_SPECVERSION_TYPE = string;\n\n// Path: model/attributes/gcp/gcp__function__context__time.json\n\n/**\n * The timestamp of the GCP Cloud Function event `gcp.function.context.time`\n *\n * Attribute Value Type: `string` {@link GCP_FUNCTION_CONTEXT_TIME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"2024-01-01T00:00:00.000Z\"\n */\nexport const GCP_FUNCTION_CONTEXT_TIME = 'gcp.function.context.time';\n\n/**\n * Type for {@link GCP_FUNCTION_CONTEXT_TIME} gcp.function.context.time\n */\nexport type GCP_FUNCTION_CONTEXT_TIME_TYPE = string;\n\n// Path: model/attributes/gcp/gcp__function__context__timestamp.json\n\n/**\n * The legacy timestamp of the GCP Cloud Function event `gcp.function.context.timestamp`\n *\n * Attribute Value Type: `string` {@link GCP_FUNCTION_CONTEXT_TIMESTAMP_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"2024-01-01T00:00:00.000Z\"\n */\nexport const GCP_FUNCTION_CONTEXT_TIMESTAMP = 'gcp.function.context.timestamp';\n\n/**\n * Type for {@link GCP_FUNCTION_CONTEXT_TIMESTAMP} gcp.function.context.timestamp\n */\nexport type GCP_FUNCTION_CONTEXT_TIMESTAMP_TYPE = string;\n\n// Path: model/attributes/gcp/gcp__function__context__type.json\n\n/**\n * The type of the GCP Cloud Function event context `gcp.function.context.type`\n *\n * Attribute Value Type: `string` {@link GCP_FUNCTION_CONTEXT_TYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"cloud_functions.context\"\n */\nexport const GCP_FUNCTION_CONTEXT_TYPE = 'gcp.function.context.type';\n\n/**\n * Type for {@link GCP_FUNCTION_CONTEXT_TYPE} gcp.function.context.type\n */\nexport type GCP_FUNCTION_CONTEXT_TYPE_TYPE = string;\n\n// Path: model/attributes/gcp/gcp__project__id.json\n\n/**\n * The ID of the project in GCP that this resource is associated with `gcp.project.id`\n *\n * Attribute Value Type: `string` {@link GCP_PROJECT_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"my-project-123\"\n */\nexport const GCP_PROJECT_ID = 'gcp.project.id';\n\n/**\n * Type for {@link GCP_PROJECT_ID} gcp.project.id\n */\nexport type GCP_PROJECT_ID_TYPE = string;\n\n// Path: model/attributes/gen_ai/gen_ai__agent__name.json\n\n/**\n * The name of the agent being used. `gen_ai.agent.name`\n *\n * Attribute Value Type: `string` {@link GEN_AI_AGENT_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"ResearchAssistant\"\n */\nexport const GEN_AI_AGENT_NAME = 'gen_ai.agent.name';\n\n/**\n * Type for {@link GEN_AI_AGENT_NAME} gen_ai.agent.name\n */\nexport type GEN_AI_AGENT_NAME_TYPE = string;\n\n// Path: model/attributes/gen_ai/gen_ai__context__utilization.json\n\n/**\n * The fraction of the model context window utilized by this generation. `gen_ai.context.utilization`\n *\n * Attribute Value Type: `number` {@link GEN_AI_CONTEXT_UTILIZATION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 0.75\n */\nexport const GEN_AI_CONTEXT_UTILIZATION = 'gen_ai.context.utilization';\n\n/**\n * Type for {@link GEN_AI_CONTEXT_UTILIZATION} gen_ai.context.utilization\n */\nexport type GEN_AI_CONTEXT_UTILIZATION_TYPE = number;\n\n// Path: model/attributes/gen_ai/gen_ai__context__window_size.json\n\n/**\n * The maximum context window size supported by the model for this generation. `gen_ai.context.window_size`\n *\n * Attribute Value Type: `number` {@link GEN_AI_CONTEXT_WINDOW_SIZE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 128000\n */\nexport const GEN_AI_CONTEXT_WINDOW_SIZE = 'gen_ai.context.window_size';\n\n/**\n * Type for {@link GEN_AI_CONTEXT_WINDOW_SIZE} gen_ai.context.window_size\n */\nexport type GEN_AI_CONTEXT_WINDOW_SIZE_TYPE = number;\n\n// Path: model/attributes/gen_ai/gen_ai__conversation__id.json\n\n/**\n * The unique identifier for a conversation (session, thread), used to store and correlate messages within this conversation. `gen_ai.conversation.id`\n *\n * Attribute Value Type: `string` {@link GEN_AI_CONVERSATION_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"conv_5j66UpCpwteGg4YSxUnt7lPY\"\n */\nexport const GEN_AI_CONVERSATION_ID = 'gen_ai.conversation.id';\n\n/**\n * Type for {@link GEN_AI_CONVERSATION_ID} gen_ai.conversation.id\n */\nexport type GEN_AI_CONVERSATION_ID_TYPE = string;\n\n// Path: model/attributes/gen_ai/gen_ai__cost__cache_creation__input_tokens.json\n\n/**\n * The cost of input tokens written to cache in USD. `gen_ai.cost.cache_creation.input_tokens`\n *\n * Attribute Value Type: `number` {@link GEN_AI_COST_CACHE_CREATION_INPUT_TOKENS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 12.34\n */\nexport const GEN_AI_COST_CACHE_CREATION_INPUT_TOKENS = 'gen_ai.cost.cache_creation.input_tokens';\n\n/**\n * Type for {@link GEN_AI_COST_CACHE_CREATION_INPUT_TOKENS} gen_ai.cost.cache_creation.input_tokens\n */\nexport type GEN_AI_COST_CACHE_CREATION_INPUT_TOKENS_TYPE = number;\n\n// Path: model/attributes/gen_ai/gen_ai__cost__cache_read__input_tokens.json\n\n/**\n * The cost of cached input tokens in USD. `gen_ai.cost.cache_read.input_tokens`\n *\n * Attribute Value Type: `number` {@link GEN_AI_COST_CACHE_READ_INPUT_TOKENS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 12.34\n */\nexport const GEN_AI_COST_CACHE_READ_INPUT_TOKENS = 'gen_ai.cost.cache_read.input_tokens';\n\n/**\n * Type for {@link GEN_AI_COST_CACHE_READ_INPUT_TOKENS} gen_ai.cost.cache_read.input_tokens\n */\nexport type GEN_AI_COST_CACHE_READ_INPUT_TOKENS_TYPE = number;\n\n// Path: model/attributes/gen_ai/gen_ai__cost__input_tokens.json\n\n/**\n * The total cost of all input tokens in USD (includes cached and cache creation tokens). `gen_ai.cost.input_tokens`\n *\n * Attribute Value Type: `number` {@link GEN_AI_COST_INPUT_TOKENS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 123.45\n */\nexport const GEN_AI_COST_INPUT_TOKENS = 'gen_ai.cost.input_tokens';\n\n/**\n * Type for {@link GEN_AI_COST_INPUT_TOKENS} gen_ai.cost.input_tokens\n */\nexport type GEN_AI_COST_INPUT_TOKENS_TYPE = number;\n\n// Path: model/attributes/gen_ai/gen_ai__cost__output_tokens.json\n\n/**\n * The total cost of all output tokens in USD (includes reasoning tokens). `gen_ai.cost.output_tokens`\n *\n * Attribute Value Type: `number` {@link GEN_AI_COST_OUTPUT_TOKENS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 123.45\n */\nexport const GEN_AI_COST_OUTPUT_TOKENS = 'gen_ai.cost.output_tokens';\n\n/**\n * Type for {@link GEN_AI_COST_OUTPUT_TOKENS} gen_ai.cost.output_tokens\n */\nexport type GEN_AI_COST_OUTPUT_TOKENS_TYPE = number;\n\n// Path: model/attributes/gen_ai/gen_ai__cost__reasoning__output_tokens.json\n\n/**\n * The cost of reasoning output tokens in USD. `gen_ai.cost.reasoning.output_tokens`\n *\n * Attribute Value Type: `number` {@link GEN_AI_COST_REASONING_OUTPUT_TOKENS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 12.34\n */\nexport const GEN_AI_COST_REASONING_OUTPUT_TOKENS = 'gen_ai.cost.reasoning.output_tokens';\n\n/**\n * Type for {@link GEN_AI_COST_REASONING_OUTPUT_TOKENS} gen_ai.cost.reasoning.output_tokens\n */\nexport type GEN_AI_COST_REASONING_OUTPUT_TOKENS_TYPE = number;\n\n// Path: model/attributes/gen_ai/gen_ai__cost__total_tokens.json\n\n/**\n * The total cost for the tokens used. `gen_ai.cost.total_tokens`\n *\n * Attribute Value Type: `number` {@link GEN_AI_COST_TOTAL_TOKENS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link AI_TOTAL_COST} `ai.total_cost`\n *\n * @example 12.34\n */\nexport const GEN_AI_COST_TOTAL_TOKENS = 'gen_ai.cost.total_tokens';\n\n/**\n * Type for {@link GEN_AI_COST_TOTAL_TOKENS} gen_ai.cost.total_tokens\n */\nexport type GEN_AI_COST_TOTAL_TOKENS_TYPE = number;\n\n// Path: model/attributes/gen_ai/gen_ai__embeddings__input.json\n\n/**\n * The input to the embeddings model. `gen_ai.embeddings.input`\n *\n * Attribute Value Type: `string` {@link GEN_AI_EMBEDDINGS_INPUT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"What's the weather in Paris?\"\n */\nexport const GEN_AI_EMBEDDINGS_INPUT = 'gen_ai.embeddings.input';\n\n/**\n * Type for {@link GEN_AI_EMBEDDINGS_INPUT} gen_ai.embeddings.input\n */\nexport type GEN_AI_EMBEDDINGS_INPUT_TYPE = string;\n\n// Path: model/attributes/gen_ai/gen_ai__function_id.json\n\n/**\n * Framework-specific tracing label for the execution of a function or other unit of execution in a generative AI system. `gen_ai.function_id`\n *\n * Attribute Value Type: `string` {@link GEN_AI_FUNCTION_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"my-awesome-function\"\n */\nexport const GEN_AI_FUNCTION_ID = 'gen_ai.function_id';\n\n/**\n * Type for {@link GEN_AI_FUNCTION_ID} gen_ai.function_id\n */\nexport type GEN_AI_FUNCTION_ID_TYPE = string;\n\n// Path: model/attributes/gen_ai/gen_ai__input__messages.json\n\n/**\n * 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:\"...\"}`. `gen_ai.input.messages`\n *\n * Attribute Value Type: `string` {@link GEN_AI_INPUT_MESSAGES_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link AI_TEXTS} `ai.texts`\n *\n * @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\u00B0F\\\"}]}]\"\n */\nexport const GEN_AI_INPUT_MESSAGES = 'gen_ai.input.messages';\n\n/**\n * Type for {@link GEN_AI_INPUT_MESSAGES} gen_ai.input.messages\n */\nexport type GEN_AI_INPUT_MESSAGES_TYPE = string;\n\n// Path: model/attributes/gen_ai/gen_ai__operation__name.json\n\n/**\n * 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. `gen_ai.operation.name`\n *\n * Attribute Value Type: `string` {@link GEN_AI_OPERATION_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"chat\"\n */\nexport const GEN_AI_OPERATION_NAME = 'gen_ai.operation.name';\n\n/**\n * Type for {@link GEN_AI_OPERATION_NAME} gen_ai.operation.name\n */\nexport type GEN_AI_OPERATION_NAME_TYPE = string;\n\n// Path: model/attributes/gen_ai/gen_ai__operation__type.json\n\n/**\n * 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 `gen_ai.operation.type`\n *\n * Attribute Value Type: `string` {@link GEN_AI_OPERATION_TYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"tool\"\n */\nexport const GEN_AI_OPERATION_TYPE = 'gen_ai.operation.type';\n\n/**\n * Type for {@link GEN_AI_OPERATION_TYPE} gen_ai.operation.type\n */\nexport type GEN_AI_OPERATION_TYPE_TYPE = string;\n\n// Path: model/attributes/gen_ai/gen_ai__output__messages.json\n\n/**\n * 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. `gen_ai.output.messages`\n *\n * Attribute Value Type: `string` {@link GEN_AI_OUTPUT_MESSAGES_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"[{\\\"role\\\": \\\"assistant\\\", \\\"parts\\\": [{\\\"type\\\": \\\"text\\\", \\\"content\\\": \\\"The weather in Paris is currently rainy with a temperature of 57\u00B0F.\\\"}], \\\"finish_reason\\\": \\\"stop\\\"}]\"\n */\nexport const GEN_AI_OUTPUT_MESSAGES = 'gen_ai.output.messages';\n\n/**\n * Type for {@link GEN_AI_OUTPUT_MESSAGES} gen_ai.output.messages\n */\nexport type GEN_AI_OUTPUT_MESSAGES_TYPE = string;\n\n// Path: model/attributes/gen_ai/gen_ai__pipeline__name.json\n\n/**\n * Name of the AI pipeline or chain being executed. `gen_ai.pipeline.name`\n *\n * Attribute Value Type: `string` {@link GEN_AI_PIPELINE_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link AI_PIPELINE_NAME} `ai.pipeline.name`\n *\n * @example \"Autofix Pipeline\"\n */\nexport const GEN_AI_PIPELINE_NAME = 'gen_ai.pipeline.name';\n\n/**\n * Type for {@link GEN_AI_PIPELINE_NAME} gen_ai.pipeline.name\n */\nexport type GEN_AI_PIPELINE_NAME_TYPE = string;\n\n// Path: model/attributes/gen_ai/gen_ai__prompt.json\n\n/**\n * The input messages sent to the model `gen_ai.prompt`\n *\n * Attribute Value Type: `string` {@link GEN_AI_PROMPT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @deprecated - Deprecated from OTEL, use gen_ai.input.messages with the new format instead.\n * @example \"[{\\\"role\\\": \\\"user\\\", \\\"message\\\": \\\"hello\\\"}]\"\n */\nexport const GEN_AI_PROMPT = 'gen_ai.prompt';\n\n/**\n * Type for {@link GEN_AI_PROMPT} gen_ai.prompt\n */\nexport type GEN_AI_PROMPT_TYPE = string;\n\n// Path: model/attributes/gen_ai/gen_ai__prompt__name.json\n\n/**\n * The name of the prompt that uniquely identifies it. `gen_ai.prompt.name`\n *\n * Attribute Value Type: `string` {@link GEN_AI_PROMPT_NAME_TYPE}\n *\n * Apply Scrubbing: manual - Prompt names may reveal user behavior patterns or sensitive operations\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link MCP_PROMPT_NAME} `mcp.prompt.name`\n *\n * @example \"summarize_text\"\n */\nexport const GEN_AI_PROMPT_NAME = 'gen_ai.prompt.name';\n\n/**\n * Type for {@link GEN_AI_PROMPT_NAME} gen_ai.prompt.name\n */\nexport type GEN_AI_PROMPT_NAME_TYPE = string;\n\n// Path: model/attributes/gen_ai/gen_ai__provider__name.json\n\n/**\n * The Generative AI provider as identified by the client or server instrumentation. `gen_ai.provider.name`\n *\n * Attribute Value Type: `string` {@link GEN_AI_PROVIDER_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link AI_MODEL_PROVIDER} `ai.model.provider`, {@link GEN_AI_SYSTEM} `gen_ai.system`\n *\n * @example \"openai\"\n */\nexport const GEN_AI_PROVIDER_NAME = 'gen_ai.provider.name';\n\n/**\n * Type for {@link GEN_AI_PROVIDER_NAME} gen_ai.provider.name\n */\nexport type GEN_AI_PROVIDER_NAME_TYPE = string;\n\n// Path: model/attributes/gen_ai/gen_ai__request__available_tools.json\n\n/**\n * The available tools for the model. It has to be a stringified version of an array of objects. `gen_ai.request.available_tools`\n *\n * Attribute Value Type: `string` {@link GEN_AI_REQUEST_AVAILABLE_TOOLS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated Use {@link GEN_AI_TOOL_DEFINITIONS} (gen_ai.tool.definitions) instead\n * @example \"[{\\\"name\\\": \\\"get_weather\\\", \\\"description\\\": \\\"Get the weather for a given location\\\"}, {\\\"name\\\": \\\"get_news\\\", \\\"description\\\": \\\"Get the news for a given topic\\\"}]\"\n */\nexport const GEN_AI_REQUEST_AVAILABLE_TOOLS = 'gen_ai.request.available_tools';\n\n/**\n * Type for {@link GEN_AI_REQUEST_AVAILABLE_TOOLS} gen_ai.request.available_tools\n */\nexport type GEN_AI_REQUEST_AVAILABLE_TOOLS_TYPE = string;\n\n// Path: model/attributes/gen_ai/gen_ai__request__frequency_penalty.json\n\n/**\n * 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. `gen_ai.request.frequency_penalty`\n *\n * Attribute Value Type: `number` {@link GEN_AI_REQUEST_FREQUENCY_PENALTY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link AI_FREQUENCY_PENALTY} `ai.frequency_penalty`\n *\n * @example 0.5\n */\nexport const GEN_AI_REQUEST_FREQUENCY_PENALTY = 'gen_ai.request.frequency_penalty';\n\n/**\n * Type for {@link GEN_AI_REQUEST_FREQUENCY_PENALTY} gen_ai.request.frequency_penalty\n */\nexport type GEN_AI_REQUEST_FREQUENCY_PENALTY_TYPE = number;\n\n// Path: model/attributes/gen_ai/gen_ai__request__max_tokens.json\n\n/**\n * The maximum number of tokens to generate in the response. `gen_ai.request.max_tokens`\n *\n * Attribute Value Type: `number` {@link GEN_AI_REQUEST_MAX_TOKENS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example 2048\n */\nexport const GEN_AI_REQUEST_MAX_TOKENS = 'gen_ai.request.max_tokens';\n\n/**\n * Type for {@link GEN_AI_REQUEST_MAX_TOKENS} gen_ai.request.max_tokens\n */\nexport type GEN_AI_REQUEST_MAX_TOKENS_TYPE = number;\n\n// Path: model/attributes/gen_ai/gen_ai__request__messages.json\n\n/**\n * 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:\"...\"}`. `gen_ai.request.messages`\n *\n * Attribute Value Type: `string` {@link GEN_AI_REQUEST_MESSAGES_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link AI_INPUT_MESSAGES} `ai.input_messages`\n *\n * @deprecated Use {@link GEN_AI_INPUT_MESSAGES} (gen_ai.input.messages) instead\n * @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\\\"}}]\"\n */\nexport const GEN_AI_REQUEST_MESSAGES = 'gen_ai.request.messages';\n\n/**\n * Type for {@link GEN_AI_REQUEST_MESSAGES} gen_ai.request.messages\n */\nexport type GEN_AI_REQUEST_MESSAGES_TYPE = string;\n\n// Path: model/attributes/gen_ai/gen_ai__request__model.json\n\n/**\n * The model identifier being used for the request. `gen_ai.request.model`\n *\n * Attribute Value Type: `string` {@link GEN_AI_REQUEST_MODEL_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"gpt-4-turbo-preview\"\n */\nexport const GEN_AI_REQUEST_MODEL = 'gen_ai.request.model';\n\n/**\n * Type for {@link GEN_AI_REQUEST_MODEL} gen_ai.request.model\n */\nexport type GEN_AI_REQUEST_MODEL_TYPE = string;\n\n// Path: model/attributes/gen_ai/gen_ai__request__presence_penalty.json\n\n/**\n * 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. `gen_ai.request.presence_penalty`\n *\n * Attribute Value Type: `number` {@link GEN_AI_REQUEST_PRESENCE_PENALTY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link AI_PRESENCE_PENALTY} `ai.presence_penalty`\n *\n * @example 0.5\n */\nexport const GEN_AI_REQUEST_PRESENCE_PENALTY = 'gen_ai.request.presence_penalty';\n\n/**\n * Type for {@link GEN_AI_REQUEST_PRESENCE_PENALTY} gen_ai.request.presence_penalty\n */\nexport type GEN_AI_REQUEST_PRESENCE_PENALTY_TYPE = number;\n\n// Path: model/attributes/gen_ai/gen_ai__request__reasoning_effort.json\n\n/**\n * Constrains the effort on reasoning for reasoning models. Supported values vary by provider. `gen_ai.request.reasoning_effort`\n *\n * Attribute Value Type: `string` {@link GEN_AI_REQUEST_REASONING_EFFORT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"high\"\n */\nexport const GEN_AI_REQUEST_REASONING_EFFORT = 'gen_ai.request.reasoning_effort';\n\n/**\n * Type for {@link GEN_AI_REQUEST_REASONING_EFFORT} gen_ai.request.reasoning_effort\n */\nexport type GEN_AI_REQUEST_REASONING_EFFORT_TYPE = string;\n\n// Path: model/attributes/gen_ai/gen_ai__request__seed.json\n\n/**\n * The seed, ideally models given the same seed and same other parameters will produce the exact same output. `gen_ai.request.seed`\n *\n * Attribute Value Type: `string` {@link GEN_AI_REQUEST_SEED_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link AI_SEED} `ai.seed`\n *\n * @example \"1234567890\"\n */\nexport const GEN_AI_REQUEST_SEED = 'gen_ai.request.seed';\n\n/**\n * Type for {@link GEN_AI_REQUEST_SEED} gen_ai.request.seed\n */\nexport type GEN_AI_REQUEST_SEED_TYPE = string;\n\n// Path: model/attributes/gen_ai/gen_ai__request__stop_sequences.json\n\n/**\n * List of sequences that the model will use to stop generating further tokens. `gen_ai.request.stop_sequences`\n *\n * Attribute Value Type: `Array` {@link GEN_AI_REQUEST_STOP_SEQUENCES_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example [\"forest\",\"lived\"]\n */\nexport const GEN_AI_REQUEST_STOP_SEQUENCES = 'gen_ai.request.stop_sequences';\n\n/**\n * Type for {@link GEN_AI_REQUEST_STOP_SEQUENCES} gen_ai.request.stop_sequences\n */\nexport type GEN_AI_REQUEST_STOP_SEQUENCES_TYPE = Array;\n\n// Path: model/attributes/gen_ai/gen_ai__request__temperature.json\n\n/**\n * For an AI model call, the temperature parameter. Temperature essentially means how random the output will be. `gen_ai.request.temperature`\n *\n * Attribute Value Type: `number` {@link GEN_AI_REQUEST_TEMPERATURE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link AI_TEMPERATURE} `ai.temperature`\n *\n * @example 0.1\n */\nexport const GEN_AI_REQUEST_TEMPERATURE = 'gen_ai.request.temperature';\n\n/**\n * Type for {@link GEN_AI_REQUEST_TEMPERATURE} gen_ai.request.temperature\n */\nexport type GEN_AI_REQUEST_TEMPERATURE_TYPE = number;\n\n// Path: model/attributes/gen_ai/gen_ai__request__top_k.json\n\n/**\n * 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). `gen_ai.request.top_k`\n *\n * Attribute Value Type: `number` {@link GEN_AI_REQUEST_TOP_K_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link AI_TOP_K} `ai.top_k`\n *\n * @example 35\n */\nexport const GEN_AI_REQUEST_TOP_K = 'gen_ai.request.top_k';\n\n/**\n * Type for {@link GEN_AI_REQUEST_TOP_K} gen_ai.request.top_k\n */\nexport type GEN_AI_REQUEST_TOP_K_TYPE = number;\n\n// Path: model/attributes/gen_ai/gen_ai__request__top_p.json\n\n/**\n * 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). `gen_ai.request.top_p`\n *\n * Attribute Value Type: `number` {@link GEN_AI_REQUEST_TOP_P_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link AI_TOP_P} `ai.top_p`\n *\n * @example 0.7\n */\nexport const GEN_AI_REQUEST_TOP_P = 'gen_ai.request.top_p';\n\n/**\n * Type for {@link GEN_AI_REQUEST_TOP_P} gen_ai.request.top_p\n */\nexport type GEN_AI_REQUEST_TOP_P_TYPE = number;\n\n// Path: model/attributes/gen_ai/gen_ai__response__finish_reasons.json\n\n/**\n * The reason why the model stopped generating. `gen_ai.response.finish_reasons`\n *\n * Attribute Value Type: `string` {@link GEN_AI_RESPONSE_FINISH_REASONS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link AI_FINISH_REASON} `ai.finish_reason`\n *\n * @example \"COMPLETE\"\n */\nexport const GEN_AI_RESPONSE_FINISH_REASONS = 'gen_ai.response.finish_reasons';\n\n/**\n * Type for {@link GEN_AI_RESPONSE_FINISH_REASONS} gen_ai.response.finish_reasons\n */\nexport type GEN_AI_RESPONSE_FINISH_REASONS_TYPE = string;\n\n// Path: model/attributes/gen_ai/gen_ai__response__id.json\n\n/**\n * Unique identifier for the completion. `gen_ai.response.id`\n *\n * Attribute Value Type: `string` {@link GEN_AI_RESPONSE_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link AI_GENERATION_ID} `ai.generation_id`\n *\n * @example \"gen_123abc\"\n */\nexport const GEN_AI_RESPONSE_ID = 'gen_ai.response.id';\n\n/**\n * Type for {@link GEN_AI_RESPONSE_ID} gen_ai.response.id\n */\nexport type GEN_AI_RESPONSE_ID_TYPE = string;\n\n// Path: model/attributes/gen_ai/gen_ai__response__model.json\n\n/**\n * The vendor-specific ID of the model used. `gen_ai.response.model`\n *\n * Attribute Value Type: `string` {@link GEN_AI_RESPONSE_MODEL_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link AI_MODEL_ID} `ai.model_id`\n *\n * @example \"gpt-4\"\n */\nexport const GEN_AI_RESPONSE_MODEL = 'gen_ai.response.model';\n\n/**\n * Type for {@link GEN_AI_RESPONSE_MODEL} gen_ai.response.model\n */\nexport type GEN_AI_RESPONSE_MODEL_TYPE = string;\n\n// Path: model/attributes/gen_ai/gen_ai__response__streaming.json\n\n/**\n * Whether or not the AI model call's response was streamed back asynchronously `gen_ai.response.streaming`\n *\n * Attribute Value Type: `boolean` {@link GEN_AI_RESPONSE_STREAMING_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link AI_STREAMING} `ai.streaming`\n *\n * @example true\n */\nexport const GEN_AI_RESPONSE_STREAMING = 'gen_ai.response.streaming';\n\n/**\n * Type for {@link GEN_AI_RESPONSE_STREAMING} gen_ai.response.streaming\n */\nexport type GEN_AI_RESPONSE_STREAMING_TYPE = boolean;\n\n// Path: model/attributes/gen_ai/gen_ai__response__text.json\n\n/**\n * The model's response text messages. It has to be a stringified version of an array of response text messages. `gen_ai.response.text`\n *\n * Attribute Value Type: `string` {@link GEN_AI_RESPONSE_TEXT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated Use {@link GEN_AI_OUTPUT_MESSAGES} (gen_ai.output.messages) instead\n * @example \"[\\\"The weather in Paris is rainy and overcast, with temperatures around 57\u00B0F\\\", \\\"The weather in London is sunny and warm, with temperatures around 65\u00B0F\\\"]\"\n */\nexport const GEN_AI_RESPONSE_TEXT = 'gen_ai.response.text';\n\n/**\n * Type for {@link GEN_AI_RESPONSE_TEXT} gen_ai.response.text\n */\nexport type GEN_AI_RESPONSE_TEXT_TYPE = string;\n\n// Path: model/attributes/gen_ai/gen_ai__response__time_to_first_chunk.json\n\n/**\n * Time in seconds when the first response content chunk arrived in streaming responses. `gen_ai.response.time_to_first_chunk`\n *\n * Attribute Value Type: `number` {@link GEN_AI_RESPONSE_TIME_TO_FIRST_CHUNK_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_RESPONSE_TIME_TO_FIRST_TOKEN} `gen_ai.response.time_to_first_token`\n *\n * @example 0.6853435\n */\nexport const GEN_AI_RESPONSE_TIME_TO_FIRST_CHUNK = 'gen_ai.response.time_to_first_chunk';\n\n/**\n * Type for {@link GEN_AI_RESPONSE_TIME_TO_FIRST_CHUNK} gen_ai.response.time_to_first_chunk\n */\nexport type GEN_AI_RESPONSE_TIME_TO_FIRST_CHUNK_TYPE = number;\n\n// Path: model/attributes/gen_ai/gen_ai__response__time_to_first_token.json\n\n/**\n * Time in seconds when the first response content chunk arrived in streaming responses. `gen_ai.response.time_to_first_token`\n *\n * Attribute Value Type: `number` {@link GEN_AI_RESPONSE_TIME_TO_FIRST_TOKEN_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_RESPONSE_TIME_TO_FIRST_CHUNK} `gen_ai.response.time_to_first_chunk`\n *\n * @deprecated Use {@link GEN_AI_RESPONSE_TIME_TO_FIRST_CHUNK} (gen_ai.response.time_to_first_chunk) instead\n * @example 0.6853435\n */\nexport const GEN_AI_RESPONSE_TIME_TO_FIRST_TOKEN = 'gen_ai.response.time_to_first_token';\n\n/**\n * Type for {@link GEN_AI_RESPONSE_TIME_TO_FIRST_TOKEN} gen_ai.response.time_to_first_token\n */\nexport type GEN_AI_RESPONSE_TIME_TO_FIRST_TOKEN_TYPE = number;\n\n// Path: model/attributes/gen_ai/gen_ai__response__tokens_per_second.json\n\n/**\n * The total output tokens per seconds throughput `gen_ai.response.tokens_per_second`\n *\n * Attribute Value Type: `number` {@link GEN_AI_RESPONSE_TOKENS_PER_SECOND_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 12345.67\n */\nexport const GEN_AI_RESPONSE_TOKENS_PER_SECOND = 'gen_ai.response.tokens_per_second';\n\n/**\n * Type for {@link GEN_AI_RESPONSE_TOKENS_PER_SECOND} gen_ai.response.tokens_per_second\n */\nexport type GEN_AI_RESPONSE_TOKENS_PER_SECOND_TYPE = number;\n\n// Path: model/attributes/gen_ai/gen_ai__response__tool_calls.json\n\n/**\n * The tool calls in the model's response. It has to be a stringified version of an array of objects. `gen_ai.response.tool_calls`\n *\n * Attribute Value Type: `string` {@link GEN_AI_RESPONSE_TOOL_CALLS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated Use {@link GEN_AI_OUTPUT_MESSAGES} (gen_ai.output.messages) instead\n * @example \"[{\\\"name\\\": \\\"get_weather\\\", \\\"arguments\\\": {\\\"location\\\": \\\"Paris\\\"}}]\"\n */\nexport const GEN_AI_RESPONSE_TOOL_CALLS = 'gen_ai.response.tool_calls';\n\n/**\n * Type for {@link GEN_AI_RESPONSE_TOOL_CALLS} gen_ai.response.tool_calls\n */\nexport type GEN_AI_RESPONSE_TOOL_CALLS_TYPE = string;\n\n// Path: model/attributes/gen_ai/gen_ai__system.json\n\n/**\n * The provider of the model. `gen_ai.system`\n *\n * Attribute Value Type: `string` {@link GEN_AI_SYSTEM_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link AI_MODEL_PROVIDER} `ai.model.provider`, {@link GEN_AI_PROVIDER_NAME} `gen_ai.provider.name`\n *\n * @deprecated Use {@link GEN_AI_PROVIDER_NAME} (gen_ai.provider.name) instead\n * @example \"openai\"\n */\nexport const GEN_AI_SYSTEM = 'gen_ai.system';\n\n/**\n * Type for {@link GEN_AI_SYSTEM} gen_ai.system\n */\nexport type GEN_AI_SYSTEM_TYPE = string;\n\n// Path: model/attributes/gen_ai/gen_ai__system_instructions.json\n\n/**\n * The system instructions passed to the model. `gen_ai.system_instructions`\n *\n * Attribute Value Type: `string` {@link GEN_AI_SYSTEM_INSTRUCTIONS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link AI_PREAMBLE} `ai.preamble`\n *\n * @example \"You are a helpful assistant\"\n */\nexport const GEN_AI_SYSTEM_INSTRUCTIONS = 'gen_ai.system_instructions';\n\n/**\n * Type for {@link GEN_AI_SYSTEM_INSTRUCTIONS} gen_ai.system_instructions\n */\nexport type GEN_AI_SYSTEM_INSTRUCTIONS_TYPE = string;\n\n// Path: model/attributes/gen_ai/gen_ai__system__message.json\n\n/**\n * The system instructions passed to the model. `gen_ai.system.message`\n *\n * Attribute Value Type: `string` {@link GEN_AI_SYSTEM_MESSAGE_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated Use {@link GEN_AI_SYSTEM_INSTRUCTIONS} (gen_ai.system_instructions) instead\n * @example \"You are a helpful assistant\"\n */\nexport const GEN_AI_SYSTEM_MESSAGE = 'gen_ai.system.message';\n\n/**\n * Type for {@link GEN_AI_SYSTEM_MESSAGE} gen_ai.system.message\n */\nexport type GEN_AI_SYSTEM_MESSAGE_TYPE = string;\n\n// Path: model/attributes/gen_ai/gen_ai__tool__call__arguments.json\n\n/**\n * The arguments of the tool call. It has to be a stringified version of the arguments to the tool. `gen_ai.tool.call.arguments`\n *\n * Attribute Value Type: `string` {@link GEN_AI_TOOL_CALL_ARGUMENTS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_TOOL_INPUT} `gen_ai.tool.input`\n *\n * @example \"{\\\"location\\\": \\\"Paris\\\"}\"\n */\nexport const GEN_AI_TOOL_CALL_ARGUMENTS = 'gen_ai.tool.call.arguments';\n\n/**\n * Type for {@link GEN_AI_TOOL_CALL_ARGUMENTS} gen_ai.tool.call.arguments\n */\nexport type GEN_AI_TOOL_CALL_ARGUMENTS_TYPE = string;\n\n// Path: model/attributes/gen_ai/gen_ai__tool__call__result.json\n\n/**\n * The result of the tool call. It has to be a stringified version of the result of the tool. `gen_ai.tool.call.result`\n *\n * Attribute Value Type: `string` {@link GEN_AI_TOOL_CALL_RESULT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_TOOL_OUTPUT} `gen_ai.tool.output`, {@link GEN_AI_TOOL_MESSAGE} `gen_ai.tool.message`, {@link MCP_TOOL_RESULT_CONTENT} `mcp.tool.result.content`\n *\n * @example \"rainy, 57\u00B0F\"\n */\nexport const GEN_AI_TOOL_CALL_RESULT = 'gen_ai.tool.call.result';\n\n/**\n * Type for {@link GEN_AI_TOOL_CALL_RESULT} gen_ai.tool.call.result\n */\nexport type GEN_AI_TOOL_CALL_RESULT_TYPE = string;\n\n// Path: model/attributes/gen_ai/gen_ai__tool__definitions.json\n\n/**\n * The list of source system tool definitions available to the GenAI agent or model. `gen_ai.tool.definitions`\n *\n * Attribute Value Type: `string` {@link GEN_AI_TOOL_DEFINITIONS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @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\\\"]}}]\"\n */\nexport const GEN_AI_TOOL_DEFINITIONS = 'gen_ai.tool.definitions';\n\n/**\n * Type for {@link GEN_AI_TOOL_DEFINITIONS} gen_ai.tool.definitions\n */\nexport type GEN_AI_TOOL_DEFINITIONS_TYPE = string;\n\n// Path: model/attributes/gen_ai/gen_ai__tool__description.json\n\n/**\n * The description of the tool being used. `gen_ai.tool.description`\n *\n * Attribute Value Type: `string` {@link GEN_AI_TOOL_DESCRIPTION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"Searches the web for current information about a topic\"\n */\nexport const GEN_AI_TOOL_DESCRIPTION = 'gen_ai.tool.description';\n\n/**\n * Type for {@link GEN_AI_TOOL_DESCRIPTION} gen_ai.tool.description\n */\nexport type GEN_AI_TOOL_DESCRIPTION_TYPE = string;\n\n// Path: model/attributes/gen_ai/gen_ai__tool__input.json\n\n/**\n * The input of the tool being used. It has to be a stringified version of the input to the tool. `gen_ai.tool.input`\n *\n * Attribute Value Type: `string` {@link GEN_AI_TOOL_INPUT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_TOOL_CALL_ARGUMENTS} `gen_ai.tool.call.arguments`\n *\n * @deprecated Use {@link GEN_AI_TOOL_CALL_ARGUMENTS} (gen_ai.tool.call.arguments) instead\n * @example \"{\\\"location\\\": \\\"Paris\\\"}\"\n */\nexport const GEN_AI_TOOL_INPUT = 'gen_ai.tool.input';\n\n/**\n * Type for {@link GEN_AI_TOOL_INPUT} gen_ai.tool.input\n */\nexport type GEN_AI_TOOL_INPUT_TYPE = string;\n\n// Path: model/attributes/gen_ai/gen_ai__tool__message.json\n\n/**\n * The response from a tool or function call passed to the model. `gen_ai.tool.message`\n *\n * Attribute Value Type: `string` {@link GEN_AI_TOOL_MESSAGE_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_TOOL_CALL_RESULT} `gen_ai.tool.call.result`, {@link GEN_AI_TOOL_OUTPUT} `gen_ai.tool.output`, {@link MCP_TOOL_RESULT_CONTENT} `mcp.tool.result.content`\n *\n * @deprecated Use {@link GEN_AI_TOOL_CALL_RESULT} (gen_ai.tool.call.result) instead\n * @example \"rainy, 57\u00B0F\"\n */\nexport const GEN_AI_TOOL_MESSAGE = 'gen_ai.tool.message';\n\n/**\n * Type for {@link GEN_AI_TOOL_MESSAGE} gen_ai.tool.message\n */\nexport type GEN_AI_TOOL_MESSAGE_TYPE = string;\n\n// Path: model/attributes/gen_ai/gen_ai__tool__name.json\n\n/**\n * Name of the tool utilized by the agent. `gen_ai.tool.name`\n *\n * Attribute Value Type: `string` {@link GEN_AI_TOOL_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link AI_FUNCTION_CALL} `ai.function_call`, {@link MCP_TOOL_NAME} `mcp.tool.name`\n *\n * @example \"Flights\"\n */\nexport const GEN_AI_TOOL_NAME = 'gen_ai.tool.name';\n\n/**\n * Type for {@link GEN_AI_TOOL_NAME} gen_ai.tool.name\n */\nexport type GEN_AI_TOOL_NAME_TYPE = string;\n\n// Path: model/attributes/gen_ai/gen_ai__tool__output.json\n\n/**\n * The output of the tool being used. It has to be a stringified version of the output of the tool. `gen_ai.tool.output`\n *\n * Attribute Value Type: `string` {@link GEN_AI_TOOL_OUTPUT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_TOOL_CALL_RESULT} `gen_ai.tool.call.result`, {@link GEN_AI_TOOL_MESSAGE} `gen_ai.tool.message`, {@link MCP_TOOL_RESULT_CONTENT} `mcp.tool.result.content`\n *\n * @deprecated Use {@link GEN_AI_TOOL_CALL_RESULT} (gen_ai.tool.call.result) instead\n * @example \"rainy, 57\u00B0F\"\n */\nexport const GEN_AI_TOOL_OUTPUT = 'gen_ai.tool.output';\n\n/**\n * Type for {@link GEN_AI_TOOL_OUTPUT} gen_ai.tool.output\n */\nexport type GEN_AI_TOOL_OUTPUT_TYPE = string;\n\n// Path: model/attributes/gen_ai/gen_ai__tool__type.json\n\n/**\n * The type of tool being used. `gen_ai.tool.type`\n *\n * Attribute Value Type: `string` {@link GEN_AI_TOOL_TYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @deprecated - The gen_ai.tool.type attribute is deprecated and should no longer be set.\n * @example \"function\"\n */\nexport const GEN_AI_TOOL_TYPE = 'gen_ai.tool.type';\n\n/**\n * Type for {@link GEN_AI_TOOL_TYPE} gen_ai.tool.type\n */\nexport type GEN_AI_TOOL_TYPE_TYPE = string;\n\n// Path: model/attributes/gen_ai/gen_ai__usage__cache_creation__input_tokens.json\n\n/**\n * The number of tokens written to the cache when processing the AI input (prompt). `gen_ai.usage.cache_creation.input_tokens`\n *\n * Attribute Value Type: `number` {@link GEN_AI_USAGE_CACHE_CREATION_INPUT_TOKENS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_USAGE_INPUT_TOKENS_CACHE_WRITE} `gen_ai.usage.input_tokens.cache_write`\n *\n * @example 100\n */\nexport const GEN_AI_USAGE_CACHE_CREATION_INPUT_TOKENS = 'gen_ai.usage.cache_creation.input_tokens';\n\n/**\n * Type for {@link GEN_AI_USAGE_CACHE_CREATION_INPUT_TOKENS} gen_ai.usage.cache_creation.input_tokens\n */\nexport type GEN_AI_USAGE_CACHE_CREATION_INPUT_TOKENS_TYPE = number;\n\n// Path: model/attributes/gen_ai/gen_ai__usage__cache_read__input_tokens.json\n\n/**\n * The number of cached tokens used to process the AI input (prompt). `gen_ai.usage.cache_read.input_tokens`\n *\n * Attribute Value Type: `number` {@link GEN_AI_USAGE_CACHE_READ_INPUT_TOKENS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_USAGE_INPUT_TOKENS_CACHED} `gen_ai.usage.input_tokens.cached`\n *\n * @example 50\n */\nexport const GEN_AI_USAGE_CACHE_READ_INPUT_TOKENS = 'gen_ai.usage.cache_read.input_tokens';\n\n/**\n * Type for {@link GEN_AI_USAGE_CACHE_READ_INPUT_TOKENS} gen_ai.usage.cache_read.input_tokens\n */\nexport type GEN_AI_USAGE_CACHE_READ_INPUT_TOKENS_TYPE = number;\n\n// Path: model/attributes/gen_ai/gen_ai__usage__completion_tokens.json\n\n/**\n * The number of tokens used in the GenAI response (completion). `gen_ai.usage.completion_tokens`\n *\n * Attribute Value Type: `number` {@link GEN_AI_USAGE_COMPLETION_TOKENS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link AI_COMPLETION_TOKENS_USED} `ai.completion_tokens.used`, {@link GEN_AI_USAGE_OUTPUT_TOKENS} `gen_ai.usage.output_tokens`\n *\n * @deprecated Use {@link GEN_AI_USAGE_OUTPUT_TOKENS} (gen_ai.usage.output_tokens) instead\n * @example 10\n */\nexport const GEN_AI_USAGE_COMPLETION_TOKENS = 'gen_ai.usage.completion_tokens';\n\n/**\n * Type for {@link GEN_AI_USAGE_COMPLETION_TOKENS} gen_ai.usage.completion_tokens\n */\nexport type GEN_AI_USAGE_COMPLETION_TOKENS_TYPE = number;\n\n// Path: model/attributes/gen_ai/gen_ai__usage__input_tokens.json\n\n/**\n * The number of tokens used to process the AI input (prompt) including cached input tokens. `gen_ai.usage.input_tokens`\n *\n * Attribute Value Type: `number` {@link GEN_AI_USAGE_INPUT_TOKENS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link AI_PROMPT_TOKENS_USED} `ai.prompt_tokens.used`, {@link GEN_AI_USAGE_PROMPT_TOKENS} `gen_ai.usage.prompt_tokens`\n *\n * @example 10\n */\nexport const GEN_AI_USAGE_INPUT_TOKENS = 'gen_ai.usage.input_tokens';\n\n/**\n * Type for {@link GEN_AI_USAGE_INPUT_TOKENS} gen_ai.usage.input_tokens\n */\nexport type GEN_AI_USAGE_INPUT_TOKENS_TYPE = number;\n\n// Path: model/attributes/gen_ai/gen_ai__usage__input_tokens__cached.json\n\n/**\n * The number of cached tokens used to process the AI input (prompt). `gen_ai.usage.input_tokens.cached`\n *\n * Attribute Value Type: `number` {@link GEN_AI_USAGE_INPUT_TOKENS_CACHED_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_USAGE_CACHE_READ_INPUT_TOKENS} `gen_ai.usage.cache_read.input_tokens`\n *\n * @deprecated Use {@link GEN_AI_USAGE_CACHE_READ_INPUT_TOKENS} (gen_ai.usage.cache_read.input_tokens) instead\n * @example 50\n */\nexport const GEN_AI_USAGE_INPUT_TOKENS_CACHED = 'gen_ai.usage.input_tokens.cached';\n\n/**\n * Type for {@link GEN_AI_USAGE_INPUT_TOKENS_CACHED} gen_ai.usage.input_tokens.cached\n */\nexport type GEN_AI_USAGE_INPUT_TOKENS_CACHED_TYPE = number;\n\n// Path: model/attributes/gen_ai/gen_ai__usage__input_tokens__cache_write.json\n\n/**\n * The number of tokens written to the cache when processing the AI input (prompt). `gen_ai.usage.input_tokens.cache_write`\n *\n * Attribute Value Type: `number` {@link GEN_AI_USAGE_INPUT_TOKENS_CACHE_WRITE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_USAGE_CACHE_CREATION_INPUT_TOKENS} `gen_ai.usage.cache_creation.input_tokens`\n *\n * @deprecated Use {@link GEN_AI_USAGE_CACHE_CREATION_INPUT_TOKENS} (gen_ai.usage.cache_creation.input_tokens) instead\n * @example 100\n */\nexport const GEN_AI_USAGE_INPUT_TOKENS_CACHE_WRITE = 'gen_ai.usage.input_tokens.cache_write';\n\n/**\n * Type for {@link GEN_AI_USAGE_INPUT_TOKENS_CACHE_WRITE} gen_ai.usage.input_tokens.cache_write\n */\nexport type GEN_AI_USAGE_INPUT_TOKENS_CACHE_WRITE_TYPE = number;\n\n// Path: model/attributes/gen_ai/gen_ai__usage__output_tokens.json\n\n/**\n * The number of tokens used for creating the AI output (including reasoning tokens). `gen_ai.usage.output_tokens`\n *\n * Attribute Value Type: `number` {@link GEN_AI_USAGE_OUTPUT_TOKENS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link AI_COMPLETION_TOKENS_USED} `ai.completion_tokens.used`, {@link GEN_AI_USAGE_COMPLETION_TOKENS} `gen_ai.usage.completion_tokens`\n *\n * @example 10\n */\nexport const GEN_AI_USAGE_OUTPUT_TOKENS = 'gen_ai.usage.output_tokens';\n\n/**\n * Type for {@link GEN_AI_USAGE_OUTPUT_TOKENS} gen_ai.usage.output_tokens\n */\nexport type GEN_AI_USAGE_OUTPUT_TOKENS_TYPE = number;\n\n// Path: model/attributes/gen_ai/gen_ai__usage__output_tokens__reasoning.json\n\n/**\n * The number of tokens used for reasoning to create the AI output. `gen_ai.usage.output_tokens.reasoning`\n *\n * Attribute Value Type: `number` {@link GEN_AI_USAGE_OUTPUT_TOKENS_REASONING_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_USAGE_REASONING_OUTPUT_TOKENS} `gen_ai.usage.reasoning.output_tokens`\n *\n * @deprecated Use {@link GEN_AI_USAGE_REASONING_OUTPUT_TOKENS} (gen_ai.usage.reasoning.output_tokens) instead\n * @example 75\n */\nexport const GEN_AI_USAGE_OUTPUT_TOKENS_REASONING = 'gen_ai.usage.output_tokens.reasoning';\n\n/**\n * Type for {@link GEN_AI_USAGE_OUTPUT_TOKENS_REASONING} gen_ai.usage.output_tokens.reasoning\n */\nexport type GEN_AI_USAGE_OUTPUT_TOKENS_REASONING_TYPE = number;\n\n// Path: model/attributes/gen_ai/gen_ai__usage__prompt_tokens.json\n\n/**\n * The number of tokens used in the GenAI input (prompt). `gen_ai.usage.prompt_tokens`\n *\n * Attribute Value Type: `number` {@link GEN_AI_USAGE_PROMPT_TOKENS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link AI_PROMPT_TOKENS_USED} `ai.prompt_tokens.used`, {@link GEN_AI_USAGE_INPUT_TOKENS} `gen_ai.usage.input_tokens`\n *\n * @deprecated Use {@link GEN_AI_USAGE_INPUT_TOKENS} (gen_ai.usage.input_tokens) instead\n * @example 20\n */\nexport const GEN_AI_USAGE_PROMPT_TOKENS = 'gen_ai.usage.prompt_tokens';\n\n/**\n * Type for {@link GEN_AI_USAGE_PROMPT_TOKENS} gen_ai.usage.prompt_tokens\n */\nexport type GEN_AI_USAGE_PROMPT_TOKENS_TYPE = number;\n\n// Path: model/attributes/gen_ai/gen_ai__usage__reasoning__output_tokens.json\n\n/**\n * The number of tokens used for reasoning to create the AI output. `gen_ai.usage.reasoning.output_tokens`\n *\n * Attribute Value Type: `number` {@link GEN_AI_USAGE_REASONING_OUTPUT_TOKENS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_USAGE_OUTPUT_TOKENS_REASONING} `gen_ai.usage.output_tokens.reasoning`\n *\n * @example 75\n */\nexport const GEN_AI_USAGE_REASONING_OUTPUT_TOKENS = 'gen_ai.usage.reasoning.output_tokens';\n\n/**\n * Type for {@link GEN_AI_USAGE_REASONING_OUTPUT_TOKENS} gen_ai.usage.reasoning.output_tokens\n */\nexport type GEN_AI_USAGE_REASONING_OUTPUT_TOKENS_TYPE = number;\n\n// Path: model/attributes/gen_ai/gen_ai__usage__total_tokens.json\n\n/**\n * The total number of tokens used to process the prompt. (input tokens plus output todkens) `gen_ai.usage.total_tokens`\n *\n * Attribute Value Type: `number` {@link GEN_AI_USAGE_TOTAL_TOKENS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link AI_TOTAL_TOKENS_USED} `ai.total_tokens.used`\n *\n * @example 20\n */\nexport const GEN_AI_USAGE_TOTAL_TOKENS = 'gen_ai.usage.total_tokens';\n\n/**\n * Type for {@link GEN_AI_USAGE_TOTAL_TOKENS} gen_ai.usage.total_tokens\n */\nexport type GEN_AI_USAGE_TOTAL_TOKENS_TYPE = number;\n\n// Path: model/attributes/graphql/graphql__document.json\n\n/**\n * The GraphQL document being executed. `graphql.document`\n *\n * Attribute Value Type: `string` {@link GRAPHQL_DOCUMENT_TYPE}\n *\n * Apply Scrubbing: auto - The document may contain sensitive information in arguments or variables. Instrumentation should redact sensitive information when possible.\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"query findBookById { bookById(id: ?) { name } }\"\n */\nexport const GRAPHQL_DOCUMENT = 'graphql.document';\n\n/**\n * Type for {@link GRAPHQL_DOCUMENT} graphql.document\n */\nexport type GRAPHQL_DOCUMENT_TYPE = string;\n\n// Path: model/attributes/graphql/graphql__operation__name.json\n\n/**\n * The name of the operation being executed. `graphql.operation.name`\n *\n * Attribute Value Type: `string` {@link GRAPHQL_OPERATION_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"findBookById\"\n */\nexport const GRAPHQL_OPERATION_NAME = 'graphql.operation.name';\n\n/**\n * Type for {@link GRAPHQL_OPERATION_NAME} graphql.operation.name\n */\nexport type GRAPHQL_OPERATION_NAME_TYPE = string;\n\n// Path: model/attributes/graphql/graphql__operation__type.json\n\n/**\n * The type of the operation being executed. `graphql.operation.type`\n *\n * Attribute Value Type: `string` {@link GRAPHQL_OPERATION_TYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"query\"\n */\nexport const GRAPHQL_OPERATION_TYPE = 'graphql.operation.type';\n\n/**\n * Type for {@link GRAPHQL_OPERATION_TYPE} graphql.operation.type\n */\nexport type GRAPHQL_OPERATION_TYPE_TYPE = string;\n\n// Path: model/attributes/hardwareConcurrency.json\n\n/**\n * The number of logical CPU cores available. `hardwareConcurrency`\n *\n * Attribute Value Type: `string` {@link HARDWARECONCURRENCY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link DEVICE_PROCESSOR_COUNT} `device.processor_count`\n *\n * @deprecated Use {@link DEVICE_PROCESSOR_COUNT} (device.processor_count) instead - Old namespace-less attribute, to be replaced with device.processor_count for span-first future\n * @example \"14\"\n */\nexport const HARDWARECONCURRENCY = 'hardwareConcurrency';\n\n/**\n * Type for {@link HARDWARECONCURRENCY} hardwareConcurrency\n */\nexport type HARDWARECONCURRENCY_TYPE = string;\n\n// Path: model/attributes/http/http__client_ip.json\n\n/**\n * Client address - domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name. `http.client_ip`\n *\n * Attribute Value Type: `string` {@link HTTP_CLIENT_IP_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link CLIENT_ADDRESS} `client.address`\n *\n * @deprecated Use {@link CLIENT_ADDRESS} (client.address) instead\n * @example \"example.com\"\n */\nexport const HTTP_CLIENT_IP = 'http.client_ip';\n\n/**\n * Type for {@link HTTP_CLIENT_IP} http.client_ip\n */\nexport type HTTP_CLIENT_IP_TYPE = string;\n\n// Path: model/attributes/http/http__decoded_response_content_length.json\n\n/**\n * The decoded body size of the response (in bytes). `http.decoded_response_content_length`\n *\n * Attribute Value Type: `number` {@link HTTP_DECODED_RESPONSE_CONTENT_LENGTH_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 456\n */\nexport const HTTP_DECODED_RESPONSE_CONTENT_LENGTH = 'http.decoded_response_content_length';\n\n/**\n * Type for {@link HTTP_DECODED_RESPONSE_CONTENT_LENGTH} http.decoded_response_content_length\n */\nexport type HTTP_DECODED_RESPONSE_CONTENT_LENGTH_TYPE = number;\n\n// Path: model/attributes/http/http__flavor.json\n\n/**\n * The actual version of the protocol used for network communication. `http.flavor`\n *\n * Attribute Value Type: `string` {@link HTTP_FLAVOR_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link NETWORK_PROTOCOL_VERSION} `network.protocol.version`, {@link NET_PROTOCOL_VERSION} `net.protocol.version`\n *\n * @deprecated Use {@link NETWORK_PROTOCOL_VERSION} (network.protocol.version) instead\n * @example \"1.1\"\n */\nexport const HTTP_FLAVOR = 'http.flavor';\n\n/**\n * Type for {@link HTTP_FLAVOR} http.flavor\n */\nexport type HTTP_FLAVOR_TYPE = string;\n\n// Path: model/attributes/http/http__fragment.json\n\n/**\n * The fragments present in the URI. Note that this contains the leading # character, while the `url.fragment` attribute does not. `http.fragment`\n *\n * Attribute Value Type: `string` {@link HTTP_FRAGMENT_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"#details\"\n */\nexport const HTTP_FRAGMENT = 'http.fragment';\n\n/**\n * Type for {@link HTTP_FRAGMENT} http.fragment\n */\nexport type HTTP_FRAGMENT_TYPE = string;\n\n// Path: model/attributes/http/http__host.json\n\n/**\n * The domain name. `http.host`\n *\n * Attribute Value Type: `string` {@link HTTP_HOST_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link SERVER_ADDRESS} `server.address`, {@link CLIENT_ADDRESS} `client.address`, {@link HTTP_SERVER_NAME} `http.server_name`, {@link NET_HOST_NAME} `net.host.name`, {@link SERVER_NAME} `server_name`\n *\n * @deprecated Use {@link SERVER_ADDRESS} (server.address) instead - Deprecated, use one of `server.address` or `client.address`, depending on the usage\n * @example \"example.com\"\n */\nexport const HTTP_HOST = 'http.host';\n\n/**\n * Type for {@link HTTP_HOST} http.host\n */\nexport type HTTP_HOST_TYPE = string;\n\n// Path: model/attributes/http/http__method.json\n\n/**\n * The HTTP method used. `http.method`\n *\n * Attribute Value Type: `string` {@link HTTP_METHOD_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link HTTP_REQUEST_METHOD} `http.request.method`, {@link _HTTP_REQUEST_METHOD} `http.request_method`, {@link METHOD} `method`\n *\n * @deprecated Use {@link HTTP_REQUEST_METHOD} (http.request.method) instead\n * @example \"GET\"\n */\nexport const HTTP_METHOD = 'http.method';\n\n/**\n * Type for {@link HTTP_METHOD} http.method\n */\nexport type HTTP_METHOD_TYPE = string;\n\n// Path: model/attributes/http/http__query.json\n\n/**\n * The query string present in the URL. Note that this contains the leading ? character, while the `url.query` attribute does not. `http.query`\n *\n * Attribute Value Type: `string` {@link HTTP_QUERY_TYPE}\n *\n * Apply Scrubbing: auto - Query string values can contain sensitive information. Clients should attempt to scrub parameters that might contain sensitive information.\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"?foo=bar&bar=baz\"\n */\nexport const HTTP_QUERY = 'http.query';\n\n/**\n * Type for {@link HTTP_QUERY} http.query\n */\nexport type HTTP_QUERY_TYPE = string;\n\n// Path: model/attributes/http/http__request__body__data.json\n\n/**\n * HTTP request body data. Can be given as string or structural data of any format. `http.request.body.data`\n *\n * Attribute Value Type: `string` {@link HTTP_REQUEST_BODY_DATA_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"[{\\\"role\\\": \\\"user\\\", \\\"message\\\": \\\"hello\\\"}]\"\n */\nexport const HTTP_REQUEST_BODY_DATA = 'http.request.body.data';\n\n/**\n * Type for {@link HTTP_REQUEST_BODY_DATA} http.request.body.data\n */\nexport type HTTP_REQUEST_BODY_DATA_TYPE = string;\n\n// Path: model/attributes/http/http__request__connection_end.json\n\n/**\n * 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. `http.request.connection_end`\n *\n * Attribute Value Type: `number` {@link HTTP_REQUEST_CONNECTION_END_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 1732829555.15\n */\nexport const HTTP_REQUEST_CONNECTION_END = 'http.request.connection_end';\n\n/**\n * Type for {@link HTTP_REQUEST_CONNECTION_END} http.request.connection_end\n */\nexport type HTTP_REQUEST_CONNECTION_END_TYPE = number;\n\n// Path: model/attributes/http/http__request__connect_start.json\n\n/**\n * The UNIX timestamp representing the time immediately before the user agent starts establishing the connection to the server to retrieve the resource. `http.request.connect_start`\n *\n * Attribute Value Type: `number` {@link HTTP_REQUEST_CONNECT_START_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 1732829555.111\n */\nexport const HTTP_REQUEST_CONNECT_START = 'http.request.connect_start';\n\n/**\n * Type for {@link HTTP_REQUEST_CONNECT_START} http.request.connect_start\n */\nexport type HTTP_REQUEST_CONNECT_START_TYPE = number;\n\n// Path: model/attributes/http/http__request__domain_lookup_end.json\n\n/**\n * The UNIX timestamp representing the time immediately after the browser finishes the domain-name lookup for the resource. `http.request.domain_lookup_end`\n *\n * Attribute Value Type: `number` {@link HTTP_REQUEST_DOMAIN_LOOKUP_END_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 1732829555.201\n */\nexport const HTTP_REQUEST_DOMAIN_LOOKUP_END = 'http.request.domain_lookup_end';\n\n/**\n * Type for {@link HTTP_REQUEST_DOMAIN_LOOKUP_END} http.request.domain_lookup_end\n */\nexport type HTTP_REQUEST_DOMAIN_LOOKUP_END_TYPE = number;\n\n// Path: model/attributes/http/http__request__domain_lookup_start.json\n\n/**\n * The UNIX timestamp representing the time immediately before the browser starts the domain name lookup for the resource. `http.request.domain_lookup_start`\n *\n * Attribute Value Type: `number` {@link HTTP_REQUEST_DOMAIN_LOOKUP_START_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 1732829555.322\n */\nexport const HTTP_REQUEST_DOMAIN_LOOKUP_START = 'http.request.domain_lookup_start';\n\n/**\n * Type for {@link HTTP_REQUEST_DOMAIN_LOOKUP_START} http.request.domain_lookup_start\n */\nexport type HTTP_REQUEST_DOMAIN_LOOKUP_START_TYPE = number;\n\n// Path: model/attributes/http/http__request__fetch_start.json\n\n/**\n * The UNIX timestamp representing the time immediately before the browser starts to fetch the resource. `http.request.fetch_start`\n *\n * Attribute Value Type: `number` {@link HTTP_REQUEST_FETCH_START_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 1732829555.389\n */\nexport const HTTP_REQUEST_FETCH_START = 'http.request.fetch_start';\n\n/**\n * Type for {@link HTTP_REQUEST_FETCH_START} http.request.fetch_start\n */\nexport type HTTP_REQUEST_FETCH_START_TYPE = number;\n\n// Path: model/attributes/http/http__request__header__[key].json\n\n/**\n * HTTP request headers, being the normalized HTTP Header name (lowercase), the value being the header values. `http.request.header.`\n *\n * Attribute Value Type: `Array` {@link HTTP_REQUEST_HEADER_KEY_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Has Dynamic Suffix: true\n *\n * @example \"http.request.header.custom-header=['foo', 'bar']\"\n */\nexport const HTTP_REQUEST_HEADER_KEY = 'http.request.header.';\n\n/**\n * Base key for {@link HTTP_REQUEST_HEADER_KEY}. Use with a dynamic suffix, e.g. `${HTTP_REQUEST_HEADER_KEY_BASE}.${key}`.\n */\nexport const HTTP_REQUEST_HEADER_KEY_BASE = 'http.request.header';\n\n/**\n * Type for {@link HTTP_REQUEST_HEADER_KEY} http.request.header.\n */\nexport type HTTP_REQUEST_HEADER_KEY_TYPE = Array;\n\n// Path: model/attributes/http/http__request__method.json\n\n/**\n * The HTTP method used. `http.request.method`\n *\n * Attribute Value Type: `string` {@link HTTP_REQUEST_METHOD_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link METHOD} `method`, {@link HTTP_METHOD} `http.method`, {@link _HTTP_REQUEST_METHOD} `http.request_method`\n *\n * @example \"GET\"\n */\nexport const HTTP_REQUEST_METHOD = 'http.request.method';\n\n/**\n * Type for {@link HTTP_REQUEST_METHOD} http.request.method\n */\nexport type HTTP_REQUEST_METHOD_TYPE = string;\n\n// Path: model/attributes/http/http__request_method.json\n\n/**\n * The HTTP method used. `http.request_method`\n *\n * Attribute Value Type: `string` {@link _HTTP_REQUEST_METHOD_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link METHOD} `method`, {@link HTTP_METHOD} `http.method`, {@link HTTP_REQUEST_METHOD} `http.request.method`\n *\n * @deprecated Use {@link HTTP_REQUEST_METHOD} (http.request.method) instead\n * @example \"GET\"\n */\nexport const _HTTP_REQUEST_METHOD = 'http.request_method';\n\n/**\n * Type for {@link _HTTP_REQUEST_METHOD} http.request_method\n */\nexport type _HTTP_REQUEST_METHOD_TYPE = string;\n\n// Path: model/attributes/http/http__request__redirect_end.json\n\n/**\n * The UNIX timestamp representing the timestamp immediately after receiving the last byte of the response of the last redirect `http.request.redirect_end`\n *\n * Attribute Value Type: `number` {@link HTTP_REQUEST_REDIRECT_END_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 1732829558.502\n */\nexport const HTTP_REQUEST_REDIRECT_END = 'http.request.redirect_end';\n\n/**\n * Type for {@link HTTP_REQUEST_REDIRECT_END} http.request.redirect_end\n */\nexport type HTTP_REQUEST_REDIRECT_END_TYPE = number;\n\n// Path: model/attributes/http/http__request__redirect_start.json\n\n/**\n * The UNIX timestamp representing the start time of the fetch which that initiates the redirect. `http.request.redirect_start`\n *\n * Attribute Value Type: `number` {@link HTTP_REQUEST_REDIRECT_START_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 1732829555.495\n */\nexport const HTTP_REQUEST_REDIRECT_START = 'http.request.redirect_start';\n\n/**\n * Type for {@link HTTP_REQUEST_REDIRECT_START} http.request.redirect_start\n */\nexport type HTTP_REQUEST_REDIRECT_START_TYPE = number;\n\n// Path: model/attributes/http/http__request__request_start.json\n\n/**\n * 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. `http.request.request_start`\n *\n * Attribute Value Type: `number` {@link HTTP_REQUEST_REQUEST_START_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 1732829555.51\n */\nexport const HTTP_REQUEST_REQUEST_START = 'http.request.request_start';\n\n/**\n * Type for {@link HTTP_REQUEST_REQUEST_START} http.request.request_start\n */\nexport type HTTP_REQUEST_REQUEST_START_TYPE = number;\n\n// Path: model/attributes/http/http__request__resend_count.json\n\n/**\n * The ordinal number of request resending attempt (for any reason, including redirects). `http.request.resend_count`\n *\n * Attribute Value Type: `number` {@link HTTP_REQUEST_RESEND_COUNT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 2\n */\nexport const HTTP_REQUEST_RESEND_COUNT = 'http.request.resend_count';\n\n/**\n * Type for {@link HTTP_REQUEST_RESEND_COUNT} http.request.resend_count\n */\nexport type HTTP_REQUEST_RESEND_COUNT_TYPE = number;\n\n// Path: model/attributes/http/http__request__response_end.json\n\n/**\n * 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. `http.request.response_end`\n *\n * Attribute Value Type: `number` {@link HTTP_REQUEST_RESPONSE_END_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 1732829555.89\n */\nexport const HTTP_REQUEST_RESPONSE_END = 'http.request.response_end';\n\n/**\n * Type for {@link HTTP_REQUEST_RESPONSE_END} http.request.response_end\n */\nexport type HTTP_REQUEST_RESPONSE_END_TYPE = number;\n\n// Path: model/attributes/http/http__request__response_start.json\n\n/**\n * 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. `http.request.response_start`\n *\n * Attribute Value Type: `number` {@link HTTP_REQUEST_RESPONSE_START_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 1732829555.7\n */\nexport const HTTP_REQUEST_RESPONSE_START = 'http.request.response_start';\n\n/**\n * Type for {@link HTTP_REQUEST_RESPONSE_START} http.request.response_start\n */\nexport type HTTP_REQUEST_RESPONSE_START_TYPE = number;\n\n// Path: model/attributes/http/http__request__same_origin.json\n\n/**\n * Indicates that a URL has the same origin as the current page's origin in the browser. `http.request.same_origin`\n *\n * Attribute Value Type: `boolean` {@link HTTP_REQUEST_SAME_ORIGIN_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link URL_SAME_ORIGIN} `url.same_origin`\n *\n * @example true\n */\nexport const HTTP_REQUEST_SAME_ORIGIN = 'http.request.same_origin';\n\n/**\n * Type for {@link HTTP_REQUEST_SAME_ORIGIN} http.request.same_origin\n */\nexport type HTTP_REQUEST_SAME_ORIGIN_TYPE = boolean;\n\n// Path: model/attributes/http/http__request__secure_connection_start.json\n\n/**\n * 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. `http.request.secure_connection_start`\n *\n * Attribute Value Type: `number` {@link HTTP_REQUEST_SECURE_CONNECTION_START_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 1732829555.73\n */\nexport const HTTP_REQUEST_SECURE_CONNECTION_START = 'http.request.secure_connection_start';\n\n/**\n * Type for {@link HTTP_REQUEST_SECURE_CONNECTION_START} http.request.secure_connection_start\n */\nexport type HTTP_REQUEST_SECURE_CONNECTION_START_TYPE = number;\n\n// Path: model/attributes/http/http__request__time_to_first_byte.json\n\n/**\n * 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 `http.request.time_to_first_byte`\n *\n * Attribute Value Type: `number` {@link HTTP_REQUEST_TIME_TO_FIRST_BYTE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 1.032\n */\nexport const HTTP_REQUEST_TIME_TO_FIRST_BYTE = 'http.request.time_to_first_byte';\n\n/**\n * Type for {@link HTTP_REQUEST_TIME_TO_FIRST_BYTE} http.request.time_to_first_byte\n */\nexport type HTTP_REQUEST_TIME_TO_FIRST_BYTE_TYPE = number;\n\n// Path: model/attributes/http/http__request__worker_start.json\n\n/**\n * 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. `http.request.worker_start`\n *\n * Attribute Value Type: `number` {@link HTTP_REQUEST_WORKER_START_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 1732829553.68\n */\nexport const HTTP_REQUEST_WORKER_START = 'http.request.worker_start';\n\n/**\n * Type for {@link HTTP_REQUEST_WORKER_START} http.request.worker_start\n */\nexport type HTTP_REQUEST_WORKER_START_TYPE = number;\n\n// Path: model/attributes/http/http__response__body__size.json\n\n/**\n * The encoded body size of the response (in bytes). `http.response.body.size`\n *\n * Attribute Value Type: `number` {@link HTTP_RESPONSE_BODY_SIZE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link HTTP_RESPONSE_CONTENT_LENGTH} `http.response_content_length`, {@link HTTP_RESPONSE_HEADER_CONTENT_LENGTH} `http.response.header.content-length`\n *\n * @example 123\n */\nexport const HTTP_RESPONSE_BODY_SIZE = 'http.response.body.size';\n\n/**\n * Type for {@link HTTP_RESPONSE_BODY_SIZE} http.response.body.size\n */\nexport type HTTP_RESPONSE_BODY_SIZE_TYPE = number;\n\n// Path: model/attributes/http/http__response_content_length.json\n\n/**\n * The encoded body size of the response (in bytes). `http.response_content_length`\n *\n * Attribute Value Type: `number` {@link HTTP_RESPONSE_CONTENT_LENGTH_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link HTTP_RESPONSE_BODY_SIZE} `http.response.body.size`, {@link HTTP_RESPONSE_HEADER_CONTENT_LENGTH} `http.response.header.content-length`\n *\n * @deprecated Use {@link HTTP_RESPONSE_BODY_SIZE} (http.response.body.size) instead\n * @example 123\n */\nexport const HTTP_RESPONSE_CONTENT_LENGTH = 'http.response_content_length';\n\n/**\n * Type for {@link HTTP_RESPONSE_CONTENT_LENGTH} http.response_content_length\n */\nexport type HTTP_RESPONSE_CONTENT_LENGTH_TYPE = number;\n\n// Path: model/attributes/http/http__response__header__content-length.json\n\n/**\n * The size of the message body sent to the recipient (in bytes) `http.response.header.content-length`\n *\n * Attribute Value Type: `string` {@link HTTP_RESPONSE_HEADER_CONTENT_LENGTH_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link HTTP_RESPONSE_CONTENT_LENGTH} `http.response_content_length`, {@link HTTP_RESPONSE_BODY_SIZE} `http.response.body.size`\n *\n * @example \"http.response.header.custom-header=['foo', 'bar']\"\n */\nexport const HTTP_RESPONSE_HEADER_CONTENT_LENGTH = 'http.response.header.content-length';\n\n/**\n * Type for {@link HTTP_RESPONSE_HEADER_CONTENT_LENGTH} http.response.header.content-length\n */\nexport type HTTP_RESPONSE_HEADER_CONTENT_LENGTH_TYPE = string;\n\n// Path: model/attributes/http/http__response__header__[key].json\n\n/**\n * HTTP response headers, being the normalized HTTP Header name (lowercase), the value being the header values. `http.response.header.`\n *\n * Attribute Value Type: `Array` {@link HTTP_RESPONSE_HEADER_KEY_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Has Dynamic Suffix: true\n *\n * @example \"http.response.header.custom-header=['foo', 'bar']\"\n */\nexport const HTTP_RESPONSE_HEADER_KEY = 'http.response.header.';\n\n/**\n * Base key for {@link HTTP_RESPONSE_HEADER_KEY}. Use with a dynamic suffix, e.g. `${HTTP_RESPONSE_HEADER_KEY_BASE}.${key}`.\n */\nexport const HTTP_RESPONSE_HEADER_KEY_BASE = 'http.response.header';\n\n/**\n * Type for {@link HTTP_RESPONSE_HEADER_KEY} http.response.header.\n */\nexport type HTTP_RESPONSE_HEADER_KEY_TYPE = Array;\n\n// Path: model/attributes/http/http__response__size.json\n\n/**\n * The transfer size of the response (in bytes). `http.response.size`\n *\n * Attribute Value Type: `number` {@link HTTP_RESPONSE_SIZE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link HTTP_RESPONSE_TRANSFER_SIZE} `http.response_transfer_size`\n *\n * @example 456\n */\nexport const HTTP_RESPONSE_SIZE = 'http.response.size';\n\n/**\n * Type for {@link HTTP_RESPONSE_SIZE} http.response.size\n */\nexport type HTTP_RESPONSE_SIZE_TYPE = number;\n\n// Path: model/attributes/http/http__response__status_code.json\n\n/**\n * The status code of the HTTP response. `http.response.status_code`\n *\n * Attribute Value Type: `number` {@link HTTP_RESPONSE_STATUS_CODE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link HTTP_STATUS_CODE} `http.status_code`\n *\n * @example 404\n */\nexport const HTTP_RESPONSE_STATUS_CODE = 'http.response.status_code';\n\n/**\n * Type for {@link HTTP_RESPONSE_STATUS_CODE} http.response.status_code\n */\nexport type HTTP_RESPONSE_STATUS_CODE_TYPE = number;\n\n// Path: model/attributes/http/http__response_transfer_size.json\n\n/**\n * The transfer size of the response (in bytes). `http.response_transfer_size`\n *\n * Attribute Value Type: `number` {@link HTTP_RESPONSE_TRANSFER_SIZE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link HTTP_RESPONSE_SIZE} `http.response.size`\n *\n * @deprecated Use {@link HTTP_RESPONSE_SIZE} (http.response.size) instead\n * @example 456\n */\nexport const HTTP_RESPONSE_TRANSFER_SIZE = 'http.response_transfer_size';\n\n/**\n * Type for {@link HTTP_RESPONSE_TRANSFER_SIZE} http.response_transfer_size\n */\nexport type HTTP_RESPONSE_TRANSFER_SIZE_TYPE = number;\n\n// Path: model/attributes/http/http__route.json\n\n/**\n * The matched route, that is, the path template in the format used by the respective server framework. `http.route`\n *\n * Attribute Value Type: `string` {@link HTTP_ROUTE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link URL_TEMPLATE} `url.template`\n *\n * @example \"/users/:id\"\n */\nexport const HTTP_ROUTE = 'http.route';\n\n/**\n * Type for {@link HTTP_ROUTE} http.route\n */\nexport type HTTP_ROUTE_TYPE = string;\n\n// Path: model/attributes/http/http__scheme.json\n\n/**\n * The URI scheme component identifying the used protocol. `http.scheme`\n *\n * Attribute Value Type: `string` {@link HTTP_SCHEME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link URL_SCHEME} `url.scheme`\n *\n * @deprecated Use {@link URL_SCHEME} (url.scheme) instead\n * @example \"https\"\n */\nexport const HTTP_SCHEME = 'http.scheme';\n\n/**\n * Type for {@link HTTP_SCHEME} http.scheme\n */\nexport type HTTP_SCHEME_TYPE = string;\n\n// Path: model/attributes/http/http__server_name.json\n\n/**\n * The server domain name `http.server_name`\n *\n * Attribute Value Type: `string` {@link HTTP_SERVER_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link SERVER_ADDRESS} `server.address`, {@link NET_HOST_NAME} `net.host.name`, {@link HTTP_HOST} `http.host`, {@link SERVER_NAME} `server_name`\n *\n * @deprecated Use {@link SERVER_ADDRESS} (server.address) instead\n * @example \"example.com\"\n */\nexport const HTTP_SERVER_NAME = 'http.server_name';\n\n/**\n * Type for {@link HTTP_SERVER_NAME} http.server_name\n */\nexport type HTTP_SERVER_NAME_TYPE = string;\n\n// Path: model/attributes/http/http__server__request__time_in_queue.json\n\n/**\n * 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. `http.server.request.time_in_queue`\n *\n * Attribute Value Type: `number` {@link HTTP_SERVER_REQUEST_TIME_IN_QUEUE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 50\n */\nexport const HTTP_SERVER_REQUEST_TIME_IN_QUEUE = 'http.server.request.time_in_queue';\n\n/**\n * Type for {@link HTTP_SERVER_REQUEST_TIME_IN_QUEUE} http.server.request.time_in_queue\n */\nexport type HTTP_SERVER_REQUEST_TIME_IN_QUEUE_TYPE = number;\n\n// Path: model/attributes/http/http__status_code.json\n\n/**\n * The status code of the HTTP response. `http.status_code`\n *\n * Attribute Value Type: `number` {@link HTTP_STATUS_CODE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link HTTP_RESPONSE_STATUS_CODE} `http.response.status_code`\n *\n * @deprecated Use {@link HTTP_RESPONSE_STATUS_CODE} (http.response.status_code) instead\n * @example 404\n */\nexport const HTTP_STATUS_CODE = 'http.status_code';\n\n/**\n * Type for {@link HTTP_STATUS_CODE} http.status_code\n */\nexport type HTTP_STATUS_CODE_TYPE = number;\n\n// Path: model/attributes/http/http__target.json\n\n/**\n * The pathname and query string of the URL. `http.target`\n *\n * Attribute Value Type: `string` {@link HTTP_TARGET_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @deprecated Use {@link URL_PATH} (url.path) instead - This attribute is being deprecated in favor of url.path and url.query\n * @example \"/test?foo=bar#buzz\"\n */\nexport const HTTP_TARGET = 'http.target';\n\n/**\n * Type for {@link HTTP_TARGET} http.target\n */\nexport type HTTP_TARGET_TYPE = string;\n\n// Path: model/attributes/http/http__url.json\n\n/**\n * The URL of the resource that was fetched. `http.url`\n *\n * Attribute Value Type: `string` {@link HTTP_URL_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link URL_FULL} `url.full`, {@link URL} `url`\n *\n * @deprecated Use {@link URL_FULL} (url.full) instead\n * @example \"https://example.com/test?foo=bar#buzz\"\n */\nexport const HTTP_URL = 'http.url';\n\n/**\n * Type for {@link HTTP_URL} http.url\n */\nexport type HTTP_URL_TYPE = string;\n\n// Path: model/attributes/http/http__user_agent.json\n\n/**\n * Value of the HTTP User-Agent header sent by the client. `http.user_agent`\n *\n * Attribute Value Type: `string` {@link HTTP_USER_AGENT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link USER_AGENT_ORIGINAL} `user_agent.original`\n *\n * @deprecated Use {@link USER_AGENT_ORIGINAL} (user_agent.original) instead\n * @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\"\n */\nexport const HTTP_USER_AGENT = 'http.user_agent';\n\n/**\n * Type for {@link HTTP_USER_AGENT} http.user_agent\n */\nexport type HTTP_USER_AGENT_TYPE = string;\n\n// Path: model/attributes/id.json\n\n/**\n * A unique identifier for the span. `id`\n *\n * Attribute Value Type: `string` {@link ID_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"f47ac10b58cc4372a5670e02b2c3d479\"\n */\nexport const ID = 'id';\n\n/**\n * Type for {@link ID} id\n */\nexport type ID_TYPE = string;\n\n// Path: model/attributes/inp.json\n\n/**\n * The value of the recorded Interaction to Next Paint (INP) web vital `inp`\n *\n * Attribute Value Type: `number` {@link INP_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link BROWSER_WEB_VITAL_INP_VALUE} `browser.web_vital.inp.value`\n *\n * @deprecated Use {@link BROWSER_WEB_VITAL_INP_VALUE} (browser.web_vital.inp.value) instead - The INP web vital is now recorded as a browser.web_vital.inp.value attribute.\n * @example 200\n */\nexport const INP = 'inp';\n\n/**\n * Type for {@link INP} inp\n */\nexport type INP_TYPE = number;\n\n// Path: model/attributes/jsonrpc/jsonrpc__protocol__version.json\n\n/**\n * The version of the JSON-RPC protocol used. `jsonrpc.protocol.version`\n *\n * Attribute Value Type: `string` {@link JSONRPC_PROTOCOL_VERSION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"2.0\"\n */\nexport const JSONRPC_PROTOCOL_VERSION = 'jsonrpc.protocol.version';\n\n/**\n * Type for {@link JSONRPC_PROTOCOL_VERSION} jsonrpc.protocol.version\n */\nexport type JSONRPC_PROTOCOL_VERSION_TYPE = string;\n\n// Path: model/attributes/jsonrpc/jsonrpc__request__id.json\n\n/**\n * The JSON-RPC request identifier. Unique within the session. `jsonrpc.request.id`\n *\n * Attribute Value Type: `string` {@link JSONRPC_REQUEST_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link MCP_REQUEST_ID} `mcp.request.id`\n *\n * @example \"1\"\n */\nexport const JSONRPC_REQUEST_ID = 'jsonrpc.request.id';\n\n/**\n * Type for {@link JSONRPC_REQUEST_ID} jsonrpc.request.id\n */\nexport type JSONRPC_REQUEST_ID_TYPE = string;\n\n// Path: model/attributes/jvm/jvm__gc__action.json\n\n/**\n * Name of the garbage collector action. `jvm.gc.action`\n *\n * Attribute Value Type: `string` {@link JVM_GC_ACTION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"end of minor GC\"\n */\nexport const JVM_GC_ACTION = 'jvm.gc.action';\n\n/**\n * Type for {@link JVM_GC_ACTION} jvm.gc.action\n */\nexport type JVM_GC_ACTION_TYPE = string;\n\n// Path: model/attributes/jvm/jvm__gc__name.json\n\n/**\n * Name of the garbage collector. `jvm.gc.name`\n *\n * Attribute Value Type: `string` {@link JVM_GC_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"G1 Young Generation\"\n */\nexport const JVM_GC_NAME = 'jvm.gc.name';\n\n/**\n * Type for {@link JVM_GC_NAME} jvm.gc.name\n */\nexport type JVM_GC_NAME_TYPE = string;\n\n// Path: model/attributes/jvm/jvm__memory__pool__name.json\n\n/**\n * Name of the memory pool. `jvm.memory.pool.name`\n *\n * Attribute Value Type: `string` {@link JVM_MEMORY_POOL_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"G1 Old Gen\"\n */\nexport const JVM_MEMORY_POOL_NAME = 'jvm.memory.pool.name';\n\n/**\n * Type for {@link JVM_MEMORY_POOL_NAME} jvm.memory.pool.name\n */\nexport type JVM_MEMORY_POOL_NAME_TYPE = string;\n\n// Path: model/attributes/jvm/jvm__memory__type.json\n\n/**\n * Name of the memory pool. `jvm.memory.type`\n *\n * Attribute Value Type: `string` {@link JVM_MEMORY_TYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"G1 Old Gen\"\n */\nexport const JVM_MEMORY_TYPE = 'jvm.memory.type';\n\n/**\n * Type for {@link JVM_MEMORY_TYPE} jvm.memory.type\n */\nexport type JVM_MEMORY_TYPE_TYPE = string;\n\n// Path: model/attributes/jvm/jvm__thread__daemon.json\n\n/**\n * Whether the thread is daemon or not. `jvm.thread.daemon`\n *\n * Attribute Value Type: `boolean` {@link JVM_THREAD_DAEMON_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example true\n */\nexport const JVM_THREAD_DAEMON = 'jvm.thread.daemon';\n\n/**\n * Type for {@link JVM_THREAD_DAEMON} jvm.thread.daemon\n */\nexport type JVM_THREAD_DAEMON_TYPE = boolean;\n\n// Path: model/attributes/jvm/jvm__thread__state.json\n\n/**\n * State of the thread. `jvm.thread.state`\n *\n * Attribute Value Type: `string` {@link JVM_THREAD_STATE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"blocked\"\n */\nexport const JVM_THREAD_STATE = 'jvm.thread.state';\n\n/**\n * Type for {@link JVM_THREAD_STATE} jvm.thread.state\n */\nexport type JVM_THREAD_STATE_TYPE = string;\n\n// Path: model/attributes/koa/koa__name.json\n\n/**\n * The name of the Koa middleware or matched route that handled the request. `koa.name`\n *\n * Attribute Value Type: `string` {@link KOA_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated - No single replacement. SDKs should use http.route for router layers and code.function.name for middleware layers instead.\n * @example \"/users/:id\"\n */\nexport const KOA_NAME = 'koa.name';\n\n/**\n * Type for {@link KOA_NAME} koa.name\n */\nexport type KOA_NAME_TYPE = string;\n\n// Path: model/attributes/koa/koa__type.json\n\n/**\n * The type of the Koa layer that handled the request. `koa.type`\n *\n * Attribute Value Type: `string` {@link KOA_TYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"router\"\n */\nexport const KOA_TYPE = 'koa.type';\n\n/**\n * Type for {@link KOA_TYPE} koa.type\n */\nexport type KOA_TYPE_TYPE = string;\n\n// Path: model/attributes/lcp.json\n\n/**\n * The value of the recorded Largest Contentful Paint (LCP) web vital `lcp`\n *\n * Attribute Value Type: `number` {@link LCP_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link BROWSER_WEB_VITAL_LCP_VALUE} `browser.web_vital.lcp.value`\n *\n * @deprecated Use {@link BROWSER_WEB_VITAL_LCP_VALUE} (browser.web_vital.lcp.value) instead - The LCP web vital is now recorded as a browser.web_vital.lcp.value attribute.\n * @example 2500\n */\nexport const LCP = 'lcp';\n\n/**\n * Type for {@link LCP} lcp\n */\nexport type LCP_TYPE = number;\n\n// Path: model/attributes/lcp/lcp__element.json\n\n/**\n * The dom element responsible for the largest contentful paint. `lcp.element`\n *\n * Attribute Value Type: `string` {@link LCP_ELEMENT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link BROWSER_WEB_VITAL_LCP_ELEMENT} `browser.web_vital.lcp.element`\n *\n * @deprecated Use {@link BROWSER_WEB_VITAL_LCP_ELEMENT} (browser.web_vital.lcp.element) instead - The LCP element is now recorded as a browser.web_vital.lcp.element attribute.\n * @example \"img\"\n */\nexport const LCP_ELEMENT = 'lcp.element';\n\n/**\n * Type for {@link LCP_ELEMENT} lcp.element\n */\nexport type LCP_ELEMENT_TYPE = string;\n\n// Path: model/attributes/lcp/lcp__id.json\n\n/**\n * The id of the dom element responsible for the largest contentful paint. `lcp.id`\n *\n * Attribute Value Type: `string` {@link LCP_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link BROWSER_WEB_VITAL_LCP_ID} `browser.web_vital.lcp.id`\n *\n * @deprecated Use {@link BROWSER_WEB_VITAL_LCP_ID} (browser.web_vital.lcp.id) instead - The LCP id is now recorded as a browser.web_vital.lcp.id attribute.\n * @example \"#hero\"\n */\nexport const LCP_ID = 'lcp.id';\n\n/**\n * Type for {@link LCP_ID} lcp.id\n */\nexport type LCP_ID_TYPE = string;\n\n// Path: model/attributes/lcp/lcp__loadTime.json\n\n/**\n * The time it took for the LCP element to be loaded `lcp.loadTime`\n *\n * Attribute Value Type: `number` {@link LCP_LOADTIME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link BROWSER_WEB_VITAL_LCP_LOAD_TIME} `browser.web_vital.lcp.load_time`\n *\n * @deprecated Use {@link BROWSER_WEB_VITAL_LCP_LOAD_TIME} (browser.web_vital.lcp.load_time) instead - The LCP load time is now recorded as a browser.web_vital.lcp.load_time attribute.\n * @example 1402\n */\nexport const LCP_LOADTIME = 'lcp.loadTime';\n\n/**\n * Type for {@link LCP_LOADTIME} lcp.loadTime\n */\nexport type LCP_LOADTIME_TYPE = number;\n\n// Path: model/attributes/lcp/lcp__renderTime.json\n\n/**\n * The time it took for the LCP element to be rendered `lcp.renderTime`\n *\n * Attribute Value Type: `number` {@link LCP_RENDERTIME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link BROWSER_WEB_VITAL_LCP_RENDER_TIME} `browser.web_vital.lcp.render_time`\n *\n * @deprecated Use {@link BROWSER_WEB_VITAL_LCP_RENDER_TIME} (browser.web_vital.lcp.render_time) instead - The LCP render time is now recorded as a browser.web_vital.lcp.render_time attribute.\n * @example 1685\n */\nexport const LCP_RENDERTIME = 'lcp.renderTime';\n\n/**\n * Type for {@link LCP_RENDERTIME} lcp.renderTime\n */\nexport type LCP_RENDERTIME_TYPE = number;\n\n// Path: model/attributes/lcp/lcp__size.json\n\n/**\n * The size of the largest contentful paint element. `lcp.size`\n *\n * Attribute Value Type: `number` {@link LCP_SIZE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link BROWSER_WEB_VITAL_LCP_SIZE} `browser.web_vital.lcp.size`\n *\n * @deprecated Use {@link BROWSER_WEB_VITAL_LCP_SIZE} (browser.web_vital.lcp.size) instead - The LCP size is now recorded as a browser.web_vital.lcp.size attribute.\n * @example 1234\n */\nexport const LCP_SIZE = 'lcp.size';\n\n/**\n * Type for {@link LCP_SIZE} lcp.size\n */\nexport type LCP_SIZE_TYPE = number;\n\n// Path: model/attributes/lcp/lcp__url.json\n\n/**\n * The url of the dom element responsible for the largest contentful paint. `lcp.url`\n *\n * Attribute Value Type: `string` {@link LCP_URL_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link BROWSER_WEB_VITAL_LCP_URL} `browser.web_vital.lcp.url`\n *\n * @deprecated Use {@link BROWSER_WEB_VITAL_LCP_URL} (browser.web_vital.lcp.url) instead - The LCP url is now recorded as a browser.web_vital.lcp.url attribute.\n * @example \"https://example.com\"\n */\nexport const LCP_URL = 'lcp.url';\n\n/**\n * Type for {@link LCP_URL} lcp.url\n */\nexport type LCP_URL_TYPE = string;\n\n// Path: model/attributes/logger/logger__name.json\n\n/**\n * The name of the logger that generated this event. `logger.name`\n *\n * Attribute Value Type: `string` {@link LOGGER_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"myLogger\"\n */\nexport const LOGGER_NAME = 'logger.name';\n\n/**\n * Type for {@link LOGGER_NAME} logger.name\n */\nexport type LOGGER_NAME_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__cancelled__reason.json\n\n/**\n * Reason for the cancellation of an MCP operation. `mcp.cancelled.reason`\n *\n * Attribute Value Type: `string` {@link MCP_CANCELLED_REASON_TYPE}\n *\n * Apply Scrubbing: manual - Cancellation reasons may contain user-specific or sensitive information\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"User cancelled the request\"\n */\nexport const MCP_CANCELLED_REASON = 'mcp.cancelled.reason';\n\n/**\n * Type for {@link MCP_CANCELLED_REASON} mcp.cancelled.reason\n */\nexport type MCP_CANCELLED_REASON_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__cancelled__request_id.json\n\n/**\n * Request ID of the cancelled MCP operation. `mcp.cancelled.request_id`\n *\n * Attribute Value Type: `string` {@link MCP_CANCELLED_REQUEST_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"123\"\n */\nexport const MCP_CANCELLED_REQUEST_ID = 'mcp.cancelled.request_id';\n\n/**\n * Type for {@link MCP_CANCELLED_REQUEST_ID} mcp.cancelled.request_id\n */\nexport type MCP_CANCELLED_REQUEST_ID_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__client__name.json\n\n/**\n * Name of the MCP client application. `mcp.client.name`\n *\n * Attribute Value Type: `string` {@link MCP_CLIENT_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"claude-desktop\"\n */\nexport const MCP_CLIENT_NAME = 'mcp.client.name';\n\n/**\n * Type for {@link MCP_CLIENT_NAME} mcp.client.name\n */\nexport type MCP_CLIENT_NAME_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__client__title.json\n\n/**\n * Display title of the MCP client application. `mcp.client.title`\n *\n * Attribute Value Type: `string` {@link MCP_CLIENT_TITLE_TYPE}\n *\n * Apply Scrubbing: manual - Client titles may reveal user-specific application configurations or custom setups\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"Claude Desktop\"\n */\nexport const MCP_CLIENT_TITLE = 'mcp.client.title';\n\n/**\n * Type for {@link MCP_CLIENT_TITLE} mcp.client.title\n */\nexport type MCP_CLIENT_TITLE_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__client__version.json\n\n/**\n * Version of the MCP client application. `mcp.client.version`\n *\n * Attribute Value Type: `string` {@link MCP_CLIENT_VERSION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"1.0.0\"\n */\nexport const MCP_CLIENT_VERSION = 'mcp.client.version';\n\n/**\n * Type for {@link MCP_CLIENT_VERSION} mcp.client.version\n */\nexport type MCP_CLIENT_VERSION_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__lifecycle__phase.json\n\n/**\n * Lifecycle phase indicator for MCP operations. `mcp.lifecycle.phase`\n *\n * Attribute Value Type: `string` {@link MCP_LIFECYCLE_PHASE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"initialization_complete\"\n */\nexport const MCP_LIFECYCLE_PHASE = 'mcp.lifecycle.phase';\n\n/**\n * Type for {@link MCP_LIFECYCLE_PHASE} mcp.lifecycle.phase\n */\nexport type MCP_LIFECYCLE_PHASE_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__logging__data_type.json\n\n/**\n * Data type of the logged message content. `mcp.logging.data_type`\n *\n * Attribute Value Type: `string` {@link MCP_LOGGING_DATA_TYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"string\"\n */\nexport const MCP_LOGGING_DATA_TYPE = 'mcp.logging.data_type';\n\n/**\n * Type for {@link MCP_LOGGING_DATA_TYPE} mcp.logging.data_type\n */\nexport type MCP_LOGGING_DATA_TYPE_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__logging__level.json\n\n/**\n * Log level for MCP logging operations. `mcp.logging.level`\n *\n * Attribute Value Type: `string` {@link MCP_LOGGING_LEVEL_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"info\"\n */\nexport const MCP_LOGGING_LEVEL = 'mcp.logging.level';\n\n/**\n * Type for {@link MCP_LOGGING_LEVEL} mcp.logging.level\n */\nexport type MCP_LOGGING_LEVEL_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__logging__logger.json\n\n/**\n * Logger name for MCP logging operations. `mcp.logging.logger`\n *\n * Attribute Value Type: `string` {@link MCP_LOGGING_LOGGER_TYPE}\n *\n * Apply Scrubbing: manual - Logger names may be user-defined and could contain sensitive information\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"mcp_server\"\n */\nexport const MCP_LOGGING_LOGGER = 'mcp.logging.logger';\n\n/**\n * Type for {@link MCP_LOGGING_LOGGER} mcp.logging.logger\n */\nexport type MCP_LOGGING_LOGGER_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__logging__message.json\n\n/**\n * Log message content from MCP logging operations. `mcp.logging.message`\n *\n * Attribute Value Type: `string` {@link MCP_LOGGING_MESSAGE_TYPE}\n *\n * Apply Scrubbing: auto - Log messages can contain user data\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"Tool execution completed successfully\"\n */\nexport const MCP_LOGGING_MESSAGE = 'mcp.logging.message';\n\n/**\n * Type for {@link MCP_LOGGING_MESSAGE} mcp.logging.message\n */\nexport type MCP_LOGGING_MESSAGE_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__method__name.json\n\n/**\n * The name of the MCP request or notification method being called. `mcp.method.name`\n *\n * Attribute Value Type: `string` {@link MCP_METHOD_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"tools/call\"\n */\nexport const MCP_METHOD_NAME = 'mcp.method.name';\n\n/**\n * Type for {@link MCP_METHOD_NAME} mcp.method.name\n */\nexport type MCP_METHOD_NAME_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__progress__current.json\n\n/**\n * Current progress value of an MCP operation. `mcp.progress.current`\n *\n * Attribute Value Type: `number` {@link MCP_PROGRESS_CURRENT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 50\n */\nexport const MCP_PROGRESS_CURRENT = 'mcp.progress.current';\n\n/**\n * Type for {@link MCP_PROGRESS_CURRENT} mcp.progress.current\n */\nexport type MCP_PROGRESS_CURRENT_TYPE = number;\n\n// Path: model/attributes/mcp/mcp__progress__message.json\n\n/**\n * Progress message describing the current state of an MCP operation. `mcp.progress.message`\n *\n * Attribute Value Type: `string` {@link MCP_PROGRESS_MESSAGE_TYPE}\n *\n * Apply Scrubbing: manual - Progress messages may contain user-specific or sensitive information\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"Processing 50 of 100 items\"\n */\nexport const MCP_PROGRESS_MESSAGE = 'mcp.progress.message';\n\n/**\n * Type for {@link MCP_PROGRESS_MESSAGE} mcp.progress.message\n */\nexport type MCP_PROGRESS_MESSAGE_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__progress__percentage.json\n\n/**\n * Calculated progress percentage of an MCP operation. Computed from current/total * 100. `mcp.progress.percentage`\n *\n * Attribute Value Type: `number` {@link MCP_PROGRESS_PERCENTAGE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 50\n */\nexport const MCP_PROGRESS_PERCENTAGE = 'mcp.progress.percentage';\n\n/**\n * Type for {@link MCP_PROGRESS_PERCENTAGE} mcp.progress.percentage\n */\nexport type MCP_PROGRESS_PERCENTAGE_TYPE = number;\n\n// Path: model/attributes/mcp/mcp__progress__token.json\n\n/**\n * Token for tracking progress of an MCP operation. `mcp.progress.token`\n *\n * Attribute Value Type: `string` {@link MCP_PROGRESS_TOKEN_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"progress-token-123\"\n */\nexport const MCP_PROGRESS_TOKEN = 'mcp.progress.token';\n\n/**\n * Type for {@link MCP_PROGRESS_TOKEN} mcp.progress.token\n */\nexport type MCP_PROGRESS_TOKEN_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__progress__total.json\n\n/**\n * Total progress target value of an MCP operation. `mcp.progress.total`\n *\n * Attribute Value Type: `number` {@link MCP_PROGRESS_TOTAL_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 100\n */\nexport const MCP_PROGRESS_TOTAL = 'mcp.progress.total';\n\n/**\n * Type for {@link MCP_PROGRESS_TOTAL} mcp.progress.total\n */\nexport type MCP_PROGRESS_TOTAL_TYPE = number;\n\n// Path: model/attributes/mcp/mcp__prompt__name.json\n\n/**\n * Name of the MCP prompt template being used. `mcp.prompt.name`\n *\n * Attribute Value Type: `string` {@link MCP_PROMPT_NAME_TYPE}\n *\n * Apply Scrubbing: manual - Prompt names may reveal user behavior patterns or sensitive operations\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_PROMPT_NAME} `gen_ai.prompt.name`\n *\n * @deprecated Use {@link GEN_AI_PROMPT_NAME} (gen_ai.prompt.name) instead - OTel uses gen_ai.prompt.name for MCP prompt names\n * @example \"summarize\"\n */\nexport const MCP_PROMPT_NAME = 'mcp.prompt.name';\n\n/**\n * Type for {@link MCP_PROMPT_NAME} mcp.prompt.name\n */\nexport type MCP_PROMPT_NAME_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__prompt__result__description.json\n\n/**\n * Description of the prompt result. `mcp.prompt.result.description`\n *\n * Attribute Value Type: `string` {@link MCP_PROMPT_RESULT_DESCRIPTION_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"A summary of the requested information\"\n */\nexport const MCP_PROMPT_RESULT_DESCRIPTION = 'mcp.prompt.result.description';\n\n/**\n * Type for {@link MCP_PROMPT_RESULT_DESCRIPTION} mcp.prompt.result.description\n */\nexport type MCP_PROMPT_RESULT_DESCRIPTION_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__prompt__result__message_content.json\n\n/**\n * Content of the message in the prompt result. Used for single message results only. `mcp.prompt.result.message_content`\n *\n * Attribute Value Type: `string` {@link MCP_PROMPT_RESULT_MESSAGE_CONTENT_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"Please provide a summary of the document\"\n */\nexport const MCP_PROMPT_RESULT_MESSAGE_CONTENT = 'mcp.prompt.result.message_content';\n\n/**\n * Type for {@link MCP_PROMPT_RESULT_MESSAGE_CONTENT} mcp.prompt.result.message_content\n */\nexport type MCP_PROMPT_RESULT_MESSAGE_CONTENT_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__prompt__result__message_count.json\n\n/**\n * Number of messages in the prompt result. `mcp.prompt.result.message_count`\n *\n * Attribute Value Type: `number` {@link MCP_PROMPT_RESULT_MESSAGE_COUNT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 3\n */\nexport const MCP_PROMPT_RESULT_MESSAGE_COUNT = 'mcp.prompt.result.message_count';\n\n/**\n * Type for {@link MCP_PROMPT_RESULT_MESSAGE_COUNT} mcp.prompt.result.message_count\n */\nexport type MCP_PROMPT_RESULT_MESSAGE_COUNT_TYPE = number;\n\n// Path: model/attributes/mcp/mcp__prompt__result__message_role.json\n\n/**\n * Role of the message in the prompt result. Used for single message results only. `mcp.prompt.result.message_role`\n *\n * Attribute Value Type: `string` {@link MCP_PROMPT_RESULT_MESSAGE_ROLE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"user\"\n */\nexport const MCP_PROMPT_RESULT_MESSAGE_ROLE = 'mcp.prompt.result.message_role';\n\n/**\n * Type for {@link MCP_PROMPT_RESULT_MESSAGE_ROLE} mcp.prompt.result.message_role\n */\nexport type MCP_PROMPT_RESULT_MESSAGE_ROLE_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__protocol__ready.json\n\n/**\n * Protocol readiness indicator for MCP session. Non-zero value indicates the protocol is ready. `mcp.protocol.ready`\n *\n * Attribute Value Type: `number` {@link MCP_PROTOCOL_READY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 1\n */\nexport const MCP_PROTOCOL_READY = 'mcp.protocol.ready';\n\n/**\n * Type for {@link MCP_PROTOCOL_READY} mcp.protocol.ready\n */\nexport type MCP_PROTOCOL_READY_TYPE = number;\n\n// Path: model/attributes/mcp/mcp__protocol__version.json\n\n/**\n * MCP protocol version used in the session. `mcp.protocol.version`\n *\n * Attribute Value Type: `string` {@link MCP_PROTOCOL_VERSION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"2024-11-05\"\n */\nexport const MCP_PROTOCOL_VERSION = 'mcp.protocol.version';\n\n/**\n * Type for {@link MCP_PROTOCOL_VERSION} mcp.protocol.version\n */\nexport type MCP_PROTOCOL_VERSION_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__request__argument__[key].json\n\n/**\n * MCP request argument with dynamic key suffix. The is replaced with the actual argument name. The value is a JSON-stringified representation of the argument value. `mcp.request.argument.`\n *\n * Attribute Value Type: `string` {@link MCP_REQUEST_ARGUMENT_KEY_TYPE}\n *\n * Apply Scrubbing: auto - Arguments contain user input\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Has Dynamic Suffix: true\n *\n * @example \"mcp.request.argument.query='weather in Paris'\"\n */\nexport const MCP_REQUEST_ARGUMENT_KEY = 'mcp.request.argument.';\n\n/**\n * Base key for {@link MCP_REQUEST_ARGUMENT_KEY}. Use with a dynamic suffix, e.g. `${MCP_REQUEST_ARGUMENT_KEY_BASE}.${key}`.\n */\nexport const MCP_REQUEST_ARGUMENT_KEY_BASE = 'mcp.request.argument';\n\n/**\n * Type for {@link MCP_REQUEST_ARGUMENT_KEY} mcp.request.argument.\n */\nexport type MCP_REQUEST_ARGUMENT_KEY_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__request__argument__name.json\n\n/**\n * Name argument from prompts/get MCP request. `mcp.request.argument.name`\n *\n * Attribute Value Type: `string` {@link MCP_REQUEST_ARGUMENT_NAME_TYPE}\n *\n * Apply Scrubbing: auto - Prompt names can contain user input\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"summarize\"\n */\nexport const MCP_REQUEST_ARGUMENT_NAME = 'mcp.request.argument.name';\n\n/**\n * Type for {@link MCP_REQUEST_ARGUMENT_NAME} mcp.request.argument.name\n */\nexport type MCP_REQUEST_ARGUMENT_NAME_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__request__argument__uri.json\n\n/**\n * URI argument from resources/read MCP request. `mcp.request.argument.uri`\n *\n * Attribute Value Type: `string` {@link MCP_REQUEST_ARGUMENT_URI_TYPE}\n *\n * Apply Scrubbing: auto - URIs can contain user file paths\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"file:///path/to/resource\"\n */\nexport const MCP_REQUEST_ARGUMENT_URI = 'mcp.request.argument.uri';\n\n/**\n * Type for {@link MCP_REQUEST_ARGUMENT_URI} mcp.request.argument.uri\n */\nexport type MCP_REQUEST_ARGUMENT_URI_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__request__id.json\n\n/**\n * JSON-RPC request identifier for the MCP request. Unique within the MCP session. `mcp.request.id`\n *\n * Attribute Value Type: `string` {@link MCP_REQUEST_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link JSONRPC_REQUEST_ID} `jsonrpc.request.id`\n *\n * @deprecated Use {@link JSONRPC_REQUEST_ID} (jsonrpc.request.id) instead - OTel models MCP as JSON-RPC, uses jsonrpc.request.id\n * @example \"1\"\n */\nexport const MCP_REQUEST_ID = 'mcp.request.id';\n\n/**\n * Type for {@link MCP_REQUEST_ID} mcp.request.id\n */\nexport type MCP_REQUEST_ID_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__resource__protocol.json\n\n/**\n * Protocol of the resource URI being accessed, extracted from the URI. `mcp.resource.protocol`\n *\n * Attribute Value Type: `string` {@link MCP_RESOURCE_PROTOCOL_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link NETWORK_PROTOCOL_NAME} `network.protocol.name`, {@link NET_PROTOCOL_NAME} `net.protocol.name`\n *\n * @deprecated Use {@link NETWORK_PROTOCOL_NAME} (network.protocol.name) instead - OTel uses the generic network.protocol.name attribute\n * @example \"file\"\n */\nexport const MCP_RESOURCE_PROTOCOL = 'mcp.resource.protocol';\n\n/**\n * Type for {@link MCP_RESOURCE_PROTOCOL} mcp.resource.protocol\n */\nexport type MCP_RESOURCE_PROTOCOL_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__resource__uri.json\n\n/**\n * The resource URI being accessed in an MCP operation. `mcp.resource.uri`\n *\n * Attribute Value Type: `string` {@link MCP_RESOURCE_URI_TYPE}\n *\n * Apply Scrubbing: auto - URIs can contain sensitive file paths\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"file:///path/to/file.txt\"\n */\nexport const MCP_RESOURCE_URI = 'mcp.resource.uri';\n\n/**\n * Type for {@link MCP_RESOURCE_URI} mcp.resource.uri\n */\nexport type MCP_RESOURCE_URI_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__server__name.json\n\n/**\n * Name of the MCP server application. `mcp.server.name`\n *\n * Attribute Value Type: `string` {@link MCP_SERVER_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"sentry-mcp-server\"\n */\nexport const MCP_SERVER_NAME = 'mcp.server.name';\n\n/**\n * Type for {@link MCP_SERVER_NAME} mcp.server.name\n */\nexport type MCP_SERVER_NAME_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__server__title.json\n\n/**\n * Display title of the MCP server application. `mcp.server.title`\n *\n * Attribute Value Type: `string` {@link MCP_SERVER_TITLE_TYPE}\n *\n * Apply Scrubbing: manual - Server titles may reveal user-specific application configurations or custom setups\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"Sentry MCP Server\"\n */\nexport const MCP_SERVER_TITLE = 'mcp.server.title';\n\n/**\n * Type for {@link MCP_SERVER_TITLE} mcp.server.title\n */\nexport type MCP_SERVER_TITLE_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__server__version.json\n\n/**\n * Version of the MCP server application. `mcp.server.version`\n *\n * Attribute Value Type: `string` {@link MCP_SERVER_VERSION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"0.1.0\"\n */\nexport const MCP_SERVER_VERSION = 'mcp.server.version';\n\n/**\n * Type for {@link MCP_SERVER_VERSION} mcp.server.version\n */\nexport type MCP_SERVER_VERSION_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__session__id.json\n\n/**\n * Identifier for the MCP session. `mcp.session.id`\n *\n * Attribute Value Type: `string` {@link MCP_SESSION_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"550e8400-e29b-41d4-a716-446655440000\"\n */\nexport const MCP_SESSION_ID = 'mcp.session.id';\n\n/**\n * Type for {@link MCP_SESSION_ID} mcp.session.id\n */\nexport type MCP_SESSION_ID_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__tool__name.json\n\n/**\n * Name of the MCP tool being called. `mcp.tool.name`\n *\n * Attribute Value Type: `string` {@link MCP_TOOL_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_TOOL_NAME} `gen_ai.tool.name`, {@link AI_FUNCTION_CALL} `ai.function_call`\n *\n * @deprecated Use {@link GEN_AI_TOOL_NAME} (gen_ai.tool.name) instead - OTel uses gen_ai.tool.name for MCP tool names\n * @example \"calculator\"\n */\nexport const MCP_TOOL_NAME = 'mcp.tool.name';\n\n/**\n * Type for {@link MCP_TOOL_NAME} mcp.tool.name\n */\nexport type MCP_TOOL_NAME_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__tool__result__content.json\n\n/**\n * The content of the tool result. `mcp.tool.result.content`\n *\n * Attribute Value Type: `string` {@link MCP_TOOL_RESULT_CONTENT_TYPE}\n *\n * Apply Scrubbing: auto - Tool results can contain user data\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_TOOL_CALL_RESULT} `gen_ai.tool.call.result`, {@link GEN_AI_TOOL_MESSAGE} `gen_ai.tool.message`, {@link GEN_AI_TOOL_OUTPUT} `gen_ai.tool.output`\n *\n * @deprecated Use {@link GEN_AI_TOOL_CALL_RESULT} (gen_ai.tool.call.result) instead - OTel uses gen_ai.tool.call.result for MCP tool results\n * @example \"{\\\"output\\\": \\\"rainy\\\", \\\"toolCallId\\\": \\\"1\\\"}\"\n */\nexport const MCP_TOOL_RESULT_CONTENT = 'mcp.tool.result.content';\n\n/**\n * Type for {@link MCP_TOOL_RESULT_CONTENT} mcp.tool.result.content\n */\nexport type MCP_TOOL_RESULT_CONTENT_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__tool__result__content_count.json\n\n/**\n * Number of content items in the tool result. `mcp.tool.result.content_count`\n *\n * Attribute Value Type: `number` {@link MCP_TOOL_RESULT_CONTENT_COUNT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 1\n */\nexport const MCP_TOOL_RESULT_CONTENT_COUNT = 'mcp.tool.result.content_count';\n\n/**\n * Type for {@link MCP_TOOL_RESULT_CONTENT_COUNT} mcp.tool.result.content_count\n */\nexport type MCP_TOOL_RESULT_CONTENT_COUNT_TYPE = number;\n\n// Path: model/attributes/mcp/mcp__tool__result__is_error.json\n\n/**\n * Whether a tool execution resulted in an error. `mcp.tool.result.is_error`\n *\n * Attribute Value Type: `boolean` {@link MCP_TOOL_RESULT_IS_ERROR_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated Use {@link ERROR_TYPE} (error.type) instead - OTel uses error.type set to 'tool_error' when isError is true. Cannot be automatically backfilled due to type mismatch (boolean vs string).\n * @example false\n */\nexport const MCP_TOOL_RESULT_IS_ERROR = 'mcp.tool.result.is_error';\n\n/**\n * Type for {@link MCP_TOOL_RESULT_IS_ERROR} mcp.tool.result.is_error\n */\nexport type MCP_TOOL_RESULT_IS_ERROR_TYPE = boolean;\n\n// Path: model/attributes/mcp/mcp__transport.json\n\n/**\n * Transport method used for MCP communication. `mcp.transport`\n *\n * Attribute Value Type: `string` {@link MCP_TRANSPORT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link NETWORK_TRANSPORT} `network.transport`, {@link NET_TRANSPORT} `net.transport`\n *\n * @deprecated Use {@link NETWORK_TRANSPORT} (network.transport) instead - OTel uses the generic network.transport attribute\n * @example \"stdio\"\n */\nexport const MCP_TRANSPORT = 'mcp.transport';\n\n/**\n * Type for {@link MCP_TRANSPORT} mcp.transport\n */\nexport type MCP_TRANSPORT_TYPE = string;\n\n// Path: model/attributes/mdc/mdc__[key].json\n\n/**\n * 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. `mdc.`\n *\n * Attribute Value Type: `string` {@link MDC_KEY_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Has Dynamic Suffix: true\n *\n * @example \"mdc.some_key='some_value'\"\n */\nexport const MDC_KEY = 'mdc.';\n\n/**\n * Base key for {@link MDC_KEY}. Use with a dynamic suffix, e.g. `${MDC_KEY_BASE}.${key}`.\n */\nexport const MDC_KEY_BASE = 'mdc';\n\n/**\n * Type for {@link MDC_KEY} mdc.\n */\nexport type MDC_KEY_TYPE = string;\n\n// Path: model/attributes/messaging/messaging__batch__message_count.json\n\n/**\n * The number of messages sent, received, or processed in the scope of the batching operation. `messaging.batch.message_count`\n *\n * Attribute Value Type: `number` {@link MESSAGING_BATCH_MESSAGE_COUNT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example 10\n */\nexport const MESSAGING_BATCH_MESSAGE_COUNT = 'messaging.batch.message_count';\n\n/**\n * Type for {@link MESSAGING_BATCH_MESSAGE_COUNT} messaging.batch.message_count\n */\nexport type MESSAGING_BATCH_MESSAGE_COUNT_TYPE = number;\n\n// Path: model/attributes/messaging/messaging__destination.json\n\n/**\n * The message destination name. `messaging.destination`\n *\n * Attribute Value Type: `string` {@link MESSAGING_DESTINATION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link MESSAGING_DESTINATION_NAME} `messaging.destination.name`\n *\n * @deprecated Use {@link MESSAGING_DESTINATION_NAME} (messaging.destination.name) instead - This attribute is being deprecated in favor of messaging.destination.name, which is the OTel-aligned replacement.\n * @example \"BestTopic\"\n */\nexport const MESSAGING_DESTINATION = 'messaging.destination';\n\n/**\n * Type for {@link MESSAGING_DESTINATION} messaging.destination\n */\nexport type MESSAGING_DESTINATION_TYPE = string;\n\n// Path: model/attributes/messaging/messaging__destination__connection.json\n\n/**\n * The message destination connection. `messaging.destination.connection`\n *\n * Attribute Value Type: `string` {@link MESSAGING_DESTINATION_CONNECTION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"BestTopic\"\n */\nexport const MESSAGING_DESTINATION_CONNECTION = 'messaging.destination.connection';\n\n/**\n * Type for {@link MESSAGING_DESTINATION_CONNECTION} messaging.destination.connection\n */\nexport type MESSAGING_DESTINATION_CONNECTION_TYPE = string;\n\n// Path: model/attributes/messaging/messaging__destination__name.json\n\n/**\n * The message destination name. `messaging.destination.name`\n *\n * Attribute Value Type: `string` {@link MESSAGING_DESTINATION_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link MESSAGING_DESTINATION} `messaging.destination`\n *\n * @example \"BestTopic\"\n */\nexport const MESSAGING_DESTINATION_NAME = 'messaging.destination.name';\n\n/**\n * Type for {@link MESSAGING_DESTINATION_NAME} messaging.destination.name\n */\nexport type MESSAGING_DESTINATION_NAME_TYPE = string;\n\n// Path: model/attributes/messaging/messaging__message__body__size.json\n\n/**\n * The size of the message body in bytes. `messaging.message.body.size`\n *\n * Attribute Value Type: `number` {@link MESSAGING_MESSAGE_BODY_SIZE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example 839\n */\nexport const MESSAGING_MESSAGE_BODY_SIZE = 'messaging.message.body.size';\n\n/**\n * Type for {@link MESSAGING_MESSAGE_BODY_SIZE} messaging.message.body.size\n */\nexport type MESSAGING_MESSAGE_BODY_SIZE_TYPE = number;\n\n// Path: model/attributes/messaging/messaging__message__conversation_id.json\n\n/**\n * The conversation ID identifying the conversation to which the message belongs, represented as a string. Sometimes called \"Correlation ID\". `messaging.message.conversation_id`\n *\n * Attribute Value Type: `string` {@link MESSAGING_MESSAGE_CONVERSATION_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"MyConversationId\"\n */\nexport const MESSAGING_MESSAGE_CONVERSATION_ID = 'messaging.message.conversation_id';\n\n/**\n * Type for {@link MESSAGING_MESSAGE_CONVERSATION_ID} messaging.message.conversation_id\n */\nexport type MESSAGING_MESSAGE_CONVERSATION_ID_TYPE = string;\n\n// Path: model/attributes/messaging/messaging__message__envelope__size.json\n\n/**\n * The size of the message body and metadata in bytes. `messaging.message.envelope.size`\n *\n * Attribute Value Type: `number` {@link MESSAGING_MESSAGE_ENVELOPE_SIZE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example 1045\n */\nexport const MESSAGING_MESSAGE_ENVELOPE_SIZE = 'messaging.message.envelope.size';\n\n/**\n * Type for {@link MESSAGING_MESSAGE_ENVELOPE_SIZE} messaging.message.envelope.size\n */\nexport type MESSAGING_MESSAGE_ENVELOPE_SIZE_TYPE = number;\n\n// Path: model/attributes/messaging/messaging__message__id.json\n\n/**\n * A value used by the messaging system as an identifier for the message, represented as a string. `messaging.message.id`\n *\n * Attribute Value Type: `string` {@link MESSAGING_MESSAGE_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"f47ac10b58cc4372a5670e02b2c3d479\"\n */\nexport const MESSAGING_MESSAGE_ID = 'messaging.message.id';\n\n/**\n * Type for {@link MESSAGING_MESSAGE_ID} messaging.message.id\n */\nexport type MESSAGING_MESSAGE_ID_TYPE = string;\n\n// Path: model/attributes/messaging/messaging__message__receive__latency.json\n\n/**\n * The latency between when the message was published and received. `messaging.message.receive.latency`\n *\n * Attribute Value Type: `number` {@link MESSAGING_MESSAGE_RECEIVE_LATENCY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 1732847252\n */\nexport const MESSAGING_MESSAGE_RECEIVE_LATENCY = 'messaging.message.receive.latency';\n\n/**\n * Type for {@link MESSAGING_MESSAGE_RECEIVE_LATENCY} messaging.message.receive.latency\n */\nexport type MESSAGING_MESSAGE_RECEIVE_LATENCY_TYPE = number;\n\n// Path: model/attributes/messaging/messaging__message__retry__count.json\n\n/**\n * The amount of attempts to send the message. `messaging.message.retry.count`\n *\n * Attribute Value Type: `number` {@link MESSAGING_MESSAGE_RETRY_COUNT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 2\n */\nexport const MESSAGING_MESSAGE_RETRY_COUNT = 'messaging.message.retry.count';\n\n/**\n * Type for {@link MESSAGING_MESSAGE_RETRY_COUNT} messaging.message.retry.count\n */\nexport type MESSAGING_MESSAGE_RETRY_COUNT_TYPE = number;\n\n// Path: model/attributes/messaging/messaging__operation__name.json\n\n/**\n * The name of the messaging operation being performed `messaging.operation.name`\n *\n * Attribute Value Type: `string` {@link MESSAGING_OPERATION_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"send\"\n */\nexport const MESSAGING_OPERATION_NAME = 'messaging.operation.name';\n\n/**\n * Type for {@link MESSAGING_OPERATION_NAME} messaging.operation.name\n */\nexport type MESSAGING_OPERATION_NAME_TYPE = string;\n\n// Path: model/attributes/messaging/messaging__operation__type.json\n\n/**\n * A string identifying the type of the messaging operation `messaging.operation.type`\n *\n * Attribute Value Type: `string` {@link MESSAGING_OPERATION_TYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"create\"\n */\nexport const MESSAGING_OPERATION_TYPE = 'messaging.operation.type';\n\n/**\n * Type for {@link MESSAGING_OPERATION_TYPE} messaging.operation.type\n */\nexport type MESSAGING_OPERATION_TYPE_TYPE = string;\n\n// Path: model/attributes/messaging/messaging__rabbitmq__destination__routing_key.json\n\n/**\n * RabbitMQ message routing key. `messaging.rabbitmq.destination.routing_key`\n *\n * Attribute Value Type: `string` {@link MESSAGING_RABBITMQ_DESTINATION_ROUTING_KEY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"myKey\"\n */\nexport const MESSAGING_RABBITMQ_DESTINATION_ROUTING_KEY = 'messaging.rabbitmq.destination.routing_key';\n\n/**\n * Type for {@link MESSAGING_RABBITMQ_DESTINATION_ROUTING_KEY} messaging.rabbitmq.destination.routing_key\n */\nexport type MESSAGING_RABBITMQ_DESTINATION_ROUTING_KEY_TYPE = string;\n\n// Path: model/attributes/messaging/messaging__system.json\n\n/**\n * The messaging system as identified by the client instrumentation. `messaging.system`\n *\n * Attribute Value Type: `string` {@link MESSAGING_SYSTEM_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"activemq\"\n */\nexport const MESSAGING_SYSTEM = 'messaging.system';\n\n/**\n * Type for {@link MESSAGING_SYSTEM} messaging.system\n */\nexport type MESSAGING_SYSTEM_TYPE = string;\n\n// Path: model/attributes/method.json\n\n/**\n * The HTTP method used. `method`\n *\n * Attribute Value Type: `string` {@link METHOD_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link HTTP_REQUEST_METHOD} `http.request.method`, {@link _HTTP_REQUEST_METHOD} `http.request_method`, {@link HTTP_METHOD} `http.method`\n *\n * @deprecated Use {@link HTTP_REQUEST_METHOD} (http.request.method) instead\n * @example \"GET\"\n */\nexport const METHOD = 'method';\n\n/**\n * Type for {@link METHOD} method\n */\nexport type METHOD_TYPE = string;\n\n// Path: model/attributes/middleware/middleware__name.json\n\n/**\n * The name of the middleware. `middleware.name`\n *\n * Attribute Value Type: `string` {@link MIDDLEWARE_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"AuthenticationMiddleware\"\n */\nexport const MIDDLEWARE_NAME = 'middleware.name';\n\n/**\n * Type for {@link MIDDLEWARE_NAME} middleware.name\n */\nexport type MIDDLEWARE_NAME_TYPE = string;\n\n// Path: model/attributes/navigation/navigation__origin.json\n\n/**\n * The origin of the navigation (usually client side router navigations). Should preferrably parameterized template (like url.template) or a URL path otherwise. `navigation.origin`\n *\n * Attribute Value Type: `string` {@link NAVIGATION_ORIGIN_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link SENTRY_SVELTEKIT_NAVIGATION_FROM} `sentry.sveltekit.navigation.from`\n *\n * @example \"/users/:id\"\n */\nexport const NAVIGATION_ORIGIN = 'navigation.origin';\n\n/**\n * Type for {@link NAVIGATION_ORIGIN} navigation.origin\n */\nexport type NAVIGATION_ORIGIN_TYPE = string;\n\n// Path: model/attributes/navigation/navigation__route__id.json\n\n/**\n * The identifier of the matched client-side route, as assigned by the routing framework (e.g., vue-router name, react-router id). `navigation.route.id`\n *\n * Attribute Value Type: `string` {@link NAVIGATION_ROUTE_ID_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"AboutView\"\n */\nexport const NAVIGATION_ROUTE_ID = 'navigation.route.id';\n\n/**\n * Type for {@link NAVIGATION_ROUTE_ID} navigation.route.id\n */\nexport type NAVIGATION_ROUTE_ID_TYPE = string;\n\n// Path: model/attributes/navigation/navigation__type.json\n\n/**\n * The type of navigation done by a client-side router. `navigation.type`\n *\n * Attribute Value Type: `string` {@link NAVIGATION_TYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link SENTRY_SVELTEKIT_NAVIGATION_TYPE} `sentry.sveltekit.navigation.type`\n *\n * @example \"router.push\"\n */\nexport const NAVIGATION_TYPE = 'navigation.type';\n\n/**\n * Type for {@link NAVIGATION_TYPE} navigation.type\n */\nexport type NAVIGATION_TYPE_TYPE = string;\n\n// Path: model/attributes/nel/nel__elapsed_time.json\n\n/**\n * The elapsed number of milliseconds between the start of the resource fetch and when it was completed or aborted by the user agent. `nel.elapsed_time`\n *\n * Attribute Value Type: `number` {@link NEL_ELAPSED_TIME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 100\n */\nexport const NEL_ELAPSED_TIME = 'nel.elapsed_time';\n\n/**\n * Type for {@link NEL_ELAPSED_TIME} nel.elapsed_time\n */\nexport type NEL_ELAPSED_TIME_TYPE = number;\n\n// Path: model/attributes/nel/nel__phase.json\n\n/**\n * If request failed, the phase of its network error. If request succeeded, \"application\". `nel.phase`\n *\n * Attribute Value Type: `string` {@link NEL_PHASE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"application\"\n */\nexport const NEL_PHASE = 'nel.phase';\n\n/**\n * Type for {@link NEL_PHASE} nel.phase\n */\nexport type NEL_PHASE_TYPE = string;\n\n// Path: model/attributes/nel/nel__referrer.json\n\n/**\n * request's referrer, as determined by the referrer policy associated with its client. `nel.referrer`\n *\n * Attribute Value Type: `string` {@link NEL_REFERRER_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"https://example.com/foo?bar=baz\"\n */\nexport const NEL_REFERRER = 'nel.referrer';\n\n/**\n * Type for {@link NEL_REFERRER} nel.referrer\n */\nexport type NEL_REFERRER_TYPE = string;\n\n// Path: model/attributes/nel/nel__sampling_function.json\n\n/**\n * The sampling function used to determine if the request should be sampled. `nel.sampling_function`\n *\n * Attribute Value Type: `number` {@link NEL_SAMPLING_FUNCTION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 0.5\n */\nexport const NEL_SAMPLING_FUNCTION = 'nel.sampling_function';\n\n/**\n * Type for {@link NEL_SAMPLING_FUNCTION} nel.sampling_function\n */\nexport type NEL_SAMPLING_FUNCTION_TYPE = number;\n\n// Path: model/attributes/nel/nel__type.json\n\n/**\n * If request failed, the type of its network error. If request succeeded, \"ok\". `nel.type`\n *\n * Attribute Value Type: `string` {@link NEL_TYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"dns.unreachable\"\n */\nexport const NEL_TYPE = 'nel.type';\n\n/**\n * Type for {@link NEL_TYPE} nel.type\n */\nexport type NEL_TYPE_TYPE = string;\n\n// Path: model/attributes/network/network__connection__effective_type.json\n\n/**\n * Specifies the effective type of the current connection (e.g. slow-2g, 2g, 3g, 4g). `network.connection.effective_type`\n *\n * Attribute Value Type: `string` {@link NETWORK_CONNECTION_EFFECTIVE_TYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link EFFECTIVECONNECTIONTYPE} `effectiveConnectionType`\n *\n * @example \"4g\"\n */\nexport const NETWORK_CONNECTION_EFFECTIVE_TYPE = 'network.connection.effective_type';\n\n/**\n * Type for {@link NETWORK_CONNECTION_EFFECTIVE_TYPE} network.connection.effective_type\n */\nexport type NETWORK_CONNECTION_EFFECTIVE_TYPE_TYPE = string;\n\n// Path: model/attributes/network/network__connection__rtt.json\n\n/**\n * Specifies the estimated effective round-trip time of the current connection, in milliseconds. `network.connection.rtt`\n *\n * Attribute Value Type: `number` {@link NETWORK_CONNECTION_RTT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link CONNECTION_RTT} `connection.rtt`\n *\n * @example 100\n */\nexport const NETWORK_CONNECTION_RTT = 'network.connection.rtt';\n\n/**\n * Type for {@link NETWORK_CONNECTION_RTT} network.connection.rtt\n */\nexport type NETWORK_CONNECTION_RTT_TYPE = number;\n\n// Path: model/attributes/network/network__connection__type.json\n\n/**\n * Specifies the type of the current connection (e.g. wifi, ethernet, cellular , etc). `network.connection.type`\n *\n * Attribute Value Type: `string` {@link NETWORK_CONNECTION_TYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link DEVICE_CONNECTION_TYPE} `device.connection_type`, {@link CONNECTIONTYPE} `connectionType`\n *\n * @example \"wifi\"\n */\nexport const NETWORK_CONNECTION_TYPE = 'network.connection.type';\n\n/**\n * Type for {@link NETWORK_CONNECTION_TYPE} network.connection.type\n */\nexport type NETWORK_CONNECTION_TYPE_TYPE = string;\n\n// Path: model/attributes/network/network__local__address.json\n\n/**\n * Local address of the network connection - IP address or Unix domain socket name. `network.local.address`\n *\n * Attribute Value Type: `string` {@link NETWORK_LOCAL_ADDRESS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link NET_HOST_IP} `net.host.ip`, {@link NET_SOCK_HOST_ADDR} `net.sock.host.addr`\n *\n * @example \"10.1.2.80\"\n */\nexport const NETWORK_LOCAL_ADDRESS = 'network.local.address';\n\n/**\n * Type for {@link NETWORK_LOCAL_ADDRESS} network.local.address\n */\nexport type NETWORK_LOCAL_ADDRESS_TYPE = string;\n\n// Path: model/attributes/network/network__local__port.json\n\n/**\n * Local port number of the network connection. `network.local.port`\n *\n * Attribute Value Type: `number` {@link NETWORK_LOCAL_PORT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link NET_SOCK_HOST_PORT} `net.sock.host.port`\n *\n * @example 65400\n */\nexport const NETWORK_LOCAL_PORT = 'network.local.port';\n\n/**\n * Type for {@link NETWORK_LOCAL_PORT} network.local.port\n */\nexport type NETWORK_LOCAL_PORT_TYPE = number;\n\n// Path: model/attributes/network/network__peer__address.json\n\n/**\n * Peer address of the network connection - IP address or Unix domain socket name. `network.peer.address`\n *\n * Attribute Value Type: `string` {@link NETWORK_PEER_ADDRESS_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link NET_PEER_IP} `net.peer.ip`, {@link NET_SOCK_PEER_ADDR} `net.sock.peer.addr`\n *\n * @example \"10.1.2.80\"\n */\nexport const NETWORK_PEER_ADDRESS = 'network.peer.address';\n\n/**\n * Type for {@link NETWORK_PEER_ADDRESS} network.peer.address\n */\nexport type NETWORK_PEER_ADDRESS_TYPE = string;\n\n// Path: model/attributes/network/network__peer__port.json\n\n/**\n * Peer port number of the network connection. `network.peer.port`\n *\n * Attribute Value Type: `number` {@link NETWORK_PEER_PORT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example 65400\n */\nexport const NETWORK_PEER_PORT = 'network.peer.port';\n\n/**\n * Type for {@link NETWORK_PEER_PORT} network.peer.port\n */\nexport type NETWORK_PEER_PORT_TYPE = number;\n\n// Path: model/attributes/network/network__protocol__name.json\n\n/**\n * OSI application layer or non-OSI equivalent. `network.protocol.name`\n *\n * Attribute Value Type: `string` {@link NETWORK_PROTOCOL_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link NET_PROTOCOL_NAME} `net.protocol.name`, {@link MCP_RESOURCE_PROTOCOL} `mcp.resource.protocol`\n *\n * @example \"http\"\n */\nexport const NETWORK_PROTOCOL_NAME = 'network.protocol.name';\n\n/**\n * Type for {@link NETWORK_PROTOCOL_NAME} network.protocol.name\n */\nexport type NETWORK_PROTOCOL_NAME_TYPE = string;\n\n// Path: model/attributes/network/network__protocol__version.json\n\n/**\n * The actual version of the protocol used for network communication. `network.protocol.version`\n *\n * Attribute Value Type: `string` {@link NETWORK_PROTOCOL_VERSION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link HTTP_FLAVOR} `http.flavor`, {@link NET_PROTOCOL_VERSION} `net.protocol.version`\n *\n * @example \"1.1\"\n */\nexport const NETWORK_PROTOCOL_VERSION = 'network.protocol.version';\n\n/**\n * Type for {@link NETWORK_PROTOCOL_VERSION} network.protocol.version\n */\nexport type NETWORK_PROTOCOL_VERSION_TYPE = string;\n\n// Path: model/attributes/network/network__transport.json\n\n/**\n * OSI transport layer or inter-process communication method. `network.transport`\n *\n * Attribute Value Type: `string` {@link NETWORK_TRANSPORT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link NET_TRANSPORT} `net.transport`, {@link MCP_TRANSPORT} `mcp.transport`\n *\n * @example \"tcp\"\n */\nexport const NETWORK_TRANSPORT = 'network.transport';\n\n/**\n * Type for {@link NETWORK_TRANSPORT} network.transport\n */\nexport type NETWORK_TRANSPORT_TYPE = string;\n\n// Path: model/attributes/network/network__type.json\n\n/**\n * OSI network layer or non-OSI equivalent. `network.type`\n *\n * Attribute Value Type: `string` {@link NETWORK_TYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"ipv4\"\n */\nexport const NETWORK_TYPE = 'network.type';\n\n/**\n * Type for {@link NETWORK_TYPE} network.type\n */\nexport type NETWORK_TYPE_TYPE = string;\n\n// Path: model/attributes/net/net__host__ip.json\n\n/**\n * Local address of the network connection - IP address or Unix domain socket name. `net.host.ip`\n *\n * Attribute Value Type: `string` {@link NET_HOST_IP_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link NETWORK_LOCAL_ADDRESS} `network.local.address`, {@link NET_SOCK_HOST_ADDR} `net.sock.host.addr`\n *\n * @deprecated Use {@link NETWORK_LOCAL_ADDRESS} (network.local.address) instead\n * @example \"192.168.0.1\"\n */\nexport const NET_HOST_IP = 'net.host.ip';\n\n/**\n * Type for {@link NET_HOST_IP} net.host.ip\n */\nexport type NET_HOST_IP_TYPE = string;\n\n// Path: model/attributes/net/net__host__name.json\n\n/**\n * Server domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name. `net.host.name`\n *\n * Attribute Value Type: `string` {@link NET_HOST_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link SERVER_ADDRESS} `server.address`, {@link HTTP_SERVER_NAME} `http.server_name`, {@link HTTP_HOST} `http.host`, {@link SERVER_NAME} `server_name`\n *\n * @deprecated Use {@link SERVER_ADDRESS} (server.address) instead\n * @example \"example.com\"\n */\nexport const NET_HOST_NAME = 'net.host.name';\n\n/**\n * Type for {@link NET_HOST_NAME} net.host.name\n */\nexport type NET_HOST_NAME_TYPE = string;\n\n// Path: model/attributes/net/net__host__port.json\n\n/**\n * Server port number. `net.host.port`\n *\n * Attribute Value Type: `number` {@link NET_HOST_PORT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link SERVER_PORT} `server.port`\n *\n * @deprecated Use {@link SERVER_PORT} (server.port) instead\n * @example 1337\n */\nexport const NET_HOST_PORT = 'net.host.port';\n\n/**\n * Type for {@link NET_HOST_PORT} net.host.port\n */\nexport type NET_HOST_PORT_TYPE = number;\n\n// Path: model/attributes/net/net__peer__ip.json\n\n/**\n * Peer address of the network connection - IP address or Unix domain socket name. `net.peer.ip`\n *\n * Attribute Value Type: `string` {@link NET_PEER_IP_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link NETWORK_PEER_ADDRESS} `network.peer.address`, {@link NET_SOCK_PEER_ADDR} `net.sock.peer.addr`\n *\n * @deprecated Use {@link NETWORK_PEER_ADDRESS} (network.peer.address) instead\n * @example \"192.168.0.1\"\n */\nexport const NET_PEER_IP = 'net.peer.ip';\n\n/**\n * Type for {@link NET_PEER_IP} net.peer.ip\n */\nexport type NET_PEER_IP_TYPE = string;\n\n// Path: model/attributes/net/net__peer__name.json\n\n/**\n * Server domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name. `net.peer.name`\n *\n * Attribute Value Type: `string` {@link NET_PEER_NAME_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @deprecated Use {@link SERVER_ADDRESS} (server.address) instead - Deprecated, use server.address on client spans and client.address on server spans.\n * @example \"example.com\"\n */\nexport const NET_PEER_NAME = 'net.peer.name';\n\n/**\n * Type for {@link NET_PEER_NAME} net.peer.name\n */\nexport type NET_PEER_NAME_TYPE = string;\n\n// Path: model/attributes/net/net__peer__port.json\n\n/**\n * Peer port number. `net.peer.port`\n *\n * Attribute Value Type: `number` {@link NET_PEER_PORT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @deprecated Use {@link SERVER_PORT} (server.port) instead - Deprecated, use server.port on client spans and client.port on server spans.\n * @example 1337\n */\nexport const NET_PEER_PORT = 'net.peer.port';\n\n/**\n * Type for {@link NET_PEER_PORT} net.peer.port\n */\nexport type NET_PEER_PORT_TYPE = number;\n\n// Path: model/attributes/net/net__protocol__name.json\n\n/**\n * OSI application layer or non-OSI equivalent. `net.protocol.name`\n *\n * Attribute Value Type: `string` {@link NET_PROTOCOL_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link NETWORK_PROTOCOL_NAME} `network.protocol.name`, {@link MCP_RESOURCE_PROTOCOL} `mcp.resource.protocol`\n *\n * @deprecated Use {@link NETWORK_PROTOCOL_NAME} (network.protocol.name) instead\n * @example \"http\"\n */\nexport const NET_PROTOCOL_NAME = 'net.protocol.name';\n\n/**\n * Type for {@link NET_PROTOCOL_NAME} net.protocol.name\n */\nexport type NET_PROTOCOL_NAME_TYPE = string;\n\n// Path: model/attributes/net/net__protocol__version.json\n\n/**\n * The actual version of the protocol used for network communication. `net.protocol.version`\n *\n * Attribute Value Type: `string` {@link NET_PROTOCOL_VERSION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link NETWORK_PROTOCOL_VERSION} `network.protocol.version`, {@link HTTP_FLAVOR} `http.flavor`\n *\n * @deprecated Use {@link NETWORK_PROTOCOL_VERSION} (network.protocol.version) instead\n * @example \"1.1\"\n */\nexport const NET_PROTOCOL_VERSION = 'net.protocol.version';\n\n/**\n * Type for {@link NET_PROTOCOL_VERSION} net.protocol.version\n */\nexport type NET_PROTOCOL_VERSION_TYPE = string;\n\n// Path: model/attributes/net/net__sock__family.json\n\n/**\n * OSI transport and network layer `net.sock.family`\n *\n * Attribute Value Type: `string` {@link NET_SOCK_FAMILY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @deprecated Use {@link NETWORK_TRANSPORT} (network.transport) instead - Deprecated, use network.transport and network.type.\n * @example \"inet\"\n */\nexport const NET_SOCK_FAMILY = 'net.sock.family';\n\n/**\n * Type for {@link NET_SOCK_FAMILY} net.sock.family\n */\nexport type NET_SOCK_FAMILY_TYPE = string;\n\n// Path: model/attributes/net/net__sock__host__addr.json\n\n/**\n * Local address of the network connection mapping to Unix domain socket name. `net.sock.host.addr`\n *\n * Attribute Value Type: `string` {@link NET_SOCK_HOST_ADDR_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link NETWORK_LOCAL_ADDRESS} `network.local.address`, {@link NET_HOST_IP} `net.host.ip`\n *\n * @deprecated Use {@link NETWORK_LOCAL_ADDRESS} (network.local.address) instead\n * @example \"/var/my.sock\"\n */\nexport const NET_SOCK_HOST_ADDR = 'net.sock.host.addr';\n\n/**\n * Type for {@link NET_SOCK_HOST_ADDR} net.sock.host.addr\n */\nexport type NET_SOCK_HOST_ADDR_TYPE = string;\n\n// Path: model/attributes/net/net__sock__host__port.json\n\n/**\n * Local port number of the network connection. `net.sock.host.port`\n *\n * Attribute Value Type: `number` {@link NET_SOCK_HOST_PORT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link NETWORK_LOCAL_PORT} `network.local.port`\n *\n * @deprecated Use {@link NETWORK_LOCAL_PORT} (network.local.port) instead\n * @example 8080\n */\nexport const NET_SOCK_HOST_PORT = 'net.sock.host.port';\n\n/**\n * Type for {@link NET_SOCK_HOST_PORT} net.sock.host.port\n */\nexport type NET_SOCK_HOST_PORT_TYPE = number;\n\n// Path: model/attributes/net/net__sock__peer__addr.json\n\n/**\n * Peer address of the network connection - IP address `net.sock.peer.addr`\n *\n * Attribute Value Type: `string` {@link NET_SOCK_PEER_ADDR_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link NETWORK_PEER_ADDRESS} `network.peer.address`, {@link NET_PEER_IP} `net.peer.ip`\n *\n * @deprecated Use {@link NETWORK_PEER_ADDRESS} (network.peer.address) instead\n * @example \"192.168.0.1\"\n */\nexport const NET_SOCK_PEER_ADDR = 'net.sock.peer.addr';\n\n/**\n * Type for {@link NET_SOCK_PEER_ADDR} net.sock.peer.addr\n */\nexport type NET_SOCK_PEER_ADDR_TYPE = string;\n\n// Path: model/attributes/net/net__sock__peer__name.json\n\n/**\n * Peer address of the network connection - Unix domain socket name `net.sock.peer.name`\n *\n * Attribute Value Type: `string` {@link NET_SOCK_PEER_NAME_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @deprecated - Deprecated from OTEL, no replacement at this time\n * @example \"/var/my.sock\"\n */\nexport const NET_SOCK_PEER_NAME = 'net.sock.peer.name';\n\n/**\n * Type for {@link NET_SOCK_PEER_NAME} net.sock.peer.name\n */\nexport type NET_SOCK_PEER_NAME_TYPE = string;\n\n// Path: model/attributes/net/net__sock__peer__port.json\n\n/**\n * Peer port number of the network connection. `net.sock.peer.port`\n *\n * Attribute Value Type: `number` {@link NET_SOCK_PEER_PORT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @deprecated Use {@link NETWORK_PEER_PORT} (network.peer.port) instead\n * @example 8080\n */\nexport const NET_SOCK_PEER_PORT = 'net.sock.peer.port';\n\n/**\n * Type for {@link NET_SOCK_PEER_PORT} net.sock.peer.port\n */\nexport type NET_SOCK_PEER_PORT_TYPE = number;\n\n// Path: model/attributes/net/net__transport.json\n\n/**\n * OSI transport layer or inter-process communication method. `net.transport`\n *\n * Attribute Value Type: `string` {@link NET_TRANSPORT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link NETWORK_TRANSPORT} `network.transport`, {@link MCP_TRANSPORT} `mcp.transport`\n *\n * @deprecated Use {@link NETWORK_TRANSPORT} (network.transport) instead\n * @example \"tcp\"\n */\nexport const NET_TRANSPORT = 'net.transport';\n\n/**\n * Type for {@link NET_TRANSPORT} net.transport\n */\nexport type NET_TRANSPORT_TYPE = string;\n\n// Path: model/attributes/os/os__build.json\n\n/**\n * The build ID of the operating system. `os.build`\n *\n * Attribute Value Type: `string` {@link OS_BUILD_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link OS_BUILD_ID} `os.build_id`\n *\n * @deprecated Use {@link OS_BUILD_ID} (os.build_id) instead\n * @example \"1234567890\"\n */\nexport const OS_BUILD = 'os.build';\n\n/**\n * Type for {@link OS_BUILD} os.build\n */\nexport type OS_BUILD_TYPE = string;\n\n// Path: model/attributes/os/os__build_id.json\n\n/**\n * The build ID of the operating system. `os.build_id`\n *\n * Attribute Value Type: `string` {@link OS_BUILD_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link OS_BUILD} `os.build`\n *\n * @example \"1234567890\"\n */\nexport const OS_BUILD_ID = 'os.build_id';\n\n/**\n * Type for {@link OS_BUILD_ID} os.build_id\n */\nexport type OS_BUILD_ID_TYPE = string;\n\n// Path: model/attributes/os/os__description.json\n\n/**\n * Human readable (not intended to be parsed) OS version information, like e.g. reported by ver or lsb_release -a commands. `os.description`\n *\n * Attribute Value Type: `string` {@link OS_DESCRIPTION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"Ubuntu 18.04.1 LTS\"\n */\nexport const OS_DESCRIPTION = 'os.description';\n\n/**\n * Type for {@link OS_DESCRIPTION} os.description\n */\nexport type OS_DESCRIPTION_TYPE = string;\n\n// Path: model/attributes/os/os__kernel_version.json\n\n/**\n * An independent kernel version string. Typically the entire output of the `uname` syscall. `os.kernel_version`\n *\n * Attribute Value Type: `string` {@link OS_KERNEL_VERSION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"20.2.0\"\n */\nexport const OS_KERNEL_VERSION = 'os.kernel_version';\n\n/**\n * Type for {@link OS_KERNEL_VERSION} os.kernel_version\n */\nexport type OS_KERNEL_VERSION_TYPE = string;\n\n// Path: model/attributes/os/os__name.json\n\n/**\n * Human readable operating system name. `os.name`\n *\n * Attribute Value Type: `string` {@link OS_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"Ubuntu\"\n */\nexport const OS_NAME = 'os.name';\n\n/**\n * Type for {@link OS_NAME} os.name\n */\nexport type OS_NAME_TYPE = string;\n\n// Path: model/attributes/os/os__raw_description.json\n\n/**\n * 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. `os.raw_description`\n *\n * Attribute Value Type: `string` {@link OS_RAW_DESCRIPTION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"Ubuntu 22.04.4 LTS (Jammy Jellyfish)\"\n */\nexport const OS_RAW_DESCRIPTION = 'os.raw_description';\n\n/**\n * Type for {@link OS_RAW_DESCRIPTION} os.raw_description\n */\nexport type OS_RAW_DESCRIPTION_TYPE = string;\n\n// Path: model/attributes/os/os__rooted.json\n\n/**\n * Whether the operating system has been jailbroken or rooted. `os.rooted`\n *\n * Attribute Value Type: `boolean` {@link OS_ROOTED_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example true\n */\nexport const OS_ROOTED = 'os.rooted';\n\n/**\n * Type for {@link OS_ROOTED} os.rooted\n */\nexport type OS_ROOTED_TYPE = boolean;\n\n// Path: model/attributes/os/os__theme.json\n\n/**\n * Whether the OS runs in dark mode or light mode. `os.theme`\n *\n * Attribute Value Type: `string` {@link OS_THEME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"dark\"\n */\nexport const OS_THEME = 'os.theme';\n\n/**\n * Type for {@link OS_THEME} os.theme\n */\nexport type OS_THEME_TYPE = string;\n\n// Path: model/attributes/os/os__type.json\n\n/**\n * The operating system type. `os.type`\n *\n * Attribute Value Type: `string` {@link OS_TYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"linux\"\n */\nexport const OS_TYPE = 'os.type';\n\n/**\n * Type for {@link OS_TYPE} os.type\n */\nexport type OS_TYPE_TYPE = string;\n\n// Path: model/attributes/os/os__version.json\n\n/**\n * The version of the operating system. `os.version`\n *\n * Attribute Value Type: `string` {@link OS_VERSION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"18.04.2\"\n */\nexport const OS_VERSION = 'os.version';\n\n/**\n * Type for {@link OS_VERSION} os.version\n */\nexport type OS_VERSION_TYPE = string;\n\n// Path: model/attributes/otel/otel__kind.json\n\n/**\n * The span kind (https://opentelemetry.io/docs/concepts/signals/traces/#span-kind). Deprecated, use `sentry.kind` instead. `otel.kind`\n *\n * Attribute Value Type: `string` {@link OTEL_KIND_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link SENTRY_KIND} `sentry.kind`\n *\n * @deprecated Use {@link SENTRY_KIND} (sentry.kind) instead - Deprecated in favor of sentry.kind\n * @example \"SERVER\"\n */\nexport const OTEL_KIND = 'otel.kind';\n\n/**\n * Type for {@link OTEL_KIND} otel.kind\n */\nexport type OTEL_KIND_TYPE = string;\n\n// Path: model/attributes/otel/otel__scope__name.json\n\n/**\n * The name of the instrumentation scope - (InstrumentationScope.Name in OTLP). `otel.scope.name`\n *\n * Attribute Value Type: `string` {@link OTEL_SCOPE_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"io.opentelemetry.contrib.mongodb\"\n */\nexport const OTEL_SCOPE_NAME = 'otel.scope.name';\n\n/**\n * Type for {@link OTEL_SCOPE_NAME} otel.scope.name\n */\nexport type OTEL_SCOPE_NAME_TYPE = string;\n\n// Path: model/attributes/otel/otel__scope__version.json\n\n/**\n * The version of the instrumentation scope - (InstrumentationScope.Version in OTLP). `otel.scope.version`\n *\n * Attribute Value Type: `string` {@link OTEL_SCOPE_VERSION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"2.4.5\"\n */\nexport const OTEL_SCOPE_VERSION = 'otel.scope.version';\n\n/**\n * Type for {@link OTEL_SCOPE_VERSION} otel.scope.version\n */\nexport type OTEL_SCOPE_VERSION_TYPE = string;\n\n// Path: model/attributes/otel/otel__status_code.json\n\n/**\n * Name of the code, either \u201COK\u201D or \u201CERROR\u201D. MUST NOT be set if the status code is UNSET. `otel.status_code`\n *\n * Attribute Value Type: `string` {@link OTEL_STATUS_CODE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"OK\"\n */\nexport const OTEL_STATUS_CODE = 'otel.status_code';\n\n/**\n * Type for {@link OTEL_STATUS_CODE} otel.status_code\n */\nexport type OTEL_STATUS_CODE_TYPE = string;\n\n// Path: model/attributes/otel/otel__status_description.json\n\n/**\n * Description of the Status if it has a value, otherwise not set. `otel.status_description`\n *\n * Attribute Value Type: `string` {@link OTEL_STATUS_DESCRIPTION_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"resource not found\"\n */\nexport const OTEL_STATUS_DESCRIPTION = 'otel.status_description';\n\n/**\n * Type for {@link OTEL_STATUS_DESCRIPTION} otel.status_description\n */\nexport type OTEL_STATUS_DESCRIPTION_TYPE = string;\n\n// Path: model/attributes/params/params__[key].json\n\n/**\n * Decoded parameters extracted from a URL path. Usually added by client-side routing frameworks like vue-router. `params.`\n *\n * Attribute Value Type: `string` {@link PARAMS_KEY_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Has Dynamic Suffix: true\n *\n * Aliases: {@link URL_PATH_PARAMETER_KEY} `url.path.parameter.`\n *\n * @example \"params.id='123'\"\n */\nexport const PARAMS_KEY = 'params.';\n\n/**\n * Base key for {@link PARAMS_KEY}. Use with a dynamic suffix, e.g. `${PARAMS_KEY_BASE}.${key}`.\n */\nexport const PARAMS_KEY_BASE = 'params';\n\n/**\n * Type for {@link PARAMS_KEY} params.\n */\nexport type PARAMS_KEY_TYPE = string;\n\n// Path: model/attributes/performance/performance__activationStart.json\n\n/**\n * The time between initiating a navigation to a page and the browser activating the page `performance.activationStart`\n *\n * Attribute Value Type: `number` {@link PERFORMANCE_ACTIVATIONSTART_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link BROWSER_PERFORMANCE_NAVIGATION_ACTIVATION_START} `browser.performance.navigation.activation_start`\n *\n * @deprecated Use {@link BROWSER_PERFORMANCE_NAVIGATION_ACTIVATION_START} (browser.performance.navigation.activation_start) instead - The activationStart is now recorded as the browser.performance.navigation.activation_start attribute.\n * @example 1.983\n */\nexport const PERFORMANCE_ACTIVATIONSTART = 'performance.activationStart';\n\n/**\n * Type for {@link PERFORMANCE_ACTIVATIONSTART} performance.activationStart\n */\nexport type PERFORMANCE_ACTIVATIONSTART_TYPE = number;\n\n// Path: model/attributes/performance/performance__timeOrigin.json\n\n/**\n * The browser's performance.timeOrigin timestamp representing the time when the pageload was initiated `performance.timeOrigin`\n *\n * Attribute Value Type: `number` {@link PERFORMANCE_TIMEORIGIN_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link BROWSER_PERFORMANCE_TIME_ORIGIN} `browser.performance.time_origin`\n *\n * @deprecated Use {@link BROWSER_PERFORMANCE_TIME_ORIGIN} (browser.performance.time_origin) instead - The timeOrigin is now recorded as the browser.performance.time_origin attribute.\n * @example 1776185678.886\n */\nexport const PERFORMANCE_TIMEORIGIN = 'performance.timeOrigin';\n\n/**\n * Type for {@link PERFORMANCE_TIMEORIGIN} performance.timeOrigin\n */\nexport type PERFORMANCE_TIMEORIGIN_TYPE = number;\n\n// Path: model/attributes/previous_route.json\n\n/**\n * Also used by mobile SDKs to indicate the previous route in the application. `previous_route`\n *\n * Attribute Value Type: `string` {@link PREVIOUS_ROUTE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"HomeScreen\"\n */\nexport const PREVIOUS_ROUTE = 'previous_route';\n\n/**\n * Type for {@link PREVIOUS_ROUTE} previous_route\n */\nexport type PREVIOUS_ROUTE_TYPE = string;\n\n// Path: model/attributes/process/process__command_args.json\n\n/**\n * All the command arguments (including the command/executable itself) as received by the process. `process.command_args`\n *\n * Attribute Value Type: `Array` {@link PROCESS_COMMAND_ARGS_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example [\"cmd/otecol\",\"--config=config.yaml\"]\n */\nexport const PROCESS_COMMAND_ARGS = 'process.command_args';\n\n/**\n * Type for {@link PROCESS_COMMAND_ARGS} process.command_args\n */\nexport type PROCESS_COMMAND_ARGS_TYPE = Array;\n\n// Path: model/attributes/process/process__executable__name.json\n\n/**\n * The name of the executable that started the process. `process.executable.name`\n *\n * Attribute Value Type: `string` {@link PROCESS_EXECUTABLE_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"getsentry\"\n */\nexport const PROCESS_EXECUTABLE_NAME = 'process.executable.name';\n\n/**\n * Type for {@link PROCESS_EXECUTABLE_NAME} process.executable.name\n */\nexport type PROCESS_EXECUTABLE_NAME_TYPE = string;\n\n// Path: model/attributes/process/process__pid.json\n\n/**\n * The process ID of the running process. `process.pid`\n *\n * Attribute Value Type: `number` {@link PROCESS_PID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example 12345\n */\nexport const PROCESS_PID = 'process.pid';\n\n/**\n * Type for {@link PROCESS_PID} process.pid\n */\nexport type PROCESS_PID_TYPE = number;\n\n// Path: model/attributes/process/process__runtime__description.json\n\n/**\n * 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. `process.runtime.description`\n *\n * Attribute Value Type: `string` {@link PROCESS_RUNTIME_DESCRIPTION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link RUNTIME_RAW_DESCRIPTION} `runtime.raw_description`\n *\n * @example \"Eclipse OpenJ9 VM openj9-0.21.0\"\n */\nexport const PROCESS_RUNTIME_DESCRIPTION = 'process.runtime.description';\n\n/**\n * Type for {@link PROCESS_RUNTIME_DESCRIPTION} process.runtime.description\n */\nexport type PROCESS_RUNTIME_DESCRIPTION_TYPE = string;\n\n// Path: model/attributes/process/process__runtime__engine__name.json\n\n/**\n * The name of the runtime engine. `process.runtime.engine.name`\n *\n * Attribute Value Type: `string` {@link PROCESS_RUNTIME_ENGINE_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"v8\"\n */\nexport const PROCESS_RUNTIME_ENGINE_NAME = 'process.runtime.engine.name';\n\n/**\n * Type for {@link PROCESS_RUNTIME_ENGINE_NAME} process.runtime.engine.name\n */\nexport type PROCESS_RUNTIME_ENGINE_NAME_TYPE = string;\n\n// Path: model/attributes/process/process__runtime__engine__version.json\n\n/**\n * The version of the runtime engine. `process.runtime.engine.version`\n *\n * Attribute Value Type: `string` {@link PROCESS_RUNTIME_ENGINE_VERSION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"12.9.202.13-rusty\"\n */\nexport const PROCESS_RUNTIME_ENGINE_VERSION = 'process.runtime.engine.version';\n\n/**\n * Type for {@link PROCESS_RUNTIME_ENGINE_VERSION} process.runtime.engine.version\n */\nexport type PROCESS_RUNTIME_ENGINE_VERSION_TYPE = string;\n\n// Path: model/attributes/process/process__runtime__name.json\n\n/**\n * The name of the runtime. Equivalent to `name` in the Sentry runtime context. `process.runtime.name`\n *\n * Attribute Value Type: `string` {@link PROCESS_RUNTIME_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link RUNTIME_NAME} `runtime.name`\n *\n * @example \"node\"\n */\nexport const PROCESS_RUNTIME_NAME = 'process.runtime.name';\n\n/**\n * Type for {@link PROCESS_RUNTIME_NAME} process.runtime.name\n */\nexport type PROCESS_RUNTIME_NAME_TYPE = string;\n\n// Path: model/attributes/process/process__runtime__version.json\n\n/**\n * The version of the runtime of this process, as returned by the runtime without modification. Equivalent to `version` in the Sentry runtime context. `process.runtime.version`\n *\n * Attribute Value Type: `string` {@link PROCESS_RUNTIME_VERSION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link RUNTIME_VERSION} `runtime.version`\n *\n * @example \"18.04.2\"\n */\nexport const PROCESS_RUNTIME_VERSION = 'process.runtime.version';\n\n/**\n * Type for {@link PROCESS_RUNTIME_VERSION} process.runtime.version\n */\nexport type PROCESS_RUNTIME_VERSION_TYPE = string;\n\n// Path: model/attributes/query/query__[key].json\n\n/**\n * An item in a query string. Usually added by client-side routing frameworks like vue-router. `query.`\n *\n * Attribute Value Type: `string` {@link QUERY_KEY_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Has Dynamic Suffix: true\n *\n * @deprecated Use {@link URL_QUERY} (url.query) instead - Instead of sending items individually in query., they should be sent all together with url.query.\n * @example \"query.id='123'\"\n */\nexport const QUERY_KEY = 'query.';\n\n/**\n * Base key for {@link QUERY_KEY}. Use with a dynamic suffix, e.g. `${QUERY_KEY_BASE}.${key}`.\n *\n * @deprecated Use {@link URL_QUERY} (url.query) instead - Instead of sending items individually in query., they should be sent all together with url.query.\n */\nexport const QUERY_KEY_BASE = 'query';\n\n/**\n * Type for {@link QUERY_KEY} query.\n */\nexport type QUERY_KEY_TYPE = string;\n\n// Path: model/attributes/react/react__version.json\n\n/**\n * The version of the React framework `react.version`\n *\n * Attribute Value Type: `string` {@link REACT_VERSION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"18.2.0\"\n */\nexport const REACT_VERSION = 'react.version';\n\n/**\n * Type for {@link REACT_VERSION} react.version\n */\nexport type REACT_VERSION_TYPE = string;\n\n// Path: model/attributes/release.json\n\n/**\n * The sentry release. `release`\n *\n * Attribute Value Type: `string` {@link RELEASE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link SENTRY_RELEASE} `sentry.release`\n *\n * @deprecated Use {@link SENTRY_RELEASE} (sentry.release) instead\n * @example \"production\"\n */\nexport const RELEASE = 'release';\n\n/**\n * Type for {@link RELEASE} release\n */\nexport type RELEASE_TYPE = string;\n\n// Path: model/attributes/remix/remix__action_form_data__[key].json\n\n/**\n * Remix form data, being the form data key, the value being the form data value. `remix.action_form_data.`\n *\n * Attribute Value Type: `string` {@link REMIX_ACTION_FORM_DATA_KEY_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Has Dynamic Suffix: true\n *\n * @example \"http.response.header.text='test'\"\n */\nexport const REMIX_ACTION_FORM_DATA_KEY = 'remix.action_form_data.';\n\n/**\n * Base key for {@link REMIX_ACTION_FORM_DATA_KEY}. Use with a dynamic suffix, e.g. `${REMIX_ACTION_FORM_DATA_KEY_BASE}.${key}`.\n */\nexport const REMIX_ACTION_FORM_DATA_KEY_BASE = 'remix.action_form_data';\n\n/**\n * Type for {@link REMIX_ACTION_FORM_DATA_KEY} remix.action_form_data.\n */\nexport type REMIX_ACTION_FORM_DATA_KEY_TYPE = string;\n\n// Path: model/attributes/replay_id.json\n\n/**\n * The id of the sentry replay. `replay_id`\n *\n * Attribute Value Type: `string` {@link REPLAY_ID_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link SENTRY_REPLAY_ID} `sentry.replay_id`\n *\n * @deprecated Use {@link SENTRY_REPLAY_ID} (sentry.replay_id) instead\n * @example \"123e4567e89b12d3a456426614174000\"\n */\nexport const REPLAY_ID = 'replay_id';\n\n/**\n * Type for {@link REPLAY_ID} replay_id\n */\nexport type REPLAY_ID_TYPE = string;\n\n// Path: model/attributes/resource/resource__deployment__environment.json\n\n/**\n * The software deployment environment name. `resource.deployment.environment`\n *\n * Attribute Value Type: `string` {@link RESOURCE_DEPLOYMENT_ENVIRONMENT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @deprecated Use {@link SENTRY_ENVIRONMENT} (sentry.environment) instead\n * @example \"production\"\n */\nexport const RESOURCE_DEPLOYMENT_ENVIRONMENT = 'resource.deployment.environment';\n\n/**\n * Type for {@link RESOURCE_DEPLOYMENT_ENVIRONMENT} resource.deployment.environment\n */\nexport type RESOURCE_DEPLOYMENT_ENVIRONMENT_TYPE = string;\n\n// Path: model/attributes/resource/resource__deployment__environment__name.json\n\n/**\n * The software deployment environment name. `resource.deployment.environment.name`\n *\n * Attribute Value Type: `string` {@link RESOURCE_DEPLOYMENT_ENVIRONMENT_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @deprecated Use {@link SENTRY_ENVIRONMENT} (sentry.environment) instead\n * @example \"production\"\n */\nexport const RESOURCE_DEPLOYMENT_ENVIRONMENT_NAME = 'resource.deployment.environment.name';\n\n/**\n * Type for {@link RESOURCE_DEPLOYMENT_ENVIRONMENT_NAME} resource.deployment.environment.name\n */\nexport type RESOURCE_DEPLOYMENT_ENVIRONMENT_NAME_TYPE = string;\n\n// Path: model/attributes/resource/resource__render_blocking_status.json\n\n/**\n * The render blocking status of the resource. `resource.render_blocking_status`\n *\n * Attribute Value Type: `string` {@link RESOURCE_RENDER_BLOCKING_STATUS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"non-blocking\"\n */\nexport const RESOURCE_RENDER_BLOCKING_STATUS = 'resource.render_blocking_status';\n\n/**\n * Type for {@link RESOURCE_RENDER_BLOCKING_STATUS} resource.render_blocking_status\n */\nexport type RESOURCE_RENDER_BLOCKING_STATUS_TYPE = string;\n\n// Path: model/attributes/route.json\n\n/**\n * 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. `route`\n *\n * Attribute Value Type: `string` {@link ROUTE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link HTTP_ROUTE} `http.route`\n *\n * @deprecated Use {@link HTTP_ROUTE} (http.route) instead\n * @example \"App\\\\Controller::indexAction\"\n */\nexport const ROUTE = 'route';\n\n/**\n * Type for {@link ROUTE} route\n */\nexport type ROUTE_TYPE = string;\n\n// Path: model/attributes/rpc/rpc__grpc__status_code.json\n\n/**\n * The numeric status code of the gRPC request. `rpc.grpc.status_code`\n *\n * Attribute Value Type: `number` {@link RPC_GRPC_STATUS_CODE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example 2\n */\nexport const RPC_GRPC_STATUS_CODE = 'rpc.grpc.status_code';\n\n/**\n * Type for {@link RPC_GRPC_STATUS_CODE} rpc.grpc.status_code\n */\nexport type RPC_GRPC_STATUS_CODE_TYPE = number;\n\n// Path: model/attributes/rpc/rpc__method.json\n\n/**\n * The fully-qualified logical name of the method from the RPC interface perspective. `rpc.method`\n *\n * Attribute Value Type: `string` {@link RPC_METHOD_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"com.example.ExampleService/exampleMethod\"\n */\nexport const RPC_METHOD = 'rpc.method';\n\n/**\n * Type for {@link RPC_METHOD} rpc.method\n */\nexport type RPC_METHOD_TYPE = string;\n\n// Path: model/attributes/rpc/rpc__response__status_code.json\n\n/**\n * Status code of the RPC returned by the RPC server or generated by the client. `rpc.response.status_code`\n *\n * Attribute Value Type: `string` {@link RPC_RESPONSE_STATUS_CODE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"DEADLINE_EXCEEDED\"\n */\nexport const RPC_RESPONSE_STATUS_CODE = 'rpc.response.status_code';\n\n/**\n * Type for {@link RPC_RESPONSE_STATUS_CODE} rpc.response.status_code\n */\nexport type RPC_RESPONSE_STATUS_CODE_TYPE = string;\n\n// Path: model/attributes/rpc/rpc__service.json\n\n/**\n * The full (logical) name of the service being called, including its package name, if applicable. `rpc.service`\n *\n * Attribute Value Type: `string` {@link RPC_SERVICE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"myService.BestService\"\n */\nexport const RPC_SERVICE = 'rpc.service';\n\n/**\n * Type for {@link RPC_SERVICE} rpc.service\n */\nexport type RPC_SERVICE_TYPE = string;\n\n// Path: model/attributes/rpc/rpc__system.json\n\n/**\n * A string identifying the remoting system. `rpc.system`\n *\n * Attribute Value Type: `string` {@link RPC_SYSTEM_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link RPC_SYSTEM_NAME} `rpc.system.name`\n *\n * @deprecated Use {@link RPC_SYSTEM_NAME} (rpc.system.name) instead - This attribute is being deprecated in favor of rpc.system.name, which is the OTel-aligned replacement.\n * @example \"aws-api\"\n */\nexport const RPC_SYSTEM = 'rpc.system';\n\n/**\n * Type for {@link RPC_SYSTEM} rpc.system\n */\nexport type RPC_SYSTEM_TYPE = string;\n\n// Path: model/attributes/rpc/rpc__system__name.json\n\n/**\n * A string identifying the remoting system. `rpc.system.name`\n *\n * Attribute Value Type: `string` {@link RPC_SYSTEM_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link RPC_SYSTEM} `rpc.system`\n *\n * @example \"aws-api\"\n */\nexport const RPC_SYSTEM_NAME = 'rpc.system.name';\n\n/**\n * Type for {@link RPC_SYSTEM_NAME} rpc.system.name\n */\nexport type RPC_SYSTEM_NAME_TYPE = string;\n\n// Path: model/attributes/runtime/runtime__build.json\n\n/**\n * The application build string, when it is separate from the version. `runtime.build`\n *\n * Attribute Value Type: `string` {@link RUNTIME_BUILD_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated - The runtime.* namespace is deprecated in favor of process.runtime.*. No direct OTel equivalent exists for this attribute.\n * @example \"stable\"\n */\nexport const RUNTIME_BUILD = 'runtime.build';\n\n/**\n * Type for {@link RUNTIME_BUILD} runtime.build\n */\nexport type RUNTIME_BUILD_TYPE = string;\n\n// Path: model/attributes/runtime/runtime__name.json\n\n/**\n * The name of the runtime. For example node, CPython, or rustc. `runtime.name`\n *\n * Attribute Value Type: `string` {@link RUNTIME_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link PROCESS_RUNTIME_NAME} `process.runtime.name`\n *\n * @deprecated Use {@link PROCESS_RUNTIME_NAME} (process.runtime.name) instead - Prefer OTel-aligned process.runtime.name\n * @example \"node\"\n */\nexport const RUNTIME_NAME = 'runtime.name';\n\n/**\n * Type for {@link RUNTIME_NAME} runtime.name\n */\nexport type RUNTIME_NAME_TYPE = string;\n\n// Path: model/attributes/runtime/runtime__raw_description.json\n\n/**\n * Unprocessed description string as obtained from the runtime. Used to extract name and version for well-known runtimes. `runtime.raw_description`\n *\n * Attribute Value Type: `string` {@link RUNTIME_RAW_DESCRIPTION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link PROCESS_RUNTIME_DESCRIPTION} `process.runtime.description`\n *\n * @deprecated Use {@link PROCESS_RUNTIME_DESCRIPTION} (process.runtime.description) instead - Prefer OTel-aligned process.runtime.description\n * @example \"Eclipse OpenJ9 VM openj9-0.21.0\"\n */\nexport const RUNTIME_RAW_DESCRIPTION = 'runtime.raw_description';\n\n/**\n * Type for {@link RUNTIME_RAW_DESCRIPTION} runtime.raw_description\n */\nexport type RUNTIME_RAW_DESCRIPTION_TYPE = string;\n\n// Path: model/attributes/runtime/runtime__version.json\n\n/**\n * The version of the runtime. `runtime.version`\n *\n * Attribute Value Type: `string` {@link RUNTIME_VERSION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link PROCESS_RUNTIME_VERSION} `process.runtime.version`\n *\n * @deprecated Use {@link PROCESS_RUNTIME_VERSION} (process.runtime.version) instead - Prefer OTel-aligned process.runtime.version\n * @example \"18.04.2\"\n */\nexport const RUNTIME_VERSION = 'runtime.version';\n\n/**\n * Type for {@link RUNTIME_VERSION} runtime.version\n */\nexport type RUNTIME_VERSION_TYPE = string;\n\n// Path: model/attributes/score/score__[key].json\n\n/**\n * The weighted performance score for a web vital. This is defined as `score.weight.` * `score.ratio.`. `score.`\n *\n * Attribute Value Type: `number` {@link SCORE_KEY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Has Dynamic Suffix: true\n *\n * @example \"score.cls=0.1723\"\n */\nexport const SCORE_KEY = 'score.';\n\n/**\n * Base key for {@link SCORE_KEY}. Use with a dynamic suffix, e.g. `${SCORE_KEY_BASE}.${key}`.\n */\nexport const SCORE_KEY_BASE = 'score';\n\n/**\n * Type for {@link SCORE_KEY} score.\n */\nexport type SCORE_KEY_TYPE = number;\n\n// Path: model/attributes/score/score__ratio__[key].json\n\n/**\n * The score for a web vital, normalized to a number between 0 and 1. `score.ratio.`\n *\n * Attribute Value Type: `number` {@link SCORE_RATIO_KEY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Has Dynamic Suffix: true\n *\n * @example \"score.ratio.inp=0.7748\"\n */\nexport const SCORE_RATIO_KEY = 'score.ratio.';\n\n/**\n * Base key for {@link SCORE_RATIO_KEY}. Use with a dynamic suffix, e.g. `${SCORE_RATIO_KEY_BASE}.${key}`.\n */\nexport const SCORE_RATIO_KEY_BASE = 'score.ratio';\n\n/**\n * Type for {@link SCORE_RATIO_KEY} score.ratio.\n */\nexport type SCORE_RATIO_KEY_TYPE = number;\n\n// Path: model/attributes/score/score__total.json\n\n/**\n * The total performance score of a span. This is the sum of individual weighted web vital scores (see `score.`). `score.total`\n *\n * Attribute Value Type: `number` {@link SCORE_TOTAL_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n */\nexport const SCORE_TOTAL = 'score.total';\n\n/**\n * Type for {@link SCORE_TOTAL} score.total\n */\nexport type SCORE_TOTAL_TYPE = number;\n\n// Path: model/attributes/score/score__weight__[key].json\n\n/**\n * The relative weight of a web vital in a span's performance score. `score.weight.`\n *\n * Attribute Value Type: `number` {@link SCORE_WEIGHT_KEY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Has Dynamic Suffix: true\n *\n * @example \"score.weight.fcp=0.25\"\n */\nexport const SCORE_WEIGHT_KEY = 'score.weight.';\n\n/**\n * Base key for {@link SCORE_WEIGHT_KEY}. Use with a dynamic suffix, e.g. `${SCORE_WEIGHT_KEY_BASE}.${key}`.\n */\nexport const SCORE_WEIGHT_KEY_BASE = 'score.weight';\n\n/**\n * Type for {@link SCORE_WEIGHT_KEY} score.weight.\n */\nexport type SCORE_WEIGHT_KEY_TYPE = number;\n\n// Path: model/attributes/sentry/sentry__action.json\n\n/**\n * 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. `sentry.action`\n *\n * Attribute Value Type: `string` {@link SENTRY_ACTION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"SELECT\"\n */\nexport const SENTRY_ACTION = 'sentry.action';\n\n/**\n * Type for {@link SENTRY_ACTION} sentry.action\n */\nexport type SENTRY_ACTION_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__browser__name.json\n\n/**\n * The name of the browser. `sentry.browser.name`\n *\n * Attribute Value Type: `string` {@link SENTRY_BROWSER_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link BROWSER_NAME} `browser.name`\n *\n * @deprecated Use {@link BROWSER_NAME} (browser.name) instead\n * @example \"Chrome\"\n */\nexport const SENTRY_BROWSER_NAME = 'sentry.browser.name';\n\n/**\n * Type for {@link SENTRY_BROWSER_NAME} sentry.browser.name\n */\nexport type SENTRY_BROWSER_NAME_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__browser__version.json\n\n/**\n * The version of the browser. `sentry.browser.version`\n *\n * Attribute Value Type: `string` {@link SENTRY_BROWSER_VERSION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link BROWSER_VERSION} `browser.version`\n *\n * @deprecated Use {@link BROWSER_VERSION} (browser.version) instead\n * @example \"120.0.6099.130\"\n */\nexport const SENTRY_BROWSER_VERSION = 'sentry.browser.version';\n\n/**\n * Type for {@link SENTRY_BROWSER_VERSION} sentry.browser.version\n */\nexport type SENTRY_BROWSER_VERSION_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__cancellation_reason.json\n\n/**\n * The reason why a span ended early. `sentry.cancellation_reason`\n *\n * Attribute Value Type: `string` {@link SENTRY_CANCELLATION_REASON_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"document.hidden\"\n */\nexport const SENTRY_CANCELLATION_REASON = 'sentry.cancellation_reason';\n\n/**\n * Type for {@link SENTRY_CANCELLATION_REASON} sentry.cancellation_reason\n */\nexport type SENTRY_CANCELLATION_REASON_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__category.json\n\n/**\n * 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'. `sentry.category`\n *\n * Attribute Value Type: `string` {@link SENTRY_CATEGORY_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"db\"\n */\nexport const SENTRY_CATEGORY = 'sentry.category';\n\n/**\n * Type for {@link SENTRY_CATEGORY} sentry.category\n */\nexport type SENTRY_CATEGORY_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__client_sample_rate.json\n\n/**\n * Rate at which a span was sampled in the SDK. `sentry.client_sample_rate`\n *\n * Attribute Value Type: `number` {@link SENTRY_CLIENT_SAMPLE_RATE_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 0.5\n */\nexport const SENTRY_CLIENT_SAMPLE_RATE = 'sentry.client_sample_rate';\n\n/**\n * Type for {@link SENTRY_CLIENT_SAMPLE_RATE} sentry.client_sample_rate\n */\nexport type SENTRY_CLIENT_SAMPLE_RATE_TYPE = number;\n\n// Path: model/attributes/sentry/sentry__description.json\n\n/**\n * The human-readable description of a span. `sentry.description`\n *\n * Attribute Value Type: `string` {@link SENTRY_DESCRIPTION_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"index view query\"\n */\nexport const SENTRY_DESCRIPTION = 'sentry.description';\n\n/**\n * Type for {@link SENTRY_DESCRIPTION} sentry.description\n */\nexport type SENTRY_DESCRIPTION_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__dist.json\n\n/**\n * The sentry dist. `sentry.dist`\n *\n * Attribute Value Type: `string` {@link SENTRY_DIST_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link DIST} `dist`\n *\n * @example \"1.0\"\n */\nexport const SENTRY_DIST = 'sentry.dist';\n\n/**\n * Type for {@link SENTRY_DIST} sentry.dist\n */\nexport type SENTRY_DIST_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__domain.json\n\n/**\n * 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. `sentry.domain`\n *\n * Attribute Value Type: `string` {@link SENTRY_DOMAIN_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"example.com\"\n */\nexport const SENTRY_DOMAIN = 'sentry.domain';\n\n/**\n * Type for {@link SENTRY_DOMAIN} sentry.domain\n */\nexport type SENTRY_DOMAIN_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__dsc__environment.json\n\n/**\n * The environment from the dynamic sampling context. `sentry.dsc.environment`\n *\n * Attribute Value Type: `string` {@link SENTRY_DSC_ENVIRONMENT_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: internal\n *\n * @example \"prod\"\n */\nexport const SENTRY_DSC_ENVIRONMENT = 'sentry.dsc.environment';\n\n/**\n * Type for {@link SENTRY_DSC_ENVIRONMENT} sentry.dsc.environment\n */\nexport type SENTRY_DSC_ENVIRONMENT_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__dsc__project_id.json\n\n/**\n * 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. `sentry.dsc.project_id`\n *\n * Attribute Value Type: `string` {@link SENTRY_DSC_PROJECT_ID_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: internal\n *\n * @example \"12345\"\n */\nexport const SENTRY_DSC_PROJECT_ID = 'sentry.dsc.project_id';\n\n/**\n * Type for {@link SENTRY_DSC_PROJECT_ID} sentry.dsc.project_id\n */\nexport type SENTRY_DSC_PROJECT_ID_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__dsc__public_key.json\n\n/**\n * The public key from the dynamic sampling context. `sentry.dsc.public_key`\n *\n * Attribute Value Type: `string` {@link SENTRY_DSC_PUBLIC_KEY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: internal\n *\n * @example \"c51734c603c4430eb57cb0a5728a479d\"\n */\nexport const SENTRY_DSC_PUBLIC_KEY = 'sentry.dsc.public_key';\n\n/**\n * Type for {@link SENTRY_DSC_PUBLIC_KEY} sentry.dsc.public_key\n */\nexport type SENTRY_DSC_PUBLIC_KEY_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__dsc__release.json\n\n/**\n * The release identifier from the dynamic sampling context. `sentry.dsc.release`\n *\n * Attribute Value Type: `string` {@link SENTRY_DSC_RELEASE_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: internal\n *\n * @example \"frontend@e8211be71b214afab5b85de4b4c54be3714952bb\"\n */\nexport const SENTRY_DSC_RELEASE = 'sentry.dsc.release';\n\n/**\n * Type for {@link SENTRY_DSC_RELEASE} sentry.dsc.release\n */\nexport type SENTRY_DSC_RELEASE_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__dsc__sampled.json\n\n/**\n * Whether the event was sampled according to the dynamic sampling context. `sentry.dsc.sampled`\n *\n * Attribute Value Type: `boolean` {@link SENTRY_DSC_SAMPLED_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: internal\n *\n * @example true\n */\nexport const SENTRY_DSC_SAMPLED = 'sentry.dsc.sampled';\n\n/**\n * Type for {@link SENTRY_DSC_SAMPLED} sentry.dsc.sampled\n */\nexport type SENTRY_DSC_SAMPLED_TYPE = boolean;\n\n// Path: model/attributes/sentry/sentry__dsc__sample_rate.json\n\n/**\n * The sample rate from the dynamic sampling context. `sentry.dsc.sample_rate`\n *\n * Attribute Value Type: `string` {@link SENTRY_DSC_SAMPLE_RATE_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: internal\n *\n * @example \"1.0\"\n */\nexport const SENTRY_DSC_SAMPLE_RATE = 'sentry.dsc.sample_rate';\n\n/**\n * Type for {@link SENTRY_DSC_SAMPLE_RATE} sentry.dsc.sample_rate\n */\nexport type SENTRY_DSC_SAMPLE_RATE_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__dsc__trace_id.json\n\n/**\n * The trace ID from the dynamic sampling context. `sentry.dsc.trace_id`\n *\n * Attribute Value Type: `string` {@link SENTRY_DSC_TRACE_ID_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: internal\n *\n * @example \"047372980460430cbc78d9779df33a46\"\n */\nexport const SENTRY_DSC_TRACE_ID = 'sentry.dsc.trace_id';\n\n/**\n * Type for {@link SENTRY_DSC_TRACE_ID} sentry.dsc.trace_id\n */\nexport type SENTRY_DSC_TRACE_ID_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__dsc__transaction.json\n\n/**\n * The transaction name from the dynamic sampling context. `sentry.dsc.transaction`\n *\n * Attribute Value Type: `string` {@link SENTRY_DSC_TRANSACTION_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: internal\n *\n * @example \"/issues/errors-outages/\"\n */\nexport const SENTRY_DSC_TRANSACTION = 'sentry.dsc.transaction';\n\n/**\n * Type for {@link SENTRY_DSC_TRANSACTION} sentry.dsc.transaction\n */\nexport type SENTRY_DSC_TRANSACTION_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__environment.json\n\n/**\n * The sentry environment. `sentry.environment`\n *\n * Attribute Value Type: `string` {@link SENTRY_ENVIRONMENT_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link ENVIRONMENT} `environment`\n *\n * @example \"production\"\n */\nexport const SENTRY_ENVIRONMENT = 'sentry.environment';\n\n/**\n * Type for {@link SENTRY_ENVIRONMENT} sentry.environment\n */\nexport type SENTRY_ENVIRONMENT_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__exclusive_time.json\n\n/**\n * The exclusive time duration of the span in milliseconds. `sentry.exclusive_time`\n *\n * Attribute Value Type: `number` {@link SENTRY_EXCLUSIVE_TIME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 1234\n */\nexport const SENTRY_EXCLUSIVE_TIME = 'sentry.exclusive_time';\n\n/**\n * Type for {@link SENTRY_EXCLUSIVE_TIME} sentry.exclusive_time\n */\nexport type SENTRY_EXCLUSIVE_TIME_TYPE = number;\n\n// Path: model/attributes/sentry/sentry__graphql__operation.json\n\n/**\n * Indicates the type of graphql operation, emitted by the Javascript SDK. `sentry.graphql.operation`\n *\n * Attribute Value Type: `string` {@link SENTRY_GRAPHQL_OPERATION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"getUserById\"\n */\nexport const SENTRY_GRAPHQL_OPERATION = 'sentry.graphql.operation';\n\n/**\n * Type for {@link SENTRY_GRAPHQL_OPERATION} sentry.graphql.operation\n */\nexport type SENTRY_GRAPHQL_OPERATION_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__group.json\n\n/**\n * Stores the hash of `sentry.normalized_description`. This is primarily used for grouping spans in the product end. `sentry.group`\n *\n * Attribute Value Type: `string` {@link SENTRY_GROUP_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n */\nexport const SENTRY_GROUP = 'sentry.group';\n\n/**\n * Type for {@link SENTRY_GROUP} sentry.group\n */\nexport type SENTRY_GROUP_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__http__prefetch.json\n\n/**\n * If an http request was a prefetch request. `sentry.http.prefetch`\n *\n * Attribute Value Type: `boolean` {@link SENTRY_HTTP_PREFETCH_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example true\n */\nexport const SENTRY_HTTP_PREFETCH = 'sentry.http.prefetch';\n\n/**\n * Type for {@link SENTRY_HTTP_PREFETCH} sentry.http.prefetch\n */\nexport type SENTRY_HTTP_PREFETCH_TYPE = boolean;\n\n// Path: model/attributes/sentry/sentry__idle_span_finish_reason.json\n\n/**\n * The reason why an idle span ended early. `sentry.idle_span_finish_reason`\n *\n * Attribute Value Type: `string` {@link SENTRY_IDLE_SPAN_FINISH_REASON_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"idleTimeout\"\n */\nexport const SENTRY_IDLE_SPAN_FINISH_REASON = 'sentry.idle_span_finish_reason';\n\n/**\n * Type for {@link SENTRY_IDLE_SPAN_FINISH_REASON} sentry.idle_span_finish_reason\n */\nexport type SENTRY_IDLE_SPAN_FINISH_REASON_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__is_remote.json\n\n/**\n * Indicates whether a span's parent is remote. `sentry.is_remote`\n *\n * Attribute Value Type: `boolean` {@link SENTRY_IS_REMOTE_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example true\n */\nexport const SENTRY_IS_REMOTE = 'sentry.is_remote';\n\n/**\n * Type for {@link SENTRY_IS_REMOTE} sentry.is_remote\n */\nexport type SENTRY_IS_REMOTE_TYPE = boolean;\n\n// Path: model/attributes/sentry/sentry__kind.json\n\n/**\n * 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. `sentry.kind`\n *\n * Attribute Value Type: `string` {@link SENTRY_KIND_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link OTEL_KIND} `otel.kind`\n *\n * @example \"server\"\n */\nexport const SENTRY_KIND = 'sentry.kind';\n\n/**\n * Type for {@link SENTRY_KIND} sentry.kind\n */\nexport type SENTRY_KIND_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__main_thread.json\n\n/**\n * Whether the span or event occurred on the main thread. Computed by Relay and should not be set by SDKs. `sentry.main_thread`\n *\n * Attribute Value Type: `boolean` {@link SENTRY_MAIN_THREAD_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example true\n */\nexport const SENTRY_MAIN_THREAD = 'sentry.main_thread';\n\n/**\n * Type for {@link SENTRY_MAIN_THREAD} sentry.main_thread\n */\nexport type SENTRY_MAIN_THREAD_TYPE = boolean;\n\n// Path: model/attributes/sentry/sentry__message__parameter__[key].json\n\n/**\n * A parameter used in the message template. 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) `sentry.message.parameter.`\n *\n * Attribute Value Type: `string` {@link SENTRY_MESSAGE_PARAMETER_KEY_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"sentry.message.parameter.0='123'\"\n */\nexport const SENTRY_MESSAGE_PARAMETER_KEY = 'sentry.message.parameter.';\n\n/**\n * Type for {@link SENTRY_MESSAGE_PARAMETER_KEY} sentry.message.parameter.\n */\nexport type SENTRY_MESSAGE_PARAMETER_KEY_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__message__template.json\n\n/**\n * The parameterized template string. `sentry.message.template`\n *\n * Attribute Value Type: `string` {@link SENTRY_MESSAGE_TEMPLATE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"Hello, {name}!\"\n */\nexport const SENTRY_MESSAGE_TEMPLATE = 'sentry.message.template';\n\n/**\n * Type for {@link SENTRY_MESSAGE_TEMPLATE} sentry.message.template\n */\nexport type SENTRY_MESSAGE_TEMPLATE_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__metric__source.json\n\n/**\n * The provenance of a metric. For example, this can be set to indicate if a metric was generated by Relay from a span. `sentry.metric.source`\n *\n * Attribute Value Type: `string` {@link SENTRY_METRIC_SOURCE_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"span\"\n */\nexport const SENTRY_METRIC_SOURCE = 'sentry.metric.source';\n\n/**\n * Type for {@link SENTRY_METRIC_SOURCE} sentry.metric.source\n */\nexport type SENTRY_METRIC_SOURCE_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__mobile.json\n\n/**\n * Whether the application is using a mobile SDK. Computed by Relay and should not be set by SDKs. `sentry.mobile`\n *\n * Attribute Value Type: `boolean` {@link SENTRY_MOBILE_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example true\n */\nexport const SENTRY_MOBILE = 'sentry.mobile';\n\n/**\n * Type for {@link SENTRY_MOBILE} sentry.mobile\n */\nexport type SENTRY_MOBILE_TYPE = boolean;\n\n// Path: model/attributes/sentry/sentry__module__[key].json\n\n/**\n * A module that was loaded in the process. The key is the name of the module. `sentry.module.`\n *\n * Attribute Value Type: `string` {@link SENTRY_MODULE_KEY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Has Dynamic Suffix: true\n *\n * @example \"sentry.module.brianium/paratest='v7.7.0'\"\n */\nexport const SENTRY_MODULE_KEY = 'sentry.module.';\n\n/**\n * Base key for {@link SENTRY_MODULE_KEY}. Use with a dynamic suffix, e.g. `${SENTRY_MODULE_KEY_BASE}.${key}`.\n */\nexport const SENTRY_MODULE_KEY_BASE = 'sentry.module';\n\n/**\n * Type for {@link SENTRY_MODULE_KEY} sentry.module.\n */\nexport type SENTRY_MODULE_KEY_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__nextjs__ssr__function__route.json\n\n/**\n * 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. `sentry.nextjs.ssr.function.route`\n *\n * Attribute Value Type: `string` {@link SENTRY_NEXTJS_SSR_FUNCTION_ROUTE_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"/posts/[id]/layout\"\n */\nexport const SENTRY_NEXTJS_SSR_FUNCTION_ROUTE = 'sentry.nextjs.ssr.function.route';\n\n/**\n * Type for {@link SENTRY_NEXTJS_SSR_FUNCTION_ROUTE} sentry.nextjs.ssr.function.route\n */\nexport type SENTRY_NEXTJS_SSR_FUNCTION_ROUTE_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__nextjs__ssr__function__type.json\n\n/**\n * 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. `sentry.nextjs.ssr.function.type`\n *\n * Attribute Value Type: `string` {@link SENTRY_NEXTJS_SSR_FUNCTION_TYPE_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"generateMetadata\"\n */\nexport const SENTRY_NEXTJS_SSR_FUNCTION_TYPE = 'sentry.nextjs.ssr.function.type';\n\n/**\n * Type for {@link SENTRY_NEXTJS_SSR_FUNCTION_TYPE} sentry.nextjs.ssr.function.type\n */\nexport type SENTRY_NEXTJS_SSR_FUNCTION_TYPE_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__normalized_db_query.json\n\n/**\n * The normalized version of `db.query.text`. `sentry.normalized_db_query`\n *\n * Attribute Value Type: `string` {@link SENTRY_NORMALIZED_DB_QUERY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"SELECT .. FROM sentry_project WHERE (project_id = %s)\"\n */\nexport const SENTRY_NORMALIZED_DB_QUERY = 'sentry.normalized_db_query';\n\n/**\n * Type for {@link SENTRY_NORMALIZED_DB_QUERY} sentry.normalized_db_query\n */\nexport type SENTRY_NORMALIZED_DB_QUERY_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__normalized_db_query__hash.json\n\n/**\n * The hash of `sentry.normalized_db_query`. `sentry.normalized_db_query.hash`\n *\n * Attribute Value Type: `string` {@link SENTRY_NORMALIZED_DB_QUERY_HASH_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n */\nexport const SENTRY_NORMALIZED_DB_QUERY_HASH = 'sentry.normalized_db_query.hash';\n\n/**\n * Type for {@link SENTRY_NORMALIZED_DB_QUERY_HASH} sentry.normalized_db_query.hash\n */\nexport type SENTRY_NORMALIZED_DB_QUERY_HASH_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__normalized_description.json\n\n/**\n * 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). `sentry.normalized_description`\n *\n * Attribute Value Type: `string` {@link SENTRY_NORMALIZED_DESCRIPTION_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"SELECT .. FROM sentry_project WHERE (project_id = %s)\"\n */\nexport const SENTRY_NORMALIZED_DESCRIPTION = 'sentry.normalized_description';\n\n/**\n * Type for {@link SENTRY_NORMALIZED_DESCRIPTION} sentry.normalized_description\n */\nexport type SENTRY_NORMALIZED_DESCRIPTION_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__observed_timestamp_nanos.json\n\n/**\n * The timestamp at which an envelope was received by Relay, in nanoseconds. `sentry.observed_timestamp_nanos`\n *\n * Attribute Value Type: `string` {@link SENTRY_OBSERVED_TIMESTAMP_NANOS_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"1544712660300000000\"\n */\nexport const SENTRY_OBSERVED_TIMESTAMP_NANOS = 'sentry.observed_timestamp_nanos';\n\n/**\n * Type for {@link SENTRY_OBSERVED_TIMESTAMP_NANOS} sentry.observed_timestamp_nanos\n */\nexport type SENTRY_OBSERVED_TIMESTAMP_NANOS_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__op.json\n\n/**\n * The operation of a span. `sentry.op`\n *\n * Attribute Value Type: `string` {@link SENTRY_OP_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"http.client\"\n */\nexport const SENTRY_OP = 'sentry.op';\n\n/**\n * Type for {@link SENTRY_OP} sentry.op\n */\nexport type SENTRY_OP_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__origin.json\n\n/**\n * The origin of the instrumentation (e.g. span, log, etc.) `sentry.origin`\n *\n * Attribute Value Type: `string` {@link SENTRY_ORIGIN_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"auto.http.otel.fastify\"\n */\nexport const SENTRY_ORIGIN = 'sentry.origin';\n\n/**\n * Type for {@link SENTRY_ORIGIN} sentry.origin\n */\nexport type SENTRY_ORIGIN_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__platform.json\n\n/**\n * The sdk platform that generated the event. `sentry.platform`\n *\n * Attribute Value Type: `string` {@link SENTRY_PLATFORM_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"php\"\n */\nexport const SENTRY_PLATFORM = 'sentry.platform';\n\n/**\n * Type for {@link SENTRY_PLATFORM} sentry.platform\n */\nexport type SENTRY_PLATFORM_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__profiler_id.json\n\n/**\n * The id of the currently running profiler (continuous profiling) `sentry.profiler_id`\n *\n * Attribute Value Type: `string` {@link SENTRY_PROFILER_ID_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"18779b64dd35d1a538e7ce2dd2d3fad3\"\n */\nexport const SENTRY_PROFILER_ID = 'sentry.profiler_id';\n\n/**\n * Type for {@link SENTRY_PROFILER_ID} sentry.profiler_id\n */\nexport type SENTRY_PROFILER_ID_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__profile_id.json\n\n/**\n * The ID of the Sentry profile the span is associated with. This is only meaningful for transaction-based profiling. `sentry.profile_id`\n *\n * Attribute Value Type: `string` {@link SENTRY_PROFILE_ID_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"123e4567e89b12d3a456426614174000\"\n */\nexport const SENTRY_PROFILE_ID = 'sentry.profile_id';\n\n/**\n * Type for {@link SENTRY_PROFILE_ID} sentry.profile_id\n */\nexport type SENTRY_PROFILE_ID_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__release.json\n\n/**\n * The sentry release. `sentry.release`\n *\n * Attribute Value Type: `string` {@link SENTRY_RELEASE_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link SERVICE_VERSION} `service.version`, {@link RELEASE} `release`\n *\n * @example \"7.0.0\"\n */\nexport const SENTRY_RELEASE = 'sentry.release';\n\n/**\n * Type for {@link SENTRY_RELEASE} sentry.release\n */\nexport type SENTRY_RELEASE_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__replay_id.json\n\n/**\n * The id of the sentry replay. `sentry.replay_id`\n *\n * Attribute Value Type: `string` {@link SENTRY_REPLAY_ID_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link REPLAY_ID} `replay_id`\n *\n * @example \"123e4567e89b12d3a456426614174000\"\n */\nexport const SENTRY_REPLAY_ID = 'sentry.replay_id';\n\n/**\n * Type for {@link SENTRY_REPLAY_ID} sentry.replay_id\n */\nexport type SENTRY_REPLAY_ID_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__replay_is_buffering.json\n\n/**\n * A sentinel attribute on log events indicating whether the current Session Replay is being buffered (onErrorSampleRate). `sentry.replay_is_buffering`\n *\n * Attribute Value Type: `boolean` {@link SENTRY_REPLAY_IS_BUFFERING_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example true\n */\nexport const SENTRY_REPLAY_IS_BUFFERING = 'sentry.replay_is_buffering';\n\n/**\n * Type for {@link SENTRY_REPLAY_IS_BUFFERING} sentry.replay_is_buffering\n */\nexport type SENTRY_REPLAY_IS_BUFFERING_TYPE = boolean;\n\n// Path: model/attributes/sentry/sentry__report_event.json\n\n/**\n * (Deprecated) The event that caused the SDK to report CLS or LCP (pagehide or navigation) `sentry.report_event`\n *\n * Attribute Value Type: `string` {@link SENTRY_REPORT_EVENT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated - The report event is now recorded as a browser.web_vital.lcp.report_event or browser.web_vital.cls.report_event attribute. No backfill required.\n * @example \"pagehide\"\n */\nexport const SENTRY_REPORT_EVENT = 'sentry.report_event';\n\n/**\n * Type for {@link SENTRY_REPORT_EVENT} sentry.report_event\n */\nexport type SENTRY_REPORT_EVENT_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__sdk__integrations.json\n\n/**\n * 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. `sentry.sdk.integrations`\n *\n * Attribute Value Type: `Array` {@link SENTRY_SDK_INTEGRATIONS_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example [\"InboundFilters\",\"FunctionToString\",\"BrowserApiErrors\",\"Breadcrumbs\"]\n */\nexport const SENTRY_SDK_INTEGRATIONS = 'sentry.sdk.integrations';\n\n/**\n * Type for {@link SENTRY_SDK_INTEGRATIONS} sentry.sdk.integrations\n */\nexport type SENTRY_SDK_INTEGRATIONS_TYPE = Array;\n\n// Path: model/attributes/sentry/sentry__sdk__name.json\n\n/**\n * The sentry sdk name. `sentry.sdk.name`\n *\n * Attribute Value Type: `string` {@link SENTRY_SDK_NAME_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"@sentry/react\"\n */\nexport const SENTRY_SDK_NAME = 'sentry.sdk.name';\n\n/**\n * Type for {@link SENTRY_SDK_NAME} sentry.sdk.name\n */\nexport type SENTRY_SDK_NAME_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__sdk__version.json\n\n/**\n * The sentry sdk version. `sentry.sdk.version`\n *\n * Attribute Value Type: `string` {@link SENTRY_SDK_VERSION_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"7.0.0\"\n */\nexport const SENTRY_SDK_VERSION = 'sentry.sdk.version';\n\n/**\n * Type for {@link SENTRY_SDK_VERSION} sentry.sdk.version\n */\nexport type SENTRY_SDK_VERSION_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__segment__id.json\n\n/**\n * The segment ID of a span `sentry.segment.id`\n *\n * Attribute Value Type: `string` {@link SENTRY_SEGMENT_ID_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link _SENTRY_SEGMENT_ID} `sentry.segment_id`\n *\n * @example \"051581bf3cb55c13\"\n */\nexport const SENTRY_SEGMENT_ID = 'sentry.segment.id';\n\n/**\n * Type for {@link SENTRY_SEGMENT_ID} sentry.segment.id\n */\nexport type SENTRY_SEGMENT_ID_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__segment_id.json\n\n/**\n * The segment ID of a span `sentry.segment_id`\n *\n * Attribute Value Type: `string` {@link _SENTRY_SEGMENT_ID_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link SENTRY_SEGMENT_ID} `sentry.segment.id`\n *\n * @deprecated Use {@link SENTRY_SEGMENT_ID} (sentry.segment.id) instead\n * @example \"051581bf3cb55c13\"\n */\nexport const _SENTRY_SEGMENT_ID = 'sentry.segment_id';\n\n/**\n * Type for {@link _SENTRY_SEGMENT_ID} sentry.segment_id\n */\nexport type _SENTRY_SEGMENT_ID_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__segment__name.json\n\n/**\n * The segment name of a span `sentry.segment.name`\n *\n * Attribute Value Type: `string` {@link SENTRY_SEGMENT_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link SENTRY_TRANSACTION} `sentry.transaction`, {@link TRANSACTION} `transaction`\n *\n * @example \"GET /user\"\n */\nexport const SENTRY_SEGMENT_NAME = 'sentry.segment.name';\n\n/**\n * Type for {@link SENTRY_SEGMENT_NAME} sentry.segment.name\n */\nexport type SENTRY_SEGMENT_NAME_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__server_sample_rate.json\n\n/**\n * Rate at which a span was sampled in Relay. `sentry.server_sample_rate`\n *\n * Attribute Value Type: `number` {@link SENTRY_SERVER_SAMPLE_RATE_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 0.5\n */\nexport const SENTRY_SERVER_SAMPLE_RATE = 'sentry.server_sample_rate';\n\n/**\n * Type for {@link SENTRY_SERVER_SAMPLE_RATE} sentry.server_sample_rate\n */\nexport type SENTRY_SERVER_SAMPLE_RATE_TYPE = number;\n\n// Path: model/attributes/sentry/sentry__source.json\n\n/**\n * 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. `sentry.source`\n *\n * Attribute Value Type: `string` {@link SENTRY_SOURCE_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated Use {@link SENTRY_SPAN_SOURCE} (sentry.span.source) instead - This attribute is being deprecated in favor of sentry.span.source\n * @example \"route\"\n */\nexport const SENTRY_SOURCE = 'sentry.source';\n\n/**\n * Type for {@link SENTRY_SOURCE} sentry.source\n */\nexport type SENTRY_SOURCE_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__span__source.json\n\n/**\n * 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. `sentry.span.source`\n *\n * Attribute Value Type: `string` {@link SENTRY_SPAN_SOURCE_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"route\"\n */\nexport const SENTRY_SPAN_SOURCE = 'sentry.span.source';\n\n/**\n * Type for {@link SENTRY_SPAN_SOURCE} sentry.span.source\n */\nexport type SENTRY_SPAN_SOURCE_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__status.json\n\n/**\n * The span's status (either \"ok\" or \"error\"). Older SDKs may set this to a more specific error, but this behaviour is deprecated. `sentry.status`\n *\n * Attribute Value Type: `string` {@link SENTRY_STATUS_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"ok\"\n */\nexport const SENTRY_STATUS = 'sentry.status';\n\n/**\n * Type for {@link SENTRY_STATUS} sentry.status\n */\nexport type SENTRY_STATUS_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__status_code.json\n\n/**\n * The HTTP status code used in Sentry Insights. Typically set by Sentry during ingestion, rather than by clients. `sentry.status_code`\n *\n * Attribute Value Type: `number` {@link SENTRY_STATUS_CODE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 200\n */\nexport const SENTRY_STATUS_CODE = 'sentry.status_code';\n\n/**\n * Type for {@link SENTRY_STATUS_CODE} sentry.status_code\n */\nexport type SENTRY_STATUS_CODE_TYPE = number;\n\n// Path: model/attributes/sentry/sentry__status__message.json\n\n/**\n * The from OTLP extracted status message. `sentry.status.message`\n *\n * Attribute Value Type: `string` {@link SENTRY_STATUS_MESSAGE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"foobar\"\n */\nexport const SENTRY_STATUS_MESSAGE = 'sentry.status.message';\n\n/**\n * Type for {@link SENTRY_STATUS_MESSAGE} sentry.status.message\n */\nexport type SENTRY_STATUS_MESSAGE_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__sveltekit__navigation__from.json\n\n/**\n * the navigation origin (sveltekit router) `sentry.sveltekit.navigation.from`\n *\n * Attribute Value Type: `string` {@link SENTRY_SVELTEKIT_NAVIGATION_FROM_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link NAVIGATION_ORIGIN} `navigation.origin`\n *\n * @deprecated Use {@link NAVIGATION_ORIGIN} (navigation.origin) instead - Use the more generic attribute instead\n * @example \"/home\"\n */\nexport const SENTRY_SVELTEKIT_NAVIGATION_FROM = 'sentry.sveltekit.navigation.from';\n\n/**\n * Type for {@link SENTRY_SVELTEKIT_NAVIGATION_FROM} sentry.sveltekit.navigation.from\n */\nexport type SENTRY_SVELTEKIT_NAVIGATION_FROM_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__sveltekit__navigation__to.json\n\n/**\n * the navigation destination `sentry.sveltekit.navigation.to`\n *\n * Attribute Value Type: `string` {@link SENTRY_SVELTEKIT_NAVIGATION_TO_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated - the navigation destination is already covered by url.* attributes\n * @example \"/users/:id\"\n */\nexport const SENTRY_SVELTEKIT_NAVIGATION_TO = 'sentry.sveltekit.navigation.to';\n\n/**\n * Type for {@link SENTRY_SVELTEKIT_NAVIGATION_TO} sentry.sveltekit.navigation.to\n */\nexport type SENTRY_SVELTEKIT_NAVIGATION_TO_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__sveltekit__navigation__type.json\n\n/**\n * The type of navigation event emitted from the sveltekit client router `sentry.sveltekit.navigation.type`\n *\n * Attribute Value Type: `string` {@link SENTRY_SVELTEKIT_NAVIGATION_TYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link NAVIGATION_TYPE} `navigation.type`\n *\n * @deprecated Use {@link NAVIGATION_TYPE} (navigation.type) instead - Use the more generic attribute instead\n * @example \"link\"\n */\nexport const SENTRY_SVELTEKIT_NAVIGATION_TYPE = 'sentry.sveltekit.navigation.type';\n\n/**\n * Type for {@link SENTRY_SVELTEKIT_NAVIGATION_TYPE} sentry.sveltekit.navigation.type\n */\nexport type SENTRY_SVELTEKIT_NAVIGATION_TYPE_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__thread__id.json\n\n/**\n * Current \u201Cmanaged\u201D thread ID. `sentry.thread.id`\n *\n * Attribute Value Type: `number` {@link SENTRY_THREAD_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated Use {@link THREAD_ID} (thread.id) instead - This attribute is being deprecated in favor of the OTel-standard thread.id\n * @example 56\n */\nexport const SENTRY_THREAD_ID = 'sentry.thread.id';\n\n/**\n * Type for {@link SENTRY_THREAD_ID} sentry.thread.id\n */\nexport type SENTRY_THREAD_ID_TYPE = number;\n\n// Path: model/attributes/sentry/sentry__timestamp__sequence.json\n\n/**\n * 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. `sentry.timestamp.sequence`\n *\n * Attribute Value Type: `number` {@link SENTRY_TIMESTAMP_SEQUENCE_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 0\n */\nexport const SENTRY_TIMESTAMP_SEQUENCE = 'sentry.timestamp.sequence';\n\n/**\n * Type for {@link SENTRY_TIMESTAMP_SEQUENCE} sentry.timestamp.sequence\n */\nexport type SENTRY_TIMESTAMP_SEQUENCE_TYPE = number;\n\n// Path: model/attributes/sentry/sentry__trace_lifecycle.json\n\n/**\n * Indicates the chosen trace lifecycle mode of the SDK (stream or static) `sentry.trace_lifecycle`\n *\n * Attribute Value Type: `string` {@link SENTRY_TRACE_LIFECYCLE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"stream\"\n */\nexport const SENTRY_TRACE_LIFECYCLE = 'sentry.trace_lifecycle';\n\n/**\n * Type for {@link SENTRY_TRACE_LIFECYCLE} sentry.trace_lifecycle\n */\nexport type SENTRY_TRACE_LIFECYCLE_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__trace__parent_span_id.json\n\n/**\n * 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. `sentry.trace.parent_span_id`\n *\n * Attribute Value Type: `string` {@link SENTRY_TRACE_PARENT_SPAN_ID_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated\n * @example \"b0e6f15b45c36b12\"\n */\nexport const SENTRY_TRACE_PARENT_SPAN_ID = 'sentry.trace.parent_span_id';\n\n/**\n * Type for {@link SENTRY_TRACE_PARENT_SPAN_ID} sentry.trace.parent_span_id\n */\nexport type SENTRY_TRACE_PARENT_SPAN_ID_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__trace__status.json\n\n/**\n * The segment's status (either \"ok\" or \"error\"). Older SDKs may set this to a more specific error, but this behaviour is deprecated. `sentry.trace.status`\n *\n * Attribute Value Type: `string` {@link SENTRY_TRACE_STATUS_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"ok\"\n */\nexport const SENTRY_TRACE_STATUS = 'sentry.trace.status';\n\n/**\n * Type for {@link SENTRY_TRACE_STATUS} sentry.trace.status\n */\nexport type SENTRY_TRACE_STATUS_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__transaction.json\n\n/**\n * The sentry transaction (segment name). `sentry.transaction`\n *\n * Attribute Value Type: `string` {@link SENTRY_TRANSACTION_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link SENTRY_SEGMENT_NAME} `sentry.segment.name`, {@link TRANSACTION} `transaction`\n *\n * @deprecated Use {@link SENTRY_SEGMENT_NAME} (sentry.segment.name) instead - This attribute is being deprecated in favor of sentry.segment.name\n * @example \"GET /\"\n */\nexport const SENTRY_TRANSACTION = 'sentry.transaction';\n\n/**\n * Type for {@link SENTRY_TRANSACTION} sentry.transaction\n */\nexport type SENTRY_TRANSACTION_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__user__email.json\n\n/**\n * User email address. `sentry.user.email`\n *\n * Attribute Value Type: `string` {@link SENTRY_USER_EMAIL_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link USER_EMAIL} `user.email`\n *\n * @deprecated Use {@link USER_EMAIL} (user.email) instead\n */\nexport const SENTRY_USER_EMAIL = 'sentry.user.email';\n\n/**\n * Type for {@link SENTRY_USER_EMAIL} sentry.user.email\n */\nexport type SENTRY_USER_EMAIL_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__user__geo__city.json\n\n/**\n * Human readable city name. `sentry.user.geo.city`\n *\n * Attribute Value Type: `string` {@link SENTRY_USER_GEO_CITY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link USER_GEO_CITY} `user.geo.city`\n *\n * @deprecated Use {@link USER_GEO_CITY} (user.geo.city) instead\n */\nexport const SENTRY_USER_GEO_CITY = 'sentry.user.geo.city';\n\n/**\n * Type for {@link SENTRY_USER_GEO_CITY} sentry.user.geo.city\n */\nexport type SENTRY_USER_GEO_CITY_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__user__geo__country_code.json\n\n/**\n * Two-letter country code (ISO 3166-1 alpha-2). `sentry.user.geo.country_code`\n *\n * Attribute Value Type: `string` {@link SENTRY_USER_GEO_COUNTRY_CODE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link USER_GEO_COUNTRY_CODE} `user.geo.country_code`\n *\n * @deprecated Use {@link USER_GEO_COUNTRY_CODE} (user.geo.country_code) instead\n */\nexport const SENTRY_USER_GEO_COUNTRY_CODE = 'sentry.user.geo.country_code';\n\n/**\n * Type for {@link SENTRY_USER_GEO_COUNTRY_CODE} sentry.user.geo.country_code\n */\nexport type SENTRY_USER_GEO_COUNTRY_CODE_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__user__geo__region.json\n\n/**\n * Human readable region name or code. `sentry.user.geo.region`\n *\n * Attribute Value Type: `string` {@link SENTRY_USER_GEO_REGION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link USER_GEO_REGION} `user.geo.region`\n *\n * @deprecated Use {@link USER_GEO_REGION} (user.geo.region) instead\n */\nexport const SENTRY_USER_GEO_REGION = 'sentry.user.geo.region';\n\n/**\n * Type for {@link SENTRY_USER_GEO_REGION} sentry.user.geo.region\n */\nexport type SENTRY_USER_GEO_REGION_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__user__geo__subdivision.json\n\n/**\n * Human readable subdivision name. `sentry.user.geo.subdivision`\n *\n * Attribute Value Type: `string` {@link SENTRY_USER_GEO_SUBDIVISION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link USER_GEO_SUBDIVISION} `user.geo.subdivision`\n *\n * @deprecated Use {@link USER_GEO_SUBDIVISION} (user.geo.subdivision) instead\n */\nexport const SENTRY_USER_GEO_SUBDIVISION = 'sentry.user.geo.subdivision';\n\n/**\n * Type for {@link SENTRY_USER_GEO_SUBDIVISION} sentry.user.geo.subdivision\n */\nexport type SENTRY_USER_GEO_SUBDIVISION_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__user__id.json\n\n/**\n * Unique identifier of the user. `sentry.user.id`\n *\n * Attribute Value Type: `string` {@link SENTRY_USER_ID_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link USER_ID} `user.id`\n *\n * @deprecated Use {@link USER_ID} (user.id) instead\n */\nexport const SENTRY_USER_ID = 'sentry.user.id';\n\n/**\n * Type for {@link SENTRY_USER_ID} sentry.user.id\n */\nexport type SENTRY_USER_ID_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__user__ip.json\n\n/**\n * The IP address of the user. `sentry.user.ip`\n *\n * Attribute Value Type: `string` {@link SENTRY_USER_IP_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link USER_IP_ADDRESS} `user.ip_address`\n *\n * @deprecated Use {@link USER_IP_ADDRESS} (user.ip_address) instead\n */\nexport const SENTRY_USER_IP = 'sentry.user.ip';\n\n/**\n * Type for {@link SENTRY_USER_IP} sentry.user.ip\n */\nexport type SENTRY_USER_IP_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__user__username.json\n\n/**\n * Short name or login/username of the user. `sentry.user.username`\n *\n * Attribute Value Type: `string` {@link SENTRY_USER_USERNAME_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link USER_NAME} `user.name`\n *\n * @deprecated Use {@link USER_NAME} (user.name) instead\n */\nexport const SENTRY_USER_USERNAME = 'sentry.user.username';\n\n/**\n * Type for {@link SENTRY_USER_USERNAME} sentry.user.username\n */\nexport type SENTRY_USER_USERNAME_TYPE = string;\n\n// Path: model/attributes/server/server__address.json\n\n/**\n * Server domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name. `server.address`\n *\n * Attribute Value Type: `string` {@link SERVER_ADDRESS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link HTTP_SERVER_NAME} `http.server_name`, {@link NET_HOST_NAME} `net.host.name`, {@link HTTP_HOST} `http.host`, {@link SERVER_NAME} `server_name`\n *\n * @example \"example.com\"\n */\nexport const SERVER_ADDRESS = 'server.address';\n\n/**\n * Type for {@link SERVER_ADDRESS} server.address\n */\nexport type SERVER_ADDRESS_TYPE = string;\n\n// Path: model/attributes/server_name.json\n\n/**\n * Server domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name. `server_name`\n *\n * Attribute Value Type: `string` {@link SERVER_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link SERVER_ADDRESS} `server.address`, {@link HTTP_SERVER_NAME} `http.server_name`, {@link NET_HOST_NAME} `net.host.name`, {@link HTTP_HOST} `http.host`\n *\n * @deprecated Use {@link SERVER_ADDRESS} (server.address) instead - This attribute is being deprecated in favor of server.address, which is the OTel-aligned replacement.\n * @example \"example.com\"\n */\nexport const SERVER_NAME = 'server_name';\n\n/**\n * Type for {@link SERVER_NAME} server_name\n */\nexport type SERVER_NAME_TYPE = string;\n\n// Path: model/attributes/server/server__port.json\n\n/**\n * Server port number. `server.port`\n *\n * Attribute Value Type: `number` {@link SERVER_PORT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link NET_HOST_PORT} `net.host.port`\n *\n * @example 1337\n */\nexport const SERVER_PORT = 'server.port';\n\n/**\n * Type for {@link SERVER_PORT} server.port\n */\nexport type SERVER_PORT_TYPE = number;\n\n// Path: model/attributes/service/service__name.json\n\n/**\n * Logical name of the service. `service.name`\n *\n * Attribute Value Type: `string` {@link SERVICE_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"omegastar\"\n */\nexport const SERVICE_NAME = 'service.name';\n\n/**\n * Type for {@link SERVICE_NAME} service.name\n */\nexport type SERVICE_NAME_TYPE = string;\n\n// Path: model/attributes/service/service__version.json\n\n/**\n * The version string of the service API or implementation. The format is not defined by these conventions. `service.version`\n *\n * Attribute Value Type: `string` {@link SERVICE_VERSION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link SENTRY_RELEASE} `sentry.release`\n *\n * @example \"5.0.0\"\n */\nexport const SERVICE_VERSION = 'service.version';\n\n/**\n * Type for {@link SERVICE_VERSION} service.version\n */\nexport type SERVICE_VERSION_TYPE = string;\n\n// Path: model/attributes/session/session__id.json\n\n/**\n * A unique id identifying the active session at the time of setting this attribute `session.id`\n *\n * Attribute Value Type: `string` {@link SESSION_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"00112233-4455-6677-8899-aabbccddeeff\"\n */\nexport const SESSION_ID = 'session.id';\n\n/**\n * Type for {@link SESSION_ID} session.id\n */\nexport type SESSION_ID_TYPE = string;\n\n// Path: model/attributes/stall_percentage.json\n\n/**\n * The fraction of time the app was stalled. Only applies to React Native. This is computed by Relay. `stall_percentage`\n *\n * Attribute Value Type: `number` {@link STALL_PERCENTAGE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n */\nexport const STALL_PERCENTAGE = 'stall_percentage';\n\n/**\n * Type for {@link STALL_PERCENTAGE} stall_percentage\n */\nexport type STALL_PERCENTAGE_TYPE = number;\n\n// Path: model/attributes/stall_total_time.json\n\n/**\n * The combined duration of all stalls in milliseconds. Only applies to React Native. This is computed by Relay. `stall_total_time`\n *\n * Attribute Value Type: `number` {@link STALL_TOTAL_TIME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n */\nexport const STALL_TOTAL_TIME = 'stall_total_time';\n\n/**\n * Type for {@link STALL_TOTAL_TIME} stall_total_time\n */\nexport type STALL_TOTAL_TIME_TYPE = number;\n\n// Path: model/attributes/state/state__type.json\n\n/**\n * The type of state management library `state.type`\n *\n * Attribute Value Type: `string` {@link STATE_TYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"redux\"\n */\nexport const STATE_TYPE = 'state.type';\n\n/**\n * Type for {@link STATE_TYPE} state.type\n */\nexport type STATE_TYPE_TYPE = string;\n\n// Path: model/attributes/thread/thread__id.json\n\n/**\n * Current \u201Cmanaged\u201D thread ID. `thread.id`\n *\n * Attribute Value Type: `number` {@link THREAD_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example 56\n */\nexport const THREAD_ID = 'thread.id';\n\n/**\n * Type for {@link THREAD_ID} thread.id\n */\nexport type THREAD_ID_TYPE = number;\n\n// Path: model/attributes/thread/thread__name.json\n\n/**\n * Current thread name. `thread.name`\n *\n * Attribute Value Type: `string` {@link THREAD_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"main\"\n */\nexport const THREAD_NAME = 'thread.name';\n\n/**\n * Type for {@link THREAD_NAME} thread.name\n */\nexport type THREAD_NAME_TYPE = string;\n\n// Path: model/attributes/timber/timber__tag.json\n\n/**\n * The log tag provided by the timber logging framework. `timber.tag`\n *\n * Attribute Value Type: `string` {@link TIMBER_TAG_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"MyTag\"\n */\nexport const TIMBER_TAG = 'timber.tag';\n\n/**\n * Type for {@link TIMBER_TAG} timber.tag\n */\nexport type TIMBER_TAG_TYPE = string;\n\n// Path: model/attributes/time_to_full_display.json\n\n/**\n * The duration of time to full display in milliseconds `time_to_full_display`\n *\n * Attribute Value Type: `number` {@link TIME_TO_FULL_DISPLAY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link APP_VITALS_TTFD_VALUE} `app.vitals.ttfd.value`\n *\n * @deprecated Use {@link APP_VITALS_TTFD_VALUE} (app.vitals.ttfd.value) instead - Replaced by app.vitals.ttfd.value to align with the app.vitals.* namespace for mobile performance attributes\n * @example 1234.56\n */\nexport const TIME_TO_FULL_DISPLAY = 'time_to_full_display';\n\n/**\n * Type for {@link TIME_TO_FULL_DISPLAY} time_to_full_display\n */\nexport type TIME_TO_FULL_DISPLAY_TYPE = number;\n\n// Path: model/attributes/time_to_initial_display.json\n\n/**\n * The duration of time to initial display in milliseconds `time_to_initial_display`\n *\n * Attribute Value Type: `number` {@link TIME_TO_INITIAL_DISPLAY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link APP_VITALS_TTID_VALUE} `app.vitals.ttid.value`\n *\n * @deprecated Use {@link APP_VITALS_TTID_VALUE} (app.vitals.ttid.value) instead - Replaced by app.vitals.ttid.value to align with the app.vitals.* namespace for mobile performance attributes\n * @example 1234.56\n */\nexport const TIME_TO_INITIAL_DISPLAY = 'time_to_initial_display';\n\n/**\n * Type for {@link TIME_TO_INITIAL_DISPLAY} time_to_initial_display\n */\nexport type TIME_TO_INITIAL_DISPLAY_TYPE = number;\n\n// Path: model/attributes/transaction.json\n\n/**\n * The sentry transaction (segment name). `transaction`\n *\n * Attribute Value Type: `string` {@link TRANSACTION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link SENTRY_SEGMENT_NAME} `sentry.segment.name`, {@link SENTRY_TRANSACTION} `sentry.transaction`\n *\n * @deprecated Use {@link SENTRY_SEGMENT_NAME} (sentry.segment.name) instead\n * @example \"GET /\"\n */\nexport const TRANSACTION = 'transaction';\n\n/**\n * Type for {@link TRANSACTION} transaction\n */\nexport type TRANSACTION_TYPE = string;\n\n// Path: model/attributes/trpc/trpc__procedure_path.json\n\n/**\n * The path of the tRPC procedure being called `trpc.procedure_path`\n *\n * Attribute Value Type: `string` {@link TRPC_PROCEDURE_PATH_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"user.getById\"\n */\nexport const TRPC_PROCEDURE_PATH = 'trpc.procedure_path';\n\n/**\n * Type for {@link TRPC_PROCEDURE_PATH} trpc.procedure_path\n */\nexport type TRPC_PROCEDURE_PATH_TYPE = string;\n\n// Path: model/attributes/trpc/trpc__procedure_type.json\n\n/**\n * The type of the tRPC procedure `trpc.procedure_type`\n *\n * Attribute Value Type: `string` {@link TRPC_PROCEDURE_TYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"query\"\n */\nexport const TRPC_PROCEDURE_TYPE = 'trpc.procedure_type';\n\n/**\n * Type for {@link TRPC_PROCEDURE_TYPE} trpc.procedure_type\n */\nexport type TRPC_PROCEDURE_TYPE_TYPE = string;\n\n// Path: model/attributes/ttfb.json\n\n/**\n * The value of the recorded Time To First Byte (TTFB) web vital in milliseconds `ttfb`\n *\n * Attribute Value Type: `number` {@link TTFB_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link BROWSER_WEB_VITAL_TTFB_VALUE} `browser.web_vital.ttfb.value`\n *\n * @deprecated Use {@link BROWSER_WEB_VITAL_TTFB_VALUE} (browser.web_vital.ttfb.value) instead - This attribute is being deprecated in favor of browser.web_vital.ttfb.value\n * @example 194\n */\nexport const TTFB = 'ttfb';\n\n/**\n * Type for {@link TTFB} ttfb\n */\nexport type TTFB_TYPE = number;\n\n// Path: model/attributes/ttfb/ttfb__requestTime.json\n\n/**\n * 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 `ttfb.requestTime`\n *\n * Attribute Value Type: `number` {@link TTFB_REQUESTTIME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link BROWSER_WEB_VITAL_TTFB_REQUEST_TIME} `browser.web_vital.ttfb.request_time`\n *\n * @deprecated Use {@link BROWSER_WEB_VITAL_TTFB_REQUEST_TIME} (browser.web_vital.ttfb.request_time) instead - This attribute is being deprecated in favor of browser.web_vital.ttfb.request_time\n * @example 1554.5814\n */\nexport const TTFB_REQUESTTIME = 'ttfb.requestTime';\n\n/**\n * Type for {@link TTFB_REQUESTTIME} ttfb.requestTime\n */\nexport type TTFB_REQUESTTIME_TYPE = number;\n\n// Path: model/attributes/type.json\n\n/**\n * More granular type of the operation happening. `type`\n *\n * Attribute Value Type: `string` {@link TYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"fetch\"\n */\nexport const TYPE = 'type';\n\n/**\n * Type for {@link TYPE} type\n */\nexport type TYPE_TYPE = string;\n\n// Path: model/attributes/ui/ui__component_name.json\n\n/**\n * The name of the associated component. `ui.component_name`\n *\n * Attribute Value Type: `string` {@link UI_COMPONENT_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"HomeButton\"\n */\nexport const UI_COMPONENT_NAME = 'ui.component_name';\n\n/**\n * Type for {@link UI_COMPONENT_NAME} ui.component_name\n */\nexport type UI_COMPONENT_NAME_TYPE = string;\n\n// Path: model/attributes/ui/ui__contributes_to_ttfd.json\n\n/**\n * Whether the span execution contributed to the TTFD (time to fully drawn) metric. `ui.contributes_to_ttfd`\n *\n * Attribute Value Type: `boolean` {@link UI_CONTRIBUTES_TO_TTFD_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example true\n */\nexport const UI_CONTRIBUTES_TO_TTFD = 'ui.contributes_to_ttfd';\n\n/**\n * Type for {@link UI_CONTRIBUTES_TO_TTFD} ui.contributes_to_ttfd\n */\nexport type UI_CONTRIBUTES_TO_TTFD_TYPE = boolean;\n\n// Path: model/attributes/ui/ui__contributes_to_ttid.json\n\n/**\n * Whether the span execution contributed to the TTID (time to initial display) metric. `ui.contributes_to_ttid`\n *\n * Attribute Value Type: `boolean` {@link UI_CONTRIBUTES_TO_TTID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example true\n */\nexport const UI_CONTRIBUTES_TO_TTID = 'ui.contributes_to_ttid';\n\n/**\n * Type for {@link UI_CONTRIBUTES_TO_TTID} ui.contributes_to_ttid\n */\nexport type UI_CONTRIBUTES_TO_TTID_TYPE = boolean;\n\n// Path: model/attributes/ui/ui__element__height.json\n\n/**\n * The height of the UI element (for Html in pixels) `ui.element.height`\n *\n * Attribute Value Type: `number` {@link UI_ELEMENT_HEIGHT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 256\n */\nexport const UI_ELEMENT_HEIGHT = 'ui.element.height';\n\n/**\n * Type for {@link UI_ELEMENT_HEIGHT} ui.element.height\n */\nexport type UI_ELEMENT_HEIGHT_TYPE = number;\n\n// Path: model/attributes/ui/ui__element__id.json\n\n/**\n * The id of the UI element `ui.element.id`\n *\n * Attribute Value Type: `string` {@link UI_ELEMENT_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"btn-login\"\n */\nexport const UI_ELEMENT_ID = 'ui.element.id';\n\n/**\n * Type for {@link UI_ELEMENT_ID} ui.element.id\n */\nexport type UI_ELEMENT_ID_TYPE = string;\n\n// Path: model/attributes/ui/ui__element__identifier.json\n\n/**\n * The identifier used to measure the UI element timing `ui.element.identifier`\n *\n * Attribute Value Type: `string` {@link UI_ELEMENT_IDENTIFIER_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"heroImage\"\n */\nexport const UI_ELEMENT_IDENTIFIER = 'ui.element.identifier';\n\n/**\n * Type for {@link UI_ELEMENT_IDENTIFIER} ui.element.identifier\n */\nexport type UI_ELEMENT_IDENTIFIER_TYPE = string;\n\n// Path: model/attributes/ui/ui__element__load_time.json\n\n/**\n * The loading time of a UI element (from time origin to finished loading) `ui.element.load_time`\n *\n * Attribute Value Type: `number` {@link UI_ELEMENT_LOAD_TIME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 998.2234\n */\nexport const UI_ELEMENT_LOAD_TIME = 'ui.element.load_time';\n\n/**\n * Type for {@link UI_ELEMENT_LOAD_TIME} ui.element.load_time\n */\nexport type UI_ELEMENT_LOAD_TIME_TYPE = number;\n\n// Path: model/attributes/ui/ui__element__paint_type.json\n\n/**\n * The type of element paint. Can either be 'image-paint' or 'text-paint' `ui.element.paint_type`\n *\n * Attribute Value Type: `string` {@link UI_ELEMENT_PAINT_TYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"image-paint\"\n */\nexport const UI_ELEMENT_PAINT_TYPE = 'ui.element.paint_type';\n\n/**\n * Type for {@link UI_ELEMENT_PAINT_TYPE} ui.element.paint_type\n */\nexport type UI_ELEMENT_PAINT_TYPE_TYPE = string;\n\n// Path: model/attributes/ui/ui__element__render_time.json\n\n/**\n * The rendering time of the UI element (from time origin to finished rendering) `ui.element.render_time`\n *\n * Attribute Value Type: `number` {@link UI_ELEMENT_RENDER_TIME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 1023.1124\n */\nexport const UI_ELEMENT_RENDER_TIME = 'ui.element.render_time';\n\n/**\n * Type for {@link UI_ELEMENT_RENDER_TIME} ui.element.render_time\n */\nexport type UI_ELEMENT_RENDER_TIME_TYPE = number;\n\n// Path: model/attributes/ui/ui__element__type.json\n\n/**\n * type of the UI element `ui.element.type`\n *\n * Attribute Value Type: `string` {@link UI_ELEMENT_TYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"img\"\n */\nexport const UI_ELEMENT_TYPE = 'ui.element.type';\n\n/**\n * Type for {@link UI_ELEMENT_TYPE} ui.element.type\n */\nexport type UI_ELEMENT_TYPE_TYPE = string;\n\n// Path: model/attributes/ui/ui__element__url.json\n\n/**\n * The URL of the UI element (e.g. an img src) `ui.element.url`\n *\n * Attribute Value Type: `string` {@link UI_ELEMENT_URL_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"https://assets.myapp.com/hero.png\"\n */\nexport const UI_ELEMENT_URL = 'ui.element.url';\n\n/**\n * Type for {@link UI_ELEMENT_URL} ui.element.url\n */\nexport type UI_ELEMENT_URL_TYPE = string;\n\n// Path: model/attributes/ui/ui__element__width.json\n\n/**\n * The width of the UI element (for HTML in pixels) `ui.element.width`\n *\n * Attribute Value Type: `number` {@link UI_ELEMENT_WIDTH_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 512\n */\nexport const UI_ELEMENT_WIDTH = 'ui.element.width';\n\n/**\n * Type for {@link UI_ELEMENT_WIDTH} ui.element.width\n */\nexport type UI_ELEMENT_WIDTH_TYPE = number;\n\n// Path: model/attributes/url.json\n\n/**\n * The URL of the resource that was fetched. `url`\n *\n * Attribute Value Type: `string` {@link URL_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link URL_FULL} `url.full`, {@link HTTP_URL} `http.url`\n *\n * @deprecated Use {@link URL_FULL} (url.full) instead\n * @example \"https://example.com/test?foo=bar#buzz\"\n */\nexport const URL = 'url';\n\n/**\n * Type for {@link URL} url\n */\nexport type URL_TYPE = string;\n\n// Path: model/attributes/url/url__domain.json\n\n/**\n * Server domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name. `url.domain`\n *\n * Attribute Value Type: `string` {@link URL_DOMAIN_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"example.com\"\n */\nexport const URL_DOMAIN = 'url.domain';\n\n/**\n * Type for {@link URL_DOMAIN} url.domain\n */\nexport type URL_DOMAIN_TYPE = string;\n\n// Path: model/attributes/url/url__fragment.json\n\n/**\n * The fragments present in the URI. Note that this does not contain the leading # character, while the `http.fragment` attribute does. `url.fragment`\n *\n * Attribute Value Type: `string` {@link URL_FRAGMENT_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"details\"\n */\nexport const URL_FRAGMENT = 'url.fragment';\n\n/**\n * Type for {@link URL_FRAGMENT} url.fragment\n */\nexport type URL_FRAGMENT_TYPE = string;\n\n// Path: model/attributes/url/url__full.json\n\n/**\n * The URL of the resource that was fetched. `url.full`\n *\n * Attribute Value Type: `string` {@link URL_FULL_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link HTTP_URL} `http.url`, {@link URL} `url`\n *\n * @example \"https://example.com/test?foo=bar#buzz\"\n */\nexport const URL_FULL = 'url.full';\n\n/**\n * Type for {@link URL_FULL} url.full\n */\nexport type URL_FULL_TYPE = string;\n\n// Path: model/attributes/url/url__path.json\n\n/**\n * The URI path component. `url.path`\n *\n * Attribute Value Type: `string` {@link URL_PATH_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"/foo\"\n */\nexport const URL_PATH = 'url.path';\n\n/**\n * Type for {@link URL_PATH} url.path\n */\nexport type URL_PATH_TYPE = string;\n\n// Path: model/attributes/url/url__path__parameter__[key].json\n\n/**\n * Decoded parameters extracted from a URL path. Usually added by client-side routing frameworks like vue-router. `url.path.parameter.`\n *\n * Attribute Value Type: `string` {@link URL_PATH_PARAMETER_KEY_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Has Dynamic Suffix: true\n *\n * Aliases: {@link PARAMS_KEY} `params.`\n *\n * @example \"url.path.parameter.id='123'\"\n */\nexport const URL_PATH_PARAMETER_KEY = 'url.path.parameter.';\n\n/**\n * Base key for {@link URL_PATH_PARAMETER_KEY}. Use with a dynamic suffix, e.g. `${URL_PATH_PARAMETER_KEY_BASE}.${key}`.\n */\nexport const URL_PATH_PARAMETER_KEY_BASE = 'url.path.parameter';\n\n/**\n * Type for {@link URL_PATH_PARAMETER_KEY} url.path.parameter.\n */\nexport type URL_PATH_PARAMETER_KEY_TYPE = string;\n\n// Path: model/attributes/url/url__port.json\n\n/**\n * Server port number. `url.port`\n *\n * Attribute Value Type: `number` {@link URL_PORT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example 1337\n */\nexport const URL_PORT = 'url.port';\n\n/**\n * Type for {@link URL_PORT} url.port\n */\nexport type URL_PORT_TYPE = number;\n\n// Path: model/attributes/url/url__query.json\n\n/**\n * The query string present in the URL. Note that this does not contain the leading ? character, while the `http.query` attribute does. `url.query`\n *\n * Attribute Value Type: `string` {@link URL_QUERY_TYPE}\n *\n * Apply Scrubbing: auto - Query string values can contain sensitive information. Clients should attempt to scrub parameters that might contain sensitive information.\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"foo=bar&bar=baz\"\n */\nexport const URL_QUERY = 'url.query';\n\n/**\n * Type for {@link URL_QUERY} url.query\n */\nexport type URL_QUERY_TYPE = string;\n\n// Path: model/attributes/url/url__same_origin.json\n\n/**\n * Indicates that a URL has the same origin as the current page's origin in the browser. `url.same_origin`\n *\n * Attribute Value Type: `boolean` {@link URL_SAME_ORIGIN_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link HTTP_REQUEST_SAME_ORIGIN} `http.request.same_origin`\n *\n * @deprecated Use {@link HTTP_REQUEST_SAME_ORIGIN} (http.request.same_origin) instead - This attribute is being deprecated in favor of http.request.same_origin.\n * @example true\n */\nexport const URL_SAME_ORIGIN = 'url.same_origin';\n\n/**\n * Type for {@link URL_SAME_ORIGIN} url.same_origin\n */\nexport type URL_SAME_ORIGIN_TYPE = boolean;\n\n// Path: model/attributes/url/url__scheme.json\n\n/**\n * The URI scheme component identifying the used protocol. `url.scheme`\n *\n * Attribute Value Type: `string` {@link URL_SCHEME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link HTTP_SCHEME} `http.scheme`\n *\n * @example \"https\"\n */\nexport const URL_SCHEME = 'url.scheme';\n\n/**\n * Type for {@link URL_SCHEME} url.scheme\n */\nexport type URL_SCHEME_TYPE = string;\n\n// Path: model/attributes/url/url__template.json\n\n/**\n * The low-cardinality template of an absolute path reference. `url.template`\n *\n * Attribute Value Type: `string` {@link URL_TEMPLATE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link HTTP_ROUTE} `http.route`\n *\n * @example \"/users/:id\"\n */\nexport const URL_TEMPLATE = 'url.template';\n\n/**\n * Type for {@link URL_TEMPLATE} url.template\n */\nexport type URL_TEMPLATE_TYPE = string;\n\n// Path: model/attributes/user_agent/user_agent__original.json\n\n/**\n * Value of the HTTP User-Agent header sent by the client. `user_agent.original`\n *\n * Attribute Value Type: `string` {@link USER_AGENT_ORIGINAL_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link HTTP_USER_AGENT} `http.user_agent`\n *\n * @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\"\n */\nexport const USER_AGENT_ORIGINAL = 'user_agent.original';\n\n/**\n * Type for {@link USER_AGENT_ORIGINAL} user_agent.original\n */\nexport type USER_AGENT_ORIGINAL_TYPE = string;\n\n// Path: model/attributes/user/user__email.json\n\n/**\n * User email address. `user.email`\n *\n * Attribute Value Type: `string` {@link USER_EMAIL_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link SENTRY_USER_EMAIL} `sentry.user.email`\n *\n * @example \"test@example.com\"\n */\nexport const USER_EMAIL = 'user.email';\n\n/**\n * Type for {@link USER_EMAIL} user.email\n */\nexport type USER_EMAIL_TYPE = string;\n\n// Path: model/attributes/user/user__full_name.json\n\n/**\n * User's full name. `user.full_name`\n *\n * Attribute Value Type: `string` {@link USER_FULL_NAME_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"John Smith\"\n */\nexport const USER_FULL_NAME = 'user.full_name';\n\n/**\n * Type for {@link USER_FULL_NAME} user.full_name\n */\nexport type USER_FULL_NAME_TYPE = string;\n\n// Path: model/attributes/user/user__geo__city.json\n\n/**\n * Human readable city name. `user.geo.city`\n *\n * Attribute Value Type: `string` {@link USER_GEO_CITY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link SENTRY_USER_GEO_CITY} `sentry.user.geo.city`\n *\n * @example \"Toronto\"\n */\nexport const USER_GEO_CITY = 'user.geo.city';\n\n/**\n * Type for {@link USER_GEO_CITY} user.geo.city\n */\nexport type USER_GEO_CITY_TYPE = string;\n\n// Path: model/attributes/user/user__geo__country_code.json\n\n/**\n * Two-letter country code (ISO 3166-1 alpha-2). `user.geo.country_code`\n *\n * Attribute Value Type: `string` {@link USER_GEO_COUNTRY_CODE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link SENTRY_USER_GEO_COUNTRY_CODE} `sentry.user.geo.country_code`\n *\n * @example \"CA\"\n */\nexport const USER_GEO_COUNTRY_CODE = 'user.geo.country_code';\n\n/**\n * Type for {@link USER_GEO_COUNTRY_CODE} user.geo.country_code\n */\nexport type USER_GEO_COUNTRY_CODE_TYPE = string;\n\n// Path: model/attributes/user/user__geo__region.json\n\n/**\n * Human readable region name or code. `user.geo.region`\n *\n * Attribute Value Type: `string` {@link USER_GEO_REGION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link SENTRY_USER_GEO_REGION} `sentry.user.geo.region`\n *\n * @example \"Canada\"\n */\nexport const USER_GEO_REGION = 'user.geo.region';\n\n/**\n * Type for {@link USER_GEO_REGION} user.geo.region\n */\nexport type USER_GEO_REGION_TYPE = string;\n\n// Path: model/attributes/user/user__geo__subdivision.json\n\n/**\n * Human readable subdivision name. `user.geo.subdivision`\n *\n * Attribute Value Type: `string` {@link USER_GEO_SUBDIVISION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link SENTRY_USER_GEO_SUBDIVISION} `sentry.user.geo.subdivision`\n *\n * @example \"Ontario\"\n */\nexport const USER_GEO_SUBDIVISION = 'user.geo.subdivision';\n\n/**\n * Type for {@link USER_GEO_SUBDIVISION} user.geo.subdivision\n */\nexport type USER_GEO_SUBDIVISION_TYPE = string;\n\n// Path: model/attributes/user/user__hash.json\n\n/**\n * Unique user hash to correlate information for a user in anonymized form. `user.hash`\n *\n * Attribute Value Type: `string` {@link USER_HASH_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"8ae4c2993e0f4f3b8b2d1b1f3b5e8f4d\"\n */\nexport const USER_HASH = 'user.hash';\n\n/**\n * Type for {@link USER_HASH} user.hash\n */\nexport type USER_HASH_TYPE = string;\n\n// Path: model/attributes/user/user__id.json\n\n/**\n * Unique identifier of the user. `user.id`\n *\n * Attribute Value Type: `string` {@link USER_ID_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link SENTRY_USER_ID} `sentry.user.id`\n *\n * @example \"S-1-5-21-202424912787-2692429404-2351956786-1000\"\n */\nexport const USER_ID = 'user.id';\n\n/**\n * Type for {@link USER_ID} user.id\n */\nexport type USER_ID_TYPE = string;\n\n// Path: model/attributes/user/user__ip_address.json\n\n/**\n * The IP address of the user. `user.ip_address`\n *\n * Attribute Value Type: `string` {@link USER_IP_ADDRESS_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link SENTRY_USER_IP} `sentry.user.ip`\n *\n * @example \"192.168.1.1\"\n */\nexport const USER_IP_ADDRESS = 'user.ip_address';\n\n/**\n * Type for {@link USER_IP_ADDRESS} user.ip_address\n */\nexport type USER_IP_ADDRESS_TYPE = string;\n\n// Path: model/attributes/user/user__name.json\n\n/**\n * Short name or login/username of the user. `user.name`\n *\n * Attribute Value Type: `string` {@link USER_NAME_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link SENTRY_USER_USERNAME} `sentry.user.username`\n *\n * @example \"j.smith\"\n */\nexport const USER_NAME = 'user.name';\n\n/**\n * Type for {@link USER_NAME} user.name\n */\nexport type USER_NAME_TYPE = string;\n\n// Path: model/attributes/user/user__roles.json\n\n/**\n * Array of user roles at the time of the event. `user.roles`\n *\n * Attribute Value Type: `Array` {@link USER_ROLES_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example [\"admin\",\"editor\"]\n */\nexport const USER_ROLES = 'user.roles';\n\n/**\n * Type for {@link USER_ROLES} user.roles\n */\nexport type USER_ROLES_TYPE = Array;\n\n// Path: model/attributes/vercel/vercel__branch.json\n\n/**\n * Git branch name for Vercel project `vercel.branch`\n *\n * Attribute Value Type: `string` {@link VERCEL_BRANCH_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"main\"\n */\nexport const VERCEL_BRANCH = 'vercel.branch';\n\n/**\n * Type for {@link VERCEL_BRANCH} vercel.branch\n */\nexport type VERCEL_BRANCH_TYPE = string;\n\n// Path: model/attributes/vercel/vercel__build_id.json\n\n/**\n * Identifier for the Vercel build (only present on build logs) `vercel.build_id`\n *\n * Attribute Value Type: `string` {@link VERCEL_BUILD_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"bld_cotnkcr76\"\n */\nexport const VERCEL_BUILD_ID = 'vercel.build_id';\n\n/**\n * Type for {@link VERCEL_BUILD_ID} vercel.build_id\n */\nexport type VERCEL_BUILD_ID_TYPE = string;\n\n// Path: model/attributes/vercel/vercel__deployment_id.json\n\n/**\n * Identifier for the Vercel deployment `vercel.deployment_id`\n *\n * Attribute Value Type: `string` {@link VERCEL_DEPLOYMENT_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"dpl_233NRGRjVZX1caZrXWtz5g1TAksD\"\n */\nexport const VERCEL_DEPLOYMENT_ID = 'vercel.deployment_id';\n\n/**\n * Type for {@link VERCEL_DEPLOYMENT_ID} vercel.deployment_id\n */\nexport type VERCEL_DEPLOYMENT_ID_TYPE = string;\n\n// Path: model/attributes/vercel/vercel__destination.json\n\n/**\n * Origin of the external content in Vercel (only on external logs) `vercel.destination`\n *\n * Attribute Value Type: `string` {@link VERCEL_DESTINATION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"https://vitals.vercel-insights.com/v1\"\n */\nexport const VERCEL_DESTINATION = 'vercel.destination';\n\n/**\n * Type for {@link VERCEL_DESTINATION} vercel.destination\n */\nexport type VERCEL_DESTINATION_TYPE = string;\n\n// Path: model/attributes/vercel/vercel__edge_type.json\n\n/**\n * Type of edge runtime in Vercel `vercel.edge_type`\n *\n * Attribute Value Type: `string` {@link VERCEL_EDGE_TYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"edge-function\"\n */\nexport const VERCEL_EDGE_TYPE = 'vercel.edge_type';\n\n/**\n * Type for {@link VERCEL_EDGE_TYPE} vercel.edge_type\n */\nexport type VERCEL_EDGE_TYPE_TYPE = string;\n\n// Path: model/attributes/vercel/vercel__entrypoint.json\n\n/**\n * Entrypoint for the request in Vercel `vercel.entrypoint`\n *\n * Attribute Value Type: `string` {@link VERCEL_ENTRYPOINT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"api/index.js\"\n */\nexport const VERCEL_ENTRYPOINT = 'vercel.entrypoint';\n\n/**\n * Type for {@link VERCEL_ENTRYPOINT} vercel.entrypoint\n */\nexport type VERCEL_ENTRYPOINT_TYPE = string;\n\n// Path: model/attributes/vercel/vercel__execution_region.json\n\n/**\n * Region where the request is executed `vercel.execution_region`\n *\n * Attribute Value Type: `string` {@link VERCEL_EXECUTION_REGION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"sfo1\"\n */\nexport const VERCEL_EXECUTION_REGION = 'vercel.execution_region';\n\n/**\n * Type for {@link VERCEL_EXECUTION_REGION} vercel.execution_region\n */\nexport type VERCEL_EXECUTION_REGION_TYPE = string;\n\n// Path: model/attributes/vercel/vercel__id.json\n\n/**\n * Unique identifier for the log entry in Vercel `vercel.id`\n *\n * Attribute Value Type: `string` {@link VERCEL_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"1573817187330377061717300000\"\n */\nexport const VERCEL_ID = 'vercel.id';\n\n/**\n * Type for {@link VERCEL_ID} vercel.id\n */\nexport type VERCEL_ID_TYPE = string;\n\n// Path: model/attributes/vercel/vercel__ja3_digest.json\n\n/**\n * JA3 fingerprint digest of Vercel request `vercel.ja3_digest`\n *\n * Attribute Value Type: `string` {@link VERCEL_JA3_DIGEST_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"769,47-53-5-10-49161-49162-49171-49172-50-56-19-4,0-10-11,23-24-25,0\"\n */\nexport const VERCEL_JA3_DIGEST = 'vercel.ja3_digest';\n\n/**\n * Type for {@link VERCEL_JA3_DIGEST} vercel.ja3_digest\n */\nexport type VERCEL_JA3_DIGEST_TYPE = string;\n\n// Path: model/attributes/vercel/vercel__ja4_digest.json\n\n/**\n * JA4 fingerprint digest `vercel.ja4_digest`\n *\n * Attribute Value Type: `string` {@link VERCEL_JA4_DIGEST_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"t13d1516h2_8daaf6152771_02713d6af862\"\n */\nexport const VERCEL_JA4_DIGEST = 'vercel.ja4_digest';\n\n/**\n * Type for {@link VERCEL_JA4_DIGEST} vercel.ja4_digest\n */\nexport type VERCEL_JA4_DIGEST_TYPE = string;\n\n// Path: model/attributes/vercel/vercel__log_type.json\n\n/**\n * Vercel log output type `vercel.log_type`\n *\n * Attribute Value Type: `string` {@link VERCEL_LOG_TYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"stdout\"\n */\nexport const VERCEL_LOG_TYPE = 'vercel.log_type';\n\n/**\n * Type for {@link VERCEL_LOG_TYPE} vercel.log_type\n */\nexport type VERCEL_LOG_TYPE_TYPE = string;\n\n// Path: model/attributes/vercel/vercel__path.json\n\n/**\n * Function or dynamic path of the request in Vercel. `vercel.path`\n *\n * Attribute Value Type: `string` {@link VERCEL_PATH_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"/dynamic/[route].json\"\n */\nexport const VERCEL_PATH = 'vercel.path';\n\n/**\n * Type for {@link VERCEL_PATH} vercel.path\n */\nexport type VERCEL_PATH_TYPE = string;\n\n// Path: model/attributes/vercel/vercel__project_id.json\n\n/**\n * Identifier for the Vercel project `vercel.project_id`\n *\n * Attribute Value Type: `string` {@link VERCEL_PROJECT_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"gdufoJxB6b9b1fEqr1jUtFkyavUU\"\n */\nexport const VERCEL_PROJECT_ID = 'vercel.project_id';\n\n/**\n * Type for {@link VERCEL_PROJECT_ID} vercel.project_id\n */\nexport type VERCEL_PROJECT_ID_TYPE = string;\n\n// Path: model/attributes/vercel/vercel__project_name.json\n\n/**\n * Name of the Vercel project `vercel.project_name`\n *\n * Attribute Value Type: `string` {@link VERCEL_PROJECT_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"my-app\"\n */\nexport const VERCEL_PROJECT_NAME = 'vercel.project_name';\n\n/**\n * Type for {@link VERCEL_PROJECT_NAME} vercel.project_name\n */\nexport type VERCEL_PROJECT_NAME_TYPE = string;\n\n// Path: model/attributes/vercel/vercel__proxy__cache_id.json\n\n/**\n * Original request ID when request is served from cache `vercel.proxy.cache_id`\n *\n * Attribute Value Type: `string` {@link VERCEL_PROXY_CACHE_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"pdx1::v8g4b-1744143786684-93dafbc0f70d\"\n */\nexport const VERCEL_PROXY_CACHE_ID = 'vercel.proxy.cache_id';\n\n/**\n * Type for {@link VERCEL_PROXY_CACHE_ID} vercel.proxy.cache_id\n */\nexport type VERCEL_PROXY_CACHE_ID_TYPE = string;\n\n// Path: model/attributes/vercel/vercel__proxy__client_ip.json\n\n/**\n * Client IP address `vercel.proxy.client_ip`\n *\n * Attribute Value Type: `string` {@link VERCEL_PROXY_CLIENT_IP_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"120.75.16.101\"\n */\nexport const VERCEL_PROXY_CLIENT_IP = 'vercel.proxy.client_ip';\n\n/**\n * Type for {@link VERCEL_PROXY_CLIENT_IP} vercel.proxy.client_ip\n */\nexport type VERCEL_PROXY_CLIENT_IP_TYPE = string;\n\n// Path: model/attributes/vercel/vercel__proxy__host.json\n\n/**\n * Hostname of the request `vercel.proxy.host`\n *\n * Attribute Value Type: `string` {@link VERCEL_PROXY_HOST_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"test.vercel.app\"\n */\nexport const VERCEL_PROXY_HOST = 'vercel.proxy.host';\n\n/**\n * Type for {@link VERCEL_PROXY_HOST} vercel.proxy.host\n */\nexport type VERCEL_PROXY_HOST_TYPE = string;\n\n// Path: model/attributes/vercel/vercel__proxy__lambda_region.json\n\n/**\n * Region where lambda function executed `vercel.proxy.lambda_region`\n *\n * Attribute Value Type: `string` {@link VERCEL_PROXY_LAMBDA_REGION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"sfo1\"\n */\nexport const VERCEL_PROXY_LAMBDA_REGION = 'vercel.proxy.lambda_region';\n\n/**\n * Type for {@link VERCEL_PROXY_LAMBDA_REGION} vercel.proxy.lambda_region\n */\nexport type VERCEL_PROXY_LAMBDA_REGION_TYPE = string;\n\n// Path: model/attributes/vercel/vercel__proxy__method.json\n\n/**\n * HTTP method of the request `vercel.proxy.method`\n *\n * Attribute Value Type: `string` {@link VERCEL_PROXY_METHOD_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"GET\"\n */\nexport const VERCEL_PROXY_METHOD = 'vercel.proxy.method';\n\n/**\n * Type for {@link VERCEL_PROXY_METHOD} vercel.proxy.method\n */\nexport type VERCEL_PROXY_METHOD_TYPE = string;\n\n// Path: model/attributes/vercel/vercel__proxy__path.json\n\n/**\n * Request path with query parameters `vercel.proxy.path`\n *\n * Attribute Value Type: `string` {@link VERCEL_PROXY_PATH_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"/dynamic/some-value.json?route=some-value\"\n */\nexport const VERCEL_PROXY_PATH = 'vercel.proxy.path';\n\n/**\n * Type for {@link VERCEL_PROXY_PATH} vercel.proxy.path\n */\nexport type VERCEL_PROXY_PATH_TYPE = string;\n\n// Path: model/attributes/vercel/vercel__proxy__path_type.json\n\n/**\n * How the request was served based on its path and project configuration `vercel.proxy.path_type`\n *\n * Attribute Value Type: `string` {@link VERCEL_PROXY_PATH_TYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"func\"\n */\nexport const VERCEL_PROXY_PATH_TYPE = 'vercel.proxy.path_type';\n\n/**\n * Type for {@link VERCEL_PROXY_PATH_TYPE} vercel.proxy.path_type\n */\nexport type VERCEL_PROXY_PATH_TYPE_TYPE = string;\n\n// Path: model/attributes/vercel/vercel__proxy__path_type_variant.json\n\n/**\n * Variant of the path type `vercel.proxy.path_type_variant`\n *\n * Attribute Value Type: `string` {@link VERCEL_PROXY_PATH_TYPE_VARIANT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"api\"\n */\nexport const VERCEL_PROXY_PATH_TYPE_VARIANT = 'vercel.proxy.path_type_variant';\n\n/**\n * Type for {@link VERCEL_PROXY_PATH_TYPE_VARIANT} vercel.proxy.path_type_variant\n */\nexport type VERCEL_PROXY_PATH_TYPE_VARIANT_TYPE = string;\n\n// Path: model/attributes/vercel/vercel__proxy__referer.json\n\n/**\n * Referer of the request `vercel.proxy.referer`\n *\n * Attribute Value Type: `string` {@link VERCEL_PROXY_REFERER_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"*.vercel.app\"\n */\nexport const VERCEL_PROXY_REFERER = 'vercel.proxy.referer';\n\n/**\n * Type for {@link VERCEL_PROXY_REFERER} vercel.proxy.referer\n */\nexport type VERCEL_PROXY_REFERER_TYPE = string;\n\n// Path: model/attributes/vercel/vercel__proxy__region.json\n\n/**\n * Region where the request is processed `vercel.proxy.region`\n *\n * Attribute Value Type: `string` {@link VERCEL_PROXY_REGION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"sfo1\"\n */\nexport const VERCEL_PROXY_REGION = 'vercel.proxy.region';\n\n/**\n * Type for {@link VERCEL_PROXY_REGION} vercel.proxy.region\n */\nexport type VERCEL_PROXY_REGION_TYPE = string;\n\n// Path: model/attributes/vercel/vercel__proxy__response_byte_size.json\n\n/**\n * Size of the response in bytes `vercel.proxy.response_byte_size`\n *\n * Attribute Value Type: `number` {@link VERCEL_PROXY_RESPONSE_BYTE_SIZE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 1024\n */\nexport const VERCEL_PROXY_RESPONSE_BYTE_SIZE = 'vercel.proxy.response_byte_size';\n\n/**\n * Type for {@link VERCEL_PROXY_RESPONSE_BYTE_SIZE} vercel.proxy.response_byte_size\n */\nexport type VERCEL_PROXY_RESPONSE_BYTE_SIZE_TYPE = number;\n\n// Path: model/attributes/vercel/vercel__proxy__scheme.json\n\n/**\n * Protocol of the request `vercel.proxy.scheme`\n *\n * Attribute Value Type: `string` {@link VERCEL_PROXY_SCHEME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"https\"\n */\nexport const VERCEL_PROXY_SCHEME = 'vercel.proxy.scheme';\n\n/**\n * Type for {@link VERCEL_PROXY_SCHEME} vercel.proxy.scheme\n */\nexport type VERCEL_PROXY_SCHEME_TYPE = string;\n\n// Path: model/attributes/vercel/vercel__proxy__status_code.json\n\n/**\n * HTTP status code of the proxy request `vercel.proxy.status_code`\n *\n * Attribute Value Type: `number` {@link VERCEL_PROXY_STATUS_CODE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 200\n */\nexport const VERCEL_PROXY_STATUS_CODE = 'vercel.proxy.status_code';\n\n/**\n * Type for {@link VERCEL_PROXY_STATUS_CODE} vercel.proxy.status_code\n */\nexport type VERCEL_PROXY_STATUS_CODE_TYPE = number;\n\n// Path: model/attributes/vercel/vercel__proxy__timestamp.json\n\n/**\n * Unix timestamp when the proxy request was made `vercel.proxy.timestamp`\n *\n * Attribute Value Type: `number` {@link VERCEL_PROXY_TIMESTAMP_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 1573817250172\n */\nexport const VERCEL_PROXY_TIMESTAMP = 'vercel.proxy.timestamp';\n\n/**\n * Type for {@link VERCEL_PROXY_TIMESTAMP} vercel.proxy.timestamp\n */\nexport type VERCEL_PROXY_TIMESTAMP_TYPE = number;\n\n// Path: model/attributes/vercel/vercel__proxy__user_agent.json\n\n/**\n * User agent strings of the request `vercel.proxy.user_agent`\n *\n * Attribute Value Type: `Array` {@link VERCEL_PROXY_USER_AGENT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example [\"Mozilla/5.0...\"]\n */\nexport const VERCEL_PROXY_USER_AGENT = 'vercel.proxy.user_agent';\n\n/**\n * Type for {@link VERCEL_PROXY_USER_AGENT} vercel.proxy.user_agent\n */\nexport type VERCEL_PROXY_USER_AGENT_TYPE = Array;\n\n// Path: model/attributes/vercel/vercel__proxy__vercel_cache.json\n\n/**\n * Cache status sent to the browser `vercel.proxy.vercel_cache`\n *\n * Attribute Value Type: `string` {@link VERCEL_PROXY_VERCEL_CACHE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"REVALIDATED\"\n */\nexport const VERCEL_PROXY_VERCEL_CACHE = 'vercel.proxy.vercel_cache';\n\n/**\n * Type for {@link VERCEL_PROXY_VERCEL_CACHE} vercel.proxy.vercel_cache\n */\nexport type VERCEL_PROXY_VERCEL_CACHE_TYPE = string;\n\n// Path: model/attributes/vercel/vercel__proxy__vercel_id.json\n\n/**\n * Vercel-specific identifier `vercel.proxy.vercel_id`\n *\n * Attribute Value Type: `string` {@link VERCEL_PROXY_VERCEL_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"sfo1::abc123\"\n */\nexport const VERCEL_PROXY_VERCEL_ID = 'vercel.proxy.vercel_id';\n\n/**\n * Type for {@link VERCEL_PROXY_VERCEL_ID} vercel.proxy.vercel_id\n */\nexport type VERCEL_PROXY_VERCEL_ID_TYPE = string;\n\n// Path: model/attributes/vercel/vercel__proxy__waf_action.json\n\n/**\n * Action taken by firewall rules `vercel.proxy.waf_action`\n *\n * Attribute Value Type: `string` {@link VERCEL_PROXY_WAF_ACTION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"deny\"\n */\nexport const VERCEL_PROXY_WAF_ACTION = 'vercel.proxy.waf_action';\n\n/**\n * Type for {@link VERCEL_PROXY_WAF_ACTION} vercel.proxy.waf_action\n */\nexport type VERCEL_PROXY_WAF_ACTION_TYPE = string;\n\n// Path: model/attributes/vercel/vercel__proxy__waf_rule_id.json\n\n/**\n * ID of the firewall rule that matched `vercel.proxy.waf_rule_id`\n *\n * Attribute Value Type: `string` {@link VERCEL_PROXY_WAF_RULE_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"rule_gAHz8jtSB1Gy\"\n */\nexport const VERCEL_PROXY_WAF_RULE_ID = 'vercel.proxy.waf_rule_id';\n\n/**\n * Type for {@link VERCEL_PROXY_WAF_RULE_ID} vercel.proxy.waf_rule_id\n */\nexport type VERCEL_PROXY_WAF_RULE_ID_TYPE = string;\n\n// Path: model/attributes/vercel/vercel__request_id.json\n\n/**\n * Identifier of the Vercel request `vercel.request_id`\n *\n * Attribute Value Type: `string` {@link VERCEL_REQUEST_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"643af4e3-975a-4cc7-9e7a-1eda11539d90\"\n */\nexport const VERCEL_REQUEST_ID = 'vercel.request_id';\n\n/**\n * Type for {@link VERCEL_REQUEST_ID} vercel.request_id\n */\nexport type VERCEL_REQUEST_ID_TYPE = string;\n\n// Path: model/attributes/vercel/vercel__source.json\n\n/**\n * Origin of the Vercel log (build, edge, lambda, static, external, or firewall) `vercel.source`\n *\n * Attribute Value Type: `string` {@link VERCEL_SOURCE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"build\"\n */\nexport const VERCEL_SOURCE = 'vercel.source';\n\n/**\n * Type for {@link VERCEL_SOURCE} vercel.source\n */\nexport type VERCEL_SOURCE_TYPE = string;\n\n// Path: model/attributes/vercel/vercel__status_code.json\n\n/**\n * HTTP status code of the request (-1 means no response returned and the lambda crashed) `vercel.status_code`\n *\n * Attribute Value Type: `number` {@link VERCEL_STATUS_CODE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 200\n */\nexport const VERCEL_STATUS_CODE = 'vercel.status_code';\n\n/**\n * Type for {@link VERCEL_STATUS_CODE} vercel.status_code\n */\nexport type VERCEL_STATUS_CODE_TYPE = number;\n\nexport type AttributeType =\n | 'string'\n | 'boolean'\n | 'integer'\n | 'double'\n | 'string[]'\n | 'boolean[]'\n | 'integer[]'\n | 'double[]'\n | 'any';\n\nexport type ApplyScrubbing = 'auto' | 'manual' | 'never';\n\nexport type AttributeVisibility = 'public' | 'internal';\n\nexport interface ApplyScrubbingInfo {\n /** How PII scrubbing should be applied to the attribute value */\n key: ApplyScrubbing;\n /** Reason why this scrubbing mode applies */\n reason?: string;\n}\n\nexport interface DeprecationInfo {\n /** What this attribute was replaced with */\n replacement?: string;\n /** Reason for deprecation */\n reason?: string;\n}\n\nexport interface ChangelogEntry {\n /** The sentry-conventions release version */\n version: string;\n /** GitHub PR numbers */\n prs?: number[];\n /** Optional description of what changed */\n description?: string;\n}\n\nexport interface AttributeMetadata {\n /** A description of the attribute */\n brief: string;\n /** The type of the attribute value */\n type: AttributeType;\n /** How PII scrubbing should be applied to the attribute value */\n applyScrubbing: ApplyScrubbingInfo;\n /** Whether the attribute is defined in OpenTelemetry Semantic Conventions */\n isInOtel: boolean;\n /** Whether the attribute is public or internal to Sentry */\n visibility: AttributeVisibility;\n /** If an attribute has a dynamic suffix */\n hasDynamicSuffix?: boolean;\n /** An example value of the attribute */\n example?: AttributeValue;\n /** If an attribute was deprecated, and what it was replaced with */\n deprecation?: DeprecationInfo;\n /** If there are attributes that alias to this attribute */\n aliases?: AttributeName[];\n /** Changelog entries tracking how this attribute has changed across versions */\n changelog?: ChangelogEntry[];\n /** A list of freeform notes providing additional context about how this attribute behaves, common pitfalls, or query-time nuances */\n additionalContext?: string[];\n}\n\nexport const ATTRIBUTE_TYPE: Record = {\n 'ai.citations': 'string[]',\n 'ai.completion_tokens.used': 'integer',\n 'ai.documents': 'string[]',\n 'ai.finish_reason': 'string',\n 'ai.frequency_penalty': 'double',\n 'ai.function_call': 'string',\n 'ai.generation_id': 'string',\n 'ai.input_messages': 'string',\n 'ai.is_search_required': 'boolean',\n 'ai.metadata': 'string',\n 'ai.model_id': 'string',\n 'ai.model.provider': 'string',\n 'ai.pipeline.name': 'string',\n 'ai.preamble': 'string',\n 'ai.presence_penalty': 'double',\n 'ai.prompt_tokens.used': 'integer',\n 'ai.raw_prompting': 'boolean',\n 'ai.responses': 'string[]',\n 'ai.response_format': 'string',\n 'ai.search_queries': 'string[]',\n 'ai.search_results': 'string[]',\n 'ai.seed': 'string',\n 'ai.streaming': 'boolean',\n 'ai.tags': 'string',\n 'ai.temperature': 'double',\n 'ai.texts': 'string[]',\n 'ai.tools': 'string[]',\n 'ai.tool_calls': 'string[]',\n 'ai.top_k': 'integer',\n 'ai.top_p': 'double',\n 'ai.total_cost': 'double',\n 'ai.total_tokens.used': 'integer',\n 'ai.warnings': 'string[]',\n 'angular.version': 'string',\n 'app.app_build': 'string',\n 'app.app_identifier': 'string',\n 'app.app_name': 'string',\n 'app.app_start_time': 'string',\n 'app.app_version': 'string',\n 'app.build': 'string',\n 'app.identifier': 'string',\n 'app.in_foreground': 'boolean',\n 'app.name': 'string',\n app_start_cold: 'double',\n 'app.start_time': 'string',\n app_start_type: 'string',\n app_start_warm: 'double',\n 'app.version': 'string',\n 'app.vitals.frames.delay.value': 'integer',\n 'app.vitals.frames.frozen.count': 'integer',\n 'app.vitals.frames.slow.count': 'integer',\n 'app.vitals.frames.total.count': 'integer',\n 'app.vitals.start.cold.value': 'double',\n 'app.vitals.start.prewarmed': 'boolean',\n 'app.vitals.start.reason': 'string',\n 'app.vitals.start.screen': 'string',\n 'app.vitals.start.type': 'string',\n 'app.vitals.start.warm.value': 'double',\n 'app.vitals.ttfd.value': 'double',\n 'app.vitals.ttid.value': 'double',\n 'art.gc.blocking_count': 'integer',\n 'art.gc.blocking_time': 'double',\n 'art.gc.pre_oome_count': 'integer',\n 'art.gc.total_count': 'integer',\n 'art.gc.total_time': 'double',\n 'art.gc.waiting_time': 'double',\n 'art.memory.free': 'integer',\n 'art.memory.free_until_gc': 'integer',\n 'art.memory.free_until_oome': 'integer',\n 'art.memory.max': 'integer',\n 'art.memory.total': 'integer',\n 'aws.cloudwatch.logs.log_group': 'string',\n 'aws.cloudwatch.logs.log_stream': 'string',\n 'aws.cloudwatch.logs.url': 'string',\n 'aws.dynamodb.attribute_definitions': 'string[]',\n 'aws.dynamodb.consistent_read': 'boolean',\n 'aws.dynamodb.consumed_capacity': 'string[]',\n 'aws.dynamodb.count': 'integer',\n 'aws.dynamodb.exclusive_start_table': 'string',\n 'aws.dynamodb.global_secondary_indexes': 'string[]',\n 'aws.dynamodb.global_secondary_index_updates': 'string[]',\n 'aws.dynamodb.index_name': 'string',\n 'aws.dynamodb.item_collection_metrics': 'string',\n 'aws.dynamodb.limit': 'integer',\n 'aws.dynamodb.local_secondary_indexes': 'string[]',\n 'aws.dynamodb.projection': 'string',\n 'aws.dynamodb.provisioned_read_capacity': 'double',\n 'aws.dynamodb.provisioned_write_capacity': 'double',\n 'aws.dynamodb.scanned_count': 'integer',\n 'aws.dynamodb.scan_forward': 'boolean',\n 'aws.dynamodb.segment': 'integer',\n 'aws.dynamodb.select': 'string',\n 'aws.dynamodb.table_count': 'integer',\n 'aws.dynamodb.table_names': 'string[]',\n 'aws.dynamodb.total_segments': 'integer',\n 'aws.extended_request_id': 'string',\n 'aws.kinesis.stream_name': 'string',\n 'aws.kinesis.stream.name': 'string',\n 'aws.lambda.aws_request_id': 'string',\n 'aws.lambda.execution_duration_in_millis': 'double',\n 'aws.lambda.function_name': 'string',\n 'aws.lambda.function_version': 'string',\n 'aws.lambda.invoked_arn': 'string',\n 'aws.lambda.invoked_function_arn': 'string',\n 'aws.lambda.remaining_time_in_millis': 'double',\n 'aws.log.group.names': 'string[]',\n 'aws.log.stream.names': 'string[]',\n 'aws.request.extended_id': 'string',\n 'aws.request_id': 'string',\n 'aws.request.id': 'string',\n 'aws.s3.bucket': 'string',\n 'aws.secretsmanager.secret.arn': 'string',\n 'aws.sns.topic.arn': 'string',\n 'aws.step_functions.activity.arn': 'string',\n 'aws.step_functions.state_machine.arn': 'string',\n blocked_main_thread: 'boolean',\n 'browser.name': 'string',\n 'browser.performance.navigation.activation_start': 'double',\n 'browser.performance.time_origin': 'double',\n 'browser.report.type': 'string',\n 'browser.script.invoker': 'string',\n 'browser.script.invoker_type': 'string',\n 'browser.script.source_char_position': 'integer',\n 'browser.version': 'string',\n 'browser.web_vital.cls.report_event': 'string',\n 'browser.web_vital.cls.source.': 'string',\n 'browser.web_vital.cls.value': 'double',\n 'browser.web_vital.fcp.value': 'double',\n 'browser.web_vital.fp.value': 'double',\n 'browser.web_vital.inp.value': 'double',\n 'browser.web_vital.lcp.element': 'string',\n 'browser.web_vital.lcp.id': 'string',\n 'browser.web_vital.lcp.load_time': 'integer',\n 'browser.web_vital.lcp.render_time': 'integer',\n 'browser.web_vital.lcp.report_event': 'string',\n 'browser.web_vital.lcp.size': 'integer',\n 'browser.web_vital.lcp.url': 'string',\n 'browser.web_vital.lcp.value': 'double',\n 'browser.web_vital.ttfb.request_time': 'double',\n 'browser.web_vital.ttfb.value': 'double',\n 'cache.hit': 'boolean',\n 'cache.item_size': 'integer',\n 'cache.key': 'string[]',\n 'cache.operation': 'string',\n 'cache.ttl': 'integer',\n 'cache.write': 'boolean',\n channel: 'string',\n 'client.address': 'string',\n 'client.port': 'integer',\n 'cloudflare.d1.duration': 'integer',\n 'cloudflare.d1.query_type': 'string',\n 'cloudflare.d1.rows_read': 'integer',\n 'cloudflare.d1.rows_written': 'integer',\n 'cloudflare.durable_object.query.bindings': 'integer',\n 'cloudflare.durable_object.response.rows_read': 'integer',\n 'cloudflare.durable_object.response.rows_written': 'integer',\n 'cloudflare.r2.bucket': 'string',\n 'cloudflare.r2.operation': 'string',\n 'cloudflare.r2.request.delimiter': 'string',\n 'cloudflare.r2.request.key': 'string',\n 'cloudflare.r2.request.part_number': 'integer',\n 'cloudflare.r2.request.prefix': 'string',\n 'cloudflare.workflow.attempt': 'integer',\n 'cloudflare.workflow.retries.backoff': 'string',\n 'cloudflare.workflow.retries.delay': 'string',\n 'cloudflare.workflow.retries.limit': 'integer',\n 'cloudflare.workflow.timeout': 'string',\n 'cloud.account.id': 'string',\n 'cloud.availability_zone': 'string',\n 'cloud.platform': 'string',\n 'cloud.provider': 'string',\n 'cloud.region': 'string',\n 'cloud.resource_id': 'string',\n cls: 'double',\n 'cls.source.': 'string',\n 'code.filepath': 'string',\n 'code.file.path': 'string',\n 'code.function': 'string',\n 'code.function.name': 'string',\n 'code.lineno': 'integer',\n 'code.line.number': 'integer',\n 'code.namespace': 'string',\n connectionType: 'string',\n 'connection.rtt': 'integer',\n 'culture.calendar': 'string',\n 'culture.display_name': 'string',\n 'culture.is_24_hour_format': 'boolean',\n 'culture.locale': 'string',\n 'culture.timezone': 'string',\n 'db.collection.name': 'string',\n 'db.driver.name': 'string',\n 'db.name': 'string',\n 'db.namespace': 'string',\n 'db.operation': 'string',\n 'db.operation.batch.size': 'integer',\n 'db.operation.name': 'string',\n 'db.query.parameter.': 'string',\n 'db.query.summary': 'string',\n 'db.query.text': 'string',\n 'db.redis.connection': 'string',\n 'db.redis.key': 'string',\n 'db.redis.parameters': 'string[]',\n 'db.response.status_code': 'string',\n 'db.sql.bindings': 'string[]',\n 'db.statement': 'string',\n 'db.stored_procedure.name': 'string',\n 'db.system': 'string',\n 'db.system.name': 'string',\n 'db.user': 'string',\n deviceMemory: 'string',\n 'device.archs': 'string[]',\n 'device.battery_level': 'double',\n 'device.battery_temperature': 'double',\n 'device.boot_time': 'string',\n 'device.brand': 'string',\n 'device.charging': 'boolean',\n 'device.chipset': 'string',\n 'device.class': 'string',\n 'device.connection_type': 'string',\n 'device.cpu_description': 'string',\n 'device.external_free_storage': 'integer',\n 'device.external_storage_size': 'integer',\n 'device.family': 'string',\n 'device.free_memory': 'integer',\n 'device.free_storage': 'integer',\n 'device.id': 'string',\n 'device.locale': 'string',\n 'device.low_memory': 'boolean',\n 'device.low_power_mode': 'boolean',\n 'device.manufacturer': 'string',\n 'device.memory.estimated_capacity': 'integer',\n 'device.memory_size': 'integer',\n 'device.model': 'string',\n 'device.model_id': 'string',\n 'device.name': 'string',\n 'device.online': 'boolean',\n 'device.orientation': 'string',\n 'device.processor_count': 'integer',\n 'device.processor_frequency': 'double',\n 'device.screen_density': 'double',\n 'device.screen_dpi': 'integer',\n 'device.screen_height_pixels': 'integer',\n 'device.screen_width_pixels': 'integer',\n 'device.simulator': 'boolean',\n 'device.storage_size': 'integer',\n 'device.thermal_state': 'string',\n 'device.timezone': 'string',\n 'device.usable_memory': 'integer',\n dist: 'string',\n effectiveConnectionType: 'string',\n environment: 'string',\n 'error.type': 'string',\n 'event.id': 'integer',\n 'event.name': 'string',\n 'exception.escaped': 'boolean',\n 'exception.message': 'string',\n 'exception.stacktrace': 'string',\n 'exception.type': 'string',\n 'faas.coldstart': 'boolean',\n 'faas.cron': 'string',\n 'faas.duration_in_ms': 'integer',\n 'faas.entry_point': 'string',\n 'faas.execution': 'string',\n 'faas.id': 'string',\n 'faas.identity': 'string',\n 'faas.invocation_id': 'string',\n 'faas.invoked_name': 'string',\n 'faas.invoked_provider': 'string',\n 'faas.invoked_region': 'string',\n 'faas.name': 'string',\n 'faas.time': 'string',\n 'faas.trigger': 'string',\n 'faas.version': 'string',\n fcp: 'double',\n 'flag.evaluation.': 'boolean',\n fp: 'double',\n 'frames.delay': 'integer',\n 'frames.frozen': 'integer',\n frames_frozen_rate: 'double',\n 'frames.slow': 'integer',\n frames_slow_rate: 'double',\n 'frames.total': 'integer',\n fs_error: 'string',\n 'gcp.function.context.event_id': 'string',\n 'gcp.function.context.event_type': 'string',\n 'gcp.function.context.id': 'string',\n 'gcp.function.context.resource': 'string',\n 'gcp.function.context.source': 'string',\n 'gcp.function.context.specversion': 'string',\n 'gcp.function.context.time': 'string',\n 'gcp.function.context.timestamp': 'string',\n 'gcp.function.context.type': 'string',\n 'gcp.project.id': 'string',\n 'gen_ai.agent.name': 'string',\n 'gen_ai.context.utilization': 'double',\n 'gen_ai.context.window_size': 'integer',\n 'gen_ai.conversation.id': 'string',\n 'gen_ai.cost.cache_creation.input_tokens': 'double',\n 'gen_ai.cost.cache_read.input_tokens': 'double',\n 'gen_ai.cost.input_tokens': 'double',\n 'gen_ai.cost.output_tokens': 'double',\n 'gen_ai.cost.reasoning.output_tokens': 'double',\n 'gen_ai.cost.total_tokens': 'double',\n 'gen_ai.embeddings.input': 'string',\n 'gen_ai.function_id': 'string',\n 'gen_ai.input.messages': 'string',\n 'gen_ai.operation.name': 'string',\n 'gen_ai.operation.type': 'string',\n 'gen_ai.output.messages': 'string',\n 'gen_ai.pipeline.name': 'string',\n 'gen_ai.prompt': 'string',\n 'gen_ai.prompt.name': 'string',\n 'gen_ai.provider.name': 'string',\n 'gen_ai.request.available_tools': 'string',\n 'gen_ai.request.frequency_penalty': 'double',\n 'gen_ai.request.max_tokens': 'integer',\n 'gen_ai.request.messages': 'string',\n 'gen_ai.request.model': 'string',\n 'gen_ai.request.presence_penalty': 'double',\n 'gen_ai.request.reasoning_effort': 'string',\n 'gen_ai.request.seed': 'string',\n 'gen_ai.request.stop_sequences': 'string[]',\n 'gen_ai.request.temperature': 'double',\n 'gen_ai.request.top_k': 'integer',\n 'gen_ai.request.top_p': 'double',\n 'gen_ai.response.finish_reasons': 'string',\n 'gen_ai.response.id': 'string',\n 'gen_ai.response.model': 'string',\n 'gen_ai.response.streaming': 'boolean',\n 'gen_ai.response.text': 'string',\n 'gen_ai.response.time_to_first_chunk': 'double',\n 'gen_ai.response.time_to_first_token': 'double',\n 'gen_ai.response.tokens_per_second': 'double',\n 'gen_ai.response.tool_calls': 'string',\n 'gen_ai.system': 'string',\n 'gen_ai.system_instructions': 'string',\n 'gen_ai.system.message': 'string',\n 'gen_ai.tool.call.arguments': 'string',\n 'gen_ai.tool.call.result': 'string',\n 'gen_ai.tool.definitions': 'string',\n 'gen_ai.tool.description': 'string',\n 'gen_ai.tool.input': 'string',\n 'gen_ai.tool.message': 'string',\n 'gen_ai.tool.name': 'string',\n 'gen_ai.tool.output': 'string',\n 'gen_ai.tool.type': 'string',\n 'gen_ai.usage.cache_creation.input_tokens': 'integer',\n 'gen_ai.usage.cache_read.input_tokens': 'integer',\n 'gen_ai.usage.completion_tokens': 'integer',\n 'gen_ai.usage.input_tokens': 'integer',\n 'gen_ai.usage.input_tokens.cached': 'integer',\n 'gen_ai.usage.input_tokens.cache_write': 'integer',\n 'gen_ai.usage.output_tokens': 'integer',\n 'gen_ai.usage.output_tokens.reasoning': 'integer',\n 'gen_ai.usage.prompt_tokens': 'integer',\n 'gen_ai.usage.reasoning.output_tokens': 'integer',\n 'gen_ai.usage.total_tokens': 'integer',\n 'graphql.document': 'string',\n 'graphql.operation.name': 'string',\n 'graphql.operation.type': 'string',\n hardwareConcurrency: 'string',\n 'http.client_ip': 'string',\n 'http.decoded_response_content_length': 'integer',\n 'http.flavor': 'string',\n 'http.fragment': 'string',\n 'http.host': 'string',\n 'http.method': 'string',\n 'http.query': 'string',\n 'http.request.body.data': 'string',\n 'http.request.connection_end': 'double',\n 'http.request.connect_start': 'double',\n 'http.request.domain_lookup_end': 'double',\n 'http.request.domain_lookup_start': 'double',\n 'http.request.fetch_start': 'double',\n 'http.request.header.': 'string[]',\n 'http.request.method': 'string',\n 'http.request_method': 'string',\n 'http.request.redirect_end': 'double',\n 'http.request.redirect_start': 'double',\n 'http.request.request_start': 'double',\n 'http.request.resend_count': 'integer',\n 'http.request.response_end': 'double',\n 'http.request.response_start': 'double',\n 'http.request.same_origin': 'boolean',\n 'http.request.secure_connection_start': 'double',\n 'http.request.time_to_first_byte': 'double',\n 'http.request.worker_start': 'double',\n 'http.response.body.size': 'integer',\n 'http.response_content_length': 'integer',\n 'http.response.header.content-length': 'string',\n 'http.response.header.': 'string[]',\n 'http.response.size': 'integer',\n 'http.response.status_code': 'integer',\n 'http.response_transfer_size': 'integer',\n 'http.route': 'string',\n 'http.scheme': 'string',\n 'http.server_name': 'string',\n 'http.server.request.time_in_queue': 'double',\n 'http.status_code': 'integer',\n 'http.target': 'string',\n 'http.url': 'string',\n 'http.user_agent': 'string',\n id: 'string',\n inp: 'double',\n 'jsonrpc.protocol.version': 'string',\n 'jsonrpc.request.id': 'string',\n 'jvm.gc.action': 'string',\n 'jvm.gc.name': 'string',\n 'jvm.memory.pool.name': 'string',\n 'jvm.memory.type': 'string',\n 'jvm.thread.daemon': 'boolean',\n 'jvm.thread.state': 'string',\n 'koa.name': 'string',\n 'koa.type': 'string',\n lcp: 'double',\n 'lcp.element': 'string',\n 'lcp.id': 'string',\n 'lcp.loadTime': 'integer',\n 'lcp.renderTime': 'integer',\n 'lcp.size': 'integer',\n 'lcp.url': 'string',\n 'logger.name': 'string',\n 'mcp.cancelled.reason': 'string',\n 'mcp.cancelled.request_id': 'string',\n 'mcp.client.name': 'string',\n 'mcp.client.title': 'string',\n 'mcp.client.version': 'string',\n 'mcp.lifecycle.phase': 'string',\n 'mcp.logging.data_type': 'string',\n 'mcp.logging.level': 'string',\n 'mcp.logging.logger': 'string',\n 'mcp.logging.message': 'string',\n 'mcp.method.name': 'string',\n 'mcp.progress.current': 'integer',\n 'mcp.progress.message': 'string',\n 'mcp.progress.percentage': 'double',\n 'mcp.progress.token': 'string',\n 'mcp.progress.total': 'integer',\n 'mcp.prompt.name': 'string',\n 'mcp.prompt.result.description': 'string',\n 'mcp.prompt.result.message_content': 'string',\n 'mcp.prompt.result.message_count': 'integer',\n 'mcp.prompt.result.message_role': 'string',\n 'mcp.protocol.ready': 'integer',\n 'mcp.protocol.version': 'string',\n 'mcp.request.argument.': 'string',\n 'mcp.request.argument.name': 'string',\n 'mcp.request.argument.uri': 'string',\n 'mcp.request.id': 'string',\n 'mcp.resource.protocol': 'string',\n 'mcp.resource.uri': 'string',\n 'mcp.server.name': 'string',\n 'mcp.server.title': 'string',\n 'mcp.server.version': 'string',\n 'mcp.session.id': 'string',\n 'mcp.tool.name': 'string',\n 'mcp.tool.result.content': 'string',\n 'mcp.tool.result.content_count': 'integer',\n 'mcp.tool.result.is_error': 'boolean',\n 'mcp.transport': 'string',\n 'mdc.': 'string',\n 'messaging.batch.message_count': 'integer',\n 'messaging.destination': 'string',\n 'messaging.destination.connection': 'string',\n 'messaging.destination.name': 'string',\n 'messaging.message.body.size': 'integer',\n 'messaging.message.conversation_id': 'string',\n 'messaging.message.envelope.size': 'integer',\n 'messaging.message.id': 'string',\n 'messaging.message.receive.latency': 'integer',\n 'messaging.message.retry.count': 'integer',\n 'messaging.operation.name': 'string',\n 'messaging.operation.type': 'string',\n 'messaging.rabbitmq.destination.routing_key': 'string',\n 'messaging.system': 'string',\n method: 'string',\n 'middleware.name': 'string',\n 'navigation.origin': 'string',\n 'navigation.route.id': 'string',\n 'navigation.type': 'string',\n 'nel.elapsed_time': 'integer',\n 'nel.phase': 'string',\n 'nel.referrer': 'string',\n 'nel.sampling_function': 'double',\n 'nel.type': 'string',\n 'network.connection.effective_type': 'string',\n 'network.connection.rtt': 'integer',\n 'network.connection.type': 'string',\n 'network.local.address': 'string',\n 'network.local.port': 'integer',\n 'network.peer.address': 'string',\n 'network.peer.port': 'integer',\n 'network.protocol.name': 'string',\n 'network.protocol.version': 'string',\n 'network.transport': 'string',\n 'network.type': 'string',\n 'net.host.ip': 'string',\n 'net.host.name': 'string',\n 'net.host.port': 'integer',\n 'net.peer.ip': 'string',\n 'net.peer.name': 'string',\n 'net.peer.port': 'integer',\n 'net.protocol.name': 'string',\n 'net.protocol.version': 'string',\n 'net.sock.family': 'string',\n 'net.sock.host.addr': 'string',\n 'net.sock.host.port': 'integer',\n 'net.sock.peer.addr': 'string',\n 'net.sock.peer.name': 'string',\n 'net.sock.peer.port': 'integer',\n 'net.transport': 'string',\n 'os.build': 'string',\n 'os.build_id': 'string',\n 'os.description': 'string',\n 'os.kernel_version': 'string',\n 'os.name': 'string',\n 'os.raw_description': 'string',\n 'os.rooted': 'boolean',\n 'os.theme': 'string',\n 'os.type': 'string',\n 'os.version': 'string',\n 'otel.kind': 'string',\n 'otel.scope.name': 'string',\n 'otel.scope.version': 'string',\n 'otel.status_code': 'string',\n 'otel.status_description': 'string',\n 'params.': 'string',\n 'performance.activationStart': 'double',\n 'performance.timeOrigin': 'double',\n previous_route: 'string',\n 'process.command_args': 'string[]',\n 'process.executable.name': 'string',\n 'process.pid': 'integer',\n 'process.runtime.description': 'string',\n 'process.runtime.engine.name': 'string',\n 'process.runtime.engine.version': 'string',\n 'process.runtime.name': 'string',\n 'process.runtime.version': 'string',\n 'query.': 'string',\n 'react.version': 'string',\n release: 'string',\n 'remix.action_form_data.': 'string',\n replay_id: 'string',\n 'resource.deployment.environment': 'string',\n 'resource.deployment.environment.name': 'string',\n 'resource.render_blocking_status': 'string',\n route: 'string',\n 'rpc.grpc.status_code': 'integer',\n 'rpc.method': 'string',\n 'rpc.response.status_code': 'string',\n 'rpc.service': 'string',\n 'rpc.system': 'string',\n 'rpc.system.name': 'string',\n 'runtime.build': 'string',\n 'runtime.name': 'string',\n 'runtime.raw_description': 'string',\n 'runtime.version': 'string',\n 'score.': 'double',\n 'score.ratio.': 'double',\n 'score.total': 'double',\n 'score.weight.': 'double',\n 'sentry.action': 'string',\n 'sentry.browser.name': 'string',\n 'sentry.browser.version': 'string',\n 'sentry.cancellation_reason': 'string',\n 'sentry.category': 'string',\n 'sentry.client_sample_rate': 'double',\n 'sentry.description': 'string',\n 'sentry.dist': 'string',\n 'sentry.domain': 'string',\n 'sentry.dsc.environment': 'string',\n 'sentry.dsc.project_id': 'string',\n 'sentry.dsc.public_key': 'string',\n 'sentry.dsc.release': 'string',\n 'sentry.dsc.sampled': 'boolean',\n 'sentry.dsc.sample_rate': 'string',\n 'sentry.dsc.trace_id': 'string',\n 'sentry.dsc.transaction': 'string',\n 'sentry.environment': 'string',\n 'sentry.exclusive_time': 'double',\n 'sentry.graphql.operation': 'string',\n 'sentry.group': 'string',\n 'sentry.http.prefetch': 'boolean',\n 'sentry.idle_span_finish_reason': 'string',\n 'sentry.is_remote': 'boolean',\n 'sentry.kind': 'string',\n 'sentry.main_thread': 'boolean',\n 'sentry.message.parameter.': 'string',\n 'sentry.message.template': 'string',\n 'sentry.metric.source': 'string',\n 'sentry.mobile': 'boolean',\n 'sentry.module.': 'string',\n 'sentry.nextjs.ssr.function.route': 'string',\n 'sentry.nextjs.ssr.function.type': 'string',\n 'sentry.normalized_db_query': 'string',\n 'sentry.normalized_db_query.hash': 'string',\n 'sentry.normalized_description': 'string',\n 'sentry.observed_timestamp_nanos': 'string',\n 'sentry.op': 'string',\n 'sentry.origin': 'string',\n 'sentry.platform': 'string',\n 'sentry.profiler_id': 'string',\n 'sentry.profile_id': 'string',\n 'sentry.release': 'string',\n 'sentry.replay_id': 'string',\n 'sentry.replay_is_buffering': 'boolean',\n 'sentry.report_event': 'string',\n 'sentry.sdk.integrations': 'string[]',\n 'sentry.sdk.name': 'string',\n 'sentry.sdk.version': 'string',\n 'sentry.segment.id': 'string',\n 'sentry.segment_id': 'string',\n 'sentry.segment.name': 'string',\n 'sentry.server_sample_rate': 'double',\n 'sentry.source': 'string',\n 'sentry.span.source': 'string',\n 'sentry.status': 'string',\n 'sentry.status_code': 'integer',\n 'sentry.status.message': 'string',\n 'sentry.sveltekit.navigation.from': 'string',\n 'sentry.sveltekit.navigation.to': 'string',\n 'sentry.sveltekit.navigation.type': 'string',\n 'sentry.thread.id': 'integer',\n 'sentry.timestamp.sequence': 'integer',\n 'sentry.trace_lifecycle': 'string',\n 'sentry.trace.parent_span_id': 'string',\n 'sentry.trace.status': 'string',\n 'sentry.transaction': 'string',\n 'sentry.user.email': 'string',\n 'sentry.user.geo.city': 'string',\n 'sentry.user.geo.country_code': 'string',\n 'sentry.user.geo.region': 'string',\n 'sentry.user.geo.subdivision': 'string',\n 'sentry.user.id': 'string',\n 'sentry.user.ip': 'string',\n 'sentry.user.username': 'string',\n 'server.address': 'string',\n server_name: 'string',\n 'server.port': 'integer',\n 'service.name': 'string',\n 'service.version': 'string',\n 'session.id': 'string',\n stall_percentage: 'double',\n stall_total_time: 'double',\n 'state.type': 'string',\n 'thread.id': 'integer',\n 'thread.name': 'string',\n 'timber.tag': 'string',\n time_to_full_display: 'double',\n time_to_initial_display: 'double',\n transaction: 'string',\n 'trpc.procedure_path': 'string',\n 'trpc.procedure_type': 'string',\n ttfb: 'double',\n 'ttfb.requestTime': 'double',\n type: 'string',\n 'ui.component_name': 'string',\n 'ui.contributes_to_ttfd': 'boolean',\n 'ui.contributes_to_ttid': 'boolean',\n 'ui.element.height': 'integer',\n 'ui.element.id': 'string',\n 'ui.element.identifier': 'string',\n 'ui.element.load_time': 'double',\n 'ui.element.paint_type': 'string',\n 'ui.element.render_time': 'double',\n 'ui.element.type': 'string',\n 'ui.element.url': 'string',\n 'ui.element.width': 'integer',\n url: 'string',\n 'url.domain': 'string',\n 'url.fragment': 'string',\n 'url.full': 'string',\n 'url.path': 'string',\n 'url.path.parameter.': 'string',\n 'url.port': 'integer',\n 'url.query': 'string',\n 'url.same_origin': 'boolean',\n 'url.scheme': 'string',\n 'url.template': 'string',\n 'user_agent.original': 'string',\n 'user.email': 'string',\n 'user.full_name': 'string',\n 'user.geo.city': 'string',\n 'user.geo.country_code': 'string',\n 'user.geo.region': 'string',\n 'user.geo.subdivision': 'string',\n 'user.hash': 'string',\n 'user.id': 'string',\n 'user.ip_address': 'string',\n 'user.name': 'string',\n 'user.roles': 'string[]',\n 'vercel.branch': 'string',\n 'vercel.build_id': 'string',\n 'vercel.deployment_id': 'string',\n 'vercel.destination': 'string',\n 'vercel.edge_type': 'string',\n 'vercel.entrypoint': 'string',\n 'vercel.execution_region': 'string',\n 'vercel.id': 'string',\n 'vercel.ja3_digest': 'string',\n 'vercel.ja4_digest': 'string',\n 'vercel.log_type': 'string',\n 'vercel.path': 'string',\n 'vercel.project_id': 'string',\n 'vercel.project_name': 'string',\n 'vercel.proxy.cache_id': 'string',\n 'vercel.proxy.client_ip': 'string',\n 'vercel.proxy.host': 'string',\n 'vercel.proxy.lambda_region': 'string',\n 'vercel.proxy.method': 'string',\n 'vercel.proxy.path': 'string',\n 'vercel.proxy.path_type': 'string',\n 'vercel.proxy.path_type_variant': 'string',\n 'vercel.proxy.referer': 'string',\n 'vercel.proxy.region': 'string',\n 'vercel.proxy.response_byte_size': 'integer',\n 'vercel.proxy.scheme': 'string',\n 'vercel.proxy.status_code': 'integer',\n 'vercel.proxy.timestamp': 'integer',\n 'vercel.proxy.user_agent': 'string[]',\n 'vercel.proxy.vercel_cache': 'string',\n 'vercel.proxy.vercel_id': 'string',\n 'vercel.proxy.waf_action': 'string',\n 'vercel.proxy.waf_rule_id': 'string',\n 'vercel.request_id': 'string',\n 'vercel.source': 'string',\n 'vercel.status_code': 'integer',\n};\n\nexport type AttributeName =\n | typeof AI_CITATIONS\n | typeof AI_COMPLETION_TOKENS_USED\n | typeof AI_DOCUMENTS\n | typeof AI_FINISH_REASON\n | typeof AI_FREQUENCY_PENALTY\n | typeof AI_FUNCTION_CALL\n | typeof AI_GENERATION_ID\n | typeof AI_INPUT_MESSAGES\n | typeof AI_IS_SEARCH_REQUIRED\n | typeof AI_METADATA\n | typeof AI_MODEL_ID\n | typeof AI_MODEL_PROVIDER\n | typeof AI_PIPELINE_NAME\n | typeof AI_PREAMBLE\n | typeof AI_PRESENCE_PENALTY\n | typeof AI_PROMPT_TOKENS_USED\n | typeof AI_RAW_PROMPTING\n | typeof AI_RESPONSES\n | typeof AI_RESPONSE_FORMAT\n | typeof AI_SEARCH_QUERIES\n | typeof AI_SEARCH_RESULTS\n | typeof AI_SEED\n | typeof AI_STREAMING\n | typeof AI_TAGS\n | typeof AI_TEMPERATURE\n | typeof AI_TEXTS\n | typeof AI_TOOLS\n | typeof AI_TOOL_CALLS\n | typeof AI_TOP_K\n | typeof AI_TOP_P\n | typeof AI_TOTAL_COST\n | typeof AI_TOTAL_TOKENS_USED\n | typeof AI_WARNINGS\n | typeof ANGULAR_VERSION\n | typeof APP_APP_BUILD\n | typeof APP_APP_IDENTIFIER\n | typeof APP_APP_NAME\n | typeof APP_APP_START_TIME\n | typeof APP_APP_VERSION\n | typeof APP_BUILD\n | typeof APP_IDENTIFIER\n | typeof APP_IN_FOREGROUND\n | typeof APP_NAME\n | typeof APP_START_COLD\n | typeof APP_START_TIME\n | typeof APP_START_TYPE\n | typeof APP_START_WARM\n | typeof APP_VERSION\n | typeof APP_VITALS_FRAMES_DELAY_VALUE\n | typeof APP_VITALS_FRAMES_FROZEN_COUNT\n | typeof APP_VITALS_FRAMES_SLOW_COUNT\n | typeof APP_VITALS_FRAMES_TOTAL_COUNT\n | typeof APP_VITALS_START_COLD_VALUE\n | typeof APP_VITALS_START_PREWARMED\n | typeof APP_VITALS_START_REASON\n | typeof APP_VITALS_START_SCREEN\n | typeof APP_VITALS_START_TYPE\n | typeof APP_VITALS_START_WARM_VALUE\n | typeof APP_VITALS_TTFD_VALUE\n | typeof APP_VITALS_TTID_VALUE\n | typeof ART_GC_BLOCKING_COUNT\n | typeof ART_GC_BLOCKING_TIME\n | typeof ART_GC_PRE_OOME_COUNT\n | typeof ART_GC_TOTAL_COUNT\n | typeof ART_GC_TOTAL_TIME\n | typeof ART_GC_WAITING_TIME\n | typeof ART_MEMORY_FREE\n | typeof ART_MEMORY_FREE_UNTIL_GC\n | typeof ART_MEMORY_FREE_UNTIL_OOME\n | typeof ART_MEMORY_MAX\n | typeof ART_MEMORY_TOTAL\n | typeof AWS_CLOUDWATCH_LOGS_LOG_GROUP\n | typeof AWS_CLOUDWATCH_LOGS_LOG_STREAM\n | typeof AWS_CLOUDWATCH_LOGS_URL\n | typeof AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS\n | typeof AWS_DYNAMODB_CONSISTENT_READ\n | typeof AWS_DYNAMODB_CONSUMED_CAPACITY\n | typeof AWS_DYNAMODB_COUNT\n | typeof AWS_DYNAMODB_EXCLUSIVE_START_TABLE\n | typeof AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES\n | typeof AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES\n | typeof AWS_DYNAMODB_INDEX_NAME\n | typeof AWS_DYNAMODB_ITEM_COLLECTION_METRICS\n | typeof AWS_DYNAMODB_LIMIT\n | typeof AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES\n | typeof AWS_DYNAMODB_PROJECTION\n | typeof AWS_DYNAMODB_PROVISIONED_READ_CAPACITY\n | typeof AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY\n | typeof AWS_DYNAMODB_SCANNED_COUNT\n | typeof AWS_DYNAMODB_SCAN_FORWARD\n | typeof AWS_DYNAMODB_SEGMENT\n | typeof AWS_DYNAMODB_SELECT\n | typeof AWS_DYNAMODB_TABLE_COUNT\n | typeof AWS_DYNAMODB_TABLE_NAMES\n | typeof AWS_DYNAMODB_TOTAL_SEGMENTS\n | typeof AWS_EXTENDED_REQUEST_ID\n | typeof AWS_KINESIS_STREAM_NAME\n | typeof _AWS_KINESIS_STREAM_NAME\n | typeof AWS_LAMBDA_AWS_REQUEST_ID\n | typeof AWS_LAMBDA_EXECUTION_DURATION_IN_MILLIS\n | typeof AWS_LAMBDA_FUNCTION_NAME\n | typeof AWS_LAMBDA_FUNCTION_VERSION\n | typeof AWS_LAMBDA_INVOKED_ARN\n | typeof AWS_LAMBDA_INVOKED_FUNCTION_ARN\n | typeof AWS_LAMBDA_REMAINING_TIME_IN_MILLIS\n | typeof AWS_LOG_GROUP_NAMES\n | typeof AWS_LOG_STREAM_NAMES\n | typeof AWS_REQUEST_EXTENDED_ID\n | typeof AWS_REQUEST_ID\n | typeof _AWS_REQUEST_ID\n | typeof AWS_S3_BUCKET\n | typeof AWS_SECRETSMANAGER_SECRET_ARN\n | typeof AWS_SNS_TOPIC_ARN\n | typeof AWS_STEP_FUNCTIONS_ACTIVITY_ARN\n | typeof AWS_STEP_FUNCTIONS_STATE_MACHINE_ARN\n | typeof BLOCKED_MAIN_THREAD\n | typeof BROWSER_NAME\n | typeof BROWSER_PERFORMANCE_NAVIGATION_ACTIVATION_START\n | typeof BROWSER_PERFORMANCE_TIME_ORIGIN\n | typeof BROWSER_REPORT_TYPE\n | typeof BROWSER_SCRIPT_INVOKER\n | typeof BROWSER_SCRIPT_INVOKER_TYPE\n | typeof BROWSER_SCRIPT_SOURCE_CHAR_POSITION\n | typeof BROWSER_VERSION\n | typeof BROWSER_WEB_VITAL_CLS_REPORT_EVENT\n | typeof BROWSER_WEB_VITAL_CLS_SOURCE_KEY\n | typeof BROWSER_WEB_VITAL_CLS_VALUE\n | typeof BROWSER_WEB_VITAL_FCP_VALUE\n | typeof BROWSER_WEB_VITAL_FP_VALUE\n | typeof BROWSER_WEB_VITAL_INP_VALUE\n | typeof BROWSER_WEB_VITAL_LCP_ELEMENT\n | typeof BROWSER_WEB_VITAL_LCP_ID\n | typeof BROWSER_WEB_VITAL_LCP_LOAD_TIME\n | typeof BROWSER_WEB_VITAL_LCP_RENDER_TIME\n | typeof BROWSER_WEB_VITAL_LCP_REPORT_EVENT\n | typeof BROWSER_WEB_VITAL_LCP_SIZE\n | typeof BROWSER_WEB_VITAL_LCP_URL\n | typeof BROWSER_WEB_VITAL_LCP_VALUE\n | typeof BROWSER_WEB_VITAL_TTFB_REQUEST_TIME\n | typeof BROWSER_WEB_VITAL_TTFB_VALUE\n | typeof CACHE_HIT\n | typeof CACHE_ITEM_SIZE\n | typeof CACHE_KEY\n | typeof CACHE_OPERATION\n | typeof CACHE_TTL\n | typeof CACHE_WRITE\n | typeof CHANNEL\n | typeof CLIENT_ADDRESS\n | typeof CLIENT_PORT\n | typeof CLOUDFLARE_D1_DURATION\n | typeof CLOUDFLARE_D1_QUERY_TYPE\n | typeof CLOUDFLARE_D1_ROWS_READ\n | typeof CLOUDFLARE_D1_ROWS_WRITTEN\n | typeof CLOUDFLARE_DURABLE_OBJECT_QUERY_BINDINGS\n | typeof CLOUDFLARE_DURABLE_OBJECT_RESPONSE_ROWS_READ\n | typeof CLOUDFLARE_DURABLE_OBJECT_RESPONSE_ROWS_WRITTEN\n | typeof CLOUDFLARE_R2_BUCKET\n | typeof CLOUDFLARE_R2_OPERATION\n | typeof CLOUDFLARE_R2_REQUEST_DELIMITER\n | typeof CLOUDFLARE_R2_REQUEST_KEY\n | typeof CLOUDFLARE_R2_REQUEST_PART_NUMBER\n | typeof CLOUDFLARE_R2_REQUEST_PREFIX\n | typeof CLOUDFLARE_WORKFLOW_ATTEMPT\n | typeof CLOUDFLARE_WORKFLOW_RETRIES_BACKOFF\n | typeof CLOUDFLARE_WORKFLOW_RETRIES_DELAY\n | typeof CLOUDFLARE_WORKFLOW_RETRIES_LIMIT\n | typeof CLOUDFLARE_WORKFLOW_TIMEOUT\n | typeof CLOUD_ACCOUNT_ID\n | typeof CLOUD_AVAILABILITY_ZONE\n | typeof CLOUD_PLATFORM\n | typeof CLOUD_PROVIDER\n | typeof CLOUD_REGION\n | typeof CLOUD_RESOURCE_ID\n | typeof CLS\n | typeof CLS_SOURCE_KEY\n | typeof CODE_FILEPATH\n | typeof CODE_FILE_PATH\n | typeof CODE_FUNCTION\n | typeof CODE_FUNCTION_NAME\n | typeof CODE_LINENO\n | typeof CODE_LINE_NUMBER\n | typeof CODE_NAMESPACE\n | typeof CONNECTIONTYPE\n | typeof CONNECTION_RTT\n | typeof CULTURE_CALENDAR\n | typeof CULTURE_DISPLAY_NAME\n | typeof CULTURE_IS_24_HOUR_FORMAT\n | typeof CULTURE_LOCALE\n | typeof CULTURE_TIMEZONE\n | typeof DB_COLLECTION_NAME\n | typeof DB_DRIVER_NAME\n | typeof DB_NAME\n | typeof DB_NAMESPACE\n | typeof DB_OPERATION\n | typeof DB_OPERATION_BATCH_SIZE\n | typeof DB_OPERATION_NAME\n | typeof DB_QUERY_PARAMETER_KEY\n | typeof DB_QUERY_SUMMARY\n | typeof DB_QUERY_TEXT\n | typeof DB_REDIS_CONNECTION\n | typeof DB_REDIS_KEY\n | typeof DB_REDIS_PARAMETERS\n | typeof DB_RESPONSE_STATUS_CODE\n | typeof DB_SQL_BINDINGS\n | typeof DB_STATEMENT\n | typeof DB_STORED_PROCEDURE_NAME\n | typeof DB_SYSTEM\n | typeof DB_SYSTEM_NAME\n | typeof DB_USER\n | typeof DEVICEMEMORY\n | typeof DEVICE_ARCHS\n | typeof DEVICE_BATTERY_LEVEL\n | typeof DEVICE_BATTERY_TEMPERATURE\n | typeof DEVICE_BOOT_TIME\n | typeof DEVICE_BRAND\n | typeof DEVICE_CHARGING\n | typeof DEVICE_CHIPSET\n | typeof DEVICE_CLASS\n | typeof DEVICE_CONNECTION_TYPE\n | typeof DEVICE_CPU_DESCRIPTION\n | typeof DEVICE_EXTERNAL_FREE_STORAGE\n | typeof DEVICE_EXTERNAL_STORAGE_SIZE\n | typeof DEVICE_FAMILY\n | typeof DEVICE_FREE_MEMORY\n | typeof DEVICE_FREE_STORAGE\n | typeof DEVICE_ID\n | typeof DEVICE_LOCALE\n | typeof DEVICE_LOW_MEMORY\n | typeof DEVICE_LOW_POWER_MODE\n | typeof DEVICE_MANUFACTURER\n | typeof DEVICE_MEMORY_ESTIMATED_CAPACITY\n | typeof DEVICE_MEMORY_SIZE\n | typeof DEVICE_MODEL\n | typeof DEVICE_MODEL_ID\n | typeof DEVICE_NAME\n | typeof DEVICE_ONLINE\n | typeof DEVICE_ORIENTATION\n | typeof DEVICE_PROCESSOR_COUNT\n | typeof DEVICE_PROCESSOR_FREQUENCY\n | typeof DEVICE_SCREEN_DENSITY\n | typeof DEVICE_SCREEN_DPI\n | typeof DEVICE_SCREEN_HEIGHT_PIXELS\n | typeof DEVICE_SCREEN_WIDTH_PIXELS\n | typeof DEVICE_SIMULATOR\n | typeof DEVICE_STORAGE_SIZE\n | typeof DEVICE_THERMAL_STATE\n | typeof DEVICE_TIMEZONE\n | typeof DEVICE_USABLE_MEMORY\n | typeof DIST\n | typeof EFFECTIVECONNECTIONTYPE\n | typeof ENVIRONMENT\n | typeof ERROR_TYPE\n | typeof EVENT_ID\n | typeof EVENT_NAME\n | typeof EXCEPTION_ESCAPED\n | typeof EXCEPTION_MESSAGE\n | typeof EXCEPTION_STACKTRACE\n | typeof EXCEPTION_TYPE\n | typeof FAAS_COLDSTART\n | typeof FAAS_CRON\n | typeof FAAS_DURATION_IN_MS\n | typeof FAAS_ENTRY_POINT\n | typeof FAAS_EXECUTION\n | typeof FAAS_ID\n | typeof FAAS_IDENTITY\n | typeof FAAS_INVOCATION_ID\n | typeof FAAS_INVOKED_NAME\n | typeof FAAS_INVOKED_PROVIDER\n | typeof FAAS_INVOKED_REGION\n | typeof FAAS_NAME\n | typeof FAAS_TIME\n | typeof FAAS_TRIGGER\n | typeof FAAS_VERSION\n | typeof FCP\n | typeof FLAG_EVALUATION_KEY\n | typeof FP\n | typeof FRAMES_DELAY\n | typeof FRAMES_FROZEN\n | typeof FRAMES_FROZEN_RATE\n | typeof FRAMES_SLOW\n | typeof FRAMES_SLOW_RATE\n | typeof FRAMES_TOTAL\n | typeof FS_ERROR\n | typeof GCP_FUNCTION_CONTEXT_EVENT_ID\n | typeof GCP_FUNCTION_CONTEXT_EVENT_TYPE\n | typeof GCP_FUNCTION_CONTEXT_ID\n | typeof GCP_FUNCTION_CONTEXT_RESOURCE\n | typeof GCP_FUNCTION_CONTEXT_SOURCE\n | typeof GCP_FUNCTION_CONTEXT_SPECVERSION\n | typeof GCP_FUNCTION_CONTEXT_TIME\n | typeof GCP_FUNCTION_CONTEXT_TIMESTAMP\n | typeof GCP_FUNCTION_CONTEXT_TYPE\n | typeof GCP_PROJECT_ID\n | typeof GEN_AI_AGENT_NAME\n | typeof GEN_AI_CONTEXT_UTILIZATION\n | typeof GEN_AI_CONTEXT_WINDOW_SIZE\n | typeof GEN_AI_CONVERSATION_ID\n | typeof GEN_AI_COST_CACHE_CREATION_INPUT_TOKENS\n | typeof GEN_AI_COST_CACHE_READ_INPUT_TOKENS\n | typeof GEN_AI_COST_INPUT_TOKENS\n | typeof GEN_AI_COST_OUTPUT_TOKENS\n | typeof GEN_AI_COST_REASONING_OUTPUT_TOKENS\n | typeof GEN_AI_COST_TOTAL_TOKENS\n | typeof GEN_AI_EMBEDDINGS_INPUT\n | typeof GEN_AI_FUNCTION_ID\n | typeof GEN_AI_INPUT_MESSAGES\n | typeof GEN_AI_OPERATION_NAME\n | typeof GEN_AI_OPERATION_TYPE\n | typeof GEN_AI_OUTPUT_MESSAGES\n | typeof GEN_AI_PIPELINE_NAME\n | typeof GEN_AI_PROMPT\n | typeof GEN_AI_PROMPT_NAME\n | typeof GEN_AI_PROVIDER_NAME\n | typeof GEN_AI_REQUEST_AVAILABLE_TOOLS\n | typeof GEN_AI_REQUEST_FREQUENCY_PENALTY\n | typeof GEN_AI_REQUEST_MAX_TOKENS\n | typeof GEN_AI_REQUEST_MESSAGES\n | typeof GEN_AI_REQUEST_MODEL\n | typeof GEN_AI_REQUEST_PRESENCE_PENALTY\n | typeof GEN_AI_REQUEST_REASONING_EFFORT\n | typeof GEN_AI_REQUEST_SEED\n | typeof GEN_AI_REQUEST_STOP_SEQUENCES\n | typeof GEN_AI_REQUEST_TEMPERATURE\n | typeof GEN_AI_REQUEST_TOP_K\n | typeof GEN_AI_REQUEST_TOP_P\n | typeof GEN_AI_RESPONSE_FINISH_REASONS\n | typeof GEN_AI_RESPONSE_ID\n | typeof GEN_AI_RESPONSE_MODEL\n | typeof GEN_AI_RESPONSE_STREAMING\n | typeof GEN_AI_RESPONSE_TEXT\n | typeof GEN_AI_RESPONSE_TIME_TO_FIRST_CHUNK\n | typeof GEN_AI_RESPONSE_TIME_TO_FIRST_TOKEN\n | typeof GEN_AI_RESPONSE_TOKENS_PER_SECOND\n | typeof GEN_AI_RESPONSE_TOOL_CALLS\n | typeof GEN_AI_SYSTEM\n | typeof GEN_AI_SYSTEM_INSTRUCTIONS\n | typeof GEN_AI_SYSTEM_MESSAGE\n | typeof GEN_AI_TOOL_CALL_ARGUMENTS\n | typeof GEN_AI_TOOL_CALL_RESULT\n | typeof GEN_AI_TOOL_DEFINITIONS\n | typeof GEN_AI_TOOL_DESCRIPTION\n | typeof GEN_AI_TOOL_INPUT\n | typeof GEN_AI_TOOL_MESSAGE\n | typeof GEN_AI_TOOL_NAME\n | typeof GEN_AI_TOOL_OUTPUT\n | typeof GEN_AI_TOOL_TYPE\n | typeof GEN_AI_USAGE_CACHE_CREATION_INPUT_TOKENS\n | typeof GEN_AI_USAGE_CACHE_READ_INPUT_TOKENS\n | typeof GEN_AI_USAGE_COMPLETION_TOKENS\n | typeof GEN_AI_USAGE_INPUT_TOKENS\n | typeof GEN_AI_USAGE_INPUT_TOKENS_CACHED\n | typeof GEN_AI_USAGE_INPUT_TOKENS_CACHE_WRITE\n | typeof GEN_AI_USAGE_OUTPUT_TOKENS\n | typeof GEN_AI_USAGE_OUTPUT_TOKENS_REASONING\n | typeof GEN_AI_USAGE_PROMPT_TOKENS\n | typeof GEN_AI_USAGE_REASONING_OUTPUT_TOKENS\n | typeof GEN_AI_USAGE_TOTAL_TOKENS\n | typeof GRAPHQL_DOCUMENT\n | typeof GRAPHQL_OPERATION_NAME\n | typeof GRAPHQL_OPERATION_TYPE\n | typeof HARDWARECONCURRENCY\n | typeof HTTP_CLIENT_IP\n | typeof HTTP_DECODED_RESPONSE_CONTENT_LENGTH\n | typeof HTTP_FLAVOR\n | typeof HTTP_FRAGMENT\n | typeof HTTP_HOST\n | typeof HTTP_METHOD\n | typeof HTTP_QUERY\n | typeof HTTP_REQUEST_BODY_DATA\n | typeof HTTP_REQUEST_CONNECTION_END\n | typeof HTTP_REQUEST_CONNECT_START\n | typeof HTTP_REQUEST_DOMAIN_LOOKUP_END\n | typeof HTTP_REQUEST_DOMAIN_LOOKUP_START\n | typeof HTTP_REQUEST_FETCH_START\n | typeof HTTP_REQUEST_HEADER_KEY\n | typeof HTTP_REQUEST_METHOD\n | typeof _HTTP_REQUEST_METHOD\n | typeof HTTP_REQUEST_REDIRECT_END\n | typeof HTTP_REQUEST_REDIRECT_START\n | typeof HTTP_REQUEST_REQUEST_START\n | typeof HTTP_REQUEST_RESEND_COUNT\n | typeof HTTP_REQUEST_RESPONSE_END\n | typeof HTTP_REQUEST_RESPONSE_START\n | typeof HTTP_REQUEST_SAME_ORIGIN\n | typeof HTTP_REQUEST_SECURE_CONNECTION_START\n | typeof HTTP_REQUEST_TIME_TO_FIRST_BYTE\n | typeof HTTP_REQUEST_WORKER_START\n | typeof HTTP_RESPONSE_BODY_SIZE\n | typeof HTTP_RESPONSE_CONTENT_LENGTH\n | typeof HTTP_RESPONSE_HEADER_CONTENT_LENGTH\n | typeof HTTP_RESPONSE_HEADER_KEY\n | typeof HTTP_RESPONSE_SIZE\n | typeof HTTP_RESPONSE_STATUS_CODE\n | typeof HTTP_RESPONSE_TRANSFER_SIZE\n | typeof HTTP_ROUTE\n | typeof HTTP_SCHEME\n | typeof HTTP_SERVER_NAME\n | typeof HTTP_SERVER_REQUEST_TIME_IN_QUEUE\n | typeof HTTP_STATUS_CODE\n | typeof HTTP_TARGET\n | typeof HTTP_URL\n | typeof HTTP_USER_AGENT\n | typeof ID\n | typeof INP\n | typeof JSONRPC_PROTOCOL_VERSION\n | typeof JSONRPC_REQUEST_ID\n | typeof JVM_GC_ACTION\n | typeof JVM_GC_NAME\n | typeof JVM_MEMORY_POOL_NAME\n | typeof JVM_MEMORY_TYPE\n | typeof JVM_THREAD_DAEMON\n | typeof JVM_THREAD_STATE\n | typeof KOA_NAME\n | typeof KOA_TYPE\n | typeof LCP\n | typeof LCP_ELEMENT\n | typeof LCP_ID\n | typeof LCP_LOADTIME\n | typeof LCP_RENDERTIME\n | typeof LCP_SIZE\n | typeof LCP_URL\n | typeof LOGGER_NAME\n | typeof MCP_CANCELLED_REASON\n | typeof MCP_CANCELLED_REQUEST_ID\n | typeof MCP_CLIENT_NAME\n | typeof MCP_CLIENT_TITLE\n | typeof MCP_CLIENT_VERSION\n | typeof MCP_LIFECYCLE_PHASE\n | typeof MCP_LOGGING_DATA_TYPE\n | typeof MCP_LOGGING_LEVEL\n | typeof MCP_LOGGING_LOGGER\n | typeof MCP_LOGGING_MESSAGE\n | typeof MCP_METHOD_NAME\n | typeof MCP_PROGRESS_CURRENT\n | typeof MCP_PROGRESS_MESSAGE\n | typeof MCP_PROGRESS_PERCENTAGE\n | typeof MCP_PROGRESS_TOKEN\n | typeof MCP_PROGRESS_TOTAL\n | typeof MCP_PROMPT_NAME\n | typeof MCP_PROMPT_RESULT_DESCRIPTION\n | typeof MCP_PROMPT_RESULT_MESSAGE_CONTENT\n | typeof MCP_PROMPT_RESULT_MESSAGE_COUNT\n | typeof MCP_PROMPT_RESULT_MESSAGE_ROLE\n | typeof MCP_PROTOCOL_READY\n | typeof MCP_PROTOCOL_VERSION\n | typeof MCP_REQUEST_ARGUMENT_KEY\n | typeof MCP_REQUEST_ARGUMENT_NAME\n | typeof MCP_REQUEST_ARGUMENT_URI\n | typeof MCP_REQUEST_ID\n | typeof MCP_RESOURCE_PROTOCOL\n | typeof MCP_RESOURCE_URI\n | typeof MCP_SERVER_NAME\n | typeof MCP_SERVER_TITLE\n | typeof MCP_SERVER_VERSION\n | typeof MCP_SESSION_ID\n | typeof MCP_TOOL_NAME\n | typeof MCP_TOOL_RESULT_CONTENT\n | typeof MCP_TOOL_RESULT_CONTENT_COUNT\n | typeof MCP_TOOL_RESULT_IS_ERROR\n | typeof MCP_TRANSPORT\n | typeof MDC_KEY\n | typeof MESSAGING_BATCH_MESSAGE_COUNT\n | typeof MESSAGING_DESTINATION\n | typeof MESSAGING_DESTINATION_CONNECTION\n | typeof MESSAGING_DESTINATION_NAME\n | typeof MESSAGING_MESSAGE_BODY_SIZE\n | typeof MESSAGING_MESSAGE_CONVERSATION_ID\n | typeof MESSAGING_MESSAGE_ENVELOPE_SIZE\n | typeof MESSAGING_MESSAGE_ID\n | typeof MESSAGING_MESSAGE_RECEIVE_LATENCY\n | typeof MESSAGING_MESSAGE_RETRY_COUNT\n | typeof MESSAGING_OPERATION_NAME\n | typeof MESSAGING_OPERATION_TYPE\n | typeof MESSAGING_RABBITMQ_DESTINATION_ROUTING_KEY\n | typeof MESSAGING_SYSTEM\n | typeof METHOD\n | typeof MIDDLEWARE_NAME\n | typeof NAVIGATION_ORIGIN\n | typeof NAVIGATION_ROUTE_ID\n | typeof NAVIGATION_TYPE\n | typeof NEL_ELAPSED_TIME\n | typeof NEL_PHASE\n | typeof NEL_REFERRER\n | typeof NEL_SAMPLING_FUNCTION\n | typeof NEL_TYPE\n | typeof NETWORK_CONNECTION_EFFECTIVE_TYPE\n | typeof NETWORK_CONNECTION_RTT\n | typeof NETWORK_CONNECTION_TYPE\n | typeof NETWORK_LOCAL_ADDRESS\n | typeof NETWORK_LOCAL_PORT\n | typeof NETWORK_PEER_ADDRESS\n | typeof NETWORK_PEER_PORT\n | typeof NETWORK_PROTOCOL_NAME\n | typeof NETWORK_PROTOCOL_VERSION\n | typeof NETWORK_TRANSPORT\n | typeof NETWORK_TYPE\n | typeof NET_HOST_IP\n | typeof NET_HOST_NAME\n | typeof NET_HOST_PORT\n | typeof NET_PEER_IP\n | typeof NET_PEER_NAME\n | typeof NET_PEER_PORT\n | typeof NET_PROTOCOL_NAME\n | typeof NET_PROTOCOL_VERSION\n | typeof NET_SOCK_FAMILY\n | typeof NET_SOCK_HOST_ADDR\n | typeof NET_SOCK_HOST_PORT\n | typeof NET_SOCK_PEER_ADDR\n | typeof NET_SOCK_PEER_NAME\n | typeof NET_SOCK_PEER_PORT\n | typeof NET_TRANSPORT\n | typeof OS_BUILD\n | typeof OS_BUILD_ID\n | typeof OS_DESCRIPTION\n | typeof OS_KERNEL_VERSION\n | typeof OS_NAME\n | typeof OS_RAW_DESCRIPTION\n | typeof OS_ROOTED\n | typeof OS_THEME\n | typeof OS_TYPE\n | typeof OS_VERSION\n | typeof OTEL_KIND\n | typeof OTEL_SCOPE_NAME\n | typeof OTEL_SCOPE_VERSION\n | typeof OTEL_STATUS_CODE\n | typeof OTEL_STATUS_DESCRIPTION\n | typeof PARAMS_KEY\n | typeof PERFORMANCE_ACTIVATIONSTART\n | typeof PERFORMANCE_TIMEORIGIN\n | typeof PREVIOUS_ROUTE\n | typeof PROCESS_COMMAND_ARGS\n | typeof PROCESS_EXECUTABLE_NAME\n | typeof PROCESS_PID\n | typeof PROCESS_RUNTIME_DESCRIPTION\n | typeof PROCESS_RUNTIME_ENGINE_NAME\n | typeof PROCESS_RUNTIME_ENGINE_VERSION\n | typeof PROCESS_RUNTIME_NAME\n | typeof PROCESS_RUNTIME_VERSION\n | typeof QUERY_KEY\n | typeof REACT_VERSION\n | typeof RELEASE\n | typeof REMIX_ACTION_FORM_DATA_KEY\n | typeof REPLAY_ID\n | typeof RESOURCE_DEPLOYMENT_ENVIRONMENT\n | typeof RESOURCE_DEPLOYMENT_ENVIRONMENT_NAME\n | typeof RESOURCE_RENDER_BLOCKING_STATUS\n | typeof ROUTE\n | typeof RPC_GRPC_STATUS_CODE\n | typeof RPC_METHOD\n | typeof RPC_RESPONSE_STATUS_CODE\n | typeof RPC_SERVICE\n | typeof RPC_SYSTEM\n | typeof RPC_SYSTEM_NAME\n | typeof RUNTIME_BUILD\n | typeof RUNTIME_NAME\n | typeof RUNTIME_RAW_DESCRIPTION\n | typeof RUNTIME_VERSION\n | typeof SCORE_KEY\n | typeof SCORE_RATIO_KEY\n | typeof SCORE_TOTAL\n | typeof SCORE_WEIGHT_KEY\n | typeof SENTRY_ACTION\n | typeof SENTRY_BROWSER_NAME\n | typeof SENTRY_BROWSER_VERSION\n | typeof SENTRY_CANCELLATION_REASON\n | typeof SENTRY_CATEGORY\n | typeof SENTRY_CLIENT_SAMPLE_RATE\n | typeof SENTRY_DESCRIPTION\n | typeof SENTRY_DIST\n | typeof SENTRY_DOMAIN\n | typeof SENTRY_DSC_ENVIRONMENT\n | typeof SENTRY_DSC_PROJECT_ID\n | typeof SENTRY_DSC_PUBLIC_KEY\n | typeof SENTRY_DSC_RELEASE\n | typeof SENTRY_DSC_SAMPLED\n | typeof SENTRY_DSC_SAMPLE_RATE\n | typeof SENTRY_DSC_TRACE_ID\n | typeof SENTRY_DSC_TRANSACTION\n | typeof SENTRY_ENVIRONMENT\n | typeof SENTRY_EXCLUSIVE_TIME\n | typeof SENTRY_GRAPHQL_OPERATION\n | typeof SENTRY_GROUP\n | typeof SENTRY_HTTP_PREFETCH\n | typeof SENTRY_IDLE_SPAN_FINISH_REASON\n | typeof SENTRY_IS_REMOTE\n | typeof SENTRY_KIND\n | typeof SENTRY_MAIN_THREAD\n | typeof SENTRY_MESSAGE_PARAMETER_KEY\n | typeof SENTRY_MESSAGE_TEMPLATE\n | typeof SENTRY_METRIC_SOURCE\n | typeof SENTRY_MOBILE\n | typeof SENTRY_MODULE_KEY\n | typeof SENTRY_NEXTJS_SSR_FUNCTION_ROUTE\n | typeof SENTRY_NEXTJS_SSR_FUNCTION_TYPE\n | typeof SENTRY_NORMALIZED_DB_QUERY\n | typeof SENTRY_NORMALIZED_DB_QUERY_HASH\n | typeof SENTRY_NORMALIZED_DESCRIPTION\n | typeof SENTRY_OBSERVED_TIMESTAMP_NANOS\n | typeof SENTRY_OP\n | typeof SENTRY_ORIGIN\n | typeof SENTRY_PLATFORM\n | typeof SENTRY_PROFILER_ID\n | typeof SENTRY_PROFILE_ID\n | typeof SENTRY_RELEASE\n | typeof SENTRY_REPLAY_ID\n | typeof SENTRY_REPLAY_IS_BUFFERING\n | typeof SENTRY_REPORT_EVENT\n | typeof SENTRY_SDK_INTEGRATIONS\n | typeof SENTRY_SDK_NAME\n | typeof SENTRY_SDK_VERSION\n | typeof SENTRY_SEGMENT_ID\n | typeof _SENTRY_SEGMENT_ID\n | typeof SENTRY_SEGMENT_NAME\n | typeof SENTRY_SERVER_SAMPLE_RATE\n | typeof SENTRY_SOURCE\n | typeof SENTRY_SPAN_SOURCE\n | typeof SENTRY_STATUS\n | typeof SENTRY_STATUS_CODE\n | typeof SENTRY_STATUS_MESSAGE\n | typeof SENTRY_SVELTEKIT_NAVIGATION_FROM\n | typeof SENTRY_SVELTEKIT_NAVIGATION_TO\n | typeof SENTRY_SVELTEKIT_NAVIGATION_TYPE\n | typeof SENTRY_THREAD_ID\n | typeof SENTRY_TIMESTAMP_SEQUENCE\n | typeof SENTRY_TRACE_LIFECYCLE\n | typeof SENTRY_TRACE_PARENT_SPAN_ID\n | typeof SENTRY_TRACE_STATUS\n | typeof SENTRY_TRANSACTION\n | typeof SENTRY_USER_EMAIL\n | typeof SENTRY_USER_GEO_CITY\n | typeof SENTRY_USER_GEO_COUNTRY_CODE\n | typeof SENTRY_USER_GEO_REGION\n | typeof SENTRY_USER_GEO_SUBDIVISION\n | typeof SENTRY_USER_ID\n | typeof SENTRY_USER_IP\n | typeof SENTRY_USER_USERNAME\n | typeof SERVER_ADDRESS\n | typeof SERVER_NAME\n | typeof SERVER_PORT\n | typeof SERVICE_NAME\n | typeof SERVICE_VERSION\n | typeof SESSION_ID\n | typeof STALL_PERCENTAGE\n | typeof STALL_TOTAL_TIME\n | typeof STATE_TYPE\n | typeof THREAD_ID\n | typeof THREAD_NAME\n | typeof TIMBER_TAG\n | typeof TIME_TO_FULL_DISPLAY\n | typeof TIME_TO_INITIAL_DISPLAY\n | typeof TRANSACTION\n | typeof TRPC_PROCEDURE_PATH\n | typeof TRPC_PROCEDURE_TYPE\n | typeof TTFB\n | typeof TTFB_REQUESTTIME\n | typeof TYPE\n | typeof UI_COMPONENT_NAME\n | typeof UI_CONTRIBUTES_TO_TTFD\n | typeof UI_CONTRIBUTES_TO_TTID\n | typeof UI_ELEMENT_HEIGHT\n | typeof UI_ELEMENT_ID\n | typeof UI_ELEMENT_IDENTIFIER\n | typeof UI_ELEMENT_LOAD_TIME\n | typeof UI_ELEMENT_PAINT_TYPE\n | typeof UI_ELEMENT_RENDER_TIME\n | typeof UI_ELEMENT_TYPE\n | typeof UI_ELEMENT_URL\n | typeof UI_ELEMENT_WIDTH\n | typeof URL\n | typeof URL_DOMAIN\n | typeof URL_FRAGMENT\n | typeof URL_FULL\n | typeof URL_PATH\n | typeof URL_PATH_PARAMETER_KEY\n | typeof URL_PORT\n | typeof URL_QUERY\n | typeof URL_SAME_ORIGIN\n | typeof URL_SCHEME\n | typeof URL_TEMPLATE\n | typeof USER_AGENT_ORIGINAL\n | typeof USER_EMAIL\n | typeof USER_FULL_NAME\n | typeof USER_GEO_CITY\n | typeof USER_GEO_COUNTRY_CODE\n | typeof USER_GEO_REGION\n | typeof USER_GEO_SUBDIVISION\n | typeof USER_HASH\n | typeof USER_ID\n | typeof USER_IP_ADDRESS\n | typeof USER_NAME\n | typeof USER_ROLES\n | typeof VERCEL_BRANCH\n | typeof VERCEL_BUILD_ID\n | typeof VERCEL_DEPLOYMENT_ID\n | typeof VERCEL_DESTINATION\n | typeof VERCEL_EDGE_TYPE\n | typeof VERCEL_ENTRYPOINT\n | typeof VERCEL_EXECUTION_REGION\n | typeof VERCEL_ID\n | typeof VERCEL_JA3_DIGEST\n | typeof VERCEL_JA4_DIGEST\n | typeof VERCEL_LOG_TYPE\n | typeof VERCEL_PATH\n | typeof VERCEL_PROJECT_ID\n | typeof VERCEL_PROJECT_NAME\n | typeof VERCEL_PROXY_CACHE_ID\n | typeof VERCEL_PROXY_CLIENT_IP\n | typeof VERCEL_PROXY_HOST\n | typeof VERCEL_PROXY_LAMBDA_REGION\n | typeof VERCEL_PROXY_METHOD\n | typeof VERCEL_PROXY_PATH\n | typeof VERCEL_PROXY_PATH_TYPE\n | typeof VERCEL_PROXY_PATH_TYPE_VARIANT\n | typeof VERCEL_PROXY_REFERER\n | typeof VERCEL_PROXY_REGION\n | typeof VERCEL_PROXY_RESPONSE_BYTE_SIZE\n | typeof VERCEL_PROXY_SCHEME\n | typeof VERCEL_PROXY_STATUS_CODE\n | typeof VERCEL_PROXY_TIMESTAMP\n | typeof VERCEL_PROXY_USER_AGENT\n | typeof VERCEL_PROXY_VERCEL_CACHE\n | typeof VERCEL_PROXY_VERCEL_ID\n | typeof VERCEL_PROXY_WAF_ACTION\n | typeof VERCEL_PROXY_WAF_RULE_ID\n | typeof VERCEL_REQUEST_ID\n | typeof VERCEL_SOURCE\n | typeof VERCEL_STATUS_CODE;\n\nexport const ATTRIBUTE_METADATA: Record = {\n 'ai.citations': {\n brief: 'References or sources cited by the AI model in its response.',\n type: 'string[]',\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: false,\n visibility: 'public',\n example: ['Citation 1', 'Citation 2'],\n deprecation: {},\n changelog: [\n { version: '0.5.0', prs: [264] },\n { version: '0.1.0', prs: [55] },\n ],\n },\n 'ai.completion_tokens.used': {\n brief: 'The number of tokens used to respond to the message.',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 10,\n deprecation: {\n replacement: 'gen_ai.usage.output_tokens',\n },\n aliases: ['gen_ai.usage.output_tokens', 'gen_ai.usage.completion_tokens'],\n changelog: [{ version: '0.4.0', prs: [228] }, { version: '0.1.0', prs: [57, 61] }, { version: '0.0.0' }],\n },\n 'ai.documents': {\n brief: 'Documents or content chunks used as context for the AI model.',\n type: 'string[]',\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: false,\n visibility: 'public',\n example: ['document1.txt', 'document2.pdf'],\n deprecation: {},\n changelog: [\n { version: '0.5.0', prs: [264] },\n { version: '0.1.0', prs: [55] },\n ],\n },\n 'ai.finish_reason': {\n brief: 'The reason why the model stopped generating.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'COMPLETE',\n deprecation: {\n replacement: 'gen_ai.response.finish_reasons',\n },\n aliases: ['gen_ai.response.finish_reasons'],\n changelog: [{ version: '0.1.0', prs: [55, 57, 61, 108, 127] }],\n },\n 'ai.frequency_penalty': {\n brief:\n '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.',\n type: 'double',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 0.5,\n deprecation: {\n replacement: 'gen_ai.request.frequency_penalty',\n },\n aliases: ['gen_ai.request.frequency_penalty'],\n changelog: [\n { version: '0.4.0', prs: [228] },\n { version: '0.1.0', prs: [55, 57, 61, 108] },\n ],\n },\n 'ai.function_call': {\n brief:\n 'For an AI model call, the function that was called. This is deprecated for OpenAI, and replaced by tool_calls',\n type: 'string',\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'function_name',\n deprecation: {\n replacement: 'gen_ai.tool.name',\n },\n aliases: ['gen_ai.tool.name', 'mcp.tool.name'],\n changelog: [{ version: '0.1.0', prs: [55, 57, 61, 108] }],\n },\n 'ai.generation_id': {\n brief: 'Unique identifier for the completion.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'gen_123abc',\n deprecation: {\n replacement: 'gen_ai.response.id',\n },\n aliases: ['gen_ai.response.id'],\n changelog: [{ version: '0.1.0', prs: [55, 57, 61, 108, 127] }],\n },\n 'ai.input_messages': {\n brief: 'The input messages sent to the model',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: '[{\"role\": \"user\", \"message\": \"hello\"}]',\n deprecation: {\n replacement: 'gen_ai.input.messages',\n },\n aliases: ['gen_ai.request.messages'],\n changelog: [{ version: '0.1.0', prs: [65, 119] }, { version: '0.0.0' }],\n },\n 'ai.is_search_required': {\n brief: 'Boolean indicating if the model needs to perform a search.',\n type: 'boolean',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: false,\n deprecation: {},\n changelog: [\n { version: '0.5.0', prs: [264] },\n { version: '0.1.0', prs: [55] },\n ],\n },\n 'ai.metadata': {\n brief: 'Extra metadata passed to an AI pipeline step.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: '{\"user_id\": 123, \"session_id\": \"abc123\"}',\n deprecation: {},\n changelog: [\n { version: '0.5.0', prs: [264] },\n { version: '0.1.0', prs: [55, 127] },\n ],\n },\n 'ai.model_id': {\n brief: 'The vendor-specific ID of the model used.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'gpt-4',\n deprecation: {\n replacement: 'gen_ai.response.model',\n },\n aliases: ['gen_ai.response.model'],\n changelog: [{ version: '0.1.0', prs: [57, 61, 127] }, { version: '0.0.0' }],\n },\n 'ai.model.provider': {\n brief: 'The provider of the model.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'openai',\n deprecation: {\n replacement: 'gen_ai.provider.name',\n },\n aliases: ['gen_ai.provider.name', 'gen_ai.system'],\n changelog: [\n { version: '0.4.0', prs: [253] },\n { version: '0.1.0', prs: [57, 61, 108, 127] },\n ],\n },\n 'ai.pipeline.name': {\n brief: 'The name of the AI pipeline.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'Autofix Pipeline',\n deprecation: {\n replacement: 'gen_ai.pipeline.name',\n },\n aliases: ['gen_ai.pipeline.name'],\n changelog: [{ version: '0.1.0', prs: [53, 76, 108, 127] }],\n },\n 'ai.preamble': {\n brief:\n \"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.\",\n type: 'string',\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'You are now a clown.',\n deprecation: {\n replacement: 'gen_ai.system_instructions',\n },\n aliases: ['gen_ai.system_instructions'],\n changelog: [\n { version: '0.5.0', prs: [264] },\n { version: '0.1.0', prs: [55] },\n ],\n },\n 'ai.presence_penalty': {\n brief:\n '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.',\n type: 'double',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 0.5,\n deprecation: {\n replacement: 'gen_ai.request.presence_penalty',\n },\n aliases: ['gen_ai.request.presence_penalty'],\n changelog: [\n { version: '0.4.0', prs: [228] },\n { version: '0.1.0', prs: [55, 57, 61, 108] },\n ],\n },\n 'ai.prompt_tokens.used': {\n brief: 'The number of tokens used to process just the prompt.',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 20,\n deprecation: {\n replacement: 'gen_ai.usage.input_tokens',\n },\n aliases: ['gen_ai.usage.prompt_tokens', 'gen_ai.usage.input_tokens'],\n changelog: [{ version: '0.4.0', prs: [228] }, { version: '0.1.0', prs: [57, 61] }, { version: '0.0.0' }],\n },\n 'ai.raw_prompting': {\n brief: 'When enabled, the user\u2019s prompt will be sent to the model without any pre-processing.',\n type: 'boolean',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: true,\n deprecation: {},\n changelog: [\n { version: '0.5.0', prs: [264] },\n { version: '0.1.0', prs: [55] },\n ],\n },\n 'ai.responses': {\n brief: 'The response messages sent back by the AI model.',\n type: 'string[]',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: ['hello', 'world'],\n deprecation: {\n replacement: 'gen_ai.output.messages',\n },\n changelog: [{ version: '0.1.0', prs: [65, 127] }, { version: '0.0.0' }],\n },\n 'ai.response_format': {\n brief: 'For an AI model call, the format of the response',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'json_object',\n deprecation: {},\n changelog: [\n { version: '0.5.0', prs: [264] },\n { version: '0.1.0', prs: [55, 127] },\n ],\n },\n 'ai.search_queries': {\n brief: 'Queries used to search for relevant context or documents.',\n type: 'string[]',\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: false,\n visibility: 'public',\n example: ['climate change effects', 'renewable energy'],\n deprecation: {},\n changelog: [\n { version: '0.5.0', prs: [264] },\n { version: '0.1.0', prs: [55] },\n ],\n },\n 'ai.search_results': {\n brief: 'Results returned from search queries for context.',\n type: 'string[]',\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: false,\n visibility: 'public',\n example: ['search_result_1, search_result_2'],\n deprecation: {},\n changelog: [\n { version: '0.5.0', prs: [264] },\n { version: '0.1.0', prs: [55] },\n ],\n },\n 'ai.seed': {\n brief: 'The seed, ideally models given the same seed and same other parameters will produce the exact same output.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: '1234567890',\n deprecation: {\n replacement: 'gen_ai.request.seed',\n },\n aliases: ['gen_ai.request.seed'],\n changelog: [{ version: '0.1.0', prs: [55, 57, 61, 108, 127] }],\n },\n 'ai.streaming': {\n brief: 'Whether the request was streamed back.',\n type: 'boolean',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: true,\n deprecation: {\n replacement: 'gen_ai.response.streaming',\n },\n aliases: ['gen_ai.response.streaming'],\n changelog: [{ version: '0.1.0', prs: [76, 108] }, { version: '0.0.0' }],\n },\n 'ai.tags': {\n brief: 'Tags that describe an AI pipeline step.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: '{\"executed_function\": \"add_integers\"}',\n deprecation: {},\n changelog: [\n { version: '0.5.0', prs: [264] },\n { version: '0.1.0', prs: [55, 127] },\n ],\n },\n 'ai.temperature': {\n brief:\n 'For an AI model call, the temperature parameter. Temperature essentially means how random the output will be.',\n type: 'double',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 0.1,\n deprecation: {\n replacement: 'gen_ai.request.temperature',\n },\n aliases: ['gen_ai.request.temperature'],\n changelog: [\n { version: '0.4.0', prs: [228] },\n { version: '0.1.0', prs: [55, 57, 61, 108] },\n ],\n },\n 'ai.texts': {\n brief: 'Raw text inputs provided to the model.',\n type: 'string[]',\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: false,\n visibility: 'public',\n example: ['Hello, how are you?', 'What is the capital of France?'],\n deprecation: {\n replacement: 'gen_ai.input.messages',\n },\n aliases: ['gen_ai.input.messages'],\n changelog: [\n { version: '0.5.0', prs: [264] },\n { version: '0.1.0', prs: [55] },\n ],\n },\n 'ai.tools': {\n brief: 'For an AI model call, the functions that are available',\n type: 'string[]',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: ['function_1', 'function_2'],\n deprecation: {\n replacement: 'gen_ai.tool.definitions',\n },\n changelog: [{ version: '0.1.0', prs: [55, 65, 127] }],\n },\n 'ai.tool_calls': {\n brief: 'For an AI model call, the tool calls that were made.',\n type: 'string[]',\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: false,\n visibility: 'public',\n example: ['tool_call_1', 'tool_call_2'],\n deprecation: {\n replacement: 'gen_ai.output.messages',\n },\n changelog: [{ version: '0.1.0', prs: [55, 65] }],\n },\n 'ai.top_k': {\n brief:\n '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).',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 35,\n deprecation: {\n replacement: 'gen_ai.request.top_k',\n },\n aliases: ['gen_ai.request.top_k'],\n changelog: [\n { version: '0.4.0', prs: [228] },\n { version: '0.1.0', prs: [55, 57, 61, 108] },\n ],\n },\n 'ai.top_p': {\n brief:\n '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).',\n type: 'double',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 0.7,\n deprecation: {\n replacement: 'gen_ai.request.top_p',\n },\n aliases: ['gen_ai.request.top_p'],\n changelog: [\n { version: '0.4.0', prs: [228] },\n { version: '0.1.0', prs: [55, 57, 61, 108] },\n ],\n },\n 'ai.total_cost': {\n brief: 'The total cost for the tokens used.',\n type: 'double',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 12.34,\n deprecation: {\n replacement: 'gen_ai.cost.total_tokens',\n },\n aliases: ['gen_ai.cost.total_tokens'],\n changelog: [\n { version: '0.5.0', prs: [264] },\n { version: '0.4.0', prs: [228] },\n { version: '0.1.0', prs: [53] },\n ],\n },\n 'ai.total_tokens.used': {\n brief: 'The total number of tokens used to process the prompt.',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 30,\n deprecation: {\n replacement: 'gen_ai.usage.total_tokens',\n },\n aliases: ['gen_ai.usage.total_tokens'],\n changelog: [{ version: '0.4.0', prs: [228] }, { version: '0.1.0', prs: [57, 61, 108] }, { version: '0.0.0' }],\n },\n 'ai.warnings': {\n brief: 'Warning messages generated during model execution.',\n type: 'string[]',\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: false,\n visibility: 'public',\n example: ['Token limit exceeded'],\n deprecation: {},\n changelog: [\n { version: '0.5.0', prs: [264] },\n { version: '0.1.0', prs: [55] },\n ],\n },\n 'angular.version': {\n brief: 'The version of the Angular framework',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: '17.1.0',\n changelog: [{ version: '0.7.0', prs: [367], description: 'Added angular.version attribute' }],\n },\n 'app.app_build': {\n brief: 'Internal build identifier, as it appears on the platform.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: '1',\n deprecation: {\n replacement: 'app.build',\n reason: 'Deprecated in favor of app.build',\n },\n aliases: ['app.build'],\n changelog: [\n { version: '0.5.0', prs: [296], description: 'Added and deprecated app.app_build in favor of app.build' },\n ],\n },\n 'app.app_identifier': {\n brief: 'Version-independent application identifier, often a dotted bundle ID.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'com.example.myapp',\n deprecation: {\n replacement: 'app.identifier',\n reason: 'Deprecated in favor of app.identifier',\n },\n aliases: ['app.identifier'],\n changelog: [\n {\n version: '0.5.0',\n prs: [296],\n description: 'Added and deprecated app.app_identifier in favor of app.identifier',\n },\n ],\n },\n 'app.app_name': {\n brief: 'Human readable application name, as it appears on the platform.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'My App',\n deprecation: {\n replacement: 'app.name',\n reason: 'Deprecated in favor of app.name',\n },\n aliases: ['app.name'],\n changelog: [\n { version: '0.5.0', prs: [296], description: 'Added and deprecated app.app_name in favor of app.name' },\n ],\n },\n 'app.app_start_time': {\n brief: 'Formatted UTC timestamp when the user started the application.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: '2025-01-01T00:00:00.000Z',\n deprecation: {\n replacement: 'app.start_time',\n reason: 'Deprecated in favor of app.start_time',\n },\n aliases: ['app.start_time'],\n changelog: [\n {\n version: '0.5.0',\n prs: [296],\n description: 'Added and deprecated app.app_start_time in favor of app.start_time',\n },\n ],\n },\n 'app.app_version': {\n brief: 'Human readable application version, as it appears on the platform.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: '1.0.0',\n deprecation: {\n replacement: 'app.version',\n reason: 'Deprecated in favor of app.version',\n },\n aliases: ['app.version'],\n changelog: [\n { version: '0.5.0', prs: [296], description: 'Added and deprecated app.app_version in favor of app.version' },\n ],\n },\n 'app.build': {\n brief: 'Internal build identifier, as it appears on the platform.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: '1',\n aliases: ['app.app_build'],\n changelog: [{ version: '0.5.0', prs: [296], description: 'Added app.build attribute' }],\n },\n 'app.identifier': {\n brief: 'Version-independent application identifier, often a dotted bundle ID.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'com.example.myapp',\n aliases: ['app.app_identifier'],\n changelog: [{ version: '0.5.0', prs: [296], description: 'Added app.identifier attribute' }],\n },\n 'app.in_foreground': {\n brief: 'Whether the application is currently in the foreground.',\n type: 'boolean',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: true,\n changelog: [{ version: '0.5.0', prs: [296], description: 'Added app.in_foreground attribute' }],\n },\n 'app.name': {\n brief: 'Human readable application name, as it appears on the platform.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'My App',\n aliases: ['app.app_name'],\n changelog: [{ version: '0.5.0', prs: [296], description: 'Added app.name attribute' }],\n },\n app_start_cold: {\n brief: 'The duration of a cold app start in milliseconds',\n type: 'double',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 1234.56,\n deprecation: {\n replacement: 'app.vitals.start.cold.value',\n reason:\n 'Replaced by app.vitals.start.cold.value to align with the app.vitals.* namespace for mobile performance attributes',\n },\n aliases: ['app.vitals.start.cold.value'],\n changelog: [\n { version: '0.5.0', prs: [323], description: 'Added and deprecated in favor of app.vitals.start.cold.value' },\n ],\n },\n 'app.start_time': {\n brief: 'Formatted UTC timestamp when the user started the application.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: '2025-01-01T00:00:00.000Z',\n aliases: ['app.app_start_time'],\n changelog: [{ version: '0.5.0', prs: [296], description: 'Added app.start_time attribute' }],\n },\n app_start_type: {\n brief: 'Mobile app start variant. Either cold or warm.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'cold',\n deprecation: {\n replacement: 'app.vitals.start.type',\n reason:\n 'Replaced by app.vitals.start.type to align with the app.vitals.* namespace for mobile performance attributes',\n },\n aliases: ['app.vitals.start.type'],\n changelog: [\n { version: '0.5.0', prs: [313], description: 'Deprecated in favor of app.vitals.start.type' },\n { version: '0.1.0', prs: [127] },\n { version: '0.0.0' },\n ],\n },\n app_start_warm: {\n brief: 'The duration of a warm app start in milliseconds',\n type: 'double',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 1234.56,\n deprecation: {\n replacement: 'app.vitals.start.warm.value',\n reason:\n 'Replaced by app.vitals.start.warm.value to align with the app.vitals.* namespace for mobile performance attributes',\n },\n aliases: ['app.vitals.start.warm.value'],\n changelog: [\n { version: '0.5.0', prs: [323], description: 'Added and deprecated in favor of app.vitals.start.warm.value' },\n ],\n },\n 'app.version': {\n brief: 'Human readable application version, as it appears on the platform.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: '1.0.0',\n aliases: ['app.app_version'],\n changelog: [{ version: '0.5.0', prs: [296], description: 'Added app.version attribute' }],\n },\n 'app.vitals.frames.delay.value': {\n brief:\n '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/).',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 5,\n aliases: ['frames.delay'],\n changelog: [\n { version: '0.5.0', prs: [313], description: 'Added app.vitals.frames.delay.value to replace frames.delay' },\n ],\n },\n 'app.vitals.frames.frozen.count': {\n brief: 'The number of frozen frames rendered during the lifetime of the span.',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 3,\n aliases: ['frames.frozen'],\n changelog: [\n { version: '0.5.0', prs: [313], description: 'Added app.vitals.frames.frozen.count to replace frames.frozen' },\n ],\n },\n 'app.vitals.frames.slow.count': {\n brief: 'The number of slow frames rendered during the lifetime of the span.',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 1,\n aliases: ['frames.slow'],\n changelog: [\n { version: '0.5.0', prs: [313], description: 'Added app.vitals.frames.slow.count to replace frames.slow' },\n ],\n },\n 'app.vitals.frames.total.count': {\n brief: 'The number of total frames rendered during the lifetime of the span.',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 60,\n aliases: ['frames.total'],\n changelog: [\n { version: '0.5.0', prs: [313], description: 'Added app.vitals.frames.total.count to replace frames.total' },\n ],\n },\n 'app.vitals.start.cold.value': {\n brief: 'The duration of a cold app start in milliseconds',\n type: 'double',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 1234.56,\n aliases: ['app_start_cold'],\n changelog: [{ version: '0.5.0', prs: [313], description: 'Added app.vitals.start.cold.value attribute' }],\n },\n 'app.vitals.start.prewarmed': {\n brief: 'Whether the app start was prewarmed.',\n type: 'boolean',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: true,\n changelog: [{ version: '0.11.0', prs: [379], description: 'Added app.vitals.start.prewarmed attribute' }],\n },\n 'app.vitals.start.reason': {\n brief: 'The reason that triggered the app start.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'push',\n changelog: [{ version: '0.7.0', prs: [353], description: 'Added app.vitals.start.reason attribute' }],\n },\n 'app.vitals.start.screen': {\n brief:\n '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.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'MainActivity',\n changelog: [{ version: '0.7.0', prs: [353], description: 'Added app.vitals.start.screen attribute' }],\n },\n 'app.vitals.start.type': {\n brief: 'The type of app start, for example `cold` or `warm`',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'cold',\n aliases: ['app_start_type'],\n changelog: [{ version: '0.5.0', prs: [313], description: 'Added app.vitals.start.type attribute' }],\n },\n 'app.vitals.start.warm.value': {\n brief: 'The duration of a warm app start in milliseconds',\n type: 'double',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 1234.56,\n aliases: ['app_start_warm'],\n changelog: [{ version: '0.5.0', prs: [313], description: 'Added app.vitals.start.warm.value attribute' }],\n },\n 'app.vitals.ttfd.value': {\n brief: 'The duration of time to full display in milliseconds',\n type: 'double',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 1234.56,\n aliases: ['time_to_full_display'],\n changelog: [{ version: '0.5.0', prs: [313], description: 'Added app.vitals.ttfd.value attribute' }],\n },\n 'app.vitals.ttid.value': {\n brief: 'The duration of time to initial display in milliseconds',\n type: 'double',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 1234.56,\n aliases: ['time_to_initial_display'],\n changelog: [{ version: '0.5.0', prs: [313], description: 'Added app.vitals.ttid.value attribute' }],\n },\n 'art.gc.blocking_count': {\n brief: 'Total number of blocking (stop-the-world) garbage collections performed by the Android Runtime',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 1,\n changelog: [{ version: '0.11.0', prs: [382], description: 'Added art.gc.blocking_count attribute' }],\n },\n 'art.gc.blocking_time': {\n brief: 'Total time spent in blocking (stop-the-world) garbage collections by the Android Runtime, in milliseconds',\n type: 'double',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 11.873,\n changelog: [{ version: '0.11.0', prs: [382], description: 'Added art.gc.blocking_time attribute' }],\n },\n 'art.gc.pre_oome_count': {\n brief:\n 'Total number of garbage collections triggered as a last resort before an OutOfMemoryError by the Android Runtime',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 0,\n changelog: [{ version: '0.11.0', prs: [382], description: 'Added art.gc.pre_oome_count attribute' }],\n },\n 'art.gc.total_count': {\n brief: 'Total number of garbage collections performed by the Android Runtime',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 1,\n changelog: [{ version: '0.11.0', prs: [382], description: 'Added art.gc.total_count attribute' }],\n },\n 'art.gc.total_time': {\n brief: 'Total time spent in garbage collection by the Android Runtime, in milliseconds',\n type: 'double',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 11.807,\n changelog: [{ version: '0.11.0', prs: [382], description: 'Added art.gc.total_time attribute' }],\n },\n 'art.gc.waiting_time': {\n brief:\n 'Total time threads spent waiting for garbage collection to complete in the Android Runtime, in milliseconds',\n type: 'double',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 8.054,\n changelog: [{ version: '0.11.0', prs: [382], description: 'Added art.gc.waiting_time attribute' }],\n },\n 'art.memory.free': {\n brief: 'Free memory available to the process as reported by the Android Runtime, in bytes',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 3181568,\n changelog: [{ version: '0.11.0', prs: [382], description: 'Added art.memory.free attribute' }],\n },\n 'art.memory.free_until_gc': {\n brief: 'Free memory available before a garbage collection would be triggered by the Android Runtime, in bytes',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 3181568,\n changelog: [{ version: '0.11.0', prs: [382], description: 'Added art.memory.free_until_gc attribute' }],\n },\n 'art.memory.free_until_oome': {\n brief: 'Free memory available before an OutOfMemoryError would be thrown by the Android Runtime, in bytes',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 196083712,\n changelog: [{ version: '0.11.0', prs: [382], description: 'Added art.memory.free_until_oome attribute' }],\n },\n 'art.memory.max': {\n brief: 'Maximum memory the process is allowed to use as reported by the Android Runtime, in bytes',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 201326592,\n changelog: [{ version: '0.11.0', prs: [382], description: 'Added art.memory.max attribute' }],\n },\n 'art.memory.total': {\n brief: 'Total memory currently allocated to the process by the Android Runtime, in bytes',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 7774208,\n changelog: [{ version: '0.11.0', prs: [382], description: 'Added art.memory.total attribute' }],\n },\n 'aws.cloudwatch.logs.log_group': {\n brief: 'The name of the CloudWatch Logs log group',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: '/aws/lambda/my-function',\n changelog: [{ version: '0.7.0', prs: [369], description: 'Added aws.cloudwatch.logs.log_group attribute' }],\n },\n 'aws.cloudwatch.logs.log_stream': {\n brief: 'The name of the CloudWatch Logs log stream',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: '2024/01/01/[$LATEST]abcdef1234567890',\n changelog: [{ version: '0.7.0', prs: [369], description: 'Added aws.cloudwatch.logs.log_stream attribute' }],\n },\n 'aws.cloudwatch.logs.url': {\n brief: 'The URL to the CloudWatch Logs log group',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'https://console.aws.amazon.com/cloudwatch/home?region=us-east-1#logsV2:log-groups/log-group/my-log-group',\n changelog: [{ version: '0.7.0', prs: [369], description: 'Added aws.cloudwatch.logs.url attribute' }],\n },\n 'aws.dynamodb.attribute_definitions': {\n brief: 'The JSON-serialized value of each item in the `AttributeDefinitions` request field.',\n type: 'string[]',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: ['{ \"AttributeName\": \"string\", \"AttributeType\": \"string\" }'],\n changelog: [{ version: '0.16.0', prs: [479], description: 'Added aws.dynamodb.attribute_definitions attribute' }],\n },\n 'aws.dynamodb.consistent_read': {\n brief: 'The value of the `ConsistentRead` request parameter.',\n type: 'boolean',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: true,\n changelog: [{ version: '0.16.0', prs: [479], description: 'Added aws.dynamodb.consistent_read attribute' }],\n },\n 'aws.dynamodb.consumed_capacity': {\n brief: 'The JSON-serialized value of each item in the `ConsumedCapacity` response field.',\n type: 'string[]',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: [\n '{ \"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 }',\n ],\n changelog: [{ version: '0.16.0', prs: [479], description: 'Added aws.dynamodb.consumed_capacity attribute' }],\n },\n 'aws.dynamodb.count': {\n brief: 'The value of the `Count` response parameter.',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 10,\n changelog: [{ version: '0.16.0', prs: [479], description: 'Added aws.dynamodb.count attribute' }],\n },\n 'aws.dynamodb.exclusive_start_table': {\n brief: 'The value of the `ExclusiveStartTableName` request parameter.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'Users',\n changelog: [{ version: '0.16.0', prs: [479], description: 'Added aws.dynamodb.exclusive_start_table attribute' }],\n },\n 'aws.dynamodb.global_secondary_indexes': {\n brief: 'The JSON-serialized value of each item of the `GlobalSecondaryIndexes` request field.',\n type: 'string[]',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: [\n '{ \"IndexName\": \"string\", \"KeySchema\": [ { \"AttributeName\": \"string\", \"KeyType\": \"string\" } ], \"Projection\": { \"NonKeyAttributes\": [ \"string\" ], \"ProjectionType\": \"string\" }, \"ProvisionedThroughput\": { \"ReadCapacityUnits\": number, \"WriteCapacityUnits\": number } }',\n ],\n changelog: [\n { version: '0.16.0', prs: [479], description: 'Added aws.dynamodb.global_secondary_indexes attribute' },\n ],\n },\n 'aws.dynamodb.global_secondary_index_updates': {\n brief: 'The JSON-serialized value of each item in the `GlobalSecondaryIndexUpdates` request field.',\n type: 'string[]',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: [\n '{ \"Create\": { \"IndexName\": \"string\", \"KeySchema\": [ { \"AttributeName\": \"string\", \"KeyType\": \"string\" } ], \"Projection\": { \"NonKeyAttributes\": [ \"string\" ], \"ProjectionType\": \"string\" }, \"ProvisionedThroughput\": { \"ReadCapacityUnits\": number, \"WriteCapacityUnits\": number } }',\n ],\n changelog: [\n { version: '0.16.0', prs: [479], description: 'Added aws.dynamodb.global_secondary_index_updates attribute' },\n ],\n },\n 'aws.dynamodb.index_name': {\n brief: 'The value of the `IndexName` request parameter.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'name_to_group',\n changelog: [{ version: '0.16.0', prs: [479], description: 'Added aws.dynamodb.index_name attribute' }],\n },\n 'aws.dynamodb.item_collection_metrics': {\n brief: 'The JSON-serialized value of the `ItemCollectionMetrics` response field.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example:\n '{ \"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 ] } ] }',\n changelog: [{ version: '0.16.0', prs: [479], description: 'Added aws.dynamodb.item_collection_metrics attribute' }],\n },\n 'aws.dynamodb.limit': {\n brief: 'The value of the `Limit` request parameter.',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 10,\n changelog: [{ version: '0.16.0', prs: [479], description: 'Added aws.dynamodb.limit attribute' }],\n },\n 'aws.dynamodb.local_secondary_indexes': {\n brief: 'The JSON-serialized value of each item of the `LocalSecondaryIndexes` request field.',\n type: 'string[]',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: [\n '{ \"IndexArn\": \"string\", \"IndexName\": \"string\", \"IndexSizeBytes\": number, \"ItemCount\": number, \"KeySchema\": [ { \"AttributeName\": \"string\", \"KeyType\": \"string\" } ], \"Projection\": { \"NonKeyAttributes\": [ \"string\" ], \"ProjectionType\": \"string\" } }',\n ],\n changelog: [{ version: '0.16.0', prs: [479], description: 'Added aws.dynamodb.local_secondary_indexes attribute' }],\n },\n 'aws.dynamodb.projection': {\n brief: 'The value of the `ProjectionExpression` request parameter.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'Title, Price, Color',\n changelog: [{ version: '0.16.0', prs: [479], description: 'Added aws.dynamodb.projection attribute' }],\n },\n 'aws.dynamodb.provisioned_read_capacity': {\n brief: 'The value of the `ProvisionedThroughput.ReadCapacityUnits` request parameter.',\n type: 'double',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 1,\n changelog: [\n { version: '0.16.0', prs: [479], description: 'Added aws.dynamodb.provisioned_read_capacity attribute' },\n ],\n },\n 'aws.dynamodb.provisioned_write_capacity': {\n brief: 'The value of the `ProvisionedThroughput.WriteCapacityUnits` request parameter.',\n type: 'double',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 2,\n changelog: [\n { version: '0.16.0', prs: [479], description: 'Added aws.dynamodb.provisioned_write_capacity attribute' },\n ],\n },\n 'aws.dynamodb.scanned_count': {\n brief: 'The value of the `ScannedCount` response parameter.',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 50,\n changelog: [{ version: '0.16.0', prs: [479], description: 'Added aws.dynamodb.scanned_count attribute' }],\n },\n 'aws.dynamodb.scan_forward': {\n brief: 'The value of the `ScanIndexForward` request parameter.',\n type: 'boolean',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: true,\n changelog: [{ version: '0.16.0', prs: [479], description: 'Added aws.dynamodb.scan_forward attribute' }],\n },\n 'aws.dynamodb.segment': {\n brief: 'The value of the `Segment` request parameter.',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 10,\n changelog: [{ version: '0.16.0', prs: [479], description: 'Added aws.dynamodb.segment attribute' }],\n },\n 'aws.dynamodb.select': {\n brief: 'The value of the `Select` request parameter.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'ALL_ATTRIBUTES',\n changelog: [{ version: '0.16.0', prs: [479], description: 'Added aws.dynamodb.select attribute' }],\n },\n 'aws.dynamodb.table_count': {\n brief: 'The number of items in the `TableNames` response parameter.',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 20,\n changelog: [{ version: '0.16.0', prs: [479], description: 'Added aws.dynamodb.table_count attribute' }],\n },\n 'aws.dynamodb.table_names': {\n brief: 'The keys in the `RequestItems` object field.',\n type: 'string[]',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: ['Users', 'Cats'],\n changelog: [{ version: '0.16.0', prs: [479], description: 'Added aws.dynamodb.table_names attribute' }],\n },\n 'aws.dynamodb.total_segments': {\n brief: 'The value of the `TotalSegments` request parameter.',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 100,\n changelog: [{ version: '0.16.0', prs: [479], description: 'Added aws.dynamodb.total_segments attribute' }],\n },\n 'aws.extended_request_id': {\n brief: 'The AWS extended request ID as returned in the response headers.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'wzHcyEWfmOGDIE5QOhTAqFDoDWP3y8IUvpNINCwL9N4TEHbUw0/gZJ+VZTmCNCWR7fezEN3eCiQ=',\n aliases: ['aws.request.extended_id'],\n changelog: [{ version: '0.16.0', prs: [480], description: 'Added aws.extended_request_id attribute' }],\n },\n 'aws.kinesis.stream_name': {\n brief: 'The name of the AWS Kinesis stream the request refers to.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'some-stream-name',\n aliases: ['aws.kinesis.stream.name'],\n changelog: [{ version: '0.16.0', prs: [480], description: 'Added aws.kinesis.stream_name attribute' }],\n },\n 'aws.kinesis.stream.name': {\n brief: 'The name of the AWS Kinesis stream the request refers to.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'some-stream-name',\n deprecation: {\n replacement: 'aws.kinesis.stream_name',\n reason:\n 'This attribute is being deprecated in favor of aws.kinesis.stream_name, which is the OTel-aligned replacement.',\n },\n aliases: ['aws.kinesis.stream_name'],\n changelog: [\n {\n version: '0.16.0',\n prs: [480],\n description: 'Added aws.kinesis.stream.name attribute, deprecated in favor of aws.kinesis.stream_name',\n },\n ],\n },\n 'aws.lambda.aws_request_id': {\n brief: 'The AWS request ID as received by the Lambda function runtime',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: '8476a536-e9f4-11e8-9739-2dfe598c3fcd',\n deprecation: {\n replacement: 'faas.invocation_id',\n reason: 'This attribute is being deprecated in favor of faas.invocation_id',\n },\n aliases: ['faas.invocation_id', 'faas.execution'],\n changelog: [\n { version: '0.16.0', prs: [473], description: 'Added faas.execution as an alias' },\n {\n version: '0.11.1',\n prs: [414, 424],\n description: 'Deprecated aws.lambda.aws_request_id in favor of faas.invocation_id',\n },\n { version: '0.7.0', prs: [369], description: 'Added aws.lambda.aws_request_id attribute' },\n ],\n },\n 'aws.lambda.execution_duration_in_millis': {\n brief: 'The execution duration of the Lambda function invocation in milliseconds',\n type: 'double',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 1234.56,\n changelog: [\n { version: '0.7.0', prs: [369], description: 'Added aws.lambda.execution_duration_in_millis attribute' },\n ],\n },\n 'aws.lambda.function_name': {\n brief: 'The name of the Lambda function',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'my-function',\n deprecation: {\n replacement: 'faas.name',\n reason: 'Use the OTel-aligned faas.name attribute instead',\n },\n aliases: ['faas.name'],\n changelog: [\n { version: '0.11.1', prs: [414], description: 'Deprecated aws.lambda.function_name in favor of faas.name' },\n { version: '0.7.0', prs: [369], description: 'Added aws.lambda.function_name attribute' },\n ],\n },\n 'aws.lambda.function_version': {\n brief: 'The version of the Lambda function',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: '$LATEST',\n deprecation: {\n replacement: 'faas.version',\n reason: 'Use the OTel-aligned faas.version attribute instead',\n },\n aliases: ['faas.version'],\n changelog: [\n {\n version: '0.11.1',\n prs: [414, 424],\n description: 'Deprecated aws.lambda.function_version in favor of faas.version',\n },\n { version: '0.7.0', prs: [369], description: 'Added aws.lambda.function_version attribute' },\n ],\n },\n 'aws.lambda.invoked_arn': {\n brief: 'The full ARN of the Lambda function that was invoked',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'arn:aws:lambda:us-east-1:123456789012:function:my-function',\n aliases: ['aws.lambda.invoked_function_arn'],\n changelog: [{ version: '0.11.1', prs: [414] }],\n },\n 'aws.lambda.invoked_function_arn': {\n brief: 'The full ARN of the Lambda function that was invoked',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'arn:aws:lambda:us-east-1:123456789012:function:my-function',\n deprecation: {\n replacement: 'aws.lambda.invoked_arn',\n reason: 'This attribute is being deprecated in favor of aws.lambda.invoked_arn',\n },\n aliases: ['aws.lambda.invoked_arn'],\n changelog: [\n {\n version: '0.11.1',\n prs: [414],\n description: 'Deprecated aws.lambda.invoked_function_arn in favor of aws.lambda.invoked_arn',\n },\n { version: '0.7.0', prs: [369], description: 'Added aws.lambda.invoked_function_arn attribute' },\n ],\n },\n 'aws.lambda.remaining_time_in_millis': {\n brief: 'The remaining time in milliseconds before the Lambda function times out',\n type: 'double',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 5000,\n changelog: [{ version: '0.7.0', prs: [369], description: 'Added aws.lambda.remaining_time_in_millis attribute' }],\n },\n 'aws.log.group.names': {\n brief: 'The name(s) of the AWS log group(s) an application is writing to.',\n type: 'string[]',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: ['/aws/lambda/my-function', 'opentelemetry-service'],\n changelog: [{ version: '0.11.1', prs: [414] }],\n },\n 'aws.log.stream.names': {\n brief: 'The name(s) of the AWS log stream(s) an application is writing to.',\n type: 'string[]',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: ['logs/main/10838bed-421f-43ef-870a-f43feacbbb5b'],\n changelog: [{ version: '0.11.1', prs: [414] }],\n },\n 'aws.request.extended_id': {\n brief: 'The AWS extended request ID as returned in the response headers.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'wzHcyEWfmOGDIE5QOhTAqFDoDWP3y8IUvpNINCwL9N4TEHbUw0/gZJ+VZTmCNCWR7fezEN3eCiQ=',\n deprecation: {\n replacement: 'aws.extended_request_id',\n reason:\n 'This attribute is being deprecated in favor of aws.extended_request_id, which is the OTel-aligned replacement.',\n },\n aliases: ['aws.extended_request_id'],\n changelog: [\n {\n version: '0.16.0',\n prs: [480],\n description: 'Added aws.request.extended_id attribute, deprecated in favor of aws.extended_request_id',\n },\n ],\n },\n 'aws.request_id': {\n brief: 'The AWS request ID as returned in the response headers.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: '79b9da39-b7ae-508a-a6bc-864b2829c622',\n aliases: ['aws.request.id'],\n changelog: [{ version: '0.16.0', prs: [480], description: 'Added aws.request_id attribute' }],\n },\n 'aws.request.id': {\n brief: 'The AWS request ID as returned in the response headers.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: '79b9da39-b7ae-508a-a6bc-864b2829c622',\n deprecation: {\n replacement: 'aws.request_id',\n reason: 'This attribute is being deprecated in favor of aws.request_id, which is the OTel-aligned replacement.',\n },\n aliases: ['aws.request_id'],\n changelog: [\n {\n version: '0.16.0',\n prs: [480],\n description: 'Added aws.request.id attribute, deprecated in favor of aws.request_id',\n },\n ],\n },\n 'aws.s3.bucket': {\n brief: 'The S3 bucket name the request refers to.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'ot-demo-test',\n changelog: [{ version: '0.16.0', prs: [480], description: 'Added aws.s3.bucket attribute' }],\n },\n 'aws.secretsmanager.secret.arn': {\n brief: 'The ARN of the Secret stored in Secrets Manager.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'arn:aws:secretsmanager:us-east-1:123456789012:secret:SecretName-6RandomCharacters',\n changelog: [{ version: '0.16.0', prs: [480], description: 'Added aws.secretsmanager.secret.arn attribute' }],\n },\n 'aws.sns.topic.arn': {\n brief:\n 'The ARN of the AWS SNS Topic. An Amazon SNS topic is a logical access point that acts as a communication channel.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'arn:aws:sns:us-east-1:123456789012:mystack-mytopic-NZJ5JSMVGFIE',\n changelog: [{ version: '0.16.0', prs: [480], description: 'Added aws.sns.topic.arn attribute' }],\n },\n 'aws.step_functions.activity.arn': {\n brief: 'The ARN of the AWS Step Functions Activity.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'arn:aws:states:us-east-1:123456789012:activity:get-greeting',\n changelog: [{ version: '0.16.0', prs: [480], description: 'Added aws.step_functions.activity.arn attribute' }],\n },\n 'aws.step_functions.state_machine.arn': {\n brief: 'The ARN of the AWS Step Functions State Machine.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'arn:aws:states:us-east-1:123456789012:stateMachine:myStateMachine:1',\n changelog: [{ version: '0.16.0', prs: [480], description: 'Added aws.step_functions.state_machine.arn attribute' }],\n },\n blocked_main_thread: {\n brief: 'Whether the main thread was blocked by the span.',\n type: 'boolean',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: true,\n changelog: [{ version: '0.0.0' }],\n },\n 'browser.name': {\n brief: 'The name of the browser.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'Chrome',\n aliases: ['sentry.browser.name'],\n changelog: [{ version: '0.1.0', prs: [127, 139] }, { version: '0.0.0' }],\n },\n 'browser.performance.navigation.activation_start': {\n brief: 'The time between initiating a navigation to a page and the browser activating the page',\n type: 'double',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 1.983,\n aliases: ['performance.activationStart'],\n changelog: [\n { version: '0.5.0', prs: [321], description: 'Added browser.performance.navigation.activation_start attribute' },\n ],\n },\n 'browser.performance.time_origin': {\n brief: \"The browser's performance.timeOrigin timestamp representing the time when the pageload was initiated\",\n type: 'double',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 1776185678.886,\n aliases: ['performance.timeOrigin'],\n changelog: [\n { version: '0.5.0', prs: [321], description: 'Added browser.performance.time_origin attribute attribute' },\n ],\n },\n 'browser.report.type': {\n brief: 'A browser report sent via reporting API..',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'network-error',\n changelog: [{ version: '0.1.0', prs: [68, 127] }],\n },\n 'browser.script.invoker': {\n brief: 'How a script was called in the browser.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'Window.requestAnimationFrame',\n changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n },\n 'browser.script.invoker_type': {\n brief: 'Browser script entry point type.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'event-listener',\n changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n },\n 'browser.script.source_char_position': {\n brief: 'A number representing the script character position of the script.',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 678,\n changelog: [{ version: '0.4.0', prs: [228] }, { version: '0.0.0' }],\n },\n 'browser.version': {\n brief: 'The version of the browser.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: '120.0.6099.130',\n aliases: ['sentry.browser.version'],\n changelog: [{ version: '0.1.0', prs: [59, 127, 139] }],\n },\n 'browser.web_vital.cls.report_event': {\n brief: 'The event that caused the SDK to report CLS (pagehide or navigation)',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'navigation',\n changelog: [{ version: '0.5.0', prs: [319], description: 'Added browser.web_vital.cls.report_event attribute' }],\n },\n 'browser.web_vital.cls.source.': {\n brief: 'The HTML elements or components responsible for the layout shift. is a numeric index from 1 to N',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n hasDynamicSuffix: true,\n example: 'body > div#app',\n aliases: ['cls.source.'],\n changelog: [{ version: '0.5.0', prs: [234] }],\n },\n 'browser.web_vital.cls.value': {\n brief: 'The value of the recorded Cumulative Layout Shift (CLS) web vital',\n type: 'double',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 0.2361,\n aliases: ['cls'],\n changelog: [{ version: '0.5.0', prs: [229], description: 'Added browser.web_vital.cls.value attribute' }],\n },\n 'browser.web_vital.fcp.value': {\n brief: 'The time it takes for the browser to render the first piece of meaningful content on the screen',\n type: 'double',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 547.6951,\n aliases: ['fcp'],\n changelog: [{ version: '0.5.0', prs: [235] }],\n },\n 'browser.web_vital.fp.value': {\n brief: 'The time in milliseconds it takes for the browser to render the first pixel on the screen',\n type: 'double',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 477.1926,\n aliases: ['fp'],\n changelog: [{ version: '0.5.0', prs: [235] }],\n },\n 'browser.web_vital.inp.value': {\n brief: 'The value of the recorded Interaction to Next Paint (INP) web vital',\n type: 'double',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 200,\n aliases: ['inp'],\n changelog: [{ version: '0.5.0', prs: [229], description: 'Added browser.web_vital.inp.value attribute' }],\n },\n 'browser.web_vital.lcp.element': {\n brief: 'The HTML element selector or component name for which LCP was reported',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'body > div#app > div#container > div',\n aliases: ['lcp.element'],\n changelog: [{ version: '0.5.0', prs: [233] }],\n },\n 'browser.web_vital.lcp.id': {\n brief: 'The id of the dom element responsible for the largest contentful paint',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: '#gero',\n aliases: ['lcp.id'],\n changelog: [{ version: '0.5.0', prs: [233] }],\n },\n 'browser.web_vital.lcp.load_time': {\n brief: 'The time it took for the LCP element to be loaded',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 1402,\n aliases: ['lcp.loadTime'],\n changelog: [{ version: '0.5.0', prs: [233] }],\n },\n 'browser.web_vital.lcp.render_time': {\n brief: 'The time it took for the LCP element to be rendered',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 1685,\n aliases: ['lcp.renderTime'],\n changelog: [{ version: '0.5.0', prs: [233] }],\n },\n 'browser.web_vital.lcp.report_event': {\n brief: 'The event that caused the SDK to report LCP (pagehide or navigation)',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'pagehide',\n changelog: [{ version: '0.5.0', prs: [319], description: 'Added browser.web_vital.lcp.report_event attribute' }],\n },\n 'browser.web_vital.lcp.size': {\n brief: 'The size of the largest contentful paint element',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 1024,\n aliases: ['lcp.size'],\n changelog: [{ version: '0.5.0', prs: [233] }],\n },\n 'browser.web_vital.lcp.url': {\n brief: 'The url of the dom element responsible for the largest contentful paint',\n type: 'string',\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'https://example.com/static/img.png',\n aliases: ['lcp.url'],\n changelog: [{ version: '0.5.0', prs: [233] }],\n },\n 'browser.web_vital.lcp.value': {\n brief: 'The value of the recorded Largest Contentful Paint (LCP) web vital',\n type: 'double',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 2500,\n aliases: ['lcp'],\n changelog: [{ version: '0.5.0', prs: [229], description: 'Added browser.web_vital.lcp.value attribute' }],\n },\n 'browser.web_vital.ttfb.request_time': {\n brief:\n \"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\",\n type: 'double',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 1554.5814,\n aliases: ['ttfb.requestTime'],\n changelog: [{ version: '0.5.0', prs: [235] }],\n },\n 'browser.web_vital.ttfb.value': {\n brief: 'The value of the recorded Time To First Byte (TTFB) web vital in Milliseconds',\n type: 'double',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 194.3322,\n aliases: ['ttfb'],\n changelog: [{ version: '0.5.0', prs: [235] }],\n },\n 'cache.hit': {\n brief: 'If the cache was hit during this span.',\n type: 'boolean',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: true,\n changelog: [{ version: '0.0.0' }],\n },\n 'cache.item_size': {\n brief: 'The size of the requested item in the cache. In bytes.',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 58,\n changelog: [{ version: '0.4.0', prs: [228] }, { version: '0.0.0' }],\n },\n 'cache.key': {\n brief: 'The key of the cache accessed.',\n type: 'string[]',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: ['my-cache-key', 'my-other-cache-key'],\n changelog: [{ version: '0.0.0' }],\n },\n 'cache.operation': {\n brief: 'The operation being performed on the cache.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'get',\n changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n },\n 'cache.ttl': {\n brief: 'The ttl of the cache in seconds',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 120,\n changelog: [{ version: '0.4.0', prs: [228] }, { version: '0.0.0' }],\n },\n 'cache.write': {\n brief: 'If the cache operation resulted in a write to the cache.',\n type: 'boolean',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: true,\n changelog: [{ version: '0.5.0' }],\n },\n channel: {\n brief: 'The channel name that is being used.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'mail',\n changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n },\n 'client.address': {\n brief:\n 'Client address - domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name.',\n type: 'string',\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'example.com',\n aliases: ['http.client_ip'],\n changelog: [{ version: '0.1.0', prs: [106, 127] }, { version: '0.0.0' }],\n },\n 'client.port': {\n brief: 'Client port number.',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 5432,\n changelog: [{ version: '0.4.0', prs: [228] }, { version: '0.0.0' }],\n },\n 'cloudflare.d1.duration': {\n brief: 'The duration of a Cloudflare D1 operation.',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 543,\n changelog: [{ version: '0.4.0', prs: [228] }, { version: '0.0.0' }],\n },\n 'cloudflare.d1.query_type': {\n brief: 'The type of query executed in a Cloudflare D1 operation',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'run',\n deprecation: {\n replacement: 'db.operation.name',\n },\n aliases: ['db.operation.name', 'db.operation'],\n changelog: [{ version: '0.11.0', prs: [392], description: 'Added cloudflare.d1.query_type attribute' }],\n },\n 'cloudflare.d1.rows_read': {\n brief: 'The number of rows read in a Cloudflare D1 operation.',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 12,\n changelog: [{ version: '0.4.0', prs: [228] }, { version: '0.0.0' }],\n },\n 'cloudflare.d1.rows_written': {\n brief: 'The number of rows written in a Cloudflare D1 operation.',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 12,\n changelog: [{ version: '0.4.0', prs: [228] }, { version: '0.0.0' }],\n },\n 'cloudflare.durable_object.query.bindings': {\n brief: 'The number of bound parameters passed to the SQL exec call.',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 2,\n changelog: [\n { version: '0.13.0', prs: [435], description: 'Added cloudflare.durable_object.query.bindings attribute' },\n ],\n },\n 'cloudflare.durable_object.response.rows_read': {\n brief: 'The number of rows read by a Cloudflare Durable Object SQL operation.',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 12,\n changelog: [\n { version: '0.13.0', prs: [435], description: 'Added cloudflare.durable_object.response.rows_read attribute' },\n ],\n },\n 'cloudflare.durable_object.response.rows_written': {\n brief: 'The number of rows written by a Cloudflare Durable Object SQL operation.',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 1,\n changelog: [\n { version: '0.13.0', prs: [435], description: 'Added cloudflare.durable_object.response.rows_written attribute' },\n ],\n },\n 'cloudflare.r2.bucket': {\n brief: 'The name of the Cloudflare R2 bucket binding',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'MY_BUCKET',\n changelog: [{ version: '0.11.1', prs: [413], description: 'Added cloudflare.r2.bucket attribute' }],\n },\n 'cloudflare.r2.operation': {\n brief: 'The R2 API operation being performed',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'GetObject',\n changelog: [{ version: '0.11.1', prs: [413], description: 'Added cloudflare.r2.operation attribute' }],\n },\n 'cloudflare.r2.request.delimiter': {\n brief: 'The delimiter used to group objects in an R2 list operation',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: '/',\n changelog: [{ version: '0.11.1', prs: [413], description: 'Added cloudflare.r2.request.delimiter attribute' }],\n },\n 'cloudflare.r2.request.key': {\n brief: 'The object key used in the R2 operation',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'my-file.txt',\n changelog: [{ version: '0.11.1', prs: [413], description: 'Added cloudflare.r2.request.key attribute' }],\n },\n 'cloudflare.r2.request.part_number': {\n brief: 'The part number in a multipart upload operation',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 1,\n changelog: [{ version: '0.11.1', prs: [413], description: 'Added cloudflare.r2.request.part_number attribute' }],\n },\n 'cloudflare.r2.request.prefix': {\n brief: 'The prefix used to filter objects in an R2 list operation',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'images/',\n changelog: [{ version: '0.11.1', prs: [413], description: 'Added cloudflare.r2.request.prefix attribute' }],\n },\n 'cloudflare.workflow.attempt': {\n brief: 'The current attempt number for a Cloudflare Workflow step',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 1,\n changelog: [{ version: '0.11.0', prs: [392], description: 'Added cloudflare.workflow.attempt attribute' }],\n },\n 'cloudflare.workflow.retries.backoff': {\n brief: 'The backoff strategy for Cloudflare Workflow step retries',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'exponential',\n changelog: [{ version: '0.11.0', prs: [392], description: 'Added cloudflare.workflow.retries.backoff attribute' }],\n },\n 'cloudflare.workflow.retries.delay': {\n brief: 'The delay between Cloudflare Workflow step retries',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: '5 seconds',\n changelog: [{ version: '0.11.0', prs: [392], description: 'Added cloudflare.workflow.retries.delay attribute' }],\n },\n 'cloudflare.workflow.retries.limit': {\n brief: 'The maximum number of retries for a Cloudflare Workflow step',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 3,\n changelog: [{ version: '0.11.0', prs: [392], description: 'Added cloudflare.workflow.retries.limit attribute' }],\n },\n 'cloudflare.workflow.timeout': {\n brief: 'The timeout duration for a Cloudflare Workflow step',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: '1 minute',\n changelog: [{ version: '0.11.0', prs: [392], description: 'Added cloudflare.workflow.timeout attribute' }],\n },\n 'cloud.account.id': {\n brief: 'The cloud account ID the resource is assigned to',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: '123456789012',\n changelog: [{ version: '0.7.0', prs: [364], description: 'Added cloud.account.id attribute' }],\n },\n 'cloud.availability_zone': {\n brief: 'Cloud regions often have multiple, isolated locations known as zones to increase availability',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'us-east-1c',\n changelog: [{ version: '0.7.0', prs: [364], description: 'Added cloud.availability_zone attribute' }],\n },\n 'cloud.platform': {\n brief: 'The cloud platform in use',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'aws_lambda',\n changelog: [{ version: '0.7.0', prs: [364], description: 'Added cloud.platform attribute' }],\n },\n 'cloud.provider': {\n brief: 'Name of the cloud provider',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'aws',\n changelog: [{ version: '0.7.0', prs: [364], description: 'Added cloud.provider attribute' }],\n },\n 'cloud.region': {\n brief: 'The geographical region the resource is running',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'us-east-1',\n changelog: [{ version: '0.7.0', prs: [364], description: 'Added cloud.region attribute' }],\n },\n 'cloud.resource_id': {\n brief: 'Cloud provider-specific native identifier of the monitored cloud resource',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'arn:aws:lambda:REGION:ACCOUNT_ID:function:my-function',\n aliases: ['faas.id'],\n changelog: [\n { version: '0.16.0', prs: [475], description: 'Added faas.id as an alias' },\n { version: '0.11.1', prs: [414] },\n ],\n additionalContext: [\n '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.',\n ],\n },\n cls: {\n brief: 'The value of the recorded Cumulative Layout Shift (CLS) web vital',\n type: 'double',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 0.2361,\n deprecation: {\n replacement: 'browser.web_vital.cls.value',\n reason: 'The CLS web vital is now recorded as a browser.web_vital.cls.value attribute.',\n },\n aliases: ['browser.web_vital.cls.value'],\n changelog: [\n {\n version: '0.5.0',\n prs: [229],\n description: \"Added and deprecated attribute to document JS SDK's current behaviour\",\n },\n ],\n },\n 'cls.source.': {\n brief: 'The HTML elements or components responsible for the layout shift. is a numeric index from 1 to N',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n hasDynamicSuffix: true,\n example: 'body > div#app',\n deprecation: {\n replacement: 'browser.web_vital.cls.source.',\n reason: 'The CLS source is now recorded as a browser.web_vital.cls.source. attribute.',\n },\n aliases: ['browser.web_vital.cls.source.'],\n changelog: [{ version: '0.5.0', prs: [234] }],\n },\n 'code.filepath': {\n brief:\n 'The source code file name that identifies the code unit as uniquely as possible (preferably an absolute file path).',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: '/app/myapplication/http/handler/server.py',\n deprecation: {\n replacement: 'code.file.path',\n },\n aliases: ['code.file.path'],\n changelog: [{ version: '0.1.0', prs: [61] }, { version: '0.0.0' }],\n },\n 'code.file.path': {\n brief:\n 'The source code file name that identifies the code unit as uniquely as possible (preferably an absolute file path).',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: '/app/myapplication/http/handler/server.py',\n aliases: ['code.filepath'],\n changelog: [{ version: '0.0.0' }],\n },\n 'code.function': {\n brief: \"The method or function name, or equivalent (usually rightmost part of the code unit's name).\",\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'server_request',\n aliases: ['code.function.name'],\n changelog: [{ version: '0.1.0', prs: [61, 74] }, { version: '0.0.0' }],\n },\n 'code.function.name': {\n brief: 'The method or function fully-qualified name without arguments.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'server_request',\n aliases: ['code.function'],\n changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n },\n 'code.lineno': {\n brief:\n 'The line number in code.filepath best representing the operation. It SHOULD point within the code unit named in code.function',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 42,\n deprecation: {\n replacement: 'code.line.number',\n },\n aliases: ['code.line.number'],\n changelog: [{ version: '0.4.0', prs: [228] }, { version: '0.1.0', prs: [61, 108] }, { version: '0.0.0' }],\n },\n 'code.line.number': {\n brief:\n 'The line number in code.filepath best representing the operation. It SHOULD point within the code unit named in code.function',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 42,\n aliases: ['code.lineno'],\n changelog: [{ version: '0.4.0', prs: [228] }, { version: '0.0.0' }],\n },\n 'code.namespace': {\n brief:\n \"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.\",\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'http.handler',\n changelog: [{ version: '0.1.0', prs: [61, 74] }, { version: '0.0.0' }],\n },\n connectionType: {\n brief: 'Specifies the type of the current connection (e.g. wifi, ethernet, cellular , etc).',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'wifi',\n deprecation: {\n replacement: 'network.connection.type',\n reason: 'Old namespace-less attribute, to be replaced with network.connection.type for span-first future',\n },\n aliases: ['network.connection.type', 'device.connection_type'],\n changelog: [\n {\n version: '0.5.0',\n prs: [279],\n description: \"Added and deprecated attribute to document JS SDK's current behaviour\",\n },\n ],\n },\n 'connection.rtt': {\n brief: 'Specifies the estimated effective round-trip time of the current connection, in milliseconds.',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 100,\n deprecation: {\n replacement: 'network.connection.rtt',\n reason:\n 'Old attribute name (no official namespace), to be replaced with network.connection.rtt for span-first future',\n },\n aliases: ['network.connection.rtt'],\n changelog: [\n {\n version: '0.5.0',\n prs: [279],\n description: \"Added and deprecated attribute to document JS SDK's current behaviour\",\n },\n ],\n },\n 'culture.calendar': {\n brief: 'The calendar system used by the culture.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'GregorianCalendar',\n changelog: [{ version: '0.4.0', prs: [243] }],\n },\n 'culture.display_name': {\n brief: 'Human readable name of the culture.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'English (United States)',\n changelog: [{ version: '0.4.0', prs: [243] }],\n },\n 'culture.is_24_hour_format': {\n brief: 'Whether the culture uses 24-hour time format.',\n type: 'boolean',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: true,\n changelog: [{ version: '0.4.0', prs: [243] }],\n },\n 'culture.locale': {\n brief: 'The locale identifier following RFC 4646.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'en-US',\n changelog: [{ version: '0.4.0', prs: [243] }],\n },\n 'culture.timezone': {\n brief: 'The timezone of the culture, as a geographic timezone identifier.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'Europe/Vienna',\n changelog: [{ version: '0.4.0', prs: [243] }],\n },\n 'db.collection.name': {\n brief: 'The name of a collection (table, container) within the database.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'users',\n changelog: [{ version: '0.1.0', prs: [106, 127] }, { version: '0.0.0' }],\n },\n 'db.driver.name': {\n brief: 'The name of the driver used for the database connection.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'psycopg2',\n changelog: [{ version: '0.5.0', prs: [297], description: 'Added db.driver.name attribute' }],\n },\n 'db.name': {\n brief: 'The name of the database being accessed.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'customers',\n deprecation: {\n replacement: 'db.namespace',\n },\n aliases: ['db.namespace'],\n changelog: [{ version: '0.1.0', prs: [61, 127] }, { version: '0.0.0' }],\n },\n 'db.namespace': {\n brief: 'The name of the database being accessed.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'customers',\n aliases: ['db.name'],\n changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n },\n 'db.operation': {\n brief: 'The name of the operation being executed.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'SELECT',\n deprecation: {\n replacement: 'db.operation.name',\n },\n aliases: ['db.operation.name', 'cloudflare.d1.query_type'],\n changelog: [{ version: '0.4.0', prs: [199] }, { version: '0.1.0', prs: [61, 127] }, { version: '0.0.0' }],\n },\n 'db.operation.batch.size': {\n brief:\n '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.',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 3,\n changelog: [{ version: '0.11.0', prs: [407], description: 'Added db.operation.batch.size attribute' }],\n },\n 'db.operation.name': {\n brief: 'The name of the operation being executed.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'SELECT',\n aliases: ['db.operation', 'cloudflare.d1.query_type'],\n changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n },\n 'db.query.parameter.': {\n brief:\n 'A query parameter used in db.query.text, with being the parameter name, and the attribute value being a string representation of the parameter value.',\n type: 'string',\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: true,\n visibility: 'public',\n hasDynamicSuffix: true,\n example: \"db.query.parameter.foo='123'\",\n changelog: [{ version: '0.1.0', prs: [103, 127] }],\n },\n 'db.query.summary': {\n brief:\n 'A shortened representation of operation(s) in the full query. This attribute must be low-cardinality and should only contain the operation table names.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'SELECT users',\n changelog: [{ version: '0.4.0', prs: [208] }, { version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n },\n 'db.query.text': {\n brief:\n '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.` to add the parameter value.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'SELECT * FROM users WHERE id = $1',\n aliases: ['db.statement'],\n changelog: [{ version: '0.4.0', prs: [208] }, { version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n },\n 'db.redis.connection': {\n brief: 'The redis connection name.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'my-redis-instance',\n changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n },\n 'db.redis.key': {\n brief: 'The key the Redis command is operating on.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'user:2047:city',\n changelog: [{ version: '0.6.0', prs: [326], description: 'Added db.redis.key attribute' }],\n },\n 'db.redis.parameters': {\n brief: 'The array of command parameters given to a redis command.',\n type: 'string[]',\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: false,\n visibility: 'public',\n example: ['test', '*'],\n changelog: [{ version: '0.0.0' }],\n },\n 'db.response.status_code': {\n brief:\n '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.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'ORA-17002',\n changelog: [{ version: '0.16.0', prs: [462], description: 'Added db.response.status_code attribute' }],\n },\n 'db.sql.bindings': {\n brief: 'The array of query bindings.',\n type: 'string[]',\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: false,\n visibility: 'public',\n example: ['1', 'foo'],\n deprecation: {\n replacement: 'db.query.parameter.',\n reason:\n 'Instead of adding every binding in the db.sql.bindings attribute, add them as individual entires with db.query.parameter..',\n },\n changelog: [{ version: '0.1.0', prs: [61] }, { version: '0.0.0' }],\n },\n 'db.statement': {\n brief: 'The database statement being executed.',\n type: 'string',\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'SELECT * FROM users',\n deprecation: {\n replacement: 'db.query.text',\n },\n aliases: ['db.query.text'],\n changelog: [{ version: '0.4.0', prs: [199] }, { version: '0.1.0', prs: [61, 127] }, { version: '0.0.0' }],\n },\n 'db.stored_procedure.name': {\n brief: 'The name of a stored procedure being called.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'GetUserById',\n changelog: [{ version: '0.11.0', prs: [398] }],\n },\n 'db.system': {\n brief:\n '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.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'postgresql',\n deprecation: {\n replacement: 'db.system.name',\n },\n aliases: ['db.system.name'],\n changelog: [{ version: '0.4.0', prs: [199, 224] }, { version: '0.1.0', prs: [61, 127] }, { version: '0.0.0' }],\n },\n 'db.system.name': {\n brief:\n '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.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'postgresql',\n aliases: ['db.system'],\n changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n },\n 'db.user': {\n brief: 'The database user.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'fancy_user',\n changelog: [{ version: '0.0.0' }],\n },\n deviceMemory: {\n brief: 'The estimated total memory capacity of the device, only a rough estimation in gigabytes.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: '8 GB',\n deprecation: {\n replacement: 'device.memory.estimated_capacity',\n reason:\n 'Old namespace-less attribute, to be replaced with device.memory.estimated_capacity for span-first future',\n },\n aliases: ['device.memory.estimated_capacity'],\n changelog: [\n {\n version: '0.5.0',\n prs: [281],\n description: \"Added and deprecated attribute to document JS SDK's current behaviour\",\n },\n ],\n },\n 'device.archs': {\n brief: 'The CPU architectures of the device.',\n type: 'string[]',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: ['arm64-v8a', 'armeabi-v7a', 'armeabi'],\n changelog: [{ version: '0.5.0', prs: [303], description: 'Added device.archs attribute' }],\n },\n 'device.battery_level': {\n brief: 'The battery level of the device as a percentage (0-100).',\n type: 'double',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 100,\n changelog: [{ version: '0.5.0', prs: [303], description: 'Added device.battery_level attribute' }],\n },\n 'device.battery_temperature': {\n brief: 'The battery temperature of the device in Celsius.',\n type: 'double',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 25,\n changelog: [{ version: '0.5.0', prs: [303], description: 'Added device.battery_temperature attribute' }],\n },\n 'device.boot_time': {\n brief: 'A formatted UTC timestamp when the system was booted.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: '2018-02-08T12:52:12Z',\n changelog: [{ version: '0.5.0', prs: [303], description: 'Added device.boot_time attribute' }],\n },\n 'device.brand': {\n brief: 'The brand of the device.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'Apple',\n changelog: [{ version: '0.1.0', prs: [116, 127] }],\n },\n 'device.charging': {\n brief: 'Whether the device was charging or not.',\n type: 'boolean',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: false,\n changelog: [{ version: '0.5.0', prs: [303], description: 'Added device.charging attribute' }],\n },\n 'device.chipset': {\n brief: 'The chipset of the device.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'Qualcomm SM8550',\n changelog: [{ version: '0.5.0', prs: [303], description: 'Added device.chipset attribute' }],\n },\n 'device.class': {\n brief:\n 'The classification of the device. For example, `low`, `medium`, or `high`. Typically inferred by Relay - SDKs generally do not need to set this directly.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'medium',\n changelog: [{ version: '0.5.0', prs: [300], description: 'Added device.class attribute' }],\n },\n 'device.connection_type': {\n brief: 'The internet connection type currently being used by the device.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'wifi',\n deprecation: {\n replacement: 'network.connection.type',\n reason: 'This attribute is being deprecated in favor of network.connection.type',\n },\n aliases: ['network.connection.type', 'connectionType'],\n changelog: [\n {\n version: '0.5.0',\n prs: [303],\n description: 'Added and deprecated device.connection_type in favor of network.connection.type',\n },\n ],\n },\n 'device.cpu_description': {\n brief: 'A description of the CPU of the device.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'Intel(R) Core(TM)2 Quad CPU Q6600 @ 2.40GHz',\n changelog: [{ version: '0.5.0', prs: [303], description: 'Added device.cpu_description attribute' }],\n },\n 'device.external_free_storage': {\n brief: 'External storage free size in bytes.',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 67108864000,\n changelog: [{ version: '0.5.0', prs: [303], description: 'Added device.external_free_storage attribute' }],\n },\n 'device.external_storage_size': {\n brief: 'External storage total size in bytes.',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 134217728000,\n changelog: [{ version: '0.5.0', prs: [303], description: 'Added device.external_storage_size attribute' }],\n },\n 'device.family': {\n brief: 'The family of the device.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'iPhone',\n changelog: [{ version: '0.1.0', prs: [116, 127] }],\n },\n 'device.free_memory': {\n brief: 'Free system memory in bytes.',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 2147483648,\n changelog: [{ version: '0.5.0', prs: [300], description: 'Added device.free_memory attribute' }],\n },\n 'device.free_storage': {\n brief: 'Free device storage in bytes.',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 107374182400,\n changelog: [{ version: '0.5.0', prs: [303], description: 'Added device.free_storage attribute' }],\n },\n 'device.id': {\n brief: 'Unique device identifier.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'a1b2c3d4-e5f6-7890-abcd-ef1234567890',\n changelog: [{ version: '0.5.0', prs: [303], description: 'Added device.id attribute' }],\n },\n 'device.locale': {\n brief: 'The locale of the device.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'en-US',\n changelog: [{ version: '0.5.0', prs: [303], description: 'Added device.locale attribute' }],\n },\n 'device.low_memory': {\n brief: 'Whether the device was low on memory.',\n type: 'boolean',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: false,\n changelog: [{ version: '0.5.0', prs: [303], description: 'Added device.low_memory attribute' }],\n },\n 'device.low_power_mode': {\n brief: 'Whether the device is in Low Power Mode.',\n type: 'boolean',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: true,\n changelog: [{ version: '0.6.0', prs: [314], description: 'Added device.low_power_mode attribute' }],\n },\n 'device.manufacturer': {\n brief: 'The manufacturer of the device.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'Google',\n changelog: [{ version: '0.5.0', prs: [303], description: 'Added device.manufacturer attribute' }],\n },\n 'device.memory.estimated_capacity': {\n brief:\n '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',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 8,\n aliases: ['deviceMemory'],\n changelog: [\n {\n version: '0.5.0',\n prs: [281],\n description: 'Added attribute device.memory.estimated_capacity to be used instead of deviceMemory',\n },\n ],\n },\n 'device.memory_size': {\n brief: 'Total system memory available in bytes.',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 17179869184,\n changelog: [{ version: '0.5.0', prs: [300], description: 'Added device.memory_size attribute' }],\n },\n 'device.model': {\n brief: 'The model of the device.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'iPhone 15 Pro Max',\n changelog: [{ version: '0.1.0', prs: [116, 127] }],\n },\n 'device.model_id': {\n brief: 'An internal hardware revision to identify the device exactly.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'N861AP',\n changelog: [{ version: '0.5.0', prs: [300], description: 'Added device.model_id attribute' }],\n },\n 'device.name': {\n brief:\n 'The name of the device. On mobile, this is the user-assigned device name. On servers and desktops, this is typically the hostname.',\n type: 'string',\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'localhost',\n changelog: [{ version: '0.5.0', prs: [303], description: 'Added device.name attribute' }],\n },\n 'device.online': {\n brief: 'Whether the device was online or not.',\n type: 'boolean',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: true,\n changelog: [{ version: '0.5.0', prs: [303], description: 'Added device.online attribute' }],\n },\n 'device.orientation': {\n brief: 'The orientation of the device, either \"portrait\" or \"landscape\".',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'portrait',\n changelog: [{ version: '0.5.0', prs: [303], description: 'Added device.orientation attribute' }],\n },\n 'device.processor_count': {\n brief: 'Number of \"logical processors\".',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 8,\n aliases: ['hardwareConcurrency'],\n changelog: [\n {\n version: '0.5.0',\n prs: [300],\n description: 'Added and deprecated attribute device.processor_count in favor of device.cpu.logical_core_count',\n },\n ],\n },\n 'device.processor_frequency': {\n brief: 'Processor frequency in MHz.',\n type: 'double',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 2400,\n changelog: [{ version: '0.5.0', prs: [303], description: 'Added device.processor_frequency attribute' }],\n },\n 'device.screen_density': {\n brief: 'The screen density of the device.',\n type: 'double',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 2.625,\n changelog: [{ version: '0.5.0', prs: [303], description: 'Added device.screen_density attribute' }],\n },\n 'device.screen_dpi': {\n brief: 'The screen density in dots-per-inch (DPI) of the device.',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 420,\n changelog: [{ version: '0.5.0', prs: [303], description: 'Added device.screen_dpi attribute' }],\n },\n 'device.screen_height_pixels': {\n brief: 'The height of the device screen in pixels.',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 2400,\n changelog: [{ version: '0.5.0', prs: [303], description: 'Added device.screen_height_pixels attribute' }],\n },\n 'device.screen_width_pixels': {\n brief: 'The width of the device screen in pixels.',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 1080,\n changelog: [{ version: '0.5.0', prs: [303], description: 'Added device.screen_width_pixels attribute' }],\n },\n 'device.simulator': {\n brief: 'Whether the device is a simulator or an actual device.',\n type: 'boolean',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: false,\n changelog: [{ version: '0.5.0', prs: [300], description: 'Added device.simulator attribute' }],\n },\n 'device.storage_size': {\n brief: 'Total device storage in bytes.',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 274877906944,\n changelog: [{ version: '0.5.0', prs: [303], description: 'Added device.storage_size attribute' }],\n },\n 'device.thermal_state': {\n brief:\n \"The thermal state of the device. Based on Apple's `ProcessInfo.ThermalState` enum: `nominal`, `fair`, `serious`, or `critical`.\",\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'nominal',\n changelog: [{ version: '0.5.0', prs: [303], description: 'Added device.thermal_state attribute' }],\n },\n 'device.timezone': {\n brief: 'The timezone of the device.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'Europe/Vienna',\n changelog: [{ version: '0.5.0', prs: [303], description: 'Added device.timezone attribute' }],\n },\n 'device.usable_memory': {\n brief: 'Memory usable for the app in bytes.',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 2147483648,\n changelog: [{ version: '0.5.0', prs: [303], description: 'Added device.usable_memory attribute' }],\n },\n dist: {\n brief: 'The sentry dist.',\n type: 'string',\n applyScrubbing: {\n key: 'never',\n },\n isInOtel: false,\n visibility: 'public',\n example: '1.0',\n deprecation: {\n replacement: 'sentry.dist',\n reason: 'This attribute is being deprecated in favor of sentry.dist.',\n },\n aliases: ['sentry.dist'],\n changelog: [{ version: '0.16.0', prs: [489], description: 'Added dist attribute' }],\n },\n effectiveConnectionType: {\n brief: 'Specifies the estimated effective type of the current connection (e.g. slow-2g, 2g, 3g, 4g).',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: '4g',\n deprecation: {\n replacement: 'network.connection.effective_type',\n reason:\n 'Old namespace-less attribute, to be replaced with network.connection.effective_type for span-first future',\n },\n aliases: ['network.connection.effective_type'],\n changelog: [\n {\n version: '0.5.0',\n prs: [279],\n description: \"Added and deprecated attribute to document JS SDK's current behaviour\",\n },\n ],\n },\n environment: {\n brief: 'The sentry environment.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'production',\n deprecation: {\n replacement: 'sentry.environment',\n },\n aliases: ['sentry.environment'],\n changelog: [{ version: '0.1.0', prs: [61, 127] }, { version: '0.0.0' }],\n },\n 'error.type': {\n brief: 'Describes a class of error the operation ended with.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'timeout',\n changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n },\n 'event.id': {\n brief: 'The unique identifier for this event (log record)',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 1234567890,\n changelog: [{ version: '0.1.0', prs: [101] }],\n },\n 'event.name': {\n brief: 'The name that uniquely identifies this event (log record)',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'Process Payload',\n changelog: [{ version: '0.1.0', prs: [101, 127] }],\n },\n 'exception.escaped': {\n brief:\n '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.',\n type: 'boolean',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: true,\n changelog: [{ version: '0.0.0' }],\n },\n 'exception.message': {\n brief: 'The error message.',\n type: 'string',\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'ENOENT: no such file or directory',\n changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n },\n 'exception.stacktrace': {\n brief:\n '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.',\n type: 'string',\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: true,\n visibility: 'public',\n example:\n '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)',\n changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n },\n 'exception.type': {\n brief:\n '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.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'OSError',\n changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n },\n 'faas.coldstart': {\n brief: 'A boolean that is true if the serverless function is executed for the first time (aka cold-start).',\n type: 'boolean',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: true,\n changelog: [{ version: '0.0.0' }],\n },\n 'faas.cron': {\n brief: 'A string containing the schedule period as Cron Expression.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: '0/5 * * * ? *',\n changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n },\n 'faas.duration_in_ms': {\n brief: 'The duration a function took to run, in milliseconds.',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 120,\n changelog: [{ version: '0.11.0', prs: [403] }],\n },\n 'faas.entry_point': {\n brief: \"The code that's run when the cloud provider invokes your function.\",\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'my_main_function',\n changelog: [{ version: '0.11.0', prs: [403, 415] }],\n },\n 'faas.execution': {\n brief: 'The execution ID of the current function execution.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'af9d5aa4-a685-4c5f-a22b-444f80b3cc28',\n deprecation: {\n replacement: 'faas.invocation_id',\n reason:\n 'This attribute is being deprecated in favor of faas.invocation_id, which is the OTel-aligned replacement.',\n },\n aliases: ['faas.invocation_id', 'aws.lambda.aws_request_id'],\n changelog: [\n {\n version: '0.16.0',\n prs: [473],\n description: 'Added faas.execution attribute, deprecated in favor of faas.invocation_id',\n },\n ],\n },\n 'faas.id': {\n brief: 'The unique ID of the single function that this runtime instance executes.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'arn:aws:lambda:REGION:ACCOUNT_ID:function:my-function',\n deprecation: {\n replacement: 'cloud.resource_id',\n reason:\n '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).',\n },\n aliases: ['cloud.resource_id'],\n changelog: [\n {\n version: '0.16.0',\n prs: [475],\n description: 'Added faas.id attribute, deprecated in favor of cloud.resource_id',\n },\n ],\n },\n 'faas.identity': {\n brief:\n 'The Service Account (GCP), IAM Execution Role (AWS), or Managed Identity (Azure) used by the serverless function when interacting with other cloud services',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example:\n 'name@project.iam.gserviceaccount.com (GCP), arn:aws:iam::123456789012:role/role-name (AWS), 00000000-0000-0000-0000-000000000000 (Azure)',\n changelog: [{ version: '0.11.0', prs: [403] }],\n },\n 'faas.invocation_id': {\n brief: 'The invocation ID of the current function invocation.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'af9d5aa4-a685-4c5f-a22b-444f80b3cc28',\n aliases: ['aws.lambda.aws_request_id', 'faas.execution'],\n changelog: [\n { version: '0.16.0', prs: [473], description: 'Added faas.execution as an alias' },\n { version: '0.11.1', prs: [414, 424] },\n ],\n },\n 'faas.invoked_name': {\n brief: 'The name of the invoked function.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'my-function',\n changelog: [{ version: '0.16.0', prs: [481], description: 'Added faas.invoked_name attribute' }],\n },\n 'faas.invoked_provider': {\n brief: 'The cloud provider of the invoked function.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'aws',\n changelog: [{ version: '0.16.0', prs: [481], description: 'Added faas.invoked_provider attribute' }],\n },\n 'faas.invoked_region': {\n brief: 'The cloud region of the invoked function.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'eu-central-1',\n changelog: [{ version: '0.16.0', prs: [481], description: 'Added faas.invoked_region attribute' }],\n },\n 'faas.name': {\n brief: 'The name of the serverless function',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'my_function',\n aliases: ['aws.lambda.function_name'],\n changelog: [{ version: '0.11.0', prs: [403, 415] }],\n },\n 'faas.time': {\n brief: 'A string containing the function invocation time in the ISO 8601 format expressed in UTC.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: '2020-01-23T13:47:06Z',\n changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n },\n 'faas.trigger': {\n brief: 'Type of the trigger which caused this function invocation.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'timer',\n changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n },\n 'faas.version': {\n brief: 'The version of the function that was invoked',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: '$LATEST',\n aliases: ['aws.lambda.function_version'],\n changelog: [{ version: '0.11.1', prs: [414, 424] }],\n },\n fcp: {\n brief: 'The time it takes for the browser to render the first piece of meaningful content on the screen',\n type: 'double',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 547.6951,\n deprecation: {\n replacement: 'browser.web_vital.fcp.value',\n reason: 'This attribute is being deprecated in favor of browser.web_vital.fcp.value',\n },\n aliases: ['browser.web_vital.fcp.value'],\n changelog: [{ version: '0.5.0', prs: [235] }],\n },\n 'flag.evaluation.': {\n brief:\n 'An instance of a feature flag evaluation. The value of this attribute is the boolean representing the evaluation result. The suffix is the name of the feature flag.',\n type: 'boolean',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n hasDynamicSuffix: true,\n example: 'flag.evaluation.is_new_ui=true',\n changelog: [{ version: '0.1.0', prs: [103] }],\n },\n fp: {\n brief: 'The time it takes for the browser to render the first pixel on the screen',\n type: 'double',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 477.1926,\n deprecation: {\n replacement: 'browser.web_vital.fp.value',\n reason: 'This attribute is being deprecated in favor of browser.web_vital.fp.value',\n },\n aliases: ['browser.web_vital.fp.value'],\n changelog: [{ version: '0.5.0', prs: [235] }],\n },\n 'frames.delay': {\n brief:\n '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/).',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 5,\n deprecation: {\n replacement: 'app.vitals.frames.delay.value',\n reason:\n 'Replaced by app.vitals.frames.delay.value to align with the app.vitals.* namespace for mobile performance attributes',\n },\n aliases: ['app.vitals.frames.delay.value'],\n changelog: [\n { version: '0.5.0', prs: [313], description: 'Deprecated in favor of app.vitals.frames.delay.value' },\n { version: '0.4.0', prs: [228] },\n { version: '0.0.0' },\n ],\n },\n 'frames.frozen': {\n brief: 'The number of frozen frames rendered during the lifetime of the span.',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 3,\n deprecation: {\n replacement: 'app.vitals.frames.frozen.count',\n reason:\n 'Replaced by app.vitals.frames.frozen.count to align with the app.vitals.* namespace for mobile performance attributes',\n },\n aliases: ['app.vitals.frames.frozen.count'],\n changelog: [\n { version: '0.5.0', prs: [313], description: 'Deprecated in favor of app.vitals.frames.frozen.count' },\n { version: '0.4.0', prs: [228] },\n { version: '0.0.0' },\n ],\n },\n frames_frozen_rate: {\n brief:\n 'The rate of frozen frames, or `app_vitals.frames.frozen.count` divided by `app_vitals.frames.total.count`. This is computed by Relay.',\n type: 'double',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n changelog: [{ version: '0.7.0', prs: [362], description: 'Added frames_frozen_rate attribute' }],\n },\n 'frames.slow': {\n brief: 'The number of slow frames rendered during the lifetime of the span.',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 1,\n deprecation: {\n replacement: 'app.vitals.frames.slow.count',\n reason:\n 'Replaced by app.vitals.frames.slow.count to align with the app.vitals.* namespace for mobile performance attributes',\n },\n aliases: ['app.vitals.frames.slow.count'],\n changelog: [\n { version: '0.5.0', prs: [313], description: 'Deprecated in favor of app.vitals.frames.slow.count' },\n { version: '0.4.0', prs: [228] },\n { version: '0.0.0' },\n ],\n },\n frames_slow_rate: {\n brief:\n 'The rate of slow frames, or `app_vitals.frames.slow.count` divided by `app_vitals.frames.total.count`. This is computed by Relay.',\n type: 'double',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n changelog: [{ version: '0.7.0', prs: [362], description: 'Added frames_slow_rate attribute' }],\n },\n 'frames.total': {\n brief: 'The number of total frames rendered during the lifetime of the span.',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 60,\n deprecation: {\n replacement: 'app.vitals.frames.total.count',\n reason:\n 'Replaced by app.vitals.frames.total.count to align with the app.vitals.* namespace for mobile performance attributes',\n },\n aliases: ['app.vitals.frames.total.count'],\n changelog: [\n { version: '0.5.0', prs: [313], description: 'Deprecated in favor of app.vitals.frames.total.count' },\n { version: '0.4.0', prs: [228] },\n { version: '0.0.0' },\n ],\n },\n fs_error: {\n brief: 'The error message of a file system error.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'ENOENT: no such file or directory',\n deprecation: {\n replacement: 'error.type',\n reason: 'This attribute is not part of the OpenTelemetry specification and error.type fits much better.',\n },\n changelog: [{ version: '0.1.0', prs: [61, 127] }, { version: '0.0.0' }],\n },\n 'gcp.function.context.event_id': {\n brief: 'The event ID from the legacy GCP Cloud Function context (1st gen)',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: '1234567890',\n changelog: [{ version: '0.7.0', prs: [371], description: 'Added gcp.function.context.event_id attribute' }],\n },\n 'gcp.function.context.event_type': {\n brief: 'The type of the GCP Cloud Function event',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'google.pubsub.topic.publish',\n changelog: [{ version: '0.7.0', prs: [371], description: 'Added gcp.function.context.event_type attribute' }],\n },\n 'gcp.function.context.id': {\n brief: 'The unique event ID from the GCP CloudEvents context (2nd gen Cloud Functions)',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: '1234567890',\n changelog: [{ version: '0.7.0', prs: [371], description: 'Added gcp.function.context.id attribute' }],\n },\n 'gcp.function.context.resource': {\n brief: 'The resource that triggered the GCP Cloud Function event',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'projects/my-project/topics/my-topic',\n changelog: [{ version: '0.7.0', prs: [371], description: 'Added gcp.function.context.resource attribute' }],\n },\n 'gcp.function.context.source': {\n brief: 'The source of the GCP Cloud Function event',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: '//pubsub.googleapis.com/projects/my-project/topics/my-topic',\n changelog: [{ version: '0.7.0', prs: [371], description: 'Added gcp.function.context.source attribute' }],\n },\n 'gcp.function.context.specversion': {\n brief: 'The CloudEvents specification version of the GCP Cloud Function event',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: '1.0',\n changelog: [{ version: '0.7.0', prs: [371], description: 'Added gcp.function.context.specversion attribute' }],\n },\n 'gcp.function.context.time': {\n brief: 'The timestamp of the GCP Cloud Function event',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: '2024-01-01T00:00:00.000Z',\n changelog: [{ version: '0.7.0', prs: [371], description: 'Added gcp.function.context.time attribute' }],\n },\n 'gcp.function.context.timestamp': {\n brief: 'The legacy timestamp of the GCP Cloud Function event',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: '2024-01-01T00:00:00.000Z',\n changelog: [{ version: '0.7.0', prs: [371], description: 'Added gcp.function.context.timestamp attribute' }],\n },\n 'gcp.function.context.type': {\n brief: 'The type of the GCP Cloud Function event context',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'cloud_functions.context',\n changelog: [{ version: '0.7.0', prs: [371], description: 'Added gcp.function.context.type attribute' }],\n },\n 'gcp.project.id': {\n brief: 'The ID of the project in GCP that this resource is associated with',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'my-project-123',\n changelog: [{ version: '0.11.0', prs: [403] }],\n },\n 'gen_ai.agent.name': {\n brief: 'The name of the agent being used.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'ResearchAssistant',\n changelog: [{ version: '0.1.0', prs: [62, 127] }],\n },\n 'gen_ai.context.utilization': {\n brief: 'The fraction of the model context window utilized by this generation.',\n type: 'double',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 0.75,\n changelog: [{ version: '0.5.0', prs: [315], description: 'Added gen_ai.context.utilization attribute' }],\n },\n 'gen_ai.context.window_size': {\n brief: 'The maximum context window size supported by the model for this generation.',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 128000,\n changelog: [{ version: '0.5.0', prs: [315], description: 'Added gen_ai.context.window_size attribute' }],\n },\n 'gen_ai.conversation.id': {\n brief:\n 'The unique identifier for a conversation (session, thread), used to store and correlate messages within this conversation.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'conv_5j66UpCpwteGg4YSxUnt7lPY',\n changelog: [{ version: '0.4.0', prs: [250] }],\n },\n 'gen_ai.cost.cache_creation.input_tokens': {\n brief: 'The cost of input tokens written to cache in USD.',\n type: 'double',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 12.34,\n changelog: [{ version: '0.16.0', description: 'Added gen_ai.cost.cache_creation.input_tokens attribute' }],\n additionalContext: [\n '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.',\n \"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.\",\n '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.',\n ],\n },\n 'gen_ai.cost.cache_read.input_tokens': {\n brief: 'The cost of cached input tokens in USD.',\n type: 'double',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 12.34,\n changelog: [{ version: '0.16.0', description: 'Added gen_ai.cost.cache_read.input_tokens attribute' }],\n additionalContext: [\n '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.',\n \"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.\",\n '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.',\n ],\n },\n 'gen_ai.cost.input_tokens': {\n brief: 'The total cost of all input tokens in USD (includes cached and cache creation tokens).',\n type: 'double',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 123.45,\n changelog: [\n { version: '0.9.0', prs: [397], description: 'Add additional_context' },\n { version: '0.4.0', prs: [228] },\n { version: '0.1.0', prs: [112] },\n ],\n additionalContext: [\n '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.',\n \"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.\",\n '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.',\n ],\n },\n 'gen_ai.cost.output_tokens': {\n brief: 'The total cost of all output tokens in USD (includes reasoning tokens).',\n type: 'double',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 123.45,\n changelog: [\n { version: '0.9.0', prs: [397], description: 'Add additional_context' },\n { version: '0.4.0', prs: [228] },\n { version: '0.1.0', prs: [112] },\n ],\n additionalContext: [\n '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.',\n \"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.\",\n '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.',\n ],\n },\n 'gen_ai.cost.reasoning.output_tokens': {\n brief: 'The cost of reasoning output tokens in USD.',\n type: 'double',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 12.34,\n changelog: [{ version: '0.16.0', description: 'Added gen_ai.cost.reasoning.output_tokens attribute' }],\n additionalContext: [\n '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.',\n \"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.\",\n '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.',\n ],\n },\n 'gen_ai.cost.total_tokens': {\n brief: 'The total cost for the tokens used.',\n type: 'double',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 12.34,\n aliases: ['ai.total_cost'],\n changelog: [\n { version: '0.9.0', prs: [397], description: 'Add additional_context' },\n { version: '0.5.0', prs: [264] },\n { version: '0.4.0', prs: [228] },\n { version: '0.1.0', prs: [126] },\n ],\n additionalContext: [\n '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.',\n \"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.\",\n ],\n },\n 'gen_ai.embeddings.input': {\n brief: 'The input to the embeddings model.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: \"What's the weather in Paris?\",\n changelog: [{ version: '0.3.1', prs: [195] }],\n },\n 'gen_ai.function_id': {\n brief:\n 'Framework-specific tracing label for the execution of a function or other unit of execution in a generative AI system.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'my-awesome-function',\n changelog: [{ version: '0.5.0', prs: [308], description: 'Added gen_ai.function_id attribute' }],\n },\n 'gen_ai.input.messages': {\n brief:\n '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:\"...\"}`.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example:\n '[{\"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\u00B0F\"}]}]',\n aliases: ['ai.texts'],\n changelog: [\n { version: '0.5.0', prs: [264] },\n { version: '0.4.0', prs: [221] },\n ],\n },\n 'gen_ai.operation.name': {\n brief:\n \"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.\",\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'chat',\n changelog: [\n { version: '0.4.0', prs: [225] },\n { version: '0.1.0', prs: [62, 127] },\n ],\n },\n 'gen_ai.operation.type': {\n brief:\n \"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\",\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'tool',\n changelog: [\n { version: '0.4.0', prs: [257] },\n { version: '0.1.0', prs: [113, 127] },\n ],\n },\n 'gen_ai.output.messages': {\n brief:\n \"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.\",\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example:\n '[{\"role\": \"assistant\", \"parts\": [{\"type\": \"text\", \"content\": \"The weather in Paris is currently rainy with a temperature of 57\u00B0F.\"}], \"finish_reason\": \"stop\"}]',\n changelog: [{ version: '0.4.0', prs: [221] }],\n },\n 'gen_ai.pipeline.name': {\n brief: 'Name of the AI pipeline or chain being executed.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'Autofix Pipeline',\n aliases: ['ai.pipeline.name'],\n changelog: [{ version: '0.1.0', prs: [76, 127] }],\n },\n 'gen_ai.prompt': {\n brief: 'The input messages sent to the model',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: '[{\"role\": \"user\", \"message\": \"hello\"}]',\n deprecation: {\n reason: 'Deprecated from OTEL, use gen_ai.input.messages with the new format instead.',\n },\n changelog: [{ version: '0.1.0', prs: [74, 108, 119] }, { version: '0.0.0' }],\n },\n 'gen_ai.prompt.name': {\n brief: 'The name of the prompt that uniquely identifies it.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n reason: 'Prompt names may reveal user behavior patterns or sensitive operations',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'summarize_text',\n aliases: ['mcp.prompt.name'],\n changelog: [{ version: '0.12.0', prs: [420], description: 'Added gen_ai.prompt.name attribute' }],\n },\n 'gen_ai.provider.name': {\n brief: 'The Generative AI provider as identified by the client or server instrumentation.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'openai',\n aliases: ['ai.model.provider', 'gen_ai.system'],\n changelog: [{ version: '0.4.0', prs: [253] }],\n },\n 'gen_ai.request.available_tools': {\n brief: 'The available tools for the model. It has to be a stringified version of an array of objects.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example:\n '[{\"name\": \"get_weather\", \"description\": \"Get the weather for a given location\"}, {\"name\": \"get_news\", \"description\": \"Get the news for a given topic\"}]',\n deprecation: {\n replacement: 'gen_ai.tool.definitions',\n },\n changelog: [\n { version: '0.4.0', prs: [221] },\n { version: '0.1.0', prs: [63, 127] },\n ],\n },\n 'gen_ai.request.frequency_penalty': {\n brief:\n '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.',\n type: 'double',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 0.5,\n aliases: ['ai.frequency_penalty'],\n changelog: [\n { version: '0.4.0', prs: [228] },\n { version: '0.1.0', prs: [57] },\n ],\n },\n 'gen_ai.request.max_tokens': {\n brief: 'The maximum number of tokens to generate in the response.',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 2048,\n changelog: [\n { version: '0.4.0', prs: [228] },\n { version: '0.1.0', prs: [62] },\n ],\n },\n 'gen_ai.request.messages': {\n brief:\n '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:\"...\"}`.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example:\n '[{\"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\"}}]',\n deprecation: {\n replacement: 'gen_ai.input.messages',\n },\n aliases: ['ai.input_messages'],\n changelog: [\n { version: '0.4.0', prs: [221] },\n { version: '0.1.0', prs: [63, 74, 108, 119, 122] },\n ],\n },\n 'gen_ai.request.model': {\n brief: 'The model identifier being used for the request.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'gpt-4-turbo-preview',\n changelog: [{ version: '0.1.0', prs: [62, 127] }],\n },\n 'gen_ai.request.presence_penalty': {\n brief:\n '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.',\n type: 'double',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 0.5,\n aliases: ['ai.presence_penalty'],\n changelog: [\n { version: '0.4.0', prs: [228] },\n { version: '0.1.0', prs: [57] },\n ],\n },\n 'gen_ai.request.reasoning_effort': {\n brief: 'Constrains the effort on reasoning for reasoning models. Supported values vary by provider.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'high',\n changelog: [{ version: '0.13.0', prs: [334], description: 'Added gen_ai.request.reasoning_effort attribute' }],\n },\n 'gen_ai.request.seed': {\n brief: 'The seed, ideally models given the same seed and same other parameters will produce the exact same output.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: '1234567890',\n aliases: ['ai.seed'],\n changelog: [{ version: '0.1.0', prs: [57, 127] }],\n },\n 'gen_ai.request.stop_sequences': {\n brief: 'List of sequences that the model will use to stop generating further tokens.',\n type: 'string[]',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: ['forest', 'lived'],\n changelog: [{ version: '0.16.0', prs: [482], description: 'Added gen_ai.request.stop_sequences attribute' }],\n },\n 'gen_ai.request.temperature': {\n brief:\n 'For an AI model call, the temperature parameter. Temperature essentially means how random the output will be.',\n type: 'double',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 0.1,\n aliases: ['ai.temperature'],\n changelog: [\n { version: '0.4.0', prs: [228] },\n { version: '0.1.0', prs: [57] },\n ],\n },\n 'gen_ai.request.top_k': {\n brief:\n '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).',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 35,\n aliases: ['ai.top_k'],\n changelog: [\n { version: '0.4.0', prs: [228] },\n { version: '0.1.0', prs: [57] },\n ],\n },\n 'gen_ai.request.top_p': {\n brief:\n '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).',\n type: 'double',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 0.7,\n aliases: ['ai.top_p'],\n changelog: [\n { version: '0.4.0', prs: [228] },\n { version: '0.1.0', prs: [57] },\n ],\n },\n 'gen_ai.response.finish_reasons': {\n brief: 'The reason why the model stopped generating.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'COMPLETE',\n aliases: ['ai.finish_reason'],\n changelog: [{ version: '0.1.0', prs: [57, 127] }],\n },\n 'gen_ai.response.id': {\n brief: 'Unique identifier for the completion.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'gen_123abc',\n aliases: ['ai.generation_id'],\n changelog: [{ version: '0.1.0', prs: [57, 127] }],\n },\n 'gen_ai.response.model': {\n brief: 'The vendor-specific ID of the model used.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'gpt-4',\n aliases: ['ai.model_id'],\n changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n },\n 'gen_ai.response.streaming': {\n brief: \"Whether or not the AI model call's response was streamed back asynchronously\",\n type: 'boolean',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: true,\n aliases: ['ai.streaming'],\n changelog: [{ version: '0.1.0', prs: [76] }],\n },\n 'gen_ai.response.text': {\n brief:\n \"The model's response text messages. It has to be a stringified version of an array of response text messages.\",\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example:\n '[\"The weather in Paris is rainy and overcast, with temperatures around 57\u00B0F\", \"The weather in London is sunny and warm, with temperatures around 65\u00B0F\"]',\n deprecation: {\n replacement: 'gen_ai.output.messages',\n },\n changelog: [\n { version: '0.4.0', prs: [221] },\n { version: '0.1.0', prs: [63, 74] },\n ],\n },\n 'gen_ai.response.time_to_first_chunk': {\n brief: 'Time in seconds when the first response content chunk arrived in streaming responses.',\n type: 'double',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 0.6853435,\n aliases: ['gen_ai.response.time_to_first_token'],\n changelog: [{ version: '0.11.0', prs: [418], description: 'Added gen_ai.response.time_to_first_chunk attribute' }],\n },\n 'gen_ai.response.time_to_first_token': {\n brief: 'Time in seconds when the first response content chunk arrived in streaming responses.',\n type: 'double',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 0.6853435,\n deprecation: {\n replacement: 'gen_ai.response.time_to_first_chunk',\n },\n aliases: ['gen_ai.response.time_to_first_chunk'],\n changelog: [\n { version: '0.11.0', prs: [418], description: 'Deprecate in favor of gen_ai.response.time_to_first_chunk' },\n { version: '0.4.0', prs: [227] },\n ],\n },\n 'gen_ai.response.tokens_per_second': {\n brief: 'The total output tokens per seconds throughput',\n type: 'double',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 12345.67,\n changelog: [\n { version: '0.4.0', prs: [228] },\n { version: '0.1.0', prs: [66] },\n ],\n },\n 'gen_ai.response.tool_calls': {\n brief: \"The tool calls in the model's response. It has to be a stringified version of an array of objects.\",\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: '[{\"name\": \"get_weather\", \"arguments\": {\"location\": \"Paris\"}}]',\n deprecation: {\n replacement: 'gen_ai.output.messages',\n },\n changelog: [\n { version: '0.4.0', prs: [221] },\n { version: '0.1.0', prs: [63, 74] },\n ],\n },\n 'gen_ai.system': {\n brief: 'The provider of the model.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'openai',\n deprecation: {\n replacement: 'gen_ai.provider.name',\n },\n aliases: ['ai.model.provider', 'gen_ai.provider.name'],\n changelog: [\n { version: '0.4.0', prs: [253] },\n { version: '0.1.0', prs: [57, 127] },\n ],\n },\n 'gen_ai.system_instructions': {\n brief: 'The system instructions passed to the model.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'You are a helpful assistant',\n aliases: ['ai.preamble'],\n changelog: [\n { version: '0.5.0', prs: [264] },\n { version: '0.4.0', prs: [221] },\n ],\n },\n 'gen_ai.system.message': {\n brief: 'The system instructions passed to the model.',\n type: 'string',\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'You are a helpful assistant',\n deprecation: {\n replacement: 'gen_ai.system_instructions',\n },\n changelog: [\n { version: '0.4.0', prs: [221] },\n { version: '0.1.0', prs: [62] },\n ],\n },\n 'gen_ai.tool.call.arguments': {\n brief: 'The arguments of the tool call. It has to be a stringified version of the arguments to the tool.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: '{\"location\": \"Paris\"}',\n aliases: ['gen_ai.tool.input'],\n changelog: [\n { version: '0.5.0', prs: [265] },\n { version: '0.4.0', prs: [221] },\n ],\n },\n 'gen_ai.tool.call.result': {\n brief: 'The result of the tool call. It has to be a stringified version of the result of the tool.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'rainy, 57\u00B0F',\n aliases: ['gen_ai.tool.output', 'gen_ai.tool.message', 'mcp.tool.result.content'],\n changelog: [\n { version: '0.5.0', prs: [265] },\n { version: '0.4.0', prs: [221] },\n ],\n },\n 'gen_ai.tool.definitions': {\n brief: 'The list of source system tool definitions available to the GenAI agent or model.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example:\n '[{\"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\"]}}]',\n changelog: [{ version: '0.4.0', prs: [221] }],\n },\n 'gen_ai.tool.description': {\n brief: 'The description of the tool being used.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'Searches the web for current information about a topic',\n changelog: [{ version: '0.1.0', prs: [62, 127] }],\n },\n 'gen_ai.tool.input': {\n brief: 'The input of the tool being used. It has to be a stringified version of the input to the tool.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: '{\"location\": \"Paris\"}',\n deprecation: {\n replacement: 'gen_ai.tool.call.arguments',\n },\n aliases: ['gen_ai.tool.call.arguments'],\n changelog: [\n { version: '0.5.0', prs: [265] },\n { version: '0.1.0', prs: [63, 74] },\n ],\n },\n 'gen_ai.tool.message': {\n brief: 'The response from a tool or function call passed to the model.',\n type: 'string',\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'rainy, 57\u00B0F',\n deprecation: {\n replacement: 'gen_ai.tool.call.result',\n },\n aliases: ['gen_ai.tool.call.result', 'gen_ai.tool.output', 'mcp.tool.result.content'],\n changelog: [\n { version: '0.5.0', prs: [265] },\n { version: '0.1.0', prs: [62] },\n ],\n },\n 'gen_ai.tool.name': {\n brief: 'Name of the tool utilized by the agent.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'Flights',\n aliases: ['ai.function_call', 'mcp.tool.name'],\n changelog: [{ version: '0.1.0', prs: [57, 127] }],\n },\n 'gen_ai.tool.output': {\n brief: 'The output of the tool being used. It has to be a stringified version of the output of the tool.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'rainy, 57\u00B0F',\n deprecation: {\n replacement: 'gen_ai.tool.call.result',\n },\n aliases: ['gen_ai.tool.call.result', 'gen_ai.tool.message', 'mcp.tool.result.content'],\n changelog: [\n { version: '0.5.0', prs: [265] },\n { version: '0.1.0', prs: [63, 74] },\n ],\n },\n 'gen_ai.tool.type': {\n brief: 'The type of tool being used.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'function',\n deprecation: {\n reason: 'The gen_ai.tool.type attribute is deprecated and should no longer be set.',\n },\n changelog: [{ version: '0.1.0', prs: [62, 127] }],\n },\n 'gen_ai.usage.cache_creation.input_tokens': {\n brief: 'The number of tokens written to the cache when processing the AI input (prompt).',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 100,\n aliases: ['gen_ai.usage.input_tokens.cache_write'],\n changelog: [\n { version: '0.11.0', prs: [418], description: 'Added gen_ai.usage.cache_creation.input_tokens attribute' },\n ],\n additionalContext: [\n '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.',\n ],\n },\n 'gen_ai.usage.cache_read.input_tokens': {\n brief: 'The number of cached tokens used to process the AI input (prompt).',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 50,\n aliases: ['gen_ai.usage.input_tokens.cached'],\n changelog: [{ version: '0.11.0', prs: [418], description: 'Added gen_ai.usage.cache_read.input_tokens attribute' }],\n additionalContext: [\n '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.',\n '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.',\n ],\n },\n 'gen_ai.usage.completion_tokens': {\n brief: 'The number of tokens used in the GenAI response (completion).',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 10,\n deprecation: {\n replacement: 'gen_ai.usage.output_tokens',\n },\n aliases: ['ai.completion_tokens.used', 'gen_ai.usage.output_tokens'],\n changelog: [\n { version: '0.9.0', prs: [397], description: 'Add additional_context' },\n { version: '0.4.0', prs: [228] },\n { version: '0.1.0', prs: [61] },\n { version: '0.0.0' },\n ],\n additionalContext: [\n '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.',\n ],\n },\n 'gen_ai.usage.input_tokens': {\n brief: 'The number of tokens used to process the AI input (prompt) including cached input tokens.',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 10,\n aliases: ['ai.prompt_tokens.used', 'gen_ai.usage.prompt_tokens'],\n changelog: [\n {\n version: '0.11.0',\n prs: [418],\n description: 'Update additional_context to reference gen_ai.usage.cache_read.input_tokens',\n },\n { version: '0.9.0', prs: [397], description: 'Add additional_context' },\n { version: '0.5.0', prs: [261] },\n { version: '0.4.0', prs: [228] },\n { version: '0.1.0', prs: [112] },\n { version: '0.0.0' },\n ],\n additionalContext: [\n '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.',\n '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.',\n ],\n },\n 'gen_ai.usage.input_tokens.cached': {\n brief: 'The number of cached tokens used to process the AI input (prompt).',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 50,\n deprecation: {\n replacement: 'gen_ai.usage.cache_read.input_tokens',\n },\n aliases: ['gen_ai.usage.cache_read.input_tokens'],\n changelog: [\n { version: '0.11.0', prs: [418], description: 'Deprecate in favor of gen_ai.usage.cache_read.input_tokens' },\n { version: '0.9.0', prs: [397], description: 'Add additional_context' },\n { version: '0.4.0', prs: [228] },\n { version: '0.1.0', prs: [62, 112] },\n ],\n additionalContext: [\n '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.',\n '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.',\n ],\n },\n 'gen_ai.usage.input_tokens.cache_write': {\n brief: 'The number of tokens written to the cache when processing the AI input (prompt).',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 100,\n deprecation: {\n replacement: 'gen_ai.usage.cache_creation.input_tokens',\n },\n aliases: ['gen_ai.usage.cache_creation.input_tokens'],\n changelog: [\n { version: '0.11.0', prs: [418], description: 'Deprecate in favor of gen_ai.usage.cache_creation.input_tokens' },\n { version: '0.9.0', prs: [397], description: 'Add additional_context' },\n { version: '0.4.0', prs: [217, 228] },\n ],\n additionalContext: [\n '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.',\n ],\n },\n 'gen_ai.usage.output_tokens': {\n brief: 'The number of tokens used for creating the AI output (including reasoning tokens).',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 10,\n aliases: ['ai.completion_tokens.used', 'gen_ai.usage.completion_tokens'],\n changelog: [\n {\n version: '0.11.0',\n prs: [418],\n description: 'Update additional_context to reference gen_ai.usage.reasoning.output_tokens',\n },\n { version: '0.9.0', prs: [397], description: 'Add additional_context' },\n { version: '0.5.0', prs: [261] },\n { version: '0.4.0', prs: [228] },\n { version: '0.1.0', prs: [112] },\n { version: '0.0.0' },\n ],\n additionalContext: [\n '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.',\n '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.',\n ],\n },\n 'gen_ai.usage.output_tokens.reasoning': {\n brief: 'The number of tokens used for reasoning to create the AI output.',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 75,\n deprecation: {\n replacement: 'gen_ai.usage.reasoning.output_tokens',\n },\n aliases: ['gen_ai.usage.reasoning.output_tokens'],\n changelog: [\n { version: '0.11.0', prs: [418], description: 'Deprecate in favor of gen_ai.usage.reasoning.output_tokens' },\n { version: '0.9.0', prs: [397], description: 'Add additional_context' },\n { version: '0.4.0', prs: [228] },\n { version: '0.1.0', prs: [62, 112] },\n ],\n additionalContext: [\n '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.',\n '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.',\n ],\n },\n 'gen_ai.usage.prompt_tokens': {\n brief: 'The number of tokens used in the GenAI input (prompt).',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 20,\n deprecation: {\n replacement: 'gen_ai.usage.input_tokens',\n },\n aliases: ['ai.prompt_tokens.used', 'gen_ai.usage.input_tokens'],\n changelog: [\n { version: '0.9.0', prs: [397], description: 'Add additional_context' },\n { version: '0.4.0', prs: [228] },\n { version: '0.1.0', prs: [61] },\n { version: '0.0.0' },\n ],\n additionalContext: [\n '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.',\n ],\n },\n 'gen_ai.usage.reasoning.output_tokens': {\n brief: 'The number of tokens used for reasoning to create the AI output.',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 75,\n aliases: ['gen_ai.usage.output_tokens.reasoning'],\n changelog: [{ version: '0.11.0', prs: [418], description: 'Added gen_ai.usage.reasoning.output_tokens attribute' }],\n additionalContext: [\n '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.',\n '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.',\n ],\n },\n 'gen_ai.usage.total_tokens': {\n brief: 'The total number of tokens used to process the prompt. (input tokens plus output todkens)',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 20,\n aliases: ['ai.total_tokens.used'],\n changelog: [\n { version: '0.9.0', prs: [397], description: 'Add additional_context' },\n { version: '0.4.0', prs: [228] },\n { version: '0.1.0', prs: [57] },\n ],\n additionalContext: [\n '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.',\n '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.',\n ],\n },\n 'graphql.document': {\n brief: 'The GraphQL document being executed.',\n type: 'string',\n applyScrubbing: {\n key: 'auto',\n reason:\n 'The document may contain sensitive information in arguments or variables. Instrumentation should redact sensitive information when possible.',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'query findBookById { bookById(id: ?) { name } }',\n changelog: [\n {\n version: '0.7.0',\n description: 'Adds the `graphql.document` attribute to track the GraphQL document being executed.',\n },\n ],\n },\n 'graphql.operation.name': {\n brief: 'The name of the operation being executed.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'findBookById',\n changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n },\n 'graphql.operation.type': {\n brief: 'The type of the operation being executed.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'query',\n changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n },\n hardwareConcurrency: {\n brief: 'The number of logical CPU cores available.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: '14',\n deprecation: {\n replacement: 'device.processor_count',\n reason: 'Old namespace-less attribute, to be replaced with device.processor_count for span-first future',\n },\n aliases: ['device.processor_count'],\n changelog: [\n {\n version: '0.5.0',\n prs: [281, 300],\n description: \"Added and deprecated attribute to document JS SDK's current behaviour\",\n },\n ],\n },\n 'http.client_ip': {\n brief:\n 'Client address - domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name.',\n type: 'string',\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'example.com',\n deprecation: {\n replacement: 'client.address',\n },\n aliases: ['client.address'],\n changelog: [{ version: '0.1.0', prs: [61, 106, 127] }, { version: '0.0.0' }],\n },\n 'http.decoded_response_content_length': {\n brief: 'The decoded body size of the response (in bytes).',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 456,\n changelog: [{ version: '0.4.0', prs: [228] }, { version: '0.0.0' }],\n },\n 'http.flavor': {\n brief: 'The actual version of the protocol used for network communication.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: '1.1',\n deprecation: {\n replacement: 'network.protocol.version',\n },\n aliases: ['network.protocol.version', 'net.protocol.version'],\n changelog: [{ version: '0.1.0', prs: [61, 108, 127] }, { version: '0.0.0' }],\n },\n 'http.fragment': {\n brief:\n 'The fragments present in the URI. Note that this contains the leading # character, while the `url.fragment` attribute does not.',\n type: 'string',\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: false,\n visibility: 'public',\n example: '#details',\n changelog: [{ version: '0.0.0' }],\n },\n 'http.host': {\n brief: 'The domain name.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'example.com',\n deprecation: {\n replacement: 'server.address',\n reason: 'Deprecated, use one of `server.address` or `client.address`, depending on the usage',\n },\n aliases: ['server.address', 'client.address', 'http.server_name', 'net.host.name', 'server_name'],\n changelog: [{ version: '0.1.0', prs: [61, 108, 127] }, { version: '0.0.0' }],\n },\n 'http.method': {\n brief: 'The HTTP method used.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'GET',\n deprecation: {\n replacement: 'http.request.method',\n },\n aliases: ['http.request.method', 'http.request_method', 'method'],\n changelog: [{ version: '0.1.0', prs: [61, 127] }, { version: '0.0.0' }],\n },\n 'http.query': {\n brief:\n 'The query string present in the URL. Note that this contains the leading ? character, while the `url.query` attribute does not.',\n type: 'string',\n applyScrubbing: {\n key: 'auto',\n reason:\n 'Query string values can contain sensitive information. Clients should attempt to scrub parameters that might contain sensitive information.',\n },\n isInOtel: false,\n visibility: 'public',\n example: '?foo=bar&bar=baz',\n changelog: [{ version: '0.0.0' }],\n },\n 'http.request.body.data': {\n brief: 'HTTP request body data. Can be given as string or structural data of any format.',\n type: 'string',\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: false,\n visibility: 'public',\n example: '[{\"role\": \"user\", \"message\": \"hello\"}]',\n changelog: [{ version: '0.6.0', prs: [336], description: 'Added http.request.body.data attribute' }],\n },\n 'http.request.connection_end': {\n brief:\n '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.',\n type: 'double',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 1732829555.15,\n changelog: [{ version: '0.4.0', prs: [228] }, { version: '0.1.0', prs: [134] }, { version: '0.0.0' }],\n },\n 'http.request.connect_start': {\n brief:\n 'The UNIX timestamp representing the time immediately before the user agent starts establishing the connection to the server to retrieve the resource.',\n type: 'double',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 1732829555.111,\n changelog: [{ version: '0.4.0', prs: [228] }, { version: '0.1.0', prs: [134] }, { version: '0.0.0' }],\n },\n 'http.request.domain_lookup_end': {\n brief:\n 'The UNIX timestamp representing the time immediately after the browser finishes the domain-name lookup for the resource.',\n type: 'double',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 1732829555.201,\n changelog: [{ version: '0.4.0', prs: [228] }, { version: '0.1.0', prs: [134] }, { version: '0.0.0' }],\n },\n 'http.request.domain_lookup_start': {\n brief:\n 'The UNIX timestamp representing the time immediately before the browser starts the domain name lookup for the resource.',\n type: 'double',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 1732829555.322,\n changelog: [{ version: '0.4.0', prs: [228] }, { version: '0.1.0', prs: [134] }, { version: '0.0.0' }],\n },\n 'http.request.fetch_start': {\n brief: 'The UNIX timestamp representing the time immediately before the browser starts to fetch the resource.',\n type: 'double',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 1732829555.389,\n changelog: [{ version: '0.4.0', prs: [228] }, { version: '0.1.0', prs: [134] }, { version: '0.0.0' }],\n },\n 'http.request.header.': {\n brief:\n 'HTTP request headers, being the normalized HTTP Header name (lowercase), the value being the header values.',\n type: 'string[]',\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: true,\n visibility: 'public',\n hasDynamicSuffix: true,\n example: \"http.request.header.custom-header=['foo', 'bar']\",\n changelog: [\n { version: '0.4.0', prs: [201, 204] },\n { version: '0.1.0', prs: [103] },\n ],\n },\n 'http.request.method': {\n brief: 'The HTTP method used.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'GET',\n aliases: ['method', 'http.method', 'http.request_method'],\n changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n },\n 'http.request_method': {\n brief: 'The HTTP method used.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'GET',\n deprecation: {\n replacement: 'http.request.method',\n },\n aliases: ['method', 'http.method', 'http.request.method'],\n changelog: [{ version: '0.6.0', prs: [343], description: 'Added http.request_method attribute' }],\n },\n 'http.request.redirect_end': {\n brief:\n 'The UNIX timestamp representing the timestamp immediately after receiving the last byte of the response of the last redirect',\n type: 'double',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 1732829558.502,\n changelog: [\n { version: '0.4.0', prs: [228] },\n { version: '0.1.0', prs: [130, 134] },\n ],\n },\n 'http.request.redirect_start': {\n brief: 'The UNIX timestamp representing the start time of the fetch which that initiates the redirect.',\n type: 'double',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 1732829555.495,\n changelog: [{ version: '0.4.0', prs: [228] }, { version: '0.1.0', prs: [134] }, { version: '0.0.0' }],\n },\n 'http.request.request_start': {\n brief:\n '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.',\n type: 'double',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 1732829555.51,\n changelog: [{ version: '0.4.0', prs: [228] }, { version: '0.1.0', prs: [134] }, { version: '0.0.0' }],\n },\n 'http.request.resend_count': {\n brief: 'The ordinal number of request resending attempt (for any reason, including redirects).',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 2,\n changelog: [{ version: '0.4.0', prs: [228] }, { version: '0.0.0' }],\n },\n 'http.request.response_end': {\n brief:\n '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.',\n type: 'double',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 1732829555.89,\n changelog: [{ version: '0.4.0', prs: [228] }, { version: '0.1.0', prs: [134] }, { version: '0.0.0' }],\n },\n 'http.request.response_start': {\n brief:\n '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.',\n type: 'double',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 1732829555.7,\n changelog: [{ version: '0.4.0', prs: [228] }, { version: '0.1.0', prs: [134] }, { version: '0.0.0' }],\n },\n 'http.request.same_origin': {\n brief: \"Indicates that a URL has the same origin as the current page's origin in the browser.\",\n type: 'boolean',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: true,\n aliases: ['url.same_origin'],\n changelog: [{ version: '0.16.0', prs: [456], description: 'Added http.request.same_origin attribute' }],\n },\n 'http.request.secure_connection_start': {\n brief:\n '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.',\n type: 'double',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 1732829555.73,\n changelog: [{ version: '0.4.0', prs: [228] }, { version: '0.1.0', prs: [134] }, { version: '0.0.0' }],\n },\n 'http.request.time_to_first_byte': {\n brief:\n \"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\",\n type: 'double',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 1.032,\n changelog: [\n { version: '0.4.0', prs: [228] },\n { version: '0.1.0', prs: [131] },\n ],\n },\n 'http.request.worker_start': {\n brief:\n '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.',\n type: 'double',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 1732829553.68,\n changelog: [\n { version: '0.4.0', prs: [228] },\n { version: '0.1.0', prs: [130, 134] },\n ],\n },\n 'http.response.body.size': {\n brief: 'The encoded body size of the response (in bytes).',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 123,\n aliases: ['http.response_content_length', 'http.response.header.content-length'],\n changelog: [{ version: '0.4.0', prs: [228] }, { version: '0.1.0', prs: [106] }, { version: '0.0.0' }],\n },\n 'http.response_content_length': {\n brief: 'The encoded body size of the response (in bytes).',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 123,\n deprecation: {\n replacement: 'http.response.body.size',\n },\n aliases: ['http.response.body.size', 'http.response.header.content-length'],\n changelog: [{ version: '0.4.0', prs: [228] }, { version: '0.1.0', prs: [61, 106] }, { version: '0.0.0' }],\n },\n 'http.response.header.content-length': {\n brief: 'The size of the message body sent to the recipient (in bytes)',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: \"http.response.header.custom-header=['foo', 'bar']\",\n aliases: ['http.response_content_length', 'http.response.body.size'],\n changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n },\n 'http.response.header.': {\n brief:\n 'HTTP response headers, being the normalized HTTP Header name (lowercase), the value being the header values.',\n type: 'string[]',\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: true,\n visibility: 'public',\n hasDynamicSuffix: true,\n example: \"http.response.header.custom-header=['foo', 'bar']\",\n changelog: [\n { version: '0.4.0', prs: [201, 204] },\n { version: '0.1.0', prs: [103] },\n ],\n },\n 'http.response.size': {\n brief: 'The transfer size of the response (in bytes).',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 456,\n aliases: ['http.response_transfer_size'],\n changelog: [{ version: '0.4.0', prs: [228] }, { version: '0.0.0' }],\n },\n 'http.response.status_code': {\n brief: 'The status code of the HTTP response.',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 404,\n aliases: ['http.status_code'],\n changelog: [{ version: '0.4.0', prs: [228] }, { version: '0.0.0' }],\n },\n 'http.response_transfer_size': {\n brief: 'The transfer size of the response (in bytes).',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 456,\n deprecation: {\n replacement: 'http.response.size',\n },\n aliases: ['http.response.size'],\n changelog: [{ version: '0.4.0', prs: [228] }, { version: '0.1.0', prs: [61] }, { version: '0.0.0' }],\n },\n 'http.route': {\n brief: 'The matched route, that is, the path template in the format used by the respective server framework.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: '/users/:id',\n aliases: ['url.template'],\n changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n },\n 'http.scheme': {\n brief: 'The URI scheme component identifying the used protocol.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'https',\n deprecation: {\n replacement: 'url.scheme',\n },\n aliases: ['url.scheme'],\n changelog: [{ version: '0.1.0', prs: [61, 127] }, { version: '0.0.0' }],\n },\n 'http.server_name': {\n brief: 'The server domain name',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'example.com',\n deprecation: {\n replacement: 'server.address',\n },\n aliases: ['server.address', 'net.host.name', 'http.host', 'server_name'],\n changelog: [{ version: '0.1.0', prs: [61, 108, 127] }, { version: '0.0.0' }],\n },\n 'http.server.request.time_in_queue': {\n brief:\n '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.',\n type: 'double',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 50,\n changelog: [{ version: '0.5.0', prs: [267] }],\n },\n 'http.status_code': {\n brief: 'The status code of the HTTP response.',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 404,\n deprecation: {\n replacement: 'http.response.status_code',\n },\n aliases: ['http.response.status_code'],\n changelog: [{ version: '0.4.0', prs: [228] }, { version: '0.1.0', prs: [61] }, { version: '0.0.0' }],\n },\n 'http.target': {\n brief: 'The pathname and query string of the URL.',\n type: 'string',\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: true,\n visibility: 'public',\n example: '/test?foo=bar#buzz',\n deprecation: {\n replacement: 'url.path',\n reason: 'This attribute is being deprecated in favor of url.path and url.query',\n },\n changelog: [{ version: '0.1.0', prs: [61] }, { version: '0.0.0' }],\n },\n 'http.url': {\n brief: 'The URL of the resource that was fetched.',\n type: 'string',\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'https://example.com/test?foo=bar#buzz',\n deprecation: {\n replacement: 'url.full',\n },\n aliases: ['url.full', 'url'],\n changelog: [{ version: '0.1.0', prs: [61, 108] }, { version: '0.0.0' }],\n },\n 'http.user_agent': {\n brief: 'Value of the HTTP User-Agent header sent by the client.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example:\n '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',\n deprecation: {\n replacement: 'user_agent.original',\n },\n aliases: ['user_agent.original'],\n changelog: [{ version: '0.1.0', prs: [61, 127] }, { version: '0.0.0' }],\n },\n id: {\n brief: 'A unique identifier for the span.',\n type: 'string',\n applyScrubbing: {\n key: 'never',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'f47ac10b58cc4372a5670e02b2c3d479',\n changelog: [{ version: '0.0.0' }],\n },\n inp: {\n brief: 'The value of the recorded Interaction to Next Paint (INP) web vital',\n type: 'double',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 200,\n deprecation: {\n replacement: 'browser.web_vital.inp.value',\n reason: 'The INP web vital is now recorded as a browser.web_vital.inp.value attribute.',\n },\n aliases: ['browser.web_vital.inp.value'],\n changelog: [\n {\n version: '0.5.0',\n prs: [229],\n description: \"Added and deprecated attribute to document JS SDK's current behaviour\",\n },\n ],\n },\n 'jsonrpc.protocol.version': {\n brief: 'The version of the JSON-RPC protocol used.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: '2.0',\n changelog: [{ version: '0.12.0', prs: [420], description: 'Added jsonrpc.protocol.version attribute' }],\n },\n 'jsonrpc.request.id': {\n brief: 'The JSON-RPC request identifier. Unique within the session.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: '1',\n aliases: ['mcp.request.id'],\n changelog: [{ version: '0.12.0', prs: [420], description: 'Added jsonrpc.request.id attribute' }],\n },\n 'jvm.gc.action': {\n brief: 'Name of the garbage collector action.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'end of minor GC',\n changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n },\n 'jvm.gc.name': {\n brief: 'Name of the garbage collector.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'G1 Young Generation',\n changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n },\n 'jvm.memory.pool.name': {\n brief: 'Name of the memory pool.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'G1 Old Gen',\n changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n },\n 'jvm.memory.type': {\n brief: 'Name of the memory pool.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'G1 Old Gen',\n changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n },\n 'jvm.thread.daemon': {\n brief: 'Whether the thread is daemon or not.',\n type: 'boolean',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: true,\n changelog: [{ version: '0.0.0' }],\n },\n 'jvm.thread.state': {\n brief: 'State of the thread.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'blocked',\n changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n },\n 'koa.name': {\n brief: 'The name of the Koa middleware or matched route that handled the request.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: '/users/:id',\n deprecation: {\n reason:\n 'No single replacement. SDKs should use http.route for router layers and code.function.name for middleware layers instead.',\n },\n changelog: [{ version: '0.16.0', prs: [490], description: 'Added koa.name attribute as deprecated' }],\n },\n 'koa.type': {\n brief: 'The type of the Koa layer that handled the request.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'router',\n changelog: [{ version: '0.16.0', prs: [471], description: 'Added koa.type attribute' }],\n },\n lcp: {\n brief: 'The value of the recorded Largest Contentful Paint (LCP) web vital',\n type: 'double',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 2500,\n deprecation: {\n replacement: 'browser.web_vital.lcp.value',\n reason: 'The LCP web vital is now recorded as a browser.web_vital.lcp.value attribute.',\n },\n aliases: ['browser.web_vital.lcp.value'],\n changelog: [\n {\n version: '0.5.0',\n prs: [229],\n description: \"Added and deprecated attribute to document JS SDK's current behaviour\",\n },\n ],\n },\n 'lcp.element': {\n brief: 'The dom element responsible for the largest contentful paint.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'img',\n deprecation: {\n replacement: 'browser.web_vital.lcp.element',\n reason: 'The LCP element is now recorded as a browser.web_vital.lcp.element attribute.',\n },\n aliases: ['browser.web_vital.lcp.element'],\n changelog: [{ version: '0.5.0', prs: [233] }, { version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n },\n 'lcp.id': {\n brief: 'The id of the dom element responsible for the largest contentful paint.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: '#hero',\n deprecation: {\n replacement: 'browser.web_vital.lcp.id',\n reason: 'The LCP id is now recorded as a browser.web_vital.lcp.id attribute.',\n },\n aliases: ['browser.web_vital.lcp.id'],\n changelog: [{ version: '0.5.0', prs: [233] }, { version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n },\n 'lcp.loadTime': {\n brief: 'The time it took for the LCP element to be loaded',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 1402,\n deprecation: {\n replacement: 'browser.web_vital.lcp.load_time',\n reason: 'The LCP load time is now recorded as a browser.web_vital.lcp.load_time attribute.',\n },\n aliases: ['browser.web_vital.lcp.load_time'],\n changelog: [{ version: '0.5.0', prs: [233] }],\n },\n 'lcp.renderTime': {\n brief: 'The time it took for the LCP element to be rendered',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 1685,\n deprecation: {\n replacement: 'browser.web_vital.lcp.render_time',\n reason: 'The LCP render time is now recorded as a browser.web_vital.lcp.render_time attribute.',\n },\n aliases: ['browser.web_vital.lcp.render_time'],\n changelog: [{ version: '0.5.0', prs: [233] }],\n },\n 'lcp.size': {\n brief: 'The size of the largest contentful paint element.',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 1234,\n deprecation: {\n replacement: 'browser.web_vital.lcp.size',\n reason: 'The LCP size is now recorded as a browser.web_vital.lcp.size attribute.',\n },\n aliases: ['browser.web_vital.lcp.size'],\n changelog: [{ version: '0.5.0', prs: [233] }, { version: '0.4.0', prs: [228] }, { version: '0.0.0' }],\n },\n 'lcp.url': {\n brief: 'The url of the dom element responsible for the largest contentful paint.',\n type: 'string',\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'https://example.com',\n deprecation: {\n replacement: 'browser.web_vital.lcp.url',\n reason: 'The LCP url is now recorded as a browser.web_vital.lcp.url attribute.',\n },\n aliases: ['browser.web_vital.lcp.url'],\n changelog: [{ version: '0.5.0', prs: [233] }, { version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n },\n 'logger.name': {\n brief: 'The name of the logger that generated this event.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'myLogger',\n changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n },\n 'mcp.cancelled.reason': {\n brief: 'Reason for the cancellation of an MCP operation.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n reason: 'Cancellation reasons may contain user-specific or sensitive information',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'User cancelled the request',\n changelog: [{ version: '0.3.0', prs: [171] }],\n },\n 'mcp.cancelled.request_id': {\n brief: 'Request ID of the cancelled MCP operation.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: '123',\n changelog: [{ version: '0.3.0', prs: [171] }],\n },\n 'mcp.client.name': {\n brief: 'Name of the MCP client application.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'claude-desktop',\n changelog: [{ version: '0.3.0', prs: [171] }],\n },\n 'mcp.client.title': {\n brief: 'Display title of the MCP client application.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n reason: 'Client titles may reveal user-specific application configurations or custom setups',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'Claude Desktop',\n changelog: [{ version: '0.3.0', prs: [171] }],\n },\n 'mcp.client.version': {\n brief: 'Version of the MCP client application.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: '1.0.0',\n changelog: [{ version: '0.3.0', prs: [171] }],\n },\n 'mcp.lifecycle.phase': {\n brief: 'Lifecycle phase indicator for MCP operations.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'initialization_complete',\n changelog: [{ version: '0.3.0', prs: [171] }],\n },\n 'mcp.logging.data_type': {\n brief: 'Data type of the logged message content.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'string',\n changelog: [{ version: '0.3.0', prs: [171] }],\n },\n 'mcp.logging.level': {\n brief: 'Log level for MCP logging operations.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'info',\n changelog: [{ version: '0.3.0', prs: [171] }],\n },\n 'mcp.logging.logger': {\n brief: 'Logger name for MCP logging operations.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n reason: 'Logger names may be user-defined and could contain sensitive information',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'mcp_server',\n changelog: [{ version: '0.3.0', prs: [171] }],\n },\n 'mcp.logging.message': {\n brief: 'Log message content from MCP logging operations.',\n type: 'string',\n applyScrubbing: {\n key: 'auto',\n reason: 'Log messages can contain user data',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'Tool execution completed successfully',\n changelog: [{ version: '0.3.0', prs: [171] }],\n },\n 'mcp.method.name': {\n brief: 'The name of the MCP request or notification method being called.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'tools/call',\n changelog: [\n { version: '0.12.0', prs: [420], description: 'Set is_in_otel=true, attribute exists in OTel MCP registry' },\n { version: '0.3.0', prs: [171] },\n ],\n },\n 'mcp.progress.current': {\n brief: 'Current progress value of an MCP operation.',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 50,\n changelog: [\n { version: '0.4.0', prs: [228] },\n { version: '0.3.0', prs: [171] },\n ],\n },\n 'mcp.progress.message': {\n brief: 'Progress message describing the current state of an MCP operation.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n reason: 'Progress messages may contain user-specific or sensitive information',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'Processing 50 of 100 items',\n changelog: [{ version: '0.3.0', prs: [171] }],\n },\n 'mcp.progress.percentage': {\n brief: 'Calculated progress percentage of an MCP operation. Computed from current/total * 100.',\n type: 'double',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 50,\n changelog: [\n { version: '0.4.0', prs: [228] },\n { version: '0.3.0', prs: [171] },\n ],\n },\n 'mcp.progress.token': {\n brief: 'Token for tracking progress of an MCP operation.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'progress-token-123',\n changelog: [{ version: '0.3.0', prs: [171] }],\n },\n 'mcp.progress.total': {\n brief: 'Total progress target value of an MCP operation.',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 100,\n changelog: [\n { version: '0.4.0', prs: [228] },\n { version: '0.3.0', prs: [171] },\n ],\n },\n 'mcp.prompt.name': {\n brief: 'Name of the MCP prompt template being used.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n reason: 'Prompt names may reveal user behavior patterns or sensitive operations',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'summarize',\n deprecation: {\n replacement: 'gen_ai.prompt.name',\n reason: 'OTel uses gen_ai.prompt.name for MCP prompt names',\n },\n aliases: ['gen_ai.prompt.name'],\n changelog: [\n { version: '0.12.0', prs: [420], description: 'Deprecated in favor of gen_ai.prompt.name' },\n { version: '0.3.0', prs: [171] },\n ],\n },\n 'mcp.prompt.result.description': {\n brief: 'Description of the prompt result.',\n type: 'string',\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'A summary of the requested information',\n changelog: [{ version: '0.3.0', prs: [171] }],\n },\n 'mcp.prompt.result.message_content': {\n brief: 'Content of the message in the prompt result. Used for single message results only.',\n type: 'string',\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'Please provide a summary of the document',\n changelog: [{ version: '0.3.0', prs: [171] }],\n },\n 'mcp.prompt.result.message_count': {\n brief: 'Number of messages in the prompt result.',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 3,\n changelog: [\n { version: '0.4.0', prs: [228] },\n { version: '0.3.0', prs: [171] },\n ],\n },\n 'mcp.prompt.result.message_role': {\n brief: 'Role of the message in the prompt result. Used for single message results only.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'user',\n changelog: [{ version: '0.3.0', prs: [171] }],\n },\n 'mcp.protocol.ready': {\n brief: 'Protocol readiness indicator for MCP session. Non-zero value indicates the protocol is ready.',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 1,\n changelog: [\n { version: '0.4.0', prs: [228] },\n { version: '0.3.0', prs: [171] },\n ],\n },\n 'mcp.protocol.version': {\n brief: 'MCP protocol version used in the session.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: '2024-11-05',\n changelog: [\n { version: '0.12.0', prs: [420], description: 'Set is_in_otel=true, attribute exists in OTel MCP registry' },\n { version: '0.3.0', prs: [171] },\n ],\n },\n 'mcp.request.argument.': {\n brief:\n 'MCP request argument with dynamic key suffix. The is replaced with the actual argument name. The value is a JSON-stringified representation of the argument value.',\n type: 'string',\n applyScrubbing: {\n key: 'auto',\n reason: 'Arguments contain user input',\n },\n isInOtel: false,\n visibility: 'public',\n hasDynamicSuffix: true,\n example: \"mcp.request.argument.query='weather in Paris'\",\n changelog: [{ version: '0.3.0', prs: [176] }],\n },\n 'mcp.request.argument.name': {\n brief: 'Name argument from prompts/get MCP request.',\n type: 'string',\n applyScrubbing: {\n key: 'auto',\n reason: 'Prompt names can contain user input',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'summarize',\n changelog: [{ version: '0.3.0', prs: [171] }],\n },\n 'mcp.request.argument.uri': {\n brief: 'URI argument from resources/read MCP request.',\n type: 'string',\n applyScrubbing: {\n key: 'auto',\n reason: 'URIs can contain user file paths',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'file:///path/to/resource',\n changelog: [{ version: '0.3.0', prs: [171] }],\n },\n 'mcp.request.id': {\n brief: 'JSON-RPC request identifier for the MCP request. Unique within the MCP session.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: '1',\n deprecation: {\n replacement: 'jsonrpc.request.id',\n reason: 'OTel models MCP as JSON-RPC, uses jsonrpc.request.id',\n },\n aliases: ['jsonrpc.request.id'],\n changelog: [\n { version: '0.12.0', prs: [420], description: 'Deprecated in favor of jsonrpc.request.id' },\n { version: '0.3.0', prs: [171] },\n ],\n },\n 'mcp.resource.protocol': {\n brief: 'Protocol of the resource URI being accessed, extracted from the URI.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'file',\n deprecation: {\n replacement: 'network.protocol.name',\n reason: 'OTel uses the generic network.protocol.name attribute',\n },\n aliases: ['network.protocol.name', 'net.protocol.name'],\n changelog: [\n { version: '0.12.0', prs: [420], description: 'Deprecated in favor of network.protocol.name' },\n { version: '0.3.0', prs: [171] },\n ],\n },\n 'mcp.resource.uri': {\n brief: 'The resource URI being accessed in an MCP operation.',\n type: 'string',\n applyScrubbing: {\n key: 'auto',\n reason: 'URIs can contain sensitive file paths',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'file:///path/to/file.txt',\n changelog: [\n { version: '0.12.0', prs: [420], description: 'Set is_in_otel=true, attribute exists in OTel MCP registry' },\n { version: '0.3.0', prs: [171] },\n ],\n },\n 'mcp.server.name': {\n brief: 'Name of the MCP server application.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'sentry-mcp-server',\n changelog: [{ version: '0.3.0', prs: [171] }],\n },\n 'mcp.server.title': {\n brief: 'Display title of the MCP server application.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n reason: 'Server titles may reveal user-specific application configurations or custom setups',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'Sentry MCP Server',\n changelog: [{ version: '0.3.0', prs: [171] }],\n },\n 'mcp.server.version': {\n brief: 'Version of the MCP server application.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: '0.1.0',\n changelog: [{ version: '0.3.0', prs: [171] }],\n },\n 'mcp.session.id': {\n brief: 'Identifier for the MCP session.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: '550e8400-e29b-41d4-a716-446655440000',\n changelog: [\n { version: '0.12.0', prs: [420], description: 'Set is_in_otel=true, attribute exists in OTel MCP registry' },\n { version: '0.3.0', prs: [171] },\n ],\n },\n 'mcp.tool.name': {\n brief: 'Name of the MCP tool being called.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'calculator',\n deprecation: {\n replacement: 'gen_ai.tool.name',\n reason: 'OTel uses gen_ai.tool.name for MCP tool names',\n },\n aliases: ['gen_ai.tool.name', 'ai.function_call'],\n changelog: [\n { version: '0.12.0', prs: [420], description: 'Deprecated in favor of gen_ai.tool.name' },\n { version: '0.3.0', prs: [171] },\n ],\n },\n 'mcp.tool.result.content': {\n brief: 'The content of the tool result.',\n type: 'string',\n applyScrubbing: {\n key: 'auto',\n reason: 'Tool results can contain user data',\n },\n isInOtel: false,\n visibility: 'public',\n example: '{\"output\": \"rainy\", \"toolCallId\": \"1\"}',\n deprecation: {\n replacement: 'gen_ai.tool.call.result',\n reason: 'OTel uses gen_ai.tool.call.result for MCP tool results',\n },\n aliases: ['gen_ai.tool.call.result', 'gen_ai.tool.message', 'gen_ai.tool.output'],\n changelog: [\n { version: '0.12.0', prs: [420], description: 'Deprecated in favor of gen_ai.tool.call.result' },\n { version: '0.3.0', prs: [171] },\n { version: '0.2.0', prs: [164] },\n ],\n },\n 'mcp.tool.result.content_count': {\n brief: 'Number of content items in the tool result.',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 1,\n changelog: [\n { version: '0.4.0', prs: [228] },\n { version: '0.3.0', prs: [171] },\n ],\n },\n 'mcp.tool.result.is_error': {\n brief: 'Whether a tool execution resulted in an error.',\n type: 'boolean',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: false,\n deprecation: {\n replacement: 'error.type',\n reason:\n \"OTel uses error.type set to 'tool_error' when isError is true. Cannot be automatically backfilled due to type mismatch (boolean vs string).\",\n },\n changelog: [\n { version: '0.12.0', prs: [420], description: 'Deprecated in favor of error.type' },\n { version: '0.3.0', prs: [171] },\n ],\n },\n 'mcp.transport': {\n brief: 'Transport method used for MCP communication.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'stdio',\n deprecation: {\n replacement: 'network.transport',\n reason: 'OTel uses the generic network.transport attribute',\n },\n aliases: ['network.transport', 'net.transport'],\n changelog: [\n { version: '0.12.0', prs: [420], description: 'Deprecated in favor of network.transport' },\n { version: '0.3.0', prs: [171] },\n ],\n },\n 'mdc.': {\n brief:\n \"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.\",\n type: 'string',\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: false,\n visibility: 'public',\n hasDynamicSuffix: true,\n example: \"mdc.some_key='some_value'\",\n changelog: [{ version: '0.3.0', prs: [176] }],\n },\n 'messaging.batch.message_count': {\n brief: 'The number of messages sent, received, or processed in the scope of the batching operation.',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 10,\n changelog: [{ version: '0.6.0', prs: [341], description: 'Added messaging.batch.message_count attribute' }],\n },\n 'messaging.destination': {\n brief: 'The message destination name.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'BestTopic',\n deprecation: {\n replacement: 'messaging.destination.name',\n reason:\n 'This attribute is being deprecated in favor of messaging.destination.name, which is the OTel-aligned replacement.',\n },\n aliases: ['messaging.destination.name'],\n changelog: [\n {\n version: '0.16.0',\n prs: [482],\n description: 'Added messaging.destination attribute, deprecated in favor of messaging.destination.name',\n },\n ],\n },\n 'messaging.destination.connection': {\n brief: 'The message destination connection.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'BestTopic',\n changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n },\n 'messaging.destination.name': {\n brief: 'The message destination name.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'BestTopic',\n aliases: ['messaging.destination'],\n changelog: [\n { version: '0.16.0', prs: [482], description: 'Added messaging.destination as an alias' },\n { version: '0.1.0', prs: [127] },\n { version: '0.0.0' },\n ],\n },\n 'messaging.message.body.size': {\n brief: 'The size of the message body in bytes.',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 839,\n changelog: [{ version: '0.4.0', prs: [228] }, { version: '0.0.0' }],\n },\n 'messaging.message.conversation_id': {\n brief:\n 'The conversation ID identifying the conversation to which the message belongs, represented as a string. Sometimes called \"Correlation ID\".',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'MyConversationId',\n changelog: [{ version: '0.16.0', prs: [468], description: 'Added messaging.message.conversation_id attribute' }],\n },\n 'messaging.message.envelope.size': {\n brief: 'The size of the message body and metadata in bytes.',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 1045,\n changelog: [{ version: '0.4.0', prs: [228] }, { version: '0.0.0' }],\n },\n 'messaging.message.id': {\n brief: 'A value used by the messaging system as an identifier for the message, represented as a string.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'f47ac10b58cc4372a5670e02b2c3d479',\n changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n },\n 'messaging.message.receive.latency': {\n brief: 'The latency between when the message was published and received.',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 1732847252,\n changelog: [{ version: '0.4.0', prs: [228] }, { version: '0.0.0' }],\n },\n 'messaging.message.retry.count': {\n brief: 'The amount of attempts to send the message.',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 2,\n changelog: [{ version: '0.4.0', prs: [228] }, { version: '0.0.0' }],\n },\n 'messaging.operation.name': {\n brief: 'The name of the messaging operation being performed',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'send',\n changelog: [{ version: '0.11.0', prs: [392], description: 'Added messaging.operation.name attribute' }],\n },\n 'messaging.operation.type': {\n brief: 'A string identifying the type of the messaging operation',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'create',\n changelog: [{ version: '0.1.0', prs: [51, 127] }],\n },\n 'messaging.rabbitmq.destination.routing_key': {\n brief: 'RabbitMQ message routing key.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'myKey',\n changelog: [\n { version: '0.16.0', prs: [468], description: 'Added messaging.rabbitmq.destination.routing_key attribute' },\n ],\n },\n 'messaging.system': {\n brief: 'The messaging system as identified by the client instrumentation.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'activemq',\n changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n },\n method: {\n brief: 'The HTTP method used.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'GET',\n deprecation: {\n replacement: 'http.request.method',\n },\n aliases: ['http.request.method', 'http.request_method', 'http.method'],\n changelog: [{ version: '0.1.0', prs: [61, 127] }, { version: '0.0.0' }],\n },\n 'middleware.name': {\n brief: 'The name of the middleware.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'AuthenticationMiddleware',\n changelog: [{ version: '0.6.0', prs: [336], description: 'Added middleware.name attribute' }],\n },\n 'navigation.origin': {\n brief:\n 'The origin of the navigation (usually client side router navigations). Should preferrably parameterized template (like url.template) or a URL path otherwise.',\n type: 'string',\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: false,\n visibility: 'public',\n example: '/users/:id',\n aliases: ['sentry.sveltekit.navigation.from'],\n changelog: [{ version: '0.16.0', prs: [467], description: 'Added navigation.origin attribute' }],\n },\n 'navigation.route.id': {\n brief:\n 'The identifier of the matched client-side route, as assigned by the routing framework (e.g., vue-router name, react-router id).',\n type: 'string',\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'AboutView',\n changelog: [{ version: '0.16.0', prs: [468], description: 'Added navigation.route.id attribute' }],\n },\n 'navigation.type': {\n brief: 'The type of navigation done by a client-side router.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'router.push',\n aliases: ['sentry.sveltekit.navigation.type'],\n changelog: [\n { version: '0.16.0', prs: [467], description: 'Added new deprecated alias' },\n { version: '0.1.0', prs: [127] },\n { version: '0.0.0' },\n ],\n },\n 'nel.elapsed_time': {\n brief:\n 'The elapsed number of milliseconds between the start of the resource fetch and when it was completed or aborted by the user agent.',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 100,\n changelog: [\n { version: '0.4.0', prs: [228] },\n { version: '0.1.0', prs: [68] },\n ],\n },\n 'nel.phase': {\n brief: 'If request failed, the phase of its network error. If request succeeded, \"application\".',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'application',\n changelog: [{ version: '0.1.0', prs: [68, 127] }],\n },\n 'nel.referrer': {\n brief: \"request's referrer, as determined by the referrer policy associated with its client.\",\n type: 'string',\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'https://example.com/foo?bar=baz',\n changelog: [{ version: '0.1.0', prs: [68, 127] }],\n },\n 'nel.sampling_function': {\n brief: 'The sampling function used to determine if the request should be sampled.',\n type: 'double',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 0.5,\n changelog: [\n { version: '0.4.0', prs: [228] },\n { version: '0.1.0', prs: [68] },\n ],\n },\n 'nel.type': {\n brief: 'If request failed, the type of its network error. If request succeeded, \"ok\".',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'dns.unreachable',\n changelog: [{ version: '0.1.0', prs: [68, 127] }],\n },\n 'network.connection.effective_type': {\n brief: 'Specifies the effective type of the current connection (e.g. slow-2g, 2g, 3g, 4g).',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: '4g',\n aliases: ['effectiveConnectionType'],\n changelog: [\n {\n version: '0.5.0',\n prs: [279],\n description: 'Added attribute network.connection.effective_type to be used instead of effectiveConnectionType',\n },\n ],\n },\n 'network.connection.rtt': {\n brief: 'Specifies the estimated effective round-trip time of the current connection, in milliseconds.',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 100,\n aliases: ['connection.rtt'],\n changelog: [\n {\n version: '0.5.0',\n prs: [279],\n description: 'Added attribute network.connection.rtt to be used instead of connection.rtt',\n },\n ],\n },\n 'network.connection.type': {\n brief: 'Specifies the type of the current connection (e.g. wifi, ethernet, cellular , etc).',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'wifi',\n aliases: ['device.connection_type', 'connectionType'],\n changelog: [\n {\n version: '0.5.0',\n prs: [279],\n description: 'Added attribute network.connection.type to be used instead of connectionType',\n },\n ],\n },\n 'network.local.address': {\n brief: 'Local address of the network connection - IP address or Unix domain socket name.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: '10.1.2.80',\n aliases: ['net.host.ip', 'net.sock.host.addr'],\n changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n },\n 'network.local.port': {\n brief: 'Local port number of the network connection.',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 65400,\n aliases: ['net.sock.host.port'],\n changelog: [{ version: '0.4.0', prs: [228] }, { version: '0.0.0' }],\n },\n 'network.peer.address': {\n brief: 'Peer address of the network connection - IP address or Unix domain socket name.',\n type: 'string',\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: true,\n visibility: 'public',\n example: '10.1.2.80',\n aliases: ['net.peer.ip', 'net.sock.peer.addr'],\n changelog: [{ version: '0.1.0', prs: [108, 127] }, { version: '0.0.0' }],\n },\n 'network.peer.port': {\n brief: 'Peer port number of the network connection.',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 65400,\n changelog: [{ version: '0.4.0', prs: [228] }, { version: '0.0.0' }],\n },\n 'network.protocol.name': {\n brief: 'OSI application layer or non-OSI equivalent.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'http',\n aliases: ['net.protocol.name', 'mcp.resource.protocol'],\n changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n },\n 'network.protocol.version': {\n brief: 'The actual version of the protocol used for network communication.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: '1.1',\n aliases: ['http.flavor', 'net.protocol.version'],\n changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n },\n 'network.transport': {\n brief: 'OSI transport layer or inter-process communication method.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'tcp',\n aliases: ['net.transport', 'mcp.transport'],\n changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n },\n 'network.type': {\n brief: 'OSI network layer or non-OSI equivalent.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'ipv4',\n changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n },\n 'net.host.ip': {\n brief: 'Local address of the network connection - IP address or Unix domain socket name.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: '192.168.0.1',\n deprecation: {\n replacement: 'network.local.address',\n },\n aliases: ['network.local.address', 'net.sock.host.addr'],\n changelog: [{ version: '0.1.0', prs: [61, 108, 127] }, { version: '0.0.0' }],\n },\n 'net.host.name': {\n brief:\n 'Server domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'example.com',\n deprecation: {\n replacement: 'server.address',\n },\n aliases: ['server.address', 'http.server_name', 'http.host', 'server_name'],\n changelog: [{ version: '0.1.0', prs: [61, 108, 127] }, { version: '0.0.0' }],\n },\n 'net.host.port': {\n brief: 'Server port number.',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 1337,\n deprecation: {\n replacement: 'server.port',\n },\n aliases: ['server.port'],\n changelog: [{ version: '0.4.0', prs: [228] }, { version: '0.1.0', prs: [61] }, { version: '0.0.0' }],\n },\n 'net.peer.ip': {\n brief: 'Peer address of the network connection - IP address or Unix domain socket name.',\n type: 'string',\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: true,\n visibility: 'public',\n example: '192.168.0.1',\n deprecation: {\n replacement: 'network.peer.address',\n },\n aliases: ['network.peer.address', 'net.sock.peer.addr'],\n changelog: [{ version: '0.1.0', prs: [61, 108, 127] }, { version: '0.0.0' }],\n },\n 'net.peer.name': {\n brief:\n 'Server domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name.',\n type: 'string',\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'example.com',\n deprecation: {\n replacement: 'server.address',\n reason: 'Deprecated, use server.address on client spans and client.address on server spans.',\n },\n changelog: [{ version: '0.1.0', prs: [61, 127] }, { version: '0.0.0' }],\n },\n 'net.peer.port': {\n brief: 'Peer port number.',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 1337,\n deprecation: {\n replacement: 'server.port',\n reason: 'Deprecated, use server.port on client spans and client.port on server spans.',\n },\n changelog: [{ version: '0.4.0', prs: [228] }, { version: '0.1.0', prs: [61] }, { version: '0.0.0' }],\n },\n 'net.protocol.name': {\n brief: 'OSI application layer or non-OSI equivalent.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'http',\n deprecation: {\n replacement: 'network.protocol.name',\n },\n aliases: ['network.protocol.name', 'mcp.resource.protocol'],\n changelog: [{ version: '0.1.0', prs: [61, 127] }, { version: '0.0.0' }],\n },\n 'net.protocol.version': {\n brief: 'The actual version of the protocol used for network communication.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: '1.1',\n deprecation: {\n replacement: 'network.protocol.version',\n },\n aliases: ['network.protocol.version', 'http.flavor'],\n changelog: [{ version: '0.1.0', prs: [61, 108, 127] }, { version: '0.0.0' }],\n },\n 'net.sock.family': {\n brief: 'OSI transport and network layer',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'inet',\n deprecation: {\n replacement: 'network.transport',\n reason: 'Deprecated, use network.transport and network.type.',\n },\n changelog: [{ version: '0.1.0', prs: [61, 127] }, { version: '0.0.0' }],\n },\n 'net.sock.host.addr': {\n brief: 'Local address of the network connection mapping to Unix domain socket name.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: '/var/my.sock',\n deprecation: {\n replacement: 'network.local.address',\n },\n aliases: ['network.local.address', 'net.host.ip'],\n changelog: [{ version: '0.1.0', prs: [61, 108, 127] }, { version: '0.0.0' }],\n },\n 'net.sock.host.port': {\n brief: 'Local port number of the network connection.',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 8080,\n deprecation: {\n replacement: 'network.local.port',\n },\n aliases: ['network.local.port'],\n changelog: [{ version: '0.4.0', prs: [228] }, { version: '0.1.0', prs: [61] }, { version: '0.0.0' }],\n },\n 'net.sock.peer.addr': {\n brief: 'Peer address of the network connection - IP address',\n type: 'string',\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: true,\n visibility: 'public',\n example: '192.168.0.1',\n deprecation: {\n replacement: 'network.peer.address',\n },\n aliases: ['network.peer.address', 'net.peer.ip'],\n changelog: [{ version: '0.1.0', prs: [61, 108, 127] }, { version: '0.0.0' }],\n },\n 'net.sock.peer.name': {\n brief: 'Peer address of the network connection - Unix domain socket name',\n type: 'string',\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: true,\n visibility: 'public',\n example: '/var/my.sock',\n deprecation: {\n reason: 'Deprecated from OTEL, no replacement at this time',\n },\n changelog: [{ version: '0.1.0', prs: [61, 119, 127] }, { version: '0.0.0' }],\n },\n 'net.sock.peer.port': {\n brief: 'Peer port number of the network connection.',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 8080,\n deprecation: {\n replacement: 'network.peer.port',\n },\n changelog: [{ version: '0.4.0', prs: [228] }, { version: '0.1.0', prs: [61] }, { version: '0.0.0' }],\n },\n 'net.transport': {\n brief: 'OSI transport layer or inter-process communication method.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'tcp',\n deprecation: {\n replacement: 'network.transport',\n },\n aliases: ['network.transport', 'mcp.transport'],\n changelog: [{ version: '0.1.0', prs: [61, 127] }, { version: '0.0.0' }],\n },\n 'os.build': {\n brief: 'The build ID of the operating system.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: '1234567890',\n deprecation: {\n replacement: 'os.build_id',\n },\n aliases: ['os.build_id'],\n changelog: [\n { version: '0.5.0', prs: [301], description: 'Added os.build attribute, deprecated in favor of os.build_id' },\n ],\n },\n 'os.build_id': {\n brief: 'The build ID of the operating system.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: '1234567890',\n aliases: ['os.build'],\n changelog: [\n { version: '0.5.0', prs: [301], description: 'Added os.build as alias' },\n { version: '0.1.0', prs: [127] },\n { version: '0.0.0' },\n ],\n },\n 'os.description': {\n brief:\n 'Human readable (not intended to be parsed) OS version information, like e.g. reported by ver or lsb_release -a commands.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'Ubuntu 18.04.1 LTS',\n changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n },\n 'os.kernel_version': {\n brief: 'An independent kernel version string. Typically the entire output of the `uname` syscall.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: '20.2.0',\n changelog: [{ version: '0.5.0', prs: [301], description: 'Added os.kernel_version attribute' }],\n },\n 'os.name': {\n brief: 'Human readable operating system name.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'Ubuntu',\n changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n },\n 'os.raw_description': {\n brief:\n '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.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'Ubuntu 22.04.4 LTS (Jammy Jellyfish)',\n changelog: [{ version: '0.5.0', prs: [301], description: 'Added os.raw_description attribute' }],\n },\n 'os.rooted': {\n brief: 'Whether the operating system has been jailbroken or rooted.',\n type: 'boolean',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: true,\n changelog: [{ version: '0.5.0', prs: [301], description: 'Added os.rooted attribute' }],\n },\n 'os.theme': {\n brief: 'Whether the OS runs in dark mode or light mode.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'dark',\n changelog: [{ version: '0.5.0', prs: [301], description: 'Added os.theme attribute' }],\n },\n 'os.type': {\n brief: 'The operating system type.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'linux',\n changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n },\n 'os.version': {\n brief: 'The version of the operating system.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: '18.04.2',\n changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n },\n 'otel.kind': {\n brief:\n 'The span kind (https://opentelemetry.io/docs/concepts/signals/traces/#span-kind). Deprecated, use `sentry.kind` instead.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'SERVER',\n deprecation: {\n replacement: 'sentry.kind',\n reason: 'Deprecated in favor of sentry.kind',\n },\n aliases: ['sentry.kind'],\n changelog: [{ version: '0.13.0', prs: [440], description: 'Added otel.kind attribute' }],\n },\n 'otel.scope.name': {\n brief: 'The name of the instrumentation scope - (InstrumentationScope.Name in OTLP).',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'io.opentelemetry.contrib.mongodb',\n changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n },\n 'otel.scope.version': {\n brief: 'The version of the instrumentation scope - (InstrumentationScope.Version in OTLP).',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: '2.4.5',\n changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n },\n 'otel.status_code': {\n brief: 'Name of the code, either \u201COK\u201D or \u201CERROR\u201D. MUST NOT be set if the status code is UNSET.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'OK',\n changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n },\n 'otel.status_description': {\n brief: 'Description of the Status if it has a value, otherwise not set.',\n type: 'string',\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'resource not found',\n changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n },\n 'params.': {\n brief:\n 'Decoded parameters extracted from a URL path. Usually added by client-side routing frameworks like vue-router.',\n type: 'string',\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: false,\n visibility: 'public',\n hasDynamicSuffix: true,\n example: \"params.id='123'\",\n aliases: ['url.path.parameter.'],\n changelog: [{ version: '0.1.0', prs: [103] }],\n },\n 'performance.activationStart': {\n brief: 'The time between initiating a navigation to a page and the browser activating the page',\n type: 'double',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 1.983,\n deprecation: {\n replacement: 'browser.performance.navigation.activation_start',\n reason: 'The activationStart is now recorded as the browser.performance.navigation.activation_start attribute.',\n },\n aliases: ['browser.performance.navigation.activation_start'],\n changelog: [{ version: '0.5.0', prs: [321], description: 'Added performance.activationStart attribute' }],\n },\n 'performance.timeOrigin': {\n brief: \"The browser's performance.timeOrigin timestamp representing the time when the pageload was initiated\",\n type: 'double',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 1776185678.886,\n deprecation: {\n replacement: 'browser.performance.time_origin',\n reason: 'The timeOrigin is now recorded as the browser.performance.time_origin attribute.',\n },\n aliases: ['browser.performance.time_origin'],\n changelog: [{ version: '0.5.0', prs: [321], description: 'Added performance.timeOrigin attribute' }],\n },\n previous_route: {\n brief: 'Also used by mobile SDKs to indicate the previous route in the application.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'HomeScreen',\n changelog: [{ version: '0.1.0', prs: [74] }, { version: '0.0.0' }],\n },\n 'process.command_args': {\n brief: 'All the command arguments (including the command/executable itself) as received by the process.',\n type: 'string[]',\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: true,\n visibility: 'public',\n example: ['cmd/otecol', '--config=config.yaml'],\n changelog: [{ version: '0.6.0', prs: [327], description: 'Added process.command_args attribute' }],\n },\n 'process.executable.name': {\n brief: 'The name of the executable that started the process.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'getsentry',\n changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n },\n 'process.pid': {\n brief: 'The process ID of the running process.',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 12345,\n changelog: [{ version: '0.4.0', prs: [228] }, { version: '0.0.0' }],\n },\n 'process.runtime.description': {\n brief:\n '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.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'Eclipse OpenJ9 VM openj9-0.21.0',\n aliases: ['runtime.raw_description'],\n changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n },\n 'process.runtime.engine.name': {\n brief: 'The name of the runtime engine.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'v8',\n changelog: [{ version: '0.0.0' }],\n },\n 'process.runtime.engine.version': {\n brief: 'The version of the runtime engine.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: '12.9.202.13-rusty',\n changelog: [{ version: '0.0.0' }],\n },\n 'process.runtime.name': {\n brief: 'The name of the runtime. Equivalent to `name` in the Sentry runtime context.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'node',\n aliases: ['runtime.name'],\n changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n },\n 'process.runtime.version': {\n brief:\n 'The version of the runtime of this process, as returned by the runtime without modification. Equivalent to `version` in the Sentry runtime context.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: '18.04.2',\n aliases: ['runtime.version'],\n changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n },\n 'query.': {\n brief: 'An item in a query string. Usually added by client-side routing frameworks like vue-router.',\n type: 'string',\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: false,\n visibility: 'public',\n hasDynamicSuffix: true,\n example: \"query.id='123'\",\n deprecation: {\n replacement: 'url.query',\n reason: 'Instead of sending items individually in query., they should be sent all together with url.query.',\n },\n changelog: [{ version: '0.1.0', prs: [103] }],\n },\n 'react.version': {\n brief: 'The version of the React framework',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: '18.2.0',\n changelog: [{ version: '0.7.0', prs: [368], description: 'Added react.version attribute' }],\n },\n release: {\n brief: 'The sentry release.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'production',\n deprecation: {\n replacement: 'sentry.release',\n },\n aliases: ['sentry.release'],\n changelog: [{ version: '0.1.0', prs: [61, 127] }, { version: '0.0.0' }],\n },\n 'remix.action_form_data.': {\n brief: 'Remix form data, being the form data key, the value being the form data value.',\n type: 'string',\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: false,\n visibility: 'public',\n hasDynamicSuffix: true,\n example: \"http.response.header.text='test'\",\n changelog: [{ version: '0.1.0', prs: [103] }],\n },\n replay_id: {\n brief: 'The id of the sentry replay.',\n type: 'string',\n applyScrubbing: {\n key: 'never',\n },\n isInOtel: false,\n visibility: 'public',\n example: '123e4567e89b12d3a456426614174000',\n deprecation: {\n replacement: 'sentry.replay_id',\n },\n aliases: ['sentry.replay_id'],\n changelog: [{ version: '0.1.0', prs: [61] }, { version: '0.0.0' }],\n },\n 'resource.deployment.environment': {\n brief: 'The software deployment environment name.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'production',\n deprecation: {\n replacement: 'sentry.environment',\n },\n changelog: [{ version: '0.5.0', prs: [266] }],\n },\n 'resource.deployment.environment.name': {\n brief: 'The software deployment environment name.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'production',\n deprecation: {\n replacement: 'sentry.environment',\n },\n changelog: [{ version: '0.3.1', prs: [196] }],\n },\n 'resource.render_blocking_status': {\n brief: 'The render blocking status of the resource.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'non-blocking',\n changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n },\n route: {\n brief:\n '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.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'App\\\\Controller::indexAction',\n deprecation: {\n replacement: 'http.route',\n },\n aliases: ['http.route'],\n changelog: [{ version: '0.1.0', prs: [61, 74] }, { version: '0.0.0' }],\n },\n 'rpc.grpc.status_code': {\n brief: 'The numeric status code of the gRPC request.',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 2,\n changelog: [{ version: '0.4.0', prs: [228] }, { version: '0.0.0' }],\n },\n 'rpc.method': {\n brief: 'The fully-qualified logical name of the method from the RPC interface perspective.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'com.example.ExampleService/exampleMethod',\n changelog: [{ version: '0.7.0', prs: [351], description: 'Added rpc.method attribute' }],\n },\n 'rpc.response.status_code': {\n brief: 'Status code of the RPC returned by the RPC server or generated by the client.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'DEADLINE_EXCEEDED',\n changelog: [{ version: '0.7.0', prs: [352], description: 'Added rpc.response.status_code attribute' }],\n },\n 'rpc.service': {\n brief: 'The full (logical) name of the service being called, including its package name, if applicable.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'myService.BestService',\n changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n },\n 'rpc.system': {\n brief: 'A string identifying the remoting system.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'aws-api',\n deprecation: {\n replacement: 'rpc.system.name',\n reason: 'This attribute is being deprecated in favor of rpc.system.name, which is the OTel-aligned replacement.',\n },\n aliases: ['rpc.system.name'],\n changelog: [\n {\n version: '0.16.0',\n prs: [482],\n description: 'Added rpc.system attribute, deprecated in favor of rpc.system.name',\n },\n ],\n },\n 'rpc.system.name': {\n brief: 'A string identifying the remoting system.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'aws-api',\n aliases: ['rpc.system'],\n changelog: [{ version: '0.16.0', prs: [482], description: 'Added rpc.system.name attribute' }],\n },\n 'runtime.build': {\n brief: 'The application build string, when it is separate from the version.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'stable',\n deprecation: {\n reason:\n 'The runtime.* namespace is deprecated in favor of process.runtime.*. No direct OTel equivalent exists for this attribute.',\n },\n changelog: [{ version: '0.11.0', prs: [383], description: 'Added and deprecated runtime.build attribute' }],\n },\n 'runtime.name': {\n brief: 'The name of the runtime. For example node, CPython, or rustc.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'node',\n deprecation: {\n replacement: 'process.runtime.name',\n reason: 'Prefer OTel-aligned process.runtime.name',\n },\n aliases: ['process.runtime.name'],\n changelog: [\n {\n version: '0.11.0',\n prs: [383],\n description: 'Added and deprecated runtime.name attribute in favor of process.runtime.name',\n },\n ],\n },\n 'runtime.raw_description': {\n brief:\n 'Unprocessed description string as obtained from the runtime. Used to extract name and version for well-known runtimes.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'Eclipse OpenJ9 VM openj9-0.21.0',\n deprecation: {\n replacement: 'process.runtime.description',\n reason: 'Prefer OTel-aligned process.runtime.description',\n },\n aliases: ['process.runtime.description'],\n changelog: [\n {\n version: '0.11.0',\n prs: [383],\n description: 'Added and deprecated runtime.raw_description attribute in favor of process.runtime.description',\n },\n ],\n },\n 'runtime.version': {\n brief: 'The version of the runtime.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: '18.04.2',\n deprecation: {\n replacement: 'process.runtime.version',\n reason: 'Prefer OTel-aligned process.runtime.version',\n },\n aliases: ['process.runtime.version'],\n changelog: [\n {\n version: '0.11.0',\n prs: [383],\n description: 'Added and deprecated runtime.version attribute in favor of process.runtime.version',\n },\n ],\n },\n 'score.': {\n brief:\n 'The weighted performance score for a web vital. This is defined as `score.weight.` * `score.ratio.`.',\n type: 'double',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n hasDynamicSuffix: true,\n example: 'score.cls=0.1723',\n changelog: [{ version: '0.7.0', prs: [355], description: 'Added score. attribute' }],\n },\n 'score.ratio.': {\n brief: 'The score for a web vital, normalized to a number between 0 and 1.',\n type: 'double',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n hasDynamicSuffix: true,\n example: 'score.ratio.inp=0.7748',\n changelog: [{ version: '0.7.0', prs: [355], description: 'Added score.ratio. attribute' }],\n },\n 'score.total': {\n brief:\n 'The total performance score of a span. This is the sum of individual weighted web vital scores (see `score.`).',\n type: 'double',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n changelog: [{ version: '0.7.0', prs: [355], description: 'Added score.total attribute' }],\n },\n 'score.weight.': {\n brief: \"The relative weight of a web vital in a span's performance score.\",\n type: 'double',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n hasDynamicSuffix: true,\n example: 'score.weight.fcp=0.25',\n changelog: [{ version: '0.7.0', prs: [355], description: 'Added score.weight. attribute' }],\n },\n 'sentry.action': {\n brief:\n '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.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'SELECT',\n changelog: [{ version: '0.4.0', prs: [212] }],\n },\n 'sentry.browser.name': {\n brief: 'The name of the browser.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'Chrome',\n deprecation: {\n replacement: 'browser.name',\n },\n aliases: ['browser.name'],\n changelog: [{ version: '0.1.0', prs: [139] }],\n },\n 'sentry.browser.version': {\n brief: 'The version of the browser.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: '120.0.6099.130',\n deprecation: {\n replacement: 'browser.version',\n },\n aliases: ['browser.version'],\n changelog: [{ version: '0.1.0', prs: [139] }],\n },\n 'sentry.cancellation_reason': {\n brief: 'The reason why a span ended early.',\n type: 'string',\n applyScrubbing: {\n key: 'never',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'document.hidden',\n changelog: [{ version: '0.0.0' }],\n },\n 'sentry.category': {\n brief:\n \"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'.\",\n type: 'string',\n applyScrubbing: {\n key: 'never',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'db',\n changelog: [{ version: '0.4.0', prs: [218] }],\n },\n 'sentry.client_sample_rate': {\n brief: 'Rate at which a span was sampled in the SDK.',\n type: 'double',\n applyScrubbing: {\n key: 'never',\n },\n isInOtel: false,\n visibility: 'public',\n example: 0.5,\n changelog: [{ version: '0.1.0', prs: [102] }],\n },\n 'sentry.description': {\n brief: 'The human-readable description of a span.',\n type: 'string',\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'index view query',\n changelog: [{ version: '0.1.0', prs: [135] }],\n },\n 'sentry.dist': {\n brief: 'The sentry dist.',\n type: 'string',\n applyScrubbing: {\n key: 'never',\n },\n isInOtel: false,\n visibility: 'public',\n example: '1.0',\n aliases: ['dist'],\n changelog: [{ version: '0.16.0', prs: [489], description: 'Added dist as an alias' }, { version: '0.0.0' }],\n },\n 'sentry.domain': {\n brief:\n '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.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'example.com',\n changelog: [{ version: '0.4.0', prs: [212] }],\n },\n 'sentry.dsc.environment': {\n brief: 'The environment from the dynamic sampling context.',\n type: 'string',\n applyScrubbing: {\n key: 'never',\n },\n isInOtel: false,\n visibility: 'internal',\n example: 'prod',\n changelog: [{ version: '0.3.0', prs: [185] }],\n },\n 'sentry.dsc.project_id': {\n brief:\n '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.',\n type: 'string',\n applyScrubbing: {\n key: 'never',\n },\n isInOtel: false,\n visibility: 'internal',\n example: '12345',\n changelog: [{ version: '0.7.0', prs: [358], description: 'Add sentry.dsc.project_id as an attribute' }],\n },\n 'sentry.dsc.public_key': {\n brief: 'The public key from the dynamic sampling context.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'internal',\n example: 'c51734c603c4430eb57cb0a5728a479d',\n changelog: [{ version: '0.3.0', prs: [185] }],\n },\n 'sentry.dsc.release': {\n brief: 'The release identifier from the dynamic sampling context.',\n type: 'string',\n applyScrubbing: {\n key: 'never',\n },\n isInOtel: false,\n visibility: 'internal',\n example: 'frontend@e8211be71b214afab5b85de4b4c54be3714952bb',\n changelog: [{ version: '0.3.0', prs: [185] }],\n },\n 'sentry.dsc.sampled': {\n brief: 'Whether the event was sampled according to the dynamic sampling context.',\n type: 'boolean',\n applyScrubbing: {\n key: 'never',\n },\n isInOtel: false,\n visibility: 'internal',\n example: true,\n changelog: [{ version: '0.3.0', prs: [185] }],\n },\n 'sentry.dsc.sample_rate': {\n brief: 'The sample rate from the dynamic sampling context.',\n type: 'string',\n applyScrubbing: {\n key: 'never',\n },\n isInOtel: false,\n visibility: 'internal',\n example: '1.0',\n changelog: [{ version: '0.3.0', prs: [185] }],\n },\n 'sentry.dsc.trace_id': {\n brief: 'The trace ID from the dynamic sampling context.',\n type: 'string',\n applyScrubbing: {\n key: 'never',\n },\n isInOtel: false,\n visibility: 'internal',\n example: '047372980460430cbc78d9779df33a46',\n changelog: [{ version: '0.3.0', prs: [185] }],\n },\n 'sentry.dsc.transaction': {\n brief: 'The transaction name from the dynamic sampling context.',\n type: 'string',\n applyScrubbing: {\n key: 'never',\n },\n isInOtel: false,\n visibility: 'internal',\n example: '/issues/errors-outages/',\n changelog: [{ version: '0.3.0', prs: [185] }],\n },\n 'sentry.environment': {\n brief: 'The sentry environment.',\n type: 'string',\n applyScrubbing: {\n key: 'never',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'production',\n aliases: ['environment'],\n changelog: [{ version: '0.0.0' }],\n },\n 'sentry.exclusive_time': {\n brief: 'The exclusive time duration of the span in milliseconds.',\n type: 'double',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 1234,\n changelog: [{ version: '0.4.0', prs: [228] }, { version: '0.3.0', prs: [160] }, { version: '0.0.0' }],\n },\n 'sentry.graphql.operation': {\n brief: 'Indicates the type of graphql operation, emitted by the Javascript SDK.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'getUserById',\n changelog: [{ version: '0.3.1', prs: [190] }],\n },\n 'sentry.group': {\n brief:\n 'Stores the hash of `sentry.normalized_description`. This is primarily used for grouping spans in the product end.',\n type: 'string',\n applyScrubbing: {\n key: 'never',\n },\n isInOtel: false,\n visibility: 'public',\n changelog: [{ version: '0.4.0', prs: [212] }],\n },\n 'sentry.http.prefetch': {\n brief: 'If an http request was a prefetch request.',\n type: 'boolean',\n applyScrubbing: {\n key: 'never',\n },\n isInOtel: false,\n visibility: 'public',\n example: true,\n changelog: [{ version: '0.0.0' }],\n },\n 'sentry.idle_span_finish_reason': {\n brief: 'The reason why an idle span ended early.',\n type: 'string',\n applyScrubbing: {\n key: 'never',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'idleTimeout',\n changelog: [{ version: '0.0.0' }],\n },\n 'sentry.is_remote': {\n brief: \"Indicates whether a span's parent is remote.\",\n type: 'boolean',\n applyScrubbing: {\n key: 'never',\n },\n isInOtel: false,\n visibility: 'public',\n example: true,\n changelog: [{ version: '0.3.1', prs: [190] }],\n },\n 'sentry.kind': {\n brief:\n '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.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'server',\n aliases: ['otel.kind'],\n changelog: [{ version: '0.3.1', prs: [190] }],\n },\n 'sentry.main_thread': {\n brief: 'Whether the span or event occurred on the main thread. Computed by Relay and should not be set by SDKs.',\n type: 'boolean',\n applyScrubbing: {\n key: 'never',\n },\n isInOtel: false,\n visibility: 'public',\n example: true,\n changelog: [{ version: '0.5.0' }],\n },\n 'sentry.message.parameter.': {\n brief:\n \"A parameter used in the message template. 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)\",\n type: 'string',\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: false,\n visibility: 'public',\n example: \"sentry.message.parameter.0='123'\",\n changelog: [{ version: '0.1.0', prs: [116] }],\n },\n 'sentry.message.template': {\n brief: 'The parameterized template string.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'Hello, {name}!',\n changelog: [{ version: '0.1.0', prs: [116] }],\n },\n 'sentry.metric.source': {\n brief:\n 'The provenance of a metric. For example, this can be set to indicate if a metric was generated by Relay from a span.',\n type: 'string',\n applyScrubbing: {\n key: 'never',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'span',\n changelog: [{ version: '0.16.0', prs: [476], description: 'Added sentry.metric.source attribute' }],\n },\n 'sentry.mobile': {\n brief: 'Whether the application is using a mobile SDK. Computed by Relay and should not be set by SDKs.',\n type: 'boolean',\n applyScrubbing: {\n key: 'never',\n },\n isInOtel: false,\n visibility: 'public',\n example: true,\n changelog: [{ version: '0.5.0' }],\n },\n 'sentry.module.': {\n brief: 'A module that was loaded in the process. The key is the name of the module.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n hasDynamicSuffix: true,\n example: \"sentry.module.brianium/paratest='v7.7.0'\",\n changelog: [{ version: '0.1.0', prs: [103] }],\n },\n 'sentry.nextjs.ssr.function.route': {\n brief:\n '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.',\n type: 'string',\n applyScrubbing: {\n key: 'never',\n },\n isInOtel: false,\n visibility: 'public',\n example: '/posts/[id]/layout',\n changelog: [{ version: '0.1.0', prs: [54, 106] }],\n },\n 'sentry.nextjs.ssr.function.type': {\n brief:\n '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.',\n type: 'string',\n applyScrubbing: {\n key: 'never',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'generateMetadata',\n changelog: [{ version: '0.1.0', prs: [54, 106] }],\n },\n 'sentry.normalized_db_query': {\n brief: 'The normalized version of `db.query.text`.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'SELECT .. FROM sentry_project WHERE (project_id = %s)',\n changelog: [{ version: '0.3.1', prs: [194] }],\n },\n 'sentry.normalized_db_query.hash': {\n brief: 'The hash of `sentry.normalized_db_query`.',\n type: 'string',\n applyScrubbing: {\n key: 'never',\n },\n isInOtel: false,\n visibility: 'public',\n changelog: [{ version: '0.4.0', prs: [200] }],\n },\n 'sentry.normalized_description': {\n brief:\n '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).',\n type: 'string',\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'SELECT .. FROM sentry_project WHERE (project_id = %s)',\n changelog: [{ version: '0.4.0', prs: [212] }],\n },\n 'sentry.observed_timestamp_nanos': {\n brief: 'The timestamp at which an envelope was received by Relay, in nanoseconds.',\n type: 'string',\n applyScrubbing: {\n key: 'never',\n },\n isInOtel: false,\n visibility: 'public',\n example: '1544712660300000000',\n changelog: [\n { version: '0.3.0', prs: [174] },\n { version: '0.2.0', prs: [137] },\n ],\n },\n 'sentry.op': {\n brief: 'The operation of a span.',\n type: 'string',\n applyScrubbing: {\n key: 'never',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'http.client',\n changelog: [{ version: '0.0.0' }],\n },\n 'sentry.origin': {\n brief: 'The origin of the instrumentation (e.g. span, log, etc.)',\n type: 'string',\n applyScrubbing: {\n key: 'never',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'auto.http.otel.fastify',\n changelog: [{ version: '0.1.0', prs: [68] }, { version: '0.0.0' }],\n },\n 'sentry.platform': {\n brief: 'The sdk platform that generated the event.',\n type: 'string',\n applyScrubbing: {\n key: 'never',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'php',\n changelog: [{ version: '0.0.0' }],\n },\n 'sentry.profiler_id': {\n brief: 'The id of the currently running profiler (continuous profiling)',\n type: 'string',\n applyScrubbing: {\n key: 'never',\n },\n isInOtel: false,\n visibility: 'public',\n example: '18779b64dd35d1a538e7ce2dd2d3fad3',\n changelog: [{ version: '0.4.0', prs: [242] }],\n },\n 'sentry.profile_id': {\n brief:\n 'The ID of the Sentry profile the span is associated with. This is only meaningful for transaction-based profiling.',\n type: 'string',\n applyScrubbing: {\n key: 'never',\n },\n isInOtel: false,\n visibility: 'public',\n example: '123e4567e89b12d3a456426614174000',\n changelog: [{ version: '0.6.0', prs: [344], description: 'Added sentry.profile_id attribute' }],\n },\n 'sentry.release': {\n brief: 'The sentry release.',\n type: 'string',\n applyScrubbing: {\n key: 'never',\n },\n isInOtel: false,\n visibility: 'public',\n example: '7.0.0',\n aliases: ['service.version', 'release'],\n changelog: [{ version: '0.0.0' }],\n },\n 'sentry.replay_id': {\n brief: 'The id of the sentry replay.',\n type: 'string',\n applyScrubbing: {\n key: 'never',\n },\n isInOtel: false,\n visibility: 'public',\n example: '123e4567e89b12d3a456426614174000',\n aliases: ['replay_id'],\n changelog: [{ version: '0.0.0' }],\n },\n 'sentry.replay_is_buffering': {\n brief:\n 'A sentinel attribute on log events indicating whether the current Session Replay is being buffered (onErrorSampleRate).',\n type: 'boolean',\n applyScrubbing: {\n key: 'never',\n },\n isInOtel: false,\n visibility: 'public',\n example: true,\n changelog: [{ version: '0.3.0', prs: [185] }],\n },\n 'sentry.report_event': {\n brief: '(Deprecated) The event that caused the SDK to report CLS or LCP (pagehide or navigation)',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'pagehide',\n deprecation: {\n reason:\n 'The report event is now recorded as a browser.web_vital.lcp.report_event or browser.web_vital.cls.report_event attribute. No backfill required.',\n },\n changelog: [{ version: '0.5.0', prs: [320], description: 'Added sentry.report_event attribute' }],\n },\n 'sentry.sdk.integrations': {\n brief:\n '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.',\n type: 'string[]',\n applyScrubbing: {\n key: 'never',\n },\n isInOtel: false,\n visibility: 'public',\n example: ['InboundFilters', 'FunctionToString', 'BrowserApiErrors', 'Breadcrumbs'],\n changelog: [{ version: '0.0.0', prs: [42] }],\n },\n 'sentry.sdk.name': {\n brief: 'The sentry sdk name.',\n type: 'string',\n applyScrubbing: {\n key: 'never',\n },\n isInOtel: false,\n visibility: 'public',\n example: '@sentry/react',\n changelog: [{ version: '0.0.0' }],\n },\n 'sentry.sdk.version': {\n brief: 'The sentry sdk version.',\n type: 'string',\n applyScrubbing: {\n key: 'never',\n },\n isInOtel: false,\n visibility: 'public',\n example: '7.0.0',\n changelog: [{ version: '0.0.0' }],\n },\n 'sentry.segment.id': {\n brief: 'The segment ID of a span',\n type: 'string',\n applyScrubbing: {\n key: 'never',\n },\n isInOtel: false,\n visibility: 'public',\n example: '051581bf3cb55c13',\n aliases: ['sentry.segment_id'],\n changelog: [{ version: '0.1.0', prs: [107, 124] }],\n },\n 'sentry.segment_id': {\n brief: 'The segment ID of a span',\n type: 'string',\n applyScrubbing: {\n key: 'never',\n },\n isInOtel: false,\n visibility: 'public',\n example: '051581bf3cb55c13',\n deprecation: {\n replacement: 'sentry.segment.id',\n },\n aliases: ['sentry.segment.id'],\n changelog: [{ version: '0.1.0', prs: [124] }],\n },\n 'sentry.segment.name': {\n brief: 'The segment name of a span',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'GET /user',\n aliases: ['sentry.transaction', 'transaction'],\n changelog: [\n { version: '0.6.0', prs: [345], description: 'Added sentry.transaction and transaction aliases' },\n { version: '0.1.0', prs: [104] },\n ],\n },\n 'sentry.server_sample_rate': {\n brief: 'Rate at which a span was sampled in Relay.',\n type: 'double',\n applyScrubbing: {\n key: 'never',\n },\n isInOtel: false,\n visibility: 'public',\n example: 0.5,\n changelog: [{ version: '0.1.0', prs: [102] }],\n },\n 'sentry.source': {\n brief:\n \"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.\",\n type: 'string',\n applyScrubbing: {\n key: 'never',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'route',\n deprecation: {\n replacement: 'sentry.span.source',\n reason: 'This attribute is being deprecated in favor of sentry.span.source',\n },\n changelog: [{ version: '0.5.0' }],\n },\n 'sentry.span.source': {\n brief:\n \"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.\",\n type: 'string',\n applyScrubbing: {\n key: 'never',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'route',\n changelog: [{ version: '0.4.0', prs: [214] }, { version: '0.0.0' }],\n },\n 'sentry.status': {\n brief:\n 'The span\\'s status (either \"ok\" or \"error\"). Older SDKs may set this to a more specific error, but this behaviour is deprecated.',\n type: 'string',\n applyScrubbing: {\n key: 'never',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'ok',\n changelog: [{ version: '0.14.0', prs: [453] }],\n },\n 'sentry.status_code': {\n brief:\n 'The HTTP status code used in Sentry Insights. Typically set by Sentry during ingestion, rather than by clients.',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 200,\n changelog: [{ version: '0.4.0', prs: [223, 228] }],\n },\n 'sentry.status.message': {\n brief: 'The from OTLP extracted status message.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'foobar',\n changelog: [{ version: '0.3.1', prs: [190] }],\n },\n 'sentry.sveltekit.navigation.from': {\n brief: 'the navigation origin (sveltekit router)',\n type: 'string',\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: false,\n visibility: 'public',\n example: '/home',\n deprecation: {\n replacement: 'navigation.origin',\n reason: 'Use the more generic attribute instead',\n },\n aliases: ['navigation.origin'],\n changelog: [{ version: '0.16.0', prs: [467], description: 'Added sentry.sveltekit.navigation.from attribute' }],\n },\n 'sentry.sveltekit.navigation.to': {\n brief: 'the navigation destination',\n type: 'string',\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: false,\n visibility: 'public',\n example: '/users/:id',\n deprecation: {\n reason: 'the navigation destination is already covered by url.* attributes',\n },\n changelog: [{ version: '0.16.0', prs: [467], description: 'Added sentry.sveltekit.navigation.to attribute' }],\n },\n 'sentry.sveltekit.navigation.type': {\n brief: 'The type of navigation event emitted from the sveltekit client router',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'link',\n deprecation: {\n replacement: 'navigation.type',\n reason: 'Use the more generic attribute instead',\n },\n aliases: ['navigation.type'],\n changelog: [{ version: '0.16.0', prs: [467], description: 'Added sentry.sveltekit.navigation.type attribute' }],\n },\n 'sentry.thread.id': {\n brief: 'Current \u201Cmanaged\u201D thread ID.',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 56,\n deprecation: {\n replacement: 'thread.id',\n reason: 'This attribute is being deprecated in favor of the OTel-standard thread.id',\n },\n changelog: [{ version: '0.13.0', prs: [451] }],\n },\n 'sentry.timestamp.sequence': {\n brief:\n '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.',\n type: 'integer',\n applyScrubbing: {\n key: 'never',\n },\n isInOtel: false,\n visibility: 'public',\n example: 0,\n changelog: [{ version: '0.5.0', prs: [262] }],\n },\n 'sentry.trace_lifecycle': {\n brief: 'Indicates the chosen trace lifecycle mode of the SDK (stream or static)',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'stream',\n changelog: [{ version: '0.13.0', prs: [442], description: 'Added sentry.trace_lifecycle attribute' }],\n },\n 'sentry.trace.parent_span_id': {\n brief:\n '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.',\n type: 'string',\n applyScrubbing: {\n key: 'never',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'b0e6f15b45c36b12',\n deprecation: {},\n changelog: [\n { version: '0.5.0', prs: [287], description: 'Deprecate `sentry.trace.parent_span_id`' },\n { version: '0.1.0', prs: [116] },\n ],\n },\n 'sentry.trace.status': {\n brief:\n 'The segment\\'s status (either \"ok\" or \"error\"). Older SDKs may set this to a more specific error, but this behaviour is deprecated.',\n type: 'string',\n applyScrubbing: {\n key: 'never',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'ok',\n changelog: [{ version: '0.14.0', prs: [453] }],\n },\n 'sentry.transaction': {\n brief: 'The sentry transaction (segment name).',\n type: 'string',\n applyScrubbing: {\n key: 'never',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'GET /',\n deprecation: {\n replacement: 'sentry.segment.name',\n reason: 'This attribute is being deprecated in favor of sentry.segment.name',\n },\n aliases: ['sentry.segment.name', 'transaction'],\n changelog: [\n { version: '0.6.0', prs: [345], description: 'Deprecated sentry.transaction in favor of sentry.segment.name' },\n { version: '0.0.0' },\n ],\n },\n 'sentry.user.email': {\n brief: 'User email address.',\n type: 'string',\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: false,\n visibility: 'public',\n deprecation: {\n replacement: 'user.email',\n },\n aliases: ['user.email'],\n changelog: [{ version: '0.10.0', prs: [406] }],\n },\n 'sentry.user.geo.city': {\n brief: 'Human readable city name.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n deprecation: {\n replacement: 'user.geo.city',\n },\n aliases: ['user.geo.city'],\n changelog: [{ version: '0.10.0', prs: [406] }],\n },\n 'sentry.user.geo.country_code': {\n brief: 'Two-letter country code (ISO 3166-1 alpha-2).',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n deprecation: {\n replacement: 'user.geo.country_code',\n },\n aliases: ['user.geo.country_code'],\n changelog: [{ version: '0.10.0', prs: [406] }],\n },\n 'sentry.user.geo.region': {\n brief: 'Human readable region name or code.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n deprecation: {\n replacement: 'user.geo.region',\n },\n aliases: ['user.geo.region'],\n changelog: [{ version: '0.10.0', prs: [406] }],\n },\n 'sentry.user.geo.subdivision': {\n brief: 'Human readable subdivision name.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n deprecation: {\n replacement: 'user.geo.subdivision',\n },\n aliases: ['user.geo.subdivision'],\n changelog: [{ version: '0.10.0', prs: [406] }],\n },\n 'sentry.user.id': {\n brief: 'Unique identifier of the user.',\n type: 'string',\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: false,\n visibility: 'public',\n deprecation: {\n replacement: 'user.id',\n },\n aliases: ['user.id'],\n changelog: [{ version: '0.10.0', prs: [406] }],\n },\n 'sentry.user.ip': {\n brief: 'The IP address of the user.',\n type: 'string',\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: false,\n visibility: 'public',\n deprecation: {\n replacement: 'user.ip_address',\n },\n aliases: ['user.ip_address'],\n changelog: [{ version: '0.10.0', prs: [406] }],\n },\n 'sentry.user.username': {\n brief: 'Short name or login/username of the user.',\n type: 'string',\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: false,\n visibility: 'public',\n deprecation: {\n replacement: 'user.name',\n },\n aliases: ['user.name'],\n changelog: [{ version: '0.10.0', prs: [406] }],\n },\n 'server.address': {\n brief:\n 'Server domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'example.com',\n aliases: ['http.server_name', 'net.host.name', 'http.host', 'server_name'],\n changelog: [{ version: '0.1.0', prs: [108, 127] }, { version: '0.0.0' }],\n },\n server_name: {\n brief:\n 'Server domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'example.com',\n deprecation: {\n replacement: 'server.address',\n reason: 'This attribute is being deprecated in favor of server.address, which is the OTel-aligned replacement.',\n },\n aliases: ['server.address', 'http.server_name', 'net.host.name', 'http.host'],\n changelog: [\n {\n version: '0.16.0',\n prs: [477],\n description: 'Added server_name attribute, deprecated in favor of server.address',\n },\n ],\n },\n 'server.port': {\n brief: 'Server port number.',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 1337,\n aliases: ['net.host.port'],\n changelog: [{ version: '0.4.0', prs: [228] }, { version: '0.0.0' }],\n },\n 'service.name': {\n brief: 'Logical name of the service.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'omegastar',\n changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n },\n 'service.version': {\n brief: 'The version string of the service API or implementation. The format is not defined by these conventions.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: '5.0.0',\n aliases: ['sentry.release'],\n changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n },\n 'session.id': {\n brief: 'A unique id identifying the active session at the time of setting this attribute',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: '00112233-4455-6677-8899-aabbccddeeff',\n changelog: [{ version: '0.11.0', prs: [412], description: 'Added session.id attribute' }],\n },\n stall_percentage: {\n brief: 'The fraction of time the app was stalled. Only applies to React Native. This is computed by Relay.',\n type: 'double',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n changelog: [{ version: '0.7.0', prs: [362], description: 'Added stall_percentage attribute' }],\n },\n stall_total_time: {\n brief:\n 'The combined duration of all stalls in milliseconds. Only applies to React Native. This is computed by Relay.',\n type: 'double',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n changelog: [{ version: '0.7.0', prs: [362], description: 'Added stall_total_time attribute' }],\n },\n 'state.type': {\n brief: 'The type of state management library',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'redux',\n changelog: [{ version: '0.7.0', prs: [365], description: 'Added state.type attribute' }],\n },\n 'thread.id': {\n brief: 'Current \u201Cmanaged\u201D thread ID.',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 56,\n changelog: [{ version: '0.0.0' }],\n },\n 'thread.name': {\n brief: 'Current thread name.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'main',\n changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n },\n 'timber.tag': {\n brief: 'The log tag provided by the timber logging framework.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'MyTag',\n changelog: [{ version: '0.3.0', prs: [183] }],\n },\n time_to_full_display: {\n brief: 'The duration of time to full display in milliseconds',\n type: 'double',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 1234.56,\n deprecation: {\n replacement: 'app.vitals.ttfd.value',\n reason:\n 'Replaced by app.vitals.ttfd.value to align with the app.vitals.* namespace for mobile performance attributes',\n },\n aliases: ['app.vitals.ttfd.value'],\n changelog: [\n { version: '0.5.0', prs: [313], description: 'Added and deprecated in favor of app.vitals.ttfd.value' },\n ],\n },\n time_to_initial_display: {\n brief: 'The duration of time to initial display in milliseconds',\n type: 'double',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 1234.56,\n deprecation: {\n replacement: 'app.vitals.ttid.value',\n reason:\n 'Replaced by app.vitals.ttid.value to align with the app.vitals.* namespace for mobile performance attributes',\n },\n aliases: ['app.vitals.ttid.value'],\n changelog: [\n { version: '0.5.0', prs: [313], description: 'Added and deprecated in favor of app.vitals.ttid.value' },\n ],\n },\n transaction: {\n brief: 'The sentry transaction (segment name).',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'GET /',\n deprecation: {\n replacement: 'sentry.segment.name',\n },\n aliases: ['sentry.segment.name', 'sentry.transaction'],\n changelog: [\n {\n version: '0.6.0',\n prs: [345],\n description: 'Updated transaction deprecation replacement to sentry.segment.name',\n },\n { version: '0.1.0', prs: [61, 127] },\n { version: '0.0.0' },\n ],\n },\n 'trpc.procedure_path': {\n brief: 'The path of the tRPC procedure being called',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'user.getById',\n changelog: [{ version: '0.7.0', prs: [370], description: 'Added trpc.procedure_path attribute' }],\n },\n 'trpc.procedure_type': {\n brief: 'The type of the tRPC procedure',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'query',\n changelog: [{ version: '0.7.0', prs: [370], description: 'Added trpc.procedure_type attribute' }],\n },\n ttfb: {\n brief: 'The value of the recorded Time To First Byte (TTFB) web vital in milliseconds',\n type: 'double',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 194,\n deprecation: {\n replacement: 'browser.web_vital.ttfb.value',\n reason: 'This attribute is being deprecated in favor of browser.web_vital.ttfb.value',\n },\n aliases: ['browser.web_vital.ttfb.value'],\n changelog: [{ version: '0.5.0', prs: [235] }],\n },\n 'ttfb.requestTime': {\n brief:\n \"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\",\n type: 'double',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 1554.5814,\n deprecation: {\n replacement: 'browser.web_vital.ttfb.request_time',\n reason: 'This attribute is being deprecated in favor of browser.web_vital.ttfb.request_time',\n },\n aliases: ['browser.web_vital.ttfb.request_time'],\n changelog: [{ version: '0.5.0', prs: [235] }],\n },\n type: {\n brief: 'More granular type of the operation happening.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'fetch',\n changelog: [{ version: '0.0.0' }],\n },\n 'ui.component_name': {\n brief: 'The name of the associated component.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'HomeButton',\n changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n },\n 'ui.contributes_to_ttfd': {\n brief: 'Whether the span execution contributed to the TTFD (time to fully drawn) metric.',\n type: 'boolean',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: true,\n changelog: [{ version: '0.0.0' }],\n },\n 'ui.contributes_to_ttid': {\n brief: 'Whether the span execution contributed to the TTID (time to initial display) metric.',\n type: 'boolean',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: true,\n changelog: [{ version: '0.0.0' }],\n },\n 'ui.element.height': {\n brief: 'The height of the UI element (for Html in pixels)',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 256,\n changelog: [{ version: '0.5.0', prs: [284], description: 'Added ui.element.height attribute' }],\n },\n 'ui.element.id': {\n brief: 'The id of the UI element',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'btn-login',\n changelog: [{ version: '0.5.0', prs: [284], description: 'Added ui.element.id attribute' }],\n },\n 'ui.element.identifier': {\n brief: 'The identifier used to measure the UI element timing',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'heroImage',\n changelog: [{ version: '0.5.0', prs: [284], description: 'Added ui.element.identifier attribute' }],\n },\n 'ui.element.load_time': {\n brief: 'The loading time of a UI element (from time origin to finished loading)',\n type: 'double',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 998.2234,\n changelog: [{ version: '0.5.0', prs: [284], description: 'Added ui.element.load_time attribute' }],\n },\n 'ui.element.paint_type': {\n brief: \"The type of element paint. Can either be 'image-paint' or 'text-paint'\",\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'image-paint',\n changelog: [{ version: '0.5.0', prs: [284], description: 'Added ui.element.paint_type attribute' }],\n },\n 'ui.element.render_time': {\n brief: 'The rendering time of the UI element (from time origin to finished rendering)',\n type: 'double',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 1023.1124,\n changelog: [{ version: '0.5.0', prs: [284], description: 'Added ui.element.render_time attribute' }],\n },\n 'ui.element.type': {\n brief: 'type of the UI element',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'img',\n changelog: [{ version: '0.5.0', prs: [284], description: 'Added ui.element.type attribute' }],\n },\n 'ui.element.url': {\n brief: 'The URL of the UI element (e.g. an img src)',\n type: 'string',\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'https://assets.myapp.com/hero.png',\n changelog: [{ version: '0.5.0', prs: [284], description: 'Added ui.element.url attribute' }],\n },\n 'ui.element.width': {\n brief: 'The width of the UI element (for HTML in pixels)',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 512,\n changelog: [{ version: '0.5.0', prs: [284], description: 'Added ui.element.width attribute' }],\n },\n url: {\n brief: 'The URL of the resource that was fetched.',\n type: 'string',\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'https://example.com/test?foo=bar#buzz',\n deprecation: {\n replacement: 'url.full',\n },\n aliases: ['url.full', 'http.url'],\n changelog: [{ version: '0.1.0', prs: [61] }, { version: '0.0.0' }],\n },\n 'url.domain': {\n brief:\n 'Server domain name if available without reverse DNS lookup; otherwise, IP address or Unix domain socket name.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'example.com',\n changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n },\n 'url.fragment': {\n brief:\n 'The fragments present in the URI. Note that this does not contain the leading # character, while the `http.fragment` attribute does.',\n type: 'string',\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'details',\n changelog: [{ version: '0.0.0' }],\n },\n 'url.full': {\n brief: 'The URL of the resource that was fetched.',\n type: 'string',\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'https://example.com/test?foo=bar#buzz',\n aliases: ['http.url', 'url'],\n changelog: [{ version: '0.1.0', prs: [108] }, { version: '0.0.0' }],\n },\n 'url.path': {\n brief: 'The URI path component.',\n type: 'string',\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: true,\n visibility: 'public',\n example: '/foo',\n changelog: [{ version: '0.0.0' }],\n },\n 'url.path.parameter.': {\n brief:\n 'Decoded parameters extracted from a URL path. Usually added by client-side routing frameworks like vue-router.',\n type: 'string',\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: false,\n visibility: 'public',\n hasDynamicSuffix: true,\n example: \"url.path.parameter.id='123'\",\n aliases: ['params.'],\n changelog: [{ version: '0.1.0', prs: [103] }],\n },\n 'url.port': {\n brief: 'Server port number.',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 1337,\n changelog: [{ version: '0.4.0', prs: [228] }, { version: '0.0.0' }],\n },\n 'url.query': {\n brief:\n 'The query string present in the URL. Note that this does not contain the leading ? character, while the `http.query` attribute does.',\n type: 'string',\n applyScrubbing: {\n key: 'auto',\n reason:\n 'Query string values can contain sensitive information. Clients should attempt to scrub parameters that might contain sensitive information.',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'foo=bar&bar=baz',\n changelog: [{ version: '0.0.0' }],\n },\n 'url.same_origin': {\n brief: \"Indicates that a URL has the same origin as the current page's origin in the browser.\",\n type: 'boolean',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: true,\n deprecation: {\n replacement: 'http.request.same_origin',\n reason: 'This attribute is being deprecated in favor of http.request.same_origin.',\n },\n aliases: ['http.request.same_origin'],\n changelog: [\n {\n version: '0.16.0',\n prs: [456],\n description: 'Added url.same_origin attribute, deprecated in favor of http.request.same_origin',\n },\n ],\n },\n 'url.scheme': {\n brief: 'The URI scheme component identifying the used protocol.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'https',\n aliases: ['http.scheme'],\n changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n },\n 'url.template': {\n brief: 'The low-cardinality template of an absolute path reference.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: '/users/:id',\n aliases: ['http.route'],\n changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n },\n 'user_agent.original': {\n brief: 'Value of the HTTP User-Agent header sent by the client.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example:\n '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',\n aliases: ['http.user_agent'],\n changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n },\n 'user.email': {\n brief: 'User email address.',\n type: 'string',\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'test@example.com',\n aliases: ['sentry.user.email'],\n changelog: [{ version: '0.0.0' }],\n },\n 'user.full_name': {\n brief: \"User's full name.\",\n type: 'string',\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'John Smith',\n changelog: [{ version: '0.0.0' }],\n },\n 'user.geo.city': {\n brief: 'Human readable city name.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'Toronto',\n aliases: ['sentry.user.geo.city'],\n changelog: [{ version: '0.0.0' }],\n },\n 'user.geo.country_code': {\n brief: 'Two-letter country code (ISO 3166-1 alpha-2).',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'CA',\n aliases: ['sentry.user.geo.country_code'],\n changelog: [{ version: '0.0.0' }],\n },\n 'user.geo.region': {\n brief: 'Human readable region name or code.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'Canada',\n aliases: ['sentry.user.geo.region'],\n changelog: [{ version: '0.0.0' }],\n },\n 'user.geo.subdivision': {\n brief: 'Human readable subdivision name.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'Ontario',\n aliases: ['sentry.user.geo.subdivision'],\n changelog: [{ version: '0.0.0' }],\n },\n 'user.hash': {\n brief: 'Unique user hash to correlate information for a user in anonymized form.',\n type: 'string',\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: true,\n visibility: 'public',\n example: '8ae4c2993e0f4f3b8b2d1b1f3b5e8f4d',\n changelog: [{ version: '0.0.0' }],\n },\n 'user.id': {\n brief: 'Unique identifier of the user.',\n type: 'string',\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'S-1-5-21-202424912787-2692429404-2351956786-1000',\n aliases: ['sentry.user.id'],\n changelog: [{ version: '0.0.0' }],\n },\n 'user.ip_address': {\n brief: 'The IP address of the user.',\n type: 'string',\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: false,\n visibility: 'public',\n example: '192.168.1.1',\n aliases: ['sentry.user.ip'],\n changelog: [{ version: '0.1.0', prs: [75] }],\n },\n 'user.name': {\n brief: 'Short name or login/username of the user.',\n type: 'string',\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'j.smith',\n aliases: ['sentry.user.username'],\n changelog: [{ version: '0.0.0' }],\n },\n 'user.roles': {\n brief: 'Array of user roles at the time of the event.',\n type: 'string[]',\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: true,\n visibility: 'public',\n example: ['admin', 'editor'],\n changelog: [{ version: '0.0.0' }],\n },\n 'vercel.branch': {\n brief: 'Git branch name for Vercel project',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'main',\n changelog: [{ version: '0.2.0', prs: [163] }],\n },\n 'vercel.build_id': {\n brief: 'Identifier for the Vercel build (only present on build logs)',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'bld_cotnkcr76',\n changelog: [{ version: '0.2.0', prs: [163] }],\n },\n 'vercel.deployment_id': {\n brief: 'Identifier for the Vercel deployment',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'dpl_233NRGRjVZX1caZrXWtz5g1TAksD',\n changelog: [{ version: '0.2.0', prs: [163] }],\n },\n 'vercel.destination': {\n brief: 'Origin of the external content in Vercel (only on external logs)',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'https://vitals.vercel-insights.com/v1',\n changelog: [{ version: '0.2.0', prs: [163] }],\n },\n 'vercel.edge_type': {\n brief: 'Type of edge runtime in Vercel',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'edge-function',\n changelog: [{ version: '0.2.0', prs: [163] }],\n },\n 'vercel.entrypoint': {\n brief: 'Entrypoint for the request in Vercel',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'api/index.js',\n changelog: [{ version: '0.2.0', prs: [163] }],\n },\n 'vercel.execution_region': {\n brief: 'Region where the request is executed',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'sfo1',\n changelog: [{ version: '0.2.0', prs: [163] }],\n },\n 'vercel.id': {\n brief: 'Unique identifier for the log entry in Vercel',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: '1573817187330377061717300000',\n changelog: [{ version: '0.2.0', prs: [163] }],\n },\n 'vercel.ja3_digest': {\n brief: 'JA3 fingerprint digest of Vercel request',\n type: 'string',\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: false,\n visibility: 'public',\n example: '769,47-53-5-10-49161-49162-49171-49172-50-56-19-4,0-10-11,23-24-25,0',\n changelog: [{ version: '0.2.0', prs: [163] }],\n },\n 'vercel.ja4_digest': {\n brief: 'JA4 fingerprint digest',\n type: 'string',\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: false,\n visibility: 'public',\n example: 't13d1516h2_8daaf6152771_02713d6af862',\n changelog: [{ version: '0.2.0', prs: [163] }],\n },\n 'vercel.log_type': {\n brief: 'Vercel log output type',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'stdout',\n changelog: [{ version: '0.2.0', prs: [163] }],\n },\n 'vercel.path': {\n brief: 'Function or dynamic path of the request in Vercel.',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: '/dynamic/[route].json',\n changelog: [{ version: '0.6.0', prs: [349], description: 'Added vercel.path attribute' }],\n },\n 'vercel.project_id': {\n brief: 'Identifier for the Vercel project',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'gdufoJxB6b9b1fEqr1jUtFkyavUU',\n changelog: [{ version: '0.2.0', prs: [163] }],\n },\n 'vercel.project_name': {\n brief: 'Name of the Vercel project',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'my-app',\n changelog: [{ version: '0.2.0', prs: [163] }],\n },\n 'vercel.proxy.cache_id': {\n brief: 'Original request ID when request is served from cache',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'pdx1::v8g4b-1744143786684-93dafbc0f70d',\n changelog: [{ version: '0.2.0', prs: [163] }],\n },\n 'vercel.proxy.client_ip': {\n brief: 'Client IP address',\n type: 'string',\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: false,\n visibility: 'public',\n example: '120.75.16.101',\n changelog: [{ version: '0.2.0', prs: [163] }],\n },\n 'vercel.proxy.host': {\n brief: 'Hostname of the request',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'test.vercel.app',\n changelog: [{ version: '0.2.0', prs: [163] }],\n },\n 'vercel.proxy.lambda_region': {\n brief: 'Region where lambda function executed',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'sfo1',\n changelog: [{ version: '0.2.0', prs: [163] }],\n },\n 'vercel.proxy.method': {\n brief: 'HTTP method of the request',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'GET',\n changelog: [{ version: '0.2.0', prs: [163] }],\n },\n 'vercel.proxy.path': {\n brief: 'Request path with query parameters',\n type: 'string',\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: false,\n visibility: 'public',\n example: '/dynamic/some-value.json?route=some-value',\n changelog: [{ version: '0.2.0', prs: [163] }],\n },\n 'vercel.proxy.path_type': {\n brief: 'How the request was served based on its path and project configuration',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'func',\n changelog: [{ version: '0.2.0', prs: [163] }],\n },\n 'vercel.proxy.path_type_variant': {\n brief: 'Variant of the path type',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'api',\n changelog: [{ version: '0.2.0', prs: [163] }],\n },\n 'vercel.proxy.referer': {\n brief: 'Referer of the request',\n type: 'string',\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: false,\n visibility: 'public',\n example: '*.vercel.app',\n changelog: [{ version: '0.2.0', prs: [163] }],\n },\n 'vercel.proxy.region': {\n brief: 'Region where the request is processed',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'sfo1',\n changelog: [{ version: '0.2.0', prs: [163] }],\n },\n 'vercel.proxy.response_byte_size': {\n brief: 'Size of the response in bytes',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 1024,\n changelog: [\n { version: '0.4.0', prs: [228] },\n { version: '0.2.0', prs: [163] },\n ],\n },\n 'vercel.proxy.scheme': {\n brief: 'Protocol of the request',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'https',\n changelog: [{ version: '0.2.0', prs: [163] }],\n },\n 'vercel.proxy.status_code': {\n brief: 'HTTP status code of the proxy request',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 200,\n changelog: [\n { version: '0.4.0', prs: [228] },\n { version: '0.2.0', prs: [163] },\n ],\n },\n 'vercel.proxy.timestamp': {\n brief: 'Unix timestamp when the proxy request was made',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 1573817250172,\n changelog: [\n { version: '0.4.0', prs: [228] },\n { version: '0.2.0', prs: [163] },\n ],\n },\n 'vercel.proxy.user_agent': {\n brief: 'User agent strings of the request',\n type: 'string[]',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: ['Mozilla/5.0...'],\n changelog: [{ version: '0.2.0', prs: [163] }],\n },\n 'vercel.proxy.vercel_cache': {\n brief: 'Cache status sent to the browser',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'REVALIDATED',\n changelog: [{ version: '0.2.0', prs: [163] }],\n },\n 'vercel.proxy.vercel_id': {\n brief: 'Vercel-specific identifier',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'sfo1::abc123',\n changelog: [{ version: '0.2.0', prs: [163] }],\n },\n 'vercel.proxy.waf_action': {\n brief: 'Action taken by firewall rules',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'deny',\n changelog: [{ version: '0.2.0', prs: [163] }],\n },\n 'vercel.proxy.waf_rule_id': {\n brief: 'ID of the firewall rule that matched',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'rule_gAHz8jtSB1Gy',\n changelog: [{ version: '0.2.0', prs: [163] }],\n },\n 'vercel.request_id': {\n brief: 'Identifier of the Vercel request',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: '643af4e3-975a-4cc7-9e7a-1eda11539d90',\n changelog: [{ version: '0.2.0', prs: [163] }],\n },\n 'vercel.source': {\n brief: 'Origin of the Vercel log (build, edge, lambda, static, external, or firewall)',\n type: 'string',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'build',\n changelog: [{ version: '0.2.0', prs: [163] }],\n },\n 'vercel.status_code': {\n brief: 'HTTP status code of the request (-1 means no response returned and the lambda crashed)',\n type: 'integer',\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 200,\n changelog: [\n { version: '0.4.0', prs: [228] },\n { version: '0.2.0', prs: [163] },\n ],\n },\n};\n\nexport type AttributeValue = string | number | boolean | Array | Array | Array;\n\nexport type Attributes = {\n [AI_CITATIONS]?: AI_CITATIONS_TYPE;\n [AI_COMPLETION_TOKENS_USED]?: AI_COMPLETION_TOKENS_USED_TYPE;\n [AI_DOCUMENTS]?: AI_DOCUMENTS_TYPE;\n [AI_FINISH_REASON]?: AI_FINISH_REASON_TYPE;\n [AI_FREQUENCY_PENALTY]?: AI_FREQUENCY_PENALTY_TYPE;\n [AI_FUNCTION_CALL]?: AI_FUNCTION_CALL_TYPE;\n [AI_GENERATION_ID]?: AI_GENERATION_ID_TYPE;\n [AI_INPUT_MESSAGES]?: AI_INPUT_MESSAGES_TYPE;\n [AI_IS_SEARCH_REQUIRED]?: AI_IS_SEARCH_REQUIRED_TYPE;\n [AI_METADATA]?: AI_METADATA_TYPE;\n [AI_MODEL_ID]?: AI_MODEL_ID_TYPE;\n [AI_MODEL_PROVIDER]?: AI_MODEL_PROVIDER_TYPE;\n [AI_PIPELINE_NAME]?: AI_PIPELINE_NAME_TYPE;\n [AI_PREAMBLE]?: AI_PREAMBLE_TYPE;\n [AI_PRESENCE_PENALTY]?: AI_PRESENCE_PENALTY_TYPE;\n [AI_PROMPT_TOKENS_USED]?: AI_PROMPT_TOKENS_USED_TYPE;\n [AI_RAW_PROMPTING]?: AI_RAW_PROMPTING_TYPE;\n [AI_RESPONSES]?: AI_RESPONSES_TYPE;\n [AI_RESPONSE_FORMAT]?: AI_RESPONSE_FORMAT_TYPE;\n [AI_SEARCH_QUERIES]?: AI_SEARCH_QUERIES_TYPE;\n [AI_SEARCH_RESULTS]?: AI_SEARCH_RESULTS_TYPE;\n [AI_SEED]?: AI_SEED_TYPE;\n [AI_STREAMING]?: AI_STREAMING_TYPE;\n [AI_TAGS]?: AI_TAGS_TYPE;\n [AI_TEMPERATURE]?: AI_TEMPERATURE_TYPE;\n [AI_TEXTS]?: AI_TEXTS_TYPE;\n [AI_TOOLS]?: AI_TOOLS_TYPE;\n [AI_TOOL_CALLS]?: AI_TOOL_CALLS_TYPE;\n [AI_TOP_K]?: AI_TOP_K_TYPE;\n [AI_TOP_P]?: AI_TOP_P_TYPE;\n [AI_TOTAL_COST]?: AI_TOTAL_COST_TYPE;\n [AI_TOTAL_TOKENS_USED]?: AI_TOTAL_TOKENS_USED_TYPE;\n [AI_WARNINGS]?: AI_WARNINGS_TYPE;\n [ANGULAR_VERSION]?: ANGULAR_VERSION_TYPE;\n [APP_APP_BUILD]?: APP_APP_BUILD_TYPE;\n [APP_APP_IDENTIFIER]?: APP_APP_IDENTIFIER_TYPE;\n [APP_APP_NAME]?: APP_APP_NAME_TYPE;\n [APP_APP_START_TIME]?: APP_APP_START_TIME_TYPE;\n [APP_APP_VERSION]?: APP_APP_VERSION_TYPE;\n [APP_BUILD]?: APP_BUILD_TYPE;\n [APP_IDENTIFIER]?: APP_IDENTIFIER_TYPE;\n [APP_IN_FOREGROUND]?: APP_IN_FOREGROUND_TYPE;\n [APP_NAME]?: APP_NAME_TYPE;\n [APP_START_COLD]?: APP_START_COLD_TYPE;\n [APP_START_TIME]?: APP_START_TIME_TYPE;\n [APP_START_TYPE]?: APP_START_TYPE_TYPE;\n [APP_START_WARM]?: APP_START_WARM_TYPE;\n [APP_VERSION]?: APP_VERSION_TYPE;\n [APP_VITALS_FRAMES_DELAY_VALUE]?: APP_VITALS_FRAMES_DELAY_VALUE_TYPE;\n [APP_VITALS_FRAMES_FROZEN_COUNT]?: APP_VITALS_FRAMES_FROZEN_COUNT_TYPE;\n [APP_VITALS_FRAMES_SLOW_COUNT]?: APP_VITALS_FRAMES_SLOW_COUNT_TYPE;\n [APP_VITALS_FRAMES_TOTAL_COUNT]?: APP_VITALS_FRAMES_TOTAL_COUNT_TYPE;\n [APP_VITALS_START_COLD_VALUE]?: APP_VITALS_START_COLD_VALUE_TYPE;\n [APP_VITALS_START_PREWARMED]?: APP_VITALS_START_PREWARMED_TYPE;\n [APP_VITALS_START_REASON]?: APP_VITALS_START_REASON_TYPE;\n [APP_VITALS_START_SCREEN]?: APP_VITALS_START_SCREEN_TYPE;\n [APP_VITALS_START_TYPE]?: APP_VITALS_START_TYPE_TYPE;\n [APP_VITALS_START_WARM_VALUE]?: APP_VITALS_START_WARM_VALUE_TYPE;\n [APP_VITALS_TTFD_VALUE]?: APP_VITALS_TTFD_VALUE_TYPE;\n [APP_VITALS_TTID_VALUE]?: APP_VITALS_TTID_VALUE_TYPE;\n [ART_GC_BLOCKING_COUNT]?: ART_GC_BLOCKING_COUNT_TYPE;\n [ART_GC_BLOCKING_TIME]?: ART_GC_BLOCKING_TIME_TYPE;\n [ART_GC_PRE_OOME_COUNT]?: ART_GC_PRE_OOME_COUNT_TYPE;\n [ART_GC_TOTAL_COUNT]?: ART_GC_TOTAL_COUNT_TYPE;\n [ART_GC_TOTAL_TIME]?: ART_GC_TOTAL_TIME_TYPE;\n [ART_GC_WAITING_TIME]?: ART_GC_WAITING_TIME_TYPE;\n [ART_MEMORY_FREE]?: ART_MEMORY_FREE_TYPE;\n [ART_MEMORY_FREE_UNTIL_GC]?: ART_MEMORY_FREE_UNTIL_GC_TYPE;\n [ART_MEMORY_FREE_UNTIL_OOME]?: ART_MEMORY_FREE_UNTIL_OOME_TYPE;\n [ART_MEMORY_MAX]?: ART_MEMORY_MAX_TYPE;\n [ART_MEMORY_TOTAL]?: ART_MEMORY_TOTAL_TYPE;\n [AWS_CLOUDWATCH_LOGS_LOG_GROUP]?: AWS_CLOUDWATCH_LOGS_LOG_GROUP_TYPE;\n [AWS_CLOUDWATCH_LOGS_LOG_STREAM]?: AWS_CLOUDWATCH_LOGS_LOG_STREAM_TYPE;\n [AWS_CLOUDWATCH_LOGS_URL]?: AWS_CLOUDWATCH_LOGS_URL_TYPE;\n [AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS]?: AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS_TYPE;\n [AWS_DYNAMODB_CONSISTENT_READ]?: AWS_DYNAMODB_CONSISTENT_READ_TYPE;\n [AWS_DYNAMODB_CONSUMED_CAPACITY]?: AWS_DYNAMODB_CONSUMED_CAPACITY_TYPE;\n [AWS_DYNAMODB_COUNT]?: AWS_DYNAMODB_COUNT_TYPE;\n [AWS_DYNAMODB_EXCLUSIVE_START_TABLE]?: AWS_DYNAMODB_EXCLUSIVE_START_TABLE_TYPE;\n [AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES]?: AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES_TYPE;\n [AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES]?: AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES_TYPE;\n [AWS_DYNAMODB_INDEX_NAME]?: AWS_DYNAMODB_INDEX_NAME_TYPE;\n [AWS_DYNAMODB_ITEM_COLLECTION_METRICS]?: AWS_DYNAMODB_ITEM_COLLECTION_METRICS_TYPE;\n [AWS_DYNAMODB_LIMIT]?: AWS_DYNAMODB_LIMIT_TYPE;\n [AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES]?: AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES_TYPE;\n [AWS_DYNAMODB_PROJECTION]?: AWS_DYNAMODB_PROJECTION_TYPE;\n [AWS_DYNAMODB_PROVISIONED_READ_CAPACITY]?: AWS_DYNAMODB_PROVISIONED_READ_CAPACITY_TYPE;\n [AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY]?: AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY_TYPE;\n [AWS_DYNAMODB_SCANNED_COUNT]?: AWS_DYNAMODB_SCANNED_COUNT_TYPE;\n [AWS_DYNAMODB_SCAN_FORWARD]?: AWS_DYNAMODB_SCAN_FORWARD_TYPE;\n [AWS_DYNAMODB_SEGMENT]?: AWS_DYNAMODB_SEGMENT_TYPE;\n [AWS_DYNAMODB_SELECT]?: AWS_DYNAMODB_SELECT_TYPE;\n [AWS_DYNAMODB_TABLE_COUNT]?: AWS_DYNAMODB_TABLE_COUNT_TYPE;\n [AWS_DYNAMODB_TABLE_NAMES]?: AWS_DYNAMODB_TABLE_NAMES_TYPE;\n [AWS_DYNAMODB_TOTAL_SEGMENTS]?: AWS_DYNAMODB_TOTAL_SEGMENTS_TYPE;\n [AWS_EXTENDED_REQUEST_ID]?: AWS_EXTENDED_REQUEST_ID_TYPE;\n [AWS_KINESIS_STREAM_NAME]?: AWS_KINESIS_STREAM_NAME_TYPE;\n [_AWS_KINESIS_STREAM_NAME]?: _AWS_KINESIS_STREAM_NAME_TYPE;\n [AWS_LAMBDA_AWS_REQUEST_ID]?: AWS_LAMBDA_AWS_REQUEST_ID_TYPE;\n [AWS_LAMBDA_EXECUTION_DURATION_IN_MILLIS]?: AWS_LAMBDA_EXECUTION_DURATION_IN_MILLIS_TYPE;\n [AWS_LAMBDA_FUNCTION_NAME]?: AWS_LAMBDA_FUNCTION_NAME_TYPE;\n [AWS_LAMBDA_FUNCTION_VERSION]?: AWS_LAMBDA_FUNCTION_VERSION_TYPE;\n [AWS_LAMBDA_INVOKED_ARN]?: AWS_LAMBDA_INVOKED_ARN_TYPE;\n [AWS_LAMBDA_INVOKED_FUNCTION_ARN]?: AWS_LAMBDA_INVOKED_FUNCTION_ARN_TYPE;\n [AWS_LAMBDA_REMAINING_TIME_IN_MILLIS]?: AWS_LAMBDA_REMAINING_TIME_IN_MILLIS_TYPE;\n [AWS_LOG_GROUP_NAMES]?: AWS_LOG_GROUP_NAMES_TYPE;\n [AWS_LOG_STREAM_NAMES]?: AWS_LOG_STREAM_NAMES_TYPE;\n [AWS_REQUEST_EXTENDED_ID]?: AWS_REQUEST_EXTENDED_ID_TYPE;\n [AWS_REQUEST_ID]?: AWS_REQUEST_ID_TYPE;\n [_AWS_REQUEST_ID]?: _AWS_REQUEST_ID_TYPE;\n [AWS_S3_BUCKET]?: AWS_S3_BUCKET_TYPE;\n [AWS_SECRETSMANAGER_SECRET_ARN]?: AWS_SECRETSMANAGER_SECRET_ARN_TYPE;\n [AWS_SNS_TOPIC_ARN]?: AWS_SNS_TOPIC_ARN_TYPE;\n [AWS_STEP_FUNCTIONS_ACTIVITY_ARN]?: AWS_STEP_FUNCTIONS_ACTIVITY_ARN_TYPE;\n [AWS_STEP_FUNCTIONS_STATE_MACHINE_ARN]?: AWS_STEP_FUNCTIONS_STATE_MACHINE_ARN_TYPE;\n [BLOCKED_MAIN_THREAD]?: BLOCKED_MAIN_THREAD_TYPE;\n [BROWSER_NAME]?: BROWSER_NAME_TYPE;\n [BROWSER_PERFORMANCE_NAVIGATION_ACTIVATION_START]?: BROWSER_PERFORMANCE_NAVIGATION_ACTIVATION_START_TYPE;\n [BROWSER_PERFORMANCE_TIME_ORIGIN]?: BROWSER_PERFORMANCE_TIME_ORIGIN_TYPE;\n [BROWSER_REPORT_TYPE]?: BROWSER_REPORT_TYPE_TYPE;\n [BROWSER_SCRIPT_INVOKER]?: BROWSER_SCRIPT_INVOKER_TYPE;\n [BROWSER_SCRIPT_INVOKER_TYPE]?: BROWSER_SCRIPT_INVOKER_TYPE_TYPE;\n [BROWSER_SCRIPT_SOURCE_CHAR_POSITION]?: BROWSER_SCRIPT_SOURCE_CHAR_POSITION_TYPE;\n [BROWSER_VERSION]?: BROWSER_VERSION_TYPE;\n [BROWSER_WEB_VITAL_CLS_REPORT_EVENT]?: BROWSER_WEB_VITAL_CLS_REPORT_EVENT_TYPE;\n [BROWSER_WEB_VITAL_CLS_SOURCE_KEY]?: BROWSER_WEB_VITAL_CLS_SOURCE_KEY_TYPE;\n [BROWSER_WEB_VITAL_CLS_VALUE]?: BROWSER_WEB_VITAL_CLS_VALUE_TYPE;\n [BROWSER_WEB_VITAL_FCP_VALUE]?: BROWSER_WEB_VITAL_FCP_VALUE_TYPE;\n [BROWSER_WEB_VITAL_FP_VALUE]?: BROWSER_WEB_VITAL_FP_VALUE_TYPE;\n [BROWSER_WEB_VITAL_INP_VALUE]?: BROWSER_WEB_VITAL_INP_VALUE_TYPE;\n [BROWSER_WEB_VITAL_LCP_ELEMENT]?: BROWSER_WEB_VITAL_LCP_ELEMENT_TYPE;\n [BROWSER_WEB_VITAL_LCP_ID]?: BROWSER_WEB_VITAL_LCP_ID_TYPE;\n [BROWSER_WEB_VITAL_LCP_LOAD_TIME]?: BROWSER_WEB_VITAL_LCP_LOAD_TIME_TYPE;\n [BROWSER_WEB_VITAL_LCP_RENDER_TIME]?: BROWSER_WEB_VITAL_LCP_RENDER_TIME_TYPE;\n [BROWSER_WEB_VITAL_LCP_REPORT_EVENT]?: BROWSER_WEB_VITAL_LCP_REPORT_EVENT_TYPE;\n [BROWSER_WEB_VITAL_LCP_SIZE]?: BROWSER_WEB_VITAL_LCP_SIZE_TYPE;\n [BROWSER_WEB_VITAL_LCP_URL]?: BROWSER_WEB_VITAL_LCP_URL_TYPE;\n [BROWSER_WEB_VITAL_LCP_VALUE]?: BROWSER_WEB_VITAL_LCP_VALUE_TYPE;\n [BROWSER_WEB_VITAL_TTFB_REQUEST_TIME]?: BROWSER_WEB_VITAL_TTFB_REQUEST_TIME_TYPE;\n [BROWSER_WEB_VITAL_TTFB_VALUE]?: BROWSER_WEB_VITAL_TTFB_VALUE_TYPE;\n [CACHE_HIT]?: CACHE_HIT_TYPE;\n [CACHE_ITEM_SIZE]?: CACHE_ITEM_SIZE_TYPE;\n [CACHE_KEY]?: CACHE_KEY_TYPE;\n [CACHE_OPERATION]?: CACHE_OPERATION_TYPE;\n [CACHE_TTL]?: CACHE_TTL_TYPE;\n [CACHE_WRITE]?: CACHE_WRITE_TYPE;\n [CHANNEL]?: CHANNEL_TYPE;\n [CLIENT_ADDRESS]?: CLIENT_ADDRESS_TYPE;\n [CLIENT_PORT]?: CLIENT_PORT_TYPE;\n [CLOUDFLARE_D1_DURATION]?: CLOUDFLARE_D1_DURATION_TYPE;\n [CLOUDFLARE_D1_QUERY_TYPE]?: CLOUDFLARE_D1_QUERY_TYPE_TYPE;\n [CLOUDFLARE_D1_ROWS_READ]?: CLOUDFLARE_D1_ROWS_READ_TYPE;\n [CLOUDFLARE_D1_ROWS_WRITTEN]?: CLOUDFLARE_D1_ROWS_WRITTEN_TYPE;\n [CLOUDFLARE_DURABLE_OBJECT_QUERY_BINDINGS]?: CLOUDFLARE_DURABLE_OBJECT_QUERY_BINDINGS_TYPE;\n [CLOUDFLARE_DURABLE_OBJECT_RESPONSE_ROWS_READ]?: CLOUDFLARE_DURABLE_OBJECT_RESPONSE_ROWS_READ_TYPE;\n [CLOUDFLARE_DURABLE_OBJECT_RESPONSE_ROWS_WRITTEN]?: CLOUDFLARE_DURABLE_OBJECT_RESPONSE_ROWS_WRITTEN_TYPE;\n [CLOUDFLARE_R2_BUCKET]?: CLOUDFLARE_R2_BUCKET_TYPE;\n [CLOUDFLARE_R2_OPERATION]?: CLOUDFLARE_R2_OPERATION_TYPE;\n [CLOUDFLARE_R2_REQUEST_DELIMITER]?: CLOUDFLARE_R2_REQUEST_DELIMITER_TYPE;\n [CLOUDFLARE_R2_REQUEST_KEY]?: CLOUDFLARE_R2_REQUEST_KEY_TYPE;\n [CLOUDFLARE_R2_REQUEST_PART_NUMBER]?: CLOUDFLARE_R2_REQUEST_PART_NUMBER_TYPE;\n [CLOUDFLARE_R2_REQUEST_PREFIX]?: CLOUDFLARE_R2_REQUEST_PREFIX_TYPE;\n [CLOUDFLARE_WORKFLOW_ATTEMPT]?: CLOUDFLARE_WORKFLOW_ATTEMPT_TYPE;\n [CLOUDFLARE_WORKFLOW_RETRIES_BACKOFF]?: CLOUDFLARE_WORKFLOW_RETRIES_BACKOFF_TYPE;\n [CLOUDFLARE_WORKFLOW_RETRIES_DELAY]?: CLOUDFLARE_WORKFLOW_RETRIES_DELAY_TYPE;\n [CLOUDFLARE_WORKFLOW_RETRIES_LIMIT]?: CLOUDFLARE_WORKFLOW_RETRIES_LIMIT_TYPE;\n [CLOUDFLARE_WORKFLOW_TIMEOUT]?: CLOUDFLARE_WORKFLOW_TIMEOUT_TYPE;\n [CLOUD_ACCOUNT_ID]?: CLOUD_ACCOUNT_ID_TYPE;\n [CLOUD_AVAILABILITY_ZONE]?: CLOUD_AVAILABILITY_ZONE_TYPE;\n [CLOUD_PLATFORM]?: CLOUD_PLATFORM_TYPE;\n [CLOUD_PROVIDER]?: CLOUD_PROVIDER_TYPE;\n [CLOUD_REGION]?: CLOUD_REGION_TYPE;\n [CLOUD_RESOURCE_ID]?: CLOUD_RESOURCE_ID_TYPE;\n [CLS]?: CLS_TYPE;\n [CLS_SOURCE_KEY]?: CLS_SOURCE_KEY_TYPE;\n [CODE_FILEPATH]?: CODE_FILEPATH_TYPE;\n [CODE_FILE_PATH]?: CODE_FILE_PATH_TYPE;\n [CODE_FUNCTION]?: CODE_FUNCTION_TYPE;\n [CODE_FUNCTION_NAME]?: CODE_FUNCTION_NAME_TYPE;\n [CODE_LINENO]?: CODE_LINENO_TYPE;\n [CODE_LINE_NUMBER]?: CODE_LINE_NUMBER_TYPE;\n [CODE_NAMESPACE]?: CODE_NAMESPACE_TYPE;\n [CONNECTIONTYPE]?: CONNECTIONTYPE_TYPE;\n [CONNECTION_RTT]?: CONNECTION_RTT_TYPE;\n [CULTURE_CALENDAR]?: CULTURE_CALENDAR_TYPE;\n [CULTURE_DISPLAY_NAME]?: CULTURE_DISPLAY_NAME_TYPE;\n [CULTURE_IS_24_HOUR_FORMAT]?: CULTURE_IS_24_HOUR_FORMAT_TYPE;\n [CULTURE_LOCALE]?: CULTURE_LOCALE_TYPE;\n [CULTURE_TIMEZONE]?: CULTURE_TIMEZONE_TYPE;\n [DB_COLLECTION_NAME]?: DB_COLLECTION_NAME_TYPE;\n [DB_DRIVER_NAME]?: DB_DRIVER_NAME_TYPE;\n [DB_NAME]?: DB_NAME_TYPE;\n [DB_NAMESPACE]?: DB_NAMESPACE_TYPE;\n [DB_OPERATION]?: DB_OPERATION_TYPE;\n [DB_OPERATION_BATCH_SIZE]?: DB_OPERATION_BATCH_SIZE_TYPE;\n [DB_OPERATION_NAME]?: DB_OPERATION_NAME_TYPE;\n [DB_QUERY_PARAMETER_KEY]?: DB_QUERY_PARAMETER_KEY_TYPE;\n [DB_QUERY_SUMMARY]?: DB_QUERY_SUMMARY_TYPE;\n [DB_QUERY_TEXT]?: DB_QUERY_TEXT_TYPE;\n [DB_REDIS_CONNECTION]?: DB_REDIS_CONNECTION_TYPE;\n [DB_REDIS_KEY]?: DB_REDIS_KEY_TYPE;\n [DB_REDIS_PARAMETERS]?: DB_REDIS_PARAMETERS_TYPE;\n [DB_RESPONSE_STATUS_CODE]?: DB_RESPONSE_STATUS_CODE_TYPE;\n [DB_SQL_BINDINGS]?: DB_SQL_BINDINGS_TYPE;\n [DB_STATEMENT]?: DB_STATEMENT_TYPE;\n [DB_STORED_PROCEDURE_NAME]?: DB_STORED_PROCEDURE_NAME_TYPE;\n [DB_SYSTEM]?: DB_SYSTEM_TYPE;\n [DB_SYSTEM_NAME]?: DB_SYSTEM_NAME_TYPE;\n [DB_USER]?: DB_USER_TYPE;\n [DEVICEMEMORY]?: DEVICEMEMORY_TYPE;\n [DEVICE_ARCHS]?: DEVICE_ARCHS_TYPE;\n [DEVICE_BATTERY_LEVEL]?: DEVICE_BATTERY_LEVEL_TYPE;\n [DEVICE_BATTERY_TEMPERATURE]?: DEVICE_BATTERY_TEMPERATURE_TYPE;\n [DEVICE_BOOT_TIME]?: DEVICE_BOOT_TIME_TYPE;\n [DEVICE_BRAND]?: DEVICE_BRAND_TYPE;\n [DEVICE_CHARGING]?: DEVICE_CHARGING_TYPE;\n [DEVICE_CHIPSET]?: DEVICE_CHIPSET_TYPE;\n [DEVICE_CLASS]?: DEVICE_CLASS_TYPE;\n [DEVICE_CONNECTION_TYPE]?: DEVICE_CONNECTION_TYPE_TYPE;\n [DEVICE_CPU_DESCRIPTION]?: DEVICE_CPU_DESCRIPTION_TYPE;\n [DEVICE_EXTERNAL_FREE_STORAGE]?: DEVICE_EXTERNAL_FREE_STORAGE_TYPE;\n [DEVICE_EXTERNAL_STORAGE_SIZE]?: DEVICE_EXTERNAL_STORAGE_SIZE_TYPE;\n [DEVICE_FAMILY]?: DEVICE_FAMILY_TYPE;\n [DEVICE_FREE_MEMORY]?: DEVICE_FREE_MEMORY_TYPE;\n [DEVICE_FREE_STORAGE]?: DEVICE_FREE_STORAGE_TYPE;\n [DEVICE_ID]?: DEVICE_ID_TYPE;\n [DEVICE_LOCALE]?: DEVICE_LOCALE_TYPE;\n [DEVICE_LOW_MEMORY]?: DEVICE_LOW_MEMORY_TYPE;\n [DEVICE_LOW_POWER_MODE]?: DEVICE_LOW_POWER_MODE_TYPE;\n [DEVICE_MANUFACTURER]?: DEVICE_MANUFACTURER_TYPE;\n [DEVICE_MEMORY_ESTIMATED_CAPACITY]?: DEVICE_MEMORY_ESTIMATED_CAPACITY_TYPE;\n [DEVICE_MEMORY_SIZE]?: DEVICE_MEMORY_SIZE_TYPE;\n [DEVICE_MODEL]?: DEVICE_MODEL_TYPE;\n [DEVICE_MODEL_ID]?: DEVICE_MODEL_ID_TYPE;\n [DEVICE_NAME]?: DEVICE_NAME_TYPE;\n [DEVICE_ONLINE]?: DEVICE_ONLINE_TYPE;\n [DEVICE_ORIENTATION]?: DEVICE_ORIENTATION_TYPE;\n [DEVICE_PROCESSOR_COUNT]?: DEVICE_PROCESSOR_COUNT_TYPE;\n [DEVICE_PROCESSOR_FREQUENCY]?: DEVICE_PROCESSOR_FREQUENCY_TYPE;\n [DEVICE_SCREEN_DENSITY]?: DEVICE_SCREEN_DENSITY_TYPE;\n [DEVICE_SCREEN_DPI]?: DEVICE_SCREEN_DPI_TYPE;\n [DEVICE_SCREEN_HEIGHT_PIXELS]?: DEVICE_SCREEN_HEIGHT_PIXELS_TYPE;\n [DEVICE_SCREEN_WIDTH_PIXELS]?: DEVICE_SCREEN_WIDTH_PIXELS_TYPE;\n [DEVICE_SIMULATOR]?: DEVICE_SIMULATOR_TYPE;\n [DEVICE_STORAGE_SIZE]?: DEVICE_STORAGE_SIZE_TYPE;\n [DEVICE_THERMAL_STATE]?: DEVICE_THERMAL_STATE_TYPE;\n [DEVICE_TIMEZONE]?: DEVICE_TIMEZONE_TYPE;\n [DEVICE_USABLE_MEMORY]?: DEVICE_USABLE_MEMORY_TYPE;\n [DIST]?: DIST_TYPE;\n [EFFECTIVECONNECTIONTYPE]?: EFFECTIVECONNECTIONTYPE_TYPE;\n [ENVIRONMENT]?: ENVIRONMENT_TYPE;\n [ERROR_TYPE]?: ERROR_TYPE_TYPE;\n [EVENT_ID]?: EVENT_ID_TYPE;\n [EVENT_NAME]?: EVENT_NAME_TYPE;\n [EXCEPTION_ESCAPED]?: EXCEPTION_ESCAPED_TYPE;\n [EXCEPTION_MESSAGE]?: EXCEPTION_MESSAGE_TYPE;\n [EXCEPTION_STACKTRACE]?: EXCEPTION_STACKTRACE_TYPE;\n [EXCEPTION_TYPE]?: EXCEPTION_TYPE_TYPE;\n [FAAS_COLDSTART]?: FAAS_COLDSTART_TYPE;\n [FAAS_CRON]?: FAAS_CRON_TYPE;\n [FAAS_DURATION_IN_MS]?: FAAS_DURATION_IN_MS_TYPE;\n [FAAS_ENTRY_POINT]?: FAAS_ENTRY_POINT_TYPE;\n [FAAS_EXECUTION]?: FAAS_EXECUTION_TYPE;\n [FAAS_ID]?: FAAS_ID_TYPE;\n [FAAS_IDENTITY]?: FAAS_IDENTITY_TYPE;\n [FAAS_INVOCATION_ID]?: FAAS_INVOCATION_ID_TYPE;\n [FAAS_INVOKED_NAME]?: FAAS_INVOKED_NAME_TYPE;\n [FAAS_INVOKED_PROVIDER]?: FAAS_INVOKED_PROVIDER_TYPE;\n [FAAS_INVOKED_REGION]?: FAAS_INVOKED_REGION_TYPE;\n [FAAS_NAME]?: FAAS_NAME_TYPE;\n [FAAS_TIME]?: FAAS_TIME_TYPE;\n [FAAS_TRIGGER]?: FAAS_TRIGGER_TYPE;\n [FAAS_VERSION]?: FAAS_VERSION_TYPE;\n [FCP]?: FCP_TYPE;\n [FLAG_EVALUATION_KEY]?: FLAG_EVALUATION_KEY_TYPE;\n [FP]?: FP_TYPE;\n [FRAMES_DELAY]?: FRAMES_DELAY_TYPE;\n [FRAMES_FROZEN]?: FRAMES_FROZEN_TYPE;\n [FRAMES_FROZEN_RATE]?: FRAMES_FROZEN_RATE_TYPE;\n [FRAMES_SLOW]?: FRAMES_SLOW_TYPE;\n [FRAMES_SLOW_RATE]?: FRAMES_SLOW_RATE_TYPE;\n [FRAMES_TOTAL]?: FRAMES_TOTAL_TYPE;\n [FS_ERROR]?: FS_ERROR_TYPE;\n [GCP_FUNCTION_CONTEXT_EVENT_ID]?: GCP_FUNCTION_CONTEXT_EVENT_ID_TYPE;\n [GCP_FUNCTION_CONTEXT_EVENT_TYPE]?: GCP_FUNCTION_CONTEXT_EVENT_TYPE_TYPE;\n [GCP_FUNCTION_CONTEXT_ID]?: GCP_FUNCTION_CONTEXT_ID_TYPE;\n [GCP_FUNCTION_CONTEXT_RESOURCE]?: GCP_FUNCTION_CONTEXT_RESOURCE_TYPE;\n [GCP_FUNCTION_CONTEXT_SOURCE]?: GCP_FUNCTION_CONTEXT_SOURCE_TYPE;\n [GCP_FUNCTION_CONTEXT_SPECVERSION]?: GCP_FUNCTION_CONTEXT_SPECVERSION_TYPE;\n [GCP_FUNCTION_CONTEXT_TIME]?: GCP_FUNCTION_CONTEXT_TIME_TYPE;\n [GCP_FUNCTION_CONTEXT_TIMESTAMP]?: GCP_FUNCTION_CONTEXT_TIMESTAMP_TYPE;\n [GCP_FUNCTION_CONTEXT_TYPE]?: GCP_FUNCTION_CONTEXT_TYPE_TYPE;\n [GCP_PROJECT_ID]?: GCP_PROJECT_ID_TYPE;\n [GEN_AI_AGENT_NAME]?: GEN_AI_AGENT_NAME_TYPE;\n [GEN_AI_CONTEXT_UTILIZATION]?: GEN_AI_CONTEXT_UTILIZATION_TYPE;\n [GEN_AI_CONTEXT_WINDOW_SIZE]?: GEN_AI_CONTEXT_WINDOW_SIZE_TYPE;\n [GEN_AI_CONVERSATION_ID]?: GEN_AI_CONVERSATION_ID_TYPE;\n [GEN_AI_COST_CACHE_CREATION_INPUT_TOKENS]?: GEN_AI_COST_CACHE_CREATION_INPUT_TOKENS_TYPE;\n [GEN_AI_COST_CACHE_READ_INPUT_TOKENS]?: GEN_AI_COST_CACHE_READ_INPUT_TOKENS_TYPE;\n [GEN_AI_COST_INPUT_TOKENS]?: GEN_AI_COST_INPUT_TOKENS_TYPE;\n [GEN_AI_COST_OUTPUT_TOKENS]?: GEN_AI_COST_OUTPUT_TOKENS_TYPE;\n [GEN_AI_COST_REASONING_OUTPUT_TOKENS]?: GEN_AI_COST_REASONING_OUTPUT_TOKENS_TYPE;\n [GEN_AI_COST_TOTAL_TOKENS]?: GEN_AI_COST_TOTAL_TOKENS_TYPE;\n [GEN_AI_EMBEDDINGS_INPUT]?: GEN_AI_EMBEDDINGS_INPUT_TYPE;\n [GEN_AI_FUNCTION_ID]?: GEN_AI_FUNCTION_ID_TYPE;\n [GEN_AI_INPUT_MESSAGES]?: GEN_AI_INPUT_MESSAGES_TYPE;\n [GEN_AI_OPERATION_NAME]?: GEN_AI_OPERATION_NAME_TYPE;\n [GEN_AI_OPERATION_TYPE]?: GEN_AI_OPERATION_TYPE_TYPE;\n [GEN_AI_OUTPUT_MESSAGES]?: GEN_AI_OUTPUT_MESSAGES_TYPE;\n [GEN_AI_PIPELINE_NAME]?: GEN_AI_PIPELINE_NAME_TYPE;\n [GEN_AI_PROMPT]?: GEN_AI_PROMPT_TYPE;\n [GEN_AI_PROMPT_NAME]?: GEN_AI_PROMPT_NAME_TYPE;\n [GEN_AI_PROVIDER_NAME]?: GEN_AI_PROVIDER_NAME_TYPE;\n [GEN_AI_REQUEST_AVAILABLE_TOOLS]?: GEN_AI_REQUEST_AVAILABLE_TOOLS_TYPE;\n [GEN_AI_REQUEST_FREQUENCY_PENALTY]?: GEN_AI_REQUEST_FREQUENCY_PENALTY_TYPE;\n [GEN_AI_REQUEST_MAX_TOKENS]?: GEN_AI_REQUEST_MAX_TOKENS_TYPE;\n [GEN_AI_REQUEST_MESSAGES]?: GEN_AI_REQUEST_MESSAGES_TYPE;\n [GEN_AI_REQUEST_MODEL]?: GEN_AI_REQUEST_MODEL_TYPE;\n [GEN_AI_REQUEST_PRESENCE_PENALTY]?: GEN_AI_REQUEST_PRESENCE_PENALTY_TYPE;\n [GEN_AI_REQUEST_REASONING_EFFORT]?: GEN_AI_REQUEST_REASONING_EFFORT_TYPE;\n [GEN_AI_REQUEST_SEED]?: GEN_AI_REQUEST_SEED_TYPE;\n [GEN_AI_REQUEST_STOP_SEQUENCES]?: GEN_AI_REQUEST_STOP_SEQUENCES_TYPE;\n [GEN_AI_REQUEST_TEMPERATURE]?: GEN_AI_REQUEST_TEMPERATURE_TYPE;\n [GEN_AI_REQUEST_TOP_K]?: GEN_AI_REQUEST_TOP_K_TYPE;\n [GEN_AI_REQUEST_TOP_P]?: GEN_AI_REQUEST_TOP_P_TYPE;\n [GEN_AI_RESPONSE_FINISH_REASONS]?: GEN_AI_RESPONSE_FINISH_REASONS_TYPE;\n [GEN_AI_RESPONSE_ID]?: GEN_AI_RESPONSE_ID_TYPE;\n [GEN_AI_RESPONSE_MODEL]?: GEN_AI_RESPONSE_MODEL_TYPE;\n [GEN_AI_RESPONSE_STREAMING]?: GEN_AI_RESPONSE_STREAMING_TYPE;\n [GEN_AI_RESPONSE_TEXT]?: GEN_AI_RESPONSE_TEXT_TYPE;\n [GEN_AI_RESPONSE_TIME_TO_FIRST_CHUNK]?: GEN_AI_RESPONSE_TIME_TO_FIRST_CHUNK_TYPE;\n [GEN_AI_RESPONSE_TIME_TO_FIRST_TOKEN]?: GEN_AI_RESPONSE_TIME_TO_FIRST_TOKEN_TYPE;\n [GEN_AI_RESPONSE_TOKENS_PER_SECOND]?: GEN_AI_RESPONSE_TOKENS_PER_SECOND_TYPE;\n [GEN_AI_RESPONSE_TOOL_CALLS]?: GEN_AI_RESPONSE_TOOL_CALLS_TYPE;\n [GEN_AI_SYSTEM]?: GEN_AI_SYSTEM_TYPE;\n [GEN_AI_SYSTEM_INSTRUCTIONS]?: GEN_AI_SYSTEM_INSTRUCTIONS_TYPE;\n [GEN_AI_SYSTEM_MESSAGE]?: GEN_AI_SYSTEM_MESSAGE_TYPE;\n [GEN_AI_TOOL_CALL_ARGUMENTS]?: GEN_AI_TOOL_CALL_ARGUMENTS_TYPE;\n [GEN_AI_TOOL_CALL_RESULT]?: GEN_AI_TOOL_CALL_RESULT_TYPE;\n [GEN_AI_TOOL_DEFINITIONS]?: GEN_AI_TOOL_DEFINITIONS_TYPE;\n [GEN_AI_TOOL_DESCRIPTION]?: GEN_AI_TOOL_DESCRIPTION_TYPE;\n [GEN_AI_TOOL_INPUT]?: GEN_AI_TOOL_INPUT_TYPE;\n [GEN_AI_TOOL_MESSAGE]?: GEN_AI_TOOL_MESSAGE_TYPE;\n [GEN_AI_TOOL_NAME]?: GEN_AI_TOOL_NAME_TYPE;\n [GEN_AI_TOOL_OUTPUT]?: GEN_AI_TOOL_OUTPUT_TYPE;\n [GEN_AI_TOOL_TYPE]?: GEN_AI_TOOL_TYPE_TYPE;\n [GEN_AI_USAGE_CACHE_CREATION_INPUT_TOKENS]?: GEN_AI_USAGE_CACHE_CREATION_INPUT_TOKENS_TYPE;\n [GEN_AI_USAGE_CACHE_READ_INPUT_TOKENS]?: GEN_AI_USAGE_CACHE_READ_INPUT_TOKENS_TYPE;\n [GEN_AI_USAGE_COMPLETION_TOKENS]?: GEN_AI_USAGE_COMPLETION_TOKENS_TYPE;\n [GEN_AI_USAGE_INPUT_TOKENS]?: GEN_AI_USAGE_INPUT_TOKENS_TYPE;\n [GEN_AI_USAGE_INPUT_TOKENS_CACHED]?: GEN_AI_USAGE_INPUT_TOKENS_CACHED_TYPE;\n [GEN_AI_USAGE_INPUT_TOKENS_CACHE_WRITE]?: GEN_AI_USAGE_INPUT_TOKENS_CACHE_WRITE_TYPE;\n [GEN_AI_USAGE_OUTPUT_TOKENS]?: GEN_AI_USAGE_OUTPUT_TOKENS_TYPE;\n [GEN_AI_USAGE_OUTPUT_TOKENS_REASONING]?: GEN_AI_USAGE_OUTPUT_TOKENS_REASONING_TYPE;\n [GEN_AI_USAGE_PROMPT_TOKENS]?: GEN_AI_USAGE_PROMPT_TOKENS_TYPE;\n [GEN_AI_USAGE_REASONING_OUTPUT_TOKENS]?: GEN_AI_USAGE_REASONING_OUTPUT_TOKENS_TYPE;\n [GEN_AI_USAGE_TOTAL_TOKENS]?: GEN_AI_USAGE_TOTAL_TOKENS_TYPE;\n [GRAPHQL_DOCUMENT]?: GRAPHQL_DOCUMENT_TYPE;\n [GRAPHQL_OPERATION_NAME]?: GRAPHQL_OPERATION_NAME_TYPE;\n [GRAPHQL_OPERATION_TYPE]?: GRAPHQL_OPERATION_TYPE_TYPE;\n [HARDWARECONCURRENCY]?: HARDWARECONCURRENCY_TYPE;\n [HTTP_CLIENT_IP]?: HTTP_CLIENT_IP_TYPE;\n [HTTP_DECODED_RESPONSE_CONTENT_LENGTH]?: HTTP_DECODED_RESPONSE_CONTENT_LENGTH_TYPE;\n [HTTP_FLAVOR]?: HTTP_FLAVOR_TYPE;\n [HTTP_FRAGMENT]?: HTTP_FRAGMENT_TYPE;\n [HTTP_HOST]?: HTTP_HOST_TYPE;\n [HTTP_METHOD]?: HTTP_METHOD_TYPE;\n [HTTP_QUERY]?: HTTP_QUERY_TYPE;\n [HTTP_REQUEST_BODY_DATA]?: HTTP_REQUEST_BODY_DATA_TYPE;\n [HTTP_REQUEST_CONNECTION_END]?: HTTP_REQUEST_CONNECTION_END_TYPE;\n [HTTP_REQUEST_CONNECT_START]?: HTTP_REQUEST_CONNECT_START_TYPE;\n [HTTP_REQUEST_DOMAIN_LOOKUP_END]?: HTTP_REQUEST_DOMAIN_LOOKUP_END_TYPE;\n [HTTP_REQUEST_DOMAIN_LOOKUP_START]?: HTTP_REQUEST_DOMAIN_LOOKUP_START_TYPE;\n [HTTP_REQUEST_FETCH_START]?: HTTP_REQUEST_FETCH_START_TYPE;\n [HTTP_REQUEST_HEADER_KEY]?: HTTP_REQUEST_HEADER_KEY_TYPE;\n [HTTP_REQUEST_METHOD]?: HTTP_REQUEST_METHOD_TYPE;\n [_HTTP_REQUEST_METHOD]?: _HTTP_REQUEST_METHOD_TYPE;\n [HTTP_REQUEST_REDIRECT_END]?: HTTP_REQUEST_REDIRECT_END_TYPE;\n [HTTP_REQUEST_REDIRECT_START]?: HTTP_REQUEST_REDIRECT_START_TYPE;\n [HTTP_REQUEST_REQUEST_START]?: HTTP_REQUEST_REQUEST_START_TYPE;\n [HTTP_REQUEST_RESEND_COUNT]?: HTTP_REQUEST_RESEND_COUNT_TYPE;\n [HTTP_REQUEST_RESPONSE_END]?: HTTP_REQUEST_RESPONSE_END_TYPE;\n [HTTP_REQUEST_RESPONSE_START]?: HTTP_REQUEST_RESPONSE_START_TYPE;\n [HTTP_REQUEST_SAME_ORIGIN]?: HTTP_REQUEST_SAME_ORIGIN_TYPE;\n [HTTP_REQUEST_SECURE_CONNECTION_START]?: HTTP_REQUEST_SECURE_CONNECTION_START_TYPE;\n [HTTP_REQUEST_TIME_TO_FIRST_BYTE]?: HTTP_REQUEST_TIME_TO_FIRST_BYTE_TYPE;\n [HTTP_REQUEST_WORKER_START]?: HTTP_REQUEST_WORKER_START_TYPE;\n [HTTP_RESPONSE_BODY_SIZE]?: HTTP_RESPONSE_BODY_SIZE_TYPE;\n [HTTP_RESPONSE_CONTENT_LENGTH]?: HTTP_RESPONSE_CONTENT_LENGTH_TYPE;\n [HTTP_RESPONSE_HEADER_CONTENT_LENGTH]?: HTTP_RESPONSE_HEADER_CONTENT_LENGTH_TYPE;\n [HTTP_RESPONSE_HEADER_KEY]?: HTTP_RESPONSE_HEADER_KEY_TYPE;\n [HTTP_RESPONSE_SIZE]?: HTTP_RESPONSE_SIZE_TYPE;\n [HTTP_RESPONSE_STATUS_CODE]?: HTTP_RESPONSE_STATUS_CODE_TYPE;\n [HTTP_RESPONSE_TRANSFER_SIZE]?: HTTP_RESPONSE_TRANSFER_SIZE_TYPE;\n [HTTP_ROUTE]?: HTTP_ROUTE_TYPE;\n [HTTP_SCHEME]?: HTTP_SCHEME_TYPE;\n [HTTP_SERVER_NAME]?: HTTP_SERVER_NAME_TYPE;\n [HTTP_SERVER_REQUEST_TIME_IN_QUEUE]?: HTTP_SERVER_REQUEST_TIME_IN_QUEUE_TYPE;\n [HTTP_STATUS_CODE]?: HTTP_STATUS_CODE_TYPE;\n [HTTP_TARGET]?: HTTP_TARGET_TYPE;\n [HTTP_URL]?: HTTP_URL_TYPE;\n [HTTP_USER_AGENT]?: HTTP_USER_AGENT_TYPE;\n [ID]?: ID_TYPE;\n [INP]?: INP_TYPE;\n [JSONRPC_PROTOCOL_VERSION]?: JSONRPC_PROTOCOL_VERSION_TYPE;\n [JSONRPC_REQUEST_ID]?: JSONRPC_REQUEST_ID_TYPE;\n [JVM_GC_ACTION]?: JVM_GC_ACTION_TYPE;\n [JVM_GC_NAME]?: JVM_GC_NAME_TYPE;\n [JVM_MEMORY_POOL_NAME]?: JVM_MEMORY_POOL_NAME_TYPE;\n [JVM_MEMORY_TYPE]?: JVM_MEMORY_TYPE_TYPE;\n [JVM_THREAD_DAEMON]?: JVM_THREAD_DAEMON_TYPE;\n [JVM_THREAD_STATE]?: JVM_THREAD_STATE_TYPE;\n [KOA_NAME]?: KOA_NAME_TYPE;\n [KOA_TYPE]?: KOA_TYPE_TYPE;\n [LCP]?: LCP_TYPE;\n [LCP_ELEMENT]?: LCP_ELEMENT_TYPE;\n [LCP_ID]?: LCP_ID_TYPE;\n [LCP_LOADTIME]?: LCP_LOADTIME_TYPE;\n [LCP_RENDERTIME]?: LCP_RENDERTIME_TYPE;\n [LCP_SIZE]?: LCP_SIZE_TYPE;\n [LCP_URL]?: LCP_URL_TYPE;\n [LOGGER_NAME]?: LOGGER_NAME_TYPE;\n [MCP_CANCELLED_REASON]?: MCP_CANCELLED_REASON_TYPE;\n [MCP_CANCELLED_REQUEST_ID]?: MCP_CANCELLED_REQUEST_ID_TYPE;\n [MCP_CLIENT_NAME]?: MCP_CLIENT_NAME_TYPE;\n [MCP_CLIENT_TITLE]?: MCP_CLIENT_TITLE_TYPE;\n [MCP_CLIENT_VERSION]?: MCP_CLIENT_VERSION_TYPE;\n [MCP_LIFECYCLE_PHASE]?: MCP_LIFECYCLE_PHASE_TYPE;\n [MCP_LOGGING_DATA_TYPE]?: MCP_LOGGING_DATA_TYPE_TYPE;\n [MCP_LOGGING_LEVEL]?: MCP_LOGGING_LEVEL_TYPE;\n [MCP_LOGGING_LOGGER]?: MCP_LOGGING_LOGGER_TYPE;\n [MCP_LOGGING_MESSAGE]?: MCP_LOGGING_MESSAGE_TYPE;\n [MCP_METHOD_NAME]?: MCP_METHOD_NAME_TYPE;\n [MCP_PROGRESS_CURRENT]?: MCP_PROGRESS_CURRENT_TYPE;\n [MCP_PROGRESS_MESSAGE]?: MCP_PROGRESS_MESSAGE_TYPE;\n [MCP_PROGRESS_PERCENTAGE]?: MCP_PROGRESS_PERCENTAGE_TYPE;\n [MCP_PROGRESS_TOKEN]?: MCP_PROGRESS_TOKEN_TYPE;\n [MCP_PROGRESS_TOTAL]?: MCP_PROGRESS_TOTAL_TYPE;\n [MCP_PROMPT_NAME]?: MCP_PROMPT_NAME_TYPE;\n [MCP_PROMPT_RESULT_DESCRIPTION]?: MCP_PROMPT_RESULT_DESCRIPTION_TYPE;\n [MCP_PROMPT_RESULT_MESSAGE_CONTENT]?: MCP_PROMPT_RESULT_MESSAGE_CONTENT_TYPE;\n [MCP_PROMPT_RESULT_MESSAGE_COUNT]?: MCP_PROMPT_RESULT_MESSAGE_COUNT_TYPE;\n [MCP_PROMPT_RESULT_MESSAGE_ROLE]?: MCP_PROMPT_RESULT_MESSAGE_ROLE_TYPE;\n [MCP_PROTOCOL_READY]?: MCP_PROTOCOL_READY_TYPE;\n [MCP_PROTOCOL_VERSION]?: MCP_PROTOCOL_VERSION_TYPE;\n [MCP_REQUEST_ARGUMENT_KEY]?: MCP_REQUEST_ARGUMENT_KEY_TYPE;\n [MCP_REQUEST_ARGUMENT_NAME]?: MCP_REQUEST_ARGUMENT_NAME_TYPE;\n [MCP_REQUEST_ARGUMENT_URI]?: MCP_REQUEST_ARGUMENT_URI_TYPE;\n [MCP_REQUEST_ID]?: MCP_REQUEST_ID_TYPE;\n [MCP_RESOURCE_PROTOCOL]?: MCP_RESOURCE_PROTOCOL_TYPE;\n [MCP_RESOURCE_URI]?: MCP_RESOURCE_URI_TYPE;\n [MCP_SERVER_NAME]?: MCP_SERVER_NAME_TYPE;\n [MCP_SERVER_TITLE]?: MCP_SERVER_TITLE_TYPE;\n [MCP_SERVER_VERSION]?: MCP_SERVER_VERSION_TYPE;\n [MCP_SESSION_ID]?: MCP_SESSION_ID_TYPE;\n [MCP_TOOL_NAME]?: MCP_TOOL_NAME_TYPE;\n [MCP_TOOL_RESULT_CONTENT]?: MCP_TOOL_RESULT_CONTENT_TYPE;\n [MCP_TOOL_RESULT_CONTENT_COUNT]?: MCP_TOOL_RESULT_CONTENT_COUNT_TYPE;\n [MCP_TOOL_RESULT_IS_ERROR]?: MCP_TOOL_RESULT_IS_ERROR_TYPE;\n [MCP_TRANSPORT]?: MCP_TRANSPORT_TYPE;\n [MDC_KEY]?: MDC_KEY_TYPE;\n [MESSAGING_BATCH_MESSAGE_COUNT]?: MESSAGING_BATCH_MESSAGE_COUNT_TYPE;\n [MESSAGING_DESTINATION]?: MESSAGING_DESTINATION_TYPE;\n [MESSAGING_DESTINATION_CONNECTION]?: MESSAGING_DESTINATION_CONNECTION_TYPE;\n [MESSAGING_DESTINATION_NAME]?: MESSAGING_DESTINATION_NAME_TYPE;\n [MESSAGING_MESSAGE_BODY_SIZE]?: MESSAGING_MESSAGE_BODY_SIZE_TYPE;\n [MESSAGING_MESSAGE_CONVERSATION_ID]?: MESSAGING_MESSAGE_CONVERSATION_ID_TYPE;\n [MESSAGING_MESSAGE_ENVELOPE_SIZE]?: MESSAGING_MESSAGE_ENVELOPE_SIZE_TYPE;\n [MESSAGING_MESSAGE_ID]?: MESSAGING_MESSAGE_ID_TYPE;\n [MESSAGING_MESSAGE_RECEIVE_LATENCY]?: MESSAGING_MESSAGE_RECEIVE_LATENCY_TYPE;\n [MESSAGING_MESSAGE_RETRY_COUNT]?: MESSAGING_MESSAGE_RETRY_COUNT_TYPE;\n [MESSAGING_OPERATION_NAME]?: MESSAGING_OPERATION_NAME_TYPE;\n [MESSAGING_OPERATION_TYPE]?: MESSAGING_OPERATION_TYPE_TYPE;\n [MESSAGING_RABBITMQ_DESTINATION_ROUTING_KEY]?: MESSAGING_RABBITMQ_DESTINATION_ROUTING_KEY_TYPE;\n [MESSAGING_SYSTEM]?: MESSAGING_SYSTEM_TYPE;\n [METHOD]?: METHOD_TYPE;\n [MIDDLEWARE_NAME]?: MIDDLEWARE_NAME_TYPE;\n [NAVIGATION_ORIGIN]?: NAVIGATION_ORIGIN_TYPE;\n [NAVIGATION_ROUTE_ID]?: NAVIGATION_ROUTE_ID_TYPE;\n [NAVIGATION_TYPE]?: NAVIGATION_TYPE_TYPE;\n [NEL_ELAPSED_TIME]?: NEL_ELAPSED_TIME_TYPE;\n [NEL_PHASE]?: NEL_PHASE_TYPE;\n [NEL_REFERRER]?: NEL_REFERRER_TYPE;\n [NEL_SAMPLING_FUNCTION]?: NEL_SAMPLING_FUNCTION_TYPE;\n [NEL_TYPE]?: NEL_TYPE_TYPE;\n [NETWORK_CONNECTION_EFFECTIVE_TYPE]?: NETWORK_CONNECTION_EFFECTIVE_TYPE_TYPE;\n [NETWORK_CONNECTION_RTT]?: NETWORK_CONNECTION_RTT_TYPE;\n [NETWORK_CONNECTION_TYPE]?: NETWORK_CONNECTION_TYPE_TYPE;\n [NETWORK_LOCAL_ADDRESS]?: NETWORK_LOCAL_ADDRESS_TYPE;\n [NETWORK_LOCAL_PORT]?: NETWORK_LOCAL_PORT_TYPE;\n [NETWORK_PEER_ADDRESS]?: NETWORK_PEER_ADDRESS_TYPE;\n [NETWORK_PEER_PORT]?: NETWORK_PEER_PORT_TYPE;\n [NETWORK_PROTOCOL_NAME]?: NETWORK_PROTOCOL_NAME_TYPE;\n [NETWORK_PROTOCOL_VERSION]?: NETWORK_PROTOCOL_VERSION_TYPE;\n [NETWORK_TRANSPORT]?: NETWORK_TRANSPORT_TYPE;\n [NETWORK_TYPE]?: NETWORK_TYPE_TYPE;\n [NET_HOST_IP]?: NET_HOST_IP_TYPE;\n [NET_HOST_NAME]?: NET_HOST_NAME_TYPE;\n [NET_HOST_PORT]?: NET_HOST_PORT_TYPE;\n [NET_PEER_IP]?: NET_PEER_IP_TYPE;\n [NET_PEER_NAME]?: NET_PEER_NAME_TYPE;\n [NET_PEER_PORT]?: NET_PEER_PORT_TYPE;\n [NET_PROTOCOL_NAME]?: NET_PROTOCOL_NAME_TYPE;\n [NET_PROTOCOL_VERSION]?: NET_PROTOCOL_VERSION_TYPE;\n [NET_SOCK_FAMILY]?: NET_SOCK_FAMILY_TYPE;\n [NET_SOCK_HOST_ADDR]?: NET_SOCK_HOST_ADDR_TYPE;\n [NET_SOCK_HOST_PORT]?: NET_SOCK_HOST_PORT_TYPE;\n [NET_SOCK_PEER_ADDR]?: NET_SOCK_PEER_ADDR_TYPE;\n [NET_SOCK_PEER_NAME]?: NET_SOCK_PEER_NAME_TYPE;\n [NET_SOCK_PEER_PORT]?: NET_SOCK_PEER_PORT_TYPE;\n [NET_TRANSPORT]?: NET_TRANSPORT_TYPE;\n [OS_BUILD]?: OS_BUILD_TYPE;\n [OS_BUILD_ID]?: OS_BUILD_ID_TYPE;\n [OS_DESCRIPTION]?: OS_DESCRIPTION_TYPE;\n [OS_KERNEL_VERSION]?: OS_KERNEL_VERSION_TYPE;\n [OS_NAME]?: OS_NAME_TYPE;\n [OS_RAW_DESCRIPTION]?: OS_RAW_DESCRIPTION_TYPE;\n [OS_ROOTED]?: OS_ROOTED_TYPE;\n [OS_THEME]?: OS_THEME_TYPE;\n [OS_TYPE]?: OS_TYPE_TYPE;\n [OS_VERSION]?: OS_VERSION_TYPE;\n [OTEL_KIND]?: OTEL_KIND_TYPE;\n [OTEL_SCOPE_NAME]?: OTEL_SCOPE_NAME_TYPE;\n [OTEL_SCOPE_VERSION]?: OTEL_SCOPE_VERSION_TYPE;\n [OTEL_STATUS_CODE]?: OTEL_STATUS_CODE_TYPE;\n [OTEL_STATUS_DESCRIPTION]?: OTEL_STATUS_DESCRIPTION_TYPE;\n [PARAMS_KEY]?: PARAMS_KEY_TYPE;\n [PERFORMANCE_ACTIVATIONSTART]?: PERFORMANCE_ACTIVATIONSTART_TYPE;\n [PERFORMANCE_TIMEORIGIN]?: PERFORMANCE_TIMEORIGIN_TYPE;\n [PREVIOUS_ROUTE]?: PREVIOUS_ROUTE_TYPE;\n [PROCESS_COMMAND_ARGS]?: PROCESS_COMMAND_ARGS_TYPE;\n [PROCESS_EXECUTABLE_NAME]?: PROCESS_EXECUTABLE_NAME_TYPE;\n [PROCESS_PID]?: PROCESS_PID_TYPE;\n [PROCESS_RUNTIME_DESCRIPTION]?: PROCESS_RUNTIME_DESCRIPTION_TYPE;\n [PROCESS_RUNTIME_ENGINE_NAME]?: PROCESS_RUNTIME_ENGINE_NAME_TYPE;\n [PROCESS_RUNTIME_ENGINE_VERSION]?: PROCESS_RUNTIME_ENGINE_VERSION_TYPE;\n [PROCESS_RUNTIME_NAME]?: PROCESS_RUNTIME_NAME_TYPE;\n [PROCESS_RUNTIME_VERSION]?: PROCESS_RUNTIME_VERSION_TYPE;\n [QUERY_KEY]?: QUERY_KEY_TYPE;\n [REACT_VERSION]?: REACT_VERSION_TYPE;\n [RELEASE]?: RELEASE_TYPE;\n [REMIX_ACTION_FORM_DATA_KEY]?: REMIX_ACTION_FORM_DATA_KEY_TYPE;\n [REPLAY_ID]?: REPLAY_ID_TYPE;\n [RESOURCE_DEPLOYMENT_ENVIRONMENT]?: RESOURCE_DEPLOYMENT_ENVIRONMENT_TYPE;\n [RESOURCE_DEPLOYMENT_ENVIRONMENT_NAME]?: RESOURCE_DEPLOYMENT_ENVIRONMENT_NAME_TYPE;\n [RESOURCE_RENDER_BLOCKING_STATUS]?: RESOURCE_RENDER_BLOCKING_STATUS_TYPE;\n [ROUTE]?: ROUTE_TYPE;\n [RPC_GRPC_STATUS_CODE]?: RPC_GRPC_STATUS_CODE_TYPE;\n [RPC_METHOD]?: RPC_METHOD_TYPE;\n [RPC_RESPONSE_STATUS_CODE]?: RPC_RESPONSE_STATUS_CODE_TYPE;\n [RPC_SERVICE]?: RPC_SERVICE_TYPE;\n [RPC_SYSTEM]?: RPC_SYSTEM_TYPE;\n [RPC_SYSTEM_NAME]?: RPC_SYSTEM_NAME_TYPE;\n [RUNTIME_BUILD]?: RUNTIME_BUILD_TYPE;\n [RUNTIME_NAME]?: RUNTIME_NAME_TYPE;\n [RUNTIME_RAW_DESCRIPTION]?: RUNTIME_RAW_DESCRIPTION_TYPE;\n [RUNTIME_VERSION]?: RUNTIME_VERSION_TYPE;\n [SCORE_KEY]?: SCORE_KEY_TYPE;\n [SCORE_RATIO_KEY]?: SCORE_RATIO_KEY_TYPE;\n [SCORE_TOTAL]?: SCORE_TOTAL_TYPE;\n [SCORE_WEIGHT_KEY]?: SCORE_WEIGHT_KEY_TYPE;\n [SENTRY_ACTION]?: SENTRY_ACTION_TYPE;\n [SENTRY_BROWSER_NAME]?: SENTRY_BROWSER_NAME_TYPE;\n [SENTRY_BROWSER_VERSION]?: SENTRY_BROWSER_VERSION_TYPE;\n [SENTRY_CANCELLATION_REASON]?: SENTRY_CANCELLATION_REASON_TYPE;\n [SENTRY_CATEGORY]?: SENTRY_CATEGORY_TYPE;\n [SENTRY_CLIENT_SAMPLE_RATE]?: SENTRY_CLIENT_SAMPLE_RATE_TYPE;\n [SENTRY_DESCRIPTION]?: SENTRY_DESCRIPTION_TYPE;\n [SENTRY_DIST]?: SENTRY_DIST_TYPE;\n [SENTRY_DOMAIN]?: SENTRY_DOMAIN_TYPE;\n [SENTRY_DSC_ENVIRONMENT]?: SENTRY_DSC_ENVIRONMENT_TYPE;\n [SENTRY_DSC_PROJECT_ID]?: SENTRY_DSC_PROJECT_ID_TYPE;\n [SENTRY_DSC_PUBLIC_KEY]?: SENTRY_DSC_PUBLIC_KEY_TYPE;\n [SENTRY_DSC_RELEASE]?: SENTRY_DSC_RELEASE_TYPE;\n [SENTRY_DSC_SAMPLED]?: SENTRY_DSC_SAMPLED_TYPE;\n [SENTRY_DSC_SAMPLE_RATE]?: SENTRY_DSC_SAMPLE_RATE_TYPE;\n [SENTRY_DSC_TRACE_ID]?: SENTRY_DSC_TRACE_ID_TYPE;\n [SENTRY_DSC_TRANSACTION]?: SENTRY_DSC_TRANSACTION_TYPE;\n [SENTRY_ENVIRONMENT]?: SENTRY_ENVIRONMENT_TYPE;\n [SENTRY_EXCLUSIVE_TIME]?: SENTRY_EXCLUSIVE_TIME_TYPE;\n [SENTRY_GRAPHQL_OPERATION]?: SENTRY_GRAPHQL_OPERATION_TYPE;\n [SENTRY_GROUP]?: SENTRY_GROUP_TYPE;\n [SENTRY_HTTP_PREFETCH]?: SENTRY_HTTP_PREFETCH_TYPE;\n [SENTRY_IDLE_SPAN_FINISH_REASON]?: SENTRY_IDLE_SPAN_FINISH_REASON_TYPE;\n [SENTRY_IS_REMOTE]?: SENTRY_IS_REMOTE_TYPE;\n [SENTRY_KIND]?: SENTRY_KIND_TYPE;\n [SENTRY_MAIN_THREAD]?: SENTRY_MAIN_THREAD_TYPE;\n [SENTRY_MESSAGE_PARAMETER_KEY]?: SENTRY_MESSAGE_PARAMETER_KEY_TYPE;\n [SENTRY_MESSAGE_TEMPLATE]?: SENTRY_MESSAGE_TEMPLATE_TYPE;\n [SENTRY_METRIC_SOURCE]?: SENTRY_METRIC_SOURCE_TYPE;\n [SENTRY_MOBILE]?: SENTRY_MOBILE_TYPE;\n [SENTRY_MODULE_KEY]?: SENTRY_MODULE_KEY_TYPE;\n [SENTRY_NEXTJS_SSR_FUNCTION_ROUTE]?: SENTRY_NEXTJS_SSR_FUNCTION_ROUTE_TYPE;\n [SENTRY_NEXTJS_SSR_FUNCTION_TYPE]?: SENTRY_NEXTJS_SSR_FUNCTION_TYPE_TYPE;\n [SENTRY_NORMALIZED_DB_QUERY]?: SENTRY_NORMALIZED_DB_QUERY_TYPE;\n [SENTRY_NORMALIZED_DB_QUERY_HASH]?: SENTRY_NORMALIZED_DB_QUERY_HASH_TYPE;\n [SENTRY_NORMALIZED_DESCRIPTION]?: SENTRY_NORMALIZED_DESCRIPTION_TYPE;\n [SENTRY_OBSERVED_TIMESTAMP_NANOS]?: SENTRY_OBSERVED_TIMESTAMP_NANOS_TYPE;\n [SENTRY_OP]?: SENTRY_OP_TYPE;\n [SENTRY_ORIGIN]?: SENTRY_ORIGIN_TYPE;\n [SENTRY_PLATFORM]?: SENTRY_PLATFORM_TYPE;\n [SENTRY_PROFILER_ID]?: SENTRY_PROFILER_ID_TYPE;\n [SENTRY_PROFILE_ID]?: SENTRY_PROFILE_ID_TYPE;\n [SENTRY_RELEASE]?: SENTRY_RELEASE_TYPE;\n [SENTRY_REPLAY_ID]?: SENTRY_REPLAY_ID_TYPE;\n [SENTRY_REPLAY_IS_BUFFERING]?: SENTRY_REPLAY_IS_BUFFERING_TYPE;\n [SENTRY_REPORT_EVENT]?: SENTRY_REPORT_EVENT_TYPE;\n [SENTRY_SDK_INTEGRATIONS]?: SENTRY_SDK_INTEGRATIONS_TYPE;\n [SENTRY_SDK_NAME]?: SENTRY_SDK_NAME_TYPE;\n [SENTRY_SDK_VERSION]?: SENTRY_SDK_VERSION_TYPE;\n [SENTRY_SEGMENT_ID]?: SENTRY_SEGMENT_ID_TYPE;\n [_SENTRY_SEGMENT_ID]?: _SENTRY_SEGMENT_ID_TYPE;\n [SENTRY_SEGMENT_NAME]?: SENTRY_SEGMENT_NAME_TYPE;\n [SENTRY_SERVER_SAMPLE_RATE]?: SENTRY_SERVER_SAMPLE_RATE_TYPE;\n [SENTRY_SOURCE]?: SENTRY_SOURCE_TYPE;\n [SENTRY_SPAN_SOURCE]?: SENTRY_SPAN_SOURCE_TYPE;\n [SENTRY_STATUS]?: SENTRY_STATUS_TYPE;\n [SENTRY_STATUS_CODE]?: SENTRY_STATUS_CODE_TYPE;\n [SENTRY_STATUS_MESSAGE]?: SENTRY_STATUS_MESSAGE_TYPE;\n [SENTRY_SVELTEKIT_NAVIGATION_FROM]?: SENTRY_SVELTEKIT_NAVIGATION_FROM_TYPE;\n [SENTRY_SVELTEKIT_NAVIGATION_TO]?: SENTRY_SVELTEKIT_NAVIGATION_TO_TYPE;\n [SENTRY_SVELTEKIT_NAVIGATION_TYPE]?: SENTRY_SVELTEKIT_NAVIGATION_TYPE_TYPE;\n [SENTRY_THREAD_ID]?: SENTRY_THREAD_ID_TYPE;\n [SENTRY_TIMESTAMP_SEQUENCE]?: SENTRY_TIMESTAMP_SEQUENCE_TYPE;\n [SENTRY_TRACE_LIFECYCLE]?: SENTRY_TRACE_LIFECYCLE_TYPE;\n [SENTRY_TRACE_PARENT_SPAN_ID]?: SENTRY_TRACE_PARENT_SPAN_ID_TYPE;\n [SENTRY_TRACE_STATUS]?: SENTRY_TRACE_STATUS_TYPE;\n [SENTRY_TRANSACTION]?: SENTRY_TRANSACTION_TYPE;\n [SENTRY_USER_EMAIL]?: SENTRY_USER_EMAIL_TYPE;\n [SENTRY_USER_GEO_CITY]?: SENTRY_USER_GEO_CITY_TYPE;\n [SENTRY_USER_GEO_COUNTRY_CODE]?: SENTRY_USER_GEO_COUNTRY_CODE_TYPE;\n [SENTRY_USER_GEO_REGION]?: SENTRY_USER_GEO_REGION_TYPE;\n [SENTRY_USER_GEO_SUBDIVISION]?: SENTRY_USER_GEO_SUBDIVISION_TYPE;\n [SENTRY_USER_ID]?: SENTRY_USER_ID_TYPE;\n [SENTRY_USER_IP]?: SENTRY_USER_IP_TYPE;\n [SENTRY_USER_USERNAME]?: SENTRY_USER_USERNAME_TYPE;\n [SERVER_ADDRESS]?: SERVER_ADDRESS_TYPE;\n [SERVER_NAME]?: SERVER_NAME_TYPE;\n [SERVER_PORT]?: SERVER_PORT_TYPE;\n [SERVICE_NAME]?: SERVICE_NAME_TYPE;\n [SERVICE_VERSION]?: SERVICE_VERSION_TYPE;\n [SESSION_ID]?: SESSION_ID_TYPE;\n [STALL_PERCENTAGE]?: STALL_PERCENTAGE_TYPE;\n [STALL_TOTAL_TIME]?: STALL_TOTAL_TIME_TYPE;\n [STATE_TYPE]?: STATE_TYPE_TYPE;\n [THREAD_ID]?: THREAD_ID_TYPE;\n [THREAD_NAME]?: THREAD_NAME_TYPE;\n [TIMBER_TAG]?: TIMBER_TAG_TYPE;\n [TIME_TO_FULL_DISPLAY]?: TIME_TO_FULL_DISPLAY_TYPE;\n [TIME_TO_INITIAL_DISPLAY]?: TIME_TO_INITIAL_DISPLAY_TYPE;\n [TRANSACTION]?: TRANSACTION_TYPE;\n [TRPC_PROCEDURE_PATH]?: TRPC_PROCEDURE_PATH_TYPE;\n [TRPC_PROCEDURE_TYPE]?: TRPC_PROCEDURE_TYPE_TYPE;\n [TTFB]?: TTFB_TYPE;\n [TTFB_REQUESTTIME]?: TTFB_REQUESTTIME_TYPE;\n [TYPE]?: TYPE_TYPE;\n [UI_COMPONENT_NAME]?: UI_COMPONENT_NAME_TYPE;\n [UI_CONTRIBUTES_TO_TTFD]?: UI_CONTRIBUTES_TO_TTFD_TYPE;\n [UI_CONTRIBUTES_TO_TTID]?: UI_CONTRIBUTES_TO_TTID_TYPE;\n [UI_ELEMENT_HEIGHT]?: UI_ELEMENT_HEIGHT_TYPE;\n [UI_ELEMENT_ID]?: UI_ELEMENT_ID_TYPE;\n [UI_ELEMENT_IDENTIFIER]?: UI_ELEMENT_IDENTIFIER_TYPE;\n [UI_ELEMENT_LOAD_TIME]?: UI_ELEMENT_LOAD_TIME_TYPE;\n [UI_ELEMENT_PAINT_TYPE]?: UI_ELEMENT_PAINT_TYPE_TYPE;\n [UI_ELEMENT_RENDER_TIME]?: UI_ELEMENT_RENDER_TIME_TYPE;\n [UI_ELEMENT_TYPE]?: UI_ELEMENT_TYPE_TYPE;\n [UI_ELEMENT_URL]?: UI_ELEMENT_URL_TYPE;\n [UI_ELEMENT_WIDTH]?: UI_ELEMENT_WIDTH_TYPE;\n [URL]?: URL_TYPE;\n [URL_DOMAIN]?: URL_DOMAIN_TYPE;\n [URL_FRAGMENT]?: URL_FRAGMENT_TYPE;\n [URL_FULL]?: URL_FULL_TYPE;\n [URL_PATH]?: URL_PATH_TYPE;\n [URL_PATH_PARAMETER_KEY]?: URL_PATH_PARAMETER_KEY_TYPE;\n [URL_PORT]?: URL_PORT_TYPE;\n [URL_QUERY]?: URL_QUERY_TYPE;\n [URL_SAME_ORIGIN]?: URL_SAME_ORIGIN_TYPE;\n [URL_SCHEME]?: URL_SCHEME_TYPE;\n [URL_TEMPLATE]?: URL_TEMPLATE_TYPE;\n [USER_AGENT_ORIGINAL]?: USER_AGENT_ORIGINAL_TYPE;\n [USER_EMAIL]?: USER_EMAIL_TYPE;\n [USER_FULL_NAME]?: USER_FULL_NAME_TYPE;\n [USER_GEO_CITY]?: USER_GEO_CITY_TYPE;\n [USER_GEO_COUNTRY_CODE]?: USER_GEO_COUNTRY_CODE_TYPE;\n [USER_GEO_REGION]?: USER_GEO_REGION_TYPE;\n [USER_GEO_SUBDIVISION]?: USER_GEO_SUBDIVISION_TYPE;\n [USER_HASH]?: USER_HASH_TYPE;\n [USER_ID]?: USER_ID_TYPE;\n [USER_IP_ADDRESS]?: USER_IP_ADDRESS_TYPE;\n [USER_NAME]?: USER_NAME_TYPE;\n [USER_ROLES]?: USER_ROLES_TYPE;\n [VERCEL_BRANCH]?: VERCEL_BRANCH_TYPE;\n [VERCEL_BUILD_ID]?: VERCEL_BUILD_ID_TYPE;\n [VERCEL_DEPLOYMENT_ID]?: VERCEL_DEPLOYMENT_ID_TYPE;\n [VERCEL_DESTINATION]?: VERCEL_DESTINATION_TYPE;\n [VERCEL_EDGE_TYPE]?: VERCEL_EDGE_TYPE_TYPE;\n [VERCEL_ENTRYPOINT]?: VERCEL_ENTRYPOINT_TYPE;\n [VERCEL_EXECUTION_REGION]?: VERCEL_EXECUTION_REGION_TYPE;\n [VERCEL_ID]?: VERCEL_ID_TYPE;\n [VERCEL_JA3_DIGEST]?: VERCEL_JA3_DIGEST_TYPE;\n [VERCEL_JA4_DIGEST]?: VERCEL_JA4_DIGEST_TYPE;\n [VERCEL_LOG_TYPE]?: VERCEL_LOG_TYPE_TYPE;\n [VERCEL_PATH]?: VERCEL_PATH_TYPE;\n [VERCEL_PROJECT_ID]?: VERCEL_PROJECT_ID_TYPE;\n [VERCEL_PROJECT_NAME]?: VERCEL_PROJECT_NAME_TYPE;\n [VERCEL_PROXY_CACHE_ID]?: VERCEL_PROXY_CACHE_ID_TYPE;\n [VERCEL_PROXY_CLIENT_IP]?: VERCEL_PROXY_CLIENT_IP_TYPE;\n [VERCEL_PROXY_HOST]?: VERCEL_PROXY_HOST_TYPE;\n [VERCEL_PROXY_LAMBDA_REGION]?: VERCEL_PROXY_LAMBDA_REGION_TYPE;\n [VERCEL_PROXY_METHOD]?: VERCEL_PROXY_METHOD_TYPE;\n [VERCEL_PROXY_PATH]?: VERCEL_PROXY_PATH_TYPE;\n [VERCEL_PROXY_PATH_TYPE]?: VERCEL_PROXY_PATH_TYPE_TYPE;\n [VERCEL_PROXY_PATH_TYPE_VARIANT]?: VERCEL_PROXY_PATH_TYPE_VARIANT_TYPE;\n [VERCEL_PROXY_REFERER]?: VERCEL_PROXY_REFERER_TYPE;\n [VERCEL_PROXY_REGION]?: VERCEL_PROXY_REGION_TYPE;\n [VERCEL_PROXY_RESPONSE_BYTE_SIZE]?: VERCEL_PROXY_RESPONSE_BYTE_SIZE_TYPE;\n [VERCEL_PROXY_SCHEME]?: VERCEL_PROXY_SCHEME_TYPE;\n [VERCEL_PROXY_STATUS_CODE]?: VERCEL_PROXY_STATUS_CODE_TYPE;\n [VERCEL_PROXY_TIMESTAMP]?: VERCEL_PROXY_TIMESTAMP_TYPE;\n [VERCEL_PROXY_USER_AGENT]?: VERCEL_PROXY_USER_AGENT_TYPE;\n [VERCEL_PROXY_VERCEL_CACHE]?: VERCEL_PROXY_VERCEL_CACHE_TYPE;\n [VERCEL_PROXY_VERCEL_ID]?: VERCEL_PROXY_VERCEL_ID_TYPE;\n [VERCEL_PROXY_WAF_ACTION]?: VERCEL_PROXY_WAF_ACTION_TYPE;\n [VERCEL_PROXY_WAF_RULE_ID]?: VERCEL_PROXY_WAF_RULE_ID_TYPE;\n [VERCEL_REQUEST_ID]?: VERCEL_REQUEST_ID_TYPE;\n [VERCEL_SOURCE]?: VERCEL_SOURCE_TYPE;\n [VERCEL_STATUS_CODE]?: VERCEL_STATUS_CODE_TYPE;\n} & Record;\n", "import type { RawAttributes } from '../../attributes';\nimport type { Client } from '../../client';\nimport type { ScopeData } from '../../scope';\nimport {\n SEMANTIC_ATTRIBUTE_SENTRY_ENVIRONMENT,\n SEMANTIC_ATTRIBUTE_SENTRY_RELEASE,\n SEMANTIC_ATTRIBUTE_SENTRY_SDK_INTEGRATIONS,\n SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,\n SEMANTIC_ATTRIBUTE_USER_EMAIL,\n SEMANTIC_ATTRIBUTE_USER_ID,\n SEMANTIC_ATTRIBUTE_USER_IP_ADDRESS,\n SEMANTIC_ATTRIBUTE_USER_USERNAME,\n} from '../../semanticAttributes';\nimport type { SerializedStreamedSpan, Span, StreamedSpanJSON } from '../../types/span';\nimport { getCombinedScopeData } from '../../utils/scopeData';\nimport {\n INTERNAL_getSegmentSpan,\n showSpanDropWarning,\n spanToStreamedSpanJSON,\n streamedSpanJsonToSerializedSpan,\n} from '../../utils/spanUtils';\nimport { getCapturedScopesOnSpan } from '../utils';\nimport { isStreamedBeforeSendSpanCallback } from './beforeSendSpan';\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} 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 = spanToStreamedSpanJSON(span);\n\n const segmentSpan = INTERNAL_getSegmentSpan(span);\n const serializedSegmentSpan = spanToStreamedSpanJSON(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 // Access `kind` via duck-typing \u2014 OTel span objects have this property but it's not on Sentry's Span type.\n // It is forwarded to `preprocessSpan` subscribers (e.g. the OpenTelemetry SDK backfills op/source/name from it).\n const spanKind = (span as { kind?: number }).kind;\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, { spanKind });\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 } = client.getOptions();\n const processedSpan =\n beforeSendSpan && isStreamedBeforeSendSpanCallback(beforeSendSpan)\n ? applyBeforeSendSpanCallback(spanJSON, beforeSendSpan)\n : spanJSON;\n\n const spanNameSource = processedSpan.attributes?.[SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];\n if (spanJSON.is_segment && spanNameSource) {\n // Backfill sentry.segment.name.source from sentry.source.\n // TODO(v11): Remove this backfill once we removed setting SEMANTIC_ATTRIBUTE_SENTRY_SOURCE in favour of\n // SENTRY_SEGMENT_NAME_SOURCE from @sentry/conventions/attributes only on segment spans.\n safeSetSpanJSONAttributes(processedSpan, {\n ['sentry.segment.name.source']: spanNameSource,\n });\n }\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>,\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 [SEMANTIC_ATTRIBUTE_SENTRY_SDK_INTEGRATIONS]: integrationNames,\n });\n}\n\nfunction applyCommonSpanAttributes(\n spanJSON: StreamedSpanJSON,\n serializedSegmentSpan: StreamedSpanJSON,\n client: Client,\n scopeData: ScopeData,\n): void {\n const sdk = client.getSdkMetadata();\n const { release, environment } = client.getOptions();\n\n // avoid overwriting any previously set attributes (from users or potentially our SDK instrumentation)\n safeSetSpanJSONAttributes(spanJSON, {\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 [SEMANTIC_ATTRIBUTE_SENTRY_RELEASE]: release,\n [SEMANTIC_ATTRIBUTE_SENTRY_ENVIRONMENT]: environment || DEFAULT_ENVIRONMENT,\n [SEMANTIC_ATTRIBUTE_USER_ID]: scopeData.user?.id,\n [SEMANTIC_ATTRIBUTE_USER_EMAIL]: scopeData.user?.email,\n [SEMANTIC_ATTRIBUTE_USER_IP_ADDRESS]: scopeData.user?.ip_address,\n [SEMANTIC_ATTRIBUTE_USER_USERNAME]: scopeData.user?.username,\n ...scopeData.attributes,\n });\n}\n\n/**\n * Apply a user-provided beforeSendSpan callback to a span JSON.\n */\nexport function applyBeforeSendSpanCallback(\n span: StreamedSpanJSON,\n beforeSendSpan: (span: StreamedSpanJSON) => StreamedSpanJSON,\n): StreamedSpanJSON {\n const modifedSpan = beforeSendSpan(span);\n if (!modifedSpan) {\n showSpanDropWarning();\n return span;\n }\n return modifedSpan;\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;\nexport function resolvedSyncPromise(value: T | PromiseLike): PromiseLike;\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(value?: T | PromiseLike): PromiseLike {\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(reason?: any): PromiseLike {\n return new SyncPromise((_, reject) => {\n reject(reason);\n });\n}\n\ntype Executor = (resolve: (value?: T | PromiseLike | 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 implements PromiseLike {\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) {\n this._state = STATE_PENDING;\n this._handlers = [];\n\n this._runExecutor(executor);\n }\n\n /** @inheritdoc */\n public then(\n onfulfilled?: ((value: T) => TResult1 | PromiseLike) | null,\n onrejected?: ((reason: any) => TResult2 | PromiseLike) | null,\n ): PromiseLike {\n return new SyncPromise((resolve, reject) => {\n this._handlers.push([\n false,\n result => {\n if (!onfulfilled) {\n // TODO: \u00AF\\_(\u30C4)_/\u00AF\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(\n onrejected?: ((reason: any) => TResult | PromiseLike) | null,\n ): PromiseLike {\n return this.then(val => val, onrejected);\n }\n\n /** @inheritdoc */\n public finally(onfinally?: (() => void) | null): PromiseLike {\n return new SyncPromise((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 as unknown as any);\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 as unknown as any);\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): void {\n const setResult = (state: State, value?: T | PromiseLike | any): void => {\n if (this._state !== STATE_PENDING) {\n return;\n }\n\n if (isThenable(value)) {\n void (value as PromiseLike).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 { rejectedSyncPromise, resolvedSyncPromise } from './utils/syncpromise';\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): PromiseLike {\n try {\n const result = _notifyEventProcessors(event, hint, processors, index);\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): Event | null | PromiseLike {\n const processor = processors[index];\n\n if (!event || !processor) {\n return event;\n }\n\n const result = processor({ ...event }, hint);\n\n DEBUG_BUILD && result === null && debug.log(`Event processor \"${processor.id || '?'}\" dropped event`);\n\n if (isThenable(result)) {\n return result.then(final => _notifyEventProcessors(final, hint, processors, index + 1));\n }\n\n return _notifyEventProcessors(result, hint, processors, index + 1);\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 | undefined;\nlet lastSentryKeysCount: number | undefined;\nlet lastNativeKeysCount: number | undefined;\nlet cachedFilenameDebugIds: Record | 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 {\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): 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,\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 { 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 { addExceptionMechanism, uuid4 } from './misc';\nimport { normalize } from './normalize';\nimport { applyScopeDataToEvent, getCombinedScopeData } from './scopeData';\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.\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 {\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 addExceptionMechanism(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\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 = isInternalException\n ? resolvedSyncPromise(prepared)\n : notifyEventProcessors(eventProcessors, prepared, hint);\n\n return result.then(evt => {\n if (evt) {\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\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 = {};\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 | EventHint): hint is Partial {\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>(attributes: RawAttributes): 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 extends { value: any } | { unit: any } ? AttributeObject : unknown,\n>(key: string, value: RawAttribute): 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 {\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. 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 {\n const client = getClient();\n if (client) {\n return client.close(timeout);\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", "/**\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): ReturnType {\n if (typeof timer === 'object' && typeof timer.unref === 'function') {\n timer.unref();\n }\n return timer;\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 = {\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') {\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 { 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,\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(\n fn: Fn,\n): (...args: Parameters) => Integration & { name: ReturnType['name'] } {\n return fn;\n}\n\n// When extending an integration, we allow other properties to be passed-through\ntype IntegrationWithOtherProperties = Record & Integration;\ntype ExtendedIntegration> = 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>(\n integration: Base,\n extendedIntegration: Extended,\n): ExtendedIntegration {\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 \u2014 `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;\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)[key] = wrappedFunction;\n }\n }\n\n return wrappedIntegration;\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 * 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\nimport { isBrowserBundle } from './env';\n\n/**\n * Checks whether we're in the Node.js or Browser environment\n *\n * @returns Answer to given question\n */\nexport function isNodeEnv(): boolean {\n // explicitly check for browser bundles as those can be optimized statically\n // by terser/rollup.\n return (\n !isBrowserBundle() &&\n Object.prototype.toString.call(typeof process !== 'undefined' ? process : 0) === '[object process]'\n );\n}\n\n/**\n * Requires a module which is protected against bundler minification.\n *\n * @param request The module path to resolve\n */\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nfunction dynamicRequire(mod: any, request: string): any {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n return mod.require(request);\n}\n\n/**\n * Helper for dynamically loading module that should work with linked dependencies.\n * The problem is that we _should_ be using `require(require.resolve(moduleName, { paths: [cwd()] }))`\n * However it's _not possible_ to do that with Webpack, as it has to know all the dependencies during\n * build time. `require.resolve` is also not available in any other way, so we cannot create,\n * a fake helper like we do with `dynamicRequire`.\n *\n * We always prefer to use local package, thus the value is not returned early from each `try/catch` block.\n * That is to mimic the behavior of `require.resolve` exactly.\n *\n * @param moduleName module name to require\n * @param existingModule module to use for requiring\n * @returns possibly required module\n */\nexport function loadModule(\n moduleName: string,\n // Default parameters are evaluated before the body runs, so a bare `module` would throw a\n // ReferenceError in ESM before reaching the try/catch below that makes this helper degrade\n // gracefully. Guard it so the ESM build resolves to `undefined` instead of crashing.\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n existingModule: any = typeof module !== 'undefined' ? module : undefined,\n): T | undefined {\n let mod: T | undefined;\n\n try {\n mod = dynamicRequire(existingModule, moduleName);\n } catch {\n // no-empty\n }\n\n if (!mod) {\n try {\n const { cwd } = dynamicRequire(existingModule, 'process');\n mod = dynamicRequire(existingModule, `${cwd()}/node_modules/${moduleName}`) as T;\n } catch {\n // no-empty\n }\n }\n\n return mod;\n}\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 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, 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,\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(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 { getCombinedScopeData } from '../utils/scopeData';\nimport { _getSpanForScope } from '../utils/spanOnScope';\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,\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, enableLogs = true, beforeSendLog } = client.getOptions();\n if (!enableLogs) {\n DEBUG_BUILD && debug.warn('logging option not enabled, log will not be captured.');\n return;\n }\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 = _getSpanForScope(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 // We need to wrap this in `consoleSandbox` to avoid recursive calls to `beforeSendLog`\n const log = beforeSendLog ? consoleSandbox(() => beforeSendLog(processedLog)) : processedLog;\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): 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 | undefined {\n return _getBufferMap().get(client);\n}\n\nfunction _getBufferMap(): WeakMap> {\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>());\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\u2013U+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 = 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,\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 } as MetricContainerItem[0],\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,\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(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 { getCombinedScopeData } from '../utils/scopeData';\nimport { _getSpanForScope } from '../utils/spanOnScope';\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,\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> | undefined,\n): SerializedMetric {\n // Get trace context\n const [, traceContext] = _getTraceInfoFromScope(client, currentScope);\n const span = _getSpanForScope(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 { _experiments, enableMetrics, beforeSendMetric } = client.getOptions();\n\n // todo(v11): Remove the experimental flag\n // eslint-disable-next-line typescript/no-deprecated\n const metricsEnabled = enableMetrics ?? _experiments?.enableMetrics ?? true;\n\n if (!metricsEnabled) {\n DEBUG_BUILD && debug.warn('metrics option not enabled, metric will not be captured.');\n return;\n }\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 // todo(v11): Remove the experimental `beforeSendMetric`\n // eslint-disable-next-line typescript/no-deprecated\n const beforeSendCallback = beforeSendMetric || _experiments?.beforeSendMetric;\n const processedMetric = beforeSendCallback ? beforeSendCallback(enrichedMetric) : enrichedMetric;\n\n if (!processedMetric) {\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): 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 | undefined {\n return _getBufferMap().get(client);\n}\n\nfunction _getBufferMap(): WeakMap> {\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>());\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 || span.start_timestamp,\n status: !span.status || span.status === 'ok' || span.status === 'cancelled' ? 'ok' : 'error',\n is_segment: false,\n attributes: { ...(span.data as RawAttributes>) },\n links: span.links,\n };\n\n return streamedSpanJsonToSerializedSpan(streamedSpan);\n}\n", "import type { Client } from '../../client';\nimport type { SpanContainerItem } from '../../types/envelope';\nimport type { Event } from '../../types/event';\nimport { isBrowser } from '../../utils/isBrowser';\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 client.getOptions().streamGenAiSpans === false ||\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 const inferSetting = client.getDataCollectionOptions().userInfo ? 'auto' : 'never';\n\n return [\n { type: 'span', item_count: genAiSpans.length, content_type: 'application/vnd.sentry.items.span.v2+json' },\n {\n version: 2,\n ...(isBrowser() && {\n ingest_settings: { infer_ip: inferSetting, infer_user_agent: inferSetting },\n }),\n items: genAiSpans,\n },\n ];\n}\n", "import { rejectedSyncPromise, resolvedSyncPromise } from './syncpromise';\nimport { safeUnref } from './timer';\n\nexport interface PromiseBuffer {\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[];\n add(taskProducer: () => PromiseLike): PromiseLike;\n drain(timeout?: number): PromiseLike;\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(limit: number = 100): PromiseBuffer {\n const buffer: Set> = 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\n * @returns Removed promise.\n */\n function remove(task: PromiseLike): 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; In previous versions this used to be `task:\n * PromiseLike`, 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): PromiseLike {\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 {\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(resolve => safeUnref(setTimeout(() => resolve(false), timeout))),\n ];\n\n return Promise.race(promises);\n }\n\n return {\n get $(): PromiseLike[] {\n return Array.from(buffer);\n },\n add,\n drain,\n };\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;\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 *
,
,..\n * where each
is of the form\n * : : : : \n * where\n * is a delay in seconds\n * is the event type(s) (error, transaction, etc) being rate limited and is of the form\n * ;;...\n * is what's being limited (org, project, or key) - ignored by SDK\n * is an arbitrary string like \"org_quota\" - ignored by SDK\n * 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 = makePromiseBuffer(\n options.bufferSize || DEFAULT_TRANSPORT_BUFFER_SIZE,\n ),\n): Transport {\n let rateLimits: RateLimits = {};\n const flush = (timeout?: number): PromiseLike => buffer.drain(timeout);\n\n function send(envelope: Envelope): PromiseLike {\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 =>\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 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(dsn ? { dsn } : {}, [clientReportItem]);\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 { SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME, SEMANTIC_ATTRIBUTE_PROFILE_ID } from '../semanticAttributes';\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,\n timestamp: event.timestamp,\n trace_id: trace_id ?? '',\n origin,\n profile_id: data?.[SEMANTIC_ATTRIBUTE_PROFILE_ID] as string | undefined,\n exclusive_time: data?.[SEMANTIC_ATTRIBUTE_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 && { [SEMANTIC_ATTRIBUTE_PROFILE_ID]: span.profile_id }),\n ...(span.exclusive_time && { [SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]: span.exclusive_time }),\n },\n },\n },\n measurements: span.measurements,\n };\n}\n", "export const FILTERED_VALUE = '[Filtered]';\n\nexport const PII_HEADER_SNIPPETS = ['forwarded', '-ip', 'remote-', 'via', '-user'];\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` \u2192 `auth`, `id_token` \u2192 `token`,\n * `next-auth` \u2192 `auth`).\n */\nexport const SENSITIVE_COOKIE_NAME_SNIPPETS = [\n // Express / Connect default session cookie\n '.sid',\n // Opaque session ids (PHPSESSID, ASPSESSIONID*, BIGipServer*, *sessid*, \u2026)\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 { PII_HEADER_SNIPPETS } from './filtering-snippets';\nimport type { ResolvedDataCollection } from '../../types/datacollection';\n\n/**\n * Helper function that maps the `sendDefaultPii` boolean flag to the corresponding `DataCollection` configuration.\n * Used as a backward-compatibility bridge when `dataCollection` is not set by the user.\n *\n * TODO(v11): Remove this function along with `sendDefaultPii`. Once `dataCollection` is the only API,\n * the DEFAULTS in `resolveDataCollectionOptions` (including `userInfo: true`) will always apply.\n */\nexport function defaultPiiToCollectionOptions(sendDefaultPii?: boolean): ResolvedDataCollection {\n return sendDefaultPii === true\n ? {\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 stackFrameVariables: true,\n frameContextLines: 7, // default should be 5, but ContextLines integration uses 7\n }\n : {\n userInfo: false,\n cookies: { deny: PII_HEADER_SNIPPETS },\n httpHeaders: { request: { deny: PII_HEADER_SNIPPETS }, response: { deny: PII_HEADER_SNIPPETS } },\n httpBodies: [],\n urlQueryParams: { deny: PII_HEADER_SNIPPETS },\n // The GraphQL document has literal values redacted at collection time, so it was historically\n // always attached regardless of `sendDefaultPii`; keep it on to preserve that behavior.\n graphQL: { document: true, variables: true },\n genAI: { inputs: false, outputs: false },\n // Database query values were only sent with `sendDefaultPii: true` (e.g. Supabase gated on it),\n // so map the legacy \"off\" state to `false`.\n databaseQueryData: false,\n stackFrameVariables: true,\n frameContextLines: 7, // default should be 5, but ContextLines integration uses 7\n };\n}\n", "import type {\n CollectBehavior,\n DataCollection,\n HttpHeadersCollection,\n ResolvedDataCollection,\n} from '../../types/datacollection';\nimport { defaultPiiToCollectionOptions } from './defaultPiiToCollectionOptions';\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 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(\n httpHeaders: DataCollection['httpHeaders'],\n base: ResolvedDataCollection,\n): ResolvedDataCollection['httpHeaders'] {\n if (httpHeaders === undefined) {\n return { ...base.httpHeaders };\n }\n\n if (isCollectBehavior(httpHeaders)) {\n return { request: httpHeaders, response: httpHeaders };\n }\n\n return {\n request: httpHeaders.request ?? base.httpHeaders.request,\n response: httpHeaders.response ?? base.httpHeaders.response,\n };\n}\n\n/**\n * Resolves the effective `DataCollection` configuration from client options.\n *\n * Precedence:\n * 1. Fields explicitly set in `dataCollection`\n * 2. If `sendDefaultPii` is set and `dataCollection` is absent, bridge via `defaultPiiToCollectionOptions`\n * 3. Spec defaults\n *\n * TODO(v11): Remove `sendDefaultPii` support and always fall through to DEFAULTS so that `userInfo: true`\n * NOTE: In v10, DEFAULTS only apply when `dataCollection` is explicitly provided.\n * When `dataCollection` is absent, the legacy `sendDefaultPii` bridge is used, which defaults to\n * `userInfo: false` to preserve backward compatibility.\n */\nexport function resolveDataCollectionOptions(options: {\n dataCollection?: DataCollection;\n sendDefaultPii?: boolean;\n}): ResolvedDataCollection {\n // TODO(v11): Remove the sendDefaultPii bridge and always use DEFAULTS.\n const base = options.dataCollection != null ? DEFAULTS : defaultPiiToCollectionOptions(options.sendDefaultPii);\n\n const dc = options.dataCollection ?? {};\n\n return {\n userInfo: dc.userInfo ?? base.userInfo,\n cookies: dc.cookies ?? base.cookies,\n httpHeaders: resolveHttpHeaders(dc.httpHeaders, base),\n httpBodies: dc.httpBodies ?? base.httpBodies,\n // oxlint-disable-next-line typescript/no-deprecated\n urlQueryParams: dc.urlQueryParams ?? dc.queryParams ?? base.urlQueryParams,\n graphQL: {\n document: dc.graphQL?.document ?? base.graphQL.document,\n variables: dc.graphQL?.variables ?? base.graphQL.variables,\n },\n genAI: {\n inputs: dc.genAI?.inputs ?? base.genAI.inputs,\n outputs: dc.genAI?.outputs ?? base.genAI.outputs,\n },\n databaseQueryData: dc.databaseQueryData ?? base.databaseQueryData,\n stackFrameVariables: dc.stackFrameVariables ?? base.stackFrameVariables,\n frameContextLines: dc.frameContextLines ?? base.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 { isStreamedBeforeSendSpanCallback } 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, EventType, 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 } 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 { debug } from './utils/debug-logger';\nimport { dsnToString, makeDsn } from './utils/dsn';\nimport { addItemToEnvelope, createAttachmentEnvelopeItem } 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 { reparentChildSpans, shouldIgnoreSpan } from './utils/should-ignore-span';\nimport { showSpanDropWarning } from './utils/spanUtils';\nimport { safeUnref } from './utils/timer';\nimport { convertSpanJsonToTransactionEvent, convertTransactionEventToSpanJson } from './utils/transactionEvent';\nimport { resolveDataCollectionOptions } from './utils/data-collection/resolveDataCollectionOptions';\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\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 | 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 {\n * public constructor(options: NodeOptions) {\n * super(options);\n * }\n *\n * // ...\n * }\n */\nexport abstract class Client {\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>;\n\n protected _promiseBuffer: PromiseBuffer;\n\n protected readonly _dataCollection: ResolvedDataCollection;\n\n /**\n * Initializes this client instance.\n *\n * @param options Options for the client.\n */\n protected constructor(options: O) {\n this._options = options;\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\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 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 // Backfill enableLogs option from _experiments.enableLogs\n // todo(v11): Remove the experimental flag\n // eslint-disable-next-line typescript/no-deprecated\n this._options.enableLogs = this._options.enableLogs ?? this._options._experiments?.enableLogs ?? true;\n\n // Setup log flushing with weight and timeout tracking\n if (this._options.enableLogs) {\n setupWeightBasedFlushing(this, 'afterCaptureLog', 'flushLogs', estimateLogSizeInBytes, _INTERNAL_flushLogsBuffer);\n }\n\n // todo(v11): Remove the experimental flag\n // eslint-disable-next-line typescript/no-deprecated\n const enableMetrics = this._options.enableMetrics ?? this._options._experiments?.enableMetrics ?? true;\n\n // Setup metric flushing with weight and timeout tracking\n if (enableMetrics) {\n setupWeightBasedFlushing(\n this,\n 'afterCaptureMetric',\n 'flushMetrics',\n estimateMetricSizeInBytes,\n _INTERNAL_flushMetricsBuffer,\n );\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 {\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} 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 {\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 }\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(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>>>`\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 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 /**\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) => 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) => 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 * The optional `hint` exposes additional context about the originating span (e.g. the OTel `spanKind`).\n */\n public on(\n hook: 'preprocessSpan',\n callback: (streamedSpanJSON: StreamedSpanJSON, hint?: { spanKind?: number }) => void,\n ): () => 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 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 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 * 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 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 /**\n * Fire a hook event after a span ends and the `spanEnd` hook has run.\n */\n public emit(hook: 'afterSpanEnd', immutableSpan: Readonly): 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): 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, hint?: { spanKind?: number }): 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 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 * 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 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 {\n this.emit('beforeEnvelope', envelope);\n\n if (this._isEnabled() && this._transport) {\n try {\n return await this._transport.send(envelope);\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 `crashed` based on the event level and update from exceptions if there are any later on\n let crashed = event.level === 'fatal';\n let errored = false;\n const exceptions = event.exception?.values;\n\n if (exceptions) {\n errored = true;\n // reset crashed to false if there are exceptions, to ensure `mechanism.handled` is respected.\n crashed = false;\n\n for (const ex of exceptions) {\n if (ex.mechanism?.handled === false) {\n crashed = 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 crashed and send update\n const sessionNonTerminal = session.status === 'ok';\n const shouldUpdateAndSend = (sessionNonTerminal && session.errors === 0) || (sessionNonTerminal && crashed);\n\n if (shouldUpdateAndSend) {\n updateSession(session, {\n ...(crashed && { status: 'crashed' }),\n errors: session.errors || Number(errored || crashed),\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 {\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 {\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 {\n if (DEBUG_BUILD && isErrorEvent(event)) {\n debug.log(`Captured error event \\`${getPossibleEventMessages(event)[0] || ''}\\``);\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 {\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\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 this.recordDroppedEvent('event_processor', dataCategory);\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 return _validateBeforeSendResult(result, beforeSendLabel);\n })\n .then(processedEvent => {\n if (processedEvent === null) {\n this.recordDroppedEvent('before_send', 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 const spanCount = 1 + spans.length;\n this.recordDroppedEvent('before_send', 'span', spanCount);\n }\n throw _makeDoNotSendEventError(`${beforeSendLabel} returned \\`null\\`, 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(taskProducer: () => PromiseLike, 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;\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;\n}\n\nfunction getDataCategoryByType(type: EventType | 'replay_event' | undefined): DataCategory {\n return type === 'replay_event' ? 'replay' : type || 'error';\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,\n beforeSendLabel: string,\n): PromiseLike | 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): PromiseLike | Event | null {\n const { beforeSend, beforeSendTransaction, ignoreSpans } = options;\n const beforeSendSpan = !isStreamedBeforeSendSpanCallback(options.beforeSendSpan) && options.beforeSendSpan;\n\n let processedEvent = event;\n\n if (isErrorEvent(processedEvent) && beforeSend) {\n return beforeSend(processedEvent, hint);\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 = beforeSendSpan(rootSpanJson);\n if (!processedRootSpanJson) {\n showSpanDropWarning();\n } else {\n // update event with processed root span values\n processedEvent = merge(event, convertSpanJsonToTransactionEvent(processedRootSpanJson));\n }\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 const processedSpan = beforeSendSpan(span);\n if (!processedSpan) {\n showSpanDropWarning();\n processedSpans.push(span);\n } else {\n processedSpans.push(processedSpan);\n }\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 beforeSendTransaction(processedEvent as TransactionEvent, hint);\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 | 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 { Client } from './client';\nimport { 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 = 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(\n clientClass: ClientClass,\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 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 * Make the given client the current client.\n */\nexport function setCurrentClient(client: Client): void {\n getCurrentScope().setClient(client);\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(\n data: Record,\n behavior: CollectBehavior,\n additionalDenyTerms?: string[],\n): Record {\n if (behavior === false) {\n return {};\n }\n\n const result: Record = {};\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 { 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 { 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 { 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 \u2014 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 // An empty query is passed through as-is so call sites keep emitting the same shape as before.\n if (!query) {\n return query;\n }\n\n // v10 records `URL.search` verbatim, so the leading `?` has to survive filtering.\n const hasPrefix = query.startsWith('?');\n const filtered = filterQueryParams(hasPrefix ? query.slice(1) : query, urlQueryParamsBehavior(client));\n return filtered && hasPrefix ? `?${filtered}` : filtered;\n}\n", "import { URL_FULL } from '@sentry/conventions/attributes';\nimport {\n SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD,\n SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,\n SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,\n} from '../semanticAttributes';\nimport type { Client } from '../client';\nimport type { SpanAttributes } from '../types/span';\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\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 [SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: spanOrigin,\n [SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]: 'url',\n };\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 attributes[SEMANTIC_ATTRIBUTE_SENTRY_SOURCE] = 'route';\n }\n\n if (request?.method) {\n attributes[SEMANTIC_ATTRIBUTE_HTTP_REQUEST_METHOD] = request.method.toUpperCase();\n }\n\n if (urlObject) {\n if (urlObject.search) {\n attributes['url.query'] = filterCollectedUrlQuery(urlObject.search, client);\n }\n if (urlObject.hash) {\n attributes['url.fragment'] = urlObject.hash;\n }\n if (urlObject.pathname) {\n attributes['url.path'] = urlObject.pathname;\n if (urlObject.pathname === '/') {\n attributes[SEMANTIC_ATTRIBUTE_SENTRY_SOURCE] = 'route';\n }\n }\n\n if (!isURLObjectRelative(urlObject)) {\n attributes[URL_FULL] = filterCollectedUrl(urlObject.href, client);\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 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 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 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", "import type { Session, SessionAggregates } from '../types/session';\nimport type { User } from '../types/user';\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 * @deprecated -- set ip inferral via via SDK metadata options on client instead.\n */\nexport function addAutoIpAddressToUser(objWithMaybeUser: { user?: User | null }): void {\n if (objWithMaybeUser.user?.ip_address === undefined) {\n objWithMaybeUser.user = {\n ...objWithMaybeUser.user,\n ip_address: '{{auto}}',\n };\n }\n}\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 { 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", "import { getAsyncContextStrategy } from '../asyncContext';\nimport { getMainCarrier } from '../carrier';\nimport type { Client } from '../client';\nimport { getClient, getCurrentScope, hasExternalPropagationContext } from '../currentScopes';\nimport { isEnabled } from '../exports';\nimport type { Scope } from '../scope';\nimport { getDynamicSamplingContextFromScope, getDynamicSamplingContextFromSpan } from '../tracing';\nimport { spanIsNonRecordingSpan } from '../tracing/sentryNonRecordingSpan';\nimport type { Span } from '../types/span';\nimport type { SerializedTraceData } from '../types/tracing';\nimport { dynamicSamplingContextToSentryBaggageHeader } from './baggage';\nimport { debug } from './debug-logger';\nimport { hasSpansEnabled } from './hasSpansEnabled';\nimport { getActiveSpan, spanToTraceHeader, spanToTraceparentHeader } from './spanUtils';\nimport { generateSentryTraceHeader, generateTraceparentHeader, TRACEPARENT_REGEXP } from './tracing';\n\n/**\n * Extracts trace propagation data from the current span or from the client's scope (via transaction or propagation\n * context) and serializes it to `sentry-trace` and `baggage` values. These values can be used to propagate\n * a trace via our tracing Http headers or Html `` tags.\n *\n * This function also applies some validation to the generated sentry-trace and baggage values to ensure that\n * only valid strings are returned.\n *\n * When an external propagation context is registered (e.g. via the OTLP integration) and there is no active\n * Sentry span, this function returns an empty object to defer outgoing request propagation to the external\n * propagator (e.g. an OpenTelemetry propagator).\n *\n * If (@param options.propagateTraceparent) is `true`, the function will also generate a `traceparent` value,\n * following the W3C traceparent header format.\n *\n * @returns an object with the tracing data values. The object keys are the name of the tracing key to be used as header\n * or meta tag name.\n */\nexport function getTraceData(\n options: { span?: Span; scope?: Scope; client?: Client; propagateTraceparent?: boolean } = {},\n): SerializedTraceData {\n const client = options.client || getClient();\n if (!isEnabled() || !client) {\n return {};\n }\n\n const carrier = getMainCarrier();\n const acs = getAsyncContextStrategy(carrier);\n if (acs.getTraceData) {\n return acs.getTraceData(options);\n }\n\n const scope = options.scope || getCurrentScope();\n const span = options.span || getActiveSpan();\n\n // In Tracing-without-Performance (TwP) mode, spans are non-recording placeholders that carry no\n // sampling decision of their own (it's deferred). The scope is the source of truth, so we read\n // the trace headers from the scope. A non-recording span in *tracing* mode (e.g. an unsampled\n // child or an ignored span) is different: it represents an explicit negative decision, which\n // `spanToTraceHeader` correctly encodes as `-0`, so we keep reading those from the span.\n const isTwpPlaceholder = spanIsNonRecordingSpan(span) && !hasSpansEnabled(client.getOptions());\n\n // When there's no recording span and an external propagation context is registered (e.g. OTLP\n // integration), return empty to let the external propagator handle outgoing request propagation.\n if (!span && hasExternalPropagationContext()) {\n return {};\n }\n\n const sentryTrace = span && !isTwpPlaceholder ? spanToTraceHeader(span) : scopeToTraceHeader(scope);\n const dsc = span ? getDynamicSamplingContextFromSpan(span) : getDynamicSamplingContextFromScope(client, scope);\n const baggage = dynamicSamplingContextToSentryBaggageHeader(dsc);\n\n const isValidSentryTraceHeader = TRACEPARENT_REGEXP.test(sentryTrace);\n if (!isValidSentryTraceHeader) {\n debug.warn('Invalid sentry-trace data. Cannot generate trace data');\n return {};\n }\n\n const traceData: SerializedTraceData = {\n 'sentry-trace': sentryTrace,\n baggage,\n };\n\n if (options.propagateTraceparent) {\n traceData.traceparent = span && !isTwpPlaceholder ? spanToTraceparentHeader(span) : scopeToTraceparentHeader(scope);\n }\n\n return traceData;\n}\n\n/**\n * Get a sentry-trace header value for the given scope.\n */\nfunction scopeToTraceHeader(scope: Scope): string {\n const { traceId, sampled, propagationSpanId } = scope.getPropagationContext();\n return generateSentryTraceHeader(traceId, propagationSpanId, sampled);\n}\n\nfunction scopeToTraceparentHeader(scope: Scope): string {\n const { traceId, sampled, propagationSpanId } = scope.getPropagationContext();\n return generateTraceparentHeader(traceId, propagationSpanId, sampled);\n}\n", "import { getClient, getIsolationScope } from './currentScopes';\nimport type { Breadcrumb, BreadcrumbHint } from './types/breadcrumb';\nimport { consoleSandbox } from './utils/debug-logger';\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 ? consoleSandbox(() => beforeBreadcrumb(mergedBreadcrumb, hint))\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 { 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();\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 { DEBUG_BUILD } from '../debug-build';\nimport { defineIntegration } from '../integration';\nimport type { Event } from '../types/event';\nimport type { IntegrationFn } from '../types/integration';\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;\n denyUrls: Array;\n ignoreErrors: Array;\n ignoreTransactions: Array;\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 = {}) => {\n let mergedOptions: Partial | 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\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 *\n * @deprecated this integration was renamed and will be removed in a future major version.\n * Use `eventFiltersIntegration` instead.\n */\nexport const inboundFiltersIntegration = defineIntegration(((options: Partial = {}) => {\n return {\n ...eventFiltersIntegration(options),\n name: 'InboundFilters' as const,\n };\n}) satisfies IntegrationFn);\n\nfunction _mergeOptions(\n internalOptions: Partial = {},\n clientOptions: Partial = {},\n): Partial {\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): 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): 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): 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): 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): 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 !== '' && 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 { 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 { 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(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): 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 {\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", "/* 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([]);\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();\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 } as HandlerDataConsole);\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 { 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 type { StackFrame } from '../types/stackframe';\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 * Deduplication filter.\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 let currentFrames = getFramesFromEvent(currentEvent);\n let previousFrames = getFramesFromEvent(previousEvent);\n\n // If neither event has a stacktrace, they are assumed to be the same\n if (!currentFrames && !previousFrames) {\n return true;\n }\n\n // If only one event has a stacktrace, but not the other one, they are not the same\n if ((currentFrames && !previousFrames) || (!currentFrames && previousFrames)) {\n return false;\n }\n\n currentFrames = currentFrames as StackFrame[];\n previousFrames = previousFrames as StackFrame[];\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 let currentFingerprint = currentEvent.fingerprint;\n let previousFingerprint = previousEvent.fingerprint;\n\n // If neither event has a fingerprint, they are assumed to be the same\n if (!currentFingerprint && !previousFingerprint) {\n return true;\n }\n\n // If only one event has a fingerprint, but not the other one, they are not the same\n if ((currentFingerprint && !previousFingerprint) || (!currentFingerprint && previousFingerprint)) {\n return false;\n }\n\n currentFingerprint = currentFingerprint as string[];\n previousFingerprint = previousFingerprint as string[];\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 { Client } from '../client';\nimport { getCurrentScope, getIsolationScope } from '../currentScopes';\nimport { defineIntegration } from '../integration';\nimport { GEN_AI_CONVERSATION_ID_ATTRIBUTE } from '../semanticAttributes';\nimport type { IntegrationFn } from '../types/integration';\nimport type { Span } from '../types/span';\nimport { spanToJSON } 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 } = spanToJSON(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_ATTRIBUTE, 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 { HTTP_URL, URL_FULL } from '@sentry/conventions/attributes';\nimport type { Client } from './client';\nimport { getClient } from './currentScopes';\nimport { SEMANTIC_ATTRIBUTE_SENTRY_OP, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN } from './semanticAttributes';\nimport { setHttpStatus, SPAN_STATUS_ERROR, spanIsIgnored, startInactiveSpan } from './tracing';\nimport { SentryNonRecordingSpan } from './tracing/sentryNonRecordingSpan';\nimport { hasSpanStreamingEnabled } from './tracing/spans/hasSpanStreamingEnabled';\nimport type { FetchBreadcrumbHint } from './types/breadcrumb';\nimport type { HandlerDataFetch } from './types/instrument';\nimport type { ResponseHookInfo } from './types/request';\nimport type { Span, SpanAttributes, SpanOrigin } from './types/span';\nimport { SENTRY_BAGGAGE_KEY_PREFIX } from './utils/baggage';\nimport { filterCollectedUrl, filterCollectedUrlQuery } from './utils/data-collection/filterCollectedUrl';\nimport { hasSpansEnabled } from './utils/hasSpansEnabled';\nimport { isInstanceOf, isRequest } from './utils/is';\nimport { getActiveSpan } from './utils/spanUtils';\nimport { getTraceData } from './utils/traceData';\nimport {\n getSanitizedUrlStringFromUrlObject,\n isURLObjectRelative,\n parseStringToURLObject,\n stripDataUrlContent,\n} from './utils/url';\n\ntype PolymorphicRequestHeaders =\n | Record\n | Array<[string, unknown]>\n | Iterable>\n // the below is not precisely the Header type used in Request, but it'll pass duck-typing\n | {\n append: (key: string, value: string) => void;\n get: (key: string) => string | null | undefined;\n };\n\ninterface InstrumentFetchRequestOptions {\n spanOrigin?: SpanOrigin;\n propagateTraceparent?: boolean;\n onRequestSpanEnd?: (span: Span, responseInformation: ResponseHookInfo) => void;\n}\n\n/**\n * Create and track fetch request spans for usage in combination with `addFetchInstrumentationHandler`.\n *\n * @deprecated pass an options object instead of the spanOrigin parameter\n *\n * @returns Span if a span was created, otherwise void.\n */\nexport function instrumentFetchRequest(\n handlerData: HandlerDataFetch,\n shouldCreateSpan: (url: string) => boolean,\n shouldAttachHeaders: (url: string) => boolean,\n spans: Record,\n spanOrigin: SpanOrigin,\n): Span | undefined;\n/**\n * Create and track fetch request spans for usage in combination with `addFetchInstrumentationHandler`.\n *\n * @returns Span if a span was created, otherwise void.\n */\nexport function instrumentFetchRequest(\n handlerData: HandlerDataFetch,\n shouldCreateSpan: (url: string) => boolean,\n shouldAttachHeaders: (url: string) => boolean,\n spans: Record,\n // eslint-disable-next-line @typescript-eslint/unified-signatures -- needed because the other overload is deprecated\n instrumentFetchRequestOptions: InstrumentFetchRequestOptions,\n): Span | undefined;\n\n/**\n * Create and track fetch request spans for usage in combination with `addFetchInstrumentationHandler`.\n *\n * @returns Span if a span was created, otherwise void.\n */\nexport function instrumentFetchRequest(\n handlerData: HandlerDataFetch,\n shouldCreateSpan: (url: string) => boolean,\n shouldAttachHeaders: (url: string) => boolean,\n spans: Record,\n spanOriginOrOptions?: SpanOrigin | InstrumentFetchRequestOptions,\n): Span | undefined {\n if (!handlerData.fetchData) {\n return undefined;\n }\n\n const { method, url } = handlerData.fetchData;\n\n const shouldCreateSpanResult = hasSpansEnabled() && shouldCreateSpan(url);\n\n if (handlerData.endTimestamp) {\n const spanId = handlerData.fetchData.__span;\n if (!spanId) return;\n\n const span = spans[spanId];\n\n if (span) {\n // Only end the span and call hooks if we're actually recording\n if (shouldCreateSpanResult) {\n endSpan(span, handlerData);\n _callOnRequestSpanEnd(span, handlerData, spanOriginOrOptions);\n }\n\n // eslint-disable-next-line @typescript-eslint/no-dynamic-delete\n delete spans[spanId];\n }\n\n return undefined;\n }\n\n // Backwards-compatible with the old signature. Needed to introduce the combined optional parameter\n // to avoid API breakage for anyone calling this function with the optional spanOrigin parameter\n // TODO (v11): remove this backwards-compatible code and only accept the options parameter\n const { spanOrigin = 'auto.http.browser', propagateTraceparent = false } =\n typeof spanOriginOrOptions === 'object' ? spanOriginOrOptions : { spanOrigin: spanOriginOrOptions };\n\n const client = getClient();\n const hasParent = !!getActiveSpan();\n // With span streaming, we always emit http.client spans, even without a parent span\n const shouldEmitSpan = hasParent || (!!client && hasSpanStreamingEnabled(client));\n\n const span =\n shouldCreateSpanResult && shouldEmitSpan\n ? startInactiveSpan(getSpanStartOptions(url, method, spanOrigin, client))\n : new SentryNonRecordingSpan();\n const spanForTraceHeaders = spanIsIgnored(span) && hasParent ? undefined : span;\n\n if (shouldCreateSpanResult && !shouldEmitSpan) {\n client?.recordDroppedEvent('no_parent_span', 'span');\n }\n\n handlerData.fetchData.__span = span.spanContext().spanId;\n spans[span.spanContext().spanId] = span;\n\n if (shouldAttachHeaders(handlerData.fetchData.url)) {\n const request: string | Request = handlerData.args[0];\n\n // Shallow clone the options object to avoid mutating the original user-provided object\n // Examples: users re-using same options object for multiple fetch calls, frozen objects\n const options: { [key: string]: unknown } = { ...(handlerData.args[1] || {}) };\n\n const headers = _INTERNAL_getTracingHeadersForFetchRequest(\n request,\n options,\n // If performance is disabled (TWP) or there's no active root span (pageload/navigation/interaction),\n // we do not want to use the span as base for the trace headers,\n // which means that the headers will be generated from the scope and the sampling decision is deferred\n hasSpansEnabled() && shouldEmitSpan ? spanForTraceHeaders : undefined,\n propagateTraceparent,\n );\n if (headers) {\n // Ensure this is actually set, if no options have been passed previously\n handlerData.args[1] = options;\n options.headers = headers;\n }\n }\n\n if (client) {\n const fetchHint = {\n input: handlerData.args,\n response: handlerData.response,\n startTimestamp: handlerData.startTimestamp,\n endTimestamp: handlerData.endTimestamp,\n } satisfies FetchBreadcrumbHint;\n\n client.emit('beforeOutgoingRequestSpan', span, fetchHint);\n }\n\n return span;\n}\n\n/**\n * Calls the onRequestSpanEnd callback if it is defined.\n */\nexport function _callOnRequestSpanEnd(\n span: Span,\n handlerData: HandlerDataFetch,\n spanOriginOrOptions?: SpanOrigin | InstrumentFetchRequestOptions,\n): void {\n const onRequestSpanEnd =\n typeof spanOriginOrOptions === 'object' && spanOriginOrOptions !== null\n ? spanOriginOrOptions.onRequestSpanEnd\n : undefined;\n\n onRequestSpanEnd?.(span, {\n headers: handlerData.response?.headers,\n error: handlerData.error,\n });\n}\n\n/**\n * Builds merged fetch headers that include `sentry-trace` and `baggage` (and optionally `traceparent`)\n * for the given request and init, without mutating the original request or options.\n * Returns `undefined` when there is no `sentry-trace` value to attach.\n *\n * @internal Exported for cross-package instrumentation (for example Cloudflare Workers fetcher bindings)\n * and unit tests\n *\n * Baggage handling:\n * 1. No previous baggage header \u2192 include Sentry baggage\n * 2. Previous baggage has no Sentry entries \u2192 merge Sentry baggage in\n * 3. Previous baggage already has Sentry entries \u2192 leave as-is (may be user-defined)\n */\n// eslint-disable-next-line complexity -- yup it's this complicated :(\nexport function _INTERNAL_getTracingHeadersForFetchRequest(\n request: string | URL | Request,\n fetchOptionsObj: {\n headers?:\n | {\n [key: string]: string[] | string | undefined;\n }\n | PolymorphicRequestHeaders;\n },\n span?: Span,\n propagateTraceparent?: boolean,\n): PolymorphicRequestHeaders | undefined {\n const traceHeaders = getTraceData({ span, propagateTraceparent });\n const sentryTrace = traceHeaders['sentry-trace'];\n const baggage = traceHeaders.baggage;\n const traceparent = traceHeaders.traceparent;\n\n // Nothing to do, when we return undefined here, the original headers will be used\n if (!sentryTrace) {\n return undefined;\n }\n\n const originalHeaders = fetchOptionsObj.headers || (isRequest(request) ? request.headers : undefined);\n\n if (!originalHeaders) {\n return {\n 'sentry-trace': sentryTrace,\n ...(baggage && { baggage }),\n ...(traceparent && { traceparent }),\n };\n } else if (isHeaders(originalHeaders)) {\n const newHeaders = new Headers(originalHeaders);\n\n // We don't want to override manually added sentry headers\n if (!newHeaders.get('sentry-trace')) {\n newHeaders.set('sentry-trace', sentryTrace);\n }\n\n if (propagateTraceparent && traceparent && !newHeaders.get('traceparent')) {\n newHeaders.set('traceparent', traceparent);\n }\n\n if (baggage) {\n const prevBaggageHeader = newHeaders.get('baggage');\n\n if (!prevBaggageHeader) {\n newHeaders.set('baggage', baggage);\n } else if (!baggageHeaderHasSentryBaggageValues(prevBaggageHeader)) {\n newHeaders.set('baggage', `${prevBaggageHeader},${baggage}`);\n }\n }\n\n return newHeaders;\n } else if (isHeadersInitTupleArray(originalHeaders)) {\n const newHeaders = [...originalHeaders];\n\n if (!newHeaders.find(header => header[0] === 'sentry-trace')) {\n newHeaders.push(['sentry-trace', sentryTrace]);\n }\n\n if (propagateTraceparent && traceparent && !newHeaders.find(header => header[0] === 'traceparent')) {\n newHeaders.push(['traceparent', traceparent]);\n }\n\n const prevBaggageHeaderWithSentryValues = originalHeaders.find(\n header =>\n header[0] === 'baggage' && typeof header[1] === 'string' && baggageHeaderHasSentryBaggageValues(header[1]),\n );\n\n if (baggage && !prevBaggageHeaderWithSentryValues) {\n // If there are multiple entries with the same key, the browser will merge the values into a single request header.\n // Its therefore safe to simply push a \"baggage\" entry, even though there might already be another baggage header.\n newHeaders.push(['baggage', baggage]);\n }\n\n return newHeaders;\n } else {\n const existingSentryTraceHeader = 'sentry-trace' in originalHeaders ? originalHeaders['sentry-trace'] : undefined;\n const existingTraceparentHeader = 'traceparent' in originalHeaders ? originalHeaders.traceparent : undefined;\n const existingBaggageHeader = 'baggage' in originalHeaders ? originalHeaders.baggage : undefined;\n\n const newBaggageHeaders: string[] = existingBaggageHeader\n ? Array.isArray(existingBaggageHeader)\n ? [...existingBaggageHeader]\n : [existingBaggageHeader]\n : [];\n\n const prevBaggageHeaderWithSentryValues =\n existingBaggageHeader &&\n (Array.isArray(existingBaggageHeader)\n ? existingBaggageHeader.find(headerItem => baggageHeaderHasSentryBaggageValues(headerItem))\n : baggageHeaderHasSentryBaggageValues(existingBaggageHeader));\n\n if (baggage && !prevBaggageHeaderWithSentryValues) {\n newBaggageHeaders.push(baggage);\n }\n\n const newHeaders: {\n 'sentry-trace': string;\n baggage?: string;\n traceparent?: string;\n } = Object.assign({}, originalHeaders, {\n 'sentry-trace': (existingSentryTraceHeader as string | undefined) ?? sentryTrace,\n ...(newBaggageHeaders.length > 0 && { baggage: newBaggageHeaders.join(',') }),\n });\n\n if (propagateTraceparent && traceparent && !existingTraceparentHeader) {\n newHeaders.traceparent = traceparent;\n }\n\n return newHeaders;\n }\n}\n\nfunction endSpan(span: Span, handlerData: HandlerDataFetch): void {\n if (handlerData.response) {\n setHttpStatus(span, handlerData.response.status);\n\n const contentLength = handlerData.response?.headers?.get('content-length');\n\n if (contentLength) {\n const contentLengthNum = parseInt(contentLength);\n if (contentLengthNum > 0) {\n span.setAttribute('http.response_content_length', contentLengthNum);\n }\n }\n } else if (handlerData.error) {\n span.setStatus({ code: SPAN_STATUS_ERROR, message: 'internal_error' });\n }\n span.end();\n}\n\nfunction baggageHeaderHasSentryBaggageValues(baggageHeader: unknown): boolean {\n if (typeof baggageHeader !== 'string') {\n return false;\n }\n\n return baggageHeader.split(',').some(baggageEntry => baggageEntry.trim().startsWith(SENTRY_BAGGAGE_KEY_PREFIX));\n}\n\nfunction isHeaders(headers: unknown): headers is Headers {\n return typeof Headers !== 'undefined' && isInstanceOf(headers, Headers);\n}\n\n/** `HeadersInit` array form: each entry is a [name, value] pair of strings. */\nfunction isHeadersInitTupleArray(headers: unknown): headers is [string, unknown][] {\n if (!Array.isArray(headers)) {\n return false;\n }\n\n return headers.every(\n (item): item is [string, unknown] => Array.isArray(item) && item.length === 2 && typeof item[0] === 'string',\n );\n}\n\nfunction getSpanStartOptions(\n url: string,\n method: string,\n spanOrigin: SpanOrigin,\n client: Client | undefined,\n): Parameters[0] {\n // Data URLs need special handling because parseStringToURLObject treats them as \"relative\"\n // (no \"://\"), causing getSanitizedUrlStringFromUrlObject to return just the pathname\n // without the \"data:\" prefix, making later stripDataUrlContent calls ineffective.\n // So for data URLs, we strip the content first and use that directly.\n if (url.startsWith('data:')) {\n const sanitizedUrl = stripDataUrlContent(url);\n return {\n name: `${method} ${sanitizedUrl}`,\n attributes: getFetchSpanAttributes(url, undefined, method, spanOrigin, client),\n };\n }\n\n const parsedUrl = parseStringToURLObject(url);\n const sanitizedUrl = parsedUrl ? getSanitizedUrlStringFromUrlObject(parsedUrl) : url;\n return {\n name: `${method} ${sanitizedUrl}`,\n attributes: getFetchSpanAttributes(url, parsedUrl, method, spanOrigin, client),\n };\n}\n\nfunction getFetchSpanAttributes(\n url: string,\n parsedUrl: ReturnType,\n method: string,\n spanOrigin: SpanOrigin,\n client: Client | undefined,\n): SpanAttributes {\n const attributes: SpanAttributes = {\n url: filterCollectedUrl(stripDataUrlContent(url), client),\n type: 'fetch',\n 'http.method': method,\n [SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: spanOrigin,\n [SEMANTIC_ATTRIBUTE_SENTRY_OP]: 'http.client',\n };\n if (parsedUrl) {\n if (!isURLObjectRelative(parsedUrl)) {\n // oxlint-disable-next-line typescript/no-deprecated\n attributes[HTTP_URL] = filterCollectedUrl(stripDataUrlContent(parsedUrl.href), client);\n attributes[URL_FULL] = filterCollectedUrl(stripDataUrlContent(parsedUrl.href), client);\n attributes['server.address'] = parsedUrl.host;\n }\n if (parsedUrl.search) {\n attributes['http.query'] = filterCollectedUrlQuery(parsedUrl.search, client);\n }\n if (parsedUrl.hash) {\n attributes['http.fragment'] = parsedUrl.hash;\n }\n }\n return attributes;\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 { 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 DOMError objects\n * {@link supportsDOMError}.\n *\n * @returns Answer to the given question.\n */\nexport function supportsDOMError(): boolean {\n try {\n // Chrome: VM89:1 Uncaught TypeError: Failed to construct 'DOMError':\n // 1 argument required, but only 0 present.\n // @ts-expect-error It really needs 1 argument, not 0.\n new DOMError('');\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 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 * 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 ReportingObserver API\n * {@link supportsReportingObserver}.\n *\n * @returns Answer to the given question.\n */\nexport function supportsReportingObserver(): boolean {\n return 'ReportingObserver' in WINDOW;\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", "/* 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 { 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(\n handler: (data: HandlerDataFetch) => void,\n skipNativeFetchCheck?: boolean,\n): () => void {\n const type = 'fetch';\n const removeHandler = addHandler(type, handler);\n maybeInstrument(type, () => instrumentFetch(undefined, skipNativeFetchCheck));\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, skipNativeFetchCheck: boolean = false): void {\n if (skipNativeFetchCheck && !supportsNativeFetch()) {\n return;\n }\n\n fill(GLOBAL_OBJ, 'fetch', function (originalFetch: () => void): () => void {\n return function (...args: any[]): void {\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 // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n return originalFetch.apply(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\nasync function resolveResponse(res: Response | undefined, onFinishedResolving: () => void): Promise {\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(obj: unknown, prop: T): obj is Record {\n return isObjectLike(obj) && !!(obj as Record)[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 { isString } from './is';\nimport { GLOBAL_OBJ } from './worldwide';\n\nconst WINDOW = GLOBAL_OBJ as unknown as Window;\n\nconst DEFAULT_MAX_STRING_LENGTH = 80;\n\ntype SimpleNode = {\n parentNode: SimpleNode;\n} | null;\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 * @deprecated This is browser-specific and will be removed from `@sentry/core` in a future major version.\n * Import `htmlTreeAsString` from `@sentry/browser-utils` instead.\n */\nexport function htmlTreeAsString(\n elem: unknown,\n options: string[] | { keyAttrs?: string[]; maxStringLength?: number } = {},\n): string {\n if (!elem) {\n return '';\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 = currentElem.parentNode;\n }\n\n return out.reverse().join(separator);\n } catch {\n return '';\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 elem = el as {\n tagName?: string;\n id?: string;\n className?: string;\n getAttribute(key: string): string;\n };\n\n const out = [];\n\n if (!elem?.tagName) {\n return '';\n }\n\n // @ts-expect-error WINDOW has HTMLElement\n if (WINDOW.HTMLElement) {\n // If using the component name annotation plugin, this value may be available on the DOM node\n if (elem instanceof HTMLElement && elem.dataset) {\n if (elem.dataset['sentryComponent']) {\n return elem.dataset['sentryComponent'];\n }\n if (elem.dataset['sentryElement']) {\n return elem.dataset['sentryElement'];\n }\n }\n }\n\n out.push(elem.tagName.toLowerCase());\n\n // Pairs of attribute keys defined in `serializeAttribute` and their values on element.\n const keyAttrPairs = keyAttrs?.length\n ? keyAttrs.filter(keyAttr => elem.getAttribute(keyAttr)).map(keyAttr => [keyAttr, elem.getAttribute(keyAttr)])\n : null;\n\n if (keyAttrPairs?.length) {\n keyAttrPairs.forEach(keyAttrPair => {\n out.push(`[${keyAttrPair[0]}=\"${keyAttrPair[1]}\"]`);\n });\n } else {\n if (elem.id) {\n out.push(`#${elem.id}`);\n }\n\n const className = elem.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 = elem.getAttribute(k);\n if (attr) {\n out.push(`[${k}=\"${attr}\"]`);\n }\n }\n\n return out.join('');\n}\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\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 (!WINDOW.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 { Mechanism, WrappedFunction } from '@sentry/core/browser';\nimport {\n addExceptionMechanism,\n addExceptionTypeValue,\n addNonEnumerableProperty,\n captureException,\n getLocationHref,\n getOriginalFunction,\n GLOBAL_OBJ,\n markFunctionWrapped,\n withScope,\n} from '@sentry/core/browser';\n\nexport const WINDOW = GLOBAL_OBJ as typeof GLOBAL_OBJ & Window;\n\nlet ignoreOnError: number = 0;\n\n/**\n * @hidden\n */\nexport function shouldIgnoreOnError(): boolean {\n return ignoreOnError > 0;\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(\n fn: T,\n options?: {\n mechanism?: Mechanism;\n },\n): WrappedFunction;\nexport function wrap(\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(\n fn: T | NonFunction,\n options: {\n mechanism?: Mechanism;\n } = {},\n): NonFunction | WrappedFunction {\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).__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;\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 } {\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", "import type {\n Event,\n EventHint,\n Exception,\n ParameterizedString,\n SeverityLevel,\n StackFrame,\n StackParser,\n} from '@sentry/core/browser';\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/browser';\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,\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 event = {\n exception: {\n values: [\n {\n type: isEvent(exception) ? exception.constructor.name : isUnhandledRejection ? 'UnhandledRejection' : 'Error',\n value: getNonErrorObjectExceptionValue(exception, { isUnhandledRejection }),\n } as Exception,\n ],\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\n// @ts-expect-error - WebAssembly.Exception is a valid class\nfunction isWebAssemblyException(exception: unknown): exception is WebAssembly.Exception {\n // Check for support\n // @ts-expect-error - WebAssembly.Exception is a valid class\n // oxlint-disable-next-line typescript/prefer-optional-chain\n if (typeof WebAssembly !== 'undefined' && typeof WebAssembly.Exception !== 'undefined') {\n // @ts-expect-error - WebAssembly.Exception is a valid class\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 {\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 {\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 as ErrorEvent) && (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 as DOMException)) {\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 if ('code' in domException) {\n // eslint-disable-next-line typescript/no-deprecated\n event.tags = { ...event.tags, 'DOMException.code': `${domException.code}` };\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 event = eventFromString(stackParser, exception as string, syntheticException, attachStacktrace);\n addExceptionTypeValue(event, `${exception}`, 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,\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): Error | undefined {\n return Object.values(obj).find(isError);\n}\n", "import type {\n BrowserClientProfilingOptions,\n BrowserClientReplayOptions,\n ClientOptions,\n Event,\n EventHint,\n Options as CoreOptions,\n ParameterizedString,\n Scope,\n SeverityLevel,\n} from '@sentry/core/browser';\nimport { addAutoIpAddressToSession, applySdkMetadata, Client, getSDKSource } from '@sentry/core/browser';\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\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 * Configuration options for the Sentry Browser SDK.\n * @see @sentry/core Options for more information.\n */\nexport type BrowserOptions = CoreOptions & BrowserSpecificOptions;\n\n/**\n * Configuration options for the Sentry Browser SDK Client class\n * @see BrowserClient for more information.\n */\nexport type BrowserClientOptions = ClientOptions & 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 {\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 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 {\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 {\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 {\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>(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", "declare const __DEBUG_BUILD__: boolean;\n\n/**\n * This serves as a build time flag that will be true by default, but false in non-debug builds or if users replace `__SENTRY_DEBUG__` in their generated code.\n *\n * ATTENTION: This constant must never cross package boundaries (i.e. be exported) to guarantee that it can be used for tree shaking.\n */\nexport const DEBUG_BUILD = __DEBUG_BUILD__;\n", "import type {\n FetchBreadcrumbHint,\n HandlerDataFetch,\n SentryWrappedXMLHttpRequest,\n XhrBreadcrumbHint,\n} from '@sentry/core';\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 &\n Partial>;\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 * Copyright 2020 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 type { MetricRatingThresholds, MetricType } from '../types';\n\nconst getRating = (value: number, thresholds: MetricRatingThresholds): MetricType['rating'] => {\n if (value > thresholds[1]) {\n return 'poor';\n }\n if (value > thresholds[0]) {\n return 'needs-improvement';\n }\n return 'good';\n};\n\nexport const bindReporter = (\n callback: (metric: Extract) => void,\n metric: Extract,\n thresholds: MetricRatingThresholds,\n reportAllChanges?: boolean,\n) => {\n let prevValue: number;\n let delta: number;\n return (forceReport?: boolean) => {\n if (metric.value >= 0) {\n if (forceReport || reportAllChanges) {\n delta = metric.value - (prevValue ?? 0);\n\n // Report the metric if there's a non-zero delta or if no previous\n // value exists (which can happen in the case of the document becoming\n // hidden when the metric value is 0).\n // See: https://github.com/GoogleChrome/web-vitals/issues/14\n if (delta || prevValue === undefined) {\n prevValue = metric.value;\n metric.delta = delta;\n metric.rating = getRating(metric.value, thresholds);\n callback(metric);\n }\n }\n }\n };\n};\n", "/*\n * Copyright 2022 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// 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", "/*\n * Copyright 2022 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 { getNavigationEntry } from './getNavigationEntry';\n\nexport const getActivationStart = (): number => {\n const navEntry = getNavigationEntry();\n return navEntry?.activationStart ?? 0;\n};\n", "import { 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 * 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 * Copyright 2020 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';\nimport { getActivationStart } from './getActivationStart';\nimport { addPageListener, removePageListener } from './globalListeners';\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 (isPageHidden(event) && firstHiddenTime > -1) {\n // Sentry-specific change: Also call onHidden callbacks for pagehide events\n // to support older browsers (Safari <14.4) that don't properly fire visibilitychange\n if (event.type === 'visibilitychange' || event.type === 'pagehide') {\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' or 'pagehide' 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 and pagehide ones 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 // Sentry-specific change: Some browsers have buggy implementations of visibilitychange,\n // so we use pagehide in addition, just to be safe. This is also required for older\n // Safari versions (<14.4) that we still support.\n addPageListener('pagehide', 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 * Check if the page is hidden, uses the `pagehide` event for older browsers support that we used to have in `onHidden` function.\n * Some browsers we still support (Safari <14.4) don't fully support `visibilitychange`\n * or have known bugs w.r.t the `visibilitychange` event.\n * // TODO (v11): If we decide to drop support for Safari 14.4, we can use the logic from web-vitals 4.2.4\n */\nfunction isPageHidden(event: Event) {\n return event.type === 'pagehide' || WINDOW.document?.visibilityState === 'hidden';\n}\n", "/*\n * Copyright 2020 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\n/**\n * Performantly generate a unique, 30-char string by combining a version\n * number, the current timestamp with a 13-digit number integer.\n * @return {string}\n */\nexport const generateUniqueID = () => {\n return `v5-${Date.now()}-${Math.floor(Math.random() * (9e12 - 1)) + 1e12}`;\n};\n", "/*\n * Copyright 2020 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';\nimport type { MetricType } from '../types';\nimport { generateUniqueID } from './generateUniqueID';\nimport { getActivationStart } from './getActivationStart';\nimport { getNavigationEntry } from './getNavigationEntry';\n\nexport const initMetric = (name: MetricName, value: number = -1) => {\n const navEntry = getNavigationEntry();\n let navigationType: MetricType['navigationType'] = 'navigate';\n\n if (navEntry) {\n if (WINDOW.document?.prerendering || getActivationStart() > 0) {\n navigationType = 'prerender';\n } else if (WINDOW.document?.wasDiscarded) {\n navigationType = 'restore';\n } else if (navEntry.type) {\n navigationType = navEntry.type.replace(/_/g, '-') as MetricType['navigationType'];\n }\n }\n\n // Use `entries` type specific for the metric.\n const entries: Extract['entries'] = [];\n\n return {\n name,\n value,\n rating: 'good' as const, // If needed, will be updated when reported. `const` to keep the type from widening to `string`.\n delta: 0,\n entries,\n id: generateUniqueID(),\n navigationType,\n };\n};\n", "/*\n * Copyright 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\nconst instanceMap: WeakMap = new WeakMap();\n\n/**\n * A function that accepts and identity object and a class object and returns\n * either a new instance of that class or an existing instance, if the\n * identity object was previously used.\n */\nexport function initUnique(identityObj: object, ClassObj: new () => T): T {\n try {\n if (!instanceMap.get(identityObj)) {\n instanceMap.set(identityObj, new ClassObj());\n }\n return instanceMap.get(identityObj)! as T;\n } catch (_e) {\n // --- START Sentry-custom code (try/catch wrapping) ---\n // Fix for cases where identityObj is not a valid key for WeakMap (sometimes a problem in Safari)\n // Just return a new instance without caching it in instanceMap\n return new ClassObj();\n }\n // --- END Sentry-custom code ---\n}\n", "/* eslint-disable jsdoc/require-jsdoc */\n/*\n * Copyright 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\nexport class LayoutShiftManager {\n // eslint-disable-next-line @typescript-eslint/explicit-member-accessibility\n _onAfterProcessingUnexpectedShift?: (entry: LayoutShift) => void;\n\n // oxlint-disable-next-line sdk/no-class-field-initializers\n _sessionValue = 0;\n // oxlint-disable-next-line sdk/no-class-field-initializers\n _sessionEntries: LayoutShift[] = [];\n\n // eslint-disable-next-line @typescript-eslint/explicit-member-accessibility\n _processEntry(entry: LayoutShift) {\n // Only count layout shifts without recent user input.\n if (entry.hadRecentInput) return;\n\n const firstSessionEntry = this._sessionEntries[0];\n // This previously used `this._sessionEntries.at(-1)` but that is ES2022. We support ES2021 and earlier.\n const lastSessionEntry = this._sessionEntries[this._sessionEntries.length - 1];\n\n // If the entry occurred less than 1 second after the previous entry\n // and less than 5 seconds after the first entry in the session,\n // include the entry in the current session. Otherwise, start a new\n // session.\n if (\n this._sessionValue &&\n firstSessionEntry &&\n lastSessionEntry &&\n entry.startTime - lastSessionEntry.startTime < 1000 &&\n entry.startTime - firstSessionEntry.startTime < 5000\n ) {\n this._sessionValue += entry.value;\n this._sessionEntries.push(entry);\n } else {\n this._sessionValue = entry.value;\n this._sessionEntries = [entry];\n }\n\n this._onAfterProcessingUnexpectedShift?.(entry);\n }\n}\n", "/*\n * Copyright 2020 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\ninterface PerformanceEntryMap {\n event: PerformanceEventTiming[];\n 'first-input': PerformanceEventTiming[];\n 'layout-shift': LayoutShift[];\n 'largest-contentful-paint': LargestContentfulPaint[];\n 'long-animation-frame': PerformanceLongAnimationFrameTiming[];\n paint: PerformancePaintTiming[];\n navigation: PerformanceNavigationTiming[];\n resource: PerformanceResourceTiming[];\n // Sentry-specific change:\n // We add longtask as a supported entry type as we use this in\n // our `instrumentPerformanceObserver` function also observes 'longtask'\n // entries.\n longtask: PerformanceEntry[];\n // Sentry-specific change:\n // We add element as a supported entry type for ElementTiming API\n element: PerformanceEntry[];\n}\n\n/**\n * Takes a performance entry type and a callback function, and creates a\n * `PerformanceObserver` instance that will observe the specified entry type\n * with buffering enabled and call the callback _for each entry_.\n *\n * This function also feature-detects entry support and wraps the logic in a\n * try/catch to avoid errors in unsupporting browsers.\n */\nexport const observe = (\n type: K,\n callback: (entries: PerformanceEntryMap[K]) => void,\n opts: PerformanceObserverInit = {},\n): PerformanceObserver | undefined => {\n try {\n if (PerformanceObserver.supportedEntryTypes.includes(type)) {\n const po = new PerformanceObserver(list => {\n // Delay by a microtask to workaround a bug in Safari where the\n // callback is invoked immediately, rather than in a separate task.\n // See: https://github.com/GoogleChrome/web-vitals/issues/277\n // eslint-disable-next-line @typescript-eslint/no-floating-promises\n Promise.resolve().then(() => {\n callback(list.getEntries() as PerformanceEntryMap[K]);\n });\n });\n po.observe({ type, buffered: true, ...opts });\n return po;\n }\n } catch {\n // Do nothing.\n }\n return;\n};\n", "/*\n * Copyright 2022 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\nexport const runOnce = (cb: () => void) => {\n let called = false;\n return () => {\n if (!called) {\n cb();\n called = true;\n }\n };\n};\n", "/*\n * Copyright 2022 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\nexport const whenActivated = (callback: () => void) => {\n if (WINDOW.document?.prerendering) {\n addEventListener('prerenderingchange', () => callback(), true);\n } else {\n callback();\n }\n};\n", "/*\n * Copyright 2020 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 { bindReporter } from './lib/bindReporter';\nimport { getActivationStart } from './lib/getActivationStart';\nimport { getVisibilityWatcher } from './lib/getVisibilityWatcher';\nimport { initMetric } from './lib/initMetric';\nimport { observe } from './lib/observe';\nimport { whenActivated } from './lib/whenActivated';\nimport type { FCPMetric, MetricRatingThresholds, ReportOpts } from './types';\n\n/** Thresholds for FCP. See https://web.dev/articles/fcp#what_is_a_good_fcp_score */\nexport const FCPThresholds: MetricRatingThresholds = [1800, 3000];\n\n/**\n * Calculates the [FCP](https://web.dev/articles/fcp) value for the current page and\n * calls the `callback` function once the value is ready, along with the\n * relevant `paint` performance entry used to determine the value. The reported\n * value is a `DOMHighResTimeStamp`.\n */\nexport const onFCP = (onReport: (metric: FCPMetric) => void, opts: ReportOpts = {}) => {\n whenActivated(() => {\n const visibilityWatcher = getVisibilityWatcher();\n const metric = initMetric('FCP');\n let report: ReturnType;\n\n const handleEntries = (entries: FCPMetric['entries']) => {\n for (const entry of entries) {\n if (entry.name === 'first-contentful-paint') {\n po!.disconnect();\n\n // Only report if the page wasn't hidden prior to the first paint.\n if (entry.startTime < visibilityWatcher.firstHiddenTime) {\n // The activationStart reference is used because FCP should be\n // relative to page activation rather than navigation start if the\n // page was prerendered. But in cases where `activationStart` occurs\n // after the FCP, this time should be clamped at 0.\n metric.value = Math.max(entry.startTime - getActivationStart(), 0);\n metric.entries.push(entry);\n report(true);\n }\n }\n }\n };\n\n const po = observe('paint', handleEntries);\n\n if (po) {\n report = bindReporter(onReport, metric, FCPThresholds, opts.reportAllChanges);\n }\n });\n};\n", "/*\n * Copyright 2020 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';\nimport { bindReporter } from './lib/bindReporter';\nimport { getVisibilityWatcher } from './lib/getVisibilityWatcher';\nimport { initMetric } from './lib/initMetric';\nimport { initUnique } from './lib/initUnique';\nimport { LayoutShiftManager } from './lib/LayoutShiftManager';\nimport { observe } from './lib/observe';\nimport { runOnce } from './lib/runOnce';\nimport { onFCP } from './onFCP';\nimport type { CLSMetric, MetricRatingThresholds, ReportOpts } from './types';\n\n/** Thresholds for CLS. See https://web.dev/articles/cls#what_is_a_good_cls_score */\nexport const CLSThresholds: MetricRatingThresholds = [0.1, 0.25];\n\n/**\n * Calculates the [CLS](https://web.dev/articles/cls) value for the current page and\n * calls the `callback` function once the value is ready to be reported, along\n * with all `layout-shift` performance entries that were used in the metric\n * value calculation. The reported value is a `double` (corresponding to a\n * [layout shift score](https://web.dev/articles/cls#layout_shift_score)).\n *\n * If the `reportAllChanges` configuration option is set to `true`, the\n * `callback` function will be called as soon as the value is initially\n * determined as well as any time the value changes throughout the page\n * lifespan.\n *\n * _**Important:** CLS should be continually monitored for changes throughout\n * the entire lifespan of a page\u2014including if the user returns to the page after\n * it's been hidden/backgrounded. However, since browsers often [will not fire\n * additional callbacks once the user has backgrounded a\n * page](https://developer.chrome.com/blog/page-lifecycle-api/#advice-hidden),\n * `callback` is always called when the page's visibility state changes to\n * hidden. As a result, the `callback` function might be called multiple times\n * during the same page load._\n */\nexport const onCLS = (onReport: (metric: CLSMetric) => void, opts: ReportOpts = {}) => {\n // Start monitoring FCP so we can only report CLS if FCP is also reported.\n // Note: this is done to match the current behavior of CrUX.\n onFCP(\n runOnce(() => {\n const metric = initMetric('CLS', 0);\n let report: ReturnType;\n const visibilityWatcher = getVisibilityWatcher();\n\n const layoutShiftManager = initUnique(opts, LayoutShiftManager);\n\n const handleEntries = (entries: LayoutShift[]) => {\n for (const entry of entries) {\n layoutShiftManager._processEntry(entry);\n }\n\n // If the current session value is larger than the current CLS value,\n // update CLS and the entries contributing to it.\n if (layoutShiftManager._sessionValue > metric.value) {\n metric.value = layoutShiftManager._sessionValue;\n metric.entries = layoutShiftManager._sessionEntries;\n report();\n }\n };\n\n const po = observe('layout-shift', handleEntries);\n if (po) {\n report = bindReporter(onReport, metric, CLSThresholds, opts.reportAllChanges);\n\n visibilityWatcher.onHidden(() => {\n handleEntries(po.takeRecords() as CLSMetric['entries']);\n report(true);\n });\n\n // Queue a task to report (if nothing else triggers a report first).\n // This allows CLS to be reported as soon as FCP fires when\n // `reportAllChanges` is true.\n WINDOW?.setTimeout?.(report);\n }\n }),\n );\n};\n", "/*\n * Copyright 2022 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 { observe } from '../observe';\n\ndeclare global {\n interface Performance {\n interactionCount: number;\n }\n}\n\nlet interactionCountEstimate = 0;\nlet minKnownInteractionId = Infinity;\nlet maxKnownInteractionId = 0;\n\nconst updateEstimate = (entries: PerformanceEventTiming[]) => {\n entries.forEach(e => {\n if (e.interactionId) {\n minKnownInteractionId = Math.min(minKnownInteractionId, e.interactionId);\n maxKnownInteractionId = Math.max(maxKnownInteractionId, e.interactionId);\n\n interactionCountEstimate = maxKnownInteractionId ? (maxKnownInteractionId - minKnownInteractionId) / 7 + 1 : 0;\n }\n });\n};\n\nlet po: PerformanceObserver | undefined;\n\n/**\n * Returns the `interactionCount` value using the native API (if available)\n * or the polyfill estimate in this module.\n */\nexport const getInteractionCount = (): number => {\n return po ? interactionCountEstimate : performance.interactionCount || 0;\n};\n\n/**\n * Feature detects native support or initializes the polyfill if needed.\n */\nexport const initInteractionCountPolyfill = (): void => {\n if ('interactionCount' in performance || po) return;\n\n po = observe('event', updateEstimate, {\n type: 'event',\n buffered: true,\n durationThreshold: 0,\n } as PerformanceObserverInit);\n};\n", "/*\n * Copyright 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 { getInteractionCount } from './polyfills/interactionCountPolyfill.js';\n\nexport interface Interaction {\n _latency: number;\n // While the `id` and `entries` properties are also internal and could be\n // mangled by prefixing with an underscore, since they correspond to public\n // symbols there is no need to mangle them as the library will compress\n // better if we reuse the existing names.\n id: number;\n entries: PerformanceEventTiming[];\n}\n\n// To prevent unnecessary memory usage on pages with lots of interactions,\n// store at most 10 of the longest interactions to consider as INP candidates.\nconst MAX_INTERACTIONS_TO_CONSIDER = 10;\n\n// Used to store the interaction count after a bfcache restore, since p98\n// interaction latencies should only consider the current navigation.\nlet prevInteractionCount = 0;\n\n/**\n * Returns the interaction count since the last bfcache restore (or for the\n * full page lifecycle if there were no bfcache restores).\n */\nconst getInteractionCountForNavigation = () => {\n return getInteractionCount() - prevInteractionCount;\n};\n\n/**\n *\n */\nexport class InteractionManager {\n /**\n * A list of longest interactions on the page (by latency) sorted so the\n * longest one is first. The list is at most MAX_INTERACTIONS_TO_CONSIDER\n * long.\n */\n // oxlint-disable-next-line sdk/no-class-field-initializers\n _longestInteractionList: Interaction[] = [];\n\n /**\n * A mapping of longest interactions by their interaction ID.\n * This is used for faster lookup.\n */\n // oxlint-disable-next-line sdk/no-class-field-initializers\n _longestInteractionMap: Map = new Map();\n\n // eslint-disable-next-line @typescript-eslint/explicit-member-accessibility\n _onBeforeProcessingEntry?: (entry: PerformanceEventTiming) => void;\n\n // eslint-disable-next-line @typescript-eslint/explicit-member-accessibility\n _onAfterProcessingINPCandidate?: (interaction: Interaction) => void;\n\n // eslint-disable-next-line @typescript-eslint/explicit-member-accessibility, jsdoc/require-jsdoc\n _resetInteractions() {\n prevInteractionCount = getInteractionCount();\n this._longestInteractionList.length = 0;\n this._longestInteractionMap.clear();\n }\n\n /**\n * Returns the estimated p98 longest interaction based on the stored\n * interaction candidates and the interaction count for the current page.\n */\n // eslint-disable-next-line @typescript-eslint/explicit-member-accessibility\n _estimateP98LongestInteraction() {\n const candidateInteractionIndex = Math.min(\n this._longestInteractionList.length - 1,\n Math.floor(getInteractionCountForNavigation() / 50),\n );\n\n return this._longestInteractionList[candidateInteractionIndex];\n }\n\n /**\n * Takes a performance entry and adds it to the list of worst interactions\n * if its duration is long enough to make it among the worst. If the\n * entry is part of an existing interaction, it is merged and the latency\n * and entries list is updated as needed.\n */\n // eslint-disable-next-line @typescript-eslint/explicit-member-accessibility\n _processEntry(entry: PerformanceEventTiming) {\n this._onBeforeProcessingEntry?.(entry);\n\n // Skip further processing for entries that cannot be INP candidates.\n if (!(entry.interactionId || entry.entryType === 'first-input')) return;\n\n // The least-long of the 10 longest interactions.\n const minLongestInteraction = this._longestInteractionList.at(-1);\n\n let interaction = this._longestInteractionMap.get(entry.interactionId);\n\n // Only process the entry if it's possibly one of the ten longest,\n // or if it's part of an existing interaction.\n if (\n interaction ||\n this._longestInteractionList.length < MAX_INTERACTIONS_TO_CONSIDER ||\n // If the above conditions are false, `minLongestInteraction` will be set.\n entry.duration > minLongestInteraction!._latency\n ) {\n // If the interaction already exists, update it. Otherwise create one.\n if (interaction) {\n // If the new entry has a longer duration, replace the old entries,\n // otherwise add to the array.\n if (entry.duration > interaction._latency) {\n interaction.entries = [entry];\n interaction._latency = entry.duration;\n } else if (entry.duration === interaction._latency && entry.startTime === interaction.entries[0]!.startTime) {\n interaction.entries.push(entry);\n }\n } else {\n interaction = {\n id: entry.interactionId,\n entries: [entry],\n _latency: entry.duration,\n };\n this._longestInteractionMap.set(interaction.id, interaction);\n this._longestInteractionList.push(interaction);\n }\n\n // Sort the entries by latency (descending) and keep only the top ten.\n this._longestInteractionList.sort((a, b) => b._latency - a._latency);\n if (this._longestInteractionList.length > MAX_INTERACTIONS_TO_CONSIDER) {\n const removedInteractions = this._longestInteractionList.splice(MAX_INTERACTIONS_TO_CONSIDER);\n\n for (const interaction of removedInteractions) {\n this._longestInteractionMap.delete(interaction.id);\n }\n }\n\n // Call any post-processing on the interaction\n this._onAfterProcessingINPCandidate?.(interaction);\n }\n }\n}\n", "/*\n * Copyright 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.js';\nimport { addPageListener, removePageListener } from './globalListeners.js';\nimport { runOnce } from './runOnce.js';\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 // eslint-disable-next-line no-param-reassign\n cb = runOnce(cb);\n addPageListener('visibilitychange', cb, { once: true, capture: true });\n // sentry: we use pagehide instead of directly listening to visibilitychange\n // because some browsers we still support (Safari <14.4) don't fully support\n // `visibilitychange` or have known bugs w.r.t the `visibilitychange` event.\n // TODO(v11): remove this once we drop support for Safari <14.4\n addPageListener('pagehide', cb, { once: true, capture: true });\n rIC(() => {\n cb();\n // Remove the above event listener since no longer required.\n // See: https://github.com/GoogleChrome/web-vitals/issues/622\n removePageListener('visibilitychange', cb, { capture: true });\n // TODO(v11): remove this once we drop support for Safari <14.4\n removePageListener('pagehide', cb, { capture: true });\n });\n }\n};\n", "/*\n * Copyright 2022 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 { bindReporter } from './lib/bindReporter';\nimport { getVisibilityWatcher } from './lib/getVisibilityWatcher';\nimport { initMetric } from './lib/initMetric';\nimport { initUnique } from './lib/initUnique';\nimport { InteractionManager } from './lib/InteractionManager';\nimport { observe } from './lib/observe';\nimport { initInteractionCountPolyfill } from './lib/polyfills/interactionCountPolyfill';\nimport { whenActivated } from './lib/whenActivated';\nimport { whenIdleOrHidden } from './lib/whenIdleOrHidden';\nimport type { INPMetric, INPReportOpts, MetricRatingThresholds } from './types';\n\n/** Thresholds for INP. See https://web.dev/articles/inp#what_is_a_good_inp_score */\nexport const INPThresholds: MetricRatingThresholds = [200, 500];\n\n// The default `durationThreshold` used across this library for observing\n// `event` entries via PerformanceObserver.\nconst DEFAULT_DURATION_THRESHOLD = 40;\n\n/**\n * Calculates the [INP](https://web.dev/articles/inp) value for the current\n * page and calls the `callback` function once the value is ready, along with\n * the `event` performance entries reported for that interaction. The reported\n * value is a `DOMHighResTimeStamp`.\n *\n * A custom `durationThreshold` configuration option can optionally be passed\n * to control what `event-timing` entries are considered for INP reporting. The\n * default threshold is `40`, which means INP scores of less than 40 will not\n * be reported. To avoid reporting no interactions in these cases, the library\n * will fall back to the input delay of the first interaction. Note that this\n * will not affect your 75th percentile INP value unless that value is also\n * less than 40 (well below the recommended\n * [good](https://web.dev/articles/inp#what_is_a_good_inp_score) threshold).\n *\n * If the `reportAllChanges` configuration option is set to `true`, the\n * `callback` function will be called as soon as the value is initially\n * determined as well as any time the value changes throughout the page\n * lifespan.\n *\n * _**Important:** INP should be continually monitored for changes throughout\n * the entire lifespan of a page\u2014including if the user returns to the page after\n * it's been hidden/backgrounded. However, since browsers often [will not fire\n * additional callbacks once the user has backgrounded a\n * page](https://developer.chrome.com/blog/page-lifecycle-api/#advice-hidden),\n * `callback` is always called when the page's visibility state changes to\n * hidden. As a result, the `callback` function might be called multiple times\n * during the same page load._\n */\nexport const onINP = (onReport: (metric: INPMetric) => void, opts: INPReportOpts = {}) => {\n // Return if the browser doesn't support all APIs needed to measure INP.\n if (!(globalThis.PerformanceEventTiming && 'interactionId' in PerformanceEventTiming.prototype)) {\n return;\n }\n\n const visibilityWatcher = getVisibilityWatcher();\n\n whenActivated(() => {\n // TODO(philipwalton): remove once the polyfill is no longer needed.\n initInteractionCountPolyfill();\n\n const metric = initMetric('INP');\n // eslint-disable-next-line prefer-const\n let report: ReturnType;\n\n const interactionManager = initUnique(opts, InteractionManager);\n\n const handleEntries = (entries: INPMetric['entries']) => {\n // Queue the `handleEntries()` callback in the next idle task.\n // This is needed to increase the chances that all event entries that\n // occurred between the user interaction and the next paint\n // have been dispatched. Note: there is currently an experiment\n // running in Chrome (EventTimingKeypressAndCompositionInteractionId)\n // 123+ that if rolled out fully may make this no longer necessary.\n whenIdleOrHidden(() => {\n for (const entry of entries) {\n interactionManager._processEntry(entry);\n }\n\n const inp = interactionManager._estimateP98LongestInteraction();\n\n if (inp && inp._latency !== metric.value) {\n metric.value = inp._latency;\n metric.entries = inp.entries;\n report();\n }\n });\n };\n\n const po = observe('event', handleEntries, {\n // Event Timing entries have their durations rounded to the nearest 8ms,\n // so a duration of 40ms would be any event that spans 2.5 or more frames\n // at 60Hz. This threshold is chosen to strike a balance between usefulness\n // and performance. Running this callback for any interaction that spans\n // just one or two frames is likely not worth the insight that could be\n // gained.\n durationThreshold: opts.durationThreshold ?? DEFAULT_DURATION_THRESHOLD,\n });\n\n report = bindReporter(onReport, metric, INPThresholds, opts.reportAllChanges);\n\n if (po) {\n // Also observe entries of type `first-input`. This is useful in cases\n // where the first interaction is less than the `durationThreshold`.\n po.observe({ type: 'first-input', buffered: true });\n\n visibilityWatcher.onHidden(() => {\n handleEntries(po.takeRecords() as INPMetric['entries']);\n report(true);\n });\n }\n });\n};\n", "/*\n * Copyright 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\n// eslint-disable-next-line jsdoc/require-jsdoc\nexport class LCPEntryManager {\n // eslint-disable-next-line @typescript-eslint/explicit-member-accessibility\n _onBeforeProcessingEntry?: (entry: LargestContentfulPaint) => void;\n\n // eslint-disable-next-line @typescript-eslint/explicit-member-accessibility, jsdoc/require-jsdoc\n _processEntry(entry: LargestContentfulPaint) {\n this._onBeforeProcessingEntry?.(entry);\n }\n}\n", "/*\n * Copyright 2020 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 { bindReporter } from './lib/bindReporter';\nimport { getActivationStart } from './lib/getActivationStart';\nimport { getVisibilityWatcher } from './lib/getVisibilityWatcher';\nimport { addPageListener, removePageListener } from './lib/globalListeners';\nimport { initMetric } from './lib/initMetric';\nimport { initUnique } from './lib/initUnique';\nimport { LCPEntryManager } from './lib/LCPEntryManager';\nimport { observe } from './lib/observe';\nimport { runOnce } from './lib/runOnce';\nimport { whenActivated } from './lib/whenActivated';\nimport { whenIdleOrHidden } from './lib/whenIdleOrHidden';\nimport type { LCPMetric, MetricRatingThresholds, ReportOpts } from './types';\n\n/** Thresholds for LCP. See https://web.dev/articles/lcp#what_is_a_good_lcp_score */\nexport const LCPThresholds: MetricRatingThresholds = [2500, 4000];\n\n/**\n * Calculates the [LCP](https://web.dev/articles/lcp) value for the current page and\n * calls the `callback` function once the value is ready (along with the\n * relevant `largest-contentful-paint` performance entry used to determine the\n * value). The reported value is a `DOMHighResTimeStamp`.\n *\n * If the `reportAllChanges` configuration option is set to `true`, the\n * `callback` function will be called any time a new `largest-contentful-paint`\n * performance entry is dispatched, or once the final value of the metric has\n * been determined.\n */\nexport const onLCP = (onReport: (metric: LCPMetric) => void, opts: ReportOpts = {}) => {\n whenActivated(() => {\n const visibilityWatcher = getVisibilityWatcher();\n const metric = initMetric('LCP');\n let report: ReturnType;\n\n const lcpEntryManager = initUnique(opts, LCPEntryManager);\n\n const handleEntries = (entries: LCPMetric['entries']) => {\n // If reportAllChanges is set then call this function for each entry,\n // otherwise only consider the last one.\n if (!opts.reportAllChanges) {\n // eslint-disable-next-line no-param-reassign\n entries = entries.slice(-1);\n }\n\n for (const entry of entries) {\n // Upstream has this guard too; a patched PerformanceObserver can yield nullish entries.\n if (!entry) continue;\n\n lcpEntryManager._processEntry(entry);\n\n // Only report if the page wasn't hidden prior to LCP.\n if (entry.startTime < visibilityWatcher.firstHiddenTime) {\n // The startTime attribute returns the value of the renderTime if it is\n // not 0, and the value of the loadTime otherwise. The activationStart\n // reference is used because LCP should be relative to page activation\n // rather than navigation start if the page was prerendered. But in cases\n // where `activationStart` occurs after the LCP, this time should be\n // clamped at 0.\n metric.value = Math.max(entry.startTime - getActivationStart(), 0);\n metric.entries = [entry];\n report();\n }\n }\n };\n\n const po = observe('largest-contentful-paint', handleEntries);\n\n if (po) {\n report = bindReporter(onReport, metric, LCPThresholds, opts.reportAllChanges);\n\n // Ensure this logic only runs once, since it can be triggered from\n // any of three different event listeners below.\n const stopListening = runOnce(() => {\n handleEntries(po.takeRecords() as LCPMetric['entries']);\n po.disconnect();\n report(true);\n });\n\n // Need a separate wrapper to ensure the `runOnce` function above is\n // common for all three functions\n const stopListeningWrapper = (event: Event) => {\n if (event.isTrusted) {\n // Wrap the listener in an idle callback so it's run in a separate\n // task to reduce potential INP impact.\n // https://github.com/GoogleChrome/web-vitals/issues/383\n whenIdleOrHidden(stopListening);\n removePageListener(event.type, stopListeningWrapper, {\n capture: true,\n });\n }\n };\n\n // Stop listening after input or visibilitychange.\n // Note: while scrolling is an input that stops LCP observation, it's\n // unreliable since it can be programmatically generated.\n // See: https://github.com/GoogleChrome/web-vitals/issues/75\n for (const type of ['keydown', 'click', 'visibilitychange']) {\n addPageListener(type, stopListeningWrapper, {\n capture: true,\n });\n }\n }\n });\n};\n", "/*\n * Copyright 2020 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';\nimport { bindReporter } from './lib/bindReporter';\nimport { getActivationStart } from './lib/getActivationStart';\nimport { getNavigationEntry } from './lib/getNavigationEntry';\nimport { initMetric } from './lib/initMetric';\nimport { whenActivated } from './lib/whenActivated';\nimport type { MetricRatingThresholds, ReportOpts, TTFBMetric } from './types';\n\n/** Thresholds for TTFB. See https://web.dev/articles/ttfb#what_is_a_good_ttfb_score */\nexport const TTFBThresholds: MetricRatingThresholds = [800, 1800];\n\n/**\n * Runs in the next task after the page is done loading and/or prerendering.\n * @param callback\n */\nconst whenReady = (callback: () => void) => {\n if (WINDOW.document?.prerendering) {\n whenActivated(() => whenReady(callback));\n } else if (WINDOW.document?.readyState !== 'complete') {\n addEventListener('load', () => whenReady(callback), true);\n } else {\n // Queue a task so the callback runs after `loadEventEnd`.\n setTimeout(callback);\n }\n};\n\n/**\n * Calculates the [TTFB](https://web.dev/articles/ttfb) value for the\n * current page and calls the `callback` function once the page has loaded,\n * along with the relevant `navigation` performance entry used to determine the\n * value. The reported value is a `DOMHighResTimeStamp`.\n *\n * Note, this function waits until after the page is loaded to call `callback`\n * in order to ensure all properties of the `navigation` entry are populated.\n * This is useful if you want to report on other metrics exposed by the\n * [Navigation Timing API](https://w3c.github.io/navigation-timing/). For\n * example, the TTFB metric starts from the page's [time\n * origin](https://www.w3.org/TR/hr-time-2/#sec-time-origin), which means it\n * includes time spent on DNS lookup, connection negotiation, network latency,\n * and server processing time.\n */\nexport const onTTFB = (onReport: (metric: TTFBMetric) => void, opts: ReportOpts = {}) => {\n const metric = initMetric('TTFB');\n const report = bindReporter(onReport, metric, TTFBThresholds, opts.reportAllChanges);\n\n whenReady(() => {\n const navigationEntry = getNavigationEntry();\n\n if (navigationEntry) {\n // The activationStart reference is used because TTFB should be\n // relative to page activation rather than navigation start if the\n // page was prerendered. But in cases where `activationStart` occurs\n // after the first byte is received, this time should be clamped at 0.\n metric.value = Math.max(navigationEntry.responseStart - getActivationStart(), 0);\n\n metric.entries = [navigationEntry];\n report(true);\n }\n });\n};\n", "import { debug, getFunctionName } from '@sentry/core';\nimport { DEBUG_BUILD } from '../debug-build';\nimport { onCLS } from './web-vitals/getCLS';\nimport { onINP } from './web-vitals/getINP';\nimport { onLCP } from './web-vitals/getLCP';\nimport { observe } from './web-vitals/lib/observe';\nimport { onTTFB } from './web-vitals/onTTFB';\n\ntype InstrumentHandlerTypePerformanceObserver =\n | 'longtask'\n | 'event'\n | 'navigation'\n | 'paint'\n | 'resource'\n | 'element'\n // fist-input is still needed for INP\n | 'first-input';\n\ntype InstrumentHandlerTypeMetric = 'cls' | 'lcp' | 'ttfb' | 'inp';\n\n// We provide this here manually instead of relying on a global, as this is not available in non-browser environements\n// And we do not want to expose such types\ninterface PerformanceEntry {\n readonly duration: number;\n readonly entryType: string;\n readonly name: string;\n readonly startTime: number;\n toJSON(): Record;\n}\nexport interface PerformanceEventTiming extends PerformanceEntry {\n processingStart: number;\n processingEnd: number;\n duration: number;\n cancelable?: boolean;\n target?: unknown | null;\n interactionId?: number;\n}\n\ninterface PerformanceScriptTiming extends PerformanceEntry {\n sourceURL: string;\n sourceFunctionName: string;\n sourceCharPosition: number;\n invoker: string;\n invokerType: string;\n}\nexport interface PerformanceLongAnimationFrameTiming extends PerformanceEntry {\n scripts: PerformanceScriptTiming[];\n}\n\ninterface Metric {\n /**\n * The name of the metric (in acronym form).\n */\n name: 'CLS' | 'FCP' | 'INP' | 'LCP' | 'TTFB';\n\n /**\n * The current value of the metric.\n */\n value: number;\n\n /**\n * The rating as to whether the metric value is within the \"good\",\n * \"needs improvement\", or \"poor\" thresholds of the metric.\n */\n rating: 'good' | 'needs-improvement' | 'poor';\n\n /**\n * The delta between the current value and the last-reported value.\n * On the first report, `delta` and `value` will always be the same.\n */\n delta: number;\n\n /**\n * A unique ID representing this particular metric instance. This ID can\n * be used by an analytics tool to dedupe multiple values sent for the same\n * metric instance, or to group multiple deltas together and calculate a\n * total. It can also be used to differentiate multiple different metric\n * instances sent from the same page, which can happen if the page is\n * restored from the back/forward cache (in that case new metrics object\n * get created).\n */\n id: string;\n\n /**\n * Any performance entries relevant to the metric value calculation.\n * The array may also be empty if the metric value was not based on any\n * entries (e.g. a CLS value of 0 given no layout shifts).\n */\n entries: PerformanceEntry[];\n\n /**\n * The type of navigation\n *\n * Navigation Timing API (or `undefined` if the browser doesn't\n * support that API). For pages that are restored from the bfcache, this\n * value will be 'back-forward-cache'.\n */\n navigationType: 'navigate' | 'reload' | 'back-forward' | 'back-forward-cache' | 'prerender' | 'restore';\n}\n\ntype InstrumentHandlerType = InstrumentHandlerTypeMetric | InstrumentHandlerTypePerformanceObserver;\n\ntype StopListening = undefined | void | (() => void);\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\ntype InstrumentHandlerCallback = (data: any) => void;\n\ntype CleanupHandlerCallback = () => void;\n\nconst handlers: { [key in InstrumentHandlerType]?: InstrumentHandlerCallback[] } = {};\nconst instrumented: { [key in InstrumentHandlerType]?: boolean } = {};\n\nlet _previousCls: Metric | undefined;\nlet _previousLcp: Metric | undefined;\nlet _previousTtfb: Metric | undefined;\nlet _previousInp: Metric | undefined;\n\n/**\n * Add a callback that will be triggered when a CLS metric is available.\n * Returns a cleanup callback which can be called to remove the instrumentation handler.\n *\n * Pass `stopOnCallback = true` to stop listening for CLS when the cleanup callback is called.\n * This will lead to the CLS being finalized and frozen.\n */\nexport function addClsInstrumentationHandler(\n callback: (data: { metric: Metric }) => void,\n stopOnCallback = false,\n): CleanupHandlerCallback {\n return addMetricObserver('cls', callback, instrumentCls, _previousCls, stopOnCallback);\n}\n\n/**\n * Add a callback that will be triggered when a LCP metric is available.\n * Returns a cleanup callback which can be called to remove the instrumentation handler.\n *\n * Pass `stopOnCallback = true` to stop listening for LCP when the cleanup callback is called.\n * This will lead to the LCP being finalized and frozen.\n */\nexport function addLcpInstrumentationHandler(\n callback: (data: { metric: Metric }) => void,\n stopOnCallback = false,\n): CleanupHandlerCallback {\n return addMetricObserver('lcp', callback, instrumentLcp, _previousLcp, stopOnCallback);\n}\n\n/**\n * Add a callback that will be triggered when a TTFD metric is available.\n */\nexport function addTtfbInstrumentationHandler(callback: (data: { metric: Metric }) => void): CleanupHandlerCallback {\n return addMetricObserver('ttfb', callback, instrumentTtfb, _previousTtfb);\n}\n\nexport type InstrumentationHandlerCallback = (data: {\n metric: Omit & {\n entries: PerformanceEventTiming[];\n };\n}) => void;\n\n/**\n * Add a callback that will be triggered when a INP metric is available.\n * Returns a cleanup callback which can be called to remove the instrumentation handler.\n */\nexport function addInpInstrumentationHandler(callback: InstrumentationHandlerCallback): CleanupHandlerCallback {\n return addMetricObserver('inp', callback, instrumentInp, _previousInp);\n}\n\nexport function addPerformanceInstrumentationHandler(\n type: 'event',\n callback: (data: { entries: ((PerformanceEntry & { target?: unknown | null }) | PerformanceEventTiming)[] }) => void,\n): CleanupHandlerCallback;\nexport function addPerformanceInstrumentationHandler(\n type: InstrumentHandlerTypePerformanceObserver,\n callback: (data: { entries: PerformanceEntry[] }) => void,\n): CleanupHandlerCallback;\n\n/**\n * Add a callback that will be triggered when a performance observer is triggered,\n * and receives the entries of the observer.\n * Returns a cleanup callback which can be called to remove the instrumentation handler.\n */\nexport function addPerformanceInstrumentationHandler(\n type: InstrumentHandlerTypePerformanceObserver,\n callback: (data: { entries: PerformanceEntry[] }) => void,\n): CleanupHandlerCallback {\n addHandler(type, callback);\n\n if (!instrumented[type]) {\n instrumentPerformanceObserver(type);\n instrumented[type] = true;\n }\n\n return getCleanupCallback(type, callback);\n}\n\n/** Trigger all handlers of a given type. */\nfunction triggerHandlers(type: InstrumentHandlerType, data: unknown): void {\n const typeHandlers = handlers[type];\n\n if (!typeHandlers?.length) {\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\nfunction instrumentCls(): StopListening {\n return onCLS(\n metric => {\n triggerHandlers('cls', {\n metric,\n });\n _previousCls = metric;\n },\n // We want the callback to be called whenever the CLS value updates.\n // By default, the callback is only called when the tab goes to the background.\n { reportAllChanges: true },\n );\n}\n\nfunction instrumentLcp(): StopListening {\n return onLCP(\n metric => {\n triggerHandlers('lcp', {\n metric,\n });\n _previousLcp = metric;\n },\n // We want the callback to be called whenever the LCP value updates.\n // By default, the callback is only called when the tab goes to the background.\n { reportAllChanges: true },\n );\n}\n\nfunction instrumentTtfb(): StopListening {\n return onTTFB(metric => {\n triggerHandlers('ttfb', {\n metric,\n });\n _previousTtfb = metric;\n });\n}\n\nfunction instrumentInp(): void {\n return onINP(metric => {\n triggerHandlers('inp', {\n metric,\n });\n _previousInp = metric;\n });\n}\n\nfunction addMetricObserver(\n type: InstrumentHandlerTypeMetric,\n callback: InstrumentHandlerCallback,\n instrumentFn: () => StopListening,\n previousValue: Metric | undefined,\n stopOnCallback = false,\n): CleanupHandlerCallback {\n addHandler(type, callback);\n\n let stopListening: StopListening | undefined;\n\n if (!instrumented[type]) {\n stopListening = instrumentFn();\n instrumented[type] = true;\n }\n\n if (previousValue) {\n callback({ metric: previousValue });\n }\n\n return getCleanupCallback(type, callback, stopOnCallback ? stopListening : undefined);\n}\n\nfunction instrumentPerformanceObserver(type: InstrumentHandlerTypePerformanceObserver): void {\n const options: PerformanceObserverInit = {};\n\n // Special per-type options we want to use\n if (type === 'event') {\n options.durationThreshold = 0;\n }\n\n observe(\n type,\n entries => {\n triggerHandlers(type, { entries });\n },\n options,\n );\n}\n\nfunction addHandler(type: InstrumentHandlerType, handler: InstrumentHandlerCallback): void {\n handlers[type] = handlers[type] || [];\n handlers[type].push(handler);\n}\n\n// Get a callback which can be called to remove the instrumentation handler\nfunction getCleanupCallback(\n type: InstrumentHandlerType,\n callback: InstrumentHandlerCallback,\n stopListening: StopListening,\n): CleanupHandlerCallback {\n return () => {\n if (stopListening) {\n stopListening();\n }\n\n const typeHandlers = handlers[type];\n\n if (!typeHandlers) {\n return;\n }\n\n const index = typeHandlers.indexOf(callback);\n if (index !== -1) {\n typeHandlers.splice(index, 1);\n }\n };\n}\n\n/**\n * Check if a PerformanceEntry is a PerformanceEventTiming by checking for the `duration` property.\n */\nexport function isPerformanceEventTiming(entry: PerformanceEntry): entry is PerformanceEventTiming {\n return 'duration' in entry;\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) \u2014 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> = {};\n\n// oxlint-disable typescript-eslint(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-eslint(unbound-method)\n\nfunction _safeRead(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)[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 '';\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(currentElem, 'parentNode');\n }\n\n return out.reverse().join(separator);\n } catch {\n return '';\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(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(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(el, 'getAttribute', keyAttr))\n .map(keyAttr => [keyAttr, _safeRead(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(el, 'id');\n if (id) {\n out.push(`#${id}`);\n }\n\n const className = _safeRead(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(el, 'getAttribute', k);\n if (attr) {\n out.push(`[${k}=\"${attr}\"]`);\n }\n }\n\n return out.join('');\n}\n", "/*\n * Copyright 2020 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';\nimport { addPageListener } from './globalListeners';\n\nexport interface OnHiddenCallback {\n (event: Event): void;\n}\n\n/**\n * Sentry-specific change:\n *\n * This function's logic was NOT updated to web-vitals 4.2.4 or 5.x but we continue\n * to use the web-vitals 3.5.2 version due to having stricter browser support.\n *\n * PR with context that made the changes:\n * https://github.com/GoogleChrome/web-vitals/pull/442/files#r1530492402\n *\n * The PR removed listening to the `pagehide` event, in favour of only listening to\n * the `visibilitychange` event. This is \"more correct\" but some browsers we still\n * support (Safari <14.4) don't fully support `visibilitychange` or have known bugs\n * with respect to the `visibilitychange` event.\n *\n * TODO (v11): If we decide to drop support for Safari 14.4, we can use the logic\n * from web-vitals 4.2.4. In this case, we also need to update the integration tests\n * that currently trigger the `pagehide` event to simulate the page being hidden.\n *\n * @param {OnHiddenCallback} cb - Callback to be executed when the page is hidden or unloaded.\n *\n * @deprecated use `whenIdleOrHidden` or `addPageListener('visibilitychange')` instead\n */\nexport const onHidden = (cb: OnHiddenCallback) => {\n const onHiddenOrPageHide = (event: Event) => {\n if (event.type === 'pagehide' || WINDOW.document?.visibilityState === 'hidden') {\n cb(event);\n }\n };\n\n addPageListener('visibilitychange', onHiddenOrPageHide, { capture: true, once: true });\n // Some browsers have buggy implementations of visibilitychange,\n // so we use pagehide in addition, just to be safe.\n addPageListener('pagehide', onHiddenOrPageHide, { capture: true, once: true });\n};\n", "import type {\n Client,\n Integration,\n SentrySpan,\n Span,\n SpanAttributes,\n SpanTimeInput,\n StartSpanOptions,\n} from '@sentry/core';\nimport { getClient, getCurrentScope, spanToJSON, startInactiveSpan, withActiveSpan } from '@sentry/core';\nimport { WINDOW } from '../types';\nimport { onHidden } from './web-vitals/lib/onHidden';\n\nexport type WebVitalReportEvent = 'pagehide' | 'navigation';\n\n/**\n * Checks if a given value is a valid measurement value.\n */\nexport function isMeasurementValue(value: unknown): value is number {\n return typeof value === 'number' && isFinite(value);\n}\n\n/**\n * Helper function to start child on transactions. This function will make sure that the transaction will\n * use the start timestamp of the created child span if it is earlier than the transactions actual\n * start timestamp.\n */\nexport function startAndEndSpan(\n parentSpan: Span,\n startTimeInSeconds: number,\n endTime: SpanTimeInput,\n { ...ctx }: StartSpanOptions,\n): Span | undefined {\n const parentStartTime = spanToJSON(parentSpan).start_timestamp;\n if (parentStartTime && parentStartTime > startTimeInSeconds) {\n // We can only do this for SentrySpans...\n if (typeof (parentSpan as Partial).updateStartTime === 'function') {\n (parentSpan as SentrySpan).updateStartTime(startTimeInSeconds);\n }\n }\n\n // The return value only exists for tests\n return withActiveSpan(parentSpan, () => {\n const span = startInactiveSpan({\n startTime: startTimeInSeconds,\n ...ctx,\n });\n\n if (span) {\n span.end(endTime);\n }\n\n return span;\n });\n}\n\ninterface StandaloneWebVitalSpanOptions {\n name: string;\n transaction?: string;\n attributes: SpanAttributes;\n startTime: number;\n}\n\n/**\n * Starts an inactive, standalone span used to send web vital values to Sentry.\n * DO NOT use this for arbitrary spans, as these spans require special handling\n * during ingestion to extract metrics.\n *\n * This function adds a bunch of attributes and data to the span that's shared\n * by all web vital standalone spans. However, you need to take care of adding\n * the actual web vital value as an event to the span. Also, you need to assign\n * a transaction name and some other values that are specific to the web vital.\n *\n * Ultimately, you also need to take care of ending the span to send it off.\n *\n * @param options\n *\n * @returns an inactive, standalone and NOT YET ended span\n */\nexport function startStandaloneWebVitalSpan(options: StandaloneWebVitalSpanOptions): Span | undefined {\n const client = getClient();\n if (!client) {\n return;\n }\n\n const { name, transaction, attributes: passedAttributes, startTime } = options;\n\n const { release, environment } = client.getOptions();\n const { userInfo } = client.getDataCollectionOptions();\n // We need to get the replay, user, and activeTransaction from the current scope\n // so that we can associate replay id, profile id, and a user display to the span\n const replay = client.getIntegrationByName string }>('Replay');\n const replayId = replay?.getReplayId();\n\n const scope = getCurrentScope();\n\n const user = scope.getUser();\n const userDisplay = user !== undefined ? user.email || user.id || user.ip_address : undefined;\n\n let profileId: string | undefined;\n try {\n // @ts-expect-error skip optional chaining to save bundle size with try catch\n profileId = scope.getScopeData().contexts.profile.profile_id;\n } catch {\n // do nothing\n }\n\n const attributes: SpanAttributes = {\n release,\n environment,\n\n user: userDisplay || undefined,\n profile_id: profileId || undefined,\n replay_id: replayId || undefined,\n\n transaction,\n\n // Web vital score calculation relies on the user agent to account for different\n // browsers setting different thresholds for what is considered a good/meh/bad value.\n // For example: Chrome vs. Chrome Mobile\n 'user_agent.original': WINDOW.navigator?.userAgent,\n\n // This tells Sentry to infer the IP address from the request\n 'client.address': userInfo ? '{{auto}}' : undefined,\n\n ...passedAttributes,\n };\n\n return startInactiveSpan({\n name,\n attributes,\n startTime,\n experimental: {\n standalone: true,\n },\n });\n}\n\n/** Get the browser performance API. */\nexport function getBrowserPerformanceAPI(): Performance | undefined {\n // @ts-expect-error we want to make sure all of these are available, even if TS is sure they are\n return WINDOW.addEventListener && WINDOW.performance;\n}\n\n/**\n * Converts from milliseconds to seconds\n * @param time time in ms\n */\nexport function msToSec(time: number): number {\n return time / 1000;\n}\n\n/**\n * Converts ALPN protocol ids to name and version.\n *\n * (https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids)\n * @param nextHopProtocol PerformanceResourceTiming.nextHopProtocol\n */\nexport function extractNetworkProtocol(nextHopProtocol: string): { name: string; version: string } {\n let name = 'unknown';\n let version = 'unknown';\n let _name = '';\n for (const char of nextHopProtocol) {\n // http/1.1 etc.\n if (char === '/') {\n [name, version] = nextHopProtocol.split('/') as [string, string];\n break;\n }\n // h2, h3 etc.\n if (!isNaN(Number(char))) {\n name = _name === 'h' ? 'http' : _name;\n version = nextHopProtocol.split(_name)[1] as string;\n break;\n }\n _name += char;\n }\n if (_name === nextHopProtocol) {\n // webrtc, ftp, etc.\n name = _name;\n }\n return { name, version };\n}\n\n/**\n * Generic support check for web vitals\n */\nexport function supportsWebVital(entryType: 'layout-shift' | 'largest-contentful-paint'): boolean {\n try {\n return PerformanceObserver.supportedEntryTypes.includes(entryType);\n } catch {\n return false;\n }\n}\n\n/**\n * Listens for events on which we want to collect a previously accumulated web vital value.\n * Currently, this includes:\n *\n * - pagehide (i.e. user minimizes browser window, hides tab, etc)\n * - soft navigation (we only care about the vital of the initially loaded route)\n *\n * As a \"side-effect\", this function will also collect the span id of the pageload span.\n *\n * @param collectorCallback the callback to be called when the first of these events is triggered. Parameters:\n * - event: the event that triggered the reporting of the web vital value.\n * - pageloadSpanId: the span id of the pageload span. This is used to link the web vital span to the pageload span.\n * - pageloadSpan: the pageload span instance. This is used for full access to the pageload span for span streaming.\n */\nexport function listenForWebVitalReportEvents(\n client: Client,\n collectorCallback: (event: WebVitalReportEvent, pageloadSpanId: string, pageloadSpan?: Span) => void,\n) {\n let pageloadSpan: Span | undefined;\n\n let collected = false;\n function _runCollectorCallbackOnce(event: WebVitalReportEvent) {\n if (!collected && pageloadSpan) {\n collectorCallback(event, pageloadSpan.spanContext().spanId, pageloadSpan);\n }\n collected = true;\n }\n\n // eslint-disable-next-line typescript/no-deprecated\n onHidden(() => {\n _runCollectorCallbackOnce('pagehide');\n });\n\n const unsubscribeStartNavigation = client.on('beforeStartNavigationSpan', (_, options) => {\n // we only want to collect LCP if we actually navigate. Redirects should be ignored.\n if (!options?.isRedirect) {\n _runCollectorCallbackOnce('navigation');\n unsubscribeStartNavigation();\n unsubscribeAfterStartPageLoadSpan();\n }\n });\n\n const unsubscribeAfterStartPageLoadSpan = client.on('afterStartPageLoadSpan', span => {\n pageloadSpan = span;\n unsubscribeAfterStartPageLoadSpan();\n });\n}\n", "import type { Client, SpanAttributes } from '@sentry/core';\nimport {\n browserPerformanceTimeOrigin,\n debug,\n getCurrentScope,\n SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME,\n SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT,\n SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE,\n SEMANTIC_ATTRIBUTE_SENTRY_OP,\n SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,\n timestampInSeconds,\n} from '@sentry/core';\nimport { DEBUG_BUILD } from '../debug-build';\nimport { htmlTreeAsString } from '../htmlTreeAsString';\nimport { addClsInstrumentationHandler } from './instrument';\nimport type { WebVitalReportEvent } from './utils';\nimport { listenForWebVitalReportEvents, msToSec, startStandaloneWebVitalSpan, supportsWebVital } from './utils';\n\n/**\n * Starts tracking the Cumulative Layout Shift on the current page and collects the value once\n *\n * - the page visibility is hidden\n * - a navigation span is started (to stop CLS measurement for SPA soft navigations)\n *\n * Once either of these events triggers, the CLS value is sent as a standalone span and we stop\n * measuring CLS.\n */\nexport function trackClsAsStandaloneSpan(client: Client): void {\n let standaloneCLsValue = 0;\n let standaloneClsEntry: LayoutShift | undefined;\n\n if (!supportsWebVital('layout-shift')) {\n return;\n }\n\n const cleanupClsHandler = addClsInstrumentationHandler(({ metric }) => {\n const entry = metric.entries[metric.entries.length - 1] as LayoutShift | undefined;\n if (!entry) {\n return;\n }\n standaloneCLsValue = metric.value;\n standaloneClsEntry = entry;\n }, true);\n\n listenForWebVitalReportEvents(client, (reportEvent, pageloadSpanId) => {\n _sendStandaloneClsSpan(standaloneCLsValue, standaloneClsEntry, pageloadSpanId, reportEvent);\n cleanupClsHandler();\n });\n}\n\n/**\n * Exported only for testing!\n */\nexport function _sendStandaloneClsSpan(\n clsValue: number,\n entry: LayoutShift | undefined,\n pageloadSpanId: string,\n reportEvent: WebVitalReportEvent,\n) {\n DEBUG_BUILD && debug.log(`Sending CLS span (${clsValue})`);\n\n const startTime = entry ? msToSec((browserPerformanceTimeOrigin() || 0) + entry.startTime) : timestampInSeconds();\n const routeName = getCurrentScope().getScopeData().transactionName;\n\n const name = entry ? htmlTreeAsString(entry.sources[0]?.node) : 'Layout shift';\n\n const attributes: SpanAttributes = {\n [SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.http.browser.cls',\n [SEMANTIC_ATTRIBUTE_SENTRY_OP]: 'ui.webvital.cls',\n [SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]: 0,\n // attach the pageload span id to the CLS span so that we can link them in the UI\n 'sentry.pageload.span_id': pageloadSpanId,\n // describes what triggered the web vital to be reported\n 'sentry.report_event': reportEvent,\n };\n\n // Add CLS sources as span attributes to help with debugging layout shifts\n // See: https://developer.mozilla.org/en-US/docs/Web/API/LayoutShift/sources\n if (entry?.sources) {\n entry.sources.forEach((source, index) => {\n attributes[`cls.source.${index + 1}`] = htmlTreeAsString(source.node);\n });\n }\n\n const span = startStandaloneWebVitalSpan({\n name,\n transaction: routeName,\n attributes,\n startTime,\n });\n\n if (span) {\n span.addEvent('cls', {\n [SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]: '',\n [SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]: clsValue,\n });\n\n // LayoutShift performance entries always have a duration of 0, so we don't need to add `entry.duration` here\n // see: https://developer.mozilla.org/en-US/docs/Web/API/PerformanceEntry/duration\n span.end(startTime);\n }\n}\n", "import type { Client, SpanAttributes } from '@sentry/core';\nimport {\n browserPerformanceTimeOrigin,\n debug,\n getCurrentScope,\n SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME,\n SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT,\n SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE,\n SEMANTIC_ATTRIBUTE_SENTRY_OP,\n SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,\n} from '@sentry/core';\nimport { DEBUG_BUILD } from '../debug-build';\nimport { htmlTreeAsString } from '../htmlTreeAsString';\nimport { addLcpInstrumentationHandler } from './instrument';\nimport type { WebVitalReportEvent } from './utils';\nimport { listenForWebVitalReportEvents, msToSec, startStandaloneWebVitalSpan, supportsWebVital } from './utils';\n\n/**\n * 60 seconds is the maximum for a plausible LCP value.\n */\nexport const MAX_PLAUSIBLE_LCP_DURATION = 60_000;\n\nexport function isValidLcpMetric(lcpValue: number | undefined): lcpValue is number {\n return lcpValue != null && lcpValue > 0 && lcpValue <= MAX_PLAUSIBLE_LCP_DURATION;\n}\n\n/**\n * Starts tracking the Largest Contentful Paint on the current page and collects the value once\n *\n * - the page visibility is hidden\n * - a navigation span is started (to stop LCP measurement for SPA soft navigations)\n *\n * Once either of these events triggers, the LCP value is sent as a standalone span and we stop\n * measuring LCP for subsequent routes.\n */\nexport function trackLcpAsStandaloneSpan(client: Client): void {\n let standaloneLcpValue = 0;\n let standaloneLcpEntry: LargestContentfulPaint | undefined;\n\n if (!supportsWebVital('largest-contentful-paint')) {\n return;\n }\n\n const cleanupLcpHandler = addLcpInstrumentationHandler(({ metric }) => {\n const entry = metric.entries[metric.entries.length - 1] as LargestContentfulPaint | undefined;\n if (!entry || !isValidLcpMetric(metric.value)) {\n return;\n }\n standaloneLcpValue = metric.value;\n standaloneLcpEntry = entry;\n }, true);\n\n listenForWebVitalReportEvents(client, (reportEvent, pageloadSpanId) => {\n _sendStandaloneLcpSpan(standaloneLcpValue, standaloneLcpEntry, pageloadSpanId, reportEvent);\n cleanupLcpHandler();\n });\n}\n\n/**\n * Exported only for testing!\n */\nexport function _sendStandaloneLcpSpan(\n lcpValue: number,\n entry: LargestContentfulPaint | undefined,\n pageloadSpanId: string,\n reportEvent: WebVitalReportEvent,\n) {\n if (!isValidLcpMetric(lcpValue)) {\n return;\n }\n\n DEBUG_BUILD && debug.log(`Sending LCP span (${lcpValue})`);\n\n const startTime = msToSec((browserPerformanceTimeOrigin() || 0) + (entry?.startTime || 0));\n const routeName = getCurrentScope().getScopeData().transactionName;\n\n const name = entry ? htmlTreeAsString(entry.element) : 'Largest contentful paint';\n\n const attributes: SpanAttributes = {\n [SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.http.browser.lcp',\n [SEMANTIC_ATTRIBUTE_SENTRY_OP]: 'ui.webvital.lcp',\n [SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]: 0, // LCP is a point-in-time metric\n // attach the pageload span id to the LCP span so that we can link them in the UI\n 'sentry.pageload.span_id': pageloadSpanId,\n // describes what triggered the web vital to be reported\n 'sentry.report_event': reportEvent,\n };\n\n if (entry) {\n entry.element && (attributes['lcp.element'] = htmlTreeAsString(entry.element));\n entry.id && (attributes['lcp.id'] = entry.id);\n\n entry.url && (attributes['lcp.url'] = entry.url);\n\n // loadTime is the time of LCP that's related to receiving the LCP element response..\n entry.loadTime != null && (attributes['lcp.loadTime'] = entry.loadTime);\n\n // renderTime is loadTime + rendering time\n // it's 0 if the LCP element is loaded from a 3rd party origin that doesn't send the\n // `Timing-Allow-Origin` header.\n entry.renderTime != null && (attributes['lcp.renderTime'] = entry.renderTime);\n\n entry.size != null && (attributes['lcp.size'] = entry.size);\n }\n\n const span = startStandaloneWebVitalSpan({\n name,\n transaction: routeName,\n attributes,\n startTime,\n });\n\n if (span) {\n span.addEvent('lcp', {\n [SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]: 'millisecond',\n [SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]: lcpValue,\n });\n\n // LCP is a point-in-time metric, so we end the span immediately\n span.end(startTime);\n }\n}\n", "import type { SpanAttributes } from '@sentry/core';\nimport { browserPerformanceTimeOrigin } from '@sentry/core';\nimport { extractNetworkProtocol, getBrowserPerformanceAPI } from './utils';\n\nfunction getAbsoluteTime(time: number | undefined): number | undefined {\n // falsy values should be preserved so that we can later on drop undefined values and\n // preserve 0 vals for cross-origin resources without proper `Timing-Allow-Origin` header.\n return time ? ((browserPerformanceTimeOrigin() || performance.timeOrigin) + time) / 1000 : time;\n}\n\n/**\n * Converts a PerformanceResourceTiming entry to span data for the resource span. Most importantly,\n * it converts the timing values from timestamps relative to the `performance.timeOrigin` to absolute timestamps\n * in seconds.\n *\n * @see https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming#timestamps\n *\n * @param resourceTiming\n * @returns An array where the first element is the attribute name and the second element is the attribute value.\n */\nexport function resourceTimingToSpanAttributes(resourceTiming: PerformanceResourceTiming): SpanAttributes {\n const timingSpanData: SpanAttributes = {};\n // Checking for only `undefined` and `null` is intentional because it's\n // valid for `nextHopProtocol` to be an empty string.\n if (resourceTiming.nextHopProtocol != undefined) {\n const { name, version } = extractNetworkProtocol(resourceTiming.nextHopProtocol);\n timingSpanData['network.protocol.version'] = version;\n timingSpanData['network.protocol.name'] = name;\n }\n\n if (!(browserPerformanceTimeOrigin() || getBrowserPerformanceAPI()?.timeOrigin)) {\n return timingSpanData;\n }\n\n return dropUndefinedKeysFromObject({\n ...timingSpanData,\n\n 'http.request.redirect_start': getAbsoluteTime(resourceTiming.redirectStart),\n 'http.request.redirect_end': getAbsoluteTime(resourceTiming.redirectEnd),\n\n 'http.request.worker_start': getAbsoluteTime(resourceTiming.workerStart),\n\n 'http.request.fetch_start': getAbsoluteTime(resourceTiming.fetchStart),\n\n 'http.request.domain_lookup_start': getAbsoluteTime(resourceTiming.domainLookupStart),\n 'http.request.domain_lookup_end': getAbsoluteTime(resourceTiming.domainLookupEnd),\n\n 'http.request.connect_start': getAbsoluteTime(resourceTiming.connectStart),\n 'http.request.secure_connection_start': getAbsoluteTime(resourceTiming.secureConnectionStart),\n 'http.request.connection_end': getAbsoluteTime(resourceTiming.connectEnd),\n\n 'http.request.request_start': getAbsoluteTime(resourceTiming.requestStart),\n\n 'http.request.response_start': getAbsoluteTime(resourceTiming.responseStart),\n 'http.request.response_end': getAbsoluteTime(resourceTiming.responseEnd),\n\n // For TTFB we actually want the relative time from timeOrigin to responseStart\n // This way, TTFB always measures the \"first page load\" experience.\n // see: https://web.dev/articles/ttfb#measure-resource-requests\n 'http.request.time_to_first_byte':\n resourceTiming.responseStart != null ? resourceTiming.responseStart / 1000 : undefined,\n });\n}\n\n/**\n * Remove properties with `undefined` as value from an object.\n * In contrast to `dropUndefinedKeys` in core this funciton only works on first-level\n * key-value objects and does not recursively go into object properties or arrays.\n */\nfunction dropUndefinedKeysFromObject(attrs: T): Partial {\n return Object.fromEntries(Object.entries(attrs).filter(([, value]) => value != null)) as Partial;\n}\n", "/* eslint-disable max-lines */\nimport type { Client, Measurements, Span, SpanAttributes, SpanAttributeValue, StartSpanOptions } from '@sentry/core';\nimport {\n browserPerformanceTimeOrigin,\n debug,\n getActiveSpan,\n getComponentName,\n isPrimitive,\n parseUrl,\n SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,\n setMeasurement,\n spanToJSON,\n stringMatchesSomePattern,\n filterCollectedUrl,\n} from '@sentry/core';\nimport { htmlTreeAsString } from '../htmlTreeAsString';\nimport { WINDOW } from '../types';\nimport { trackClsAsStandaloneSpan } from './cls';\nimport {\n addClsInstrumentationHandler,\n addLcpInstrumentationHandler,\n addPerformanceInstrumentationHandler,\n addTtfbInstrumentationHandler,\n type PerformanceLongAnimationFrameTiming,\n} from './instrument';\nimport { isValidLcpMetric, trackLcpAsStandaloneSpan } from './lcp';\nimport { resourceTimingToSpanAttributes } from './resourceTiming';\nimport { getBrowserPerformanceAPI, isMeasurementValue, msToSec, startAndEndSpan } from './utils';\nimport { getActivationStart } from './web-vitals/lib/getActivationStart';\nimport { getNavigationEntry } from './web-vitals/lib/getNavigationEntry';\nimport { getVisibilityWatcher } from './web-vitals/lib/getVisibilityWatcher';\nimport { DEBUG_BUILD } from '../debug-build';\nimport { URL_FULL } from '@sentry/conventions/attributes';\ninterface NavigatorNetworkInformation {\n readonly connection?: NetworkInformation;\n}\n\n// http://wicg.github.io/netinfo/#connection-types\ntype ConnectionType = 'bluetooth' | 'cellular' | 'ethernet' | 'mixed' | 'none' | 'other' | 'unknown' | 'wifi' | 'wimax';\n\n// http://wicg.github.io/netinfo/#effectiveconnectiontype-enum\ntype EffectiveConnectionType = '2g' | '3g' | '4g' | 'slow-2g';\n\n// http://wicg.github.io/netinfo/#dom-megabit\ntype Megabit = number;\n// http://wicg.github.io/netinfo/#dom-millisecond\ntype Millisecond = number;\n\n// http://wicg.github.io/netinfo/#networkinformation-interface\ninterface NetworkInformation extends EventTarget {\n // http://wicg.github.io/netinfo/#type-attribute\n readonly type?: ConnectionType;\n // http://wicg.github.io/netinfo/#effectivetype-attribute\n readonly effectiveType?: EffectiveConnectionType;\n // http://wicg.github.io/netinfo/#downlinkmax-attribute\n readonly downlinkMax?: Megabit;\n // http://wicg.github.io/netinfo/#downlink-attribute\n readonly downlink?: Megabit;\n // http://wicg.github.io/netinfo/#rtt-attribute\n readonly rtt?: Millisecond;\n // http://wicg.github.io/netinfo/#savedata-attribute\n readonly saveData?: boolean;\n // http://wicg.github.io/netinfo/#handling-changes-to-the-underlying-connection\n onchange?: EventListener;\n}\n\n// https://w3c.github.io/device-memory/#sec-device-memory-js-api\ninterface NavigatorDeviceMemory {\n readonly deviceMemory?: number;\n}\n\nconst MAX_INT_AS_BYTES = 2147483647;\n\nlet _performanceCursor: number = 0;\n\nlet _measurements: Measurements = {};\nlet _lcpEntry: LargestContentfulPaint | undefined;\nlet _clsEntry: LayoutShift | undefined;\n\ninterface StartTrackingWebVitalsOptions {\n /**\n * When `true`, CLS is tracked as a standalone span. When `false`, CLS is\n * recorded as a measurement on the pageload span. When `undefined`, CLS\n * tracking is skipped entirely (e.g. because span streaming handles it).\n */\n recordClsStandaloneSpans: boolean | undefined;\n /**\n * When `true`, LCP is tracked as a standalone span. When `false`, LCP is\n * recorded as a measurement on the pageload span. When `undefined`, LCP\n * tracking is skipped entirely (e.g. because span streaming handles it).\n */\n recordLcpStandaloneSpans: boolean | undefined;\n client: Client;\n}\n\n/**\n * Start tracking web vitals.\n * The callback returned by this function can be used to stop tracking & ensure all measurements are final & captured.\n *\n * @deprecated this function will be removed and streamlined once we stop supporting standalone v1\n * @returns A function that forces web vitals collection\n */\nexport function startTrackingWebVitals({\n recordClsStandaloneSpans,\n recordLcpStandaloneSpans,\n client,\n}: StartTrackingWebVitalsOptions): () => void {\n const performance = getBrowserPerformanceAPI();\n if (performance && browserPerformanceTimeOrigin()) {\n // @ts-expect-error we want to make sure all of these are available, even if TS is sure they are\n if (performance.mark) {\n WINDOW.performance.mark('sentry-tracing-init');\n }\n\n const lcpCleanupCallback = recordLcpStandaloneSpans\n ? trackLcpAsStandaloneSpan(client)\n : recordLcpStandaloneSpans === false\n ? _trackLCP()\n : undefined;\n\n const clsCleanupCallback = recordClsStandaloneSpans\n ? trackClsAsStandaloneSpan(client)\n : recordClsStandaloneSpans === false\n ? _trackCLS()\n : undefined;\n\n const ttfbCleanupCallback = _trackTtfb();\n const fpFcpCleanupCallback = _trackFpFcp();\n\n return (): void => {\n ttfbCleanupCallback();\n fpFcpCleanupCallback();\n lcpCleanupCallback?.();\n clsCleanupCallback?.();\n };\n }\n\n return () => undefined;\n}\n\n/**\n * Start tracking long tasks.\n */\nexport function startTrackingLongTasks(): void {\n addPerformanceInstrumentationHandler('longtask', ({ entries }) => {\n const parent = getActiveSpan();\n if (!parent) {\n return;\n }\n\n const { op: parentOp, start_timestamp: parentStartTimestamp } = spanToJSON(parent);\n\n for (const entry of entries) {\n const startTime = msToSec((browserPerformanceTimeOrigin() as number) + entry.startTime);\n const duration = msToSec(entry.duration);\n\n if (parentOp === 'navigation' && parentStartTimestamp && startTime < parentStartTimestamp) {\n // Skip adding a span if the long task started before the navigation started.\n // `startAndEndSpan` will otherwise adjust the parent's start time to the span's start\n // time, potentially skewing the duration of the actual navigation as reported via our\n // routing instrumentations\n continue;\n }\n\n startAndEndSpan(parent, startTime, startTime + duration, {\n name: 'Main UI thread blocked',\n op: 'ui.long-task',\n attributes: {\n [SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.ui.browser.metrics',\n },\n });\n }\n });\n}\n\n/**\n * Start tracking long animation frames.\n */\nexport function startTrackingLongAnimationFrames(): void {\n // NOTE: the current web-vitals version (3.5.2) does not support long-animation-frame, so\n // we directly observe `long-animation-frame` events instead of through the web-vitals\n // `observe` helper function.\n const observer = new PerformanceObserver(list => {\n const parent = getActiveSpan();\n if (!parent) {\n return;\n }\n for (const entry of list.getEntries() as PerformanceLongAnimationFrameTiming[]) {\n if (!entry.scripts[0]) {\n continue;\n }\n\n const startTime = msToSec((browserPerformanceTimeOrigin() as number) + entry.startTime);\n\n const { start_timestamp: parentStartTimestamp, op: parentOp } = spanToJSON(parent);\n\n if (parentOp === 'navigation' && parentStartTimestamp && startTime < parentStartTimestamp) {\n // Skip adding the span if the long animation frame started before the navigation started.\n // `startAndEndSpan` will otherwise adjust the parent's start time to the span's start\n // time, potentially skewing the duration of the actual navigation as reported via our\n // routing instrumentations\n continue;\n }\n const duration = msToSec(entry.duration);\n\n const attributes: SpanAttributes = {\n [SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.ui.browser.metrics',\n };\n\n const initialScript = entry.scripts[0];\n const { invoker, invokerType, sourceURL, sourceFunctionName, sourceCharPosition } = initialScript;\n attributes['browser.script.invoker'] = invoker;\n attributes['browser.script.invoker_type'] = invokerType;\n if (sourceURL) {\n attributes['code.filepath'] = sourceURL;\n }\n if (sourceFunctionName) {\n attributes['code.function'] = sourceFunctionName;\n }\n if (sourceCharPosition !== -1) {\n attributes['browser.script.source_char_position'] = sourceCharPosition;\n }\n\n startAndEndSpan(parent, startTime, startTime + duration, {\n name: 'Main UI thread blocked',\n op: 'ui.long-animation-frame',\n attributes,\n });\n }\n });\n\n observer.observe({ type: 'long-animation-frame', buffered: true });\n}\n\n/**\n * Start tracking interaction events.\n */\nexport function startTrackingInteractions(): void {\n addPerformanceInstrumentationHandler('event', ({ entries }) => {\n const parent = getActiveSpan();\n if (!parent) {\n return;\n }\n for (const entry of entries) {\n if (entry.name === 'click') {\n const startTime = msToSec((browserPerformanceTimeOrigin() as number) + entry.startTime);\n const duration = msToSec(entry.duration);\n\n const spanOptions: StartSpanOptions & Required> = {\n name: htmlTreeAsString(entry.target),\n op: `ui.interaction.${entry.name}`,\n startTime: startTime,\n attributes: {\n [SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.ui.browser.metrics',\n },\n };\n\n const componentName = getComponentName(entry.target);\n if (componentName) {\n spanOptions.attributes['ui.component_name'] = componentName;\n }\n\n startAndEndSpan(parent, startTime, startTime + duration, spanOptions);\n }\n }\n });\n}\n\nexport { registerInpInteractionListener, startTrackingINP } from './inp';\n\n/**\n * Starts tracking the Cumulative Layout Shift on the current page and collects the value and last entry\n * to the `_measurements` object which ultimately is applied to the pageload span's measurements.\n */\nfunction _trackCLS(): () => void {\n return addClsInstrumentationHandler(({ metric }) => {\n const entry = metric.entries[metric.entries.length - 1] as LayoutShift | undefined;\n if (!entry) {\n return;\n }\n _measurements['cls'] = { value: metric.value, unit: '' };\n _clsEntry = entry;\n }, true);\n}\n\n/** Starts tracking the Largest Contentful Paint on the current page. */\nfunction _trackLCP(): () => void {\n return addLcpInstrumentationHandler(({ metric }) => {\n const entry = metric.entries[metric.entries.length - 1];\n if (!entry || !isValidLcpMetric(metric.value)) {\n return;\n }\n\n _measurements['lcp'] = { value: metric.value, unit: 'millisecond' };\n _lcpEntry = entry as LargestContentfulPaint;\n }, true);\n}\n\nfunction _trackTtfb(): () => void {\n return addTtfbInstrumentationHandler(({ metric }) => {\n const entry = metric.entries[metric.entries.length - 1];\n if (!entry) {\n return;\n }\n\n _measurements['ttfb'] = { value: metric.value, unit: 'millisecond' };\n });\n}\n\n/** Starts tracking First Paint and First Contentful Paint on the current page. */\nfunction _trackFpFcp(): () => void {\n return addPerformanceInstrumentationHandler('paint', ({ entries }) => {\n const firstHidden = getVisibilityWatcher();\n for (const entry of entries) {\n // Only report if the page wasn't hidden prior to the web vital.\n const shouldRecord = entry.startTime < firstHidden.firstHiddenTime;\n if (entry.name === 'first-paint' && shouldRecord) {\n _measurements['fp'] = { value: entry.startTime, unit: 'millisecond' };\n }\n if (entry.name === 'first-contentful-paint' && shouldRecord) {\n _measurements['fcp'] = { value: entry.startTime, unit: 'millisecond' };\n }\n }\n });\n}\n\ninterface AddPerformanceEntriesOptions {\n /**\n * Resource spans with `op`s matching strings in the array will not be emitted.\n *\n * Default: []\n */\n ignoreResourceSpans: Array<'resouce.script' | 'resource.css' | 'resource.img' | 'resource.other' | string>;\n\n /**\n * Performance spans created from browser Performance APIs,\n * `performance.mark(...)` nand `performance.measure(...)`\n * with `name`s matching strings in the array will not be emitted.\n *\n * Default: []\n */\n ignorePerformanceApiSpans: Array;\n\n /**\n * Whether span streaming is enabled.\n */\n spanStreamingEnabled?: boolean;\n}\n\ninterface AddWebVitalsToSpanOptions {\n /**\n * Flag to determine if CLS should be recorded as a measurement on the pageload span or\n * sent as a standalone span instead.\n * Sending it as a standalone span will yield more accurate LCP values.\n *\n * Default: `false` for backwards compatibility.\n */\n recordClsOnPageloadSpan: boolean;\n\n /**\n * Flag to determine if LCP should be recorded as a measurement on the pageload span or\n * sent as a standalone span instead.\n * Sending it as a standalone span will yield more accurate LCP values.\n *\n * Default: `false` for backwards compatibility.\n */\n recordLcpOnPageloadSpan: boolean;\n\n /**\n * Whether span streaming is enabled.\n */\n spanStreamingEnabled?: boolean;\n}\n\n/** Add performance related spans to a transaction */\nexport function addPerformanceEntries(span: Span, options: AddPerformanceEntriesOptions): void {\n const performance = getBrowserPerformanceAPI();\n const origin = browserPerformanceTimeOrigin();\n if (!performance?.getEntries || !origin) {\n // Gatekeeper if performance API not available\n return;\n }\n\n const { spanStreamingEnabled, ignorePerformanceApiSpans, ignoreResourceSpans } = options;\n\n const timeOrigin = msToSec(origin);\n\n const performanceEntries = performance.getEntries();\n\n const { op, start_timestamp: transactionStartTime } = spanToJSON(span);\n\n performanceEntries.slice(_performanceCursor).forEach(entry => {\n const startTime = msToSec(entry.startTime);\n const duration = msToSec(\n // Inexplicably, Chrome sometimes emits a negative duration. We need to work around this.\n // There is a SO post attempting to explain this, but it leaves one with open questions: https://stackoverflow.com/questions/23191918/peformance-getentries-and-negative-duration-display\n // The way we clamp the value is probably not accurate, since we have observed this happen for things that may take a while to load, like for example the replay worker.\n // TODO: Investigate why this happens and how to properly mitigate. For now, this is a workaround to prevent transactions being dropped due to negative duration spans.\n Math.max(0, entry.duration),\n );\n\n if (op === 'navigation' && transactionStartTime && timeOrigin + startTime < transactionStartTime) {\n return;\n }\n\n switch (entry.entryType) {\n case 'navigation': {\n _addNavigationSpans(span, entry as PerformanceNavigationTiming, timeOrigin);\n break;\n }\n case 'mark':\n case 'paint':\n case 'measure': {\n _addMeasureSpans(span, entry, startTime, duration, timeOrigin, ignorePerformanceApiSpans);\n break;\n }\n case 'resource': {\n _addResourceSpans(\n span,\n entry as PerformanceResourceTiming,\n entry.name,\n startTime,\n duration,\n timeOrigin,\n ignoreResourceSpans,\n );\n break;\n }\n // Ignore other entry types.\n }\n });\n\n _performanceCursor = Math.max(performanceEntries.length - 1, 0);\n\n _trackNavigator(span, spanStreamingEnabled);\n}\n\n/**\n * Writes the collected web vitals (LCP, CLS, INP, TTFB, FP, FCP) onto the pageload span,\n * either as measurements/attributes (v1) or as web vital attributes (span streaming).\n *\n * This should be called when the pageload span ends, after the web vitals have been finalized.\n * It is a no-op for non-pageload spans, but always resets the collected web vital state so it\n * doesn't leak into a subsequent navigation.\n */\nexport function addWebVitalsToSpan(span: Span, options: AddWebVitalsToSpanOptions): void {\n const origin = browserPerformanceTimeOrigin();\n if (!getBrowserPerformanceAPI()?.getEntries || !origin) {\n // Gatekeeper if performance API not available\n resetWebVitalState();\n return;\n }\n\n const { spanStreamingEnabled, recordClsOnPageloadSpan, recordLcpOnPageloadSpan } = options;\n const timeOrigin = msToSec(origin);\n\n // Measurements are only available for pageload transactions\n if (spanToJSON(span).op === 'pageload') {\n _addTtfbRequestTimeToMeasurements(_measurements);\n\n if (spanStreamingEnabled) {\n const setAttr = (shortWebVitalName: string, value: number, customAttrName?: string) => {\n const attrKey = customAttrName ?? `browser.web_vital.${shortWebVitalName}.value`;\n span.setAttribute(attrKey, value);\n DEBUG_BUILD && debug.log('Setting web vital attribute', { [attrKey]: value }, 'on pageload span');\n };\n // for streamed pageload spans, we add the web vital measurements as attributes.\n // We omit LCP, CLS and INP because they're tracked separately as spans\n ['ttfb', 'fp', 'fcp'].forEach(measurementName => {\n if (_measurements[measurementName]) {\n setAttr(measurementName, _measurements[measurementName].value);\n }\n });\n if (_measurements['ttfb.requestTime']) {\n setAttr('ttfb.requestTime', _measurements['ttfb.requestTime'].value, 'browser.web_vital.ttfb.request_time');\n }\n } else {\n // TODO (V11): Remove this else branch once we remove v1 standalone spans and transactions\n\n // If CLS standalone spans are enabled, don't record CLS as a measurement\n if (!recordClsOnPageloadSpan) {\n delete _measurements.cls;\n }\n\n // If LCP standalone spans are enabled, don't record LCP as a measurement\n if (!recordLcpOnPageloadSpan) {\n delete _measurements.lcp;\n }\n\n Object.entries(_measurements).forEach(([measurementName, measurement]) => {\n setMeasurement(measurementName, measurement.value, measurement.unit, span);\n });\n\n _setWebVitalAttributes(span, options);\n }\n\n // Set timeOrigin which denotes the timestamp which to base the LCP/FCP/FP/TTFB measurements on\n span.setAttribute(spanStreamingEnabled ? 'browser.performance.time_origin' : 'performance.timeOrigin', timeOrigin);\n\n // In prerendering scenarios, where a page might be prefetched and pre-rendered before the user clicks the link,\n // the navigation starts earlier than when the user clicks it. Web Vitals should always be based on the\n // user-perceived time, so they are not reported from the actual start of the navigation, but rather from the\n // time where the user actively started the navigation, for example by clicking a link.\n // This is user action is called \"activation\" and the time between navigation and activation is stored in\n // the `activationStart` attribute of the \"navigation\" PerformanceEntry.\n span.setAttribute(\n spanStreamingEnabled ? 'browser.performance.navigation.activation_start' : 'performance.activationStart',\n getActivationStart(),\n );\n }\n\n resetWebVitalState();\n}\n\nfunction resetWebVitalState(): void {\n _lcpEntry = undefined;\n _clsEntry = undefined;\n _measurements = {};\n}\n\n/**\n * React 19.2+ creates performance.measure entries for component renders.\n * We can identify them by the `detail.devtools.track` property being set to 'Components \u269B'.\n * see: https://react.dev/reference/dev-tools/react-performance-tracks\n * see: https://github.com/facebook/react/blob/06fcc8f380c6a905c7bc18d94453f623cf8cbc81/packages/react-reconciler/src/ReactFiberPerformanceTrack.js#L454-L473\n */\nfunction isReact19MeasureEntry(entry: PerformanceEntry | null): boolean | void {\n if (entry?.entryType !== 'measure') {\n return;\n }\n try {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n return (entry as PerformanceMeasure).detail.devtools.track === 'Components \u269B';\n } catch {\n return;\n }\n}\n\n/**\n * Create measure related spans.\n * Exported only for tests.\n */\nexport function _addMeasureSpans(\n span: Span,\n entry: PerformanceEntry,\n startTime: number,\n duration: number,\n timeOrigin: number,\n ignorePerformanceApiSpans: AddPerformanceEntriesOptions['ignorePerformanceApiSpans'],\n): void {\n if (isReact19MeasureEntry(entry)) {\n return;\n }\n\n if (\n ['mark', 'measure'].includes(entry.entryType) &&\n stringMatchesSomePattern(entry.name, ignorePerformanceApiSpans)\n ) {\n return;\n }\n\n const navEntry = getNavigationEntry(false);\n\n const requestTime = msToSec(navEntry ? navEntry.requestStart : 0);\n // Because performance.measure accepts arbitrary timestamps it can produce\n // spans that happen before the browser even makes a request for the page.\n //\n // An example of this is the automatically generated Next.js-before-hydration\n // spans created by the Next.js framework.\n //\n // To prevent this we will pin the start timestamp to the request start time\n // This does make duration inaccurate, so if this does happen, we will add\n // an attribute to the span\n const measureStartTimestamp = timeOrigin + Math.max(startTime, requestTime);\n const startTimeStamp = timeOrigin + startTime;\n const measureEndTimestamp = startTimeStamp + duration;\n\n const attributes: SpanAttributes = {\n [SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.resource.browser.metrics',\n };\n\n if (measureStartTimestamp !== startTimeStamp) {\n attributes['sentry.browser.measure_happened_before_request'] = true;\n attributes['sentry.browser.measure_start_time'] = measureStartTimestamp;\n }\n\n _addDetailToSpanAttributes(attributes, entry as PerformanceMeasure);\n\n // Measurements from third parties can be off, which would create invalid spans, dropping transactions in the process.\n if (measureStartTimestamp <= measureEndTimestamp) {\n startAndEndSpan(span, measureStartTimestamp, measureEndTimestamp, {\n name: entry.name,\n op: entry.entryType,\n attributes,\n });\n }\n}\n\nfunction _addDetailToSpanAttributes(attributes: SpanAttributes, performanceMeasure: PerformanceMeasure): void {\n try {\n // Accessing detail might throw in some browsers (e.g., Firefox) due to security restrictions\n const detail = performanceMeasure.detail;\n\n if (!detail) {\n return;\n }\n\n // Process detail based on its type\n if (typeof detail === 'object') {\n // Handle object details\n for (const [key, value] of Object.entries(detail)) {\n if (value && isPrimitive(value)) {\n attributes[`sentry.browser.measure.detail.${key}`] = value as SpanAttributeValue;\n } else if (value !== undefined) {\n try {\n // This is user defined so we can't guarantee it's serializable\n attributes[`sentry.browser.measure.detail.${key}`] = JSON.stringify(value);\n } catch {\n // Skip values that can't be stringified\n }\n }\n }\n return;\n }\n\n if (isPrimitive(detail)) {\n // Handle primitive details\n attributes['sentry.browser.measure.detail'] = detail as SpanAttributeValue;\n return;\n }\n\n try {\n attributes['sentry.browser.measure.detail'] = JSON.stringify(detail);\n } catch {\n // Skip if stringification fails\n }\n } catch {\n // Silently ignore any errors when accessing detail\n // This handles the Firefox \"Permission denied to access object\" error\n }\n}\n\n/**\n * Instrument navigation entries\n * exported only for tests\n */\nexport function _addNavigationSpans(span: Span, entry: PerformanceNavigationTiming, timeOrigin: number): void {\n (['unloadEvent', 'redirect', 'domContentLoadedEvent', 'loadEvent', 'connect'] as const).forEach(event => {\n _addPerformanceNavigationTiming(span, entry, event, timeOrigin);\n });\n _addPerformanceNavigationTiming(span, entry, 'secureConnection', timeOrigin, 'TLS/SSL');\n _addPerformanceNavigationTiming(span, entry, 'fetch', timeOrigin, 'cache');\n _addPerformanceNavigationTiming(span, entry, 'domainLookup', timeOrigin, 'DNS');\n\n _addRequest(span, entry, timeOrigin);\n}\n\ntype StartEventName =\n | 'secureConnection'\n | 'fetch'\n | 'domainLookup'\n | 'unloadEvent'\n | 'redirect'\n | 'connect'\n | 'domContentLoadedEvent'\n | 'loadEvent';\n\ntype EndEventName =\n | 'domainLookupStart'\n | 'domainLookupEnd'\n | 'unloadEventEnd'\n | 'redirectEnd'\n | 'connectEnd'\n | 'domContentLoadedEventEnd'\n | 'loadEventEnd';\n\n/** Create performance navigation related spans */\nfunction _addPerformanceNavigationTiming(\n span: Span,\n entry: PerformanceNavigationTiming,\n event: StartEventName,\n timeOrigin: number,\n name: string = event,\n): void {\n const eventEnd = _getEndPropertyNameForNavigationTiming(event) satisfies keyof PerformanceNavigationTiming;\n const end = entry[eventEnd];\n const start = entry[`${event}Start`];\n if (!start || !end) {\n return;\n }\n startAndEndSpan(span, timeOrigin + msToSec(start), timeOrigin + msToSec(end), {\n op: `browser.${name}`,\n name: entry.name,\n attributes: {\n [SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.ui.browser.metrics',\n ...(event === 'redirect' && entry.redirectCount != null ? { 'http.redirect_count': entry.redirectCount } : {}),\n },\n });\n}\n\nfunction _getEndPropertyNameForNavigationTiming(event: StartEventName): EndEventName {\n if (event === 'secureConnection') {\n return 'connectEnd';\n }\n if (event === 'fetch') {\n return 'domainLookupStart';\n }\n return `${event}End`;\n}\n\n/** Create request and response related spans */\nfunction _addRequest(span: Span, entry: PerformanceNavigationTiming, timeOrigin: number): void {\n const requestStartTimestamp = timeOrigin + msToSec(entry.requestStart);\n const responseEndTimestamp = timeOrigin + msToSec(entry.responseEnd);\n const responseStartTimestamp = timeOrigin + msToSec(entry.responseStart);\n if (entry.responseEnd) {\n // It is possible that we are collecting these metrics when the page hasn't finished loading yet, for example when the HTML slowly streams in.\n // In this case, ie. when the document request hasn't finished yet, `entry.responseEnd` will be 0.\n // In order not to produce faulty spans, where the end timestamp is before the start timestamp, we will only collect\n // these spans when the responseEnd value is available. The backend (Relay) would drop the entire span if it contained faulty spans.\n startAndEndSpan(span, requestStartTimestamp, responseEndTimestamp, {\n op: 'browser.request',\n name: entry.name,\n attributes: {\n [SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.ui.browser.metrics',\n },\n });\n\n startAndEndSpan(span, responseStartTimestamp, responseEndTimestamp, {\n op: 'browser.response',\n name: entry.name,\n attributes: {\n [SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.ui.browser.metrics',\n },\n });\n }\n}\n\n/**\n * Create resource-related spans.\n * Exported only for tests.\n */\nexport function _addResourceSpans(\n span: Span,\n entry: PerformanceResourceTiming,\n resourceUrl: string,\n startTime: number,\n duration: number,\n timeOrigin: number,\n ignoredResourceSpanOps?: Array,\n): void {\n // we already instrument based on fetch and xhr, so we don't need to\n // duplicate spans here.\n if (entry.initiatorType === 'xmlhttprequest' || entry.initiatorType === 'fetch') {\n return;\n }\n\n const op = entry.initiatorType ? `resource.${entry.initiatorType}` : 'resource.other';\n if (ignoredResourceSpanOps?.includes(op)) {\n return;\n }\n\n const attributes: SpanAttributes = {\n [SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.resource.browser.metrics',\n };\n\n const parsedUrl = parseUrl(resourceUrl);\n\n if (parsedUrl.protocol) {\n attributes['url.scheme'] = parsedUrl.protocol.split(':').pop(); // the protocol returned by parseUrl includes a :, but OTEL spec does not, so we remove it.\n }\n\n if (parsedUrl.host) {\n attributes['server.address'] = parsedUrl.host;\n }\n\n attributes['url.same_origin'] = resourceUrl.includes(WINDOW.location.origin);\n\n attributes[URL_FULL] = filterCollectedUrl(resourceUrl);\n\n _setResourceRequestAttributes(entry, attributes, [\n // https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/responseStatus\n ['responseStatus', 'http.response.status_code'],\n\n ['transferSize', 'http.response_transfer_size'],\n ['encodedBodySize', 'http.response_content_length'],\n ['decodedBodySize', 'http.decoded_response_content_length'],\n\n // https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/renderBlockingStatus\n ['renderBlockingStatus', 'resource.render_blocking_status'],\n\n // https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/deliveryType\n ['deliveryType', 'http.response_delivery_type'],\n ]);\n\n const attributesWithResourceTiming: SpanAttributes = { ...attributes, ...resourceTimingToSpanAttributes(entry) };\n\n const startTimestamp = timeOrigin + startTime;\n const endTimestamp = startTimestamp + duration;\n\n startAndEndSpan(span, startTimestamp, endTimestamp, {\n name: resourceUrl.replace(WINDOW.location.origin, ''),\n op,\n attributes: attributesWithResourceTiming,\n });\n}\n\n/**\n * Capture the information of the user agent.\n * TODO v11: Remove non-span-streaming attributes and measurements once we removed transactions\n */\nfunction _trackNavigator(span: Span, spanStreamingEnabled: boolean | undefined): void {\n const navigator = WINDOW.navigator as null | (Navigator & NavigatorNetworkInformation & NavigatorDeviceMemory);\n if (!navigator) {\n return;\n }\n\n // track network connectivity\n const connection = navigator.connection;\n if (connection) {\n if (connection.effectiveType) {\n span.setAttribute(\n spanStreamingEnabled ? 'network.connection.effective_type' : 'effectiveConnectionType',\n connection.effectiveType,\n );\n }\n\n if (connection.type) {\n span.setAttribute(spanStreamingEnabled ? 'network.connection.type' : 'connectionType', connection.type);\n }\n\n if (isMeasurementValue(connection.rtt)) {\n if (spanStreamingEnabled) {\n span.setAttribute('network.connection.rtt', connection.rtt);\n } else if (spanToJSON(span).op === 'pageload') {\n // Measurements are only recorded on the pageload span, matching the historical\n // behavior where `connection.rtt` was only flushed for pageload transactions.\n setMeasurement('connection.rtt', connection.rtt, 'millisecond');\n }\n }\n }\n\n if (isMeasurementValue(navigator.deviceMemory)) {\n if (spanStreamingEnabled) {\n span.setAttribute('device.memory.estimated_capacity', navigator.deviceMemory);\n } else {\n span.setAttribute('deviceMemory', `${navigator.deviceMemory} GB`);\n }\n }\n\n if (isMeasurementValue(navigator.hardwareConcurrency)) {\n if (spanStreamingEnabled) {\n span.setAttribute('device.processor_count', navigator.hardwareConcurrency);\n } else {\n span.setAttribute('hardwareConcurrency', String(navigator.hardwareConcurrency));\n }\n }\n}\n\n/** Add LCP / CLS data to span to allow debugging */\nfunction _setWebVitalAttributes(span: Span, options: AddWebVitalsToSpanOptions): void {\n // Only add LCP attributes if LCP is being recorded on the pageload span\n if (_lcpEntry && options.recordLcpOnPageloadSpan) {\n // Capture Properties of the LCP element that contributes to the LCP.\n\n if (_lcpEntry.element) {\n span.setAttribute('lcp.element', htmlTreeAsString(_lcpEntry.element));\n }\n\n if (_lcpEntry.id) {\n span.setAttribute('lcp.id', _lcpEntry.id);\n }\n\n if (_lcpEntry.url) {\n // Trim URL to the first 200 characters.\n span.setAttribute('lcp.url', _lcpEntry.url.trim().slice(0, 200));\n }\n\n if (_lcpEntry.loadTime != null) {\n // loadTime is the time of LCP that's related to receiving the LCP element response..\n span.setAttribute('lcp.loadTime', _lcpEntry.loadTime);\n }\n\n if (_lcpEntry.renderTime != null) {\n // renderTime is loadTime + rendering time\n // it's 0 if the LCP element is loaded from a 3rd party origin that doesn't send the\n // `Timing-Allow-Origin` header.\n span.setAttribute('lcp.renderTime', _lcpEntry.renderTime);\n }\n\n span.setAttribute('lcp.size', _lcpEntry.size);\n }\n\n // Only add CLS attributes if CLS is being recorded on the pageload span\n if (_clsEntry?.sources && options.recordClsOnPageloadSpan) {\n _clsEntry.sources.forEach((source, index) =>\n span.setAttribute(`cls.source.${index + 1}`, htmlTreeAsString(source.node)),\n );\n }\n}\n\ntype ExperimentalResourceTimingProperty =\n | 'renderBlockingStatus'\n | 'deliveryType'\n // For some reason, TS during build, errors on `responseStatus` not being a property of\n // PerformanceResourceTiming while it actually is. Hence, we're adding it here.\n // Perhaps because response status is not yet available in Webkit/Safari.\n // https://developer.mozilla.org/en-US/docs/Web/API/PerformanceResourceTiming/responseStatus\n | 'responseStatus';\n\n/**\n * Use this to set any attributes we can take directly form the PerformanceResourceTiming entry.\n *\n * This is just a mapping function for entry->attribute to keep bundle-size minimal.\n * Experimental properties are also accepted (see {@link ExperimentalResourceTimingProperty}).\n * Assumes that all entry properties might be undefined for browser-specific differences.\n * Only accepts string and number values for now and also sets 0-values.\n */\nexport function _setResourceRequestAttributes(\n entry: Partial & Partial>,\n attributes: SpanAttributes,\n properties: [keyof PerformanceResourceTiming | ExperimentalResourceTimingProperty, string][],\n): void {\n properties.forEach(([entryKey, attributeKey]) => {\n const entryVal = entry[entryKey];\n if (\n entryVal != null &&\n ((typeof entryVal === 'number' && entryVal < MAX_INT_AS_BYTES) || typeof entryVal === 'string')\n ) {\n attributes[attributeKey] = entryVal;\n }\n });\n}\n\n/**\n * Add ttfb request time information to measurements.\n *\n * ttfb information is added via vendored web vitals library.\n */\nfunction _addTtfbRequestTimeToMeasurements(_measurements: Measurements): void {\n const navEntry = getNavigationEntry(false);\n if (!navEntry) {\n return;\n }\n\n const { responseStart, requestStart } = navEntry;\n\n if (requestStart <= responseStart) {\n _measurements['ttfb.requestTime'] = {\n value: responseStart - requestStart,\n unit: 'millisecond',\n };\n }\n}\n", "import type { Span, SpanAttributes } from '@sentry/core';\nimport {\n browserPerformanceTimeOrigin,\n getActiveSpan,\n getCurrentScope,\n getRootSpan,\n isBrowser,\n SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME,\n SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT,\n SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE,\n SEMANTIC_ATTRIBUTE_SENTRY_OP,\n SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,\n spanToJSON,\n} from '@sentry/core';\nimport { htmlTreeAsString } from '../htmlTreeAsString';\nimport { WINDOW } from '../types';\nimport type { InstrumentationHandlerCallback } from './instrument';\nimport {\n addInpInstrumentationHandler,\n addPerformanceInstrumentationHandler,\n isPerformanceEventTiming,\n} from './instrument';\nimport { getBrowserPerformanceAPI, msToSec, startStandaloneWebVitalSpan } from './utils';\n\ninterface InteractionContext {\n span: Span | undefined;\n elementName: string;\n}\n\nconst LAST_INTERACTIONS: number[] = [];\nconst INTERACTIONS_SPAN_MAP = new Map();\n\n// Map to store element names by timestamp, since we get the DOM event before the PerformanceObserver entry\nconst ELEMENT_NAME_TIMESTAMP_MAP = new Map();\n\n/**\n * 60 seconds is the maximum for a plausible INP value\n * (source: Me)\n */\nexport const MAX_PLAUSIBLE_INP_DURATION = 60;\n/**\n * Start tracking INP webvital events.\n */\nexport function startTrackingINP(): () => void {\n const performance = getBrowserPerformanceAPI();\n if (performance && browserPerformanceTimeOrigin()) {\n const inpCallback = _trackINP();\n\n return (): void => {\n inpCallback();\n };\n }\n\n return () => undefined;\n}\n\nexport const INP_ENTRY_MAP: Record = {\n click: 'click',\n pointerdown: 'click',\n pointerup: 'click',\n mousedown: 'click',\n mouseup: 'click',\n touchstart: 'click',\n touchend: 'click',\n mouseover: 'hover',\n mouseout: 'hover',\n mouseenter: 'hover',\n mouseleave: 'hover',\n pointerover: 'hover',\n pointerout: 'hover',\n pointerenter: 'hover',\n pointerleave: 'hover',\n dragstart: 'drag',\n dragend: 'drag',\n drag: 'drag',\n dragenter: 'drag',\n dragleave: 'drag',\n dragover: 'drag',\n drop: 'drag',\n keydown: 'press',\n keyup: 'press',\n keypress: 'press',\n input: 'press',\n};\n\n/** Starts tracking the Interaction to Next Paint on the current page. #\n * exported only for testing\n */\nexport function _trackINP(): () => void {\n return addInpInstrumentationHandler(_onInp);\n}\n\n/**\n * exported only for testing\n */\nexport const _onInp: InstrumentationHandlerCallback = ({ metric }) => {\n if (metric.value == undefined) {\n return;\n }\n\n const duration = msToSec(metric.value);\n\n // We received occasional reports of hour-long INP values.\n // Therefore, we add a sanity check to avoid creating spans for\n // unrealistically long INP durations.\n if (duration > MAX_PLAUSIBLE_INP_DURATION) {\n return;\n }\n\n const entry = metric.entries.find(entry => entry.duration === metric.value && INP_ENTRY_MAP[entry.name]);\n\n if (!entry) {\n return;\n }\n\n const { interactionId } = entry;\n const interactionType = INP_ENTRY_MAP[entry.name];\n\n /** Build the INP span, create an envelope from the span, and then send the envelope */\n const startTime = msToSec((browserPerformanceTimeOrigin() as number) + entry.startTime);\n const activeSpan = getActiveSpan();\n const rootSpan = activeSpan ? getRootSpan(activeSpan) : undefined;\n\n // We first try to lookup the interaction context from our INTERACTIONS_SPAN_MAP,\n // where we cache the route and element name per interactionId\n const cachedInteractionContext = interactionId != null ? INTERACTIONS_SPAN_MAP.get(interactionId) : undefined;\n\n const spanToUse = cachedInteractionContext?.span || rootSpan;\n\n // Else, we try to use the active span.\n // Finally, we fall back to look at the transactionName on the scope\n const routeName = spanToUse ? spanToJSON(spanToUse).description : getCurrentScope().getScopeData().transactionName;\n\n const name = cachedInteractionContext?.elementName || htmlTreeAsString(entry.target);\n const attributes: SpanAttributes = {\n [SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.http.browser.inp',\n [SEMANTIC_ATTRIBUTE_SENTRY_OP]: `ui.interaction.${interactionType}`,\n [SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]: entry.duration,\n };\n\n const span = startStandaloneWebVitalSpan({\n name,\n transaction: routeName,\n attributes,\n startTime,\n });\n\n if (span) {\n span.addEvent('inp', {\n [SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT]: 'millisecond',\n [SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE]: metric.value,\n });\n\n span.end(startTime + duration);\n }\n};\n\n/**\n * Look up a cached interaction context (element name + root span) by interactionId.\n * Returns undefined if no context was cached for this interaction.\n */\nexport function getCachedInteractionContext(interactionId: number | undefined): InteractionContext | undefined {\n return interactionId != null ? INTERACTIONS_SPAN_MAP.get(interactionId) : undefined;\n}\n\n/**\n * Register a listener to cache route information for INP interactions.\n */\nexport function registerInpInteractionListener(): void {\n // Listen for all interaction events that could contribute to INP\n const interactionEvents = Object.keys(INP_ENTRY_MAP);\n if (isBrowser()) {\n interactionEvents.forEach(eventType => {\n WINDOW.addEventListener(eventType, captureElementFromEvent, { capture: true, passive: true });\n });\n }\n\n /**\n * Captures the element name from a DOM event and stores it in the ELEMENT_NAME_TIMESTAMP_MAP.\n */\n function captureElementFromEvent(event: Event): void {\n const target = event.target as HTMLElement | null;\n if (!target) {\n return;\n }\n\n const elementName = htmlTreeAsString(target);\n const timestamp = Math.round(event.timeStamp);\n\n // Store the element name by timestamp so we can match it with the PerformanceEntry\n ELEMENT_NAME_TIMESTAMP_MAP.set(timestamp, elementName);\n\n // Clean up old\n if (ELEMENT_NAME_TIMESTAMP_MAP.size > 50) {\n const firstKey = ELEMENT_NAME_TIMESTAMP_MAP.keys().next().value;\n if (firstKey !== undefined) {\n ELEMENT_NAME_TIMESTAMP_MAP.delete(firstKey);\n }\n }\n }\n\n /**\n * Tries to get the element name from the timestamp map.\n */\n function resolveElementNameFromEntry(entry: PerformanceEntry): string {\n const timestamp = Math.round(entry.startTime);\n let elementName = ELEMENT_NAME_TIMESTAMP_MAP.get(timestamp);\n\n // try nearby timestamps (\u00B15ms)\n if (!elementName) {\n for (let offset = -5; offset <= 5; offset++) {\n const nearbyName = ELEMENT_NAME_TIMESTAMP_MAP.get(timestamp + offset);\n if (nearbyName) {\n elementName = nearbyName;\n break;\n }\n }\n }\n\n return elementName || '';\n }\n\n const handleEntries = ({ entries }: { entries: PerformanceEntry[] }): void => {\n const activeSpan = getActiveSpan();\n const activeRootSpan = activeSpan && getRootSpan(activeSpan);\n\n entries.forEach(entry => {\n if (!isPerformanceEventTiming(entry)) {\n return;\n }\n\n const interactionId = entry.interactionId;\n if (interactionId == null) {\n return;\n }\n\n // If the interaction was already recorded before, nothing more to do\n if (INTERACTIONS_SPAN_MAP.has(interactionId)) {\n return;\n }\n\n const elementName = entry.target ? htmlTreeAsString(entry.target) : resolveElementNameFromEntry(entry);\n\n // We keep max. 10 interactions in the list, then remove the oldest one & clean up\n if (LAST_INTERACTIONS.length > 10) {\n const last = LAST_INTERACTIONS.shift() as number;\n INTERACTIONS_SPAN_MAP.delete(last);\n }\n\n // We add the interaction to the list of recorded interactions\n // and store both the span and element name for this interaction\n LAST_INTERACTIONS.push(interactionId);\n INTERACTIONS_SPAN_MAP.set(interactionId, {\n span: activeRootSpan,\n elementName,\n });\n });\n };\n\n addPerformanceInstrumentationHandler('event', handleEntries);\n addPerformanceInstrumentationHandler('first-input', handleEntries);\n}\n", "import type { Client, Span, SpanAttributes } from '@sentry/core';\nimport {\n browserPerformanceTimeOrigin,\n debug,\n getActiveSpan,\n getCurrentScope,\n getRootSpan,\n SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME,\n SEMANTIC_ATTRIBUTE_SENTRY_OP,\n SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,\n spanToStreamedSpanJSON,\n startInactiveSpan,\n timestampInSeconds,\n} from '@sentry/core';\nimport { DEBUG_BUILD } from '../debug-build';\nimport { htmlTreeAsString } from '../htmlTreeAsString';\nimport { WINDOW } from '../types';\nimport { getCachedInteractionContext, INP_ENTRY_MAP, MAX_PLAUSIBLE_INP_DURATION } from './inp';\nimport type { InstrumentationHandlerCallback } from './instrument';\nimport { addClsInstrumentationHandler, addInpInstrumentationHandler, addLcpInstrumentationHandler } from './instrument';\nimport { isValidLcpMetric } from './lcp';\nimport type { WebVitalReportEvent } from './utils';\nimport { getBrowserPerformanceAPI, listenForWebVitalReportEvents, msToSec, supportsWebVital } from './utils';\nimport type { PerformanceEventTiming } from './instrument';\nimport { SENTRY_SEGMENT_NAME, SENTRY_TRANSACTION } from '@sentry/conventions/attributes';\n\n// Locally-defined interfaces to avoid leaking bare global type references into the\n// generated .d.ts. The `declare global` augmentations in web-vitals/types.ts make these\n// available during this package's compilation but are NOT carried to consumers.\n// This mirrors the pattern used for PerformanceEventTiming in instrument.ts.\nexport interface LayoutShift extends PerformanceEntry {\n value: number;\n sources: Array<{ node: Node | null }>;\n hadRecentInput: boolean;\n}\n\nexport interface LargestContentfulPaint extends PerformanceEntry {\n readonly renderTime: DOMHighResTimeStamp;\n readonly loadTime: DOMHighResTimeStamp;\n readonly size: number;\n readonly id: string;\n readonly url: string;\n readonly element: Element | null;\n}\n\ninterface WebVitalSpanOptions {\n name: string;\n op: string;\n origin: string;\n metricName: 'lcp' | 'cls' | 'inp';\n value: number;\n attributes?: SpanAttributes;\n parentSpan?: Span;\n reportEvent?: WebVitalReportEvent;\n startTime: number;\n endTime?: number;\n}\n\n/**\n * Emits a web vital span that flows through the span streaming pipeline.\n */\nexport function _emitWebVitalSpan(options: WebVitalSpanOptions): void {\n const {\n name,\n op,\n origin,\n metricName,\n value,\n attributes: passedAttributes,\n parentSpan,\n reportEvent,\n startTime,\n endTime,\n } = options;\n\n const routeName = getCurrentScope().getScopeData().transactionName;\n\n const attributes: SpanAttributes = {\n [SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: origin,\n [SEMANTIC_ATTRIBUTE_SENTRY_OP]: op,\n [SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]: 0,\n [`browser.web_vital.${metricName}.value`]: value,\n // oxlint-disable-next-line typescript-eslint/no-deprecated\n [SENTRY_TRANSACTION]: routeName,\n [SENTRY_SEGMENT_NAME]: routeName,\n // Web vital score calculation relies on the user agent\n 'user_agent.original': WINDOW.navigator?.userAgent,\n ...passedAttributes,\n };\n\n if (parentSpan && spanToStreamedSpanJSON(parentSpan).attributes?.[SEMANTIC_ATTRIBUTE_SENTRY_OP] === 'pageload') {\n // for LCP and CLS, we collect the pageload span id as an attribute\n attributes['sentry.pageload.span_id'] = parentSpan.spanContext().spanId;\n }\n\n if (reportEvent) {\n attributes[`browser.web_vital.${metricName}.report_event`] = reportEvent;\n }\n\n const span = startInactiveSpan({\n name,\n attributes,\n startTime,\n // if we have a pageload span, we let the web vital span start as its parent. This ensures that\n // it is not started as a segment span, without having to manually set it to a \"standalone\" v2 span\n // that has `segment: false` but no actual parent span.\n parentSpan: parentSpan,\n });\n\n if (span) {\n span.end(endTime ?? startTime);\n }\n}\n\n/**\n * Tracks LCP as a streamed span.\n */\nexport function trackLcpAsSpan(client: Client): void {\n let lcpValue = 0;\n let lcpEntry: LargestContentfulPaint | undefined;\n\n if (!supportsWebVital('largest-contentful-paint')) {\n return;\n }\n\n const cleanupLcpHandler = addLcpInstrumentationHandler(({ metric }) => {\n const entry = metric.entries[metric.entries.length - 1] as LargestContentfulPaint | undefined;\n if (!entry || !isValidLcpMetric(metric.value)) {\n return;\n }\n lcpValue = metric.value;\n lcpEntry = entry;\n }, true);\n\n listenForWebVitalReportEvents(client, (reportEvent, _, pageloadSpan) => {\n _sendLcpSpan(lcpValue, lcpEntry, pageloadSpan, reportEvent);\n cleanupLcpHandler();\n });\n}\n\n/**\n * Exported only for testing.\n */\nexport function _sendLcpSpan(\n lcpValue: number,\n entry: LargestContentfulPaint | undefined,\n pageloadSpan?: Span,\n reportEvent?: WebVitalReportEvent,\n): void {\n if (!isValidLcpMetric(lcpValue)) {\n return;\n }\n\n DEBUG_BUILD && debug.log(`Sending LCP span (${lcpValue})`);\n\n const performanceTimeOrigin = browserPerformanceTimeOrigin() || 0;\n const timeOrigin = msToSec(performanceTimeOrigin);\n const endTime = msToSec(performanceTimeOrigin + (entry?.startTime || 0));\n const name = entry ? htmlTreeAsString(entry.element) : 'Largest contentful paint';\n\n const attributes: SpanAttributes = {};\n\n entry?.element && (attributes['browser.web_vital.lcp.element'] = htmlTreeAsString(entry.element));\n entry?.id && (attributes['browser.web_vital.lcp.id'] = entry.id);\n entry?.url && (attributes['browser.web_vital.lcp.url'] = entry.url);\n entry?.loadTime != null && (attributes['browser.web_vital.lcp.load_time'] = entry.loadTime);\n entry?.renderTime != null && (attributes['browser.web_vital.lcp.render_time'] = entry.renderTime);\n entry?.size != null && (attributes['browser.web_vital.lcp.size'] = entry.size);\n\n _emitWebVitalSpan({\n name,\n op: 'ui.webvital.lcp',\n origin: 'auto.http.browser.lcp',\n metricName: 'lcp',\n value: lcpValue,\n attributes,\n parentSpan: pageloadSpan,\n reportEvent,\n startTime: timeOrigin,\n endTime,\n });\n}\n\n/**\n * Tracks CLS as a streamed span.\n */\nexport function trackClsAsSpan(client: Client): void {\n let clsValue = 0;\n let clsEntry: LayoutShift | undefined;\n\n if (!supportsWebVital('layout-shift')) {\n return;\n }\n\n const cleanupClsHandler = addClsInstrumentationHandler(({ metric }) => {\n const entry = metric.entries[metric.entries.length - 1] as LayoutShift | undefined;\n if (!entry) {\n return;\n }\n clsValue = metric.value;\n clsEntry = entry;\n }, true);\n\n listenForWebVitalReportEvents(client, (reportEvent, _, pageloadSpan) => {\n _sendClsSpan(clsValue, clsEntry, pageloadSpan, reportEvent);\n cleanupClsHandler();\n });\n}\n\n/**\n * Exported only for testing.\n */\nexport function _sendClsSpan(\n clsValue: number,\n entry: LayoutShift | undefined,\n pageloadSpan?: Span,\n reportEvent?: WebVitalReportEvent,\n): void {\n DEBUG_BUILD && debug.log(`Sending CLS span (${clsValue})`);\n\n const startTime = entry ? msToSec((browserPerformanceTimeOrigin() || 0) + entry.startTime) : timestampInSeconds();\n const name = entry ? htmlTreeAsString(entry.sources[0]?.node) : 'Layout shift';\n\n const attributes: SpanAttributes = {};\n\n if (entry?.sources) {\n entry.sources.forEach((source, index) => {\n attributes[`browser.web_vital.cls.source.${index + 1}`] = htmlTreeAsString(source.node);\n });\n }\n\n _emitWebVitalSpan({\n name,\n op: 'ui.webvital.cls',\n origin: 'auto.http.browser.cls',\n metricName: 'cls',\n value: clsValue,\n attributes,\n parentSpan: pageloadSpan,\n reportEvent,\n startTime,\n });\n}\n\n/**\n * Tracks INP as a streamed span.\n *\n * This mirrors the standalone INP tracking logic (`startTrackingINP`) but emits\n * spans through the streaming pipeline instead of as standalone spans.\n * Requires `registerInpInteractionListener()` to be called separately for\n * cached element names and root spans per interaction.\n */\nexport function trackInpAsSpan(): void {\n const performance = getBrowserPerformanceAPI();\n if (!performance || !browserPerformanceTimeOrigin()) {\n return;\n }\n\n const onInp: InstrumentationHandlerCallback = ({ metric }) => {\n if (metric.value == null) {\n return;\n }\n\n const duration = msToSec(metric.value);\n\n if (duration > MAX_PLAUSIBLE_INP_DURATION) {\n return;\n }\n\n const entry = metric.entries.find(e => e.duration === metric.value && INP_ENTRY_MAP[e.name]);\n\n if (!entry) {\n return;\n }\n\n _sendInpSpan(metric.value, entry);\n };\n\n addInpInstrumentationHandler(onInp);\n}\n\n/**\n * Exported only for testing.\n */\nexport function _sendInpSpan(inpValue: number, entry: PerformanceEventTiming): void {\n DEBUG_BUILD && debug.log(`Sending INP span (${inpValue})`);\n\n const startTime = msToSec((browserPerformanceTimeOrigin() as number) + entry.startTime);\n const duration = msToSec(inpValue);\n const interactionType = INP_ENTRY_MAP[entry.name];\n\n const cachedContext = getCachedInteractionContext(entry.interactionId);\n const activeSpan = getActiveSpan();\n const rootSpan = activeSpan ? getRootSpan(activeSpan) : undefined;\n\n const spanToUse = cachedContext?.span || rootSpan;\n const routeName = spanToUse\n ? spanToStreamedSpanJSON(spanToUse).name\n : getCurrentScope().getScopeData().transactionName;\n const name = cachedContext?.elementName || htmlTreeAsString(entry.target);\n\n _emitWebVitalSpan({\n name,\n op: `ui.interaction.${interactionType}`,\n origin: 'auto.http.browser.inp',\n metricName: 'inp',\n value: inpValue,\n attributes: {\n [SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME]: entry.duration,\n // oxlint-disable-next-line typescript-eslint/no-deprecated\n [SENTRY_TRANSACTION]: routeName,\n [SENTRY_SEGMENT_NAME]: routeName,\n },\n startTime,\n endTime: startTime + duration,\n parentSpan: spanToUse,\n });\n}\n", "import type { HandlerDataDom } from '@sentry/core';\nimport { addHandler, addNonEnumerableProperty, fill, maybeInstrument, triggerHandlers, uuid4 } from '@sentry/core';\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 /** The number of custom listeners attached to this element */\n refCount: number;\n };\n };\n};\n\nconst DEBOUNCE_DURATION = 1000;\n\nlet debounceTimerID: number | undefined;\nlet lastCapturedEventType: string | undefined;\nlet lastCapturedEventTargetId: string | undefined;\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;\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 if (type === 'click' || type == 'keypress') {\n try {\n const handlers = (this.__sentry_instrumentation_handlers__ =\n this.__sentry_instrumentation_handlers__ || {});\n const handlerForType = (handlers[type] = handlers[type] || { refCount: 0 });\n\n if (!handlerForType.handler) {\n const handler = makeDOMEventHandler(triggerDOMHandler);\n handlerForType.handler = handler;\n originalAddEventListener.call(this, type, handler, options);\n }\n\n handlerForType.refCount++;\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') {\n try {\n const handlers = this.__sentry_instrumentation_handlers__ || {};\n const handlerForType = handlers[type];\n\n if (handlerForType) {\n handlerForType.refCount--;\n // If there are no longer any custom handlers of the current type on this element, we can remove ours, too.\n if (handlerForType.refCount <= 0) {\n originalRemoveEventListener.call(this, type, handlerForType.handler, options);\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 type { HandlerDataHistory } from '@sentry/core';\nimport { addHandler, fill, maybeInstrument, supportsHistory, triggerHandlers } from '@sentry/core';\nimport { WINDOW } from '../types';\n\nlet lastHref: string | undefined;\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 { 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 = {};\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(\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): ReturnType {\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): ReturnType {\n return getNativeImplementation('setTimeout')(...rest);\n}\n", "import type { HandlerDataXhr, SentryWrappedXMLHttpRequest } from '@sentry/core';\nimport { addHandler, isString, maybeInstrument, timestampInSeconds, triggerHandlers } from '@sentry/core';\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 \u2014 including a URL object \u2014 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 { debug } from '@sentry/core';\nimport { DEBUG_BUILD } from './debug-build';\nimport type { NetworkMetaWarning } from './types';\n\n// Symbol used by e.g. the Replay integration to store original body on Request objects\nexport const ORIGINAL_REQ_BODY = Symbol.for('sentry__originalRequestBody');\n\n/**\n * Serializes FormData.\n *\n * This is a bit simplified, but gives us a decent estimate.\n * This converts e.g. { name: 'Anne Smith', age: 13 } to 'name=Anne+Smith&age=13'.\n *\n */\nexport function serializeFormData(formData: FormData): string {\n // @ts-expect-error passing FormData to URLSearchParams actually works\n return new URLSearchParams(formData).toString();\n}\n\n/** Get the string representation of a body. */\nexport function getBodyString(body: unknown, _debug: typeof debug = debug): [string | undefined, NetworkMetaWarning?] {\n try {\n if (typeof body === 'string') {\n return [body];\n }\n\n if (body instanceof URLSearchParams) {\n return [body.toString()];\n }\n\n if (body instanceof FormData) {\n return [serializeFormData(body)];\n }\n\n if (!body) {\n return [undefined];\n }\n } catch (error) {\n DEBUG_BUILD && _debug.error(error, 'Failed to serialize body', body);\n return [undefined, 'BODY_PARSE_ERROR'];\n }\n\n DEBUG_BUILD && _debug.log('Skipping network body because of body type', body);\n\n return [undefined, 'UNPARSEABLE_BODY_TYPE'];\n}\n\n/**\n * Parses the fetch arguments to extract the request payload.\n *\n * In case of a Request object, this function attempts to retrieve the original body by looking for a Sentry-patched symbol.\n */\nexport function getFetchRequestArgBody(fetchArgs: unknown[] = []): RequestInit['body'] | undefined {\n // Second argument with body options takes precedence\n if (fetchArgs.length >= 2 && fetchArgs[1] && typeof fetchArgs[1] === 'object' && 'body' in fetchArgs[1]) {\n return (fetchArgs[1] as RequestInit).body;\n }\n\n if (fetchArgs.length >= 1 && fetchArgs[0] instanceof Request) {\n const request = fetchArgs[0];\n /* The Request interface's body is a ReadableStream, which we cannot directly access.\n Some integrations (e.g. Replay) patch the Request object to store the original body. */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/no-unsafe-member-access\n const originalBody = (request as any)[ORIGINAL_REQ_BODY];\n if (originalBody !== undefined) {\n return originalBody;\n }\n\n return undefined; // Fall back to returning undefined (as we don't want to return a ReadableStream)\n }\n\n return undefined;\n}\n\n/**\n * Parses XMLHttpRequest response headers into a Record.\n * Extracted from replay internals to be reusable.\n */\nexport function parseXhrResponseHeaders(xhr: XMLHttpRequest): Record {\n let headers: string | undefined;\n try {\n headers = xhr.getAllResponseHeaders();\n } catch (error) {\n DEBUG_BUILD && debug.error(error, 'Failed to get xhr response headers', xhr);\n return {};\n }\n\n if (!headers) {\n return {};\n }\n\n return headers.split('\\r\\n').reduce((acc: Record, line: string) => {\n const [key, value] = line.split(': ') as [string, string | undefined];\n if (value) {\n acc[key.toLowerCase()] = value;\n }\n return acc;\n }, {});\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 type { Transport, TransportMakeRequestResponse, TransportRequest } from '@sentry/core/browser';\nimport { createTransport, makePromiseBuffer } from '@sentry/core/browser';\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 {\n const requestSize = request.body.length;\n pendingBodySize += requestSize;\n pendingCount++;\n\n const requestOptions: RequestInit = {\n body: request.body,\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", "declare const __DEBUG_BUILD__: boolean;\n\n/**\n * This serves as a build time flag that will be true by default, but false in non-debug builds or if users replace `__SENTRY_DEBUG__` in their generated code.\n *\n * ATTENTION: This constant must never cross package boundaries (i.e. be exported) to guarantee that it can be used for tree shaking.\n */\nexport const DEBUG_BUILD = __DEBUG_BUILD__;\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/browser';\nimport { createStackParser, UNKNOWN_FUNCTION } from '@sentry/core/browser';\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 === '' ? 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 )?((?:|[-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: ``,\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 (?:]+)>|([^)]+))\\(.*\\))? 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", "/* eslint-disable max-lines */\n\nimport type {\n Breadcrumb,\n Client,\n Event as SentryEvent,\n FetchBreadcrumbData,\n FetchBreadcrumbHint,\n HandlerDataConsole,\n HandlerDataDom,\n HandlerDataFetch,\n HandlerDataHistory,\n HandlerDataXhr,\n IntegrationFn,\n XhrBreadcrumbData,\n XhrBreadcrumbHint,\n} from '@sentry/core/browser';\nimport {\n addBreadcrumb,\n addConsoleInstrumentationHandler,\n addFetchInstrumentationHandler,\n debug,\n defineIntegration,\n getBreadcrumbLogLevelFromHttpStatusCode,\n getClient,\n getComponentName,\n getEventDescription,\n parseUrl,\n safeJoin,\n severityLevelFromString,\n} from '@sentry/core/browser';\nimport type { FetchHint, XhrHint } from '@sentry/browser-utils';\nimport {\n addClickKeypressInstrumentationHandler,\n addHistoryInstrumentationHandler,\n addXhrInstrumentationHandler,\n htmlTreeAsString,\n SENTRY_XHR_DATA_KEY,\n} from '@sentry/browser-utils';\nimport { DEBUG_BUILD } from '../debug-build';\nimport { WINDOW } from '../helpers';\n\ninterface BreadcrumbsOptions {\n console: boolean;\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 = {}) => {\n const _options = {\n console: true,\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 // TODO(v11): Remove this functionality and use `consoleIntegration` from @sentry/core instead.\n if (_options.console) {\n addConsoleInstrumentationHandler(_getConsoleBreadcrumbHandler(client));\n }\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 = '';\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 console API calls\n */\nfunction _getConsoleBreadcrumbHandler(client: Client): (handlerData: HandlerDataConsole) => void {\n return function _consoleBreadcrumb(handlerData: HandlerDataConsole): void {\n if (getClient() !== client) {\n return;\n }\n\n const breadcrumb = {\n category: 'console',\n data: {\n arguments: handlerData.args,\n logger: 'console',\n },\n level: severityLevelFromString(handlerData.level),\n message: safeJoin(handlerData.args, ' '),\n };\n\n if (handlerData.level === 'assert') {\n if (handlerData.args[0] === false) {\n breadcrumb.message = `Assertion failed: ${safeJoin(handlerData.args.slice(1), ' ') || 'console.assert'}`;\n breadcrumb.data.arguments = handlerData.args.slice(1);\n } else {\n // Don't capture a breadcrumb for passed assertions\n return;\n }\n }\n\n addBreadcrumb(breadcrumb, {\n input: handlerData.args,\n level: handlerData.level,\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 as XhrHint);\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).target;\n}\n", "import type { IntegrationFn, WrappedFunction } from '@sentry/core/browser';\nimport { defineIntegration, fill, getFunctionName, getOriginalFunction } from '@sentry/core/browser';\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 = {}) => {\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;\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\n ) => ReturnType {\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\n ) => ReturnType {\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", "import { captureSession, debug, defineIntegration, getIsolationScope, startSession } from '@sentry/core/browser';\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 * - `'route'`: A session is created on page load and on every navigation.\n * This is the default behavior.\n * - `'page'`: A session is created once when the page is loaded. Session is not\n * updated on navigation. This is useful for webviews or single-page apps where\n * URL changes should not trigger new sessions.\n *\n * @default 'route'\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 ?? 'route';\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 { CultureContext, IntegrationFn } from '@sentry/core/browser';\nimport { defineIntegration, safeSetSpanJSONAttributes } from '@sentry/core/browser';\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 { Client, Event, IntegrationFn, Primitive, StackParser } from '@sentry/core/browser';\nimport {\n addGlobalErrorInstrumentationHandler,\n addGlobalUnhandledRejectionInstrumentationHandler,\n captureEvent,\n debug,\n defineIntegration,\n getClient,\n getLocationHref,\n isPrimitive,\n isString,\n stripDataUrlContent,\n UNKNOWN_FUNCTION,\n} from '@sentry/core/browser';\nimport type { BrowserClient } from '../client';\nimport { DEBUG_BUILD } from '../debug-build';\nimport { eventFromUnknownInput } from '../eventbuilder';\nimport { shouldIgnoreOnError } from '../helpers';\n\ntype GlobalHandlersIntegrationsOptionKeys = 'onerror' | 'onunhandledrejection';\n\ntype GlobalHandlersIntegrations = Record;\n\nconst INTEGRATION_NAME = 'GlobalHandlers' as const;\n\nconst _globalHandlersIntegration = ((options: Partial = {}) => {\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()) {\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\nfunction _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();\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", "import { defineIntegration, filterCollectedUrl, safeSetSpanJSONAttributes } from '@sentry/core/browser';\nimport { getHttpRequestData, WINDOW } from '../helpers';\nimport { HTTP_REQUEST_HEADER_KEY_BASE, SENTRY_OP, URL_FULL, USER_AGENT_ORIGINAL } 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) {\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 const headers = {\n ...reqData.headers,\n ...event.request?.headers,\n };\n\n event.request = {\n ...reqData,\n ...event.request,\n headers,\n };\n },\n\n processSpan(span) {\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 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]: reqData.headers['User-Agent'],\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`]: reqData.headers['Referer'],\n }),\n });\n },\n };\n});\n", "import type { IntegrationFn } from '@sentry/core/browser';\nimport { applyAggregateErrorsToEvent, defineIntegration } from '@sentry/core/browser';\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", "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` \u2192 `[Window]`\n * - `document` \u2192 `[Document]`\n * - `HTMLElement` subclasses \u2192 `[HTMLElement: ]` (via `htmlTreeAsString`)\n *\n * Vue ViewModels and React SyntheticEvents are not handled here \u2014 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): 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", "import { consoleSandbox, getLocationHref } from '@sentry/core/browser';\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/browser';\nimport {\n conversationIdIntegration,\n dedupeIntegration,\n functionToStringIntegration,\n getIntegrationsToSetup,\n inboundFiltersIntegration,\n initAndBind,\n setNormalizeStringifier,\n stackParserFromStackParserOptions,\n} from '@sentry/core/browser';\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 // TODO(v11): Replace with `eventFiltersIntegration` once we remove the deprecated `inboundFiltersIntegration`\n // eslint-disable-next-line typescript/no-deprecated\n inboundFiltersIntegration(),\n functionToStringIntegration(),\n conversationIdIntegration(),\n browserApiErrorsIntegration(),\n breadcrumbsIntegration(),\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 clientOptions: BrowserClientOptions = {\n ...options,\n enabled: shouldDisableBecauseIsBrowserExtenstion ? false : options.enabled,\n stackParser: stackParserFromStackParserOptions(options.stackParser || defaultStackParser),\n integrations: getIntegrationsToSetup({\n integrations: options.integrations,\n defaultIntegrations,\n }),\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 { WINDOW } from '../helpers';\n\n/**\n * Checks if the baggage header has Sentry values.\n */\nexport function baggageHeaderHasSentryValues(baggageHeader: string): boolean {\n return baggageHeader.split(',').some(value => value.trim().startsWith('sentry-'));\n}\n\n/**\n * Gets the full URL from a given URL string.\n */\nexport function getFullURL(url: string): string | undefined {\n try {\n // By adding a base URL to new URL(), this will also work for relative urls\n // If `url` is a full URL, the base URL is ignored anyhow\n const parsed = new URL(url, WINDOW.location.origin);\n return parsed.href;\n } catch {\n return undefined;\n }\n}\n\n/**\n * Checks if the entry is a PerformanceResourceTiming.\n */\nexport function isPerformanceResourceTiming(entry: PerformanceEntry): entry is PerformanceResourceTiming {\n return (\n entry.entryType === 'resource' &&\n 'initiatorType' in entry &&\n typeof (entry as PerformanceResourceTiming).nextHopProtocol === 'string' &&\n (entry.initiatorType === 'fetch' || entry.initiatorType === 'xmlhttprequest')\n );\n}\n\n/**\n * Creates a Headers object from a record of string key-value pairs, and returns undefined if it fails.\n */\nexport function createHeadersSafely(headers: Record | undefined): Headers | undefined {\n try {\n return new Headers(headers);\n } catch {\n // noop\n return undefined;\n }\n}\n", "/* eslint-disable max-lines */\nimport type {\n Client,\n HandlerDataXhr,\n RequestHookInfo,\n ResponseHookInfo,\n SentryWrappedXMLHttpRequest,\n Span,\n SpanTimeInput,\n} from '@sentry/core/browser';\nimport {\n addFetchInstrumentationHandler,\n filterCollectedUrl,\n filterCollectedUrlQuery,\n getActiveSpan,\n getClient,\n getLocationHref,\n getTraceData,\n hasSpansEnabled,\n hasSpanStreamingEnabled,\n instrumentFetchRequest,\n parseUrl,\n SEMANTIC_ATTRIBUTE_SENTRY_OP,\n SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,\n SentryNonRecordingSpan,\n setHttpStatus,\n spanIsIgnored,\n spanToJSON,\n startInactiveSpan,\n stringMatchesSomePattern,\n stripDataUrlContent,\n stripUrlQueryAndFragment,\n timestampInSeconds,\n} from '@sentry/core/browser';\nimport type { XhrHint } from '@sentry/browser-utils';\nimport {\n addPerformanceInstrumentationHandler,\n addXhrInstrumentationHandler,\n parseXhrResponseHeaders,\n resourceTimingToSpanAttributes,\n SENTRY_XHR_DATA_KEY,\n} from '@sentry/browser-utils';\nimport type { BrowserClient } from '../client';\nimport { baggageHeaderHasSentryValues, createHeadersSafely, getFullURL, isPerformanceResourceTiming } from './utils';\nimport { HTTP_URL, URL_FULL } from '@sentry/conventions/attributes';\n\n/** Options for Request Instrumentation */\nexport interface RequestInstrumentationOptions {\n /**\n * List of strings and/or Regular Expressions used to determine which outgoing requests will have `sentry-trace` and `baggage`\n * headers attached.\n *\n * **Default:** If this option is not provided, tracing headers will be attached to all outgoing requests.\n * If you are using a browser SDK, by default, tracing headers will only be attached to outgoing requests to the same origin.\n *\n * **Disclaimer:** Carelessly setting this option in browser environments may result into CORS errors!\n * Only attach tracing headers to requests to the same origin, or to requests to services you can control CORS headers of.\n * Cross-origin requests, meaning requests to a different domain, for example a request to `https://api.example.com/` while you're on `https://example.com/`, take special care.\n * If you are attaching headers to cross-origin requests, make sure the backend handling the request returns a `\"Access-Control-Allow-Headers: sentry-trace, baggage\"` header to ensure your requests aren't blocked.\n *\n * If you provide a `tracePropagationTargets` array, the entries you provide will be matched against the entire URL of the outgoing request.\n * If you are using a browser SDK, the entries will also be matched against the pathname of the outgoing requests.\n * This is so you can have matchers for relative requests, for example, `/^\\/api/` if you want to trace requests to your `/api` routes on the same domain.\n *\n * If any of the two match any of the provided values, tracing headers will be attached to the outgoing request.\n * Both, the string values, and the RegExes you provide in the array will match if they partially match the URL or pathname.\n *\n * Examples:\n * - `tracePropagationTargets: [/^\\/api/]` and request to `https://same-origin.com/api/posts`:\n * - Tracing headers will be attached because the request is sent to the same origin and the regex matches the pathname \"/api/posts\".\n * - `tracePropagationTargets: [/^\\/api/]` and request to `https://different-origin.com/api/posts`:\n * - Tracing headers will not be attached because the pathname will only be compared when the request target lives on the same origin.\n * - `tracePropagationTargets: [/^\\/api/, 'https://external-api.com']` and request to `https://external-api.com/v1/data`:\n * - Tracing headers will be attached because the request URL matches the string `'https://external-api.com'`.\n */\n tracePropagationTargets?: Array;\n\n /**\n * Flag to disable patching all together for fetch requests.\n *\n * Default: true\n */\n traceFetch: boolean;\n\n /**\n * Flag to disable patching all together for xhr requests.\n *\n * Default: true\n */\n traceXHR: boolean;\n\n /**\n * Flag to disable tracking of long-lived streams, like server-sent events (SSE) via fetch.\n * Do not enable this in case you have live streams or very long running streams.\n *\n * Disabled by default since it can lead to issues with streams using the `cancel()` api\n * (https://github.com/getsentry/sentry-javascript/issues/13950)\n *\n * Default: false\n *\n * @deprecated Use `fetchStreamPerformanceIntegration()` instead. Add it to your `integrations` array\n * to track the duration of streamed fetch response bodies.\n */\n trackFetchStreamPerformance: boolean;\n\n /**\n * If true, Sentry will capture http timings and add them to the corresponding http spans.\n *\n * Default: true\n */\n enableHTTPTimings: boolean;\n\n /**\n * This function will be called before creating a span for a request with the given url.\n * Return false if you don't want a span for the given url.\n *\n * Default: (url: string) => true\n */\n shouldCreateSpanForRequest?(this: void, url: string): boolean;\n\n /**\n * Is called when spans are started for outgoing requests.\n */\n onRequestSpanStart?(span: Span, requestInformation: RequestHookInfo): void;\n\n /**\n * Is called when spans end for outgoing requests, providing access to response headers.\n */\n onRequestSpanEnd?(span: Span, responseInformation: ResponseHookInfo): void;\n}\n\nexport const defaultRequestInstrumentationOptions: RequestInstrumentationOptions = {\n traceFetch: true,\n traceXHR: true,\n enableHTTPTimings: true,\n trackFetchStreamPerformance: false,\n};\n\n/** Registers span creators for xhr and fetch requests */\nexport function instrumentOutgoingRequests(client: Client, _options?: Partial): void {\n const {\n traceFetch,\n traceXHR,\n shouldCreateSpanForRequest,\n enableHTTPTimings,\n tracePropagationTargets,\n onRequestSpanStart,\n onRequestSpanEnd,\n } = {\n ...defaultRequestInstrumentationOptions,\n ..._options,\n };\n\n const shouldCreateSpan =\n typeof shouldCreateSpanForRequest === 'function' ? shouldCreateSpanForRequest : (_: string) => true;\n\n const shouldAttachHeadersWithTargets = (url: string): boolean => shouldAttachHeaders(url, tracePropagationTargets);\n\n const spans: Record = {};\n\n const propagateTraceparent = (client as BrowserClient).getOptions().propagateTraceparent;\n\n if (traceFetch) {\n addFetchInstrumentationHandler(handlerData => {\n const createdSpan = instrumentFetchRequest(handlerData, shouldCreateSpan, shouldAttachHeadersWithTargets, spans, {\n propagateTraceparent,\n onRequestSpanEnd,\n });\n\n // We cannot use `window.location` in the generic fetch instrumentation,\n // but we need it for reliable `server.address` attribute.\n // so we extend this in here\n if (createdSpan) {\n const fullUrl = getFullURL(handlerData.fetchData.url);\n const host = fullUrl ? parseUrl(fullUrl).host : undefined;\n const sanitizedFullUrl = fullUrl ? stripDataUrlContent(fullUrl) : undefined;\n createdSpan.setAttributes({\n // oxlint-disable-next-line typescript/no-deprecated\n [HTTP_URL]: filterCollectedUrl(sanitizedFullUrl),\n // `url.full` must match `http.url`. Setting it here ensures parentless `http.client`\n // segment spans don't get `url.full` backfilled with the host page URL (see httpContextIntegration).\n [URL_FULL]: filterCollectedUrl(sanitizedFullUrl),\n 'server.address': host,\n });\n\n if (enableHTTPTimings) {\n addHTTPTimings(createdSpan, client);\n }\n\n onRequestSpanStart?.(createdSpan, { headers: handlerData.headers });\n }\n });\n }\n\n if (traceXHR) {\n addXhrInstrumentationHandler(handlerData => {\n const createdSpan = xhrCallback(\n handlerData,\n shouldCreateSpan,\n shouldAttachHeadersWithTargets,\n spans,\n propagateTraceparent,\n onRequestSpanEnd,\n );\n\n if (createdSpan) {\n if (enableHTTPTimings) {\n addHTTPTimings(createdSpan, client);\n }\n\n onRequestSpanStart?.(createdSpan, {\n headers: createHeadersSafely(handlerData.xhr.__sentry_xhr_v3__?.request_headers),\n });\n }\n });\n }\n}\n\n/**\n * The maximum time (ms) to wait for PerformanceResourceTiming data before ending the span.\n * Same approach is used by OTel's browser fetch instrumentation:\n * See {@link https://github.com/open-telemetry/opentelemetry-js/blob/30f94fe99339287b1e4d3c8bb90172c2523f06f4/experimental/packages/opentelemetry-instrumentation-fetch/src/fetch.ts#L352-L372}\n */\nconst HTTP_TIMING_WAIT_MS = 300;\n\n/**\n * Creates a temporary observer to listen to the next fetch/xhr resourcing timings,\n * so that when timings hit their per-browser limit they don't need to be removed.\n *\n * @param span A span that has yet to be finished, must contain `url` on data.\n */\nfunction addHTTPTimings(span: Span, client: Client): void {\n const { url } = spanToJSON(span).data;\n\n if (!url || typeof url !== 'string') {\n return;\n }\n\n // Clean up the performance observer and other resources\n // We have to wait here because otherwise this cleans itself up before it is fully done.\n // Default (non-streaming): just deregister the observer.\n let onEntryFound = (): void => void setTimeout(unsubscribePerformanceObsever);\n\n // For streamed spans, we have to artificially delay the ending of the span until we\n // either receive the timing data, or HTTP_TIMING_WAIT_MS elapses.\n if (hasSpanStreamingEnabled(client)) {\n const originalEnd = span.end.bind(span);\n\n span.end = (endTimestamp?: SpanTimeInput) => {\n const capturedEndTimestamp = endTimestamp ?? timestampInSeconds();\n let isEnded = false;\n\n const endSpanAndCleanup = (): void => {\n if (isEnded) {\n return;\n }\n isEnded = true;\n setTimeout(unsubscribePerformanceObsever);\n originalEnd(capturedEndTimestamp);\n clearTimeout(fallbackTimeout);\n };\n\n onEntryFound = endSpanAndCleanup;\n\n // Fallback: always end the span after HTTP_TIMING_WAIT_MS even if no\n // PerformanceResourceTiming entry arrives (e.g. cross-origin without\n // Timing-Allow-Origin, or the browser didn't fire the observer in time).\n const fallbackTimeout = setTimeout(endSpanAndCleanup, HTTP_TIMING_WAIT_MS);\n };\n }\n\n const unsubscribePerformanceObsever = addPerformanceInstrumentationHandler('resource', ({ entries }) => {\n entries.forEach(entry => {\n if (isPerformanceResourceTiming(entry) && entry.name.endsWith(url)) {\n span.setAttributes(resourceTimingToSpanAttributes(entry));\n onEntryFound();\n }\n });\n });\n}\n\n/**\n * A function that determines whether to attach tracing headers to a request.\n * We only export this function for testing purposes.\n */\nexport function shouldAttachHeaders(\n targetUrl: string,\n tracePropagationTargets: (string | RegExp)[] | undefined,\n): boolean {\n // window.location.href not being defined is an edge case in the browser but we need to handle it.\n // Potentially dangerous situations where it may not be defined: Browser Extensions, Web Workers, patching of the location obj\n const href = getLocationHref();\n\n if (!href) {\n // If there is no window.location.origin, we default to only attaching tracing headers to relative requests, i.e. ones that start with `/`\n // BIG DISCLAIMER: Users can call URLs with a double slash (fetch(\"//example.com/api\")), this is a shorthand for \"send to the same protocol\",\n // so we need a to exclude those requests, because they might be cross origin.\n const isRelativeSameOriginRequest = !!targetUrl.match(/^\\/(?!\\/)/);\n if (!tracePropagationTargets) {\n return isRelativeSameOriginRequest;\n } else {\n return stringMatchesSomePattern(targetUrl, tracePropagationTargets);\n }\n } else {\n let resolvedUrl;\n let currentOrigin;\n\n // URL parsing may fail, we default to not attaching trace headers in that case.\n try {\n resolvedUrl = new URL(targetUrl, href);\n currentOrigin = new URL(href).origin;\n } catch {\n return false;\n }\n\n const isSameOriginRequest = resolvedUrl.origin === currentOrigin;\n if (!tracePropagationTargets) {\n return isSameOriginRequest;\n } else {\n return (\n stringMatchesSomePattern(resolvedUrl.toString(), tracePropagationTargets) ||\n (isSameOriginRequest && stringMatchesSomePattern(resolvedUrl.pathname, tracePropagationTargets))\n );\n }\n }\n}\n\n/**\n * Create and track xhr request spans\n *\n * @returns Span if a span was created, otherwise void.\n */\n// oxlint-disable-next-line complexity\nfunction xhrCallback(\n handlerData: HandlerDataXhr,\n shouldCreateSpan: (url: string) => boolean,\n shouldAttachHeaders: (url: string) => boolean,\n spans: Record,\n propagateTraceparent?: boolean,\n onRequestSpanEnd?: RequestInstrumentationOptions['onRequestSpanEnd'],\n): Span | undefined {\n const xhr = handlerData.xhr;\n const sentryXhrData = xhr?.[SENTRY_XHR_DATA_KEY];\n\n if (!xhr || xhr.__sentry_own_request__ || !sentryXhrData) {\n return undefined;\n }\n\n const { url, method } = sentryXhrData;\n\n const shouldCreateSpanResult = hasSpansEnabled() && shouldCreateSpan(url);\n\n // Handle XHR completion - clean up spans from the record\n if (handlerData.endTimestamp) {\n const spanId = xhr.__sentry_xhr_span_id__;\n if (!spanId) return;\n\n const span = spans[spanId];\n\n if (span) {\n if (shouldCreateSpanResult && sentryXhrData.status_code !== undefined) {\n setHttpStatus(span, sentryXhrData.status_code);\n span.end();\n\n onRequestSpanEnd?.(span, {\n headers: createHeadersSafely(parseXhrResponseHeaders(xhr as XMLHttpRequest & SentryWrappedXMLHttpRequest)),\n error: handlerData.error,\n });\n }\n\n // eslint-disable-next-line @typescript-eslint/no-dynamic-delete\n delete spans[spanId];\n }\n\n return undefined;\n }\n\n const fullUrl = getFullURL(url);\n const parsedUrl = fullUrl ? parseUrl(fullUrl) : parseUrl(url);\n const sanitizedFullUrl = fullUrl ? stripDataUrlContent(fullUrl) : undefined;\n\n const urlForSpanName = stripDataUrlContent(stripUrlQueryAndFragment(url));\n\n const client = getClient();\n const hasParent = !!getActiveSpan();\n // With span streaming, we always emit http.client spans, even without a parent span\n const shouldEmitSpan = hasParent || (!!client && hasSpanStreamingEnabled(client));\n\n const span =\n shouldCreateSpanResult && shouldEmitSpan\n ? startInactiveSpan({\n name: `${method} ${urlForSpanName}`,\n attributes: {\n url: filterCollectedUrl(stripDataUrlContent(url)),\n type: 'xhr',\n 'http.method': method,\n 'http.url': filterCollectedUrl(sanitizedFullUrl),\n // `url.full` must match `http.url`. Setting it here ensures parentless `http.client`\n // segment spans don't get `url.full` backfilled with the host page URL (see httpContextIntegration).\n [URL_FULL]: filterCollectedUrl(sanitizedFullUrl),\n 'server.address': parsedUrl?.host,\n [SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.http.browser',\n [SEMANTIC_ATTRIBUTE_SENTRY_OP]: 'http.client',\n ...(parsedUrl?.search && { 'http.query': filterCollectedUrlQuery(parsedUrl?.search) }),\n ...(parsedUrl?.hash && { 'http.fragment': parsedUrl?.hash }),\n },\n })\n : new SentryNonRecordingSpan();\n\n // If the span is ignored, we don't want to continue the trace from it (NonRecordingSpan) but rather\n // from the active span. Passing `undefined` here will make `getTraceData` use the active span instead.\n const spanForTraceHeaders = spanIsIgnored(span) && hasParent ? undefined : span;\n\n if (shouldCreateSpanResult && !shouldEmitSpan) {\n client?.recordDroppedEvent('no_parent_span', 'span');\n }\n\n xhr.__sentry_xhr_span_id__ = span.spanContext().spanId;\n spans[xhr.__sentry_xhr_span_id__] = span;\n\n if (shouldAttachHeaders(url)) {\n addTracingHeadersToXhrRequest(\n xhr,\n // If performance is disabled (TWP) or there's no active root span (pageload/navigation/interaction),\n // we do not want to use the span as base for the trace headers,\n // which means that the headers will be generated from the scope and the sampling decision is deferred\n hasSpansEnabled() && shouldEmitSpan ? spanForTraceHeaders : undefined,\n propagateTraceparent,\n );\n }\n\n if (client) {\n client.emit('beforeOutgoingRequestSpan', span, handlerData as XhrHint);\n }\n\n return span;\n}\n\nfunction addTracingHeadersToXhrRequest(\n xhr: SentryWrappedXMLHttpRequest,\n span?: Span,\n propagateTraceparent?: boolean,\n): void {\n const { 'sentry-trace': sentryTrace, baggage, traceparent } = getTraceData({ span, propagateTraceparent });\n\n if (sentryTrace) {\n setHeaderOnXhr(xhr, sentryTrace, baggage, traceparent);\n }\n}\n\nfunction setHeaderOnXhr(\n xhr: SentryWrappedXMLHttpRequest,\n sentryTraceHeader: string,\n sentryBaggageHeader: string | undefined,\n traceparentHeader: string | undefined,\n): void {\n const originalHeaders = xhr.__sentry_xhr_v3__?.request_headers;\n\n if (originalHeaders?.['sentry-trace'] || !xhr.setRequestHeader) {\n // bail if a sentry-trace header is already set\n return;\n }\n\n try {\n xhr.setRequestHeader('sentry-trace', sentryTraceHeader);\n\n if (traceparentHeader && !originalHeaders?.['traceparent']) {\n xhr.setRequestHeader('traceparent', traceparentHeader);\n }\n\n if (sentryBaggageHeader) {\n // only add our headers if\n // - no pre-existing baggage header exists\n // - or it is set and doesn't yet contain sentry values\n const originalBaggageHeader = originalHeaders?.['baggage'];\n if (!originalBaggageHeader || !baggageHeaderHasSentryValues(originalBaggageHeader)) {\n // From MDN: \"If this method is called several times with the same header, the values are merged into one single request header.\"\n // We can therefore simply set a baggage header without checking what was there before\n // https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/setRequestHeader\n xhr.setRequestHeader('baggage', sentryBaggageHeader);\n }\n }\n } catch {\n // Error: InvalidStateError: Failed to execute 'setRequestHeader' on 'XMLHttpRequest': The object's state must be OPENED.\n }\n}\n", "import type { IntegrationFn, Span } from '@sentry/core';\nimport {\n addFetchEndInstrumentationHandler,\n addFetchInstrumentationHandler,\n defineIntegration,\n getSanitizedUrlStringFromUrlObject,\n parseStringToURLObject,\n SEMANTIC_ATTRIBUTE_SENTRY_OP,\n SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,\n startInactiveSpan,\n stripDataUrlContent,\n filterCollectedUrl,\n} from '@sentry/core';\n\nconst responseToStreamSpan = new WeakMap();\nconst responseToFallbackTimeout = new WeakMap>();\n\n// Matches the max timeout in `resolveResponse` in packages/core/src/instrument/fetch.ts\nconst STREAM_RESOLVE_FALLBACK_MS = 90_000;\n\nconst STREAMING_CONTENT_TYPES = ['text/event-stream', 'application/x-ndjson', 'application/stream+json'];\n\n/**\n * Tracks streamed fetch response bodies by creating an `http.client.stream` sibling span.\n *\n * The regular `http.client` span ends when response headers arrive. This integration adds\n * a span that starts at header arrival and ends when the body fully resolves:\n *\n * ```\n * --------- pageload --------------------------------\n * -- http.client --\n * -- http.client.stream -------\n * ```\n */\nexport const fetchStreamPerformanceIntegration = defineIntegration(() => {\n return {\n name: 'FetchStreamPerformance' as const,\n\n setup() {\n // End the stream span when the response body finishes resolving\n addFetchEndInstrumentationHandler(handlerData => {\n if (handlerData.response) {\n const streamSpan = responseToStreamSpan.get(handlerData.response);\n if (streamSpan && handlerData.endTimestamp) {\n streamSpan.end(handlerData.endTimestamp);\n\n const fallbackTimeout = responseToFallbackTimeout.get(handlerData.response);\n if (fallbackTimeout) {\n clearTimeout(fallbackTimeout);\n }\n }\n }\n });\n\n addFetchInstrumentationHandler(handlerData => {\n // Only create the stream span once headers have arrived\n if (handlerData.endTimestamp && handlerData.response) {\n // Only create stream spans for responses that are likely streamed:\n // 1. No content-length header (streamed responses don't know the size upfront)\n // 2. Content-type is a known streaming type (avoids false positives on HTTP/2\n // where content-length is often omitted even for regular responses)\n const contentType = handlerData.response.headers?.get('content-type') || '';\n if (\n handlerData.response.headers?.get('content-length') ||\n !STREAMING_CONTENT_TYPES.some(t => contentType.startsWith(t))\n ) {\n return;\n }\n\n const url = handlerData.fetchData?.url || '';\n const method = handlerData.fetchData?.method || 'GET';\n\n const parsedUrl = parseStringToURLObject(url);\n const sanitizedUrl = url.startsWith('data:')\n ? stripDataUrlContent(url)\n : parsedUrl\n ? getSanitizedUrlStringFromUrlObject(parsedUrl)\n : url;\n\n const streamSpan = startInactiveSpan({\n name: `${method} ${sanitizedUrl}`,\n startTime: handlerData.endTimestamp,\n attributes: {\n url: filterCollectedUrl(stripDataUrlContent(url)),\n 'http.method': method,\n type: 'fetch',\n [SEMANTIC_ATTRIBUTE_SENTRY_OP]: 'http.client.stream',\n [SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.http.browser.stream',\n },\n });\n\n responseToStreamSpan.set(handlerData.response, streamSpan);\n\n // prevent the span from leaking indefinitely if the body never resolves\n const fallbackTimeout = setTimeout(() => {\n if (streamSpan.isRecording()) {\n streamSpan.end();\n }\n }, STREAM_RESOLVE_FALLBACK_MS);\n\n responseToFallbackTimeout.set(handlerData.response, fallbackTimeout);\n }\n });\n },\n };\n}) satisfies IntegrationFn;\n", "import type { IntegrationFn, Span } from '@sentry/core/browser';\nimport { defineIntegration, hasSpanStreamingEnabled } from '@sentry/core/browser';\nimport {\n addWebVitalsToSpan,\n registerInpInteractionListener,\n startTrackingINP,\n startTrackingWebVitals,\n trackClsAsSpan,\n trackInpAsSpan,\n trackLcpAsSpan,\n} from '@sentry/browser-utils';\n\nexport const WEB_VITALS_INTEGRATION_NAME = 'WebVitals' as const;\n\nexport type WebVitalName = 'cls' | 'inp' | 'lcp';\n\nexport interface WebVitalsOptions {\n /**\n * Web vitals to skip.\n */\n ignore?: WebVitalName[];\n\n /**\n * @experimental\n */\n _experiments?: Partial<{\n enableStandaloneClsSpans: boolean;\n enableStandaloneLcpSpans: boolean;\n }>;\n}\n\n/**\n * Captures Core Web Vitals (LCP, CLS, INP) and related pageload vitals.\n *\n * `browserTracingIntegration` auto-registers this integration if no\n * `webVitalsIntegration` is already present, so explicit registration is only\n * needed to customize options or to use it without `browserTracingIntegration`.\n */\nexport const webVitalsIntegration = defineIntegration((options: WebVitalsOptions = {}) => {\n const ignored = new Set(options.ignore ?? []);\n\n return {\n name: WEB_VITALS_INTEGRATION_NAME,\n setup(client) {\n const spanStreamingEnabled = hasSpanStreamingEnabled(client);\n const { enableStandaloneClsSpans, enableStandaloneLcpSpans } = options._experiments ?? {};\n\n const recordClsStandaloneSpans =\n spanStreamingEnabled || ignored.has('cls') ? undefined : enableStandaloneClsSpans || false;\n const recordLcpStandaloneSpans =\n spanStreamingEnabled || ignored.has('lcp') ? undefined : enableStandaloneLcpSpans || false;\n\n // eslint-disable-next-line typescript/no-deprecated\n const finalizeWebVitals = startTrackingWebVitals({\n recordClsStandaloneSpans,\n recordLcpStandaloneSpans,\n client,\n });\n\n const pageloadSpans = new WeakSet();\n\n client.on('afterStartPageLoadSpan', span => {\n pageloadSpans.add(span);\n });\n\n client.on('spanEnd', span => {\n if (!pageloadSpans.delete(span)) {\n return;\n }\n\n finalizeWebVitals();\n addWebVitalsToSpan(span, {\n // CLS/LCP are recorded as pageload span measurements only when they're neither\n // tracked as standalone spans nor handled by span streaming (and not ignored).\n recordClsOnPageloadSpan: recordClsStandaloneSpans === false,\n recordLcpOnPageloadSpan: recordLcpStandaloneSpans === false,\n spanStreamingEnabled,\n });\n });\n\n if (spanStreamingEnabled) {\n if (!ignored.has('lcp')) {\n trackLcpAsSpan(client);\n }\n if (!ignored.has('cls')) {\n trackClsAsSpan(client);\n }\n if (!ignored.has('inp')) {\n trackInpAsSpan();\n }\n } else if (!ignored.has('inp')) {\n startTrackingINP();\n }\n },\n afterAllSetup() {\n if (!ignored.has('inp')) {\n registerInpInteractionListener();\n }\n },\n };\n}) satisfies IntegrationFn;\n", "import { debug, getActiveSpan, getRootSpan, SPAN_STATUS_ERROR, spanToJSON } from '@sentry/core/browser';\nimport { DEBUG_BUILD } from '../debug-build';\nimport { WINDOW } from '../helpers';\n\n/**\n * Add a listener that cancels and finishes a transaction when the global\n * document is hidden.\n */\nexport function registerBackgroundTabDetection(): void {\n if (WINDOW.document) {\n WINDOW.document.addEventListener('visibilitychange', () => {\n const activeSpan = getActiveSpan();\n if (!activeSpan) {\n return;\n }\n\n const rootSpan = getRootSpan(activeSpan);\n\n if (WINDOW.document.hidden && rootSpan) {\n const cancelledStatus = 'cancelled';\n\n const { op, status } = spanToJSON(rootSpan);\n\n if (DEBUG_BUILD) {\n debug.log(`[Tracing] Transaction: ${cancelledStatus} -> since tab moved to the background, op: ${op}`);\n }\n\n // We should not set status if it is already set, this prevent important statuses like\n // error or data loss from being overwritten on transaction.\n if (!status) {\n rootSpan.setStatus({ code: SPAN_STATUS_ERROR, message: cancelledStatus });\n }\n\n rootSpan.setAttribute('sentry.cancellation_reason', 'document.hidden');\n rootSpan.end();\n }\n });\n } else {\n DEBUG_BUILD && debug.warn('[Tracing] Could not set up background tab detection due to lack of global document');\n }\n}\n", "import type { Client, PropagationContext, Span, SpanContextData } from '@sentry/core/browser';\nimport {\n debug,\n getCurrentScope,\n getRootSpan,\n SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE,\n SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,\n SEMANTIC_LINK_ATTRIBUTE_LINK_TYPE,\n spanToJSON,\n} from '@sentry/core/browser';\nimport { DEBUG_BUILD } from '../debug-build';\nimport { WINDOW } from '../exports';\n\nexport interface PreviousTraceInfo {\n /**\n * Span context of the previous trace's local root span\n */\n spanContext: SpanContextData;\n\n /**\n * Timestamp in seconds when the previous trace was started\n */\n startTimestamp: number;\n\n /**\n * sample rate of the previous trace\n */\n sampleRate: number;\n\n /**\n * The sample rand of the previous trace\n */\n sampleRand: number;\n}\n\n// 1h in seconds\nexport const PREVIOUS_TRACE_MAX_DURATION = 3600;\n\n// session storage key\nexport const PREVIOUS_TRACE_KEY = 'sentry_previous_trace';\n\nexport const PREVIOUS_TRACE_TMP_SPAN_ATTRIBUTE = 'sentry.previous_trace';\n\n/**\n * Takes care of linking traces and applying the (consistent) sampling behavoiour based on the passed options\n * @param options - options for linking traces and consistent trace sampling (@see BrowserTracingOptions)\n * @param client - Sentry client\n */\nexport function linkTraces(\n client: Client,\n {\n linkPreviousTrace,\n consistentTraceSampling,\n }: {\n linkPreviousTrace: 'session-storage' | 'in-memory';\n consistentTraceSampling: boolean;\n },\n): void {\n const useSessionStorage = linkPreviousTrace === 'session-storage';\n\n let inMemoryPreviousTraceInfo = useSessionStorage ? getPreviousTraceFromSessionStorage() : undefined;\n\n client.on('spanStart', span => {\n if (getRootSpan(span) !== span) {\n return;\n }\n\n const oldPropagationContext = getCurrentScope().getPropagationContext();\n inMemoryPreviousTraceInfo = addPreviousTraceSpanLink(inMemoryPreviousTraceInfo, span, oldPropagationContext);\n\n if (useSessionStorage) {\n storePreviousTraceInSessionStorage(inMemoryPreviousTraceInfo);\n }\n });\n\n let isFirstTraceOnPageload = true;\n if (consistentTraceSampling) {\n /*\n When users opt into `consistentTraceSampling`, we need to ensure that we propagate\n the previous trace's sample rate and rand to the current trace. This is necessary because otherwise, span\n metric extrapolation is inaccurate, as we'd propagate too high of a sample rate for the subsequent traces.\n\n So therefore, we pretend that the previous trace was the parent trace of the newly started trace. To do that,\n we mutate the propagation context of the current trace and set the sample rate and sample rand of the previous trace.\n Timing-wise, it is fine because it happens before we even sample the root span.\n\n @see https://github.com/getsentry/sentry-javascript/issues/15754\n */\n client.on('beforeSampling', mutableSamplingContextData => {\n if (!inMemoryPreviousTraceInfo) {\n return;\n }\n\n const scope = getCurrentScope();\n const currentPropagationContext = scope.getPropagationContext();\n\n // We do not want to force-continue the sampling decision if we continue a trace\n // that was started on the backend. Most prominently, this will happen in MPAs where\n // users hard-navigate between pages. In this case, the sampling decision of a potentially\n // started trace on the server takes precedence.\n // Why? We want to prioritize inter-trace consistency over intra-trace consistency.\n if (isFirstTraceOnPageload && currentPropagationContext.parentSpanId) {\n isFirstTraceOnPageload = false;\n return;\n }\n\n scope.setPropagationContext({\n ...currentPropagationContext,\n dsc: {\n ...currentPropagationContext.dsc,\n sample_rate: String(inMemoryPreviousTraceInfo.sampleRate),\n sampled: String(spanContextSampled(inMemoryPreviousTraceInfo.spanContext)),\n },\n sampleRand: inMemoryPreviousTraceInfo.sampleRand,\n });\n\n mutableSamplingContextData.parentSampled = spanContextSampled(inMemoryPreviousTraceInfo.spanContext);\n mutableSamplingContextData.parentSampleRate = inMemoryPreviousTraceInfo.sampleRate;\n\n mutableSamplingContextData.spanAttributes = {\n ...mutableSamplingContextData.spanAttributes,\n [SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE]: inMemoryPreviousTraceInfo.sampleRate,\n };\n });\n }\n}\n\n/**\n * Adds a previous_trace span link to the passed span if the passed\n * previousTraceInfo is still valid.\n *\n * @returns the updated previous trace info (based on the current span/trace) to\n * be used on the next call\n */\nexport function addPreviousTraceSpanLink(\n previousTraceInfo: PreviousTraceInfo | undefined,\n span: Span,\n oldPropagationContext: PropagationContext,\n): PreviousTraceInfo {\n const spanJson = spanToJSON(span);\n\n function getSampleRate(): number {\n try {\n const oldSampleRate = Number(\n spanJson.data?.[SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE] ?? oldPropagationContext.dsc?.sample_rate,\n );\n return Number.isNaN(oldSampleRate) ? 0 : oldSampleRate;\n } catch {\n return 0;\n }\n }\n\n const updatedPreviousTraceInfo = {\n spanContext: span.spanContext(),\n startTimestamp: spanJson.start_timestamp,\n sampleRate: getSampleRate(),\n sampleRand: oldPropagationContext.sampleRand,\n };\n\n if (!previousTraceInfo) {\n return updatedPreviousTraceInfo;\n }\n\n const previousTraceSpanCtx = previousTraceInfo.spanContext;\n if (previousTraceSpanCtx.traceId === spanJson.trace_id) {\n // This means, we're still in the same trace so let's not update the previous trace info\n // or add a link to the current span.\n // Once we move away from the long-lived, route-based trace model, we can remove this cases\n return previousTraceInfo;\n }\n\n // Only add the link if the startTimeStamp of the previous trace's root span is within\n // PREVIOUS_TRACE_MAX_DURATION (1h) of the current root span's startTimestamp\n // This is done to\n // - avoid adding links to \"stale\" traces\n // - enable more efficient querying for previous/next traces in Sentry\n if (Date.now() / 1000 - previousTraceInfo.startTimestamp <= PREVIOUS_TRACE_MAX_DURATION) {\n if (DEBUG_BUILD) {\n debug.log(\n `Adding previous_trace \\`${JSON.stringify(previousTraceSpanCtx)}\\` link to span \\`${JSON.stringify({\n op: spanJson.op,\n ...span.spanContext(),\n })}\\``,\n );\n }\n\n span.addLink({\n context: previousTraceSpanCtx,\n attributes: {\n [SEMANTIC_LINK_ATTRIBUTE_LINK_TYPE]: 'previous_trace',\n },\n });\n\n // TODO: Remove this once EAP can store span links. We currently only set this attribute so that we\n // can obtain the previous trace information from the EAP store. Long-term, EAP will handle\n // span links and then we should remove this again. Also throwing in a TODO(v11), to remind us\n // to check this at v11 time :)\n span.setAttribute(\n PREVIOUS_TRACE_TMP_SPAN_ATTRIBUTE,\n `${previousTraceSpanCtx.traceId}-${previousTraceSpanCtx.spanId}-${\n spanContextSampled(previousTraceSpanCtx) ? 1 : 0\n }`,\n );\n }\n\n return updatedPreviousTraceInfo;\n}\n\n/**\n * Stores @param previousTraceInfo in sessionStorage.\n */\nexport function storePreviousTraceInSessionStorage(previousTraceInfo: PreviousTraceInfo): void {\n try {\n WINDOW.sessionStorage.setItem(PREVIOUS_TRACE_KEY, JSON.stringify(previousTraceInfo));\n } catch (e) {\n // Ignore potential errors (e.g. if sessionStorage is not available)\n DEBUG_BUILD && debug.warn('Could not store previous trace in sessionStorage', e);\n }\n}\n\n/**\n * Retrieves the previous trace from sessionStorage if available.\n */\nexport function getPreviousTraceFromSessionStorage(): PreviousTraceInfo | undefined {\n try {\n const previousTraceInfo = WINDOW.sessionStorage?.getItem(PREVIOUS_TRACE_KEY);\n // @ts-expect-error - intentionally risking JSON.parse throwing when previousTraceInfo is null to save bundle size\n return JSON.parse(previousTraceInfo);\n } catch {\n return undefined;\n }\n}\n\n/**\n * see {@link import('@sentry/core/browser').spanIsSampled}\n */\nexport function spanContextSampled(ctx: SpanContextData): boolean {\n return ctx.traceFlags === 0x1;\n}\n", "/* eslint-disable max-lines */\nimport type {\n Client,\n IntegrationFn,\n RequestHookInfo,\n ResponseHookInfo,\n Span,\n StartSpanOptions,\n TransactionSource,\n} from '@sentry/core/browser';\nimport {\n addNonEnumerableProperty,\n browserPerformanceTimeOrigin,\n consoleSandbox,\n dateTimestampInSeconds,\n debug,\n generateSpanId,\n generateTraceId,\n getClient,\n getCurrentScope,\n getDynamicSamplingContextFromSpan,\n getLocationHref,\n GLOBAL_OBJ,\n hasSpansEnabled,\n hasSpanStreamingEnabled,\n isURLObjectRelative,\n parseStringToURLObject,\n propagationContextFromHeaders,\n registerSpanErrorInstrumentation,\n SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON,\n SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN,\n SEMANTIC_ATTRIBUTE_SENTRY_SOURCE,\n spanIsSampled,\n spanToJSON,\n startIdleSpan,\n startInactiveSpan,\n timestampInSeconds,\n TRACING_DEFAULTS,\n} from '@sentry/core/browser';\nimport {\n addHistoryInstrumentationHandler,\n addPerformanceEntries,\n startTrackingInteractions,\n startTrackingLongAnimationFrames,\n startTrackingLongTasks,\n} from '@sentry/browser-utils';\nimport { DEBUG_BUILD } from '../debug-build';\nimport { filterCollectedUrl } from '@sentry/core';\nimport { getHttpRequestData, WINDOW } from '../helpers';\nimport { fetchStreamPerformanceIntegration } from '../integrations/fetchStreamPerformance';\nimport { WEB_VITALS_INTEGRATION_NAME, webVitalsIntegration } from '../integrations/webVitals';\nimport { registerBackgroundTabDetection } from './backgroundtab';\nimport { linkTraces } from './linkedTraces';\nimport { defaultRequestInstrumentationOptions, instrumentOutgoingRequests } from './request';\nimport { URL_FULL, URL_PATH } from '@sentry/conventions/attributes';\n\nexport const BROWSER_TRACING_INTEGRATION_ID = 'BrowserTracing';\n\n/**\n * We don't want to start a bunch of idle timers and PerformanceObservers\n * for web crawlers, as they may prevent the page from being seen as \"idle\"\n * by the crawler's rendering engine (e.g. Googlebot's headless Chromium).\n */\nconst BOT_USER_AGENT_RE =\n /Googlebot|Google-InspectionTool|Storebot-Google|Bingbot|Slurp|DuckDuckBot|Baiduspider|YandexBot|Facebot|facebookexternalhit|LinkedInBot|Twitterbot|Applebot/i;\n\nexport function isBotUserAgent(): boolean {\n const nav = WINDOW.navigator as Navigator | undefined;\n if (!nav?.userAgent) {\n return false;\n }\n return BOT_USER_AGENT_RE.test(nav.userAgent);\n}\n\ninterface RouteInfo {\n name: string | undefined;\n source: TransactionSource | undefined;\n}\n\n/** Options for Browser Tracing integration */\nexport interface BrowserTracingOptions {\n /**\n * The time that has to pass without any span being created.\n * If this time is exceeded, the idle span will finish.\n *\n * Default: 1000 (ms)\n */\n idleTimeout: number;\n\n /**\n * The max. time an idle span may run.\n * If this time is exceeded, the idle span will finish no matter what.\n *\n * Default: 30000 (ms)\n */\n finalTimeout: number;\n\n /**\n The max. time an idle span may run.\n * If this time is exceeded, the idle span will finish no matter what.\n *\n * Default: 15000 (ms)\n */\n childSpanTimeout: number;\n\n /**\n * If a span should be created on page load.\n * If this is set to `false`, this integration will not start the default page load span.\n * Default: true\n */\n instrumentPageLoad: boolean;\n\n /**\n * If a span should be created on navigation (history change).\n * If this is set to `false`, this integration will not start the default navigation spans.\n * Default: true\n */\n instrumentNavigation: boolean;\n\n /**\n * Flag spans where tabs moved to background with \"cancelled\". Browser background tab timing is\n * not suited towards doing precise measurements of operations. By default, we recommend that this option\n * be enabled as background transactions can mess up your statistics in nondeterministic ways.\n *\n * Default: true\n */\n markBackgroundSpan: boolean;\n\n /**\n * If true, Sentry will capture long tasks and add them to the corresponding transaction.\n *\n * Default: true\n */\n enableLongTask: boolean;\n\n /**\n * If true, Sentry will capture long animation frames and add them to the corresponding transaction.\n *\n * Default: false\n */\n enableLongAnimationFrame: boolean;\n\n /**\n * If true, Sentry will capture first input delay and add it to the corresponding transaction.\n *\n * Default: true\n */\n enableInp: boolean;\n\n /**\n * @deprecated This option is no longer used. Element timing is now tracked via the standalone\n * `elementTimingIntegration`. Add it to your `integrations` array to collect element timing metrics.\n */\n enableElementTiming?: boolean;\n\n /**\n * Flag to disable patching all together for fetch requests.\n *\n * Default: true\n */\n traceFetch: boolean;\n\n /**\n * Flag to disable patching all together for xhr requests.\n *\n * Default: true\n */\n traceXHR: boolean;\n\n /**\n * Flag to disable tracking of long-lived streams, like server-sent events (SSE) via fetch.\n * Do not enable this in case you have live streams or very long running streams.\n *\n * Default: false\n *\n * @deprecated Use `fetchStreamPerformanceIntegration()` instead. Add it to your `integrations` array\n * to track the duration of streamed fetch response bodies.\n */\n trackFetchStreamPerformance: boolean;\n\n /**\n * If true, Sentry will capture http timings and add them to the corresponding http spans.\n *\n * Default: true\n */\n enableHTTPTimings: boolean;\n\n /**\n * Resource spans with `op`s matching strings in the array will not be emitted.\n *\n * Default: []\n */\n ignoreResourceSpans: Array<'resouce.script' | 'resource.css' | 'resource.img' | 'resource.other' | string>;\n\n /**\n * Spans created from the following browser Performance APIs,\n *\n * - [`performance.mark(...)`](https://developer.mozilla.org/en-US/docs/Web/API/Performance/mark)\n * - [`performance.measure(...)`](https://developer.mozilla.org/en-US/docs/Web/API/Performance/measure)\n *\n * will not be emitted if their names match strings in this array.\n *\n * This is useful, if you come across `mark` or `measure` spans in your Sentry traces\n * that you want to ignore. For example, sometimes, browser extensions or libraries\n * emit these entries on their own, which might not be relevant to your application.\n *\n * * @example\n * ```ts\n * Sentry.init({\n * integrations: [\n * Sentry.browserTracingIntegration({\n * ignorePerformanceApiSpans: ['myMeasurement', /myMark/],\n * }),\n * ],\n * });\n *\n * // no spans will be created for these:\n * performance.mark('myMark');\n * performance.measure('myMeasurement');\n *\n * // spans will be created for these:\n * performance.mark('authenticated');\n * performance.measure('input-duration', ...);\n * ```\n *\n * Default: [] - By default, all `mark` and `measure` entries are sent as spans.\n */\n ignorePerformanceApiSpans: Array;\n\n /**\n * By default, the SDK will try to detect redirects and avoid creating separate spans for them.\n * If you want to opt-out of this behavior, you can set this option to `false`.\n *\n * Default: true\n */\n detectRedirects: boolean;\n\n /**\n * Link the currently started trace to a previous trace (e.g. a prior pageload, navigation or\n * manually started span). When enabled, this option will allow you to navigate between traces\n * in the Sentry UI.\n *\n * You can set this option to the following values:\n *\n * - `'in-memory'`: The previous trace data will be stored in memory.\n * This is useful for single-page applications and enabled by default.\n *\n * - `'session-storage'`: The previous trace data will be stored in the `sessionStorage`.\n * This is useful for multi-page applications or static sites but it means that the\n * Sentry SDK writes to the browser's `sessionStorage`.\n *\n * - `'off'`: The previous trace data will not be stored or linked.\n *\n * You can also use {@link BrowserTracingOptions.consistentTraceSampling} to get\n * consistent trace sampling of subsequent traces. Otherwise, by default, your\n * `tracesSampleRate` or `tracesSampler` config significantly influences how often\n * traces will be linked.\n *\n * @default 'in-memory' - see explanation above\n */\n linkPreviousTrace: 'in-memory' | 'session-storage' | 'off';\n\n /**\n * If true, Sentry will consistently sample subsequent traces based on the\n * sampling decision of the initial trace. For example, if the initial page\n * load trace was sampled positively, all subsequent traces (e.g. navigations)\n * are also sampled positively. In case the initial trace was sampled negatively,\n * all subsequent traces are also sampled negatively.\n *\n * This option allows you to get consistent, linked traces within a user journey\n * while maintaining an overall quota based on your trace sampling settings.\n *\n * This option is only effective if {@link BrowserTracingOptions.linkPreviousTrace}\n * is enabled (i.e. not set to `'off'`).\n *\n * @default `false` - this is an opt-in feature.\n */\n consistentTraceSampling: boolean;\n\n /**\n * If set to `true`, the pageload span will not end itself automatically, unless it\n * runs until the {@link BrowserTracingOptions.finalTimeout} (30 seconds by default) is reached.\n *\n * Set this option to `true`, if you want full control over the pageload span duration.\n * You can use `Sentry.reportPageLoaded()` to manually end the pageload span whenever convenient.\n * Be aware that you have to ensure that this is always called, regardless of the chosen route\n * or path in the application.\n *\n * @default `false`. By default, the pageload span will end itself automatically, based on\n * the {@link BrowserTracingOptions.finalTimeout}, {@link BrowserTracingOptions.idleTimeout}\n * and {@link BrowserTracingOptions.childSpanTimeout}. This is more convenient to use but means\n * that the pageload duration can be arbitrary and might not be fully representative of a perceived\n * page load time.\n */\n enableReportPageLoaded: boolean;\n\n /**\n * _experiments allows the user to send options to define how this integration works.\n *\n * Default: undefined\n */\n _experiments: Partial<{\n enableInteractions: boolean;\n enableStandaloneClsSpans: boolean;\n enableStandaloneLcpSpans: boolean;\n }>;\n\n /**\n * A callback which is called before a span for a pageload or navigation is started.\n * It receives the options passed to `startSpan`, and expects to return an updated options object.\n */\n beforeStartSpan?: (options: StartSpanOptions) => StartSpanOptions;\n\n /**\n * This function will be called before creating a span for a request with the given url.\n * Return false if you don't want a span for the given url.\n *\n * Default: (url: string) => true\n */\n shouldCreateSpanForRequest?(this: void, url: string): boolean;\n\n /**\n * This callback is invoked directly after a span is started for an outgoing fetch or XHR request.\n * You can use it to annotate the span with additional data or attributes, for example by setting\n * attributes based on the passed request headers.\n */\n onRequestSpanStart?(span: Span, requestInformation: RequestHookInfo): void;\n\n /**\n * Is called when spans end for outgoing requests, providing access to response headers.\n */\n onRequestSpanEnd?(span: Span, responseInformation: ResponseHookInfo): void;\n}\n\nconst DEFAULT_BROWSER_TRACING_OPTIONS: BrowserTracingOptions = {\n ...TRACING_DEFAULTS,\n instrumentNavigation: true,\n instrumentPageLoad: true,\n markBackgroundSpan: true,\n enableLongTask: true,\n enableLongAnimationFrame: true,\n enableInp: true,\n ignoreResourceSpans: [],\n ignorePerformanceApiSpans: [],\n detectRedirects: true,\n linkPreviousTrace: 'in-memory',\n consistentTraceSampling: false,\n enableReportPageLoaded: false,\n _experiments: {},\n ...defaultRequestInstrumentationOptions,\n};\n\n/**\n * The Browser Tracing integration automatically instruments browser pageload/navigation\n * actions as transactions, and captures requests, metrics and errors as spans.\n *\n * The integration can be configured with a variety of options, and can be extended to use\n * any routing library.\n *\n * We explicitly export the proper type here, as this has to be extended in some cases.\n */\nexport const browserTracingIntegration = ((options: Partial = {}) => {\n if ('enableElementTiming' in options) {\n consoleSandbox(() => {\n // oxlint-disable-next-line no-console\n console.warn(\n '[Sentry] `enableElementTiming` is deprecated and no longer has any effect. Use the standalone `elementTimingIntegration` instead.',\n );\n });\n }\n\n const latestRoute: RouteInfo = {\n name: undefined,\n source: undefined,\n };\n\n /**\n * This is just a small wrapper that makes `document` optional.\n * We want to be extra-safe and always check that this exists, to ensure weird environments do not blow up.\n */\n const optionalWindowDocument = WINDOW.document as (typeof WINDOW)['document'] | undefined;\n\n const {\n enableInp,\n enableLongTask,\n enableLongAnimationFrame,\n _experiments: { enableInteractions, enableStandaloneClsSpans, enableStandaloneLcpSpans },\n beforeStartSpan,\n idleTimeout,\n finalTimeout,\n childSpanTimeout,\n markBackgroundSpan,\n traceFetch,\n traceXHR,\n // eslint-disable-next-line typescript/no-deprecated\n trackFetchStreamPerformance,\n shouldCreateSpanForRequest,\n enableHTTPTimings,\n ignoreResourceSpans,\n ignorePerformanceApiSpans,\n instrumentPageLoad,\n instrumentNavigation,\n detectRedirects,\n linkPreviousTrace,\n consistentTraceSampling,\n enableReportPageLoaded,\n onRequestSpanStart,\n onRequestSpanEnd,\n } = {\n ...DEFAULT_BROWSER_TRACING_OPTIONS,\n ...options,\n };\n\n const _isBot = isBotUserAgent();\n\n let lastInteractionTimestamp: number | undefined;\n\n let _pageloadSpan: Span | undefined;\n\n /** Create routing idle transaction. */\n function _createRouteSpan(client: Client, startSpanOptions: StartSpanOptions, makeActive = true, url?: string): void {\n const isPageloadSpan = startSpanOptions.op === 'pageload';\n\n const initialSpanName = startSpanOptions.name;\n const finalStartSpanOptions: StartSpanOptions = beforeStartSpan\n ? beforeStartSpan(startSpanOptions)\n : startSpanOptions;\n\n // For navigations, `url` is the destination URL, so we use it to reflect the post-navigation location.\n // For pageloads (and manual navigation spans without a URL) we fall back to the current location.\n const urlObject = parseStringToURLObject(url || getLocationHref());\n\n const attributes = {\n ...(urlObject?.pathname && { [URL_PATH]: urlObject.pathname }),\n ...(urlObject && !isURLObjectRelative(urlObject) && { [URL_FULL]: filterCollectedUrl(urlObject.href) }),\n ...finalStartSpanOptions.attributes,\n };\n\n // If `finalStartSpanOptions.name` is different than `startSpanOptions.name`\n // it is because `beforeStartSpan` set a custom name. Therefore we set the source to 'custom'.\n if (initialSpanName !== finalStartSpanOptions.name) {\n attributes[SEMANTIC_ATTRIBUTE_SENTRY_SOURCE] = 'custom';\n }\n\n finalStartSpanOptions.attributes = attributes;\n\n if (!makeActive) {\n // We want to ensure this has 0s duration\n const now = dateTimestampInSeconds();\n startInactiveSpan({\n ...finalStartSpanOptions,\n startTime: now,\n }).end(now);\n return;\n }\n\n latestRoute.name = finalStartSpanOptions.name;\n latestRoute.source = attributes[SEMANTIC_ATTRIBUTE_SENTRY_SOURCE];\n\n const idleSpan = startIdleSpan(finalStartSpanOptions, {\n idleTimeout,\n finalTimeout,\n childSpanTimeout,\n // should wait for finish signal if it's a pageload transaction\n disableAutoFinish: isPageloadSpan,\n beforeSpanEnd: span => {\n addPerformanceEntries(span, {\n ignoreResourceSpans,\n ignorePerformanceApiSpans,\n spanStreamingEnabled: hasSpanStreamingEnabled(client),\n });\n setActiveIdleSpan(client, undefined);\n\n // A trace should stay consistent over the entire timespan of one route - even after the pageload/navigation ended.\n // Only when another navigation happens, we want to create a new trace.\n // This way, e.g. errors that occur after the pageload span ended are still associated to the pageload trace.\n const scope = getCurrentScope();\n const oldPropagationContext = scope.getPropagationContext();\n\n scope.setPropagationContext({\n ...oldPropagationContext,\n traceId: idleSpan.spanContext().traceId,\n sampled: spanIsSampled(idleSpan),\n dsc: getDynamicSamplingContextFromSpan(span),\n });\n\n if (isPageloadSpan) {\n // clean up the stored pageload span on the intergration.\n _pageloadSpan = undefined;\n }\n },\n trimIdleSpanEndTimestamp: !enableReportPageLoaded,\n });\n\n if (isPageloadSpan && enableReportPageLoaded) {\n _pageloadSpan = idleSpan;\n }\n\n setActiveIdleSpan(client, idleSpan);\n\n function emitFinish(): void {\n if (optionalWindowDocument && ['interactive', 'complete'].includes(optionalWindowDocument.readyState)) {\n client.emit('idleSpanEnableAutoFinish', idleSpan);\n // Once the finish signal has been emitted, the listener is no longer needed. Removing it here (rather than\n // relying on `{ once: true }`) also covers the common case where the document is already loaded when the span\n // starts, so the listener never fires and would otherwise leak together with the `idleSpan` it closes over.\n optionalWindowDocument.removeEventListener('readystatechange', emitFinish);\n }\n }\n\n // Enable auto finish of the pageload span if users are not explicitly ending it\n if (isPageloadSpan && !enableReportPageLoaded && optionalWindowDocument) {\n optionalWindowDocument.addEventListener('readystatechange', emitFinish);\n\n emitFinish();\n }\n }\n\n return {\n name: BROWSER_TRACING_INTEGRATION_ID,\n setup(client) {\n if (_isBot) {\n DEBUG_BUILD && debug.log('[Tracing] Skipping browserTracingIntegration setup for bot user agent.');\n return;\n }\n\n registerSpanErrorInstrumentation();\n\n if (\n enableLongAnimationFrame &&\n GLOBAL_OBJ.PerformanceObserver &&\n PerformanceObserver.supportedEntryTypes?.includes('long-animation-frame')\n ) {\n startTrackingLongAnimationFrames();\n } else if (enableLongTask) {\n startTrackingLongTasks();\n }\n\n if (enableInteractions) {\n startTrackingInteractions();\n }\n\n if (detectRedirects && optionalWindowDocument) {\n const interactionHandler = (): void => {\n lastInteractionTimestamp = timestampInSeconds();\n };\n addEventListener('click', interactionHandler, { capture: true });\n addEventListener('keydown', interactionHandler, { capture: true, passive: true });\n }\n\n function maybeEndActiveSpan(): void {\n const activeSpan = getActiveIdleSpan(client);\n\n if (activeSpan && !spanToJSON(activeSpan).timestamp) {\n DEBUG_BUILD && debug.log(`[Tracing] Finishing current active span with op: ${spanToJSON(activeSpan).op}`);\n // If there's an open active span, we need to finish it before creating an new one.\n activeSpan.setAttribute(SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON, 'cancelled');\n activeSpan.end();\n }\n }\n\n client.on('startNavigationSpan', (startSpanOptions, navigationOptions) => {\n if (getClient() !== client) {\n return;\n }\n\n if (navigationOptions?.isRedirect) {\n DEBUG_BUILD &&\n debug.warn('[Tracing] Detected redirect, navigation span will not be the root span, but a child span.');\n _createRouteSpan(\n client,\n {\n op: 'navigation.redirect',\n ...startSpanOptions,\n },\n false,\n navigationOptions.url,\n );\n return;\n }\n\n // Reset the last interaction timestamp since we now start a new navigation.\n // Any subsequent navigation span starts could again be a redirect, so we\n // should reset our heuristic detectors.\n lastInteractionTimestamp = undefined;\n\n maybeEndActiveSpan();\n\n const scope = getCurrentScope();\n scope.setPropagationContext({\n traceId: generateTraceId(),\n sampleRand: Math.random(),\n propagationSpanId: hasSpansEnabled() ? undefined : generateSpanId(),\n });\n\n // We reset this to ensure we do not have lingering incorrect data here\n // places that call this hook may set this where appropriate - else, the URL at span sending time is used\n scope.setSDKProcessingMetadata({\n normalizedRequest: undefined,\n });\n\n _createRouteSpan(\n client,\n {\n op: 'navigation',\n ...startSpanOptions,\n // Navigation starts a new trace and is NOT parented under any active interaction (e.g. ui.action.click)\n parentSpan: null,\n forceTransaction: true,\n },\n true,\n navigationOptions?.url,\n );\n });\n\n client.on('startPageLoadSpan', (startSpanOptions, traceOptions = {}) => {\n if (getClient() !== client) {\n return;\n }\n maybeEndActiveSpan();\n\n const sentryTrace =\n traceOptions.sentryTrace || getMetaContent('sentry-trace') || getServerTiming('sentry-trace');\n const baggage = traceOptions.baggage || getMetaContent('baggage') || getServerTiming('baggage');\n\n const propagationContext = propagationContextFromHeaders(sentryTrace, baggage);\n\n const scope = getCurrentScope();\n scope.setPropagationContext(propagationContext);\n if (!hasSpansEnabled()) {\n // for browser, we wanna keep the spanIds consistent during the entire lifetime of the trace\n // this works by setting the propagationSpanId to a random spanId so that we have a consistent\n // span id to propagate in TwP mode (!hasSpansEnabled())\n scope.getPropagationContext().propagationSpanId = generateSpanId();\n }\n\n // We store the normalized request data on the scope, so we get the request data at time of span creation\n // otherwise, the URL etc. may already be of the following navigation, and we'd report the wrong URL\n scope.setSDKProcessingMetadata({\n normalizedRequest: getHttpRequestData(),\n });\n\n _createRouteSpan(client, {\n op: 'pageload',\n ...startSpanOptions,\n });\n });\n\n client.on('endPageloadSpan', () => {\n if (enableReportPageLoaded && _pageloadSpan) {\n _pageloadSpan.setAttribute(SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON, 'reportPageLoaded');\n _pageloadSpan.end();\n }\n });\n },\n\n afterAllSetup(client) {\n if (_isBot) {\n return;\n }\n\n // Auto-register webVitalsIntegration if the user hasn't added one. We do this in\n // afterAllSetup so that a user-provided webVitalsIntegration - which may be ordered after\n // browserTracingIntegration in the integrations array - has already been installed.\n if (client.addIntegration && !client.getIntegrationByName?.(WEB_VITALS_INTEGRATION_NAME)) {\n client.addIntegration(\n webVitalsIntegration({\n ignore: enableInp ? [] : ['inp'],\n _experiments: {\n enableStandaloneClsSpans,\n enableStandaloneLcpSpans,\n },\n }),\n );\n }\n\n let startingUrl: string | undefined = getLocationHref();\n\n if (linkPreviousTrace !== 'off') {\n linkTraces(client, { linkPreviousTrace, consistentTraceSampling });\n }\n\n if (WINDOW.location) {\n if (instrumentPageLoad) {\n const origin = browserPerformanceTimeOrigin();\n startBrowserTracingPageLoadSpan(client, {\n name: WINDOW.location.pathname,\n // pageload should always start at timeOrigin (and needs to be in s, not ms)\n startTime: origin ? origin / 1000 : undefined,\n attributes: {\n [SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]: 'url',\n [SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.pageload.browser',\n },\n });\n }\n\n if (instrumentNavigation) {\n addHistoryInstrumentationHandler(({ to, from }) => {\n /**\n * This early return is there to account for some cases where a navigation transaction starts right after\n * long-running pageload. We make sure that if `from` is undefined and a valid `startingURL` exists, we don't\n * create an uneccessary navigation transaction.\n *\n * This was hard to duplicate, but this behavior stopped as soon as this fix was applied. This issue might also\n * only be caused in certain development environments where the usage of a hot module reloader is causing\n * errors.\n */\n if (from === undefined && startingUrl?.indexOf(to) !== -1) {\n startingUrl = undefined;\n return;\n }\n\n startingUrl = undefined;\n const parsed = parseStringToURLObject(to);\n const activeSpan = getActiveIdleSpan(client);\n const navigationIsRedirect =\n activeSpan && detectRedirects && isRedirect(activeSpan, lastInteractionTimestamp);\n\n startBrowserTracingNavigationSpan(\n client,\n {\n name: parsed?.pathname || WINDOW.location.pathname,\n attributes: {\n [SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]: 'url',\n [SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN]: 'auto.navigation.browser',\n },\n },\n { url: to, isRedirect: navigationIsRedirect },\n );\n });\n }\n }\n\n if (markBackgroundSpan) {\n registerBackgroundTabDetection();\n }\n\n if (enableInteractions) {\n registerInteractionListener(client, idleTimeout, finalTimeout, childSpanTimeout, latestRoute);\n }\n\n instrumentOutgoingRequests(client, {\n traceFetch,\n traceXHR,\n tracePropagationTargets: client.getOptions().tracePropagationTargets,\n shouldCreateSpanForRequest,\n enableHTTPTimings,\n onRequestSpanStart,\n onRequestSpanEnd,\n });\n\n if (trackFetchStreamPerformance) {\n client.addIntegration(fetchStreamPerformanceIntegration());\n }\n },\n };\n}) satisfies IntegrationFn;\n\n/**\n * Manually start a page load span.\n * This will only do something if a browser tracing integration integration has been setup.\n *\n * If you provide a custom `traceOptions` object, it will be used to continue the trace\n * instead of the default behavior, which is to look it up on the tags.\n */\nexport function startBrowserTracingPageLoadSpan(\n client: Client,\n spanOptions: StartSpanOptions,\n traceOptions?: { sentryTrace?: string | undefined; baggage?: string | undefined },\n): Span | undefined {\n client.emit('startPageLoadSpan', spanOptions, traceOptions);\n getCurrentScope().setTransactionName(spanOptions.name);\n\n const pageloadSpan = getActiveIdleSpan(client);\n\n if (pageloadSpan) {\n client.emit('afterStartPageLoadSpan', pageloadSpan);\n }\n\n return pageloadSpan;\n}\n\n/**\n * Manually start a navigation span.\n * This will only do something if a browser tracing integration has been setup.\n */\nexport function startBrowserTracingNavigationSpan(\n client: Client,\n spanOptions: StartSpanOptions,\n options?: { url?: string; isRedirect?: boolean },\n): Span | undefined {\n const { url, isRedirect } = options || {};\n client.emit('beforeStartNavigationSpan', spanOptions, { isRedirect, url });\n client.emit('startNavigationSpan', spanOptions, { isRedirect, url });\n\n const scope = getCurrentScope();\n scope.setTransactionName(spanOptions.name);\n\n // We store the normalized request data on the scope, so we get the request data at time of span creation\n // otherwise, the URL etc. may already be of the following navigation, and we'd report the wrong URL\n if (url && !isRedirect) {\n scope.setSDKProcessingMetadata({\n normalizedRequest: {\n ...getHttpRequestData(),\n url,\n },\n });\n }\n\n return getActiveIdleSpan(client);\n}\n\n/** Returns the value of a meta tag */\nexport function getMetaContent(metaName: string): string | undefined {\n /**\n * This is just a small wrapper that makes `document` optional.\n * We want to be extra-safe and always check that this exists, to ensure weird environments do not blow up.\n */\n const optionalWindowDocument = WINDOW.document as (typeof WINDOW)['document'] | undefined;\n\n const metaTag = optionalWindowDocument?.querySelector(`meta[name=${metaName}]`);\n return metaTag?.getAttribute('content') || undefined;\n}\n\n/** Returns the description of a server timing entry */\nexport function getServerTiming(name: string): string | undefined {\n const navigation = WINDOW.performance?.getEntriesByType?.('navigation')[0] as PerformanceNavigationTiming | undefined;\n const entry = navigation?.serverTiming?.find(entry => entry.name === name);\n return entry?.description;\n}\n\n/** Start listener for interaction transactions */\nfunction registerInteractionListener(\n client: Client,\n idleTimeout: BrowserTracingOptions['idleTimeout'],\n finalTimeout: BrowserTracingOptions['finalTimeout'],\n childSpanTimeout: BrowserTracingOptions['childSpanTimeout'],\n latestRoute: RouteInfo,\n): void {\n /**\n * This is just a small wrapper that makes `document` optional.\n * We want to be extra-safe and always check that this exists, to ensure weird environments do not blow up.\n */\n const optionalWindowDocument = WINDOW.document as (typeof WINDOW)['document'] | undefined;\n\n let inflightInteractionSpan: Span | undefined;\n const registerInteractionTransaction = (): void => {\n const op = 'ui.action.click';\n\n const activeIdleSpan = getActiveIdleSpan(client);\n if (activeIdleSpan) {\n const currentRootSpanOp = spanToJSON(activeIdleSpan).op;\n if (['navigation', 'pageload'].includes(currentRootSpanOp as string)) {\n DEBUG_BUILD &&\n debug.warn(`[Tracing] Did not create ${op} span because a pageload or navigation span is in progress.`);\n return undefined;\n }\n }\n\n if (inflightInteractionSpan) {\n inflightInteractionSpan.setAttribute(SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON, 'interactionInterrupted');\n inflightInteractionSpan.end();\n inflightInteractionSpan = undefined;\n }\n\n if (!latestRoute.name) {\n DEBUG_BUILD && debug.warn(`[Tracing] Did not create ${op} transaction because _latestRouteName is missing.`);\n return undefined;\n }\n\n inflightInteractionSpan = startIdleSpan(\n {\n name: latestRoute.name,\n op,\n attributes: {\n [SEMANTIC_ATTRIBUTE_SENTRY_SOURCE]: latestRoute.source || 'url',\n },\n },\n {\n idleTimeout,\n finalTimeout,\n childSpanTimeout,\n },\n );\n };\n\n if (optionalWindowDocument) {\n addEventListener('click', registerInteractionTransaction, { capture: true });\n }\n}\n\n// We store the active idle span on the client object, so we can access it from exported functions\nconst ACTIVE_IDLE_SPAN_PROPERTY = '_sentry_idleSpan';\nfunction getActiveIdleSpan(client: Client): Span | undefined {\n return (client as { [ACTIVE_IDLE_SPAN_PROPERTY]?: Span })[ACTIVE_IDLE_SPAN_PROPERTY];\n}\n\nfunction setActiveIdleSpan(client: Client, span: Span | undefined): void {\n addNonEnumerableProperty(client, ACTIVE_IDLE_SPAN_PROPERTY, span);\n}\n\n// The max. time in seconds between two pageload/navigation spans that makes us consider the second one a redirect\nconst REDIRECT_THRESHOLD = 1.5;\n\nfunction isRedirect(activeSpan: Span, lastInteractionTimestamp: number | undefined): boolean {\n const spanData = spanToJSON(activeSpan);\n\n const now = dateTimestampInSeconds();\n\n // More than REDIRECT_THRESHOLD seconds since last navigation/pageload span?\n // --> never consider this a redirect\n const startTimestamp = spanData.start_timestamp;\n if (now - startTimestamp > REDIRECT_THRESHOLD) {\n return false;\n }\n\n // A click happened in the last REDIRECT_THRESHOLD seconds?\n // --> never consider this a redirect\n if (lastInteractionTimestamp && now - lastInteractionTimestamp <= REDIRECT_THRESHOLD) {\n return false;\n }\n\n return true;\n}\n", "import * as Sentry from \"@sentry/browser\";\n\nif (window.SENTRY_DSN) {\n Sentry.init({\n dsn: window.SENTRY_DSN,\n environment: window.MONOGRAPH_ENV,\n ignoreErrors: [\n \"ResizeObserver loop completed with undelivered notifications\",\n \"ResizeObserver loop limit exceeded\",\n \"NS_ERROR_NOT_INITIALIZED\",\n \"TypeError: Failed to fetch\",\n \"TypeError: NetworkError when attempting to fetch resource.\",\n \"offsetTop\",\n // https://github.com/remix-run/react-router/issues/8834#issuecomment-1118083034\n \"The node to be removed is not a child\",\n ],\n integrations: [Sentry.browserTracingIntegration()],\n maxBreadcrumbs: 50,\n tracesSampleRate: 0.25,\n });\n\n if (sentryUserInfo.email !== undefined) {\n Sentry.setUser(sentryUserInfo);\n }\n}\n"], "mappings": "MAOO,IAAMA,EAAc,OAAA,iBAAA,KAAA,iBCuEpB,IAAMC,EAAa,WC3EnB,IAAMC,GAA2D,UCuDjE,SAASC,IAA0B,CAExC,OAAAC,GAAiBC,CAAU,EACpBA,CACT,CAGO,SAASD,GAAiBE,EAAiC,CAChE,IAAMC,EAAcD,EAAQ,WAAaA,EAAQ,YAAc,CAAA,EAG/D,OAAAC,EAAW,QAAUA,EAAW,SAAWC,GAInCD,EAAWC,IAAeD,EAAWC,KAAgB,CAAA,CAC/D,CAaO,SAASC,GACdC,EACAC,EACAC,EAAMP,EAC4B,CAClC,IAAME,EAAcK,EAAI,WAAaA,EAAI,YAAc,CAAA,EACjDN,EAAWC,EAAWC,IAAeD,EAAWC,KAAgB,CAAA,EAEtE,OAAOF,EAAQI,KAAUJ,EAAQI,GAAQC,EAAA,EAC3C,CClFO,IAAME,GAA0C,CACrD,QACA,OACA,OACA,QACA,MACA,SACA,OACF,EAGMC,GAAS,iBAGFC,GAQR,CAAA,EAQE,SAASC,GAAkBC,EAAsB,CACtD,GAAI,EAAE,YAAaC,GACjB,OAAOD,EAAA,EAGT,IAAME,EAAUD,EAAW,QACrBE,EAA4E,CAAA,EAE5EC,EAAgB,OAAO,KAAKN,EAAsB,EAGxDM,EAAc,QAAQC,GAAS,CAC7B,IAAMC,EAAwBR,GAAuBO,GACrDF,EAAaE,GAASH,EAAQG,GAC9BH,EAAQG,GAASC,CACnB,CAAC,EAED,GAAI,CACF,OAAON,EAAA,CACT,QAAA,CAEEI,EAAc,QAAQC,GAAS,CAC7BH,EAAQG,GAASF,EAAaE,EAChC,CAAC,CACH,CACF,CAEA,SAASE,IAAe,CACtBC,GAAA,EAAqB,QAAU,EACjC,CAEA,SAASC,IAAgB,CACvBD,GAAA,EAAqB,QAAU,E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A,EACxBA,EAA0B,QAGxB,CAACvH,EAAY,KAAM,CACrB+D,GAAeC,EAAM,KAAK,4BAA4ByD,oDAAqD,EAC3G,MACF,CAEAF,EAA0BnE,GACxB,CACE,KAAMpD,EAAY,KAClB,GAAAyH,EACA,WAAY,CACV,CAAC1E,GAAmC/C,EAAY,QAAU,KAAA,CAC5D,EAEF,CACE,YAAAS,EACA,aAAAC,EACA,iBAAAC,CAAA,CACF,CAEJ,EAEIV,GACF,iBAAiB,QAASuH,EAAgC,CAAE,QAAS,EAAA,CAAM,CAE/E,CAGA,IAAMI,GAA4B,mBAClC,SAASjD,GAAkB3C,EAAkC,CAC3D,OAAQA,EAAkD4F,GAC5D,CAEA,SAASpE,GAAkBxB,EAAgBqB,EAA8B,CACvEwE,EAAyB7F,EAAQ4F,GAA2BvE,CAAI,CAClE,CAGA,IAAMyE,GAAqB,IAE3B,SAAStB,GAAW9B,EAAkB7C,EAAuD,CAC3F,IAAMkG,EAAWnD,EAAWF,CAAU,EAEhC1B,EAAMC,GAAA,EAIN+E,EAAiBD,EAAS,gBAOhC,MANI,EAAA/E,EAAMgF,EAAiBF,IAMvBjG,GAA4BmB,EAAMnB,GAA4BiG,GAKpE,CCz5BI,OAAO,aACFG,GAAK,CACV,IAAK,OAAO,WACZ,YAAa,OAAO,cACpB,aAAc,CACZ,+DACA,qCACA,2BACA,6BACA,6DACA,YAEA,uCACF,EACA,aAAc,CAAQC,GAA0B,CAAC,EACjD,eAAgB,GAChB,iBAAkB,GACpB,CAAC,EAEG,eAAe,QAAU,QACpBC,GAAQ,cAAc", "names": ["DEBUG_BUILD", "GLOBAL_OBJ", "SDK_VERSION", "getMainCarrier", "getSentryCarrier", "GLOBAL_OBJ", "carrier", "__SENTRY__", "SDK_VERSION", "getGlobalSingleton", "name", "creator", "obj", "CONSOLE_LEVELS", "PREFIX", "originalConsoleMethods", "consoleSandbox", "callback", "GLOBAL_OBJ", "console", "wrappedFuncs", "wrappedLevels", "level", "originalConsoleMethod", "enable", "_getLoggerSettings", "disable", "isEnabled", "log", "args", "_maybeLog", "warn", "error", "DEBUG_BUILD", "getGlobalSingleton", "debug", "UNKNOWN_FUNCTION", "WEBPACK_ERROR_REGEXP", "STRIP_FRAME_REGEXP", "createStackParser", "parsers", "sortedParsers", "a", "b", "p", "stack", "skipFirstLines", "framesToPop", "frames", "lines", "i", "line", "cleanedLine", "parser", "frame", "stripSentryFramesAndReverse", "stackParserFromStackParserOptions", "stackParser", "localStack", "getLastStackFrame", "arr", "defaultFunctionName", "getFunctionName", "fn", "getFramesFromEvent", "event", "exception", "value", "handlers", "instrumented", "addHandler", "type", "handler", "typeHandlers", "index", "maybeInstrument", "type", "instrumentFn", "instrumented", "e", "DEBUG_BUILD", "debug", "triggerHandlers", "data", "typeHandlers", "handlers", "handler", "getFunctionName", "_oldOnErrorHandler", "addGlobalErrorInstrumentationHandler", "handler", "type", "addHandler", "maybeInstrument", "instrumentError", "GLOBAL_OBJ", "msg", "url", "line", "column", "error", "triggerHandlers", "_oldOnUnhandledRejectionHandler", "addGlobalUnhandledRejectionInstrumentationHandler", "handler", "type", "addHandler", "maybeInstrument", "instrumentUnhandledRejection", "GLOBAL_OBJ", "triggerHandlers", "objectToString", "isError", "wat", "isInstanceOf", "isBuiltin", "className", "isErrorEvent", "isDOMError", "isDOMException", "isString", "isParameterizedString", "isPrimitive", "isPlainObject", "isObjectLike", "isEvent", "isRegExp", "wat", "isBuiltin", "isThenable", "isInstanceOf", "wat", "base", "isRequest", "request", "isInstanceOf", "fill", "source", "name", "replacementFactory", "original", "wrapped", "markFunctionWrapped", "DEBUG_BUILD", "debug", "addNonEnumerableProperty", "obj", "value", "proto", "getOriginalFunction", "func", "convertToPlainObject", "value", "isError", "getOwnProperties", "isEvent", "type", "target", "currentTarget", "detail", "obj", "isObjectLike", "extractExceptionKeysForMessage", "exception", "keys", "RESOLVED_RUNNER", "withRandomSafeContext", "cb", "sym", "globalWithSymbol", "GLOBAL_OBJ", "safeMathRandom", "safeDateNow", "SENTRY_SKIP_NORMALIZATION", "SENTRY_OVERRIDE_NORMALIZATION_DEPTH", "hasSkipNormalizationHint", "value", "SENTRY_SKIP_NORMALIZATION", "getNormalizationDepthOverrideHint", "v", "SENTRY_OVERRIDE_NORMALIZATION_DEPTH", "stringifier", "setNormalizeStringifier", "newStringifier", "normalize", "input", "depth", "maxProperties", "visit", "err", "normalizeToSize", "object", "maxSize", "normalized", "jsonSize", "key", "value", "memo", "memoBuilder", "memoize", "unmemoize", "stringified", "stringifyValue", "hasSkipNormalizationHint", "overrideDepth", "getNormalizationDepthOverrideHint", "remainingDepth", "valueWithToJSON", "jsonValue", "numAdded", "visitable", "convertToPlainObject", "visitKey", "visitValue", "getFunctionName", "getConstructorName", "prototype", "utf8Length", "memoBuilder", "inner", "memoize", "obj", "unmemoize", "truncate", "str", "max", "safeJoin", "input", "delimiter", "output", "i", "value", "isPrimitive", "stringifyValue", "isMatchingPattern", "pattern", "requireExactStringMatch", "isString", "isRegExp", "stringMatchesSomePattern", "testString", "patterns", "getCrypto", "gbl", "GLOBAL_OBJ", "emptyUuid", "getRandomByte", "safeMathRandom", "uuid4", "crypto", "withRandomSafeContext", "c", "getFirstException", "event", "_b", "_a", "getEventDescription", "message", "eventId", "firstException", "addExceptionTypeValue", "value", "type", "exception", "values", "addExceptionMechanism", "newMechanism", "defaultMechanism", "currentMechanism", "mergedData", "checkOrSetAlreadyCaught", "exception", "isAlreadyCaptured", "addNonEnumerableProperty", "ONE_SECOND_IN_MS", "dateTimestampInSeconds", "safeDateNow", "createUnixTimestampInSecondsFunc", "performance", "GLOBAL_OBJ", "timeOrigin", "withRandomSafeContext", "_cachedTimestampInSeconds", "timestampInSeconds", "cachedTimeOrigin", "getBrowserTimeOrigin", "threshold", "performanceNow", "dateNow", "navigationStart", "_a", "browserPerformanceTimeOrigin", "makeSession", "context", "startingTime", "timestampInSeconds", "session", "uuid4", "sessionToJSON", "updateSession", "duration", "closeSession", "status", "merge", "initialObj", "mergeObj", "levels", "output", "key", "generateTraceId", "uuid4", "generateSpanId", "makeWeakRef", "value", "WeakRefImpl", "GLOBAL_OBJ", "derefWeakRef", "ref", "SCOPE_SPAN_FIELD", "_setSpanForScope", "scope", "span", "addNonEnumerableProperty", "makeWeakRef", "_getSpanForScope", "derefWeakRef", "DEFAULT_MAX_BREADCRUMBS", "Scope", "generateTraceId", "safeMathRandom", "newScope", "_setSpanForScope", "_getSpanForScope", "client", "lastEventId", "callback", "user", "updateSession", "conversationId", "tags", "key", "value", "newAttributes", "extras", "extra", "fingerprint", "level", "name", "context", "session", "captureContext", "scopeToMerge", "scopeInstance", "isPlainObject", "attributes", "contexts", "propagationContext", "breadcrumb", "maxBreadcrumbs", "maxCrumbs", "mergedBreadcrumb", "dateTimestampInSeconds", "truncate", "_a", "attachment", "newData", "merge", "exception", "hint", "eventId", "uuid4", "DEBUG_BUILD", "debug", "syntheticException", "message", "event", "getDefaultCurrentScope", "getGlobalSingleton", "Scope", "getDefaultIsolationScope", "isActualPromise", "p", "kChainedCopy", "chainAndCopyPromiseLike", "original", "onSuccess", "onError", "chained", "value", "err", "copyProps", "mutated", "key", "args", "AsyncContextStack", "scope", "isolationScope", "assignedScope", "Scope", "assignedIsolationScope", "callback", "maybePromiseResult", "e", "isThenable", "chainAndCopyPromiseLike", "getAsyncContextStack", "registry", "getMainCarrier", "sentry", "getSentryCarrier", "getDefaultCurrentScope", "getDefaultIsolationScope", "withScope", "withSetScope", "stack", "withIsolationScope", "getStackAsyncContextStrategy", "_isolationScope", "getAsyncContextStrategy", "carrier", "sentry", "getSentryCarrier", "getStackAsyncContextStrategy", "isAttributeObject", "maybeObj", "attributeValueToTypedAttributeValue", "rawValue", "useFallback", "value", "unit", "attributeValue", "getTypedAttributeValue", "checkedUnit", "stringValue", "_a", "serializeAttributes", "attributes", "fallback", "serializedAttributes", "key", "typedValue", "getTypedAttributeValue", "value", "primitiveType", "_externalPropagationContextProvider", "getExternalPropagationContext", "_externalPropagationContextProvider", "hasExternalPropagationContext", "getCurrentScope", "carrier", "getMainCarrier", "getAsyncContextStrategy", "getIsolationScope", "getGlobalScope", "getGlobalSingleton", "Scope", "withScope", "rest", "acs", "scope", "callback", "getClient", "getCurrentScope", "getTraceContextFromScope", "scope", "externalContext", "getExternalPropagationContext", "propagationContext", "traceId", "parentSpanId", "propagationSpanId", "traceContext", "generateSpanId", "SEMANTIC_ATTRIBUTE_SENTRY_SOURCE", "SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE", "SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE", "SEMANTIC_ATTRIBUTE_SENTRY_OP", "SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN", "SEMANTIC_ATTRIBUTE_SENTRY_STATUS_MESSAGE", "SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON", "SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT", "SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE", "SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME", "SEMANTIC_ATTRIBUTE_PROFILE_ID", "SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME", "SEMANTIC_LINK_ATTRIBUTE_LINK_TYPE", "GEN_AI_CONVERSATION_ID_ATTRIBUTE", "getSpanStatusFromHttpCode", "httpStatus", "setHttpStatus", "span", "spanStatus", "SCOPE_ON_START_SPAN_FIELD", "ISOLATION_SCOPE_ON_START_SPAN_FIELD", "OTEL_SOURCE_INFERENCE_SPAN_FIELD", "OTEL_SOURCE_EXPLICITLY_SET_SPAN_FIELD", "TRACER_PROVIDER_SPAN_FIELD", "setCapturedScopesOnSpan", "span", "scope", "isolationScope", "addNonEnumerableProperty", "makeWeakRef", "getCapturedScopesOnSpan", "spanWithScopes", "derefWeakRef", "spanShouldInferOtelSource", "span", "OTEL_SOURCE_INFERENCE_SPAN_FIELD", "markSpanSourceAsExplicit", "addNonEnumerableProperty", "OTEL_SOURCE_EXPLICITLY_SET_SPAN_FIELD", "spanIsTracerProviderSpan", "span", "TRACER_PROVIDER_SPAN_FIELD", "SENTRY_BAGGAGE_KEY_PREFIX", "MAX_BAGGAGE_STRING_LENGTH", "baggageHeaderToDynamicSamplingContext", "baggageHeader", "baggageObject", "parseBaggageHeader", "dynamicSamplingContext", "acc", "key", "value", "SENTRY_BAGGAGE_KEY_PREFIX", "nonPrefixedKey", "dynamicSamplingContextToSentryBaggageHeader", "sentryPrefixedDSC", "dscKey", "dscValue", "objectToBaggageHeader", "isString", "curr", "currBaggageObject", "baggageHeaderToObject", "baggageEntry", "eqIdx", "keyOrValue", "object", "objectKey", "objectValue", "currentIndex", "newBaggageHeader", "DEBUG_BUILD", "debug", "ORG_ID_REGEX", "DSN_REGEX", "isValidProtocol", "protocol", "dsnToString", "dsn", "withPassword", "host", "path", "pass", "port", "projectId", "publicKey", "dsnFromString", "str", "match", "consoleSandbox", "lastPath", "split", "projectMatch", "dsnFromComponents", "components", "validateDsn", "DEBUG_BUILD", "component", "debug", "extractOrgIdFromDsnHost", "extractOrgIdFromClient", "client", "options", "org_id", "makeDsn", "from", "parseSampleRate", "sampleRate", "rate", "TRACEPARENT_REGEXP", "extractTraceparentData", "traceparent", "matches", "parentSampled", "propagationContextFromHeaders", "sentryTrace", "baggage", "traceparentData", "extractTraceparentData", "dynamicSamplingContext", "baggageHeaderToDynamicSamplingContext", "generateTraceId", "safeMathRandom", "sampleRand", "getSampleRandFromTraceparentAndDsc", "traceId", "parentSpanId", "parentSampled", "generateSentryTraceHeader", "spanId", "generateSpanId", "sampled", "sampledString", "generateTraceparentHeader", "dsc", "parsedSampleRand", "parseSampleRate", "parsedSampleRate", "TRACE_FLAG_NONE", "TRACE_FLAG_SAMPLED", "hasShownSpanDropWarning", "spanToTransactionTraceContext", "span", "span_id", "trace_id", "data", "op", "parent_span_id", "status", "origin", "links", "spanToJSON", "spanToTraceContext", "spanId", "isRemote", "scope", "getCapturedScopesOnSpan", "generateSpanId", "spanToTraceHeader", "traceId", "sampled", "spanIsSampled", "generateSentryTraceHeader", "spanToTraceparentHeader", "generateTraceparentHeader", "convertSpanLinksForEnvelope", "traceFlags", "restContext", "attributes", "getStreamedSpanLinks", "spanTimeInputToSeconds", "input", "ensureTimestampInSeconds", "timestampInSeconds", "timestamp", "spanIsSentrySpan", "spanIsOpenTelemetrySdkTraceBaseSpan", "startTime", "name", "endTime", "getOtelParentSpanId", "getStatusMessage", "SEMANTIC_ATTRIBUTE_SENTRY_OP", "SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN", "spanToStreamedSpanJSON", "INTERNAL_getSegmentSpan", "getSimpleStatus", "addStatusMessageAttribute", "_a", "streamedSpanJsonToSerializedSpan", "spanJson", "serializeAttributes", "link", "castSpan", "statusMessage", "SEMANTIC_ATTRIBUTE_SENTRY_STATUS_MESSAGE", "CHILD_SPANS_FIELD", "ROOT_SPAN_FIELD", "addChildSpanToSpan", "childSpan", "rootSpan", "addNonEnumerableProperty", "removeChildSpanFromSpan", "getSpanDescendants", "resultSet", "addSpanChildren", "childSpans", "getRootSpan", "getActiveSpan", "carrier", "getMainCarrier", "acs", "getAsyncContextStrategy", "_getSpanForScope", "getCurrentScope", "showSpanDropWarning", "consoleSandbox", "errorsInstrumented", "registerSpanErrorInstrumentation", "errorCallback", "activeSpan", "getActiveSpan", "rootSpan", "getRootSpan", "message", "DEBUG_BUILD", "debug", "addGlobalErrorInstrumentationHandler", "addGlobalUnhandledRejectionInstrumentationHandler", "hasSpansEnabled", "maybeOptions", "options", "_a", "getClient", "logIgnoredSpan", "droppedSpan", "debug", "shouldIgnoreSpan", "span", "ignoreSpans", "pattern", "isStringOrRegExp", "isMatchingPattern", "DEBUG_BUILD", "hasAttributes", "nameMatches", "opMatches", "attrsMatch", "key", "valuePattern", "_matchesAttributeValue", "_a", "actual", "pat", "v", "i", "reparentChildSpans", "spans", "dropSpan", "droppedSpanParentId", "droppedSpanId", "value", "NON_RECORDING_SPAN_FIELD", "SentryNonRecordingSpan", "spanContext", "generateTraceId", "generateSpanId", "addNonEnumerableProperty", "TRACE_FLAG_NONE", "_timestamp", "_key", "_value", "_values", "_status", "_name", "_attributesOrStartTime", "_startTime", "_link", "_links", "_exception", "_time", "spanIsNonRecordingSpan", "span", "DEFAULT_ENVIRONMENT", "FROZEN_DSC_FIELD", "freezeDscOnSpan", "span", "dsc", "addNonEnumerableProperty", "getDynamicSamplingContextFromClient", "trace_id", "client", "options", "public_key", "DEFAULT_ENVIRONMENT", "extractOrgIdFromClient", "getDynamicSamplingContextFromScope", "scope", "propagationContext", "getDynamicSamplingContextFromSpan", "getClient", "rootSpan", "getRootSpan", "rootSpanJson", "spanToJSON", "rootSpanAttributes", "traceState", "rootSpanSampleRate", "_b", "_a", "SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE", "SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE", "applyLocalSampleRateToDsc", "frozenDsc", "isNonRecordingRoot", "spanIsNonRecordingSpan", "isIgnoredRoot", "hasSpansEnabled", "capturedScope", "getCapturedScopesOnSpan", "traceStateDsc", "dscOnTraceState", "baggageHeaderToDynamicSamplingContext", "source", "_c", "SEMANTIC_ATTRIBUTE_SENTRY_SOURCE", "name", "spanIsSampled", "_e", "_d", "isStreamedBeforeSendSpanCallback", "callback", "createEnvelope", "headers", "items", "addItemToEnvelope", "envelope", "newItem", "forEachEnvelopeItem", "callback", "envelopeItems", "envelopeItem", "envelopeItemType", "envelopeContainsItemType", "types", "_", "type", "encodeUTF8", "input", "carrier", "getSentryCarrier", "GLOBAL_OBJ", "serializeEnvelope", "envelope", "envHeaders", "items", "parts", "append", "next", "encodeUTF8", "item", "itemHeaders", "payload", "stringifiedPayload", "normalize", "concatBuffers", "buffers", "totalLength", "acc", "buf", "merged", "offset", "buffer", "createSpanEnvelopeItem", "spanJson", "createAttachmentEnvelopeItem", "attachment", "buffer", "encodeUTF8", "DATA_CATEGORY_OVERRIDES", "_isOverriddenType", "type", "envelopeItemTypeToDataCategory", "getSdkMetadataForEnvelopeHeader", "metadataOrEvent", "name", "version", "createEventEnvelopeHeaders", "event", "sdkInfo", "tunnel", "dsn", "dynamicSamplingContext", "_a", "safeDateNow", "dsnToString", "_enhanceEventWithSdkInfo", "event", "newSdkInfo", "eventSdkInfo", "_a", "_b", "_c", "_d", "createSessionEnvelope", "session", "dsn", "metadata", "tunnel", "sdkInfo", "getSdkMetadataForEnvelopeHeader", "envelopeHeaders", "safeDateNow", "dsnToString", "envelopeItem", "createEnvelope", "createEventEnvelope", "eventType", "createEventEnvelopeHeaders", "createSpanEnvelope", "spans", "client", "dscHasRequiredProps", "dsc", "getDynamicSamplingContextFromSpan", "headers", "beforeSendSpan", "ignoreSpans", "filteredSpans", "span", "json", "spanToJSON", "shouldIgnoreSpan", "droppedSpans", "convertToSpanJSON", "spanJson", "processedSpan", "isStreamedBeforeSendSpanCallback", "showSpanDropWarning", "items", "createSpanEnvelopeItem", "logSpanStart", "span", "DEBUG_BUILD", "description", "op", "parentSpanId", "spanToJSON", "spanId", "sampled", "spanIsSampled", "rootSpan", "getRootSpan", "isRootSpan", "header", "infoParts", "debug", "logSpanEnd", "msg", "setMeasurement", "name", "value", "unit", "activeSpan", "getActiveSpan", "rootSpan", "getRootSpan", "DEBUG_BUILD", "debug", "SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE", "SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT", "timedEventsToMeasurements", "events", "measurements", "event", "attributes", "getSegmentSpanCaptureStrategy", "getSentryCarrier", "getMainCarrier", "hasSpanStreamingEnabled", "client", "MAX_SPAN_COUNT", "SentrySpan", "spanContext", "generateTraceId", "generateSpanId", "timestampInSeconds", "SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN", "SEMANTIC_ATTRIBUTE_SENTRY_OP", "link", "links", "_exception", "_time", "spanId", "traceId", "sampled", "TRACE_FLAG_SAMPLED", "TRACE_FLAG_NONE", "key", "value", "SEMANTIC_ATTRIBUTE_SENTRY_SOURCE", "spanShouldInferOtelSource", "markSpanSourceAsExplicit", "attributes", "timeInput", "spanTimeInputToSeconds", "name", "endTimestamp", "spanIsTracerProviderSpan", "logSpanEnd", "getStatusMessage", "SEMANTIC_ATTRIBUTE_PROFILE_ID", "SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME", "timedEventsToMeasurements", "getRootSpan", "convertSpanLinksForEnvelope", "_a", "_b", "getSimpleStatus", "addStatusMessageAttribute", "getStreamedSpanLinks", "attributesOrStartTime", "startTime", "DEBUG_BUILD", "debug", "time", "isSpanTimeInput", "event", "client", "getClient", "rootSpan", "isSegmentSpan", "sendSpanEnvelope", "createSpanEnvelope", "strategy", "getSegmentSpanCaptureStrategy", "scope", "getCapturedScopesOnSpan", "getCurrentScope", "options", "hasSpanStreamingEnabled", "transactionEvent", "isFullFinishedSpan", "spanToJSON", "capturedSpanScope", "capturedSpanIsolationScope", "normalizedRequest", "spans", "descendant", "getSpanDescendants", "isStandaloneSpan", "_c", "spanJSON", "_d", "source", "SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME", "hasGenAiSpans", "span", "transaction", "spanToTransactionTraceContext", "a", "b", "getDynamicSamplingContextFromSpan", "measurements", "input", "envelope", "spanItems", "sampleSpan", "options", "samplingContext", "sampleRand", "hasSpansEnabled", "localSampleRateWasApplied", "sampleRate", "fallbackSampleRate", "parsedSampleRate", "parseSampleRate", "DEBUG_BUILD", "debug", "shouldSample", "SUPPRESS_TRACING_KEY", "startInactiveSpan", "options", "acs", "getAcs", "_startInactiveSpanImpl", "_startInactiveSpanImpl", "options", "spanArguments", "parseSentrySpanArguments", "forceTransaction", "customParentSpan", "callback", "withScope", "withActiveSpan", "scope", "getCurrentScope", "parentSpan", "getParentSpan", "client", "getClient", "startMissingRequiredParentSpan", "createChildOrRootSpan", "withActiveSpan", "span", "callback", "acs", "getAcs", "withScope", "scope", "_setSpanForScope", "isTracingSuppressed", "scope", "getCurrentScope", "acs", "getAcs", "SUPPRESS_TRACING_KEY", "startMissingRequiredParentSpan", "scope", "client", "span", "SentryNonRecordingSpan", "setCapturedScopesOnSpan", "getIsolationScope", "createChildOrRootSpan", "parentSpan", "spanArguments", "forceTransaction", "isolationScope", "hasSpansEnabled", "scopePropagationContext", "traceId", "addChildSpanToSpan", "getClient", "_shouldIgnoreStreamedSpan", "isTracingSuppressed", "ignoredSpan", "_a", "_startChildSpan", "dsc", "getDynamicSamplingContextFromSpan", "parentSpanId", "parentSampled", "spanIsSampled", "_startRootSpan", "freezeDscOnSpan", "logSpanStart", "parseSentrySpanArguments", "options", "initialCtx", "ctx", "spanTimeInputToSeconds", "getAcs", "carrier", "getMainCarrier", "getAsyncContextStrategy", "name", "mutableSpanSamplingData", "finalParentSampled", "finalAttributes", "currentPropagationContext", "_isTracingSuppressed", "sampled", "sampleRate", "localSampleRateWasApplied", "sampleSpan", "parseSampleRate", "_b", "rootSpan", "SentrySpan", "SEMANTIC_ATTRIBUTE_SENTRY_SOURCE", "SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE", "DEBUG_BUILD", "debug", "hasSpanStreamingEnabled", "spanId", "childSpan", "spanIsNonRecordingSpan", "getParentSpan", "customParentSpan", "_getSpanForScope", "getRootSpan", "_shouldIgnoreStreamedSpan", "client", "spanArguments", "ignoreSpans", "hasSpanStreamingEnabled", "shouldIgnoreSpan", "_a", "SEMANTIC_ATTRIBUTE_SENTRY_OP", "spanIsIgnored", "span", "spanIsNonRecordingSpan", "TRACING_DEFAULTS", "FINISH_REASON_HEARTBEAT_FAILED", "FINISH_REASON_IDLE_TIMEOUT", "FINISH_REASON_FINAL_TIMEOUT", "FINISH_REASON_EXTERNAL_FINISH", "startIdleSpan", "startSpanOptions", "options", "activities", "_finished", "_idleTimeoutID", "_childSpanTimeoutID", "_finishReason", "_autoFinishAllowed", "_cleanupHooks", "idleTimeout", "finalTimeout", "childSpanTimeout", "beforeSpanEnd", "trimIdleSpanEndTimestamp", "client", "getClient", "scope", "getCurrentScope", "hasSpansEnabled", "span", "SentryNonRecordingSpan", "setCapturedScopesOnSpan", "getIsolationScope", "previousActiveSpan", "getActiveSpan", "_startIdleSpan", "target", "thisArg", "args", "spanIsNonRecordingSpan", "definedEndTimestamp", "rest", "timestamp", "timestampInSeconds", "spanEndTimestamp", "spanTimeInputToSeconds", "spans", "getSpanDescendants", "child", "spanJson", "spanToJSON", "onIdleSpanEnded", "ignoreSpans", "latestSpanEndTimestamp", "acc", "current", "currentSpanJson", "shouldIgnoreSpan", "spanStartTimestamp", "endTimestamp", "_cancelIdleTimeout", "_cancelChildSpanTimeout", "_restartIdleTimeout", "_restartChildSpanTimeout", "_pushActivity", "spanId", "_popActivity", "cleanup", "_setSpanForScope", "spanJSON", "startTimestamp", "SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON", "currentStatus", "debug", "childSpans", "discardedSpans", "childSpan", "DEBUG_BUILD", "childSpanJSON", "childEndTimestamp", "childStartTimestamp", "spanStartedBeforeIdleSpanEnd", "timeoutWithMarginOfError", "spanEndedBeforeFinalTimeout", "stringifiedSpan", "removeChildSpanFromSpan", "startedSpan", "SentrySpan", "endedSpan", "spanToAllowAutoFinish", "startInactiveSpan", "applyScopeDataToEvent", "event", "data", "fingerprint", "span", "breadcrumbs", "sdkProcessingMetadata", "applyDataToEvent", "applySpanToEvent", "applyFingerprintToEvent", "applyBreadcrumbsToEvent", "applySdkMetadataToEvent", "mergeScopeData", "mergeData", "extra", "tags", "attributes", "user", "contexts", "level", "eventProcessors", "attachments", "propagationContext", "transactionName", "mergeAndOverwriteScopeData", "merge", "prop", "mergeVal", "getCombinedScopeData", "isolationScope", "currentScope", "scopeData", "getGlobalScope", "mergedBreadcrumbs", "spanToTraceContext", "getDynamicSamplingContextFromSpan", "rootSpan", "getRootSpan", "spanToJSON", "HTTP_REQUEST_HEADER_KEY_BASE", "HTTP_URL", "SENTRY_OP", "SENTRY_SEGMENT_NAME", "SENTRY_TRANSACTION", "URL_FULL", "URL_PATH", "USER_AGENT_ORIGINAL", "safeSetSpanJSONAttributes", "spanJSON", "newAttributes", "originalAttributes", "_a", "key", "value", "STATE_PENDING", "STATE_RESOLVED", "STATE_REJECTED", "resolvedSyncPromise", "value", "SyncPromise", "resolve", "rejectedSyncPromise", "reason", "_", "reject", "executor", "onfulfilled", "onrejected", "result", "e", "val", "onfinally", "isRejected", "cachedHandlers", "handler", "setResult", "state", "isThenable", "notifyEventProcessors", "processors", "event", "hint", "index", "result", "_notifyEventProcessors", "isThenable", "resolvedSyncPromise", "error", "rejectedSyncPromise", "processor", "DEBUG_BUILD", "debug", "final", "parsedStackResults", "lastSentryKeysCount", "lastNativeKeysCount", "cachedFilenameDebugIds", "getFilenameToDebugIdMap", "stackParser", "sentryDebugIdMap", "GLOBAL_OBJ", "nativeDebugIdMap", "sentryDebugIdKeys", "nativeDebugIdKeys", "processDebugIds", "debugIdKeys", "debugIdMap", "key", "debugId", "result", "parsedStack", "i", "stackFrame", "filename", "prepareEvent", "options", "event", "hint", "scope", "client", "isolationScope", "normalizeDepth", "normalizeMaxBreadth", "prepared", "uuid4", "dateTimestampInSeconds", "integrations", "i", "applyClientOptions", "applyIntegrationsMetadata", "applyDebugIds", "finalScope", "getFinalScope", "addExceptionMechanism", "clientEventProcessors", "data", "getCombinedScopeData", "attachments", "applyScopeDataToEvent", "eventProcessors", "resolvedSyncPromise", "notifyEventProcessors", "evt", "applyDebugMeta", "normalizeEvent", "environment", "release", "dist", "maxValueLength", "DEFAULT_ENVIRONMENT", "request", "truncate", "_b", "_a", "exception", "stackParser", "filenameDebugIdMap", "getFilenameToDebugIdMap", "frame", "images", "filename", "debug_id", "integrationNames", "depth", "maxBreadth", "normalized", "b", "normalize", "span", "captureContext", "Scope", "parseEventHintOrCaptureContext", "hintIsScopeOrFunction", "hintIsScopeContext", "captureContextKeys", "key", "captureException", "exception", "hint", "getCurrentScope", "parseEventHintOrCaptureContext", "captureEvent", "event", "hint", "getCurrentScope", "setUser", "user", "getIsolationScope", "isEnabled", "client", "getClient", "startSession", "context", "isolationScope", "getIsolationScope", "user", "getCombinedScopeData", "getCurrentScope", "userAgent", "GLOBAL_OBJ", "session", "makeSession", "currentSession", "updateSession", "endSession", "closeSession", "_sendSessionUpdate", "client", "getClient", "captureSession", "end", "safeUnref", "timer", "SENTRY_API_VERSION", "getBaseApiEndpoint", "dsn", "protocol", "port", "_getIngestEndpoint", "_encodedAuth", "sdkInfo", "params", "getEnvelopeEndpointWithUrlEncodedAuth", "tunnel", "installedIntegrations", "filterDuplicates", "integrations", "integrationsByName", "currentInstance", "name", "existingInstance", "getIntegrationsToSetup", "options", "defaultIntegrations", "userIntegrations", "integration", "resolvedUserIntegrations", "setupIntegrations", "client", "integrationIndex", "setupIntegration", "afterSetupIntegrations", "DEBUG_BUILD", "debug", "callback", "event", "hint", "processor", "hook", "span", "isBrowserBundle", "getSDKSource", "isNodeEnv", "isBrowserBundle", "isBrowser", "isNodeEnv", "isElectronNodeRenderer", "process", "GLOBAL_OBJ", "createLogContainerEnvelopeItem", "items", "inferUserData", "inferSetting", "isBrowser", "createLogEnvelope", "logs", "metadata", "tunnel", "dsn", "headers", "dsnToString", "createEnvelope", "_INTERNAL_flushLogsBuffer", "client", "maybeLogBuffer", "logBuffer", "_a", "_INTERNAL_getLogBuffer", "clientOptions", "envelope", "createLogEnvelope", "_getBufferMap", "getGlobalSingleton", "createMetricContainerEnvelopeItem", "items", "inferUserData", "inferSetting", "isBrowser", "createMetricEnvelope", "metrics", "metadata", "tunnel", "dsn", "headers", "dsnToString", "createEnvelope", "_INTERNAL_flushMetricsBuffer", "client", "maybeMetricBuffer", "metricBuffer", "_a", "_INTERNAL_getMetricBuffer", "clientOptions", "envelope", "createMetricEnvelope", "_getBufferMap", "getGlobalSingleton", "spanJsonToSerializedStreamedSpan", "span", "streamedSpan", "streamedSpanJsonToSerializedSpan", "extractGenAiSpansFromEvent", "event", "client", "_a", "_b", "hasSpanStreamingEnabled", "genAiSpans", "remainingSpans", "span", "_c", "spanJsonToSerializedStreamedSpan", "inferSetting", "isBrowser", "SENTRY_BUFFER_FULL_ERROR", "makePromiseBuffer", "limit", "buffer", "isReady", "remove", "task", "add", "taskProducer", "rejectedSyncPromise", "drain", "timeout", "resolvedSyncPromise", "drainPromise", "promises", "resolve", "safeUnref", "DEFAULT_RETRY_AFTER", "parseRetryAfterHeader", "header", "now", "safeDateNow", "headerDelay", "headerDate", "disabledUntil", "limits", "dataCategory", "isRateLimited", "updateRateLimits", "statusCode", "headers", "updatedRateLimits", "rateLimitHeader", "retryAfterHeader", "limit", "retryAfter", "categories", "namespaces", "delay", "category", "DEFAULT_TRANSPORT_BUFFER_SIZE", "createTransport", "options", "makeRequest", "buffer", "makePromiseBuffer", "rateLimits", "flush", "timeout", "send", "envelope", "filteredEnvelopeItems", "forEachEnvelopeItem", "item", "type", "dataCategory", "envelopeItemTypeToDataCategory", "isRateLimited", "filteredEnvelope", "createEnvelope", "recordEnvelopeLoss", "reason", "envelopeContainsItemType", "DEBUG_BUILD", "debug", "requestTask", "serializeEnvelope", "response", "updateRateLimits", "error", "result", "SENTRY_BUFFER_FULL_ERROR", "createClientReportEnvelope", "discarded_events", "dsn", "timestamp", "clientReportItem", "dateTimestampInSeconds", "createEnvelope", "getPossibleEventMessages", "event", "possibleMessages", "lastException", "convertTransactionEventToSpanJson", "event", "trace_id", "parent_span_id", "span_id", "status", "origin", "data", "op", "_b", "_a", "_c", "SEMANTIC_ATTRIBUTE_PROFILE_ID", "SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME", "convertSpanJsonToTransactionEvent", "span", "FILTERED_VALUE", "PII_HEADER_SNIPPETS", "SENSITIVE_KEY_SNIPPETS", "defaultPiiToCollectionOptions", "sendDefaultPii", "PII_HEADER_SNIPPETS", "DEFAULTS", "isCollectBehavior", "value", "resolveHttpHeaders", "httpHeaders", "base", "_a", "_b", "resolveDataCollectionOptions", "options", "defaultPiiToCollectionOptions", "dc", "_c", "_d", "_f", "_e", "_h", "_g", "_j", "_i", "_l", "_k", "_n", "_m", "_o", "_p", "_q", "ALREADY_SEEN_ERROR", "MISSING_RELEASE_FOR_SESSION_ERROR", "INTERNAL_ERROR_SYMBOL", "DO_NOT_SEND_EVENT_SYMBOL", "DEFAULT_FLUSH_INTERVAL", "_makeInternalError", "message", "_makeDoNotSendEventError", "_isInternalError", "error", "isObjectLike", "_isDoNotSendEventError", "setupWeightBasedFlushing", "client", "afterCaptureHook", "flushHook", "estimateSizeFn", "flushFn", "weight", "flushTimeout", "isTimerActive", "item", "flushInterval", "_a", "safeUnref", "Client", "options", "makePromiseBuffer", "_b", "DEFAULT_TRANSPORT_BUFFER_SIZE", "resolveDataCollectionOptions", "makeDsn", "DEBUG_BUILD", "debug", "url", "getEnvelopeEndpointWithUrlEncodedAuth", "_e", "_d", "_c", "estimateLogSizeInBytes", "_INTERNAL_flushLogsBuffer", "_h", "_g", "_f", "estimateMetricSizeInBytes", "_INTERNAL_flushMetricsBuffer", "exception", "hint", "scope", "eventId", "uuid4", "checkOrSetAlreadyCaught", "hintWithEventId", "event", "res", "level", "currentScope", "eventMessage", "isParameterizedString", "isMessage", "isPrimitive", "promisedEvent", "sdkProcessingMetadata", "capturedSpanScope", "capturedSpanIsolationScope", "dataCategory", "getDataCategoryByType", "session", "updateSession", "timeout", "transport", "clientFinished", "transportFlushed", "result", "eventProcessor", "name", "integrationName", "integration", "isAlreadyInstalled", "setupIntegration", "afterSetupIntegrations", "genAiSpanItem", "extractGenAiSpansFromEvent", "env", "createEventEnvelope", "attachment", "addItemToEnvelope", "createAttachmentEnvelopeItem", "sendResponse", "clientReleaseOption", "clientEnvironmentOption", "DEFAULT_ENVIRONMENT", "sessionAttrs", "createSessionEnvelope", "reason", "category", "count", "key", "hook", "callback", "hookCallbacks", "uniqueCallback", "args", "rest", "callbacks", "envelope", "integrations", "setupIntegrations", "crashed", "errored", "exceptions", "ex", "sessionNonTerminal", "ticked", "resolve", "isolationScope", "prepareEvent", "evt", "getTraceContextFromScope", "dynamicSamplingContext", "getDynamicSamplingContextFromScope", "getCurrentScope", "getIsolationScope", "isErrorEvent", "getPossibleEventMessages", "finalEvent", "sampleRate", "isTransaction", "isTransactionEvent", "isError", "beforeSendLabel", "parsedSampleRate", "parseSampleRate", "prepared", "processBeforeSend", "_validateBeforeSendResult", "processedEvent", "spanCount", "safeMathRandom", "spanCountBefore", "spanCountAfter", "droppedSpanCount", "transactionInfo", "source", "taskProducer", "value", "SENTRY_BUFFER_FULL_ERROR", "outcomes", "quantity", "createClientReportEnvelope", "dsnToString", "type", "beforeSendResult", "invalidValueError", "isThenable", "isPlainObject", "e", "beforeSend", "beforeSendTransaction", "ignoreSpans", "beforeSendSpan", "isStreamedBeforeSendSpanCallback", "rootSpanJson", "convertTransactionEventToSpanJson", "shouldIgnoreSpan", "processedRootSpanJson", "merge", "convertSpanJsonToTransactionEvent", "showSpanDropWarning", "processedSpans", "initialSpans", "span", "reparentChildSpans", "processedSpan", "droppedSpans", "metric", "estimateAttributesSizeInBytes", "log", "attributes", "estimatePrimitiveSizeInBytes", "initAndBind", "clientClass", "options", "DEBUG_BUILD", "debug", "consoleSandbox", "getCurrentScope", "client", "setCurrentClient", "isSensitiveKey", "lower", "denySnippets", "snippet", "shouldFilterDataKey", "key", "behavior", "additionalDenyTerms", "lowerKey", "SENSITIVE_KEY_SNIPPETS", "matchesConfiguredTerm", "term", "filterQueryParams", "queryString", "behavior", "pair", "separatorIndex", "encodedKey", "key", "shouldFilterDataKey", "FILTERED_VALUE", "filterUrlQuery", "url", "behavior", "fragmentStart", "queryEnd", "queryStart", "prefix", "query", "suffix", "filtered", "filterQueryParams", "urlQueryParamsBehavior", "client", "_b", "_a", "getClient", "filterCollectedUrl", "url", "filterUrlQuery", "filterCollectedUrlQuery", "query", "hasPrefix", "filtered", "filterQueryParams", "DEFAULT_BASE_URL", "isURLObjectRelative", "url", "parseStringToURLObject", "urlBase", "isRelative", "base", "fullUrlObject", "getSanitizedUrlStringFromUrlObject", "newUrl", "parseUrl", "url", "match", "query", "fragment", "stripUrlQueryAndFragment", "urlPath", "stripDataUrlContent", "url", "includeDataPrefix", "match", "mimeType", "isBase64", "dataStart", "dataPrefix", "data", "addAutoIpAddressToSession", "session", "_a", "applySdkMetadata", "options", "name", "names", "source", "sdk", "SDK_VERSION", "getTraceData", "options", "client", "getClient", "isEnabled", "carrier", "getMainCarrier", "acs", "getAsyncContextStrategy", "scope", "getCurrentScope", "span", "getActiveSpan", "isTwpPlaceholder", "spanIsNonRecordingSpan", "hasSpansEnabled", "hasExternalPropagationContext", "sentryTrace", "spanToTraceHeader", "scopeToTraceHeader", "dsc", "getDynamicSamplingContextFromSpan", "getDynamicSamplingContextFromScope", "baggage", "dynamicSamplingContextToSentryBaggageHeader", "TRACEPARENT_REGEXP", "debug", "traceData", "spanToTraceparentHeader", "scopeToTraceparentHeader", "traceId", "sampled", "propagationSpanId", "generateSentryTraceHeader", "generateTraceparentHeader", "DEFAULT_BREADCRUMBS", "addBreadcrumb", "breadcrumb", "hint", "client", "getClient", "isolationScope", "getIsolationScope", "beforeBreadcrumb", "maxBreadcrumbs", "mergedBreadcrumb", "dateTimestampInSeconds", "finalBreadcrumb", "consoleSandbox", "INTEGRATION_NAME", "SETUP_CLIENTS", "_functionToStringIntegration", "originalFunctionToString", "args", "originalFunction", "getOriginalFunction", "unwrappedFunction", "getClient", "client", "functionToStringIntegration", "DEFAULT_IGNORE_ERRORS", "INTEGRATION_NAME", "eventFiltersIntegration", "options", "mergedOptions", "client", "clientOptions", "_mergeOptions", "event", "_hint", "_shouldDropEvent", "inboundFiltersIntegration", "internalOptions", "_isIgnoredTransaction", "DEBUG_BUILD", "debug", "getEventDescription", "_isIgnoredError", "_isUselessError", "_isDeniedUrl", "_getEventFilterUrl", "_isAllowedUrl", "ignoreErrors", "getPossibleEventMessages", "message", "stringMatchesSomePattern", "ignoreTransactions", "name", "denyUrls", "url", "allowUrls", "_getLastValidUrl", "frames", "i", "frame", "rootException", "_b", "_a", "value", "_c", "applyAggregateErrorsToEvent", "exceptionFromErrorImplementation", "parser", "key", "limit", "event", "hint", "_a", "isError", "originalException", "aggregateExceptionsFromError", "error", "prevExceptions", "exception", "exceptionId", "newExceptions", "applyExceptionGroupFieldsForParentException", "newException", "newExceptionId", "applyExceptionGroupFieldsForChildException", "isExceptionGroup", "childError", "i", "source", "parentId", "hasSentryFetchUrlHost", "error", "isError", "_enhanceErrorWithSentryInfo", "_filter", "addConsoleInstrumentationHandler", "handler", "type", "removeHandler", "addHandler", "maybeInstrument", "instrumentConsole", "instrumentedLevels", "instrumentConsole", "GLOBAL_OBJ", "CONSOLE_LEVELS", "level", "fill", "originalConsoleMethod", "originalConsoleMethods", "args", "firstArg", "log", "isFiltered", "_filter", "stringMatchesSomePattern", "triggerHandlers", "DEBUG_BUILD", "debug", "severityLevelFromString", "level", "INTEGRATION_NAME", "_dedupeIntegration", "previousEvent", "currentEvent", "_shouldDropEvent", "DEBUG_BUILD", "debug", "dedupeIntegration", "_isSameMessageEvent", "_isSameExceptionEvent", "currentMessage", "previousMessage", "_isSameFingerprint", "_isSameStacktrace", "previousException", "_getExceptionFromEvent", "currentException", "currentFrames", "getFramesFromEvent", "previousFrames", "frameA", "frameB", "currentFingerprint", "previousFingerprint", "event", "_b", "_a", "INTEGRATION_NAME", "_conversationIdIntegration", "client", "span", "scopeData", "getCurrentScope", "isolationScopeData", "getIsolationScope", "conversationId", "op", "attributes", "name", "spanToJSON", "GEN_AI_CONVERSATION_ID_ATTRIBUTE", "conversationIdIntegration", "instrumentFetchRequest", "handlerData", "shouldCreateSpan", "shouldAttachHeaders", "spans", "spanOriginOrOptions", "method", "url", "shouldCreateSpanResult", "hasSpansEnabled", "spanId", "span", "endSpan", "_callOnRequestSpanEnd", "spanOrigin", "propagateTraceparent", "client", "getClient", "hasParent", "getActiveSpan", "shouldEmitSpan", "hasSpanStreamingEnabled", "startInactiveSpan", "getSpanStartOptions", "SentryNonRecordingSpan", "spanForTraceHeaders", "spanIsIgnored", "request", "options", "headers", "_INTERNAL_getTracingHeadersForFetchRequest", "fetchHint", "onRequestSpanEnd", "_a", "fetchOptionsObj", "traceHeaders", "getTraceData", "sentryTrace", "baggage", "traceparent", "originalHeaders", "isRequest", "isHeaders", "newHeaders", "prevBaggageHeader", "baggageHeaderHasSentryBaggageValues", "isHeadersInitTupleArray", "header", "prevBaggageHeaderWithSentryValues", "existingSentryTraceHeader", "existingTraceparentHeader", "existingBaggageHeader", "newBaggageHeaders", "headerItem", "setHttpStatus", "contentLength", "_b", "contentLengthNum", "baggageHeader", "baggageEntry", "SENTRY_BAGGAGE_KEY_PREFIX", "isInstanceOf", "item", "sanitizedUrl", "stripDataUrlContent", "getFetchSpanAttributes", "parsedUrl", "parseStringToURLObject", "getSanitizedUrlStringFromUrlObject", "attributes", "filterCollectedUrl", "SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN", "SEMANTIC_ATTRIBUTE_SENTRY_OP", "isURLObjectRelative", "ws", "Yu", "filterCollectedUrlQuery", "getBreadcrumbLogLevelFromHttpStatusCode", "statusCode", "WINDOW", "GLOBAL_OBJ", "supportsHistory", "WINDOW", "_isFetchSupported", "WINDOW", "isNativeFunction", "func", "supportsNativeFetch", "result", "doc", "sandbox", "_a", "err", "DEBUG_BUILD", "debug", "addFetchInstrumentationHandler", "handler", "skipNativeFetchCheck", "type", "removeHandler", "addHandler", "maybeInstrument", "instrumentFetch", "addFetchEndInstrumentationHandler", "streamHandler", "onFetchResolved", "supportsNativeFetch", "fill", "GLOBAL_OBJ", "originalFetch", "args", "virtualError", "method", "url", "parseFetchArgs", "handlerData", "timestampInSeconds", "getHeadersFromFetchArgs", "triggerHandlers", "response", "error", "isError", "addNonEnumerableProperty", "client", "getClient", "enhanceOption", "_a", "hostname", "resolveResponse", "res", "onFinishedResolving", "body", "responseReader", "maxFetchDurationTimeout", "readingActive", "chunkTimeout", "done", "clonedResponseForResolving", "hasProp", "obj", "prop", "isObjectLike", "getUrlFromResource", "resource", "fetchArgs", "options", "isRequest", "arg", "requestArgument", "optionsArgument", "WINDOW", "GLOBAL_OBJ", "getLocationHref", "WINDOW", "getComponentName", "elem", "maxTraverseHeight", "currentElem", "i", "WINDOW", "GLOBAL_OBJ", "ignoreOnError", "shouldIgnoreOnError", "ignoreNextOnError", "wrap", "fn", "options", "isFunction", "wrapper", "getOriginalFunction", "sentryWrapped", "args", "wrappedArguments", "arg", "ex", "withScope", "scope", "event", "addExceptionTypeValue", "addExceptionMechanism", "captureException", "property", "markFunctionWrapped", "addNonEnumerableProperty", "getHttpRequestData", "url", "getLocationHref", "referrer", "userAgent", "headers", "exceptionFromError", "stackParser", "ex", "frames", "parseStackFrames", "exception", "extractType", "extractMessage", "eventFromPlainObject", "syntheticException", "isUnhandledRejection", "client", "getClient", "normalizeDepth", "errorFromProp", "getErrorPropertyFromObject", "extra", "normalizeToSize", "event", "isEvent", "getNonErrorObjectExceptionValue", "eventFromError", "stacktrace", "skipLines", "getSkipFirstStackStringLines", "framesToPop", "getPopFirstTopFrames", "reactMinifiedRegexp", "isWebAssemblyException", "name", "message", "_enhanceErrorWithSentryInfo", "eventFromException", "hint", "attachStacktrace", "eventFromUnknownInput", "addExceptionMechanism", "resolvedSyncPromise", "eventFromMessage", "level", "eventFromString", "isErrorEvent", "isDOMError", "isDOMException", "domException", "firstException", "_b", "_a", "addExceptionTypeValue", "isError", "isPlainObject", "isParameterizedString", "__sentry_template_string__", "__sentry_template_values__", "keys", "extractExceptionKeysForMessage", "captureType", "getObjectClassName", "obj", "prototype", "BrowserClient", "Client", "options", "opts", "applyDefaultOptions", "sdkSource", "WINDOW", "getSDKSource", "applySdkMetadata", "userInfo", "_a", "sendClientReports", "addAutoIpAddressToSession", "exception", "hint", "eventFromException", "message", "level", "eventFromMessage", "event", "currentScope", "isolationScope", "optionsArg", "DEBUG_BUILD", "WINDOW", "GLOBAL_OBJ", "getRating", "value", "thresholds", "bindReporter", "callback", "metric", "reportAllChanges", "prevValue", "delta", "forceReport", "getNavigationEntry", "checkResponseStart", "navigationEntry", "_b", "_a", "WINDOW", "getActivationStart", "navEntry", "getNavigationEntry", "_a", "addPageListener", "type", "listener", "options", "WINDOW", "removePageListener", "firstHiddenTime", "onHiddenFunctions", "initHiddenTime", "_a", "WINDOW", "_b", "onVisibilityUpdate", "event", "isPageHidden", "onHiddenFunction", "removePageListener", "getVisibilityWatcher", "activationStart", "getActivationStart", "firstVisibilityStateHiddenTime", "e", "addPageListener", "cb", "generateUniqueID", "initMetric", "name", "value", "navEntry", "getNavigationEntry", "navigationType", "_a", "WINDOW", "getActivationStart", "_b", "generateUniqueID", "instanceMap", "initUnique", "identityObj", "ClassObj", "LayoutShiftManager", "entry", "_a", "firstSessionEntry", "lastSessionEntry", "observe", "type", "callback", "opts", "po", "list", "runOnce", "cb", "called", "whenActivated", "callback", "_a", "WINDOW", "FCPThresholds", "onFCP", "onReport", "opts", "whenActivated", "visibilityWatcher", "getVisibilityWatcher", "metric", "initMetric", "report", "po", "observe", "entries", "entry", "getActivationStart", "bindReporter", "CLSThresholds", "onCLS", "onReport", "opts", "onFCP", "runOnce", "metric", "initMetric", "report", "visibilityWatcher", "getVisibilityWatcher", "layoutShiftManager", "initUnique", "LayoutShiftManager", "handleEntries", "entries", "entry", "po", "observe", "bindReporter", "_b", "_a", "WINDOW", "interactionCountEstimate", "minKnownInteractionId", "maxKnownInteractionId", "updateEstimate", "entries", "e", "po", "getInteractionCount", "initInteractionCountPolyfill", "observe", "MAX_INTERACTIONS_TO_CONSIDER", "prevInteractionCount", "getInteractionCountForNavigation", "getInteractionCount", "InteractionManager", "candidateInteractionIndex", "entry", "_a", "minLongestInteraction", "interaction", "b", "removedInteractions", "_b", "whenIdleOrHidden", "cb", "rIC", "WINDOW", "_a", "runOnce", "addPageListener", "removePageListener", "INPThresholds", "DEFAULT_DURATION_THRESHOLD", "onINP", "onReport", "opts", "visibilityWatcher", "getVisibilityWatcher", "whenActivated", "initInteractionCountPolyfill", "metric", "initMetric", "report", "interactionManager", "initUnique", "InteractionManager", "handleEntries", "entries", "whenIdleOrHidden", "entry", "inp", "po", "observe", "_a", "bindReporter", "LCPEntryManager", "entry", "_a", "LCPThresholds", "onLCP", "onReport", "opts", "whenActivated", "visibilityWatcher", "getVisibilityWatcher", "metric", "initMetric", "report", "lcpEntryManager", "initUnique", "LCPEntryManager", "handleEntries", "entries", "entry", "getActivationStart", "po", "observe", "bindReporter", "stopListening", "runOnce", "stopListeningWrapper", "event", "whenIdleOrHidden", "removePageListener", "type", "addPageListener", "TTFBThresholds", "whenReady", "callback", "_a", "WINDOW", "whenActivated", "_b", "onTTFB", "onReport", "opts", "metric", "initMetric", "report", "bindReporter", "navigationEntry", "getNavigationEntry", "getActivationStart", "handlers", "instrumented", "_previousCls", "_previousLcp", "_previousTtfb", "_previousInp", "addClsInstrumentationHandler", "callback", "stopOnCallback", "addMetricObserver", "instrumentCls", "addLcpInstrumentationHandler", "instrumentLcp", "addTtfbInstrumentationHandler", "instrumentTtfb", "addInpInstrumentationHandler", "instrumentInp", "addPerformanceInstrumentationHandler", "type", "addHandler", "instrumentPerformanceObserver", "getCleanupCallback", "triggerHandlers", "data", "typeHandlers", "handler", "e", "DEBUG_BUILD", "debug", "getFunctionName", "onCLS", "metric", "onLCP", "onTTFB", "onINP", "instrumentFn", "previousValue", "stopListening", "options", "observe", "entries", "index", "isPerformanceEventTiming", "entry", "DEFAULT_MAX_STRING_LENGTH", "accessors", "_safeRead", "el", "prop", "arg", "fn", "val", "htmlTreeAsString", "elem", "options", "currentElem", "MAX_TRAVERSE_HEIGHT", "out", "height", "len", "separator", "sepLength", "nextStr", "keyAttrs", "maxStringLength", "_htmlElementAsString", "tagName", "dataset", "keyAttrPairs", "keyAttr", "keyAttrPair", "id", "className", "isString", "classes", "c", "k", "attr", "onHidden", "cb", "onHiddenOrPageHide", "event", "_a", "WINDOW", "addPageListener", "isMeasurementValue", "value", "startAndEndSpan", "parentSpan", "startTimeInSeconds", "endTime", "ctx", "parentStartTime", "spanToJSON", "withActiveSpan", "span", "startInactiveSpan", "startStandaloneWebVitalSpan", "options", "client", "getClient", "name", "transaction", "passedAttributes", "startTime", "release", "environment", "userInfo", "replay", "replayId", "scope", "getCurrentScope", "user", "userDisplay", "profileId", "attributes", "_a", "WINDOW", "getBrowserPerformanceAPI", "msToSec", "time", "extractNetworkProtocol", "nextHopProtocol", "version", "_name", "char", "supportsWebVital", "entryType", "listenForWebVitalReportEvents", "collectorCallback", "pageloadSpan", "collected", "_runCollectorCallbackOnce", "event", "onHidden", "unsubscribeStartNavigation", "_", "unsubscribeAfterStartPageLoadSpan", "trackClsAsStandaloneSpan", "client", "standaloneCLsValue", "standaloneClsEntry", "supportsWebVital", "cleanupClsHandler", "addClsInstrumentationHandler", "metric", "entry", "listenForWebVitalReportEvents", "reportEvent", "pageloadSpanId", "_sendStandaloneClsSpan", "clsValue", "DEBUG_BUILD", "debug", "startTime", "msToSec", "browserPerformanceTimeOrigin", "timestampInSeconds", "routeName", "getCurrentScope", "name", "htmlTreeAsString", "_a", "attributes", "SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN", "SEMANTIC_ATTRIBUTE_SENTRY_OP", "SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME", "source", "index", "span", "startStandaloneWebVitalSpan", "SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT", "SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE", "MAX_PLAUSIBLE_LCP_DURATION", "isValidLcpMetric", "lcpValue", "trackLcpAsStandaloneSpan", "client", "standaloneLcpValue", "standaloneLcpEntry", "supportsWebVital", "cleanupLcpHandler", "addLcpInstrumentationHandler", "metric", "entry", "listenForWebVitalReportEvents", "reportEvent", "pageloadSpanId", "_sendStandaloneLcpSpan", "DEBUG_BUILD", "debug", "startTime", "msToSec", "browserPerformanceTimeOrigin", "routeName", "getCurrentScope", "name", "htmlTreeAsString", "attributes", "SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN", "SEMANTIC_ATTRIBUTE_SENTRY_OP", "SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME", "span", "startStandaloneWebVitalSpan", "SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT", "SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE", "getAbsoluteTime", "time", "browserPerformanceTimeOrigin", "resourceTimingToSpanAttributes", "resourceTiming", "timingSpanData", "name", "version", "extractNetworkProtocol", "_a", "getBrowserPerformanceAPI", "dropUndefinedKeysFromObject", "attrs", "value", "MAX_INT_AS_BYTES", "_performanceCursor", "_measurements", "_lcpEntry", "_clsEntry", "startTrackingWebVitals", "recordClsStandaloneSpans", "recordLcpStandaloneSpans", "client", "performance", "getBrowserPerformanceAPI", "browserPerformanceTimeOrigin", "WINDOW", "lcpCleanupCallback", "trackLcpAsStandaloneSpan", "_trackLCP", "clsCleanupCallback", "trackClsAsStandaloneSpan", "_trackCLS", "ttfbCleanupCallback", "_trackTtfb", "fpFcpCleanupCallback", "_trackFpFcp", "startTrackingLongTasks", "addPerformanceInstrumentationHandler", "entries", "parent", "getActiveSpan", "parentOp", "parentStartTimestamp", "spanToJSON", "entry", "startTime", "msToSec", "duration", "startAndEndSpan", "SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN", "startTrackingLongAnimationFrames", "list", "attributes", "initialScript", "invoker", "invokerType", "sourceURL", "sourceFunctionName", "sourceCharPosition", "startTrackingInteractions", "spanOptions", "htmlTreeAsString", "componentName", "getComponentName", "addClsInstrumentationHandler", "metric", "addLcpInstrumentationHandler", "isValidLcpMetric", "addTtfbInstrumentationHandler", "firstHidden", "getVisibilityWatcher", "shouldRecord", "addPerformanceEntries", "span", "options", "origin", "spanStreamingEnabled", "ignorePerformanceApiSpans", "ignoreResourceSpans", "timeOrigin", "performanceEntries", "op", "transactionStartTime", "_addNavigationSpans", "_addMeasureSpans", "_addResourceSpans", "_trackNavigator", "addWebVitalsToSpan", "_a", "resetWebVitalState", "recordClsOnPageloadSpan", "recordLcpOnPageloadSpan", "_addTtfbRequestTimeToMeasurements", "setAttr", "shortWebVitalName", "value", "customAttrName", "attrKey", "DEBUG_BUILD", "debug", "measurementName", "measurement", "setMeasurement", "_setWebVitalAttributes", "getActivationStart", "isReact19MeasureEntry", "stringMatchesSomePattern", "navEntry", "getNavigationEntry", "requestTime", "measureStartTimestamp", "startTimeStamp", "measureEndTimestamp", "_addDetailToSpanAttributes", "performanceMeasure", "detail", "key", "isPrimitive", "event", "_addPerformanceNavigationTiming", "_addRequest", "name", "eventEnd", "_getEndPropertyNameForNavigationTiming", "end", "start", "requestStartTimestamp", "responseEndTimestamp", "responseStartTimestamp", "resourceUrl", "ignoredResourceSpanOps", "parsedUrl", "parseUrl", "Yu", "filterCollectedUrl", "_setResourceRequestAttributes", "attributesWithResourceTiming", "resourceTimingToSpanAttributes", "startTimestamp", "endTimestamp", "navigator", "connection", "isMeasurementValue", "source", "index", "properties", "entryKey", "attributeKey", "entryVal", "responseStart", "requestStart", "LAST_INTERACTIONS", "INTERACTIONS_SPAN_MAP", "ELEMENT_NAME_TIMESTAMP_MAP", "MAX_PLAUSIBLE_INP_DURATION", "startTrackingINP", "getBrowserPerformanceAPI", "browserPerformanceTimeOrigin", "inpCallback", "_trackINP", "INP_ENTRY_MAP", "addInpInstrumentationHandler", "_onInp", "metric", "duration", "msToSec", "entry", "interactionId", "interactionType", "startTime", "activeSpan", "getActiveSpan", "rootSpan", "getRootSpan", "cachedInteractionContext", "spanToUse", "routeName", "spanToJSON", "getCurrentScope", "name", "htmlTreeAsString", "attributes", "SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN", "SEMANTIC_ATTRIBUTE_SENTRY_OP", "SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME", "span", "startStandaloneWebVitalSpan", "SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT", "SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE", "getCachedInteractionContext", "registerInpInteractionListener", "interactionEvents", "isBrowser", "eventType", "WINDOW", "captureElementFromEvent", "event", "target", "elementName", "timestamp", "firstKey", "resolveElementNameFromEntry", "offset", "nearbyName", "handleEntries", "entries", "activeRootSpan", "isPerformanceEventTiming", "last", "addPerformanceInstrumentationHandler", "_emitWebVitalSpan", "options", "name", "op", "origin", "metricName", "value", "passedAttributes", "parentSpan", "reportEvent", "startTime", "endTime", "routeName", "getCurrentScope", "attributes", "SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN", "SEMANTIC_ATTRIBUTE_SENTRY_OP", "SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME", "Xc", "Lc", "_a", "WINDOW", "_b", "spanToStreamedSpanJSON", "span", "startInactiveSpan", "trackLcpAsSpan", "client", "lcpValue", "lcpEntry", "supportsWebVital", "cleanupLcpHandler", "addLcpInstrumentationHandler", "metric", "entry", "isValidLcpMetric", "listenForWebVitalReportEvents", "_", "pageloadSpan", "_sendLcpSpan", "DEBUG_BUILD", "debug", "performanceTimeOrigin", "browserPerformanceTimeOrigin", "timeOrigin", "msToSec", "htmlTreeAsString", "trackClsAsSpan", "clsValue", "clsEntry", "cleanupClsHandler", "addClsInstrumentationHandler", "_sendClsSpan", "timestampInSeconds", "source", "index", "trackInpAsSpan", "getBrowserPerformanceAPI", "addInpInstrumentationHandler", "MAX_PLAUSIBLE_INP_DURATION", "e", "INP_ENTRY_MAP", "_sendInpSpan", "inpValue", "duration", "interactionType", "cachedContext", "getCachedInteractionContext", "activeSpan", "getActiveSpan", "rootSpan", "getRootSpan", "spanToUse", "DEBOUNCE_DURATION", "debounceTimerID", "lastCapturedEventType", "lastCapturedEventTargetId", "addClickKeypressInstrumentationHandler", "handler", "type", "addHandler", "maybeInstrument", "instrumentDOM", "WINDOW", "triggerDOMHandler", "triggerHandlers", "globalDOMEventHandler", "makeDOMEventHandler", "target", "proto", "_a", "_b", "fill", "originalAddEventListener", "listener", "options", "handlers", "handlerForType", "originalRemoveEventListener", "isSimilarToLastCapturedEvent", "event", "shouldSkipDOMEvent", "eventType", "globalListener", "getEventTarget", "addNonEnumerableProperty", "uuid4", "name", "lastHref", "addHistoryInstrumentationHandler", "handler", "type", "addHandler", "maybeInstrument", "instrumentHistory", "WINDOW", "to", "from", "triggerHandlers", "supportsHistory", "historyReplacementFunction", "originalHistoryFunction", "args", "url", "getAbsoluteUrl", "fill", "urlOrPath", "cachedImplementations", "getNativeImplementation", "name", "cached", "impl", "WINDOW", "isNativeFunction", "document", "sandbox", "contentWindow", "e", "DEBUG_BUILD", "debug", "clearCachedImplementation", "SENTRY_XHR_DATA_KEY", "addXhrInstrumentationHandler", "handler", "type", "addHandler", "maybeInstrument", "instrumentXHR", "WINDOW", "xhrproto", "originalOpen", "xhrOpenThisArg", "xhrOpenArgArray", "virtualError", "startTimestamp", "timestampInSeconds", "method", "isString", "url", "parseXhrUrlArg", "onreadystatechangeHandler", "xhrInfo", "handlerData", "triggerHandlers", "originalOnreadystatechange", "onreadystatechangeThisArg", "onreadystatechangeArgArray", "originalSetRequestHeader", "setRequestHeaderThisArg", "setRequestHeaderArgArray", "header", "value", "originalSend", "sendThisArg", "sendArgArray", "sentryXhrData", "parseXhrResponseHeaders", "xhr", "headers", "error", "DEBUG_BUILD", "debug", "acc", "line", "key", "value", "isElement", "wat", "DEFAULT_BROWSER_TRANSPORT_BUFFER_SIZE", "makeFetchTransport", "options", "nativeFetch", "getNativeImplementation", "pendingBodySize", "pendingCount", "makeRequest", "request", "requestSize", "requestOptions", "response", "e", "clearCachedImplementation", "createTransport", "makePromiseBuffer", "DEBUG_BUILD", "CHROME_PRIORITY", "GECKO_PRIORITY", "createFrame", "filename", "func", "lineno", "colno", "frame", "UNKNOWN_FUNCTION", "chromeRegexNoFnName", "chromeRegex", "chromeEvalRegex", "chromeDataUriRegex", "chromeStackParserFn", "line", "dataUriMatch", "noFnParts", "col", "parts", "_a", "subMatch", "extractSafariExtensionDetails", "chromeStackLineParser", "CHROME_PRIORITY", "geckoREgex", "geckoEvalRegex", "gecko", "geckoStackLineParser", "defaultStackLineParsers", "chromeStackLineParser", "geckoStackLineParser", "defaultStackParser", "createStackParser", "extractSafariExtensionDetails", "func", "filename", "isSafariExtension", "isSafariWebExtension", "UNKNOWN_FUNCTION", "MAX_ALLOWED_STRING_LENGTH", "INTEGRATION_NAME", "_breadcrumbsIntegration", "options", "_options", "client", "addConsoleInstrumentationHandler", "_getConsoleBreadcrumbHandler", "addClickKeypressInstrumentationHandler", "_getDomBreadcrumbHandler", "addXhrInstrumentationHandler", "_getXhrBreadcrumbHandler", "addFetchInstrumentationHandler", "_getFetchBreadcrumbHandler", "addHistoryInstrumentationHandler", "_getHistoryBreadcrumbHandler", "_getSentryBreadcrumbHandler", "breadcrumbsIntegration", "event", "getClient", "addBreadcrumb", "getEventDescription", "dom", "handlerData", "target", "componentName", "keyAttrs", "maxStringLength", "DEBUG_BUILD", "debug", "element", "_isEvent", "htmlTreeAsString", "getComponentName", "breadcrumb", "severityLevelFromString", "safeJoin", "startTimestamp", "endTimestamp", "sentryXhrData", "SENTRY_XHR_DATA_KEY", "method", "url", "status_code", "body", "data", "hint", "getBreadcrumbLogLevelFromHttpStatusCode", "response", "from", "to", "parsedLoc", "parseUrl", "WINDOW", "parsedFrom", "parsedTo", "DEFAULT_EVENT_TARGET", "INTEGRATION_NAME", "_browserApiErrorsIntegration", "options", "_options", "fill", "WINDOW", "_wrapTimeFunction", "_wrapRAF", "_wrapXHR", "eventTargetOption", "target", "_wrapEventTarget", "browserApiErrorsIntegration", "original", "args", "originalCallback", "wrap", "getFunctionName", "callback", "originalSend", "xhr", "prop", "wrapOptions", "originalFunction", "getOriginalFunction", "integrationOptions", "proto", "_a", "_b", "eventName", "fn", "isEventListenerObject", "unregisterOriginalCallback", "originalRemoveEventListener", "originalEventHandler", "obj", "browserSessionIntegration", "options", "lifecycle", "_a", "WINDOW", "DEBUG_BUILD", "debug", "startSession", "initialSessionSent", "whenIdleOrHidden", "captureSession", "isolationScope", "getIsolationScope", "previousUser", "scope", "maybeNewUser", "addHistoryInstrumentationHandler", "from", "to", "INTEGRATION_NAME", "_cultureContextIntegration", "event", "culture", "getCultureContext", "_a", "span", "safeSetSpanJSONAttributes", "cultureContextIntegration", "intl", "WINDOW", "options", "INTEGRATION_NAME", "_globalHandlersIntegration", "options", "_options", "client", "_installGlobalOnErrorHandler", "globalHandlerLog", "_installGlobalOnUnhandledRejectionHandler", "globalHandlersIntegration", "addGlobalErrorInstrumentationHandler", "data", "stackParser", "attachStacktrace", "getOptions", "getClient", "shouldIgnoreOnError", "msg", "url", "line", "column", "error", "event", "_enhanceEventWithInitialFrame", "eventFromUnknownInput", "captureEvent", "addGlobalUnhandledRejectionInstrumentationHandler", "e", "_getUnhandledRejectionError", "isPrimitive", "_eventFromRejectionWithPrimitive", "reason", "lineno", "colno", "ev", "ev0", "ev0s", "ev0sf", "_a", "getFilenameFromUrl", "getLocationHref", "UNKNOWN_FUNCTION", "type", "DEBUG_BUILD", "debug", "isString", "stripDataUrlContent", "httpContextIntegration", "event", "WINDOW", "reqData", "getHttpRequestData", "headers", "_a", "span", "safeSetSpanJSONAttributes", "Qu", "Yu", "Sc", "filterCollectedUrl", "ts", "DEFAULT_KEY", "DEFAULT_LIMIT", "INTEGRATION_NAME", "_linkedErrorsIntegration", "options", "limit", "key", "event", "hint", "client", "applyAggregateErrorsToEvent", "exceptionFromError", "linkedErrorsIntegration", "HTML_ELEMENT_CONSTRUCTOR_NAME_REGEX", "normalizeStringifyValue", "value", "isElement", "objName", "getConstructorName", "htmlTreeAsString", "prototype", "checkAndWarnIfIsEmbeddedBrowserExtension", "_isEmbeddedBrowserExtension", "DEBUG_BUILD", "consoleSandbox", "WINDOW", "_window", "extensionObject", "_a", "href", "getLocationHref", "getDefaultIntegrations", "_options", "inboundFiltersIntegration", "functionToStringIntegration", "conversationIdIntegration", "browserApiErrorsIntegration", "breadcrumbsIntegration", "globalHandlersIntegration", "linkedErrorsIntegration", "dedupeIntegration", "httpContextIntegration", "cultureContextIntegration", "browserSessionIntegration", "init", "options", "shouldDisableBecauseIsBrowserExtenstion", "checkAndWarnIfIsEmbeddedBrowserExtension", "defaultIntegrations", "clientOptions", "stackParserFromStackParserOptions", "defaultStackParser", "getIntegrationsToSetup", "makeFetchTransport", "setNormalizeStringifier", "normalizeStringifyValue", "initAndBind", "BrowserClient", "baggageHeaderHasSentryValues", "baggageHeader", "value", "getFullURL", "url", "WINDOW", "isPerformanceResourceTiming", "entry", "createHeadersSafely", "headers", "defaultRequestInstrumentationOptions", "instrumentOutgoingRequests", "client", "_options", "traceFetch", "traceXHR", "shouldCreateSpanForRequest", "enableHTTPTimings", "tracePropagationTargets", "onRequestSpanStart", "onRequestSpanEnd", "shouldCreateSpan", "_", "shouldAttachHeadersWithTargets", "url", "shouldAttachHeaders", "spans", "propagateTraceparent", "addFetchInstrumentationHandler", "handlerData", "createdSpan", "instrumentFetchRequest", "fullUrl", "getFullURL", "host", "parseUrl", "sanitizedFullUrl", "stripDataUrlContent", "ws", "filterCollectedUrl", "Yu", "addHTTPTimings", "addXhrInstrumentationHandler", "xhrCallback", "createHeadersSafely", "_a", "HTTP_TIMING_WAIT_MS", "span", "spanToJSON", "onEntryFound", "unsubscribePerformanceObsever", "hasSpanStreamingEnabled", "originalEnd", "endTimestamp", "capturedEndTimestamp", "timestampInSeconds", "isEnded", "endSpanAndCleanup", "fallbackTimeout", "addPerformanceInstrumentationHandler", "entries", "entry", "isPerformanceResourceTiming", "resourceTimingToSpanAttributes", "targetUrl", "href", "getLocationHref", "resolvedUrl", "currentOrigin", "isSameOriginRequest", "stringMatchesSomePattern", "isRelativeSameOriginRequest", "xhr", "sentryXhrData", "SENTRY_XHR_DATA_KEY", "method", "shouldCreateSpanResult", "hasSpansEnabled", "spanId", "setHttpStatus", "parseXhrResponseHeaders", "parsedUrl", "urlForSpanName", "stripUrlQueryAndFragment", "getClient", "hasParent", "getActiveSpan", "shouldEmitSpan", "startInactiveSpan", "SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN", "SEMANTIC_ATTRIBUTE_SENTRY_OP", "filterCollectedUrlQuery", "SentryNonRecordingSpan", "spanForTraceHeaders", "spanIsIgnored", "addTracingHeadersToXhrRequest", "sentryTrace", "baggage", "traceparent", "getTraceData", "setHeaderOnXhr", "sentryTraceHeader", "sentryBaggageHeader", "traceparentHeader", "originalHeaders", "originalBaggageHeader", "baggageHeaderHasSentryValues", "responseToStreamSpan", "responseToFallbackTimeout", "STREAM_RESOLVE_FALLBACK_MS", "STREAMING_CONTENT_TYPES", "fetchStreamPerformanceIntegration", "addFetchEndInstrumentationHandler", "handlerData", "streamSpan", "fallbackTimeout", "addFetchInstrumentationHandler", "contentType", "_a", "_b", "t", "url", "_c", "method", "_d", "parsedUrl", "parseStringToURLObject", "sanitizedUrl", "stripDataUrlContent", "getSanitizedUrlStringFromUrlObject", "startInactiveSpan", "filterCollectedUrl", "SEMANTIC_ATTRIBUTE_SENTRY_OP", "SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN", "WEB_VITALS_INTEGRATION_NAME", "webVitalsIntegration", "options", "ignored", "_a", "client", "spanStreamingEnabled", "hasSpanStreamingEnabled", "enableStandaloneClsSpans", "enableStandaloneLcpSpans", "recordClsStandaloneSpans", "recordLcpStandaloneSpans", "finalizeWebVitals", "startTrackingWebVitals", "pageloadSpans", "span", "addWebVitalsToSpan", "trackLcpAsSpan", "trackClsAsSpan", "trackInpAsSpan", "startTrackingINP", "registerInpInteractionListener", "registerBackgroundTabDetection", "WINDOW", "activeSpan", "getActiveSpan", "rootSpan", "getRootSpan", "cancelledStatus", "op", "status", "spanToJSON", "DEBUG_BUILD", "debug", "PREVIOUS_TRACE_MAX_DURATION", "PREVIOUS_TRACE_KEY", "PREVIOUS_TRACE_TMP_SPAN_ATTRIBUTE", "linkTraces", "client", "linkPreviousTrace", "consistentTraceSampling", "useSessionStorage", "inMemoryPreviousTraceInfo", "getPreviousTraceFromSessionStorage", "span", "getRootSpan", "oldPropagationContext", "getCurrentScope", "addPreviousTraceSpanLink", "storePreviousTraceInSessionStorage", "isFirstTraceOnPageload", "mutableSamplingContextData", "scope", "currentPropagationContext", "spanContextSampled", "SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE", "previousTraceInfo", "spanJson", "spanToJSON", "getSampleRate", "oldSampleRate", "_c", "_a", "SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE", "_b", "updatedPreviousTraceInfo", "previousTraceSpanCtx", "DEBUG_BUILD", "debug", "SEMANTIC_LINK_ATTRIBUTE_LINK_TYPE", "WINDOW", "e", "ctx", "BROWSER_TRACING_INTEGRATION_ID", "BOT_USER_AGENT_RE", "isBotUserAgent", "nav", "WINDOW", "DEFAULT_BROWSER_TRACING_OPTIONS", "TRACING_DEFAULTS", "defaultRequestInstrumentationOptions", "browserTracingIntegration", "options", "consoleSandbox", "latestRoute", "optionalWindowDocument", "enableInp", "enableLongTask", "enableLongAnimationFrame", "enableInteractions", "enableStandaloneClsSpans", "enableStandaloneLcpSpans", "beforeStartSpan", "idleTimeout", "finalTimeout", "childSpanTimeout", "markBackgroundSpan", "traceFetch", "traceXHR", "trackFetchStreamPerformance", "shouldCreateSpanForRequest", "enableHTTPTimings", "ignoreResourceSpans", "ignorePerformanceApiSpans", "instrumentPageLoad", "instrumentNavigation", "detectRedirects", "linkPreviousTrace", "consistentTraceSampling", "enableReportPageLoaded", "onRequestSpanStart", "onRequestSpanEnd", "_isBot", "lastInteractionTimestamp", "_pageloadSpan", "_createRouteSpan", "client", "startSpanOptions", "makeActive", "url", "isPageloadSpan", "initialSpanName", "finalStartSpanOptions", "urlObject", "parseStringToURLObject", "getLocationHref", "attributes", "Vu", "isURLObjectRelative", "Yu", "filterCollectedUrl", "SEMANTIC_ATTRIBUTE_SENTRY_SOURCE", "now", "dateTimestampInSeconds", "startInactiveSpan", "idleSpan", "startIdleSpan", "span", "addPerformanceEntries", "hasSpanStreamingEnabled", "setActiveIdleSpan", "scope", "getCurrentScope", "oldPropagationContext", "spanIsSampled", "getDynamicSamplingContextFromSpan", "emitFinish", "DEBUG_BUILD", "debug", "registerSpanErrorInstrumentation", "GLOBAL_OBJ", "_a", "startTrackingLongAnimationFrames", "startTrackingLongTasks", "startTrackingInteractions", "interactionHandler", "timestampInSeconds", "maybeEndActiveSpan", "activeSpan", "getActiveIdleSpan", "spanToJSON", "SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON", "navigationOptions", "getClient", "generateTraceId", "hasSpansEnabled", "generateSpanId", "traceOptions", "sentryTrace", "getMetaContent", "getServerTiming", "baggage", "propagationContext", "propagationContextFromHeaders", "getHttpRequestData", "WEB_VITALS_INTEGRATION_NAME", "webVitalsIntegration", "startingUrl", "linkTraces", "origin", "browserPerformanceTimeOrigin", "startBrowserTracingPageLoadSpan", "SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN", "addHistoryInstrumentationHandler", "to", "from", "parsed", "navigationIsRedirect", "isRedirect", "startBrowserTracingNavigationSpan", "registerBackgroundTabDetection", "registerInteractionListener", "instrumentOutgoingRequests", "fetchStreamPerformanceIntegration", "spanOptions", "pageloadSpan", "metaName", "metaTag", "name", "navigation", "_b", "entry", "_c", "inflightInteractionSpan", "registerInteractionTransaction", "op", "activeIdleSpan", "currentRootSpanOp", "ACTIVE_IDLE_SPAN_PROPERTY", "addNonEnumerableProperty", "REDIRECT_THRESHOLD", "spanData", "startTimestamp", "init", "browserTracingIntegration", "setUser"] }