{ "version": 3, "sources": ["../../../node_modules/@rails/actioncable/src/adapters.js", "../../../node_modules/@rails/actioncable/src/logger.js", "../../../node_modules/@rails/actioncable/src/connection_monitor.js", "../../../node_modules/@rails/actioncable/src/internal.js", "../../../node_modules/@rails/actioncable/src/connection.js", "../../../node_modules/@rails/actioncable/src/subscription.js", "../../../node_modules/@rails/actioncable/src/subscription_guarantor.js", "../../../node_modules/@rails/actioncable/src/subscriptions.js", "../../../node_modules/@rails/actioncable/src/consumer.js", "../../../node_modules/@rails/actioncable/src/index.js", "../../../node_modules/numeral/numeral.js", "../../../node_modules/moment/moment.js", "../../../node_modules/@sentry/core/src/debug-build.ts", "../../../node_modules/@sentry/core/src/utils/worldwide.ts", "../../../node_modules/@sentry/core/src/utils/version.ts", "../../../node_modules/@sentry/core/src/carrier.ts", "../../../node_modules/@sentry/core/src/utils/debug-logger.ts", "../../../node_modules/@sentry/core/src/utils/stacktrace.ts", "../../../node_modules/@sentry/core/src/instrument/handlers.ts", "../../../node_modules/@sentry/core/src/instrument/globalError.ts", "../../../node_modules/@sentry/core/src/instrument/globalUnhandledRejection.ts", "../../../node_modules/@sentry/core/src/utils/is.ts", "../../../node_modules/@sentry/core/src/utils/object.ts", "../../../node_modules/@sentry/core/src/utils/randomSafeContext.ts", "../../../node_modules/@sentry/core/src/utils/normalizationHints.ts", "../../../node_modules/@sentry/core/src/utils/normalize.ts", "../../../node_modules/@sentry/core/src/utils/string.ts", "../../../node_modules/@sentry/core/src/utils/misc.ts", "../../../node_modules/@sentry/core/src/utils/time.ts", "../../../node_modules/@sentry/core/src/session.ts", "../../../node_modules/@sentry/core/src/utils/merge.ts", "../../../node_modules/@sentry/core/src/utils/propagationContext.ts", "../../../node_modules/@sentry/core/src/scope.ts", "../../../node_modules/@sentry/core/src/defaultScopes.ts", "../../../node_modules/@sentry/core/src/tracing/constants.ts", "../../../node_modules/@sentry/core/src/utils/chain-and-copy-promiselike.ts", "../../../node_modules/@sentry/core/src/asyncContext/stackStrategy.ts", "../../../node_modules/@sentry/core/src/asyncContext/index.ts", "../../../node_modules/@sentry/core/src/attributes.ts", "../../../node_modules/@sentry/core/src/currentScopes.ts", "../../../node_modules/@sentry/core/src/types/spanStatus.ts", "../../../node_modules/@sentry/conventions/src/attributes.ts", "../../../node_modules/@sentry/core/src/tracing/spanstatus.ts", "../../../node_modules/@sentry/core/src/utils/weakRef.ts", "../../../node_modules/@sentry/core/src/tracing/utils.ts", "../../../node_modules/@sentry/core/src/utils/baggage.ts", "../../../node_modules/@sentry/core/src/utils/dsn.ts", "../../../node_modules/@sentry/core/src/utils/parseSampleRate.ts", "../../../node_modules/@sentry/core/src/utils/spanOnScope.ts", "../../../node_modules/@sentry/core/src/utils/spanUtils.ts", "../../../node_modules/@sentry/core/src/utils/hasSpansEnabled.ts", "../../../node_modules/@sentry/core/src/utils/should-ignore-span.ts", "../../../node_modules/@sentry/core/src/integration.ts", "../../../node_modules/@sentry/core/src/constants.ts", "../../../node_modules/@sentry/core/src/tracing/sentryNonRecordingSpan.ts", "../../../node_modules/@sentry/core/src/tracing/dynamicSamplingContext.ts", "../../../node_modules/@sentry/core/src/utils/scopeData.ts", "../../../node_modules/@sentry/core/src/utils/safeCallback.ts", "../../../node_modules/@sentry/core/src/tracing/spans/beforeSendSpan.ts", "../../../node_modules/@sentry/core/src/tracing/spans/spanJsonToStreamedSpan.ts", "../../../node_modules/@sentry/core/src/tracing/spans/captureSpan.ts", "../../../node_modules/@sentry/core/src/tracing/spans/hasSpanStreamingEnabled.ts", "../../../node_modules/@sentry/core/src/utils/timer.ts", "../../../node_modules/@sentry/core/src/utils/envelope.ts", "../../../node_modules/@sentry/core/src/utils/env.ts", "../../../node_modules/@sentry/core/src/utils/node.ts", "../../../node_modules/@sentry/core/src/utils/isBrowser.ts", "../../../node_modules/@sentry/core/src/tracing/spans/envelope.ts", "../../../node_modules/@sentry/core/src/utils/errorSpanAttribution.ts", "../../../node_modules/@sentry/core/src/envelope.ts", "../../../node_modules/@sentry/core/src/utils/data-collection/filtering-snippets.ts", "../../../node_modules/@sentry/core/src/utils/data-collection/filterKeyValueData.ts", "../../../node_modules/@sentry/core/src/utils/syncpromise.ts", "../../../node_modules/@sentry/core/src/eventProcessors.ts", "../../../node_modules/@sentry/core/src/utils/debug-ids.ts", "../../../node_modules/@sentry/core/src/utils/eventUtils.ts", "../../../node_modules/@sentry/core/src/utils/prepareEvent.ts", "../../../node_modules/@sentry/core/src/exports.ts", "../../../node_modules/@sentry/core/src/api.ts", "../../../node_modules/@sentry/core/src/tracing/spans/extractGenAiSpans.ts", "../../../node_modules/@sentry/core/src/utils/promisebuffer.ts", "../../../node_modules/@sentry/core/src/utils/ratelimit.ts", "../../../node_modules/@sentry/core/src/transports/base.ts", "../../../node_modules/@sentry/core/src/utils/clientreport.ts", "../../../node_modules/@sentry/core/src/utils/transactionEvent.ts", "../../../node_modules/@sentry/core/src/utils/warnAboutIgnoredTransactionOptions.ts", "../../../node_modules/@sentry/core/src/utils/data-collection/resolveDataCollectionOptions.ts", "../../../node_modules/@sentry/core/src/client.ts", "../../../node_modules/@sentry/core/src/sdk.ts", "../../../node_modules/@sentry/core/src/utils/data-collection/filterQueryParams.ts", "../../../node_modules/@sentry/core/src/utils/data-collection/filterUrlQuery.ts", "../../../node_modules/@sentry/core/src/utils/data-collection/filterCollectedUrl.ts", "../../../node_modules/@sentry/core/src/utils/url.ts", "../../../node_modules/@sentry/core/src/utils/hash.ts", "../../../node_modules/@sentry/core/src/utils/tunnel.ts", "../../../node_modules/@sentry/core/src/utils/ipAddress.ts", "../../../node_modules/@sentry/core/src/utils/sdkMetadata.ts", "../../../node_modules/@sentry/core/src/utils/meta.ts", "../../../node_modules/@sentry/core/src/breadcrumbs.ts", "../../../node_modules/@sentry/core/src/integrations/functiontostring.ts", "../../../node_modules/@sentry/core/src/integrations/eventFilters.ts", "../../../node_modules/@sentry/core/src/utils/aggregate-errors.ts", "../../../node_modules/@sentry/core/src/utils/eventbuilder.ts", "../../../node_modules/@sentry/core/src/instrument/console.ts", "../../../node_modules/@sentry/core/src/utils/severity.ts", "../../../node_modules/@sentry/core/src/integrations/dedupe.ts", "../../../node_modules/@sentry/core/src/integrations/console.ts", "../../../node_modules/@sentry/core/src/integrations/conversationId.ts", "../../../node_modules/@sentry/core/src/utils/supports.ts", "../../../node_modules/@sentry/core/src/instrument/fetch.ts", "../../../node_modules/@sentry/core/src/utils/breadcrumb-log-level.ts", "../../../node_modules/@sentry/browser-utils/src/debug-build.ts", "../../../node_modules/@sentry/browser-utils/src/types.ts", "../../../node_modules/@sentry/browser-utils/src/htmlTreeAsString.ts", "../../../node_modules/@sentry/browser-utils/src/web-vitals/utils.ts", "../../../node_modules/@sentry/browser-utils/src/component-name.ts", "../../../node_modules/@sentry/browser-utils/src/getLocationHref.ts", "../../../node_modules/@sentry/browser-utils/src/routing.ts", "../../../node_modules/@sentry/browser-utils/src/instrumentation/dom.ts", "../../../node_modules/@sentry/browser-utils/src/instrumentation/history.ts", "../../../node_modules/@sentry/browser-utils/src/getNativeImplementation.ts", "../../../node_modules/@sentry/browser-utils/src/instrumentation/xhr.ts", "../../../node_modules/@sentry/browser-utils/src/is.ts", "../../../node_modules/@sentry/browser/src/helpers.ts", "../../../node_modules/@sentry/browser/src/eventbuilder.ts", "../../../node_modules/@sentry/browser/src/debug-build.ts", "../../../node_modules/@sentry/browser/src/utils/managedTunnel.ts", "../../../node_modules/@sentry/browser/src/client.ts", "../../../node_modules/@sentry/browser/src/transports/fetch.ts", "../../../node_modules/@sentry/browser/src/stack-parsers.ts", "../../../node_modules/@sentry/browser/src/integrations/breadcrumbs.ts", "../../../node_modules/@sentry/browser/src/integrations/browserapierrors.ts", "../../../node_modules/@sentry/browser/src/integrations/browsersession.ts", "../../../node_modules/@sentry/browser/src/integrations/culturecontext.ts", "../../../node_modules/@sentry/browser/src/integrations/globalhandlers.ts", "../../../node_modules/@sentry/browser/src/integrations/httpcontext.ts", "../../../node_modules/@sentry/browser/src/integrations/linkederrors.ts", "../../../node_modules/@sentry/browser/src/normalizeStringifyValue.ts", "../../../node_modules/@sentry/browser/src/utils/detectBrowserExtension.ts", "../../../node_modules/@sentry/browser/src/sdk.ts", "../../../node_modules/@rails/ujs/app/assets/javascripts/rails-ujs.esm.js", "../../../node_modules/@hotwired/turbo/dist/turbo.es2017-esm.js", "../../../node_modules/@hotwired/turbo-rails/app/javascript/turbo/cable.js", "../../../node_modules/@hotwired/turbo-rails/app/javascript/turbo/snakeize.js", "../../../node_modules/@hotwired/turbo-rails/app/javascript/turbo/cable_stream_source_element.js", "../../../node_modules/@hotwired/turbo-rails/app/javascript/turbo/fetch_requests.js", "../../../node_modules/@hotwired/turbo-rails/app/javascript/turbo/index.js", "../../../node_modules/@hotwired/stimulus/dist/stimulus.js", "../../javascript/controllers/application.js", "../../javascript/controllers/account_form_controller.js", "../../javascript/controllers/address_form_controller.js", "../../javascript/controllers/alerts_controller.js", "../../javascript/controllers/cart_controller.js", "../../../node_modules/stimulus-use/dist/index.js", "../../javascript/controllers/cart_item_controller.js", "../../javascript/controllers/clickable_list_controller.js", "../../javascript/controllers/dropdown_controller.js", "../../javascript/controllers/email_controller.js", "../../javascript/controllers/fingerprint_controller.js", "../../javascript/controllers/filter_controller.js", "../../javascript/controllers/filter_search_controller.js", "../../javascript/controllers/filter_tags_controller.js", "../../javascript/controllers/filters_controller.js", "../../javascript/controllers/google_analytics_controller.js", "../../javascript/controllers/home_filters_controller.js", "../../javascript/controllers/mobile_filter_controller.js", "../../javascript/controllers/modal_controller.js", "../../javascript/controllers/nav_bar_controller.js", "../../javascript/controllers/new_cart_item_modal_controller.js", "../../javascript/controllers/order_controller.js", "../../javascript/controllers/order_summary_controller.js", "../../javascript/controllers/password_visibility_controller.js", "../../javascript/controllers/photo_viewer_controller.js", "../../javascript/controllers/photo_viewer_link_controller.js", "../../javascript/controllers/pricelist_controller.js", "../../javascript/controllers/price_range_controller.js", "../../javascript/controllers/producer_pagination_controller.js", "../../javascript/controllers/product_controller.js", "../../javascript/controllers/product_details_pagination_controller.js", "../../javascript/controllers/ratings_notes_controller.js", "../../javascript/controllers/recaptcha_v3_controller.js", "../../javascript/controllers/recommendations_modal_controller.js", "../../javascript/controllers/recommendations_pagination_controller.js", "../../javascript/controllers/scrolling_controller.js", "../../javascript/controllers/banner_controller.js", "../../javascript/controllers/search_controller.js", "../../javascript/controllers/self_pickup_controller.js", "../../javascript/controllers/slideshow_controller.js", "../../javascript/controllers/sort_controller.js", "../../javascript/controllers/terms_controller.js", "../../javascript/controllers/text_expander_controller.js", "../../javascript/controllers/tooltip_controller.js", "../../javascript/controllers/index.js", "../../javascript/application.js"], "sourcesContent": ["export default {\n logger: typeof console !== \"undefined\" ? console : undefined,\n WebSocket: typeof WebSocket !== \"undefined\" ? WebSocket : undefined,\n}\n", "import adapters from \"./adapters\"\n\n// The logger is disabled by default. You can enable it with:\n//\n// ActionCable.logger.enabled = true\n//\n// Example:\n//\n// import * as ActionCable from '@rails/actioncable'\n//\n// ActionCable.logger.enabled = true\n// ActionCable.logger.log('Connection Established.')\n//\n\nexport default {\n log(...messages) {\n if (this.enabled) {\n messages.push(Date.now())\n adapters.logger.log(\"[ActionCable]\", ...messages)\n }\n },\n}\n", "import logger from \"./logger\"\n\n// Responsible for ensuring the cable connection is in good health by validating the heartbeat pings sent from the server, and attempting\n// revival reconnections if things go astray. Internal class, not intended for direct user manipulation.\n\nconst now = () => new Date().getTime()\n\nconst secondsSince = time => (now() - time) / 1000\n\nclass ConnectionMonitor {\n constructor(connection) {\n this.visibilityDidChange = this.visibilityDidChange.bind(this)\n this.connection = connection\n this.reconnectAttempts = 0\n }\n\n start() {\n if (!this.isRunning()) {\n this.startedAt = now()\n delete this.stoppedAt\n this.startPolling()\n addEventListener(\"visibilitychange\", this.visibilityDidChange)\n logger.log(`ConnectionMonitor started. stale threshold = ${this.constructor.staleThreshold} s`)\n }\n }\n\n stop() {\n if (this.isRunning()) {\n this.stoppedAt = now()\n this.stopPolling()\n removeEventListener(\"visibilitychange\", this.visibilityDidChange)\n logger.log(\"ConnectionMonitor stopped\")\n }\n }\n\n isRunning() {\n return this.startedAt && !this.stoppedAt\n }\n\n recordMessage() {\n this.pingedAt = now()\n }\n\n recordConnect() {\n this.reconnectAttempts = 0\n delete this.disconnectedAt\n logger.log(\"ConnectionMonitor recorded connect\")\n }\n\n recordDisconnect() {\n this.disconnectedAt = now()\n logger.log(\"ConnectionMonitor recorded disconnect\")\n }\n\n // Private\n\n startPolling() {\n this.stopPolling()\n this.poll()\n }\n\n stopPolling() {\n clearTimeout(this.pollTimeout)\n }\n\n poll() {\n this.pollTimeout = setTimeout(() => {\n this.reconnectIfStale()\n this.poll()\n }\n , this.getPollInterval())\n }\n\n getPollInterval() {\n const { staleThreshold, reconnectionBackoffRate } = this.constructor\n const backoff = Math.pow(1 + reconnectionBackoffRate, Math.min(this.reconnectAttempts, 10))\n const jitterMax = this.reconnectAttempts === 0 ? 1.0 : reconnectionBackoffRate\n const jitter = jitterMax * Math.random()\n return staleThreshold * 1000 * backoff * (1 + jitter)\n }\n\n reconnectIfStale() {\n if (this.connectionIsStale()) {\n logger.log(`ConnectionMonitor detected stale connection. reconnectAttempts = ${this.reconnectAttempts}, time stale = ${secondsSince(this.refreshedAt)} s, stale threshold = ${this.constructor.staleThreshold} s`)\n this.reconnectAttempts++\n if (this.disconnectedRecently()) {\n logger.log(`ConnectionMonitor skipping reopening recent disconnect. time disconnected = ${secondsSince(this.disconnectedAt)} s`)\n } else {\n logger.log(\"ConnectionMonitor reopening\")\n this.connection.reopen()\n }\n }\n }\n\n get refreshedAt() {\n return this.pingedAt ? this.pingedAt : this.startedAt\n }\n\n connectionIsStale() {\n return secondsSince(this.refreshedAt) > this.constructor.staleThreshold\n }\n\n disconnectedRecently() {\n return this.disconnectedAt && (secondsSince(this.disconnectedAt) < this.constructor.staleThreshold)\n }\n\n visibilityDidChange() {\n if (document.visibilityState === \"visible\") {\n setTimeout(() => {\n if (this.connectionIsStale() || !this.connection.isOpen()) {\n logger.log(`ConnectionMonitor reopening stale connection on visibilitychange. visibilityState = ${document.visibilityState}`)\n this.connection.reopen()\n }\n }\n , 200)\n }\n }\n\n}\n\nConnectionMonitor.staleThreshold = 6 // Server::Connections::BEAT_INTERVAL * 2 (missed two pings)\nConnectionMonitor.reconnectionBackoffRate = 0.15\n\nexport default ConnectionMonitor\n", "export default {\n \"message_types\": {\n \"welcome\": \"welcome\",\n \"disconnect\": \"disconnect\",\n \"ping\": \"ping\",\n \"confirmation\": \"confirm_subscription\",\n \"rejection\": \"reject_subscription\"\n },\n \"disconnect_reasons\": {\n \"unauthorized\": \"unauthorized\",\n \"invalid_request\": \"invalid_request\",\n \"server_restart\": \"server_restart\",\n \"remote\": \"remote\"\n },\n \"default_mount_path\": \"/cable\",\n \"protocols\": [\n \"actioncable-v1-json\",\n \"actioncable-unsupported\"\n ]\n}\n", "import adapters from \"./adapters\"\nimport ConnectionMonitor from \"./connection_monitor\"\nimport INTERNAL from \"./internal\"\nimport logger from \"./logger\"\n\n// Encapsulate the cable connection held by the consumer. This is an internal class not intended for direct user manipulation.\n\nconst {message_types, protocols} = INTERNAL\nconst supportedProtocols = protocols.slice(0, protocols.length - 1)\n\nconst indexOf = [].indexOf\n\nclass Connection {\n constructor(consumer) {\n this.open = this.open.bind(this)\n this.consumer = consumer\n this.subscriptions = this.consumer.subscriptions\n this.monitor = new ConnectionMonitor(this)\n this.disconnected = true\n }\n\n send(data) {\n if (this.isOpen()) {\n this.webSocket.send(JSON.stringify(data))\n return true\n } else {\n return false\n }\n }\n\n open() {\n if (this.isActive()) {\n logger.log(`Attempted to open WebSocket, but existing socket is ${this.getState()}`)\n return false\n } else {\n const socketProtocols = [...protocols, ...this.consumer.subprotocols || []]\n logger.log(`Opening WebSocket, current state is ${this.getState()}, subprotocols: ${socketProtocols}`)\n if (this.webSocket) { this.uninstallEventHandlers() }\n this.webSocket = new adapters.WebSocket(this.consumer.url, socketProtocols)\n this.installEventHandlers()\n this.monitor.start()\n return true\n }\n }\n\n close({allowReconnect} = {allowReconnect: true}) {\n if (!allowReconnect) { this.monitor.stop() }\n // Avoid closing websockets in a \"connecting\" state due to Safari 15.1+ bug. See: https://github.com/rails/rails/issues/43835#issuecomment-1002288478\n if (this.isOpen()) {\n return this.webSocket.close()\n }\n }\n\n reopen() {\n logger.log(`Reopening WebSocket, current state is ${this.getState()}`)\n if (this.isActive()) {\n try {\n return this.close()\n } catch (error) {\n logger.log(\"Failed to reopen WebSocket\", error)\n }\n finally {\n logger.log(`Reopening WebSocket in ${this.constructor.reopenDelay}ms`)\n setTimeout(this.open, this.constructor.reopenDelay)\n }\n } else {\n return this.open()\n }\n }\n\n getProtocol() {\n if (this.webSocket) {\n return this.webSocket.protocol\n }\n }\n\n isOpen() {\n return this.isState(\"open\")\n }\n\n isActive() {\n return this.isState(\"open\", \"connecting\")\n }\n\n triedToReconnect() {\n return this.monitor.reconnectAttempts > 0\n }\n\n // Private\n\n isProtocolSupported() {\n return indexOf.call(supportedProtocols, this.getProtocol()) >= 0\n }\n\n isState(...states) {\n return indexOf.call(states, this.getState()) >= 0\n }\n\n getState() {\n if (this.webSocket) {\n for (let state in adapters.WebSocket) {\n if (adapters.WebSocket[state] === this.webSocket.readyState) {\n return state.toLowerCase()\n }\n }\n }\n return null\n }\n\n installEventHandlers() {\n for (let eventName in this.events) {\n const handler = this.events[eventName].bind(this)\n this.webSocket[`on${eventName}`] = handler\n }\n }\n\n uninstallEventHandlers() {\n for (let eventName in this.events) {\n this.webSocket[`on${eventName}`] = function() {}\n }\n }\n\n}\n\nConnection.reopenDelay = 500\n\nConnection.prototype.events = {\n message(event) {\n if (!this.isProtocolSupported()) { return }\n const {identifier, message, reason, reconnect, type} = JSON.parse(event.data)\n this.monitor.recordMessage()\n switch (type) {\n case message_types.welcome:\n if (this.triedToReconnect()) {\n this.reconnectAttempted = true\n }\n this.monitor.recordConnect()\n return this.subscriptions.reload()\n case message_types.disconnect:\n logger.log(`Disconnecting. Reason: ${reason}`)\n return this.close({allowReconnect: reconnect})\n case message_types.ping:\n return null\n case message_types.confirmation:\n this.subscriptions.confirmSubscription(identifier)\n if (this.reconnectAttempted) {\n this.reconnectAttempted = false\n return this.subscriptions.notify(identifier, \"connected\", {reconnected: true})\n } else {\n return this.subscriptions.notify(identifier, \"connected\", {reconnected: false})\n }\n case message_types.rejection:\n return this.subscriptions.reject(identifier)\n default:\n return this.subscriptions.notify(identifier, \"received\", message)\n }\n },\n\n open() {\n logger.log(`WebSocket onopen event, using '${this.getProtocol()}' subprotocol`)\n this.disconnected = false\n if (!this.isProtocolSupported()) {\n logger.log(\"Protocol is unsupported. Stopping monitor and disconnecting.\")\n return this.close({allowReconnect: false})\n }\n },\n\n close(event) {\n logger.log(\"WebSocket onclose event\")\n if (this.disconnected) { return }\n this.disconnected = true\n this.monitor.recordDisconnect()\n return this.subscriptions.notifyAll(\"disconnected\", {willAttemptReconnect: this.monitor.isRunning()})\n },\n\n error() {\n logger.log(\"WebSocket onerror event\")\n }\n}\n\nexport default Connection\n", "// A new subscription is created through the ActionCable.Subscriptions instance available on the consumer.\n// It provides a number of callbacks and a method for calling remote procedure calls on the corresponding\n// Channel instance on the server side.\n//\n// An example demonstrates the basic functionality:\n//\n// App.appearance = App.cable.subscriptions.create(\"AppearanceChannel\", {\n// connected() {\n// // Called once the subscription has been successfully completed\n// },\n//\n// disconnected({ willAttemptReconnect: boolean }) {\n// // Called when the client has disconnected with the server.\n// // The object will have an `willAttemptReconnect` property which\n// // says whether the client has the intention of attempting\n// // to reconnect.\n// },\n//\n// appear() {\n// this.perform('appear', {appearing_on: this.appearingOn()})\n// },\n//\n// away() {\n// this.perform('away')\n// },\n//\n// appearingOn() {\n// $('main').data('appearing-on')\n// }\n// })\n//\n// The methods #appear and #away forward their intent to the remote AppearanceChannel instance on the server\n// by calling the `perform` method with the first parameter being the action (which maps to AppearanceChannel#appear/away).\n// The second parameter is a hash that'll get JSON encoded and made available on the server in the data parameter.\n//\n// This is how the server component would look:\n//\n// class AppearanceChannel < ApplicationActionCable::Channel\n// def subscribed\n// current_user.appear\n// end\n//\n// def unsubscribed\n// current_user.disappear\n// end\n//\n// def appear(data)\n// current_user.appear on: data['appearing_on']\n// end\n//\n// def away\n// current_user.away\n// end\n// end\n//\n// The \"AppearanceChannel\" name is automatically mapped between the client-side subscription creation and the server-side Ruby class name.\n// The AppearanceChannel#appear/away public methods are exposed automatically to client-side invocation through the perform method.\n\nconst extend = function(object, properties) {\n if (properties != null) {\n for (let key in properties) {\n const value = properties[key]\n object[key] = value\n }\n }\n return object\n}\n\nexport default class Subscription {\n constructor(consumer, params = {}, mixin) {\n this.consumer = consumer\n this.identifier = JSON.stringify(params)\n extend(this, mixin)\n }\n\n // Perform a channel action with the optional data passed as an attribute\n perform(action, data = {}) {\n data.action = action\n return this.send(data)\n }\n\n send(data) {\n return this.consumer.send({command: \"message\", identifier: this.identifier, data: JSON.stringify(data)})\n }\n\n unsubscribe() {\n return this.consumer.subscriptions.remove(this)\n }\n}\n", "import logger from \"./logger\"\n\n// Responsible for ensuring channel subscribe command is confirmed, retrying until confirmation is received.\n// Internal class, not intended for direct user manipulation.\n\nclass SubscriptionGuarantor {\n constructor(subscriptions) {\n this.subscriptions = subscriptions\n this.pendingSubscriptions = []\n }\n\n guarantee(subscription) {\n if(this.pendingSubscriptions.indexOf(subscription) == -1){ \n logger.log(`SubscriptionGuarantor guaranteeing ${subscription.identifier}`)\n this.pendingSubscriptions.push(subscription) \n }\n else {\n logger.log(`SubscriptionGuarantor already guaranteeing ${subscription.identifier}`)\n }\n this.startGuaranteeing()\n }\n\n forget(subscription) {\n logger.log(`SubscriptionGuarantor forgetting ${subscription.identifier}`)\n this.pendingSubscriptions = (this.pendingSubscriptions.filter((s) => s !== subscription))\n }\n\n startGuaranteeing() {\n this.stopGuaranteeing()\n this.retrySubscribing()\n }\n \n stopGuaranteeing() {\n clearTimeout(this.retryTimeout)\n }\n\n retrySubscribing() {\n this.retryTimeout = setTimeout(() => {\n if (this.subscriptions && typeof(this.subscriptions.subscribe) === \"function\") {\n this.pendingSubscriptions.map((subscription) => {\n logger.log(`SubscriptionGuarantor resubscribing ${subscription.identifier}`)\n this.subscriptions.subscribe(subscription)\n })\n }\n }\n , 500)\n }\n}\n\nexport default SubscriptionGuarantor", "import logger from \"./logger\"\nimport Subscription from \"./subscription\"\nimport SubscriptionGuarantor from \"./subscription_guarantor\"\n\n// Collection class for creating (and internally managing) channel subscriptions.\n// The only method intended to be triggered by the user is ActionCable.Subscriptions#create,\n// and it should be called through the consumer like so:\n//\n// App = {}\n// App.cable = ActionCable.createConsumer(\"ws://example.com/accounts/1\")\n// App.appearance = App.cable.subscriptions.create(\"AppearanceChannel\")\n//\n// For more details on how you'd configure an actual channel subscription, see ActionCable.Subscription.\n\nexport default class Subscriptions {\n constructor(consumer) {\n this.consumer = consumer\n this.guarantor = new SubscriptionGuarantor(this)\n this.subscriptions = []\n }\n\n create(channelName, mixin) {\n const channel = channelName\n const params = typeof channel === \"object\" ? channel : {channel}\n const subscription = new Subscription(this.consumer, params, mixin)\n return this.add(subscription)\n }\n\n // Private\n\n add(subscription) {\n this.subscriptions.push(subscription)\n this.consumer.ensureActiveConnection()\n this.notify(subscription, \"initialized\")\n this.subscribe(subscription)\n return subscription\n }\n\n remove(subscription) {\n this.forget(subscription)\n if (!this.findAll(subscription.identifier).length) {\n this.sendCommand(subscription, \"unsubscribe\")\n }\n return subscription\n }\n\n reject(identifier) {\n return this.findAll(identifier).map((subscription) => {\n this.forget(subscription)\n this.notify(subscription, \"rejected\")\n return subscription\n })\n }\n\n forget(subscription) {\n this.guarantor.forget(subscription)\n this.subscriptions = (this.subscriptions.filter((s) => s !== subscription))\n return subscription\n }\n\n findAll(identifier) {\n return this.subscriptions.filter((s) => s.identifier === identifier)\n }\n\n reload() {\n return this.subscriptions.map((subscription) =>\n this.subscribe(subscription))\n }\n\n notifyAll(callbackName, ...args) {\n return this.subscriptions.map((subscription) =>\n this.notify(subscription, callbackName, ...args))\n }\n\n notify(subscription, callbackName, ...args) {\n let subscriptions\n if (typeof subscription === \"string\") {\n subscriptions = this.findAll(subscription)\n } else {\n subscriptions = [subscription]\n }\n\n return subscriptions.map((subscription) =>\n (typeof subscription[callbackName] === \"function\" ? subscription[callbackName](...args) : undefined))\n }\n\n subscribe(subscription) {\n if (this.sendCommand(subscription, \"subscribe\")) {\n this.guarantor.guarantee(subscription)\n }\n }\n\n confirmSubscription(identifier) {\n logger.log(`Subscription confirmed ${identifier}`)\n this.findAll(identifier).map((subscription) =>\n this.guarantor.forget(subscription))\n }\n\n sendCommand(subscription, command) {\n const {identifier} = subscription\n return this.consumer.send({command, identifier})\n }\n}\n", "import Connection from \"./connection\"\nimport Subscriptions from \"./subscriptions\"\n\n// The ActionCable.Consumer establishes the connection to a server-side Ruby Connection object. Once established,\n// the ActionCable.ConnectionMonitor will ensure that its properly maintained through heartbeats and checking for stale updates.\n// The Consumer instance is also the gateway to establishing subscriptions to desired channels through the #createSubscription\n// method.\n//\n// The following example shows how this can be set up:\n//\n// App = {}\n// App.cable = ActionCable.createConsumer(\"ws://example.com/accounts/1\")\n// App.appearance = App.cable.subscriptions.create(\"AppearanceChannel\")\n//\n// For more details on how you'd configure an actual channel subscription, see ActionCable.Subscription.\n//\n// When a consumer is created, it automatically connects with the server.\n//\n// To disconnect from the server, call\n//\n// App.cable.disconnect()\n//\n// and to restart the connection:\n//\n// App.cable.connect()\n//\n// Any channel subscriptions which existed prior to disconnecting will\n// automatically resubscribe.\n\nexport default class Consumer {\n constructor(url) {\n this._url = url\n this.subscriptions = new Subscriptions(this)\n this.connection = new Connection(this)\n this.subprotocols = []\n }\n\n get url() {\n return createWebSocketURL(this._url)\n }\n\n send(data) {\n return this.connection.send(data)\n }\n\n connect() {\n return this.connection.open()\n }\n\n disconnect() {\n return this.connection.close({allowReconnect: false})\n }\n\n ensureActiveConnection() {\n if (!this.connection.isActive()) {\n return this.connection.open()\n }\n }\n\n addSubProtocol(subprotocol) {\n this.subprotocols = [...this.subprotocols, subprotocol]\n }\n}\n\nexport function createWebSocketURL(url) {\n if (typeof url === \"function\") {\n url = url()\n }\n\n if (url && !/^wss?:/i.test(url)) {\n const a = document.createElement(\"a\")\n a.href = url\n // Fix populating Location properties in IE. Otherwise, protocol will be blank.\n a.href = a.href // eslint-disable-line\n a.protocol = a.protocol.replace(\"http\", \"ws\")\n return a.href\n } else {\n return url\n }\n}\n", "import adapters from \"./adapters\"\nimport Connection from \"./connection\"\nimport ConnectionMonitor from \"./connection_monitor\"\nimport Consumer, { createWebSocketURL } from \"./consumer\"\nimport INTERNAL from \"./internal\"\nimport logger from \"./logger\"\nimport Subscription from \"./subscription\"\nimport SubscriptionGuarantor from \"./subscription_guarantor\"\nimport Subscriptions from \"./subscriptions\"\n\nexport {\n Connection,\n ConnectionMonitor,\n Consumer,\n INTERNAL,\n Subscription,\n Subscriptions,\n SubscriptionGuarantor,\n adapters,\n createWebSocketURL,\n logger,\n}\n\nexport function createConsumer(url = getConfig(\"url\") || INTERNAL.default_mount_path) {\n return new Consumer(url)\n}\n\nexport function getConfig(name) {\n const element = document.head.querySelector(`meta[name='action-cable-${name}']`)\n if (element) {\n return element.getAttribute(\"content\")\n }\n}\n", "/*! @preserve\n * numeral.js\n * version : 2.0.6\n * author : Adam Draper\n * license : MIT\n * http://adamwdraper.github.com/Numeral-js/\n */\n\n(function (global, factory) {\n if (typeof define === 'function' && define.amd) {\n define(factory);\n } else if (typeof module === 'object' && module.exports) {\n module.exports = factory();\n } else {\n global.numeral = factory();\n }\n}(this, function () {\n /************************************\n Variables\n ************************************/\n\n var numeral,\n _,\n VERSION = '2.0.6',\n formats = {},\n locales = {},\n defaults = {\n currentLocale: 'en',\n zeroFormat: null,\n nullFormat: null,\n defaultFormat: '0,0',\n scalePercentBy100: true\n },\n options = {\n currentLocale: defaults.currentLocale,\n zeroFormat: defaults.zeroFormat,\n nullFormat: defaults.nullFormat,\n defaultFormat: defaults.defaultFormat,\n scalePercentBy100: defaults.scalePercentBy100\n };\n\n\n /************************************\n Constructors\n ************************************/\n\n // Numeral prototype object\n function Numeral(input, number) {\n this._input = input;\n\n this._value = number;\n }\n\n numeral = function(input) {\n var value,\n kind,\n unformatFunction,\n regexp;\n\n if (numeral.isNumeral(input)) {\n value = input.value();\n } else if (input === 0 || typeof input === 'undefined') {\n value = 0;\n } else if (input === null || _.isNaN(input)) {\n value = null;\n } else if (typeof input === 'string') {\n if (options.zeroFormat && input === options.zeroFormat) {\n value = 0;\n } else if (options.nullFormat && input === options.nullFormat || !input.replace(/[^0-9]+/g, '').length) {\n value = null;\n } else {\n for (kind in formats) {\n regexp = typeof formats[kind].regexps.unformat === 'function' ? formats[kind].regexps.unformat() : formats[kind].regexps.unformat;\n\n if (regexp && input.match(regexp)) {\n unformatFunction = formats[kind].unformat;\n\n break;\n }\n }\n\n unformatFunction = unformatFunction || numeral._.stringToNumber;\n\n value = unformatFunction(input);\n }\n } else {\n value = Number(input)|| null;\n }\n\n return new Numeral(input, value);\n };\n\n // version number\n numeral.version = VERSION;\n\n // compare numeral object\n numeral.isNumeral = function(obj) {\n return obj instanceof Numeral;\n };\n\n // helper functions\n numeral._ = _ = {\n // formats numbers separators, decimals places, signs, abbreviations\n numberToFormat: function(value, format, roundingFunction) {\n var locale = locales[numeral.options.currentLocale],\n negP = false,\n optDec = false,\n leadingCount = 0,\n abbr = '',\n trillion = 1000000000000,\n billion = 1000000000,\n million = 1000000,\n thousand = 1000,\n decimal = '',\n neg = false,\n abbrForce, // force abbreviation\n abs,\n min,\n max,\n power,\n int,\n precision,\n signed,\n thousands,\n output;\n\n // make sure we never format a null value\n value = value || 0;\n\n abs = Math.abs(value);\n\n // see if we should use parentheses for negative number or if we should prefix with a sign\n // if both are present we default to parentheses\n if (numeral._.includes(format, '(')) {\n negP = true;\n format = format.replace(/[\\(|\\)]/g, '');\n } else if (numeral._.includes(format, '+') || numeral._.includes(format, '-')) {\n signed = numeral._.includes(format, '+') ? format.indexOf('+') : value < 0 ? format.indexOf('-') : -1;\n format = format.replace(/[\\+|\\-]/g, '');\n }\n\n // see if abbreviation is wanted\n if (numeral._.includes(format, 'a')) {\n abbrForce = format.match(/a(k|m|b|t)?/);\n\n abbrForce = abbrForce ? abbrForce[1] : false;\n\n // check for space before abbreviation\n if (numeral._.includes(format, ' a')) {\n abbr = ' ';\n }\n\n format = format.replace(new RegExp(abbr + 'a[kmbt]?'), '');\n\n if (abs >= trillion && !abbrForce || abbrForce === 't') {\n // trillion\n abbr += locale.abbreviations.trillion;\n value = value / trillion;\n } else if (abs < trillion && abs >= billion && !abbrForce || abbrForce === 'b') {\n // billion\n abbr += locale.abbreviations.billion;\n value = value / billion;\n } else if (abs < billion && abs >= million && !abbrForce || abbrForce === 'm') {\n // million\n abbr += locale.abbreviations.million;\n value = value / million;\n } else if (abs < million && abs >= thousand && !abbrForce || abbrForce === 'k') {\n // thousand\n abbr += locale.abbreviations.thousand;\n value = value / thousand;\n }\n }\n\n // check for optional decimals\n if (numeral._.includes(format, '[.]')) {\n optDec = true;\n format = format.replace('[.]', '.');\n }\n\n // break number and format\n int = value.toString().split('.')[0];\n precision = format.split('.')[1];\n thousands = format.indexOf(',');\n leadingCount = (format.split('.')[0].split(',')[0].match(/0/g) || []).length;\n\n if (precision) {\n if (numeral._.includes(precision, '[')) {\n precision = precision.replace(']', '');\n precision = precision.split('[');\n decimal = numeral._.toFixed(value, (precision[0].length + precision[1].length), roundingFunction, precision[1].length);\n } else {\n decimal = numeral._.toFixed(value, precision.length, roundingFunction);\n }\n\n int = decimal.split('.')[0];\n\n if (numeral._.includes(decimal, '.')) {\n decimal = locale.delimiters.decimal + decimal.split('.')[1];\n } else {\n decimal = '';\n }\n\n if (optDec && Number(decimal.slice(1)) === 0) {\n decimal = '';\n }\n } else {\n int = numeral._.toFixed(value, 0, roundingFunction);\n }\n\n // check abbreviation again after rounding\n if (abbr && !abbrForce && Number(int) >= 1000 && abbr !== locale.abbreviations.trillion) {\n int = String(Number(int) / 1000);\n\n switch (abbr) {\n case locale.abbreviations.thousand:\n abbr = locale.abbreviations.million;\n break;\n case locale.abbreviations.million:\n abbr = locale.abbreviations.billion;\n break;\n case locale.abbreviations.billion:\n abbr = locale.abbreviations.trillion;\n break;\n }\n }\n\n\n // format number\n if (numeral._.includes(int, '-')) {\n int = int.slice(1);\n neg = true;\n }\n\n if (int.length < leadingCount) {\n for (var i = leadingCount - int.length; i > 0; i--) {\n int = '0' + int;\n }\n }\n\n if (thousands > -1) {\n int = int.toString().replace(/(\\d)(?=(\\d{3})+(?!\\d))/g, '$1' + locale.delimiters.thousands);\n }\n\n if (format.indexOf('.') === 0) {\n int = '';\n }\n\n output = int + decimal + (abbr ? abbr : '');\n\n if (negP) {\n output = (negP && neg ? '(' : '') + output + (negP && neg ? ')' : '');\n } else {\n if (signed >= 0) {\n output = signed === 0 ? (neg ? '-' : '+') + output : output + (neg ? '-' : '+');\n } else if (neg) {\n output = '-' + output;\n }\n }\n\n return output;\n },\n // unformats numbers separators, decimals places, signs, abbreviations\n stringToNumber: function(string) {\n var locale = locales[options.currentLocale],\n stringOriginal = string,\n abbreviations = {\n thousand: 3,\n million: 6,\n billion: 9,\n trillion: 12\n },\n abbreviation,\n value,\n i,\n regexp;\n\n if (options.zeroFormat && string === options.zeroFormat) {\n value = 0;\n } else if (options.nullFormat && string === options.nullFormat || !string.replace(/[^0-9]+/g, '').length) {\n value = null;\n } else {\n value = 1;\n\n if (locale.delimiters.decimal !== '.') {\n string = string.replace(/\\./g, '').replace(locale.delimiters.decimal, '.');\n }\n\n for (abbreviation in abbreviations) {\n regexp = new RegExp('[^a-zA-Z]' + locale.abbreviations[abbreviation] + '(?:\\\\)|(\\\\' + locale.currency.symbol + ')?(?:\\\\))?)?$');\n\n if (stringOriginal.match(regexp)) {\n value *= Math.pow(10, abbreviations[abbreviation]);\n break;\n }\n }\n\n // check for negative number\n value *= (string.split('-').length + Math.min(string.split('(').length - 1, string.split(')').length - 1)) % 2 ? 1 : -1;\n\n // remove non numbers\n string = string.replace(/[^0-9\\.]+/g, '');\n\n value *= Number(string);\n }\n\n return value;\n },\n isNaN: function(value) {\n return typeof value === 'number' && isNaN(value);\n },\n includes: function(string, search) {\n return string.indexOf(search) !== -1;\n },\n insert: function(string, subString, start) {\n return string.slice(0, start) + subString + string.slice(start);\n },\n reduce: function(array, callback /*, initialValue*/) {\n if (this === null) {\n throw new TypeError('Array.prototype.reduce called on null or undefined');\n }\n\n if (typeof callback !== 'function') {\n throw new TypeError(callback + ' is not a function');\n }\n\n var t = Object(array),\n len = t.length >>> 0,\n k = 0,\n value;\n\n if (arguments.length === 3) {\n value = arguments[2];\n } else {\n while (k < len && !(k in t)) {\n k++;\n }\n\n if (k >= len) {\n throw new TypeError('Reduce of empty array with no initial value');\n }\n\n value = t[k++];\n }\n for (; k < len; k++) {\n if (k in t) {\n value = callback(value, t[k], k, t);\n }\n }\n return value;\n },\n /**\n * Computes the multiplier necessary to make x >= 1,\n * effectively eliminating miscalculations caused by\n * finite precision.\n */\n multiplier: function (x) {\n var parts = x.toString().split('.');\n\n return parts.length < 2 ? 1 : Math.pow(10, parts[1].length);\n },\n /**\n * Given a variable number of arguments, returns the maximum\n * multiplier that must be used to normalize an operation involving\n * all of them.\n */\n correctionFactor: function () {\n var args = Array.prototype.slice.call(arguments);\n\n return args.reduce(function(accum, next) {\n var mn = _.multiplier(next);\n return accum > mn ? accum : mn;\n }, 1);\n },\n /**\n * Implementation of toFixed() that treats floats more like decimals\n *\n * Fixes binary rounding issues (eg. (0.615).toFixed(2) === '0.61') that present\n * problems for accounting- and finance-related software.\n */\n toFixed: function(value, maxDecimals, roundingFunction, optionals) {\n var splitValue = value.toString().split('.'),\n minDecimals = maxDecimals - (optionals || 0),\n boundedPrecision,\n optionalsRegExp,\n power,\n output;\n\n // Use the smallest precision value possible to avoid errors from floating point representation\n if (splitValue.length === 2) {\n boundedPrecision = Math.min(Math.max(splitValue[1].length, minDecimals), maxDecimals);\n } else {\n boundedPrecision = minDecimals;\n }\n\n power = Math.pow(10, boundedPrecision);\n\n // Multiply up by precision, round accurately, then divide and use native toFixed():\n output = (roundingFunction(value + 'e+' + boundedPrecision) / power).toFixed(boundedPrecision);\n\n if (optionals > maxDecimals - boundedPrecision) {\n optionalsRegExp = new RegExp('\\\\.?0{1,' + (optionals - (maxDecimals - boundedPrecision)) + '}$');\n output = output.replace(optionalsRegExp, '');\n }\n\n return output;\n }\n };\n\n // avaliable options\n numeral.options = options;\n\n // avaliable formats\n numeral.formats = formats;\n\n // avaliable formats\n numeral.locales = locales;\n\n // This function sets the current locale. If\n // no arguments are passed in, it will simply return the current global\n // locale key.\n numeral.locale = function(key) {\n if (key) {\n options.currentLocale = key.toLowerCase();\n }\n\n return options.currentLocale;\n };\n\n // This function provides access to the loaded locale data. If\n // no arguments are passed in, it will simply return the current\n // global locale object.\n numeral.localeData = function(key) {\n if (!key) {\n return locales[options.currentLocale];\n }\n\n key = key.toLowerCase();\n\n if (!locales[key]) {\n throw new Error('Unknown locale : ' + key);\n }\n\n return locales[key];\n };\n\n numeral.reset = function() {\n for (var property in defaults) {\n options[property] = defaults[property];\n }\n };\n\n numeral.zeroFormat = function(format) {\n options.zeroFormat = typeof(format) === 'string' ? format : null;\n };\n\n numeral.nullFormat = function (format) {\n options.nullFormat = typeof(format) === 'string' ? format : null;\n };\n\n numeral.defaultFormat = function(format) {\n options.defaultFormat = typeof(format) === 'string' ? format : '0.0';\n };\n\n numeral.register = function(type, name, format) {\n name = name.toLowerCase();\n\n if (this[type + 's'][name]) {\n throw new TypeError(name + ' ' + type + ' already registered.');\n }\n\n this[type + 's'][name] = format;\n\n return format;\n };\n\n\n numeral.validate = function(val, culture) {\n var _decimalSep,\n _thousandSep,\n _currSymbol,\n _valArray,\n _abbrObj,\n _thousandRegEx,\n localeData,\n temp;\n\n //coerce val to string\n if (typeof val !== 'string') {\n val += '';\n\n if (console.warn) {\n console.warn('Numeral.js: Value is not string. It has been co-erced to: ', val);\n }\n }\n\n //trim whitespaces from either sides\n val = val.trim();\n\n //if val is just digits return true\n if (!!val.match(/^\\d+$/)) {\n return true;\n }\n\n //if val is empty return false\n if (val === '') {\n return false;\n }\n\n //get the decimal and thousands separator from numeral.localeData\n try {\n //check if the culture is understood by numeral. if not, default it to current locale\n localeData = numeral.localeData(culture);\n } catch (e) {\n localeData = numeral.localeData(numeral.locale());\n }\n\n //setup the delimiters and currency symbol based on culture/locale\n _currSymbol = localeData.currency.symbol;\n _abbrObj = localeData.abbreviations;\n _decimalSep = localeData.delimiters.decimal;\n if (localeData.delimiters.thousands === '.') {\n _thousandSep = '\\\\.';\n } else {\n _thousandSep = localeData.delimiters.thousands;\n }\n\n // validating currency symbol\n temp = val.match(/^[^\\d]+/);\n if (temp !== null) {\n val = val.substr(1);\n if (temp[0] !== _currSymbol) {\n return false;\n }\n }\n\n //validating abbreviation symbol\n temp = val.match(/[^\\d]+$/);\n if (temp !== null) {\n val = val.slice(0, -1);\n if (temp[0] !== _abbrObj.thousand && temp[0] !== _abbrObj.million && temp[0] !== _abbrObj.billion && temp[0] !== _abbrObj.trillion) {\n return false;\n }\n }\n\n _thousandRegEx = new RegExp(_thousandSep + '{2}');\n\n if (!val.match(/[^\\d.,]/g)) {\n _valArray = val.split(_decimalSep);\n if (_valArray.length > 2) {\n return false;\n } else {\n if (_valArray.length < 2) {\n return ( !! _valArray[0].match(/^\\d+.*\\d$/) && !_valArray[0].match(_thousandRegEx));\n } else {\n if (_valArray[0].length === 1) {\n return ( !! _valArray[0].match(/^\\d+$/) && !_valArray[0].match(_thousandRegEx) && !! _valArray[1].match(/^\\d+$/));\n } else {\n return ( !! _valArray[0].match(/^\\d+.*\\d$/) && !_valArray[0].match(_thousandRegEx) && !! _valArray[1].match(/^\\d+$/));\n }\n }\n }\n }\n\n return false;\n };\n\n\n /************************************\n Numeral Prototype\n ************************************/\n\n numeral.fn = Numeral.prototype = {\n clone: function() {\n return numeral(this);\n },\n format: function(inputString, roundingFunction) {\n var value = this._value,\n format = inputString || options.defaultFormat,\n kind,\n output,\n formatFunction;\n\n // make sure we have a roundingFunction\n roundingFunction = roundingFunction || Math.round;\n\n // format based on value\n if (value === 0 && options.zeroFormat !== null) {\n output = options.zeroFormat;\n } else if (value === null && options.nullFormat !== null) {\n output = options.nullFormat;\n } else {\n for (kind in formats) {\n if (format.match(formats[kind].regexps.format)) {\n formatFunction = formats[kind].format;\n\n break;\n }\n }\n\n formatFunction = formatFunction || numeral._.numberToFormat;\n\n output = formatFunction(value, format, roundingFunction);\n }\n\n return output;\n },\n value: function() {\n return this._value;\n },\n input: function() {\n return this._input;\n },\n set: function(value) {\n this._value = Number(value);\n\n return this;\n },\n add: function(value) {\n var corrFactor = _.correctionFactor.call(null, this._value, value);\n\n function cback(accum, curr, currI, O) {\n return accum + Math.round(corrFactor * curr);\n }\n\n this._value = _.reduce([this._value, value], cback, 0) / corrFactor;\n\n return this;\n },\n subtract: function(value) {\n var corrFactor = _.correctionFactor.call(null, this._value, value);\n\n function cback(accum, curr, currI, O) {\n return accum - Math.round(corrFactor * curr);\n }\n\n this._value = _.reduce([value], cback, Math.round(this._value * corrFactor)) / corrFactor;\n\n return this;\n },\n multiply: function(value) {\n function cback(accum, curr, currI, O) {\n var corrFactor = _.correctionFactor(accum, curr);\n return Math.round(accum * corrFactor) * Math.round(curr * corrFactor) / Math.round(corrFactor * corrFactor);\n }\n\n this._value = _.reduce([this._value, value], cback, 1);\n\n return this;\n },\n divide: function(value) {\n function cback(accum, curr, currI, O) {\n var corrFactor = _.correctionFactor(accum, curr);\n return Math.round(accum * corrFactor) / Math.round(curr * corrFactor);\n }\n\n this._value = _.reduce([this._value, value], cback);\n\n return this;\n },\n difference: function(value) {\n return Math.abs(numeral(this._value).subtract(value).value());\n }\n };\n\n /************************************\n Default Locale && Format\n ************************************/\n\n numeral.register('locale', 'en', {\n delimiters: {\n thousands: ',',\n decimal: '.'\n },\n abbreviations: {\n thousand: 'k',\n million: 'm',\n billion: 'b',\n trillion: 't'\n },\n ordinal: function(number) {\n var b = number % 10;\n return (~~(number % 100 / 10) === 1) ? 'th' :\n (b === 1) ? 'st' :\n (b === 2) ? 'nd' :\n (b === 3) ? 'rd' : 'th';\n },\n currency: {\n symbol: '$'\n }\n });\n\n \n\n(function() {\n numeral.register('format', 'bps', {\n regexps: {\n format: /(BPS)/,\n unformat: /(BPS)/\n },\n format: function(value, format, roundingFunction) {\n var space = numeral._.includes(format, ' BPS') ? ' ' : '',\n output;\n\n value = value * 10000;\n\n // check for space before BPS\n format = format.replace(/\\s?BPS/, '');\n\n output = numeral._.numberToFormat(value, format, roundingFunction);\n\n if (numeral._.includes(output, ')')) {\n output = output.split('');\n\n output.splice(-1, 0, space + 'BPS');\n\n output = output.join('');\n } else {\n output = output + space + 'BPS';\n }\n\n return output;\n },\n unformat: function(string) {\n return +(numeral._.stringToNumber(string) * 0.0001).toFixed(15);\n }\n });\n})();\n\n\n(function() {\n var decimal = {\n base: 1000,\n suffixes: ['B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB']\n },\n binary = {\n base: 1024,\n suffixes: ['B', 'KiB', 'MiB', 'GiB', 'TiB', 'PiB', 'EiB', 'ZiB', 'YiB']\n };\n\n var allSuffixes = decimal.suffixes.concat(binary.suffixes.filter(function (item) {\n return decimal.suffixes.indexOf(item) < 0;\n }));\n var unformatRegex = allSuffixes.join('|');\n // Allow support for BPS (http://www.investopedia.com/terms/b/basispoint.asp)\n unformatRegex = '(' + unformatRegex.replace('B', 'B(?!PS)') + ')';\n\n numeral.register('format', 'bytes', {\n regexps: {\n format: /([0\\s]i?b)/,\n unformat: new RegExp(unformatRegex)\n },\n format: function(value, format, roundingFunction) {\n var output,\n bytes = numeral._.includes(format, 'ib') ? binary : decimal,\n suffix = numeral._.includes(format, ' b') || numeral._.includes(format, ' ib') ? ' ' : '',\n power,\n min,\n max;\n\n // check for space before\n format = format.replace(/\\s?i?b/, '');\n\n for (power = 0; power <= bytes.suffixes.length; power++) {\n min = Math.pow(bytes.base, power);\n max = Math.pow(bytes.base, power + 1);\n\n if (value === null || value === 0 || value >= min && value < max) {\n suffix += bytes.suffixes[power];\n\n if (min > 0) {\n value = value / min;\n }\n\n break;\n }\n }\n\n output = numeral._.numberToFormat(value, format, roundingFunction);\n\n return output + suffix;\n },\n unformat: function(string) {\n var value = numeral._.stringToNumber(string),\n power,\n bytesMultiplier;\n\n if (value) {\n for (power = decimal.suffixes.length - 1; power >= 0; power--) {\n if (numeral._.includes(string, decimal.suffixes[power])) {\n bytesMultiplier = Math.pow(decimal.base, power);\n\n break;\n }\n\n if (numeral._.includes(string, binary.suffixes[power])) {\n bytesMultiplier = Math.pow(binary.base, power);\n\n break;\n }\n }\n\n value *= (bytesMultiplier || 1);\n }\n\n return value;\n }\n });\n})();\n\n\n(function() {\n numeral.register('format', 'currency', {\n regexps: {\n format: /(\\$)/\n },\n format: function(value, format, roundingFunction) {\n var locale = numeral.locales[numeral.options.currentLocale],\n symbols = {\n before: format.match(/^([\\+|\\-|\\(|\\s|\\$]*)/)[0],\n after: format.match(/([\\+|\\-|\\)|\\s|\\$]*)$/)[0]\n },\n output,\n symbol,\n i;\n\n // strip format of spaces and $\n format = format.replace(/\\s?\\$\\s?/, '');\n\n // format the number\n output = numeral._.numberToFormat(value, format, roundingFunction);\n\n // update the before and after based on value\n if (value >= 0) {\n symbols.before = symbols.before.replace(/[\\-\\(]/, '');\n symbols.after = symbols.after.replace(/[\\-\\)]/, '');\n } else if (value < 0 && (!numeral._.includes(symbols.before, '-') && !numeral._.includes(symbols.before, '('))) {\n symbols.before = '-' + symbols.before;\n }\n\n // loop through each before symbol\n for (i = 0; i < symbols.before.length; i++) {\n symbol = symbols.before[i];\n\n switch (symbol) {\n case '$':\n output = numeral._.insert(output, locale.currency.symbol, i);\n break;\n case ' ':\n output = numeral._.insert(output, ' ', i + locale.currency.symbol.length - 1);\n break;\n }\n }\n\n // loop through each after symbol\n for (i = symbols.after.length - 1; i >= 0; i--) {\n symbol = symbols.after[i];\n\n switch (symbol) {\n case '$':\n output = i === symbols.after.length - 1 ? output + locale.currency.symbol : numeral._.insert(output, locale.currency.symbol, -(symbols.after.length - (1 + i)));\n break;\n case ' ':\n output = i === symbols.after.length - 1 ? output + ' ' : numeral._.insert(output, ' ', -(symbols.after.length - (1 + i) + locale.currency.symbol.length - 1));\n break;\n }\n }\n\n\n return output;\n }\n });\n})();\n\n\n(function() {\n numeral.register('format', 'exponential', {\n regexps: {\n format: /(e\\+|e-)/,\n unformat: /(e\\+|e-)/\n },\n format: function(value, format, roundingFunction) {\n var output,\n exponential = typeof value === 'number' && !numeral._.isNaN(value) ? value.toExponential() : '0e+0',\n parts = exponential.split('e');\n\n format = format.replace(/e[\\+|\\-]{1}0/, '');\n\n output = numeral._.numberToFormat(Number(parts[0]), format, roundingFunction);\n\n return output + 'e' + parts[1];\n },\n unformat: function(string) {\n var parts = numeral._.includes(string, 'e+') ? string.split('e+') : string.split('e-'),\n value = Number(parts[0]),\n power = Number(parts[1]);\n\n power = numeral._.includes(string, 'e-') ? power *= -1 : power;\n\n function cback(accum, curr, currI, O) {\n var corrFactor = numeral._.correctionFactor(accum, curr),\n num = (accum * corrFactor) * (curr * corrFactor) / (corrFactor * corrFactor);\n return num;\n }\n\n return numeral._.reduce([value, Math.pow(10, power)], cback, 1);\n }\n });\n})();\n\n\n(function() {\n numeral.register('format', 'ordinal', {\n regexps: {\n format: /(o)/\n },\n format: function(value, format, roundingFunction) {\n var locale = numeral.locales[numeral.options.currentLocale],\n output,\n ordinal = numeral._.includes(format, ' o') ? ' ' : '';\n\n // check for space before\n format = format.replace(/\\s?o/, '');\n\n ordinal += locale.ordinal(value);\n\n output = numeral._.numberToFormat(value, format, roundingFunction);\n\n return output + ordinal;\n }\n });\n})();\n\n\n(function() {\n numeral.register('format', 'percentage', {\n regexps: {\n format: /(%)/,\n unformat: /(%)/\n },\n format: function(value, format, roundingFunction) {\n var space = numeral._.includes(format, ' %') ? ' ' : '',\n output;\n\n if (numeral.options.scalePercentBy100) {\n value = value * 100;\n }\n\n // check for space before %\n format = format.replace(/\\s?\\%/, '');\n\n output = numeral._.numberToFormat(value, format, roundingFunction);\n\n if (numeral._.includes(output, ')')) {\n output = output.split('');\n\n output.splice(-1, 0, space + '%');\n\n output = output.join('');\n } else {\n output = output + space + '%';\n }\n\n return output;\n },\n unformat: function(string) {\n var number = numeral._.stringToNumber(string);\n if (numeral.options.scalePercentBy100) {\n return number * 0.01;\n }\n return number;\n }\n });\n})();\n\n\n(function() {\n numeral.register('format', 'time', {\n regexps: {\n format: /(:)/,\n unformat: /(:)/\n },\n format: function(value, format, roundingFunction) {\n var hours = Math.floor(value / 60 / 60),\n minutes = Math.floor((value - (hours * 60 * 60)) / 60),\n seconds = Math.round(value - (hours * 60 * 60) - (minutes * 60));\n\n return hours + ':' + (minutes < 10 ? '0' + minutes : minutes) + ':' + (seconds < 10 ? '0' + seconds : seconds);\n },\n unformat: function(string) {\n var timeArray = string.split(':'),\n seconds = 0;\n\n // turn hours and minutes into seconds and add them all up\n if (timeArray.length === 3) {\n // hours\n seconds = seconds + (Number(timeArray[0]) * 60 * 60);\n // minutes\n seconds = seconds + (Number(timeArray[1]) * 60);\n // seconds\n seconds = seconds + Number(timeArray[2]);\n } else if (timeArray.length === 2) {\n // minutes\n seconds = seconds + (Number(timeArray[0]) * 60);\n // seconds\n seconds = seconds + Number(timeArray[1]);\n }\n return Number(seconds);\n }\n });\n})();\n\nreturn numeral;\n}));\n", "//! moment.js\n//! version : 2.31.0\n//! authors : Tim Wood, Iskren Chernev, Moment.js contributors\n//! license : MIT\n//! momentjs.com\n\n;(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :\n typeof define === 'function' && define.amd ? define(factory) :\n global.moment = factory()\n}(this, (function () { 'use strict';\n\n var hookCallback;\n\n function hooks() {\n return hookCallback.apply(null, arguments);\n }\n\n // This is done to register the method called with moment()\n // without creating circular dependencies.\n function setHookCallback(callback) {\n hookCallback = callback;\n }\n\n function isArray(input) {\n return (\n input instanceof Array ||\n Object.prototype.toString.call(input) === '[object Array]'\n );\n }\n\n function isObject(input) {\n // IE8 will treat undefined and null as object if it wasn't for\n // input != null\n return (\n input != null &&\n Object.prototype.toString.call(input) === '[object Object]'\n );\n }\n\n function hasOwnProp(a, b) {\n return Object.prototype.hasOwnProperty.call(a, b);\n }\n\n function isObjectEmpty(obj) {\n if (Object.getOwnPropertyNames) {\n return Object.getOwnPropertyNames(obj).length === 0;\n } else {\n var k;\n for (k in obj) {\n if (hasOwnProp(obj, k)) {\n return false;\n }\n }\n return true;\n }\n }\n\n function isUndefined(input) {\n return input === void 0;\n }\n\n function isNumber(input) {\n return (\n typeof input === 'number' ||\n Object.prototype.toString.call(input) === '[object Number]'\n );\n }\n\n function isDate(input) {\n return (\n input instanceof Date ||\n Object.prototype.toString.call(input) === '[object Date]'\n );\n }\n\n function map(arr, fn) {\n var res = [],\n i,\n arrLen = arr.length;\n for (i = 0; i < arrLen; ++i) {\n res.push(fn(arr[i], i));\n }\n return res;\n }\n\n function extend(a, b) {\n for (var i in b) {\n if (hasOwnProp(b, i)) {\n a[i] = b[i];\n }\n }\n\n if (hasOwnProp(b, 'toString')) {\n a.toString = b.toString;\n }\n\n if (hasOwnProp(b, 'valueOf')) {\n a.valueOf = b.valueOf;\n }\n\n return a;\n }\n\n function createUTC(input, format, locale, strict) {\n return createLocalOrUTC(input, format, locale, strict, true).utc();\n }\n\n function defaultParsingFlags() {\n // We need to deep clone this object.\n return {\n empty: false,\n unusedTokens: [],\n unusedInput: [],\n overflow: -2,\n charsLeftOver: 0,\n nullInput: false,\n invalidEra: null,\n invalidMonth: null,\n invalidOffset: null,\n invalidFormat: false,\n userInvalidated: false,\n iso: false,\n parsedDateParts: [],\n era: null,\n meridiem: null,\n rfc2822: false,\n weekdayMismatch: false,\n };\n }\n\n function getParsingFlags(m) {\n if (m._pf == null) {\n m._pf = defaultParsingFlags();\n }\n return m._pf;\n }\n\n var some;\n if (Array.prototype.some) {\n some = Array.prototype.some;\n } else {\n some = function (fun) {\n var t = Object(this),\n len = t.length >>> 0,\n i;\n\n for (i = 0; i < len; i++) {\n if (i in t && fun.call(this, t[i], i, t)) {\n return true;\n }\n }\n\n return false;\n };\n }\n\n function isValid$2(m) {\n var flags = null,\n parsedParts = false,\n isNowValid = m._d && !isNaN(m._d.getTime());\n if (isNowValid) {\n flags = getParsingFlags(m);\n parsedParts = some.call(flags.parsedDateParts, function (i) {\n return i != null;\n });\n isNowValid =\n flags.overflow < 0 &&\n !flags.empty &&\n !flags.invalidEra &&\n !flags.invalidMonth &&\n !flags.invalidOffset &&\n !flags.invalidWeekday &&\n !flags.weekdayMismatch &&\n !flags.nullInput &&\n !flags.invalidFormat &&\n !flags.userInvalidated &&\n (!flags.meridiem || (flags.meridiem && parsedParts));\n if (m._strict) {\n isNowValid =\n isNowValid &&\n flags.charsLeftOver === 0 &&\n flags.unusedTokens.length === 0 &&\n flags.bigHour === undefined;\n }\n }\n if (Object.isFrozen == null || !Object.isFrozen(m)) {\n m._isValid = isNowValid;\n } else {\n return isNowValid;\n }\n return m._isValid;\n }\n\n function createInvalid$1(flags) {\n var m = createUTC(NaN);\n if (flags != null) {\n extend(getParsingFlags(m), flags);\n } else {\n getParsingFlags(m).userInvalidated = true;\n }\n\n return m;\n }\n\n // Plugins that add properties should also add the key here (null value),\n // so we can properly clone ourselves.\n var momentProperties = (hooks.momentProperties = []),\n updateInProgress = false;\n\n function copyConfig(to, from) {\n var i,\n prop,\n val,\n momentPropertiesLen = momentProperties.length;\n\n if (!isUndefined(from._isAMomentObject)) {\n to._isAMomentObject = from._isAMomentObject;\n }\n if (!isUndefined(from._i)) {\n to._i = from._i;\n }\n if (!isUndefined(from._f)) {\n to._f = from._f;\n }\n if (!isUndefined(from._l)) {\n to._l = from._l;\n }\n if (!isUndefined(from._strict)) {\n to._strict = from._strict;\n }\n if (!isUndefined(from._tzm)) {\n to._tzm = from._tzm;\n }\n if (!isUndefined(from._isUTC)) {\n to._isUTC = from._isUTC;\n }\n if (!isUndefined(from._offset)) {\n to._offset = from._offset;\n }\n if (!isUndefined(from._pf)) {\n to._pf = getParsingFlags(from);\n }\n if (!isUndefined(from._locale)) {\n to._locale = from._locale;\n }\n\n if (momentPropertiesLen > 0) {\n for (i = 0; i < momentPropertiesLen; i++) {\n prop = momentProperties[i];\n val = from[prop];\n if (!isUndefined(val)) {\n to[prop] = val;\n }\n }\n }\n\n return to;\n }\n\n // Moment prototype object\n function Moment(config) {\n copyConfig(this, config);\n this._d = new Date(config._d != null ? config._d.getTime() : NaN);\n if (!this.isValid()) {\n this._d = new Date(NaN);\n }\n // Prevent infinite loop in case updateOffset creates new moment\n // objects.\n if (updateInProgress === false) {\n updateInProgress = true;\n hooks.updateOffset(this);\n updateInProgress = false;\n }\n }\n\n function isMoment(obj) {\n return (\n obj instanceof Moment || (obj != null && obj._isAMomentObject != null)\n );\n }\n\n function warn(msg) {\n if (\n hooks.suppressDeprecationWarnings === false &&\n typeof console !== 'undefined' &&\n console.warn\n ) {\n console.warn('Deprecation warning: ' + msg);\n }\n }\n\n function deprecate(msg, fn) {\n var firstTime = true;\n\n return extend(function () {\n if (hooks.deprecationHandler != null) {\n hooks.deprecationHandler(null, msg);\n }\n if (firstTime) {\n var args = [],\n arg,\n i,\n key,\n argLen = arguments.length;\n for (i = 0; i < argLen; i++) {\n arg = '';\n if (typeof arguments[i] === 'object') {\n arg += '\\n[' + i + '] ';\n for (key in arguments[0]) {\n if (hasOwnProp(arguments[0], key)) {\n arg += key + ': ' + arguments[0][key] + ', ';\n }\n }\n arg = arg.slice(0, -2); // Remove trailing comma and space\n } else {\n arg = arguments[i];\n }\n args.push(arg);\n }\n warn(\n msg +\n '\\nArguments: ' +\n Array.prototype.slice.call(args).join('') +\n '\\n' +\n new Error().stack\n );\n firstTime = false;\n }\n return fn.apply(this, arguments);\n }, fn);\n }\n\n var deprecations = {};\n\n function deprecateSimple(name, msg) {\n if (hooks.deprecationHandler != null) {\n hooks.deprecationHandler(name, msg);\n }\n if (!deprecations[name]) {\n warn(msg + '\\n' + new Error().stack);\n deprecations[name] = true;\n }\n }\n\n hooks.suppressDeprecationWarnings = false;\n hooks.deprecationHandler = null;\n\n function isFunction(input) {\n return (\n (typeof Function !== 'undefined' && input instanceof Function) ||\n Object.prototype.toString.call(input) === '[object Function]'\n );\n }\n\n var aliases = {\n D: 'date',\n dates: 'date',\n date: 'date',\n d: 'day',\n days: 'day',\n day: 'day',\n e: 'weekday',\n weekdays: 'weekday',\n weekday: 'weekday',\n E: 'isoWeekday',\n isoweekdays: 'isoWeekday',\n isoweekday: 'isoWeekday',\n DDD: 'dayOfYear',\n dayofyears: 'dayOfYear',\n dayofyear: 'dayOfYear',\n h: 'hour',\n hours: 'hour',\n hour: 'hour',\n ms: 'millisecond',\n milliseconds: 'millisecond',\n millisecond: 'millisecond',\n m: 'minute',\n minutes: 'minute',\n minute: 'minute',\n M: 'month',\n months: 'month',\n month: 'month',\n Q: 'quarter',\n quarters: 'quarter',\n quarter: 'quarter',\n s: 'second',\n seconds: 'second',\n second: 'second',\n gg: 'weekYear',\n weekyears: 'weekYear',\n weekyear: 'weekYear',\n GG: 'isoWeekYear',\n isoweekyears: 'isoWeekYear',\n isoweekyear: 'isoWeekYear',\n w: 'week',\n weeks: 'week',\n week: 'week',\n W: 'isoWeek',\n isoweeks: 'isoWeek',\n isoweek: 'isoWeek',\n y: 'year',\n years: 'year',\n year: 'year',\n };\n\n function normalizeUnits(units) {\n return typeof units === 'string'\n ? aliases[units] || aliases[units.toLowerCase()]\n : undefined;\n }\n\n function normalizeObjectUnits(inputObject) {\n var normalizedInput = {},\n normalizedProp,\n prop;\n\n for (prop in inputObject) {\n if (hasOwnProp(inputObject, prop)) {\n normalizedProp = normalizeUnits(prop);\n if (normalizedProp) {\n normalizedInput[normalizedProp] = inputObject[prop];\n }\n }\n }\n\n return normalizedInput;\n }\n\n var priorities = {\n date: 9,\n day: 11,\n weekday: 11,\n isoWeekday: 11,\n dayOfYear: 4,\n hour: 13,\n millisecond: 16,\n minute: 14,\n month: 8,\n quarter: 7,\n second: 15,\n weekYear: 1,\n isoWeekYear: 1,\n week: 5,\n isoWeek: 5,\n year: 1,\n };\n\n function getPrioritizedUnits(unitsObj) {\n var units = [],\n u;\n for (u in unitsObj) {\n if (hasOwnProp(unitsObj, u)) {\n units.push({ unit: u, priority: priorities[u] });\n }\n }\n units.sort(function (a, b) {\n return a.priority - b.priority;\n });\n return units;\n }\n\n function zeroFill(number, targetLength, forceSign) {\n var absNumber = '' + Math.abs(number),\n zerosToFill = targetLength - absNumber.length,\n sign = number >= 0;\n return (\n (sign ? (forceSign ? '+' : '') : '-') +\n Math.pow(10, Math.max(0, zerosToFill)).toString().substr(1) +\n absNumber\n );\n }\n\n var formattingTokens =\n /(\\[[^\\[]*\\])|(\\\\e)|(\\\\)?(eHHmm|[Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,\n localFormattingTokens = /(\\[[^\\[]*\\])|(\\\\)?(LTS|LT|LL?L?L?|l{1,4})/g,\n formatFunctions = {},\n formatTokenFunctions = {};\n\n // token: 'M'\n // padded: ['MM', 2]\n // ordinal: 'Mo'\n // callback: function () { this.month() + 1 }\n function addFormatToken(token, padded, ordinal, callback) {\n var func = callback;\n if (typeof callback === 'string') {\n func = function () {\n return this[callback]();\n };\n }\n if (token) {\n formatTokenFunctions[token] = func;\n }\n if (padded) {\n formatTokenFunctions[padded[0]] = function () {\n return zeroFill(func.apply(this, arguments), padded[1], padded[2]);\n };\n }\n if (ordinal) {\n formatTokenFunctions[ordinal] = function () {\n return this.localeData().ordinal(\n func.apply(this, arguments),\n token\n );\n };\n }\n }\n\n function removeFormattingTokens(input) {\n if (input.match(/\\[[\\s\\S]/)) {\n return input.replace(/^\\[|\\]$/g, '');\n }\n return input.replace(/\\\\/g, '');\n }\n\n function makeFormatFunction(format) {\n var array = format.match(formattingTokens),\n i,\n length;\n\n for (i = 0, length = array.length; i < length; i++) {\n if (formatTokenFunctions[array[i]]) {\n array[i] = formatTokenFunctions[array[i]];\n } else {\n array[i] = removeFormattingTokens(array[i]);\n }\n }\n\n return function (mom) {\n var output = '',\n i;\n for (i = 0; i < length; i++) {\n output += isFunction(array[i])\n ? array[i].call(mom, format)\n : array[i];\n }\n return output;\n };\n }\n\n // format date using native date object\n function formatMoment(m, format) {\n if (!m.isValid()) {\n return m.localeData().invalidDate();\n }\n\n format = expandFormat(format, m.localeData());\n var cacheKey = '$' + format;\n if (!hasOwnProp(formatFunctions, cacheKey)) {\n formatFunctions[cacheKey] = makeFormatFunction(format);\n }\n\n return formatFunctions[cacheKey](m);\n }\n\n function expandFormat(format, locale) {\n var i = 5;\n\n function replaceLongDateFormatTokens(input) {\n return locale.longDateFormat(input) || input;\n }\n\n localFormattingTokens.lastIndex = 0;\n while (i >= 0 && localFormattingTokens.test(format)) {\n format = format.replace(\n localFormattingTokens,\n replaceLongDateFormatTokens\n );\n localFormattingTokens.lastIndex = 0;\n i -= 1;\n }\n\n return format;\n }\n\n var match1 = /\\d/, // 0 - 9\n match2 = /\\d\\d/, // 00 - 99\n match3 = /\\d{3}/, // 000 - 999\n match4 = /\\d{4}/, // 0000 - 9999\n match6 = /[+-]?\\d{6}/, // -999999 - 999999\n match1to2 = /\\d\\d?/, // 0 - 99\n match3to4 = /\\d\\d\\d\\d?/, // 999 - 9999\n match5to6 = /\\d\\d\\d\\d\\d\\d?/, // 99999 - 999999\n match1to3 = /\\d{1,3}/, // 0 - 999\n match1to4 = /\\d{1,4}/, // 0 - 9999\n match1to6 = /[+-]?\\d{1,6}/, // -999999 - 999999\n matchUnsigned = /\\d+/, // 0 - inf\n matchSigned = /[+-]?\\d+/, // -inf - inf\n matchOffset = /Z|[+-]\\d\\d:?\\d\\d/gi, // +00:00 -00:00 +0000 -0000 or Z\n matchShortOffset = /Z|[+-]\\d\\d(?::?\\d\\d)?/gi, // +00 -00 +00:00 -00:00 +0000 -0000 or Z\n matchTimestamp = /[+-]?\\d+(\\.\\d{1,3})?/, // 123456789 123456789.123\n // any word (or two) characters or numbers including two/three word month in arabic.\n // includes scottish gaelic two word and hyphenated months\n matchWord =\n /[0-9]{0,256}['a-z\\u00A0-\\u05FF\\u0700-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFF07\\uFF10-\\uFFEF]{1,256}|[\\u0600-\\u06FF\\/]{1,256}(\\s*?[\\u0600-\\u06FF]{1,256}){1,2}/i,\n match1to2NoLeadingZero = /^[1-9]\\d?/, // 1-99\n match1to2HasZero = /^([1-9]\\d|\\d)/, // 0-99\n regexes;\n\n regexes = {};\n\n function addRegexToken(token, regex, strictRegex) {\n regexes[token] = isFunction(regex)\n ? regex\n : function (isStrict, localeData) {\n return isStrict && strictRegex ? strictRegex : regex;\n };\n }\n\n function getParseRegexForToken(token, config) {\n if (!hasOwnProp(regexes, token)) {\n return new RegExp(unescapeFormat(token));\n }\n\n return regexes[token](config._strict, config._locale);\n }\n\n // Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript\n function unescapeFormat(s) {\n return regexEscape(\n s\n .replace('\\\\', '')\n .replace(\n /\\\\(\\[)|\\\\(\\])|\\[([^\\]\\[]*)\\]|\\\\(.)/g,\n function (matched, p1, p2, p3, p4) {\n return p1 || p2 || p3 || p4;\n }\n )\n );\n }\n\n function regexEscape(s) {\n return s.replace(/[-\\/\\\\^$*+?.()|[\\]{}]/g, '\\\\$&');\n }\n\n function absFloor(number) {\n if (number < 0) {\n // -0 -> 0\n return Math.ceil(number) || 0;\n } else {\n return Math.floor(number);\n }\n }\n\n function toInt(argumentForCoercion) {\n var coercedNumber = +argumentForCoercion,\n value = 0;\n\n if (coercedNumber !== 0 && isFinite(coercedNumber)) {\n value = absFloor(coercedNumber);\n }\n\n return value;\n }\n\n var tokens = {};\n\n function addParseToken(token, callback) {\n var i,\n func = callback,\n tokenLen;\n if (typeof token === 'string') {\n token = [token];\n }\n if (isNumber(callback)) {\n func = function (input, array) {\n array[callback] = toInt(input);\n };\n }\n tokenLen = token.length;\n for (i = 0; i < tokenLen; i++) {\n tokens[token[i]] = func;\n }\n }\n\n function addWeekParseToken(token, callback) {\n addParseToken(token, function (input, array, config, token) {\n config._w = config._w || {};\n callback(input, config._w, config, token);\n });\n }\n\n function addTimeToArrayFromToken(token, input, config) {\n if (input != null && hasOwnProp(tokens, token)) {\n tokens[token](input, config._a, config, token);\n }\n }\n\n function isLeapYear(year) {\n return (year % 4 === 0 && year % 100 !== 0) || year % 400 === 0;\n }\n\n var YEAR = 0,\n MONTH = 1,\n DATE = 2,\n HOUR = 3,\n MINUTE = 4,\n SECOND = 5,\n MILLISECOND = 6,\n WEEK = 7,\n WEEKDAY = 8;\n\n // FORMATTING\n\n addFormatToken('Y', 0, 0, function () {\n var y = this.year();\n return y <= 9999 ? zeroFill(y, 4) : '+' + y;\n });\n\n addFormatToken(0, ['YY', 2], 0, function () {\n return this.year() % 100;\n });\n\n addFormatToken(0, ['YYYY', 4], 0, 'year');\n addFormatToken(0, ['YYYYY', 5], 0, 'year');\n addFormatToken(0, ['YYYYYY', 6, true], 0, 'year');\n\n // PARSING\n\n addRegexToken('Y', matchSigned);\n addRegexToken('YY', match1to2, match2);\n addRegexToken('YYYY', match1to4, match4);\n addRegexToken('YYYYY', match1to6, match6);\n addRegexToken('YYYYYY', match1to6, match6);\n\n addParseToken(['YYYYY', 'YYYYYY'], YEAR);\n addParseToken('YYYY', function (input, array) {\n array[YEAR] =\n input.length === 2 ? hooks.parseTwoDigitYear(input) : toInt(input);\n });\n addParseToken('YY', function (input, array) {\n array[YEAR] = hooks.parseTwoDigitYear(input);\n });\n addParseToken('Y', function (input, array) {\n array[YEAR] = parseInt(input, 10);\n });\n\n // HELPERS\n\n function daysInYear(year) {\n return isLeapYear(year) ? 366 : 365;\n }\n\n // HOOKS\n\n hooks.parseTwoDigitYear = function (input) {\n return toInt(input) + (toInt(input) > 68 ? 1900 : 2000);\n };\n\n // MOMENTS\n\n var getSetYear = makeGetSet('FullYear', true);\n\n function getIsLeapYear() {\n return isLeapYear(this.year());\n }\n\n function makeGetSet(unit, keepTime) {\n return function (value) {\n if (value != null) {\n set$1(this, unit, value);\n hooks.updateOffset(this, keepTime);\n return this;\n } else {\n return get$2(this, unit);\n }\n };\n }\n\n function get$2(mom, unit) {\n if (!mom.isValid()) {\n return NaN;\n }\n\n var d = mom._d,\n isUTC = mom._isUTC;\n\n switch (unit) {\n case 'Milliseconds':\n return isUTC ? d.getUTCMilliseconds() : d.getMilliseconds();\n case 'Seconds':\n return isUTC ? d.getUTCSeconds() : d.getSeconds();\n case 'Minutes':\n return isUTC ? d.getUTCMinutes() : d.getMinutes();\n case 'Hours':\n return isUTC ? d.getUTCHours() : d.getHours();\n case 'Date':\n return isUTC ? d.getUTCDate() : d.getDate();\n case 'Day':\n return isUTC ? d.getUTCDay() : d.getDay();\n case 'Month':\n return isUTC ? d.getUTCMonth() : d.getMonth();\n case 'FullYear':\n return isUTC ? d.getUTCFullYear() : d.getFullYear();\n default:\n return NaN; // Just in case\n }\n }\n\n function set$1(mom, unit, value) {\n var d, isUTC, year, month, date;\n\n if (!mom.isValid() || isNaN(value)) {\n return;\n }\n\n d = mom._d;\n isUTC = mom._isUTC;\n\n switch (unit) {\n case 'Milliseconds':\n return void (isUTC\n ? d.setUTCMilliseconds(value)\n : d.setMilliseconds(value));\n case 'Seconds':\n return void (isUTC ? d.setUTCSeconds(value) : d.setSeconds(value));\n case 'Minutes':\n return void (isUTC ? d.setUTCMinutes(value) : d.setMinutes(value));\n case 'Hours':\n return void (isUTC ? d.setUTCHours(value) : d.setHours(value));\n case 'Date':\n return void (isUTC ? d.setUTCDate(value) : d.setDate(value));\n // case 'Day': // Not real\n // return void (isUTC ? d.setUTCDay(value) : d.setDay(value));\n // case 'Month': // Not used because we need to pass two variables\n // return void (isUTC ? d.setUTCMonth(value) : d.setMonth(value));\n case 'FullYear':\n break; // See below ...\n default:\n return; // Just in case\n }\n\n year = value;\n month = mom.month();\n date = mom.date();\n date = date === 29 && month === 1 && !isLeapYear(year) ? 28 : date;\n void (isUTC\n ? d.setUTCFullYear(year, month, date)\n : d.setFullYear(year, month, date));\n }\n\n // MOMENTS\n\n function stringGet(units) {\n units = normalizeUnits(units);\n if (isFunction(this[units])) {\n return this[units]();\n }\n return this;\n }\n\n function stringSet(units, value) {\n if (typeof units === 'object') {\n units = normalizeObjectUnits(units);\n var prioritized = getPrioritizedUnits(units),\n i,\n prioritizedLen = prioritized.length;\n for (i = 0; i < prioritizedLen; i++) {\n this[prioritized[i].unit](units[prioritized[i].unit]);\n }\n } else {\n units = normalizeUnits(units);\n if (isFunction(this[units])) {\n return this[units](value);\n }\n }\n return this;\n }\n\n function mod$1(n, x) {\n return ((n % x) + x) % x;\n }\n\n var indexOf;\n\n if (Array.prototype.indexOf) {\n indexOf = Array.prototype.indexOf;\n } else {\n indexOf = function (o) {\n // I know\n var i;\n for (i = 0; i < this.length; ++i) {\n if (this[i] === o) {\n return i;\n }\n }\n return -1;\n };\n }\n\n function daysInMonth(year, month) {\n if (isNaN(year) || isNaN(month)) {\n return NaN;\n }\n var modMonth = mod$1(month, 12);\n year += (month - modMonth) / 12;\n return modMonth === 1\n ? isLeapYear(year)\n ? 29\n : 28\n : 31 - ((modMonth % 7) % 2);\n }\n\n // FORMATTING\n\n addFormatToken('M', ['MM', 2], 'Mo', function () {\n return this.month() + 1;\n });\n\n addFormatToken('MMM', 0, 0, function (format) {\n return this.localeData().monthsShort(this, format);\n });\n\n addFormatToken('MMMM', 0, 0, function (format) {\n return this.localeData().months(this, format);\n });\n\n // PARSING\n\n addRegexToken('M', match1to2, match1to2NoLeadingZero);\n addRegexToken('MM', match1to2, match2);\n addRegexToken('MMM', function (isStrict, locale) {\n return locale.monthsShortRegex(isStrict);\n });\n addRegexToken('MMMM', function (isStrict, locale) {\n return locale.monthsRegex(isStrict);\n });\n\n addParseToken(['M', 'MM'], function (input, array) {\n array[MONTH] = toInt(input) - 1;\n });\n\n addParseToken(['MMM', 'MMMM'], function (input, array, config, token) {\n var month = config._locale.monthsParse(input, token, config._strict);\n // if we didn't find a month name, mark the date as invalid.\n if (month != null) {\n array[MONTH] = month;\n } else {\n getParsingFlags(config).invalidMonth = input;\n }\n });\n\n // LOCALES\n\n var defaultLocaleMonths =\n 'January_February_March_April_May_June_July_August_September_October_November_December'.split(\n '_'\n ),\n defaultLocaleMonthsShort =\n 'Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec'.split('_'),\n MONTHS_IN_FORMAT = /D[oD]?(\\[[^\\[\\]]*\\]|\\s)+MMMM?/,\n defaultMonthsShortRegex = matchWord,\n defaultMonthsRegex = matchWord,\n monthsParseProperties = [\n 'monthsParse',\n 'longMonthsParse',\n 'shortMonthsParse',\n 'monthsRegex',\n 'monthsShortRegex',\n 'monthsStrictRegex',\n 'monthsShortStrictRegex',\n ];\n\n function clearMonthsParseCache(locale, config) {\n var i, prop;\n for (i = 0; i < monthsParseProperties.length; i++) {\n prop = monthsParseProperties[i];\n if (!hasOwnProp(config, prop)) {\n delete locale['_' + prop];\n }\n }\n }\n\n function localeMonths(m, format) {\n if (!m) {\n return isArray(this._months)\n ? this._months\n : this._months['standalone'];\n }\n return isArray(this._months)\n ? this._months[m.month()]\n : this._months[\n (this._months.isFormat || MONTHS_IN_FORMAT).test(format)\n ? 'format'\n : 'standalone'\n ][m.month()];\n }\n\n function localeMonthsShort(m, format) {\n if (!m) {\n return isArray(this._monthsShort)\n ? this._monthsShort\n : this._monthsShort['standalone'];\n }\n return isArray(this._monthsShort)\n ? this._monthsShort[m.month()]\n : this._monthsShort[\n MONTHS_IN_FORMAT.test(format) ? 'format' : 'standalone'\n ][m.month()];\n }\n\n function handleStrictParse$1(monthName, format, strict) {\n var i,\n ii,\n mom,\n llc = monthName.toLocaleLowerCase();\n if (!this._monthsParse) {\n // this is not used\n this._monthsParse = [];\n this._longMonthsParse = [];\n this._shortMonthsParse = [];\n for (i = 0; i < 12; ++i) {\n mom = createUTC([2000, i]);\n this._shortMonthsParse[i] = this.monthsShort(\n mom,\n ''\n ).toLocaleLowerCase();\n this._longMonthsParse[i] = this.months(mom, '').toLocaleLowerCase();\n }\n }\n\n if (strict) {\n if (format === 'MMM') {\n ii = indexOf.call(this._shortMonthsParse, llc);\n return ii !== -1 ? ii : null;\n } else {\n ii = indexOf.call(this._longMonthsParse, llc);\n return ii !== -1 ? ii : null;\n }\n } else {\n if (format === 'MMM') {\n ii = indexOf.call(this._shortMonthsParse, llc);\n if (ii !== -1) {\n return ii;\n }\n ii = indexOf.call(this._longMonthsParse, llc);\n return ii !== -1 ? ii : null;\n } else {\n ii = indexOf.call(this._longMonthsParse, llc);\n if (ii !== -1) {\n return ii;\n }\n ii = indexOf.call(this._shortMonthsParse, llc);\n return ii !== -1 ? ii : null;\n }\n }\n }\n\n function localeMonthsParse(monthName, format, strict) {\n var i, mom, regex;\n\n if (this._monthsParseExact) {\n return handleStrictParse$1.call(this, monthName, format, strict);\n }\n\n if (!this._monthsParse) {\n this._monthsParse = [];\n this._longMonthsParse = [];\n this._shortMonthsParse = [];\n }\n\n // TODO: add sorting\n // Sorting makes sure if one month (or abbr) is a prefix of another\n // see sorting in computeMonthsParse\n for (i = 0; i < 12; i++) {\n // make the regex if we don't have it already\n mom = createUTC([2000, i]);\n if (strict && !this._longMonthsParse[i]) {\n this._longMonthsParse[i] = new RegExp(\n '^' + this.months(mom, '').replace('.', '') + '$',\n 'i'\n );\n this._shortMonthsParse[i] = new RegExp(\n '^' + this.monthsShort(mom, '').replace('.', '') + '$',\n 'i'\n );\n }\n if (!strict && !this._monthsParse[i]) {\n regex =\n '^' + this.months(mom, '') + '|^' + this.monthsShort(mom, '');\n this._monthsParse[i] = new RegExp(regex.replace('.', ''), 'i');\n }\n // test the regex\n if (\n strict &&\n format === 'MMMM' &&\n this._longMonthsParse[i].test(monthName)\n ) {\n return i;\n } else if (\n strict &&\n format === 'MMM' &&\n this._shortMonthsParse[i].test(monthName)\n ) {\n return i;\n } else if (!strict && this._monthsParse[i].test(monthName)) {\n return i;\n }\n }\n }\n\n // MOMENTS\n\n function setMonth(mom, value) {\n if (!mom.isValid()) {\n // No op\n return mom;\n }\n\n if (typeof value === 'string') {\n if (/^\\d+$/.test(value)) {\n value = toInt(value);\n } else {\n value = mom.localeData().monthsParse(value);\n // TODO: Another silent failure?\n if (!isNumber(value)) {\n return mom;\n }\n }\n }\n\n var month = value,\n date = mom.date();\n\n date = date < 29 ? date : Math.min(date, daysInMonth(mom.year(), month));\n void (mom._isUTC\n ? mom._d.setUTCMonth(month, date)\n : mom._d.setMonth(month, date));\n return mom;\n }\n\n function getSetMonth(value) {\n if (value != null) {\n setMonth(this, value);\n hooks.updateOffset(this, true);\n return this;\n } else {\n return get$2(this, 'Month');\n }\n }\n\n function getDaysInMonth() {\n return daysInMonth(this.year(), this.month());\n }\n\n function monthsShortRegex(isStrict) {\n if (this._monthsParseExact) {\n if (!hasOwnProp(this, '_monthsRegex')) {\n computeMonthsParse.call(this);\n }\n if (isStrict) {\n return this._monthsShortStrictRegex;\n } else {\n return this._monthsShortRegex;\n }\n } else {\n if (!hasOwnProp(this, '_monthsShortRegex')) {\n this._monthsShortRegex = defaultMonthsShortRegex;\n }\n return this._monthsShortStrictRegex && isStrict\n ? this._monthsShortStrictRegex\n : this._monthsShortRegex;\n }\n }\n\n function monthsRegex(isStrict) {\n if (this._monthsParseExact) {\n if (!hasOwnProp(this, '_monthsRegex')) {\n computeMonthsParse.call(this);\n }\n if (isStrict) {\n return this._monthsStrictRegex;\n } else {\n return this._monthsRegex;\n }\n } else {\n if (!hasOwnProp(this, '_monthsRegex')) {\n this._monthsRegex = defaultMonthsRegex;\n }\n return this._monthsStrictRegex && isStrict\n ? this._monthsStrictRegex\n : this._monthsRegex;\n }\n }\n\n function computeMonthsParse() {\n function cmpLenRev(a, b) {\n return b.length - a.length;\n }\n\n var shortPieces = [],\n longPieces = [],\n mixedPieces = [],\n i,\n mom,\n shortP,\n longP;\n for (i = 0; i < 12; i++) {\n // make the regex if we don't have it already\n mom = createUTC([2000, i]);\n shortP = regexEscape(this.monthsShort(mom, ''));\n longP = regexEscape(this.months(mom, ''));\n shortPieces.push(shortP);\n longPieces.push(longP);\n mixedPieces.push(longP);\n mixedPieces.push(shortP);\n }\n // Sorting makes sure if one month (or abbr) is a prefix of another it\n // will match the longer piece.\n shortPieces.sort(cmpLenRev);\n longPieces.sort(cmpLenRev);\n mixedPieces.sort(cmpLenRev);\n\n this._monthsRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');\n this._monthsShortRegex = this._monthsRegex;\n this._monthsStrictRegex = new RegExp(\n '^(' + longPieces.join('|') + ')',\n 'i'\n );\n this._monthsShortStrictRegex = new RegExp(\n '^(' + shortPieces.join('|') + ')',\n 'i'\n );\n }\n\n // FORMATTING\n\n addFormatToken('d', 0, 'do', 'day');\n\n addFormatToken('dd', 0, 0, function (format) {\n return this.localeData().weekdaysMin(this, format);\n });\n\n addFormatToken('ddd', 0, 0, function (format) {\n return this.localeData().weekdaysShort(this, format);\n });\n\n addFormatToken('dddd', 0, 0, function (format) {\n return this.localeData().weekdays(this, format);\n });\n\n addFormatToken('e', 0, 0, 'weekday');\n addFormatToken('E', 0, 0, 'isoWeekday');\n addFormatToken('eHHmm', 0, 0, function () {\n return (\n '' +\n this.weekday() +\n zeroFill(this.hours(), 2) +\n zeroFill(this.minutes(), 2)\n );\n });\n\n // PARSING\n\n addRegexToken('d', match1to2);\n addRegexToken('e', match1to2);\n addRegexToken('E', match1to2);\n addRegexToken('eHHmm', match5to6);\n addRegexToken('dd', function (isStrict, locale) {\n return locale.weekdaysMinRegex(isStrict);\n });\n addRegexToken('ddd', function (isStrict, locale) {\n return locale.weekdaysShortRegex(isStrict);\n });\n addRegexToken('dddd', function (isStrict, locale) {\n return locale.weekdaysRegex(isStrict);\n });\n\n addWeekParseToken(['dd', 'ddd', 'dddd'], function (input, week, config, token) {\n var weekday = config._locale.weekdaysParse(input, token, config._strict);\n // if we didn't get a weekday name, mark the date as invalid\n if (weekday != null) {\n week.d = weekday;\n } else {\n getParsingFlags(config).invalidWeekday = input;\n }\n });\n\n addWeekParseToken(['d', 'e', 'E'], function (input, week, config, token) {\n week[token] = toInt(input);\n });\n\n addWeekParseToken('eHHmm', function (input, week, config) {\n var weekdayEnd = input.length - 4;\n\n week.e = toInt(input.substr(0, weekdayEnd));\n config._a[HOUR] = toInt(input.substr(weekdayEnd, 2));\n config._a[MINUTE] = toInt(input.substr(weekdayEnd + 2));\n });\n\n // HELPERS\n\n function parseWeekday(input, locale) {\n if (typeof input !== 'string') {\n return input;\n }\n\n if (!isNaN(input)) {\n return parseInt(input, 10);\n }\n\n input = locale.weekdaysParse(input);\n if (typeof input === 'number') {\n return input;\n }\n\n return null;\n }\n\n function parseIsoWeekday(input, locale) {\n if (typeof input === 'string') {\n return locale.weekdaysParse(input) % 7 || 7;\n }\n return isNaN(input) ? null : input;\n }\n\n // LOCALES\n function shiftWeekdays(ws, n) {\n return ws.slice(n, 7).concat(ws.slice(0, n));\n }\n\n var defaultLocaleWeekdays =\n 'Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday'.split('_'),\n defaultLocaleWeekdaysShort = 'Sun_Mon_Tue_Wed_Thu_Fri_Sat'.split('_'),\n defaultLocaleWeekdaysMin = 'Su_Mo_Tu_We_Th_Fr_Sa'.split('_'),\n defaultWeekdaysRegex = matchWord,\n defaultWeekdaysShortRegex = matchWord,\n defaultWeekdaysMinRegex = matchWord,\n weekdaysParseProperties = [\n 'weekdaysParse',\n 'fullWeekdaysParse',\n 'shortWeekdaysParse',\n 'minWeekdaysParse',\n 'weekdaysRegex',\n 'weekdaysShortRegex',\n 'weekdaysMinRegex',\n 'weekdaysStrictRegex',\n 'weekdaysShortStrictRegex',\n 'weekdaysMinStrictRegex',\n ];\n\n function clearWeekdaysParseCache(locale, config) {\n var i, prop;\n for (i = 0; i < weekdaysParseProperties.length; i++) {\n prop = weekdaysParseProperties[i];\n if (!hasOwnProp(config, prop)) {\n delete locale['_' + prop];\n }\n }\n }\n\n function localeWeekdays(m, format) {\n var weekdays = isArray(this._weekdays)\n ? this._weekdays\n : this._weekdays[\n m && m !== true && this._weekdays.isFormat.test(format)\n ? 'format'\n : 'standalone'\n ];\n return m === true\n ? shiftWeekdays(weekdays, this._week.dow)\n : m\n ? weekdays[m.day()]\n : weekdays;\n }\n\n function localeWeekdaysShort(m) {\n return m === true\n ? shiftWeekdays(this._weekdaysShort, this._week.dow)\n : m\n ? this._weekdaysShort[m.day()]\n : this._weekdaysShort;\n }\n\n function localeWeekdaysMin(m) {\n return m === true\n ? shiftWeekdays(this._weekdaysMin, this._week.dow)\n : m\n ? this._weekdaysMin[m.day()]\n : this._weekdaysMin;\n }\n\n function handleStrictParse(weekdayName, format, strict) {\n var i,\n ii,\n mom,\n llc = weekdayName.toLocaleLowerCase();\n if (!this._weekdaysParse) {\n this._weekdaysParse = [];\n this._shortWeekdaysParse = [];\n this._minWeekdaysParse = [];\n\n for (i = 0; i < 7; ++i) {\n mom = createUTC([2000, 1]).day(i);\n this._minWeekdaysParse[i] = this.weekdaysMin(\n mom,\n ''\n ).toLocaleLowerCase();\n this._shortWeekdaysParse[i] = this.weekdaysShort(\n mom,\n ''\n ).toLocaleLowerCase();\n this._weekdaysParse[i] = this.weekdays(mom, '').toLocaleLowerCase();\n }\n }\n\n if (strict) {\n if (format === 'dddd') {\n ii = indexOf.call(this._weekdaysParse, llc);\n return ii !== -1 ? ii : null;\n } else if (format === 'ddd') {\n ii = indexOf.call(this._shortWeekdaysParse, llc);\n return ii !== -1 ? ii : null;\n } else {\n ii = indexOf.call(this._minWeekdaysParse, llc);\n return ii !== -1 ? ii : null;\n }\n } else {\n if (format === 'dddd') {\n ii = indexOf.call(this._weekdaysParse, llc);\n if (ii !== -1) {\n return ii;\n }\n ii = indexOf.call(this._shortWeekdaysParse, llc);\n if (ii !== -1) {\n return ii;\n }\n ii = indexOf.call(this._minWeekdaysParse, llc);\n return ii !== -1 ? ii : null;\n } else if (format === 'ddd') {\n ii = indexOf.call(this._shortWeekdaysParse, llc);\n if (ii !== -1) {\n return ii;\n }\n ii = indexOf.call(this._weekdaysParse, llc);\n if (ii !== -1) {\n return ii;\n }\n ii = indexOf.call(this._minWeekdaysParse, llc);\n return ii !== -1 ? ii : null;\n } else {\n ii = indexOf.call(this._minWeekdaysParse, llc);\n if (ii !== -1) {\n return ii;\n }\n ii = indexOf.call(this._weekdaysParse, llc);\n if (ii !== -1) {\n return ii;\n }\n ii = indexOf.call(this._shortWeekdaysParse, llc);\n return ii !== -1 ? ii : null;\n }\n }\n }\n\n function localeWeekdaysParse(weekdayName, format, strict) {\n var i, mom, regex;\n\n if (this._weekdaysParseExact) {\n return handleStrictParse.call(this, weekdayName, format, strict);\n }\n\n if (!this._weekdaysParse) {\n this._weekdaysParse = [];\n this._minWeekdaysParse = [];\n this._shortWeekdaysParse = [];\n this._fullWeekdaysParse = [];\n }\n\n for (i = 0; i < 7; i++) {\n // make the regex if we don't have it already\n\n mom = createUTC([2000, 1]).day(i);\n if (strict && !this._fullWeekdaysParse[i]) {\n this._fullWeekdaysParse[i] = new RegExp(\n '^' + this.weekdays(mom, '').replace('.', '\\\\.?') + '$',\n 'i'\n );\n this._shortWeekdaysParse[i] = new RegExp(\n '^' + this.weekdaysShort(mom, '').replace('.', '\\\\.?') + '$',\n 'i'\n );\n this._minWeekdaysParse[i] = new RegExp(\n '^' + this.weekdaysMin(mom, '').replace('.', '\\\\.?') + '$',\n 'i'\n );\n }\n if (!this._weekdaysParse[i]) {\n regex =\n '^' +\n this.weekdays(mom, '') +\n '|^' +\n this.weekdaysShort(mom, '') +\n '|^' +\n this.weekdaysMin(mom, '');\n this._weekdaysParse[i] = new RegExp(regex.replace('.', ''), 'i');\n }\n // test the regex\n if (\n strict &&\n format === 'dddd' &&\n this._fullWeekdaysParse[i].test(weekdayName)\n ) {\n return i;\n } else if (\n strict &&\n format === 'ddd' &&\n this._shortWeekdaysParse[i].test(weekdayName)\n ) {\n return i;\n } else if (\n strict &&\n format === 'dd' &&\n this._minWeekdaysParse[i].test(weekdayName)\n ) {\n return i;\n } else if (!strict && this._weekdaysParse[i].test(weekdayName)) {\n return i;\n }\n }\n }\n\n // MOMENTS\n\n function getSetDayOfWeek(input) {\n if (!this.isValid()) {\n return input != null ? this : NaN;\n }\n\n var day = get$2(this, 'Day');\n if (input != null) {\n input = parseWeekday(input, this.localeData());\n return this.add(input - day, 'd');\n } else {\n return day;\n }\n }\n\n function getSetLocaleDayOfWeek(input) {\n if (!this.isValid()) {\n return input != null ? this : NaN;\n }\n var weekday = (this.day() + 7 - this.localeData()._week.dow) % 7;\n return input == null ? weekday : this.add(input - weekday, 'd');\n }\n\n function getSetISODayOfWeek(input) {\n if (!this.isValid()) {\n return input != null ? this : NaN;\n }\n\n // behaves the same as moment#day except\n // as a getter, returns 7 instead of 0 (1-7 range instead of 0-6)\n // as a setter, sunday should belong to the previous week.\n\n if (input != null) {\n var weekday = parseIsoWeekday(input, this.localeData());\n return this.day(this.day() % 7 ? weekday : weekday - 7);\n } else {\n return this.day() || 7;\n }\n }\n\n function weekdaysRegex(isStrict) {\n if (this._weekdaysParseExact) {\n if (!hasOwnProp(this, '_weekdaysRegex')) {\n computeWeekdaysParse.call(this);\n }\n if (isStrict) {\n return this._weekdaysStrictRegex;\n } else {\n return this._weekdaysRegex;\n }\n } else {\n if (!hasOwnProp(this, '_weekdaysRegex')) {\n this._weekdaysRegex = defaultWeekdaysRegex;\n }\n return this._weekdaysStrictRegex && isStrict\n ? this._weekdaysStrictRegex\n : this._weekdaysRegex;\n }\n }\n\n function weekdaysShortRegex(isStrict) {\n if (this._weekdaysParseExact) {\n if (!hasOwnProp(this, '_weekdaysRegex')) {\n computeWeekdaysParse.call(this);\n }\n if (isStrict) {\n return this._weekdaysShortStrictRegex;\n } else {\n return this._weekdaysShortRegex;\n }\n } else {\n if (!hasOwnProp(this, '_weekdaysShortRegex')) {\n this._weekdaysShortRegex = defaultWeekdaysShortRegex;\n }\n return this._weekdaysShortStrictRegex && isStrict\n ? this._weekdaysShortStrictRegex\n : this._weekdaysShortRegex;\n }\n }\n\n function weekdaysMinRegex(isStrict) {\n if (this._weekdaysParseExact) {\n if (!hasOwnProp(this, '_weekdaysRegex')) {\n computeWeekdaysParse.call(this);\n }\n if (isStrict) {\n return this._weekdaysMinStrictRegex;\n } else {\n return this._weekdaysMinRegex;\n }\n } else {\n if (!hasOwnProp(this, '_weekdaysMinRegex')) {\n this._weekdaysMinRegex = defaultWeekdaysMinRegex;\n }\n return this._weekdaysMinStrictRegex && isStrict\n ? this._weekdaysMinStrictRegex\n : this._weekdaysMinRegex;\n }\n }\n\n function computeWeekdaysParse() {\n function cmpLenRev(a, b) {\n return b.length - a.length;\n }\n\n var minPieces = [],\n shortPieces = [],\n longPieces = [],\n mixedPieces = [],\n i,\n mom,\n minp,\n shortp,\n longp;\n for (i = 0; i < 7; i++) {\n // make the regex if we don't have it already\n mom = createUTC([2000, 1]).day(i);\n minp = regexEscape(this.weekdaysMin(mom, ''));\n shortp = regexEscape(this.weekdaysShort(mom, ''));\n longp = regexEscape(this.weekdays(mom, ''));\n minPieces.push(minp);\n shortPieces.push(shortp);\n longPieces.push(longp);\n mixedPieces.push(minp);\n mixedPieces.push(shortp);\n mixedPieces.push(longp);\n }\n // Sorting makes sure if one weekday (or abbr) is a prefix of another it\n // will match the longer piece.\n minPieces.sort(cmpLenRev);\n shortPieces.sort(cmpLenRev);\n longPieces.sort(cmpLenRev);\n mixedPieces.sort(cmpLenRev);\n\n this._weekdaysRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');\n this._weekdaysShortRegex = this._weekdaysRegex;\n this._weekdaysMinRegex = this._weekdaysRegex;\n\n this._weekdaysStrictRegex = new RegExp(\n '^(' + longPieces.join('|') + ')',\n 'i'\n );\n this._weekdaysShortStrictRegex = new RegExp(\n '^(' + shortPieces.join('|') + ')',\n 'i'\n );\n this._weekdaysMinStrictRegex = new RegExp(\n '^(' + minPieces.join('|') + ')',\n 'i'\n );\n }\n\n function set(config) {\n var prop, i;\n clearMonthsParseCache(this, config);\n clearWeekdaysParseCache(this, config);\n for (i in config) {\n if (hasOwnProp(config, i)) {\n prop = config[i];\n if (isFunction(prop)) {\n this[i] = prop;\n } else {\n this['_' + i] = prop;\n }\n }\n }\n this._config = config;\n // Lenient ordinal parsing accepts just a number in addition to\n // number + (possibly) stuff coming from _dayOfMonthOrdinalParse.\n // TODO: Remove \"ordinalParse\" fallback in next major release.\n this._dayOfMonthOrdinalParseLenient = new RegExp(\n (this._dayOfMonthOrdinalParse.source || this._ordinalParse.source) +\n '|' +\n /\\d{1,2}/.source\n );\n }\n\n function mergeConfigs(parentConfig, childConfig) {\n var res = extend({}, parentConfig),\n prop;\n for (prop in childConfig) {\n if (hasOwnProp(childConfig, prop)) {\n if (isObject(parentConfig[prop]) && isObject(childConfig[prop])) {\n res[prop] = {};\n extend(res[prop], parentConfig[prop]);\n extend(res[prop], childConfig[prop]);\n } else if (childConfig[prop] != null) {\n res[prop] = childConfig[prop];\n } else {\n delete res[prop];\n }\n }\n }\n for (prop in parentConfig) {\n if (\n hasOwnProp(parentConfig, prop) &&\n !hasOwnProp(childConfig, prop) &&\n isObject(parentConfig[prop])\n ) {\n // make sure changes to properties don't modify parent config\n res[prop] = extend({}, res[prop]);\n }\n }\n return res;\n }\n\n function Locale(config) {\n if (config != null) {\n this.set(config);\n }\n }\n\n var keys;\n\n if (Object.keys) {\n keys = Object.keys;\n } else {\n keys = function (obj) {\n var i,\n res = [];\n for (i in obj) {\n if (hasOwnProp(obj, i)) {\n res.push(i);\n }\n }\n return res;\n };\n }\n\n var defaultCalendar = {\n sameDay: '[Today at] LT',\n nextDay: '[Tomorrow at] LT',\n nextWeek: 'dddd [at] LT',\n lastDay: '[Yesterday at] LT',\n lastWeek: '[Last] dddd [at] LT',\n sameElse: 'L',\n };\n\n function calendar$1(key, mom, now) {\n var output = this._calendar[key] || this._calendar['sameElse'];\n return isFunction(output) ? output.call(mom, now) : output;\n }\n\n var defaultLongDateFormat = {\n LTS: 'h:mm:ss A',\n LT: 'h:mm A',\n L: 'MM/DD/YYYY',\n LL: 'MMMM D, YYYY',\n LLL: 'MMMM D, YYYY h:mm A',\n LLLL: 'dddd, MMMM D, YYYY h:mm A',\n };\n\n function longDateFormat(key) {\n var format = this._longDateFormat[key],\n formatUpper = this._longDateFormat[key.toUpperCase()],\n formatCache = this._longDateFormatCache;\n\n if (format || !formatUpper) {\n return format;\n }\n\n if (\n formatCache &&\n formatCache[key] &&\n formatCache[key].formatUpper === formatUpper\n ) {\n return formatCache[key].format;\n }\n\n format = formatUpper\n .match(formattingTokens)\n .map(function (tok) {\n if (\n tok === 'MMMM' ||\n tok === 'MM' ||\n tok === 'DD' ||\n tok === 'dddd'\n ) {\n return tok.slice(1);\n }\n return tok;\n })\n .join('');\n\n if (!formatCache) {\n formatCache = this._longDateFormatCache = {};\n }\n formatCache[key] = {\n formatUpper: formatUpper,\n format: format,\n };\n return format;\n }\n\n var defaultInvalidDate = 'Invalid date';\n\n function invalidDate() {\n return this._invalidDate;\n }\n\n var defaultOrdinal = '%d',\n defaultDayOfMonthOrdinalParse = /\\d{1,2}/;\n\n function ordinal(number) {\n return this._ordinal.replace('%d', number);\n }\n\n var defaultRelativeTime = {\n future: 'in %s',\n past: '%s ago',\n s: 'a few seconds',\n ss: '%d seconds',\n m: 'a minute',\n mm: '%d minutes',\n h: 'an hour',\n hh: '%d hours',\n d: 'a day',\n dd: '%d days',\n w: 'a week',\n ww: '%d weeks',\n M: 'a month',\n MM: '%d months',\n y: 'a year',\n yy: '%d years',\n };\n\n function relativeTimeWithoutPostformat(\n number,\n withoutSuffix,\n string,\n isFuture\n ) {\n var output = this._relativeTime[string];\n return isFunction(output)\n ? output(number, withoutSuffix, string, isFuture)\n : output.replace(/%d/i, number);\n }\n\n function relativeTime$1(number, withoutSuffix, string, isFuture) {\n return this.postformat(\n relativeTimeWithoutPostformat.call(\n this,\n number,\n withoutSuffix,\n string,\n isFuture\n )\n );\n }\n\n function pastFutureWithoutPostformat(diff, output) {\n var format = this._relativeTime[diff > 0 ? 'future' : 'past'];\n return isFunction(format) ? format(output) : format.replace(/%s/i, output);\n }\n\n function pastFuture(diff, output) {\n return this.postformat(\n pastFutureWithoutPostformat.call(this, diff, output)\n );\n }\n\n function createDate(y, m, d, h, M, s, ms) {\n // can't just apply() to create a date:\n // https://stackoverflow.com/q/181348\n var date;\n // the date constructor remaps years 0-99 to 1900-1999\n if (y < 100 && y >= 0) {\n // preserve leap years using a full 400 year cycle, then reset\n date = new Date(y + 400, m, d, h, M, s, ms);\n if (isFinite(date.getFullYear())) {\n date.setFullYear(y);\n }\n } else {\n date = new Date(y, m, d, h, M, s, ms);\n }\n\n return date;\n }\n\n function createUTCDate(y) {\n var date, args;\n // the Date.UTC function remaps years 0-99 to 1900-1999\n if (y < 100 && y >= 0) {\n args = Array.prototype.slice.call(arguments);\n // preserve leap years using a full 400 year cycle, then reset\n args[0] = y + 400;\n date = new Date(Date.UTC.apply(null, args));\n if (isFinite(date.getUTCFullYear())) {\n date.setUTCFullYear(y);\n }\n } else {\n date = new Date(Date.UTC.apply(null, arguments));\n }\n\n return date;\n }\n\n // start-of-first-week - start-of-year\n function firstWeekOffset(year, dow, doy) {\n var // first-week day -- which january is always in the first week (4 for iso, 1 for other)\n fwd = 7 + dow - doy,\n // first-week day local weekday -- which local weekday is fwd\n fwdlw = (7 + createUTCDate(year, 0, fwd).getUTCDay() - dow) % 7;\n\n return -fwdlw + fwd - 1;\n }\n\n // https://en.wikipedia.org/wiki/ISO_week_date#Calculating_a_date_given_the_year.2C_week_number_and_weekday\n function dayOfYearFromWeeks(year, week, weekday, dow, doy) {\n var localWeekday = (7 + weekday - dow) % 7,\n weekOffset = firstWeekOffset(year, dow, doy),\n dayOfYear = 1 + 7 * (week - 1) + localWeekday + weekOffset,\n resYear,\n resDayOfYear;\n\n if (dayOfYear <= 0) {\n resYear = year - 1;\n resDayOfYear = daysInYear(resYear) + dayOfYear;\n } else if (dayOfYear > daysInYear(year)) {\n resYear = year + 1;\n resDayOfYear = dayOfYear - daysInYear(year);\n } else {\n resYear = year;\n resDayOfYear = dayOfYear;\n }\n\n return {\n year: resYear,\n dayOfYear: resDayOfYear,\n };\n }\n\n function weekOfYearFromDayOfYear(year, dayOfYear, dow, doy) {\n var weekOffset = firstWeekOffset(year, dow, doy),\n week = Math.floor((dayOfYear - weekOffset - 1) / 7) + 1,\n resWeek,\n resYear;\n\n if (week < 1) {\n resYear = year - 1;\n resWeek = week + weeksInYear(resYear, dow, doy);\n } else if (week > weeksInYear(year, dow, doy)) {\n resWeek = week - weeksInYear(year, dow, doy);\n resYear = year + 1;\n } else {\n resYear = year;\n resWeek = week;\n }\n\n return {\n week: resWeek,\n year: resYear,\n };\n }\n\n function weekOfYear(mom, dow, doy) {\n return weekOfYearFromDayOfYear(mom.year(), mom.dayOfYear(), dow, doy);\n }\n\n function weekOfYearFromDate(year, month, date, dow, doy) {\n var dayOfYear =\n Math.round(\n (createUTCDate(year, month, date) - createUTCDate(year, 0, 1)) /\n 864e5\n ) + 1;\n\n return weekOfYearFromDayOfYear(year, dayOfYear, dow, doy);\n }\n\n function weeksInYear(year, dow, doy) {\n var weekOffset = firstWeekOffset(year, dow, doy),\n weekOffsetNext = firstWeekOffset(year + 1, dow, doy);\n return (daysInYear(year) - weekOffset + weekOffsetNext) / 7;\n }\n\n // FORMATTING\n\n addFormatToken('w', ['ww', 2], 'wo', 'week');\n addFormatToken('W', ['WW', 2], 'Wo', 'isoWeek');\n\n // PARSING\n\n addRegexToken('w', match1to2, match1to2NoLeadingZero);\n addRegexToken('ww', match1to2, match2);\n addRegexToken('W', match1to2, match1to2NoLeadingZero);\n addRegexToken('WW', match1to2, match2);\n\n addWeekParseToken(\n ['w', 'ww', 'W', 'WW'],\n function (input, week, config, token) {\n week[token.substr(0, 1)] = toInt(input);\n }\n );\n\n // HELPERS\n\n // LOCALES\n\n function localeWeek(mom) {\n return weekOfYear(mom, this._week.dow, this._week.doy).week;\n }\n\n var defaultLocaleWeek = {\n dow: 0, // Sunday is the first day of the week.\n doy: 6, // The week that contains Jan 6th is the first week of the year.\n };\n\n function localeFirstDayOfWeek() {\n return this._week.dow;\n }\n\n function localeFirstDayOfYear() {\n return this._week.doy;\n }\n\n // MOMENTS\n\n function getSetWeek(input) {\n var week = this.localeData().week(this);\n return input == null ? week : this.add((input - week) * 7, 'd');\n }\n\n function getSetISOWeek(input) {\n var week = weekOfYear(this, 1, 4).week;\n return input == null ? week : this.add((input - week) * 7, 'd');\n }\n\n // FORMATTING\n\n function hFormat() {\n return this.hours() % 12 || 12;\n }\n\n function kFormat() {\n return this.hours() || 24;\n }\n\n addFormatToken('H', ['HH', 2], 0, 'hour');\n addFormatToken('h', ['hh', 2], 0, hFormat);\n addFormatToken('k', ['kk', 2], 0, kFormat);\n\n addFormatToken('hmm', 0, 0, function () {\n return '' + hFormat.apply(this) + zeroFill(this.minutes(), 2);\n });\n\n addFormatToken('hmmss', 0, 0, function () {\n return (\n '' +\n hFormat.apply(this) +\n zeroFill(this.minutes(), 2) +\n zeroFill(this.seconds(), 2)\n );\n });\n\n addFormatToken('Hmm', 0, 0, function () {\n return '' + this.hours() + zeroFill(this.minutes(), 2);\n });\n\n addFormatToken('Hmmss', 0, 0, function () {\n return (\n '' +\n this.hours() +\n zeroFill(this.minutes(), 2) +\n zeroFill(this.seconds(), 2)\n );\n });\n\n function meridiem(token, lowercase) {\n addFormatToken(token, 0, 0, function () {\n return this.localeData().meridiem(\n this.hours(),\n this.minutes(),\n lowercase\n );\n });\n }\n\n meridiem('a', true);\n meridiem('A', false);\n\n // PARSING\n\n function matchMeridiem(isStrict, locale) {\n return locale._meridiemParse;\n }\n\n addRegexToken('a', matchMeridiem);\n addRegexToken('A', matchMeridiem);\n addRegexToken('H', match1to2, match1to2HasZero);\n addRegexToken('h', match1to2, match1to2NoLeadingZero);\n addRegexToken('k', match1to2, match1to2NoLeadingZero);\n addRegexToken('HH', match1to2, match2);\n addRegexToken('hh', match1to2, match2);\n addRegexToken('kk', match1to2, match2);\n\n addRegexToken('hmm', match3to4);\n addRegexToken('hmmss', match5to6);\n addRegexToken('Hmm', match3to4);\n addRegexToken('Hmmss', match5to6);\n\n addParseToken(['H', 'HH'], HOUR);\n addParseToken(['k', 'kk'], function (input, array, config) {\n var kInput = toInt(input);\n array[HOUR] = kInput === 24 ? 0 : kInput;\n });\n addParseToken(['a', 'A'], function (input, array, config) {\n config._isPm = config._locale.isPM(input);\n config._meridiem = input;\n });\n addParseToken(['h', 'hh'], function (input, array, config) {\n array[HOUR] = toInt(input);\n getParsingFlags(config).bigHour = true;\n });\n addParseToken('hmm', function (input, array, config) {\n var pos = input.length - 2;\n array[HOUR] = toInt(input.substr(0, pos));\n array[MINUTE] = toInt(input.substr(pos));\n getParsingFlags(config).bigHour = true;\n });\n addParseToken('hmmss', function (input, array, config) {\n var pos1 = input.length - 4,\n pos2 = input.length - 2;\n array[HOUR] = toInt(input.substr(0, pos1));\n array[MINUTE] = toInt(input.substr(pos1, 2));\n array[SECOND] = toInt(input.substr(pos2));\n getParsingFlags(config).bigHour = true;\n });\n addParseToken('Hmm', function (input, array, config) {\n var pos = input.length - 2;\n array[HOUR] = toInt(input.substr(0, pos));\n array[MINUTE] = toInt(input.substr(pos));\n });\n addParseToken('Hmmss', function (input, array, config) {\n var pos1 = input.length - 4,\n pos2 = input.length - 2;\n array[HOUR] = toInt(input.substr(0, pos1));\n array[MINUTE] = toInt(input.substr(pos1, 2));\n array[SECOND] = toInt(input.substr(pos2));\n });\n\n // LOCALES\n\n function localeIsPM(input) {\n // IE8 Quirks Mode & IE7 Standards Mode do not allow accessing strings like arrays\n // Using charAt should be more compatible.\n return (input + '').toLowerCase().charAt(0) === 'p';\n }\n\n var defaultLocaleMeridiemParse = /[ap]\\.?m?\\.?/i,\n // Setting the hour should keep the time, because the user explicitly\n // specified which hour they want. So trying to maintain the same hour (in\n // a new timezone) makes sense. Adding/subtracting hours does not follow\n // this rule.\n getSetHour = makeGetSet('Hours', true);\n\n function localeMeridiem(hours, minutes, isLower) {\n if (hours > 11) {\n return isLower ? 'pm' : 'PM';\n } else {\n return isLower ? 'am' : 'AM';\n }\n }\n\n var baseConfig = {\n calendar: defaultCalendar,\n longDateFormat: defaultLongDateFormat,\n invalidDate: defaultInvalidDate,\n ordinal: defaultOrdinal,\n dayOfMonthOrdinalParse: defaultDayOfMonthOrdinalParse,\n relativeTime: defaultRelativeTime,\n\n months: defaultLocaleMonths,\n monthsShort: defaultLocaleMonthsShort,\n\n week: defaultLocaleWeek,\n\n weekdays: defaultLocaleWeekdays,\n weekdaysMin: defaultLocaleWeekdaysMin,\n weekdaysShort: defaultLocaleWeekdaysShort,\n\n meridiemParse: defaultLocaleMeridiemParse,\n };\n\n // internal storage for locale config files\n var locales = {},\n localeFamilies = {},\n globalLocale;\n\n function commonPrefix(arr1, arr2) {\n var i,\n minl = Math.min(arr1.length, arr2.length);\n for (i = 0; i < minl; i += 1) {\n if (arr1[i] !== arr2[i]) {\n return i;\n }\n }\n return minl;\n }\n\n function normalizeLocale(key) {\n return key ? key.toLowerCase().replace('_', '-') : key;\n }\n\n // pick the locale from the array\n // try ['en-au', 'en-gb'] as 'en-au', 'en-gb', 'en', as in move through the list trying each\n // substring from most specific to least, but move to the next array item if it's a more specific variant than the current root\n function chooseLocale(names) {\n var i = 0,\n j,\n next,\n locale,\n split;\n\n while (i < names.length) {\n split = normalizeLocale(names[i]).split('-');\n j = split.length;\n next = normalizeLocale(names[i + 1]);\n next = next ? next.split('-') : null;\n while (j > 0) {\n locale = loadLocale(split.slice(0, j).join('-'));\n if (locale) {\n return locale;\n }\n if (\n next &&\n next.length >= j &&\n commonPrefix(split, next) >= j - 1\n ) {\n //the next array item is better than a shallower substring of this one\n break;\n }\n j--;\n }\n i++;\n }\n return globalLocale;\n }\n\n function isLocaleNameSane(name) {\n // Only canonical locale module names are safe to append to the require path.\n return typeof name === 'string' && /^[a-z0-9]+(?:-[a-z0-9]+)*$/.test(name);\n }\n\n function loadLocale(name) {\n var oldLocale = null,\n aliasedRequire,\n normalizedName;\n\n // Preserve exact custom locale names before trying the canonical built-in name.\n // Use hasOwnProp rather than a plain lookup so that names like \"__proto__\",\n // \"constructor\", or \"prototype\" can't resolve to an inherited Object.prototype\n // property instead of a real (or missing) locale entry.\n if (hasOwnProp(locales, name)) {\n return locales[name];\n }\n\n normalizedName = normalizeLocale(name);\n if (hasOwnProp(locales, normalizedName)) {\n return locales[normalizedName];\n }\n\n // TODO: Find a better way to register and load all the locales in Node\n if (\n typeof module !== 'undefined' &&\n module &&\n module.exports &&\n isLocaleNameSane(normalizedName)\n ) {\n try {\n oldLocale = globalLocale._abbr;\n aliasedRequire = require;\n aliasedRequire('./locale/' + normalizedName);\n getSetGlobalLocale(oldLocale);\n } catch (e) {\n // mark as not found to avoid repeating expensive file require call causing high CPU\n // when trying to find en-US, en_US, en-us for every format call\n locales[normalizedName] = null; // null means not found\n }\n }\n if (hasOwnProp(locales, normalizedName)) {\n return locales[normalizedName];\n }\n }\n\n // This function will load locale and then set the global locale. If\n // no arguments are passed in, it will simply return the current global\n // locale key.\n function getSetGlobalLocale(key, values) {\n var data;\n if (key) {\n if (isUndefined(values)) {\n data = getLocale(key);\n } else {\n data = defineLocale(key, values);\n }\n\n if (data) {\n // moment.duration._locale = moment._locale = data;\n globalLocale = data;\n } else {\n if (typeof console !== 'undefined' && console.warn) {\n //warn user if arguments are passed but the locale could not be set\n console.warn(\n 'Locale ' + key + ' not found. Did you forget to load it?'\n );\n }\n }\n }\n\n return globalLocale._abbr;\n }\n\n function defineLocale(name, config) {\n if (config !== null) {\n var locale,\n parentConfig = baseConfig;\n config.abbr = name;\n if (locales[name] != null) {\n deprecateSimple(\n 'defineLocaleOverride',\n 'use moment.updateLocale(localeName, config) to change ' +\n 'an existing locale. moment.defineLocale(localeName, ' +\n 'config) should only be used for creating a new locale ' +\n 'See http://momentjs.com/guides/#/warnings/define-locale/ for more info.'\n );\n parentConfig = locales[name]._config;\n } else if (config.parentLocale != null) {\n if (locales[config.parentLocale] != null) {\n parentConfig = locales[config.parentLocale]._config;\n } else {\n locale = loadLocale(config.parentLocale);\n if (locale != null) {\n parentConfig = locale._config;\n } else {\n if (!localeFamilies[config.parentLocale]) {\n localeFamilies[config.parentLocale] = [];\n }\n localeFamilies[config.parentLocale].push({\n name: name,\n config: config,\n });\n return null;\n }\n }\n }\n locales[name] = new Locale(mergeConfigs(parentConfig, config));\n\n if (localeFamilies[name]) {\n localeFamilies[name].forEach(function (x) {\n defineLocale(x.name, x.config);\n });\n }\n\n // backwards compat for now: also set the locale\n // make sure we set the locale AFTER all child locales have been\n // created, so we won't end up with the child locale set.\n getSetGlobalLocale(name);\n\n return locales[name];\n } else {\n // useful for testing\n delete locales[name];\n return null;\n }\n }\n\n function updateLocale(name, config) {\n var locale,\n tmpLocale = loadLocale(name),\n parentConfig = baseConfig;\n\n if (tmpLocale != null) {\n name = tmpLocale._abbr;\n }\n\n if (config != null) {\n if (locales[name] != null && locales[name].parentLocale != null) {\n // Update existing child locale in-place to avoid memory-leaks\n locales[name].set(mergeConfigs(locales[name]._config, config));\n } else {\n // MERGE\n if (tmpLocale != null) {\n parentConfig = tmpLocale._config;\n }\n config = mergeConfigs(parentConfig, config);\n if (tmpLocale == null) {\n // updateLocale is called for creating a new locale\n // Set abbr so it will have a name (getters return\n // undefined otherwise).\n config.abbr = name;\n }\n locale = new Locale(config);\n locale.parentLocale = locales[name];\n locales[name] = locale;\n }\n\n // backwards compat for now: also set the locale\n getSetGlobalLocale(name);\n } else {\n // pass null for config to unupdate, useful for tests\n if (locales[name] != null) {\n if (locales[name].parentLocale != null) {\n locales[name] = locales[name].parentLocale;\n if (name === getSetGlobalLocale()) {\n getSetGlobalLocale(name);\n }\n } else if (locales[name] != null) {\n delete locales[name];\n }\n }\n }\n return locales[name];\n }\n\n // returns locale data\n function getLocale(key) {\n var locale;\n\n if (key && key._locale && key._locale._abbr) {\n key = key._locale._abbr;\n }\n\n if (!key) {\n return globalLocale;\n }\n\n if (!isArray(key)) {\n //short-circuit everything else\n locale = loadLocale(key);\n if (locale) {\n return locale;\n }\n key = [key];\n }\n\n return chooseLocale(key);\n }\n\n function listLocales() {\n return keys(locales);\n }\n\n function checkOverflow(m) {\n var overflow,\n a = m._a;\n\n if (a && getParsingFlags(m).overflow === -2) {\n overflow =\n a[MONTH] < 0 || a[MONTH] > 11\n ? MONTH\n : a[DATE] < 1 || a[DATE] > daysInMonth(a[YEAR], a[MONTH])\n ? DATE\n : a[HOUR] < 0 ||\n a[HOUR] > 24 ||\n (a[HOUR] === 24 &&\n (a[MINUTE] !== 0 ||\n a[SECOND] !== 0 ||\n a[MILLISECOND] !== 0))\n ? HOUR\n : a[MINUTE] < 0 || a[MINUTE] > 59\n ? MINUTE\n : a[SECOND] < 0 || a[SECOND] > 59\n ? SECOND\n : a[MILLISECOND] < 0 || a[MILLISECOND] > 999\n ? MILLISECOND\n : -1;\n\n if (\n getParsingFlags(m)._overflowDayOfYear &&\n (overflow < YEAR || overflow > DATE)\n ) {\n overflow = DATE;\n }\n if (getParsingFlags(m)._overflowWeeks && overflow === -1) {\n overflow = WEEK;\n }\n if (getParsingFlags(m)._overflowWeekday && overflow === -1) {\n overflow = WEEKDAY;\n }\n\n getParsingFlags(m).overflow = overflow;\n }\n\n return m;\n }\n\n // iso 8601 regex\n // 0000-00-00 0000-W00 or 0000-W00-0 + T + 00 or 00:00 or 00:00:00 or 00:00:00.000 + +00:00 or +0000 or +00)\n var extendedIsoRegex =\n /^\\s*((?:[+-]\\d{6}|\\d{4})-(?:\\d\\d-\\d\\d|W\\d\\d-\\d|W\\d\\d|\\d\\d\\d|\\d\\d))(?:(T| )(\\d\\d(?::\\d\\d(?::\\d\\d(?:[.,]\\d+)?)?)?)([+-]\\d\\d(?::?\\d\\d)?|\\s*Z)?)?$/,\n basicIsoRegex =\n /^\\s*((?:[+-]\\d{6}|\\d{4})(?:\\d\\d\\d\\d|W\\d\\d\\d|W\\d\\d|\\d\\d\\d|\\d\\d|))(?:(T| )(\\d\\d(?:\\d\\d(?:\\d\\d(?:[.,]\\d+)?)?)?)([+-]\\d\\d(?::?\\d\\d)?|\\s*Z)?)?$/,\n tzRegex = /Z|[+-]\\d\\d(?::?\\d\\d)?/,\n isoDates = [\n ['YYYYYY-MM-DD', /[+-]\\d{6}-\\d\\d-\\d\\d/],\n ['YYYY-MM-DD', /\\d{4}-\\d\\d-\\d\\d/],\n ['GGGG-[W]WW-E', /\\d{4}-W\\d\\d-\\d/],\n ['GGGG-[W]WW', /\\d{4}-W\\d\\d/, false],\n ['YYYY-DDD', /\\d{4}-\\d{3}/],\n ['YYYY-MM', /\\d{4}-\\d\\d/, false],\n ['YYYYYYMMDD', /[+-]\\d{10}/],\n ['YYYYMMDD', /\\d{8}/],\n ['GGGG[W]WWE', /\\d{4}W\\d{3}/],\n ['GGGG[W]WW', /\\d{4}W\\d{2}/, false],\n ['YYYYDDD', /\\d{7}/],\n ['YYYYMM', /\\d{6}/, false],\n ['YYYY', /\\d{4}/, false],\n ],\n // iso time formats and regexes\n isoTimes = [\n ['HH:mm:ss.SSSS', /\\d\\d:\\d\\d:\\d\\d\\.\\d+/],\n ['HH:mm:ss,SSSS', /\\d\\d:\\d\\d:\\d\\d,\\d+/],\n ['HH:mm:ss', /\\d\\d:\\d\\d:\\d\\d/],\n ['HH:mm', /\\d\\d:\\d\\d/],\n ['HHmmss.SSSS', /\\d\\d\\d\\d\\d\\d\\.\\d+/],\n ['HHmmss,SSSS', /\\d\\d\\d\\d\\d\\d,\\d+/],\n ['HHmmss', /\\d\\d\\d\\d\\d\\d/],\n ['HHmm', /\\d\\d\\d\\d/],\n ['HH', /\\d\\d/],\n ],\n aspNetJsonRegex = /^\\/?Date\\((-?\\d+)/i,\n // RFC 2822 regex: For details see https://tools.ietf.org/html/rfc2822#section-3.3\n rfc2822 =\n /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\\s)?(\\d{1,2})\\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\\s(\\d{2,4})\\s(\\d\\d):(\\d\\d)(?::(\\d\\d))?\\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\\d{4}))$/,\n obsOffsets = {\n UT: 0,\n GMT: 0,\n EDT: -4 * 60,\n EST: -5 * 60,\n CDT: -5 * 60,\n CST: -6 * 60,\n MDT: -6 * 60,\n MST: -7 * 60,\n PDT: -7 * 60,\n PST: -8 * 60,\n };\n\n // date from iso format\n function configFromISO(config) {\n var i,\n l,\n string = config._i,\n match = extendedIsoRegex.exec(string) || basicIsoRegex.exec(string),\n allowTime,\n dateFormat,\n timeFormat,\n tzFormat,\n isoDatesLen = isoDates.length,\n isoTimesLen = isoTimes.length;\n\n if (match) {\n getParsingFlags(config).iso = true;\n for (i = 0, l = isoDatesLen; i < l; i++) {\n if (isoDates[i][1].exec(match[1])) {\n dateFormat = isoDates[i][0];\n allowTime = isoDates[i][2] !== false;\n break;\n }\n }\n if (dateFormat == null) {\n config._isValid = false;\n return;\n }\n if (match[3]) {\n for (i = 0, l = isoTimesLen; i < l; i++) {\n if (isoTimes[i][1].exec(match[3])) {\n // match[2] should be 'T' or space\n timeFormat = (match[2] || ' ') + isoTimes[i][0];\n break;\n }\n }\n if (timeFormat == null) {\n config._isValid = false;\n return;\n }\n }\n if (!allowTime && timeFormat != null) {\n config._isValid = false;\n return;\n }\n if (match[4]) {\n if (tzRegex.exec(match[4])) {\n tzFormat = 'Z';\n } else {\n config._isValid = false;\n return;\n }\n }\n config._f = dateFormat + (timeFormat || '') + (tzFormat || '');\n configFromStringAndFormat(config);\n } else {\n config._isValid = false;\n }\n }\n\n function extractFromRFC2822Strings(\n yearStr,\n monthStr,\n dayStr,\n hourStr,\n minuteStr,\n secondStr\n ) {\n var result = [\n untruncateYear(yearStr),\n defaultLocaleMonthsShort.indexOf(monthStr),\n parseInt(dayStr, 10),\n parseInt(hourStr, 10),\n parseInt(minuteStr, 10),\n ];\n\n if (secondStr) {\n result.push(parseInt(secondStr, 10));\n }\n\n return result;\n }\n\n function untruncateYear(yearStr) {\n var year = parseInt(yearStr, 10);\n if (year <= 49) {\n return 2000 + year;\n } else if (year <= 999) {\n return 1900 + year;\n }\n return year;\n }\n\n function preprocessRFC2822(s) {\n // Remove comments and folding whitespace and replace multiple-spaces with a single space\n return s\n .replace(/\\([^()]*\\)|[\\n\\t]/g, ' ')\n .replace(/(\\s\\s+)/g, ' ')\n .replace(/^\\s\\s*/, '')\n .replace(/\\s\\s*$/, '');\n }\n\n function checkWeekday(weekdayStr, parsedInput, config) {\n if (weekdayStr) {\n // TODO: Replace the vanilla JS Date object with an independent day-of-week check.\n var weekdayProvided = defaultLocaleWeekdaysShort.indexOf(weekdayStr),\n weekdayActual = new Date(\n parsedInput[0],\n parsedInput[1],\n parsedInput[2]\n ).getDay();\n if (weekdayProvided !== weekdayActual) {\n getParsingFlags(config).weekdayMismatch = true;\n config._isValid = false;\n return false;\n }\n }\n return true;\n }\n\n function calculateOffset(obsOffset, militaryOffset, numOffset) {\n if (obsOffset) {\n return obsOffsets[obsOffset];\n } else if (militaryOffset) {\n // the only allowed military tz is Z\n return 0;\n } else {\n var hm = parseInt(numOffset, 10),\n m = hm % 100,\n h = (hm - m) / 100;\n return h * 60 + m;\n }\n }\n\n // date and time from ref 2822 format\n function configFromRFC2822(config) {\n var match = rfc2822.exec(preprocessRFC2822(config._i)),\n parsedArray;\n if (match) {\n parsedArray = extractFromRFC2822Strings(\n match[4],\n match[3],\n match[2],\n match[5],\n match[6],\n match[7]\n );\n if (!checkWeekday(match[1], parsedArray, config)) {\n return;\n }\n\n config._a = parsedArray;\n config._tzm = calculateOffset(match[8], match[9], match[10]);\n\n config._d = createUTCDate.apply(null, config._a);\n config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);\n\n getParsingFlags(config).rfc2822 = true;\n } else {\n config._isValid = false;\n }\n }\n\n // date from 1) ASP.NET, 2) ISO, 3) RFC 2822 formats, or 4) optional fallback if parsing isn't strict\n function configFromString(config) {\n var matched = aspNetJsonRegex.exec(config._i);\n if (matched !== null) {\n config._d = new Date(+matched[1]);\n return;\n }\n\n configFromISO(config);\n if (config._isValid === false) {\n delete config._isValid;\n } else {\n return;\n }\n\n configFromRFC2822(config);\n if (config._isValid === false) {\n delete config._isValid;\n } else {\n return;\n }\n\n if (config._strict) {\n config._isValid = false;\n } else {\n // Final attempt, use Input Fallback\n hooks.createFromInputFallback(config);\n }\n }\n\n hooks.createFromInputFallback = deprecate(\n 'value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), ' +\n 'which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are ' +\n 'discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.',\n function (config) {\n config._d = new Date(config._i + (config._useUTC ? ' UTC' : ''));\n }\n );\n\n // Pick the first defined of two or three arguments.\n function defaults(a, b, c) {\n if (a != null) {\n return a;\n }\n if (b != null) {\n return b;\n }\n return c;\n }\n\n function currentDateArray(config, now, forWeek) {\n var hadWeekContext = Object.prototype.hasOwnProperty.call(\n config,\n '_isDefaultDatePartsForWeek'\n ),\n weekContext = config._isDefaultDatePartsForWeek;\n\n // hooks is actually the exported moment object\n config._isDefaultDatePartsForWeek = !!forWeek;\n try {\n return hooks._getDefaultDateParts(config, now, forWeek);\n } finally {\n if (hadWeekContext) {\n config._isDefaultDatePartsForWeek = weekContext;\n } else {\n delete config._isDefaultDatePartsForWeek;\n }\n }\n }\n\n function currentDateNow(config) {\n var now = config._defaultDatePartsNow;\n\n if (!now) {\n return hooks.now();\n }\n if (!now.hasValue) {\n now.value = hooks.now();\n now.hasValue = true;\n }\n return now.value;\n }\n\n // Internal hook for extensions that supply omitted calendar fields.\n function getDefaultDateParts(config, now, forWeek) {\n var useWeekDefaults = forWeek || config._isDefaultDatePartsForWeek,\n nowValue = useWeekDefaults ? createLocal(now) : new Date(now);\n if (useWeekDefaults) {\n return [nowValue.year(), nowValue.month(), nowValue.date()];\n }\n if (config._useUTC) {\n return [\n nowValue.getUTCFullYear(),\n nowValue.getUTCMonth(),\n nowValue.getUTCDate(),\n ];\n }\n return [nowValue.getFullYear(), nowValue.getMonth(), nowValue.getDate()];\n }\n\n hooks._getDefaultDateParts = getDefaultDateParts;\n\n // convert an array to a date.\n // the array should mirror the parameters below\n // note: all values past the year are optional and will default to the lowest possible value.\n // [year, month, day , hour, minute, second, millisecond]\n function configFromArray(config) {\n var i,\n date,\n input = [],\n now,\n currentDate,\n expectedWeekday,\n yearToUse,\n dateIsDefaulted;\n\n if (config._d) {\n return;\n }\n\n if (\n config._a[YEAR] == null ||\n config._a[MONTH] == null ||\n config._a[DATE] == null\n ) {\n now = currentDateNow(config);\n currentDate = currentDateArray(config, now);\n }\n\n //compute day of the year from weeks and weekdays\n if (config._w && config._a[DATE] == null && config._a[MONTH] == null) {\n dayOfYearFromWeekInfo(config, currentDateArray(config, now, true));\n }\n\n //if the day of the year is set, figure out what it is\n if (config._dayOfYear != null) {\n yearToUse =\n config._a[YEAR] != null ? config._a[YEAR] : currentDate[YEAR];\n\n if (\n config._dayOfYear > daysInYear(yearToUse) ||\n config._dayOfYear === 0\n ) {\n getParsingFlags(config)._overflowDayOfYear = true;\n }\n\n date = createUTCDate(yearToUse, 0, config._dayOfYear);\n config._a[MONTH] = date.getUTCMonth();\n config._a[DATE] = date.getUTCDate();\n }\n\n dateIsDefaulted =\n config._a[YEAR] == null ||\n config._a[MONTH] == null ||\n config._a[DATE] == null;\n\n // Default to current date.\n // * if no year, month, day of month are given, default to today\n // * if day of month is given, default month and year\n // * if month is given, default only year\n // * if year is given, don't default anything\n for (i = 0; i < 3 && config._a[i] == null; ++i) {\n config._a[i] = input[i] = currentDate[i];\n }\n\n // Zero out whatever was not defaulted, including time\n for (; i < 7; i++) {\n config._a[i] = input[i] =\n config._a[i] == null ? (i === 2 ? 1 : 0) : config._a[i];\n }\n\n // Check for 24:00:00.000\n if (\n config._a[HOUR] === 24 &&\n config._a[MINUTE] === 0 &&\n config._a[SECOND] === 0 &&\n config._a[MILLISECOND] === 0\n ) {\n config._nextDay = true;\n config._a[HOUR] = 0;\n }\n\n config._d = (config._useUTC ? createUTCDate : createDate).apply(\n null,\n input\n );\n expectedWeekday = config._useUTC\n ? config._d.getUTCDay()\n : config._d.getDay();\n\n // Apply timezone offset from input. The actual utcOffset can be changed\n // with parseZone.\n if (config._tzm != null) {\n config._d.setUTCMinutes(config._d.getUTCMinutes() - config._tzm);\n }\n\n if (config._nextDay) {\n config._a[HOUR] = 24;\n }\n\n // check for mismatching day of week\n if (\n config._w &&\n typeof config._w.d !== 'undefined' &&\n !dateIsDefaulted &&\n config._w.d !== expectedWeekday\n ) {\n getParsingFlags(config).weekdayMismatch = true;\n }\n }\n\n function dayOfYearFromWeekInfo(config, currentDate) {\n var w, weekYear, week, weekday, dow, doy, temp, weekdayOverflow, curWeek;\n\n w = config._w;\n if (w.GG != null || w.W != null || w.E != null) {\n dow = 1;\n doy = 4;\n\n // TODO: We need to take the current isoWeekYear, but that depends on\n // how we interpret now (local, utc, fixed offset). So create\n // a now version of current config (take local/utc/offset flags, and\n // create now).\n weekYear = defaults(\n w.GG,\n config._a[YEAR],\n weekOfYearFromDate(\n currentDate[YEAR],\n currentDate[MONTH],\n currentDate[DATE],\n 1,\n 4\n ).year\n );\n week = defaults(w.W, 1);\n weekday = defaults(w.E, 1);\n if (weekday < 1 || weekday > 7) {\n weekdayOverflow = true;\n }\n } else {\n dow = config._locale._week.dow;\n doy = config._locale._week.doy;\n\n curWeek = weekOfYearFromDate(\n currentDate[YEAR],\n currentDate[MONTH],\n currentDate[DATE],\n dow,\n doy\n );\n\n weekYear = defaults(w.gg, config._a[YEAR], curWeek.year);\n\n // Default to current week.\n week = defaults(w.w, curWeek.week);\n\n if (w.d != null) {\n // weekday -- low day numbers are considered next week\n weekday = w.d;\n if (weekday < 0 || weekday > 6) {\n weekdayOverflow = true;\n }\n } else if (w.e != null) {\n // local weekday -- counting starts from beginning of week\n weekday = w.e + dow;\n if (w.e < 0 || w.e > 6) {\n weekdayOverflow = true;\n }\n } else {\n // default to beginning of week\n weekday = dow;\n }\n }\n if (week < 1 || week > weeksInYear(weekYear, dow, doy)) {\n getParsingFlags(config)._overflowWeeks = true;\n } else if (weekdayOverflow != null) {\n getParsingFlags(config)._overflowWeekday = true;\n } else {\n temp = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy);\n config._a[YEAR] = temp.year;\n config._dayOfYear = temp.dayOfYear;\n }\n }\n\n // constant that refers to the ISO standard\n hooks.ISO_8601 = function () {};\n\n // constant that refers to the RFC 2822 form\n hooks.RFC_2822 = function () {};\n\n // date from string and format string\n function configFromStringAndFormat(config) {\n // TODO: Move this to another part of the creation flow to prevent circular deps\n if (config._f === hooks.ISO_8601) {\n configFromISO(config);\n return;\n }\n if (config._f === hooks.RFC_2822) {\n configFromRFC2822(config);\n return;\n }\n config._a = [];\n getParsingFlags(config).empty = true;\n\n // This array is used to make a Date, either with `new Date` or `Date.UTC`\n var string = '' + config._i,\n i,\n parsedInput,\n tokens,\n token,\n skipped,\n stringLength = string.length,\n totalParsedInputLength = 0,\n era,\n tokenLen;\n\n tokens =\n expandFormat(config._f, config._locale).match(formattingTokens) || [];\n tokenLen = tokens.length;\n for (i = 0; i < tokenLen; i++) {\n token = tokens[i];\n parsedInput = (string.match(getParseRegexForToken(token, config)) ||\n [])[0];\n if (parsedInput) {\n skipped = string.substr(0, string.indexOf(parsedInput));\n if (skipped.length > 0) {\n getParsingFlags(config).unusedInput.push(skipped);\n }\n string = string.slice(\n string.indexOf(parsedInput) + parsedInput.length\n );\n totalParsedInputLength += parsedInput.length;\n }\n // don't parse if it's not a known token\n if (formatTokenFunctions[token]) {\n if (parsedInput) {\n getParsingFlags(config).empty = false;\n } else {\n getParsingFlags(config).unusedTokens.push(token);\n }\n addTimeToArrayFromToken(token, parsedInput, config);\n } else if (config._strict && !parsedInput) {\n getParsingFlags(config).unusedTokens.push(token);\n }\n }\n\n // add remaining unparsed input length to the string\n getParsingFlags(config).charsLeftOver =\n stringLength - totalParsedInputLength;\n if (string.length > 0) {\n getParsingFlags(config).unusedInput.push(string);\n }\n\n // clear _12h flag if hour is <= 12\n if (\n config._a[HOUR] <= 12 &&\n getParsingFlags(config).bigHour === true &&\n config._a[HOUR] > 0\n ) {\n getParsingFlags(config).bigHour = undefined;\n }\n\n getParsingFlags(config).parsedDateParts = config._a.slice(0);\n getParsingFlags(config).meridiem = config._meridiem;\n // handle meridiem\n config._a[HOUR] = meridiemFixWrap(\n config._locale,\n config._a[HOUR],\n config._meridiem\n );\n\n // handle era\n era = getParsingFlags(config).era;\n if (era !== null) {\n config._a[YEAR] = config._locale.erasConvertYear(era, config._a[YEAR]);\n }\n\n configFromArray(config);\n checkOverflow(config);\n }\n\n function meridiemFixWrap(locale, hour, meridiem) {\n var isPm;\n\n if (meridiem == null) {\n // nothing to do\n return hour;\n }\n if (locale.meridiemHour != null) {\n return locale.meridiemHour(hour, meridiem);\n } else if (locale.isPM != null) {\n // Fallback\n isPm = locale.isPM(meridiem);\n if (isPm && hour < 12) {\n hour += 12;\n }\n if (!isPm && hour === 12) {\n hour = 0;\n }\n return hour;\n } else {\n // this is not supposed to happen\n return hour;\n }\n }\n\n // date from string and array of format strings\n function configFromStringAndArray(config) {\n var tempConfig,\n bestMoment,\n scoreToBeat,\n i,\n currentScore,\n validFormatFound,\n bestFormatIsValid = false,\n defaultDatePartsNow = {},\n configfLen = config._f.length;\n\n if (configfLen === 0) {\n getParsingFlags(config).invalidFormat = true;\n config._d = new Date(NaN);\n return;\n }\n\n for (i = 0; i < configfLen; i++) {\n currentScore = 0;\n validFormatFound = false;\n tempConfig = copyConfig({}, config);\n if (config._useUTC != null) {\n tempConfig._useUTC = config._useUTC;\n }\n tempConfig._defaultDatePartsNow = defaultDatePartsNow;\n tempConfig._f = config._f[i];\n configFromStringAndFormat(tempConfig);\n\n if (isValid$2(tempConfig)) {\n validFormatFound = true;\n }\n\n // if there is any input that was not parsed add a penalty for that format\n currentScore += getParsingFlags(tempConfig).charsLeftOver;\n\n //or tokens\n currentScore += getParsingFlags(tempConfig).unusedTokens.length * 10;\n\n getParsingFlags(tempConfig).score = currentScore;\n\n if (!bestFormatIsValid) {\n if (\n scoreToBeat == null ||\n currentScore < scoreToBeat ||\n validFormatFound\n ) {\n scoreToBeat = currentScore;\n bestMoment = tempConfig;\n if (validFormatFound) {\n bestFormatIsValid = true;\n }\n }\n } else {\n if (currentScore < scoreToBeat) {\n scoreToBeat = currentScore;\n bestMoment = tempConfig;\n }\n }\n }\n\n extend(config, bestMoment || tempConfig);\n }\n\n function configFromObject(config) {\n if (config._d) {\n return;\n }\n\n var i = normalizeObjectUnits(config._i),\n dayOrDate = i.day === undefined ? i.date : i.day;\n config._a = map(\n [i.year, i.month, dayOrDate, i.hour, i.minute, i.second, i.millisecond],\n function (obj) {\n return obj && parseInt(obj, 10);\n }\n );\n\n configFromArray(config);\n }\n\n function createFromConfig(config) {\n var res = new Moment(checkOverflow(prepareConfig(config)));\n if (res._nextDay) {\n // Adding is smart enough around DST\n res.add(1, 'd');\n res._nextDay = undefined;\n }\n\n return res;\n }\n\n function prepareConfig(config) {\n var input = config._i,\n format = config._f;\n\n config._locale = config._locale || getLocale(config._l);\n\n if (input === null || (format === undefined && input === '')) {\n return createInvalid$1({ nullInput: true });\n }\n\n if (typeof input === 'string') {\n config._i = input = config._locale.preparse(input);\n }\n\n if (isMoment(input)) {\n return new Moment(checkOverflow(input));\n } else if (isDate(input)) {\n config._d = input;\n } else if (isArray(format)) {\n configFromStringAndArray(config);\n } else if (format) {\n configFromStringAndFormat(config);\n } else {\n configFromInput(config);\n }\n\n if (!isValid$2(config)) {\n config._d = null;\n }\n\n return config;\n }\n\n function configFromInput(config) {\n var input = config._i;\n if (isUndefined(input)) {\n config._d = new Date(hooks.now());\n } else if (isDate(input)) {\n config._d = new Date(input.valueOf());\n } else if (typeof input === 'string') {\n configFromString(config);\n } else if (isArray(input)) {\n config._a = map(input.slice(0), function (obj) {\n return parseInt(obj, 10);\n });\n configFromArray(config);\n } else if (isObject(input)) {\n configFromObject(config);\n } else if (isNumber(input)) {\n // from milliseconds\n config._d = new Date(input);\n } else {\n hooks.createFromInputFallback(config);\n }\n }\n\n function createLocalOrUTC(input, format, locale, strict, isUTC) {\n var c = {};\n\n if (format === true || format === false) {\n strict = format;\n format = undefined;\n }\n\n if (locale === true || locale === false) {\n strict = locale;\n locale = undefined;\n }\n\n if (\n (isObject(input) && isObjectEmpty(input)) ||\n (isArray(input) && input.length === 0)\n ) {\n input = undefined;\n }\n // object construction must be done this way.\n // https://github.com/moment/moment/issues/1423\n c._isAMomentObject = true;\n c._useUTC = c._isUTC = isUTC;\n c._l = locale;\n c._i = input;\n c._f = format;\n c._strict = strict;\n\n return createFromConfig(c);\n }\n\n function createLocal(input, format, locale, strict) {\n return createLocalOrUTC(input, format, locale, strict, false);\n }\n\n var prototypeMin = deprecate(\n 'moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/',\n function () {\n var other = createLocal.apply(null, arguments);\n if (this.isValid() && other.isValid()) {\n return other < this ? this : other;\n } else {\n return createInvalid$1();\n }\n }\n ),\n prototypeMax = deprecate(\n 'moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/',\n function () {\n var other = createLocal.apply(null, arguments);\n if (this.isValid() && other.isValid()) {\n return other > this ? this : other;\n } else {\n return createInvalid$1();\n }\n }\n );\n\n // Pick a moment m from moments so that m[fn](other) is true for all\n // other. This relies on the function fn to be transitive.\n //\n // moments should either be an array of moment objects or an array, whose\n // first element is an array of moment objects.\n function pickBy(fn, moments) {\n var res, i;\n if (moments.length === 1 && isArray(moments[0])) {\n moments = moments[0];\n }\n if (!moments.length) {\n return createLocal();\n }\n for (i = 0; i < moments.length; ++i) {\n if (isMoment(moments[i])) {\n res = moments[i];\n break;\n }\n }\n if (!res) {\n return createInvalid$1();\n }\n for (++i; i < moments.length; ++i) {\n if (\n isMoment(moments[i]) &&\n (!moments[i].isValid() || moments[i][fn](res))\n ) {\n res = moments[i];\n }\n }\n return res;\n }\n\n // TODO: Use [].sort instead?\n function min() {\n var args = [].slice.call(arguments, 0);\n\n return pickBy('isBefore', args);\n }\n\n function max() {\n var args = [].slice.call(arguments, 0);\n\n return pickBy('isAfter', args);\n }\n\n var now = function () {\n return Date.now ? Date.now() : +new Date();\n };\n\n var ordering = [\n 'year',\n 'quarter',\n 'month',\n 'week',\n 'day',\n 'hour',\n 'minute',\n 'second',\n 'millisecond',\n ];\n\n function isDurationValid(m) {\n var key,\n unitHasDecimal = false,\n i,\n orderLen = ordering.length;\n for (key in m) {\n if (\n hasOwnProp(m, key) &&\n !(\n indexOf.call(ordering, key) !== -1 &&\n (m[key] == null || !isNaN(m[key]))\n )\n ) {\n return false;\n }\n }\n\n for (i = 0; i < orderLen; ++i) {\n if (m[ordering[i]]) {\n if (unitHasDecimal) {\n return false; // only allow non-integers for smallest unit\n }\n if (parseFloat(m[ordering[i]]) !== toInt(m[ordering[i]])) {\n unitHasDecimal = true;\n }\n }\n }\n\n return true;\n }\n\n function isValid$1() {\n return this._isValid;\n }\n\n function createInvalid() {\n return createDuration(NaN);\n }\n\n function Duration(duration) {\n var normalizedInput = normalizeObjectUnits(duration),\n years = normalizedInput.year || 0,\n quarters = normalizedInput.quarter || 0,\n months = normalizedInput.month || 0,\n weeks = normalizedInput.week || normalizedInput.isoWeek || 0,\n days = normalizedInput.day || 0,\n hours = normalizedInput.hour || 0,\n minutes = normalizedInput.minute || 0,\n seconds = normalizedInput.second || 0,\n milliseconds = normalizedInput.millisecond || 0;\n\n this._isValid = isDurationValid(normalizedInput);\n\n // representation for dateAddRemove\n this._milliseconds =\n +milliseconds +\n seconds * 1e3 + // 1000\n minutes * 6e4 + // 1000 * 60\n hours * 1000 * 60 * 60; //using 1000 * 60 * 60 instead of 36e5 to avoid floating point rounding errors https://github.com/moment/moment/issues/2978\n // Because of dateAddRemove treats 24 hours as different from a\n // day when working around DST, we need to store them separately\n this._days = +days + weeks * 7;\n // It is impossible to translate months into days without knowing\n // which months you are are talking about, so we have to store\n // it separately.\n this._months = +months + quarters * 3 + years * 12;\n\n this._data = {};\n\n this._locale = getLocale();\n\n this._bubble();\n }\n\n function isDuration(obj) {\n return obj instanceof Duration;\n }\n\n function absRound(number) {\n if (number < 0) {\n return Math.round(-1 * number) * -1;\n } else {\n return Math.round(number);\n }\n }\n\n // compare two arrays, return the number of differences\n function compareArrays(array1, array2, dontConvert) {\n var len = Math.min(array1.length, array2.length),\n lengthDiff = Math.abs(array1.length - array2.length),\n diffs = 0,\n i;\n for (i = 0; i < len; i++) {\n if (\n (toInt(array1[i]) !== toInt(array2[i]))\n ) {\n diffs++;\n }\n }\n return diffs + lengthDiff;\n }\n\n // FORMATTING\n\n function offset(token, separator) {\n addFormatToken(token, 0, 0, function () {\n var offset = this.utcOffset(),\n sign = '+';\n if (offset < 0) {\n offset = -offset;\n sign = '-';\n }\n return (\n sign +\n zeroFill(~~(offset / 60), 2) +\n separator +\n zeroFill(~~offset % 60, 2)\n );\n });\n }\n\n offset('Z', ':');\n offset('ZZ', '');\n\n // PARSING\n\n addRegexToken('Z', matchShortOffset);\n addRegexToken('ZZ', matchShortOffset);\n addParseToken(['Z', 'ZZ'], function (input, array, config) {\n var offset = offsetFromString(matchShortOffset, input);\n config._useUTC = true;\n config._tzm = offset;\n if (offset === null) {\n getParsingFlags(config).invalidOffset = input;\n }\n });\n\n // HELPERS\n\n // timezone chunker\n // '+10:00' > ['10', '00']\n // '-1530' > ['-15', '30']\n var chunkOffset = /([\\+\\-]|\\d\\d)/gi;\n\n function offsetFromString(matcher, string) {\n var matches = (string || '').match(matcher),\n chunk,\n parts,\n minutes;\n\n if (matches === null) {\n return null;\n }\n\n chunk = matches[matches.length - 1] || [];\n parts = (chunk + '').match(chunkOffset) || ['-', 0, 0];\n minutes = +(parts[1] * 60) + toInt(parts[2]);\n\n if (\n toInt(parts[2]) > 59 ||\n (parts[0] === '+' ? minutes > 14 * 60 : minutes > 12 * 60)\n ) {\n return null;\n }\n\n return minutes === 0 ? 0 : parts[0] === '+' ? minutes : -minutes;\n }\n\n // Return a moment from input, that is local/utc/zone equivalent to model.\n function cloneWithOffset(input, model) {\n var res, diff;\n if (model._isUTC) {\n res = model.clone();\n diff =\n (isMoment(input) || isDate(input)\n ? input.valueOf()\n : createLocal(input).valueOf()) - res.valueOf();\n // Use low-level api, because this fn is low-level api.\n res._d.setTime(res._d.valueOf() + diff);\n hooks.updateOffset(res, false);\n return res;\n } else {\n return createLocal(input).local();\n }\n }\n\n function getDateOffset(m) {\n // On Firefox.24 Date#getTimezoneOffset returns a floating point.\n // https://github.com/moment/moment/pull/1871\n return -Math.round(m._d.getTimezoneOffset());\n }\n\n // HOOKS\n\n // This function will be called whenever a moment is mutated.\n // It is intended to keep the offset in sync with the timezone.\n hooks.updateOffset = function () {};\n\n // MOMENTS\n\n // keepLocalTime = true means only change the timezone, without\n // affecting the local hour. So 5:31:26 +0300 --[utcOffset(2, true)]-->\n // 5:31:26 +0200 It is possible that 5:31:26 doesn't exist with offset\n // +0200, so we adjust the time as needed, to be valid.\n //\n // Keeping the time actually adds/subtracts (one hour)\n // from the actual represented time. That is why we call updateOffset\n // a second time. In case it wants us to change the offset again\n // _changeInProgress == true case, then we have to adjust, because\n // there is no such time in the given timezone.\n function getSetOffset(input, keepLocalTime, keepMinutes) {\n var offset = this._offset || 0,\n localAdjust;\n if (!this.isValid()) {\n return input != null ? this : NaN;\n }\n if (input != null) {\n if (typeof input === 'string') {\n input = offsetFromString(matchShortOffset, input);\n if (input === null) {\n return this;\n }\n } else if (Math.abs(input) < 16 && !keepMinutes) {\n input = input * 60;\n }\n if (!this._isUTC && keepLocalTime) {\n localAdjust = getDateOffset(this);\n }\n this._offset = input;\n this._isUTC = true;\n if (localAdjust != null) {\n this.add(localAdjust, 'm');\n }\n if (offset !== input) {\n if (!keepLocalTime || this._changeInProgress) {\n addSubtract$1(\n this,\n createDuration(input - offset, 'm'),\n 1,\n false\n );\n } else if (!this._changeInProgress) {\n this._changeInProgress = true;\n hooks.updateOffset(this, true);\n this._changeInProgress = null;\n }\n }\n return this;\n } else {\n return this._isUTC ? offset : getDateOffset(this);\n }\n }\n\n function getSetZone(input, keepLocalTime) {\n if (input != null) {\n if (typeof input !== 'string') {\n input = -input;\n }\n\n this.utcOffset(input, keepLocalTime);\n\n return this;\n } else {\n return -this.utcOffset();\n }\n }\n\n function setOffsetToUTC(keepLocalTime) {\n return this.utcOffset(0, keepLocalTime);\n }\n\n function setOffsetToLocal(keepLocalTime) {\n if (this._isUTC) {\n this.utcOffset(0, keepLocalTime);\n this._isUTC = false;\n\n if (keepLocalTime) {\n this.subtract(getDateOffset(this), 'm');\n }\n }\n return this;\n }\n\n function setOffsetToParsedOffset() {\n if (this._tzm != null) {\n this.utcOffset(this._tzm, false, true);\n } else if (typeof this._i === 'string') {\n var tZone = offsetFromString(matchOffset, this._i);\n if (tZone != null) {\n this.utcOffset(tZone);\n } else {\n this.utcOffset(0, true);\n }\n }\n return this;\n }\n\n function hasAlignedHourOffset(input) {\n if (!this.isValid()) {\n return false;\n }\n input = input ? createLocal(input).utcOffset() : 0;\n\n return (this.utcOffset() - input) % 60 === 0;\n }\n\n function isDaylightSavingTime() {\n return (\n this.utcOffset() > this.clone().month(0).utcOffset() ||\n this.utcOffset() > this.clone().month(5).utcOffset()\n );\n }\n\n function isDaylightSavingTimeShifted() {\n if (!isUndefined(this._isDSTShifted)) {\n return this._isDSTShifted;\n }\n\n var c = {},\n other;\n\n copyConfig(c, this);\n c = prepareConfig(c);\n\n if (c._a) {\n other = c._isUTC ? createUTC(c._a) : createLocal(c._a);\n this._isDSTShifted =\n this.isValid() && compareArrays(c._a, other.toArray()) > 0;\n } else {\n this._isDSTShifted = false;\n }\n\n return this._isDSTShifted;\n }\n\n function isLocal() {\n return this.isValid() ? !this._isUTC : false;\n }\n\n function isUtcOffset() {\n return this.isValid() ? this._isUTC : false;\n }\n\n function isUtc() {\n return this.isValid() ? this._isUTC && this._offset === 0 : false;\n }\n\n // ASP.NET json date format regex\n var aspNetRegex = /^(-|\\+)?(?:(\\d*)[. ])?(\\d+):(\\d+)(?::(\\d+)(\\.\\d*)?)?$/,\n // from http://docs.closure-library.googlecode.com/git/closure_goog_date_date.js.source.html\n // somewhat more in line with 4.4.3.2 2004 spec, but allows decimal anywhere\n // and further modified to allow for strings containing both week and day\n isoRegex =\n /^(-|\\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;\n\n function createDuration(input, key) {\n var duration = input,\n // matching against regexp is expensive, do it on demand\n match = null,\n sign,\n ret,\n diffRes;\n\n if (isDuration(input)) {\n duration = {\n ms: input._milliseconds,\n d: input._days,\n M: input._months,\n };\n } else if (isNumber(input) || !isNaN(+input)) {\n duration = {};\n if (key) {\n duration[key] = +input;\n } else {\n duration.milliseconds = +input;\n }\n } else if ((match = aspNetRegex.exec(input))) {\n sign = match[1] === '-' ? -1 : 1;\n duration = {\n y: 0,\n d: toInt(match[DATE]) * sign,\n h: toInt(match[HOUR]) * sign,\n m: toInt(match[MINUTE]) * sign,\n s: toInt(match[SECOND]) * sign,\n ms: toInt(absRound(match[MILLISECOND] * 1000)) * sign, // the millisecond decimal point is included in the match\n };\n } else if ((match = isoRegex.exec(input))) {\n sign = match[1] === '-' ? -1 : 1;\n duration = {\n y: parseIso(match[2], sign),\n M: parseIso(match[3], sign),\n w: parseIso(match[4], sign),\n d: parseIso(match[5], sign),\n h: parseIso(match[6], sign),\n m: parseIso(match[7], sign),\n s: parseIso(match[8], sign),\n };\n } else if (duration == null) {\n // checks for null or undefined\n duration = {};\n } else if (\n typeof duration === 'object' &&\n ('from' in duration || 'to' in duration)\n ) {\n diffRes = momentsDifference(\n createLocal(duration.from),\n createLocal(duration.to)\n );\n\n duration = {};\n duration.ms = diffRes.milliseconds;\n duration.M = diffRes.months;\n }\n\n ret = new Duration(duration);\n\n if (isDuration(input) && hasOwnProp(input, '_locale')) {\n ret._locale = input._locale;\n }\n\n if (isDuration(input) && hasOwnProp(input, '_isValid')) {\n ret._isValid = input._isValid;\n }\n\n return ret;\n }\n\n createDuration.fn = Duration.prototype;\n createDuration.invalid = createInvalid;\n\n function parseIso(inp, sign) {\n // We'd normally use ~~inp for this, but unfortunately it also\n // converts floats to ints.\n // inp may be undefined, so careful calling replace on it.\n var res = inp && parseFloat(inp.replace(',', '.'));\n // apply sign while we're at it\n return (isNaN(res) ? 0 : res) * sign;\n }\n\n function positiveMomentsDifference(base, other) {\n var res = {};\n\n res.months =\n other.month() - base.month() + (other.year() - base.year()) * 12;\n if (base.clone().add(res.months, 'M').isAfter(other)) {\n --res.months;\n }\n\n res.milliseconds = +other - +base.clone().add(res.months, 'M');\n\n return res;\n }\n\n function momentsDifference(base, other) {\n var res;\n if (!(base.isValid() && other.isValid())) {\n return { milliseconds: 0, months: 0 };\n }\n\n other = cloneWithOffset(other, base);\n if (base.isBefore(other)) {\n res = positiveMomentsDifference(base, other);\n } else {\n res = positiveMomentsDifference(other, base);\n res.milliseconds = -res.milliseconds;\n res.months = -res.months;\n }\n\n return res;\n }\n\n // TODO: remove 'name' arg after deprecation is removed\n function createAdder(direction, name) {\n return function (val, period) {\n var dur, tmp;\n //invert the arguments, but complain about it\n if (period !== null && !isNaN(+period)) {\n deprecateSimple(\n name,\n 'moment().' +\n name +\n '(period, number) is deprecated. Please use moment().' +\n name +\n '(number, period). ' +\n 'See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info.'\n );\n tmp = val;\n val = period;\n period = tmp;\n }\n\n dur = createDuration(val, period);\n addSubtract$1(this, dur, direction);\n return this;\n };\n }\n\n function addSubtract$1(mom, duration, isAdding, updateOffset) {\n var milliseconds = duration._milliseconds,\n days = absRound(duration._days),\n months = absRound(duration._months);\n\n if (!mom.isValid()) {\n // No op\n return;\n }\n\n updateOffset = updateOffset == null ? true : updateOffset;\n\n if (months) {\n setMonth(mom, get$2(mom, 'Month') + months * isAdding);\n }\n if (days) {\n set$1(mom, 'Date', get$2(mom, 'Date') + days * isAdding);\n }\n if (milliseconds) {\n mom._d.setTime(mom._d.valueOf() + milliseconds * isAdding);\n }\n if (updateOffset) {\n hooks.updateOffset(mom, days || months);\n }\n }\n\n var add$1 = createAdder(1, 'add'),\n subtract$1 = createAdder(-1, 'subtract');\n\n function isString(input) {\n return typeof input === 'string' || input instanceof String;\n }\n\n // type MomentInput = Moment | Date | string | number | (number | string)[] | MomentInputObject | void; // null | undefined\n function isMomentInput(input) {\n return (\n isMoment(input) ||\n isDate(input) ||\n isString(input) ||\n isNumber(input) ||\n isNumberOrStringArray(input) ||\n isMomentInputObject(input) ||\n input === null ||\n input === undefined\n );\n }\n\n function isMomentInputObject(input) {\n var objectTest = isObject(input) && !isObjectEmpty(input),\n propertyTest = false,\n properties = [\n 'years',\n 'year',\n 'y',\n 'months',\n 'month',\n 'M',\n 'days',\n 'day',\n 'd',\n 'dates',\n 'date',\n 'D',\n 'hours',\n 'hour',\n 'h',\n 'minutes',\n 'minute',\n 'm',\n 'seconds',\n 'second',\n 's',\n 'milliseconds',\n 'millisecond',\n 'ms',\n ],\n i,\n property,\n propertyLen = properties.length;\n\n for (i = 0; i < propertyLen; i += 1) {\n property = properties[i];\n propertyTest = propertyTest || hasOwnProp(input, property);\n }\n\n return objectTest && propertyTest;\n }\n\n function isNumberOrStringArray(input) {\n var arrayTest = isArray(input),\n dataTypeTest = false;\n if (arrayTest) {\n dataTypeTest =\n input.filter(function (item) {\n return !isNumber(item) && isString(input);\n }).length === 0;\n }\n return arrayTest && dataTypeTest;\n }\n\n function isCalendarSpec(input) {\n var objectTest = isObject(input) && !isObjectEmpty(input),\n propertyTest = false,\n properties = [\n 'sameDay',\n 'nextDay',\n 'lastDay',\n 'nextWeek',\n 'lastWeek',\n 'sameElse',\n ],\n i,\n property;\n\n for (i = 0; i < properties.length; i += 1) {\n property = properties[i];\n propertyTest = propertyTest || hasOwnProp(input, property);\n }\n\n return objectTest && propertyTest;\n }\n\n function getCalendarFormat(myMoment, now) {\n var diff = myMoment.diff(now, 'days', true);\n return diff < -6\n ? 'sameElse'\n : diff < -1\n ? 'lastWeek'\n : diff < 0\n ? 'lastDay'\n : diff < 1\n ? 'sameDay'\n : diff < 2\n ? 'nextDay'\n : diff < 7\n ? 'nextWeek'\n : 'sameElse';\n }\n\n function calendar(time, formats) {\n // Support for single parameter, formats only overload to the calendar function\n if (arguments.length === 1) {\n if (!arguments[0]) {\n time = undefined;\n formats = undefined;\n } else if (isMomentInput(arguments[0])) {\n time = arguments[0];\n formats = undefined;\n } else if (isCalendarSpec(arguments[0])) {\n formats = arguments[0];\n time = undefined;\n }\n }\n // We want to compare the start of today, vs this.\n // Getting start-of-today depends on whether we're local/utc/offset or not.\n var now = time || createLocal(),\n sod = cloneWithOffset(now, this).startOf('day'),\n format = hooks.calendarFormat(this, sod) || 'sameElse',\n output =\n formats &&\n (isFunction(formats[format])\n ? formats[format].call(this, now)\n : formats[format]);\n\n return this.format(\n output || this.localeData().calendar(format, this, createLocal(now))\n );\n }\n\n function clone$1() {\n return new Moment(this);\n }\n\n function isAfter(input, units) {\n var localInput = isMoment(input) ? input : createLocal(input);\n if (!(this.isValid() && localInput.isValid())) {\n return false;\n }\n units = normalizeUnits(units) || 'millisecond';\n if (units === 'millisecond') {\n return this.valueOf() > localInput.valueOf();\n } else {\n return localInput.valueOf() < this.clone().startOf(units).valueOf();\n }\n }\n\n function isBefore(input, units) {\n var localInput = isMoment(input) ? input : createLocal(input);\n if (!(this.isValid() && localInput.isValid())) {\n return false;\n }\n units = normalizeUnits(units) || 'millisecond';\n if (units === 'millisecond') {\n return this.valueOf() < localInput.valueOf();\n } else {\n return this.clone().endOf(units).valueOf() < localInput.valueOf();\n }\n }\n\n function isBetween(from, to, units, inclusivity) {\n var localFrom = isMoment(from) ? from : createLocal(from),\n localTo = isMoment(to) ? to : createLocal(to);\n if (!(this.isValid() && localFrom.isValid() && localTo.isValid())) {\n return false;\n }\n inclusivity = inclusivity || '()';\n return (\n (inclusivity[0] === '('\n ? this.isAfter(localFrom, units)\n : !this.isBefore(localFrom, units)) &&\n (inclusivity[1] === ')'\n ? this.isBefore(localTo, units)\n : !this.isAfter(localTo, units))\n );\n }\n\n function isSame(input, units) {\n var localInput = isMoment(input) ? input : createLocal(input),\n inputMs;\n if (!(this.isValid() && localInput.isValid())) {\n return false;\n }\n units = normalizeUnits(units) || 'millisecond';\n if (units === 'millisecond') {\n return this.valueOf() === localInput.valueOf();\n } else {\n inputMs = localInput.valueOf();\n return (\n this.clone().startOf(units).valueOf() <= inputMs &&\n inputMs <= this.clone().endOf(units).valueOf()\n );\n }\n }\n\n function isSameOrAfter(input, units) {\n return this.isSame(input, units) || this.isAfter(input, units);\n }\n\n function isSameOrBefore(input, units) {\n return this.isSame(input, units) || this.isBefore(input, units);\n }\n\n function diff(input, units, asFloat) {\n var that, zoneDelta, output;\n\n if (!this.isValid()) {\n return NaN;\n }\n\n that = cloneWithOffset(input, this);\n\n if (!that.isValid()) {\n return NaN;\n }\n\n zoneDelta = (that.utcOffset() - this.utcOffset()) * 6e4;\n\n units = normalizeUnits(units);\n\n switch (units) {\n case 'year':\n output = monthDiff(this, that) / 12;\n break;\n case 'month':\n output = monthDiff(this, that);\n break;\n case 'quarter':\n output = monthDiff(this, that) / 3;\n break;\n case 'second':\n output = (this - that) / 1e3;\n break; // 1000\n case 'minute':\n output = (this - that) / 6e4;\n break; // 1000 * 60\n case 'hour':\n output = (this - that) / 36e5;\n break; // 1000 * 60 * 60\n case 'day':\n output = (this - that - zoneDelta) / 864e5;\n break; // 1000 * 60 * 60 * 24, negate dst\n case 'week':\n output = (this - that - zoneDelta) / 6048e5;\n break; // 1000 * 60 * 60 * 24 * 7, negate dst\n default:\n output = this - that;\n }\n\n return asFloat ? output : absFloor(output);\n }\n\n function monthDiff(a, b) {\n if (a.date() < b.date()) {\n // end-of-month calculations work correct when the start month has more\n // days than the end month.\n return -monthDiff(b, a);\n }\n // difference in months\n var wholeMonthDiff = (b.year() - a.year()) * 12 + (b.month() - a.month()),\n // b is in (anchor - 1 month, anchor + 1 month)\n anchor = a.clone().add(wholeMonthDiff, 'months'),\n anchor2,\n adjust;\n\n if (b - anchor < 0) {\n anchor2 = a.clone().add(wholeMonthDiff - 1, 'months');\n // linear across the month\n adjust = (b - anchor) / (anchor - anchor2);\n } else {\n anchor2 = a.clone().add(wholeMonthDiff + 1, 'months');\n // linear across the month\n adjust = (b - anchor) / (anchor2 - anchor);\n }\n\n //check for negative zero, return zero if negative zero\n return -(wholeMonthDiff + adjust) || 0;\n }\n\n hooks.defaultFormat = 'YYYY-MM-DDTHH:mm:ssZ';\n hooks.defaultFormatUtc = 'YYYY-MM-DDTHH:mm:ss[Z]';\n\n function toString() {\n return this.clone().locale('en').format('ddd MMM DD YYYY HH:mm:ss [GMT]ZZ');\n }\n\n function toISOString$1(keepOffset) {\n if (!this.isValid()) {\n return null;\n }\n var utc = keepOffset !== true,\n m = utc ? this.clone().utc() : this;\n if (m.year() < 0 || m.year() > 9999) {\n return formatMoment(\n m,\n utc\n ? 'YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]'\n : 'YYYYYY-MM-DD[T]HH:mm:ss.SSSZ'\n );\n }\n if (isFunction(Date.prototype.toISOString)) {\n // native implementation is ~50x faster, use it when we can\n if (utc) {\n return this.toDate().toISOString();\n } else {\n return new Date(this.valueOf() + this.utcOffset() * 60 * 1000)\n .toISOString()\n .replace('Z', formatMoment(m, 'Z'));\n }\n }\n return formatMoment(\n m,\n utc ? 'YYYY-MM-DD[T]HH:mm:ss.SSS[Z]' : 'YYYY-MM-DD[T]HH:mm:ss.SSSZ'\n );\n }\n\n /**\n * Return a human readable representation of a moment that can\n * also be evaluated to get a new moment which is the same\n *\n * @link https://nodejs.org/dist/latest/docs/api/util.html#util_custom_inspect_function_on_objects\n */\n function inspect() {\n if (!this.isValid()) {\n return 'moment.invalid(/* ' + this._i + ' */)';\n }\n var func = 'moment',\n zone = '',\n prefix,\n year,\n datetime,\n suffix;\n if (!this.isLocal()) {\n func = this.utcOffset() === 0 ? 'moment.utc' : 'moment.parseZone';\n zone = 'Z';\n }\n prefix = '[' + func + '(\"]';\n year = 0 <= this.year() && this.year() <= 9999 ? 'YYYY' : 'YYYYYY';\n datetime = '-MM-DD[T]HH:mm:ss.SSS';\n suffix = zone + '[\")]';\n\n return this.format(prefix + year + datetime + suffix);\n }\n\n function format(inputString) {\n if (!inputString) {\n inputString = this.isUtc()\n ? hooks.defaultFormatUtc\n : hooks.defaultFormat;\n }\n var output = formatMoment(this, inputString);\n return this.localeData().postformat(output);\n }\n\n function from(time, withoutSuffix) {\n if (\n this.isValid() &&\n ((isMoment(time) && time.isValid()) || createLocal(time).isValid())\n ) {\n return createDuration({ to: this, from: time })\n .locale(this.locale())\n .humanize(!withoutSuffix);\n } else {\n return this.localeData().invalidDate();\n }\n }\n\n function fromNow(withoutSuffix) {\n return this.from(createLocal(), withoutSuffix);\n }\n\n function to(time, withoutSuffix) {\n if (\n this.isValid() &&\n ((isMoment(time) && time.isValid()) || createLocal(time).isValid())\n ) {\n return createDuration({ from: this, to: time })\n .locale(this.locale())\n .humanize(!withoutSuffix);\n } else {\n return this.localeData().invalidDate();\n }\n }\n\n function toNow(withoutSuffix) {\n return this.to(createLocal(), withoutSuffix);\n }\n\n // If passed a locale key, it will set the locale for this\n // instance. Otherwise, it will return the locale configuration\n // variables for this instance.\n function locale(key) {\n var newLocaleData;\n\n if (key === undefined) {\n return this._locale._abbr;\n } else {\n newLocaleData = getLocale(key);\n if (newLocaleData != null) {\n this._locale = newLocaleData;\n }\n return this;\n }\n }\n\n var lang = deprecate(\n 'moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.',\n function (key) {\n if (key === undefined) {\n return this.localeData();\n } else {\n return this.locale(key);\n }\n }\n );\n\n function localeData() {\n return this._locale;\n }\n\n var MS_PER_SECOND = 1000,\n MS_PER_MINUTE = 60 * MS_PER_SECOND,\n MS_PER_HOUR = 60 * MS_PER_MINUTE,\n MS_PER_400_YEARS = (365 * 400 + 97) * 24 * MS_PER_HOUR;\n\n // actual modulo - handles negative numbers (for dates before 1970):\n function mod(dividend, divisor) {\n return ((dividend % divisor) + divisor) % divisor;\n }\n\n function localStartOfDate(y, m, d) {\n // the date constructor remaps years 0-99 to 1900-1999\n if (y < 100 && y >= 0) {\n // preserve leap years using a full 400 year cycle, then reset\n return new Date(y + 400, m, d) - MS_PER_400_YEARS;\n } else {\n return new Date(y, m, d).valueOf();\n }\n }\n\n function utcStartOfDate(y, m, d) {\n // Date.UTC remaps years 0-99 to 1900-1999\n if (y < 100 && y >= 0) {\n // preserve leap years using a full 400 year cycle, then reset\n return Date.UTC(y + 400, m, d) - MS_PER_400_YEARS;\n } else {\n return Date.UTC(y, m, d);\n }\n }\n\n function startOf(units) {\n var time, startOfDate;\n units = normalizeUnits(units);\n if (units === undefined || units === 'millisecond' || !this.isValid()) {\n return this;\n }\n\n startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate;\n\n switch (units) {\n case 'year':\n time = startOfDate(this.year(), 0, 1);\n break;\n case 'quarter':\n time = startOfDate(\n this.year(),\n this.month() - (this.month() % 3),\n 1\n );\n break;\n case 'month':\n time = startOfDate(this.year(), this.month(), 1);\n break;\n case 'week':\n time = startOfDate(\n this.year(),\n this.month(),\n this.date() - this.weekday()\n );\n break;\n case 'isoWeek':\n time = startOfDate(\n this.year(),\n this.month(),\n this.date() - (this.isoWeekday() - 1)\n );\n break;\n case 'day':\n case 'date':\n time = startOfDate(this.year(), this.month(), this.date());\n break;\n case 'hour':\n time = this._d.valueOf();\n time -= mod(\n time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE),\n MS_PER_HOUR\n );\n break;\n case 'minute':\n time = this._d.valueOf();\n time -= mod(time, MS_PER_MINUTE);\n break;\n case 'second':\n time = this._d.valueOf();\n time -= mod(time, MS_PER_SECOND);\n break;\n }\n\n this._d.setTime(time);\n hooks.updateOffset(this, true);\n return this;\n }\n\n function endOf(units) {\n var time, startOfDate;\n units = normalizeUnits(units);\n if (units === undefined || units === 'millisecond' || !this.isValid()) {\n return this;\n }\n\n startOfDate = this._isUTC ? utcStartOfDate : localStartOfDate;\n\n switch (units) {\n case 'year':\n time = startOfDate(this.year() + 1, 0, 1) - 1;\n break;\n case 'quarter':\n time =\n startOfDate(\n this.year(),\n this.month() - (this.month() % 3) + 3,\n 1\n ) - 1;\n break;\n case 'month':\n time = startOfDate(this.year(), this.month() + 1, 1) - 1;\n break;\n case 'week':\n time =\n startOfDate(\n this.year(),\n this.month(),\n this.date() - this.weekday() + 7\n ) - 1;\n break;\n case 'isoWeek':\n time =\n startOfDate(\n this.year(),\n this.month(),\n this.date() - (this.isoWeekday() - 1) + 7\n ) - 1;\n break;\n case 'day':\n case 'date':\n time = startOfDate(this.year(), this.month(), this.date() + 1) - 1;\n break;\n case 'hour':\n time = this._d.valueOf();\n time +=\n MS_PER_HOUR -\n mod(\n time + (this._isUTC ? 0 : this.utcOffset() * MS_PER_MINUTE),\n MS_PER_HOUR\n ) -\n 1;\n break;\n case 'minute':\n time = this._d.valueOf();\n time += MS_PER_MINUTE - mod(time, MS_PER_MINUTE) - 1;\n break;\n case 'second':\n time = this._d.valueOf();\n time += MS_PER_SECOND - mod(time, MS_PER_SECOND) - 1;\n break;\n }\n\n this._d.setTime(time);\n hooks.updateOffset(this, true);\n return this;\n }\n\n function valueOf$1() {\n return this._d.valueOf() - (this._offset || 0) * 60000;\n }\n\n function unix() {\n return Math.floor(this.valueOf() / 1000);\n }\n\n function toDate() {\n return new Date(this.valueOf());\n }\n\n function toArray() {\n var m = this;\n return [\n m.year(),\n m.month(),\n m.date(),\n m.hour(),\n m.minute(),\n m.second(),\n m.millisecond(),\n ];\n }\n\n function toObject() {\n var m = this;\n return {\n years: m.year(),\n months: m.month(),\n date: m.date(),\n hours: m.hours(),\n minutes: m.minutes(),\n seconds: m.seconds(),\n milliseconds: m.milliseconds(),\n };\n }\n\n function toJSON() {\n // new Date(NaN).toJSON() === null\n return this.isValid() ? this.toISOString() : null;\n }\n\n function isValid() {\n return isValid$2(this);\n }\n\n function parsingFlags() {\n return extend({}, getParsingFlags(this));\n }\n\n function invalidAt() {\n return getParsingFlags(this).overflow;\n }\n\n function creationData() {\n return {\n input: this._i,\n format: this._f,\n locale: this._locale,\n isUTC: this._isUTC,\n strict: this._strict,\n };\n }\n\n addFormatToken('N', 0, 0, 'eraAbbr');\n addFormatToken('NN', 0, 0, 'eraAbbr');\n addFormatToken('NNN', 0, 0, 'eraAbbr');\n addFormatToken('NNNN', 0, 0, 'eraName');\n addFormatToken('NNNNN', 0, 0, 'eraNarrow');\n\n addFormatToken('y', ['y', 1], 'yo', 'eraYear');\n addFormatToken('y', ['yy', 2], 0, 'eraYear');\n addFormatToken('y', ['yyy', 3], 0, 'eraYear');\n addFormatToken('y', ['yyyy', 4], 0, 'eraYear');\n\n addRegexToken('N', matchEraAbbr);\n addRegexToken('NN', matchEraAbbr);\n addRegexToken('NNN', matchEraAbbr);\n addRegexToken('NNNN', matchEraName);\n addRegexToken('NNNNN', matchEraNarrow);\n\n addParseToken(\n ['N', 'NN', 'NNN', 'NNNN', 'NNNNN'],\n function (input, array, config, token) {\n var era = config._locale.erasParse(input, token, config._strict);\n if (era) {\n getParsingFlags(config).era = era;\n } else {\n getParsingFlags(config).invalidEra = input;\n }\n }\n );\n\n addRegexToken('y', matchUnsigned);\n addRegexToken('yy', matchUnsigned);\n addRegexToken('yyy', matchUnsigned);\n addRegexToken('yyyy', matchUnsigned);\n addRegexToken('yo', matchEraYearOrdinal);\n\n addParseToken(['y', 'yy', 'yyy', 'yyyy'], YEAR);\n addParseToken(['yo'], function (input, array, config, token) {\n var match;\n if (config._locale._eraYearOrdinalRegex) {\n match = input.match(config._locale._eraYearOrdinalRegex);\n }\n\n if (config._locale.eraYearOrdinalParse) {\n array[YEAR] = config._locale.eraYearOrdinalParse(input, match);\n } else {\n array[YEAR] = parseInt(input, 10);\n }\n });\n\n function localeEras(m, format) {\n var i,\n l,\n date,\n eras = this._eras || getLocale('en')._eras;\n for (i = 0, l = eras.length; i < l; ++i) {\n switch (typeof eras[i].since) {\n case 'string':\n // truncate time\n date = hooks(eras[i].since).startOf('day');\n eras[i].since = date.valueOf();\n break;\n }\n\n switch (typeof eras[i].until) {\n case 'undefined':\n eras[i].until = +Infinity;\n break;\n case 'string':\n // truncate time\n date = hooks(eras[i].until).startOf('day').valueOf();\n eras[i].until = date.valueOf();\n break;\n }\n }\n return eras;\n }\n\n function localeErasParse(eraName, format, strict) {\n var i,\n l,\n eras = this.eras(),\n name,\n abbr,\n narrow;\n eraName = eraName.toUpperCase();\n\n for (i = 0, l = eras.length; i < l; ++i) {\n name = eras[i].name.toUpperCase();\n abbr = eras[i].abbr.toUpperCase();\n narrow = eras[i].narrow.toUpperCase();\n\n if (strict) {\n switch (format) {\n case 'N':\n case 'NN':\n case 'NNN':\n if (abbr === eraName) {\n return eras[i];\n }\n break;\n\n case 'NNNN':\n if (name === eraName) {\n return eras[i];\n }\n break;\n\n case 'NNNNN':\n if (narrow === eraName) {\n return eras[i];\n }\n break;\n }\n } else if ([name, abbr, narrow].indexOf(eraName) >= 0) {\n return eras[i];\n }\n }\n }\n\n function localeErasConvertYear(era, year) {\n var dir = era.since <= era.until ? 1 : -1;\n if (year === undefined) {\n return hooks(era.since).year();\n } else {\n return hooks(era.since).year() + (year - era.offset) * dir;\n }\n }\n\n function getEraName() {\n var i,\n l,\n val,\n eras = this.localeData().eras();\n for (i = 0, l = eras.length; i < l; ++i) {\n // truncate time\n val = this.clone().startOf('day').valueOf();\n\n if (eras[i].since <= val && val <= eras[i].until) {\n return eras[i].name;\n }\n if (eras[i].until <= val && val <= eras[i].since) {\n return eras[i].name;\n }\n }\n\n return '';\n }\n\n function getEraNarrow() {\n var i,\n l,\n val,\n eras = this.localeData().eras();\n for (i = 0, l = eras.length; i < l; ++i) {\n // truncate time\n val = this.clone().startOf('day').valueOf();\n\n if (eras[i].since <= val && val <= eras[i].until) {\n return eras[i].narrow;\n }\n if (eras[i].until <= val && val <= eras[i].since) {\n return eras[i].narrow;\n }\n }\n\n return '';\n }\n\n function getEraAbbr() {\n var i,\n l,\n val,\n eras = this.localeData().eras();\n for (i = 0, l = eras.length; i < l; ++i) {\n // truncate time\n val = this.clone().startOf('day').valueOf();\n\n if (eras[i].since <= val && val <= eras[i].until) {\n return eras[i].abbr;\n }\n if (eras[i].until <= val && val <= eras[i].since) {\n return eras[i].abbr;\n }\n }\n\n return '';\n }\n\n function getEraYear() {\n var i,\n l,\n dir,\n val,\n eras = this.localeData().eras();\n for (i = 0, l = eras.length; i < l; ++i) {\n dir = eras[i].since <= eras[i].until ? 1 : -1;\n\n // truncate time\n val = this.clone().startOf('day').valueOf();\n\n if (\n (eras[i].since <= val && val <= eras[i].until) ||\n (eras[i].until <= val && val <= eras[i].since)\n ) {\n return (\n (this.year() - hooks(eras[i].since).year()) * dir +\n eras[i].offset\n );\n }\n }\n\n return this.year();\n }\n\n function erasNameRegex(isStrict) {\n if (!hasOwnProp(this, '_erasNameRegex')) {\n computeErasParse.call(this);\n }\n return isStrict ? this._erasNameRegex : this._erasRegex;\n }\n\n function erasAbbrRegex(isStrict) {\n if (!hasOwnProp(this, '_erasAbbrRegex')) {\n computeErasParse.call(this);\n }\n return isStrict ? this._erasAbbrRegex : this._erasRegex;\n }\n\n function erasNarrowRegex(isStrict) {\n if (!hasOwnProp(this, '_erasNarrowRegex')) {\n computeErasParse.call(this);\n }\n return isStrict ? this._erasNarrowRegex : this._erasRegex;\n }\n\n function matchEraAbbr(isStrict, locale) {\n return locale.erasAbbrRegex(isStrict);\n }\n\n function matchEraName(isStrict, locale) {\n return locale.erasNameRegex(isStrict);\n }\n\n function matchEraNarrow(isStrict, locale) {\n return locale.erasNarrowRegex(isStrict);\n }\n\n function matchEraYearOrdinal(isStrict, locale) {\n return locale._eraYearOrdinalRegex || matchUnsigned;\n }\n\n function computeErasParse() {\n var abbrPieces = [],\n namePieces = [],\n narrowPieces = [],\n mixedPieces = [],\n i,\n l,\n erasName,\n erasAbbr,\n erasNarrow,\n eras = this.eras();\n\n for (i = 0, l = eras.length; i < l; ++i) {\n erasName = regexEscape(eras[i].name);\n erasAbbr = regexEscape(eras[i].abbr);\n erasNarrow = regexEscape(eras[i].narrow);\n\n namePieces.push(erasName);\n abbrPieces.push(erasAbbr);\n narrowPieces.push(erasNarrow);\n mixedPieces.push(erasName);\n mixedPieces.push(erasAbbr);\n mixedPieces.push(erasNarrow);\n }\n\n this._erasRegex = new RegExp('^(' + mixedPieces.join('|') + ')', 'i');\n this._erasNameRegex = new RegExp('^(' + namePieces.join('|') + ')', 'i');\n this._erasAbbrRegex = new RegExp('^(' + abbrPieces.join('|') + ')', 'i');\n this._erasNarrowRegex = new RegExp(\n '^(' + narrowPieces.join('|') + ')',\n 'i'\n );\n }\n\n // FORMATTING\n\n addFormatToken(0, ['gg', 2], 0, function () {\n return this.weekYear() % 100;\n });\n\n addFormatToken(0, ['GG', 2], 0, function () {\n return this.isoWeekYear() % 100;\n });\n\n function addWeekYearFormatToken(token, getter) {\n addFormatToken(0, [token, token.length], 0, getter);\n }\n\n addWeekYearFormatToken('gggg', 'weekYear');\n addWeekYearFormatToken('ggggg', 'weekYear');\n addWeekYearFormatToken('GGGG', 'isoWeekYear');\n addWeekYearFormatToken('GGGGG', 'isoWeekYear');\n\n // ALIASES\n\n // PARSING\n\n addRegexToken('G', matchSigned);\n addRegexToken('g', matchSigned);\n addRegexToken('GG', match1to2, match2);\n addRegexToken('gg', match1to2, match2);\n addRegexToken('GGGG', match1to4, match4);\n addRegexToken('gggg', match1to4, match4);\n addRegexToken('GGGGG', match1to6, match6);\n addRegexToken('ggggg', match1to6, match6);\n\n addWeekParseToken(\n ['gggg', 'ggggg', 'GGGG', 'GGGGG'],\n function (input, week, config, token) {\n week[token.substr(0, 2)] = toInt(input);\n }\n );\n\n addWeekParseToken(['gg', 'GG'], function (input, week, config, token) {\n week[token] = hooks.parseTwoDigitYear(input);\n });\n\n // MOMENTS\n\n function getSetWeekYear(input) {\n return getSetWeekYearHelper.call(\n this,\n input,\n this.week(),\n this.weekday() + this.localeData()._week.dow,\n this.localeData()._week.dow,\n this.localeData()._week.doy\n );\n }\n\n function getSetISOWeekYear(input) {\n return getSetWeekYearHelper.call(\n this,\n input,\n this.isoWeek(),\n this.isoWeekday(),\n 1,\n 4\n );\n }\n\n function getISOWeeksInYear() {\n return weeksInYear(this.year(), 1, 4);\n }\n\n function getISOWeeksInISOWeekYear() {\n return weeksInYear(this.isoWeekYear(), 1, 4);\n }\n\n function getWeeksInYear() {\n var weekInfo = this.localeData()._week;\n return weeksInYear(this.year(), weekInfo.dow, weekInfo.doy);\n }\n\n function getWeeksInWeekYear() {\n var weekInfo = this.localeData()._week;\n return weeksInYear(this.weekYear(), weekInfo.dow, weekInfo.doy);\n }\n\n function getSetWeekYearHelper(input, week, weekday, dow, doy) {\n var weeksTarget;\n if (input == null) {\n return weekOfYear(this, dow, doy).year;\n } else {\n weeksTarget = weeksInYear(input, dow, doy);\n if (week > weeksTarget) {\n week = weeksTarget;\n }\n return setWeekAll.call(this, input, week, weekday, dow, doy);\n }\n }\n\n function setWeekAll(weekYear, week, weekday, dow, doy) {\n var dayOfYearData = dayOfYearFromWeeks(weekYear, week, weekday, dow, doy),\n date = createUTCDate(dayOfYearData.year, 0, dayOfYearData.dayOfYear);\n\n this.year(date.getUTCFullYear());\n this.month(date.getUTCMonth());\n this.date(date.getUTCDate());\n return this;\n }\n\n // FORMATTING\n\n addFormatToken('Q', 0, 'Qo', 'quarter');\n\n // PARSING\n\n addRegexToken('Q', match1);\n addParseToken('Q', function (input, array) {\n array[MONTH] = (toInt(input) - 1) * 3;\n });\n\n // MOMENTS\n\n function getSetQuarter(input) {\n return input == null\n ? Math.ceil((this.month() + 1) / 3)\n : this.month((input - 1) * 3 + (this.month() % 3));\n }\n\n // FORMATTING\n\n addFormatToken('D', ['DD', 2], 'Do', 'date');\n\n // PARSING\n\n addRegexToken('D', match1to2, match1to2NoLeadingZero);\n addRegexToken('DD', match1to2, match2);\n addRegexToken('Do', function (isStrict, locale) {\n // TODO: Remove \"ordinalParse\" fallback in next major release.\n return isStrict\n ? locale._dayOfMonthOrdinalParse || locale._ordinalParse\n : locale._dayOfMonthOrdinalParseLenient;\n });\n\n addParseToken(['D', 'DD'], DATE);\n addParseToken('Do', function (input, array) {\n array[DATE] = toInt(input.match(match1to2)[0]);\n });\n\n // MOMENTS\n\n var getSetDayOfMonth = makeGetSet('Date', true);\n\n // FORMATTING\n\n addFormatToken('DDD', ['DDDD', 3], 'DDDo', 'dayOfYear');\n\n // PARSING\n\n addRegexToken('DDD', match1to3);\n addRegexToken('DDDD', match3);\n addParseToken(['DDD', 'DDDD'], function (input, array, config) {\n config._dayOfYear = toInt(input);\n });\n\n // HELPERS\n\n // MOMENTS\n\n function getSetDayOfYear(input) {\n var dayOfYear =\n Math.round(\n (this.clone().startOf('day') - this.clone().startOf('year')) / 864e5\n ) + 1;\n return input == null ? dayOfYear : this.add(input - dayOfYear, 'd');\n }\n\n // FORMATTING\n\n addFormatToken('m', ['mm', 2], 0, 'minute');\n\n // PARSING\n\n addRegexToken('m', match1to2, match1to2HasZero);\n addRegexToken('mm', match1to2, match2);\n addParseToken(['m', 'mm'], MINUTE);\n\n // MOMENTS\n\n var getSetMinute = makeGetSet('Minutes', false);\n\n // FORMATTING\n\n addFormatToken('s', ['ss', 2], 0, 'second');\n\n // PARSING\n\n addRegexToken('s', match1to2, match1to2HasZero);\n addRegexToken('ss', match1to2, match2);\n addParseToken(['s', 'ss'], SECOND);\n\n // MOMENTS\n\n var getSetSecond = makeGetSet('Seconds', false);\n\n // FORMATTING\n\n addFormatToken('S', 0, 0, function () {\n return ~~(this.millisecond() / 100);\n });\n\n addFormatToken(0, ['SS', 2], 0, function () {\n return ~~(this.millisecond() / 10);\n });\n\n addFormatToken(0, ['SSS', 3], 0, 'millisecond');\n addFormatToken(0, ['SSSS', 4], 0, function () {\n return this.millisecond() * 10;\n });\n addFormatToken(0, ['SSSSS', 5], 0, function () {\n return this.millisecond() * 100;\n });\n addFormatToken(0, ['SSSSSS', 6], 0, function () {\n return this.millisecond() * 1000;\n });\n addFormatToken(0, ['SSSSSSS', 7], 0, function () {\n return this.millisecond() * 10000;\n });\n addFormatToken(0, ['SSSSSSSS', 8], 0, function () {\n return this.millisecond() * 100000;\n });\n addFormatToken(0, ['SSSSSSSSS', 9], 0, function () {\n return this.millisecond() * 1000000;\n });\n\n // PARSING\n\n addRegexToken('S', match1to3, match1);\n addRegexToken('SS', match1to3, match2);\n addRegexToken('SSS', match1to3, match3);\n\n var token, getSetMillisecond;\n for (token = 'SSSS'; token.length <= 9; token += 'S') {\n addRegexToken(token, matchUnsigned);\n }\n\n function parseMs(input, array) {\n array[MILLISECOND] = toInt(('0.' + input) * 1000);\n }\n\n for (token = 'S'; token.length <= 9; token += 'S') {\n addParseToken(token, parseMs);\n }\n\n getSetMillisecond = makeGetSet('Milliseconds', false);\n\n // FORMATTING\n\n addFormatToken('z', 0, 0, 'zoneAbbr');\n addFormatToken('zz', 0, 0, 'zoneName');\n\n // MOMENTS\n\n function getZoneAbbr() {\n return this._isUTC ? 'UTC' : '';\n }\n\n function getZoneName() {\n return this._isUTC ? 'Coordinated Universal Time' : '';\n }\n\n var proto$2 = Moment.prototype;\n\n proto$2.add = add$1;\n proto$2.calendar = calendar;\n proto$2.clone = clone$1;\n proto$2.diff = diff;\n proto$2.endOf = endOf;\n proto$2.format = format;\n proto$2.from = from;\n proto$2.fromNow = fromNow;\n proto$2.to = to;\n proto$2.toNow = toNow;\n proto$2.get = stringGet;\n proto$2.invalidAt = invalidAt;\n proto$2.isAfter = isAfter;\n proto$2.isBefore = isBefore;\n proto$2.isBetween = isBetween;\n proto$2.isSame = isSame;\n proto$2.isSameOrAfter = isSameOrAfter;\n proto$2.isSameOrBefore = isSameOrBefore;\n proto$2.isValid = isValid;\n proto$2.lang = lang;\n proto$2.locale = locale;\n proto$2.localeData = localeData;\n proto$2.max = prototypeMax;\n proto$2.min = prototypeMin;\n proto$2.parsingFlags = parsingFlags;\n proto$2.set = stringSet;\n proto$2.startOf = startOf;\n proto$2.subtract = subtract$1;\n proto$2.toArray = toArray;\n proto$2.toObject = toObject;\n proto$2.toDate = toDate;\n proto$2.toISOString = toISOString$1;\n proto$2.inspect = inspect;\n if (typeof Symbol !== 'undefined' && Symbol.for != null) {\n proto$2[Symbol.for('nodejs.util.inspect.custom')] = function () {\n return 'Moment<' + this.format() + '>';\n };\n }\n proto$2.toJSON = toJSON;\n proto$2.toString = toString;\n proto$2.unix = unix;\n proto$2.valueOf = valueOf$1;\n proto$2.creationData = creationData;\n proto$2.eraName = getEraName;\n proto$2.eraNarrow = getEraNarrow;\n proto$2.eraAbbr = getEraAbbr;\n proto$2.eraYear = getEraYear;\n proto$2.year = getSetYear;\n proto$2.isLeapYear = getIsLeapYear;\n proto$2.weekYear = getSetWeekYear;\n proto$2.isoWeekYear = getSetISOWeekYear;\n proto$2.quarter = proto$2.quarters = getSetQuarter;\n proto$2.month = getSetMonth;\n proto$2.daysInMonth = getDaysInMonth;\n proto$2.week = proto$2.weeks = getSetWeek;\n proto$2.isoWeek = proto$2.isoWeeks = getSetISOWeek;\n proto$2.weeksInYear = getWeeksInYear;\n proto$2.weeksInWeekYear = getWeeksInWeekYear;\n proto$2.isoWeeksInYear = getISOWeeksInYear;\n proto$2.isoWeeksInISOWeekYear = getISOWeeksInISOWeekYear;\n proto$2.date = getSetDayOfMonth;\n proto$2.day = proto$2.days = getSetDayOfWeek;\n proto$2.weekday = getSetLocaleDayOfWeek;\n proto$2.isoWeekday = getSetISODayOfWeek;\n proto$2.dayOfYear = getSetDayOfYear;\n proto$2.hour = proto$2.hours = getSetHour;\n proto$2.minute = proto$2.minutes = getSetMinute;\n proto$2.second = proto$2.seconds = getSetSecond;\n proto$2.millisecond = proto$2.milliseconds = getSetMillisecond;\n proto$2.utcOffset = getSetOffset;\n proto$2.utc = setOffsetToUTC;\n proto$2.local = setOffsetToLocal;\n proto$2.parseZone = setOffsetToParsedOffset;\n proto$2.hasAlignedHourOffset = hasAlignedHourOffset;\n proto$2.isDST = isDaylightSavingTime;\n proto$2.isLocal = isLocal;\n proto$2.isUtcOffset = isUtcOffset;\n proto$2.isUtc = isUtc;\n proto$2.isUTC = isUtc;\n proto$2.zoneAbbr = getZoneAbbr;\n proto$2.zoneName = getZoneName;\n proto$2.dates = deprecate(\n 'dates accessor is deprecated. Use date instead.',\n getSetDayOfMonth\n );\n proto$2.months = deprecate(\n 'months accessor is deprecated. Use month instead',\n getSetMonth\n );\n proto$2.years = deprecate(\n 'years accessor is deprecated. Use year instead',\n getSetYear\n );\n proto$2.zone = deprecate(\n 'moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/',\n getSetZone\n );\n proto$2.isDSTShifted = deprecate(\n 'isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information',\n isDaylightSavingTimeShifted\n );\n\n function createUnix(input) {\n return createLocal(input * 1000);\n }\n\n function createInZone() {\n return createLocal.apply(null, arguments).parseZone();\n }\n\n function preParsePostFormat(string) {\n return string;\n }\n\n var proto$1 = Locale.prototype;\n\n proto$1.calendar = calendar$1;\n proto$1.longDateFormat = longDateFormat;\n proto$1.invalidDate = invalidDate;\n proto$1.ordinal = ordinal;\n proto$1.preparse = preParsePostFormat;\n proto$1.postformat = preParsePostFormat;\n proto$1.relativeTime = relativeTime$1;\n proto$1.pastFuture = pastFuture;\n proto$1.set = set;\n proto$1.eras = localeEras;\n proto$1.erasParse = localeErasParse;\n proto$1.erasConvertYear = localeErasConvertYear;\n proto$1.erasAbbrRegex = erasAbbrRegex;\n proto$1.erasNameRegex = erasNameRegex;\n proto$1.erasNarrowRegex = erasNarrowRegex;\n\n proto$1.months = localeMonths;\n proto$1.monthsShort = localeMonthsShort;\n proto$1.monthsParse = localeMonthsParse;\n proto$1.monthsRegex = monthsRegex;\n proto$1.monthsShortRegex = monthsShortRegex;\n proto$1.week = localeWeek;\n proto$1.firstDayOfYear = localeFirstDayOfYear;\n proto$1.firstDayOfWeek = localeFirstDayOfWeek;\n\n proto$1.weekdays = localeWeekdays;\n proto$1.weekdaysMin = localeWeekdaysMin;\n proto$1.weekdaysShort = localeWeekdaysShort;\n proto$1.weekdaysParse = localeWeekdaysParse;\n\n proto$1.weekdaysRegex = weekdaysRegex;\n proto$1.weekdaysShortRegex = weekdaysShortRegex;\n proto$1.weekdaysMinRegex = weekdaysMinRegex;\n\n proto$1.isPM = localeIsPM;\n proto$1.meridiem = localeMeridiem;\n\n function get$1(format, index, field, setter) {\n var locale = getLocale(),\n utc = createUTC().set(setter, index);\n return locale[field](utc, format);\n }\n\n function listMonthsImpl(format, index, field) {\n if (isNumber(format)) {\n index = format;\n format = undefined;\n }\n\n format = format || '';\n\n if (index != null) {\n return get$1(format, index, field, 'month');\n }\n\n var i,\n out = [];\n for (i = 0; i < 12; i++) {\n out[i] = get$1(format, i, field, 'month');\n }\n return out;\n }\n\n // ()\n // (5)\n // (fmt, 5)\n // (fmt)\n // (true)\n // (true, 5)\n // (true, fmt, 5)\n // (true, fmt)\n function listWeekdaysImpl(localeSorted, format, index, field) {\n if (typeof localeSorted === 'boolean') {\n if (isNumber(format)) {\n index = format;\n format = undefined;\n }\n\n format = format || '';\n } else {\n format = localeSorted;\n index = format;\n localeSorted = false;\n\n if (isNumber(format)) {\n index = format;\n format = undefined;\n }\n\n format = format || '';\n }\n\n var locale = getLocale(),\n shift = localeSorted ? locale._week.dow : 0,\n i,\n out = [];\n\n if (index != null) {\n return get$1(format, (index + shift) % 7, field, 'day');\n }\n\n for (i = 0; i < 7; i++) {\n out[i] = get$1(format, (i + shift) % 7, field, 'day');\n }\n return out;\n }\n\n function listMonths(format, index) {\n return listMonthsImpl(format, index, 'months');\n }\n\n function listMonthsShort(format, index) {\n return listMonthsImpl(format, index, 'monthsShort');\n }\n\n function listWeekdays(localeSorted, format, index) {\n return listWeekdaysImpl(localeSorted, format, index, 'weekdays');\n }\n\n function listWeekdaysShort(localeSorted, format, index) {\n return listWeekdaysImpl(localeSorted, format, index, 'weekdaysShort');\n }\n\n function listWeekdaysMin(localeSorted, format, index) {\n return listWeekdaysImpl(localeSorted, format, index, 'weekdaysMin');\n }\n\n getSetGlobalLocale('en', {\n eras: [\n {\n since: '0001-01-01',\n until: +Infinity,\n offset: 1,\n name: 'Anno Domini',\n narrow: 'AD',\n abbr: 'AD',\n },\n {\n since: '0000-12-31',\n until: -Infinity,\n offset: 1,\n name: 'Before Christ',\n narrow: 'BC',\n abbr: 'BC',\n },\n ],\n dayOfMonthOrdinalParse: /\\d{1,2}(th|st|nd|rd)/,\n ordinal: function (number) {\n var b = number % 10,\n output =\n toInt((number % 100) / 10) === 1\n ? 'th'\n : b === 1\n ? 'st'\n : b === 2\n ? 'nd'\n : b === 3\n ? 'rd'\n : 'th';\n return number + output;\n },\n });\n\n // Side effect imports\n\n hooks.lang = deprecate(\n 'moment.lang is deprecated. Use moment.locale instead.',\n getSetGlobalLocale\n );\n hooks.langData = deprecate(\n 'moment.langData is deprecated. Use moment.localeData instead.',\n getLocale\n );\n\n var mathAbs = Math.abs;\n\n function abs$1() {\n var data = this._data;\n\n this._milliseconds = mathAbs(this._milliseconds);\n this._days = mathAbs(this._days);\n this._months = mathAbs(this._months);\n\n data.milliseconds = mathAbs(data.milliseconds);\n data.seconds = mathAbs(data.seconds);\n data.minutes = mathAbs(data.minutes);\n data.hours = mathAbs(data.hours);\n data.months = mathAbs(data.months);\n data.years = mathAbs(data.years);\n\n return this;\n }\n\n function addSubtract(duration, input, value, direction) {\n var other = createDuration(input, value);\n\n duration._milliseconds += direction * other._milliseconds;\n duration._days += direction * other._days;\n duration._months += direction * other._months;\n\n return duration._bubble();\n }\n\n // supports only 2.0-style add(1, 's') or add(duration)\n function add(input, value) {\n return addSubtract(this, input, value, 1);\n }\n\n // supports only 2.0-style subtract(1, 's') or subtract(duration)\n function subtract(input, value) {\n return addSubtract(this, input, value, -1);\n }\n\n function absCeil(number) {\n if (number < 0) {\n return Math.floor(number);\n } else {\n return Math.ceil(number);\n }\n }\n\n function bubble() {\n var milliseconds = this._milliseconds,\n days = this._days,\n months = this._months,\n data = this._data,\n seconds,\n minutes,\n hours,\n years,\n monthsFromDays;\n\n // if we have a mix of positive and negative values, bubble down first\n // check: https://github.com/moment/moment/issues/2166\n if (!(\n (milliseconds >= 0 && days >= 0 && months >= 0) ||\n (milliseconds <= 0 && days <= 0 && months <= 0)\n )) {\n milliseconds += absCeil(monthsToDays(months) + days) * 864e5;\n days = 0;\n months = 0;\n }\n\n // The following code bubbles up values, see the tests for\n // examples of what that means.\n data.milliseconds = milliseconds % 1000;\n\n seconds = absFloor(milliseconds / 1000);\n data.seconds = seconds % 60;\n\n minutes = absFloor(seconds / 60);\n data.minutes = minutes % 60;\n\n hours = absFloor(minutes / 60);\n data.hours = hours % 24;\n\n days += absFloor(hours / 24);\n\n // convert days to months\n monthsFromDays = absFloor(daysToMonths(days));\n months += monthsFromDays;\n days -= absCeil(monthsToDays(monthsFromDays));\n\n // 12 months -> 1 year\n years = absFloor(months / 12);\n months %= 12;\n\n data.days = days;\n data.months = months;\n data.years = years;\n\n return this;\n }\n\n function daysToMonths(days) {\n // 400 years have 146097 days (taking into account leap year rules)\n // 400 years have 12 months === 4800\n return (days * 4800) / 146097;\n }\n\n function monthsToDays(months) {\n // the reverse of daysToMonths\n return (months * 146097) / 4800;\n }\n\n function as(units) {\n if (!this.isValid()) {\n return NaN;\n }\n var days,\n months,\n milliseconds = this._milliseconds;\n\n units = normalizeUnits(units);\n\n if (units === 'month' || units === 'quarter' || units === 'year') {\n days = this._days + milliseconds / 864e5;\n months = this._months + daysToMonths(days);\n switch (units) {\n case 'month':\n return months;\n case 'quarter':\n return months / 3;\n case 'year':\n return months / 12;\n }\n } else {\n // handle milliseconds separately because of floating point math errors (issue #1867)\n days = this._days + Math.round(monthsToDays(this._months));\n switch (units) {\n case 'week':\n return days / 7 + milliseconds / 6048e5;\n case 'day':\n return days + milliseconds / 864e5;\n case 'hour':\n return days * 24 + milliseconds / 36e5;\n case 'minute':\n return days * 1440 + milliseconds / 6e4;\n case 'second':\n return days * 86400 + milliseconds / 1000;\n // Math.floor prevents floating point math errors here\n case 'millisecond':\n return Math.floor(days * 864e5) + milliseconds;\n default:\n throw new Error('Unknown unit ' + units);\n }\n }\n }\n\n function makeAs(alias) {\n return function () {\n return this.as(alias);\n };\n }\n\n var asMilliseconds = makeAs('ms'),\n asSeconds = makeAs('s'),\n asMinutes = makeAs('m'),\n asHours = makeAs('h'),\n asDays = makeAs('d'),\n asWeeks = makeAs('w'),\n asMonths = makeAs('M'),\n asQuarters = makeAs('Q'),\n asYears = makeAs('y'),\n valueOf = asMilliseconds;\n\n function clone() {\n return createDuration(this);\n }\n\n function get(units) {\n units = normalizeUnits(units);\n return this.isValid() ? this[units + 's']() : NaN;\n }\n\n function makeGetter(name) {\n return function () {\n return this.isValid() ? this._data[name] : NaN;\n };\n }\n\n var milliseconds = makeGetter('milliseconds'),\n seconds = makeGetter('seconds'),\n minutes = makeGetter('minutes'),\n hours = makeGetter('hours'),\n days = makeGetter('days'),\n months = makeGetter('months'),\n years = makeGetter('years');\n\n function weeks() {\n return absFloor(this.days() / 7);\n }\n\n var round = Math.round,\n thresholds = {\n ss: 44, // a few seconds to seconds\n s: 45, // seconds to minute\n m: 45, // minutes to hour\n h: 22, // hours to day\n d: 26, // days to month/week\n w: null, // weeks to month\n M: 11, // months to year\n };\n\n // helper function for moment.fn.from, moment.fn.fromNow, and moment.duration.fn.humanize\n function substituteTimeAgo(string, number, withoutSuffix, isFuture, locale) {\n return relativeTimeWithoutPostformat.call(\n locale,\n number || 1,\n !!withoutSuffix,\n string,\n isFuture\n );\n }\n\n function relativeTime(posNegDuration, withoutSuffix, thresholds, locale) {\n var duration = createDuration(posNegDuration).abs(),\n seconds = round(duration.as('s')),\n minutes = round(duration.as('m')),\n hours = round(duration.as('h')),\n days = round(duration.as('d')),\n months = round(duration.as('M')),\n weeks = round(duration.as('w')),\n years = round(duration.as('y')),\n a =\n (seconds <= thresholds.ss && ['s', seconds]) ||\n (seconds < thresholds.s && ['ss', seconds]) ||\n (minutes <= 1 && ['m']) ||\n (minutes < thresholds.m && ['mm', minutes]) ||\n (hours <= 1 && ['h']) ||\n (hours < thresholds.h && ['hh', hours]) ||\n (days <= 1 && ['d']) ||\n (days < thresholds.d && ['dd', days]);\n\n if (thresholds.w != null) {\n a =\n a ||\n (weeks <= 1 && ['w']) ||\n (weeks < thresholds.w && ['ww', weeks]);\n }\n a = a ||\n (months <= 1 && ['M']) ||\n (months < thresholds.M && ['MM', months]) ||\n (years <= 1 && ['y']) || ['yy', years];\n\n a[2] = withoutSuffix;\n a[3] = +posNegDuration > 0;\n a[4] = locale;\n return substituteTimeAgo.apply(null, a);\n }\n\n // This function allows you to set the rounding function for relative time strings\n function getSetRelativeTimeRounding(roundingFunction) {\n if (roundingFunction === undefined) {\n return round;\n }\n if (typeof roundingFunction === 'function') {\n round = roundingFunction;\n return true;\n }\n return false;\n }\n\n // This function allows you to set a threshold for relative time strings\n function getSetRelativeTimeThreshold(threshold, limit) {\n if (thresholds[threshold] === undefined) {\n return false;\n }\n if (limit === undefined) {\n return thresholds[threshold];\n }\n thresholds[threshold] = limit;\n if (threshold === 's') {\n thresholds.ss = limit - 1;\n }\n return true;\n }\n\n function humanize(argWithSuffix, argThresholds) {\n if (!this.isValid()) {\n return this.localeData().invalidDate();\n }\n\n var withSuffix = false,\n th = thresholds,\n locale,\n output;\n\n if (typeof argWithSuffix === 'object') {\n argThresholds = argWithSuffix;\n argWithSuffix = false;\n }\n if (typeof argWithSuffix === 'boolean') {\n withSuffix = argWithSuffix;\n }\n if (typeof argThresholds === 'object') {\n th = extend(extend({}, thresholds), argThresholds || {});\n if (argThresholds.s != null && argThresholds.ss == null) {\n th.ss = argThresholds.s - 1;\n }\n }\n\n locale = this.localeData();\n output = relativeTime(this, !withSuffix, th, locale);\n\n if (withSuffix) {\n output = pastFutureWithoutPostformat.call(locale, +this, output);\n }\n\n return locale.postformat(output);\n }\n\n var abs = Math.abs;\n\n function sign(x) {\n return (x > 0) - (x < 0) || +x;\n }\n\n function toISOString() {\n // for ISO strings we do not use the normal bubbling rules:\n // * milliseconds bubble up until they become hours\n // * days do not bubble at all\n // * months bubble up until they become years\n // This is because there is no context-free conversion between hours and days\n // (think of clock changes)\n // and also not between days and months (28-31 days per month)\n if (!this.isValid()) {\n return this.localeData().invalidDate();\n }\n\n var seconds = abs(this._milliseconds) / 1000,\n days = abs(this._days),\n months = abs(this._months),\n minutes,\n hours,\n years,\n s,\n total = this.asSeconds(),\n totalSign,\n ymSign,\n daysSign,\n hmsSign;\n\n if (!total) {\n // this is the same as C#'s (Noda) and python (isodate)...\n // but not other JS (goog.date)\n return 'P0D';\n }\n\n // 3600 seconds -> 60 minutes -> 1 hour\n minutes = absFloor(seconds / 60);\n hours = absFloor(minutes / 60);\n seconds %= 60;\n minutes %= 60;\n\n // 12 months -> 1 year\n years = absFloor(months / 12);\n months %= 12;\n\n // inspired by https://github.com/dordille/moment-isoduration/blob/master/moment.isoduration.js\n s = seconds ? seconds.toFixed(3).replace(/\\.?0+$/, '') : '';\n\n totalSign = total < 0 ? '-' : '';\n ymSign = sign(this._months) !== sign(total) ? '-' : '';\n daysSign = sign(this._days) !== sign(total) ? '-' : '';\n hmsSign = sign(this._milliseconds) !== sign(total) ? '-' : '';\n\n return (\n totalSign +\n 'P' +\n (years ? ymSign + years + 'Y' : '') +\n (months ? ymSign + months + 'M' : '') +\n (days ? daysSign + days + 'D' : '') +\n (hours || minutes || seconds ? 'T' : '') +\n (hours ? hmsSign + hours + 'H' : '') +\n (minutes ? hmsSign + minutes + 'M' : '') +\n (seconds ? hmsSign + s + 'S' : '')\n );\n }\n\n var proto = Duration.prototype;\n\n proto.isValid = isValid$1;\n proto.abs = abs$1;\n proto.add = add;\n proto.subtract = subtract;\n proto.as = as;\n proto.asMilliseconds = asMilliseconds;\n proto.asSeconds = asSeconds;\n proto.asMinutes = asMinutes;\n proto.asHours = asHours;\n proto.asDays = asDays;\n proto.asWeeks = asWeeks;\n proto.asMonths = asMonths;\n proto.asQuarters = asQuarters;\n proto.asYears = asYears;\n proto.valueOf = valueOf;\n proto._bubble = bubble;\n proto.clone = clone;\n proto.get = get;\n proto.milliseconds = milliseconds;\n proto.seconds = seconds;\n proto.minutes = minutes;\n proto.hours = hours;\n proto.days = days;\n proto.weeks = weeks;\n proto.months = months;\n proto.years = years;\n proto.humanize = humanize;\n proto.toISOString = toISOString;\n proto.toString = toISOString;\n proto.toJSON = toISOString;\n proto.locale = locale;\n proto.localeData = localeData;\n\n proto.toIsoString = deprecate(\n 'toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)',\n toISOString\n );\n proto.lang = lang;\n\n // FORMATTING\n\n addFormatToken('X', 0, 0, 'unix');\n addFormatToken('x', 0, 0, 'valueOf');\n\n // PARSING\n\n addRegexToken('x', matchSigned);\n addRegexToken('X', matchTimestamp);\n addParseToken('X', function (input, array, config) {\n config._d = new Date(parseFloat(input) * 1000);\n });\n addParseToken('x', function (input, array, config) {\n config._d = new Date(toInt(input));\n });\n\n //! moment.js\n\n hooks.version = '2.31.0';\n\n setHookCallback(createLocal);\n\n hooks.fn = proto$2;\n hooks.min = min;\n hooks.max = max;\n hooks.now = now;\n hooks.utc = createUTC;\n hooks.unix = createUnix;\n hooks.months = listMonths;\n hooks.isDate = isDate;\n hooks.locale = getSetGlobalLocale;\n hooks.invalid = createInvalid$1;\n hooks.duration = createDuration;\n hooks.isMoment = isMoment;\n hooks.weekdays = listWeekdays;\n hooks.parseZone = createInZone;\n hooks.localeData = getLocale;\n hooks.isDuration = isDuration;\n hooks.monthsShort = listMonthsShort;\n hooks.weekdaysMin = listWeekdaysMin;\n hooks.defineLocale = defineLocale;\n hooks.updateLocale = updateLocale;\n hooks.locales = listLocales;\n hooks.weekdaysShort = listWeekdaysShort;\n hooks.normalizeUnits = normalizeUnits;\n hooks.relativeTimeRounding = getSetRelativeTimeRounding;\n hooks.relativeTimeThreshold = getSetRelativeTimeThreshold;\n hooks.calendarFormat = getCalendarFormat;\n hooks.prototype = proto$2;\n\n // currently HTML5 input type only supports 24-hour formats\n hooks.HTML5_FMT = {\n DATETIME_LOCAL: 'YYYY-MM-DDTHH:mm', // \n DATETIME_LOCAL_SECONDS: 'YYYY-MM-DDTHH:mm:ss', // \n DATETIME_LOCAL_MS: 'YYYY-MM-DDTHH:mm:ss.SSS', // \n DATE: 'YYYY-MM-DD', // \n TIME: 'HH:mm', // \n TIME_SECONDS: 'HH:mm:ss', // \n TIME_MS: 'HH:mm:ss.SSS', // \n WEEK: 'GGGG-[W]WW', // \n MONTH: 'YYYY-MM', // \n };\n\n return hooks;\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", "/**\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 location?: { href?: string };\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 _sentryWrappedDepth?: number;\n /**\n * Bundler and runtime instrumentation detection.\n */\n __SENTRY_ORCHESTRION__?: {\n /** Empty array signifies runtime hooked */\n runtime?: string[];\n /**\n * The resolved `file:` URL of a transformed file for each runtime-injected\n * module, keyed by module name (e.g. `@mastra/core`). Lets an integration\n * anchor `createRequire` on the app's actual copy of a dependency without\n * relying on `process.cwd()` or the CJS `require.cache` — the latter is\n * always empty for ESM-loaded modules. Only the runtime `--import`/hook path\n * populates this; the bundler path inlines modules and records none.\n */\n runtimeFiles?: Record;\n /**\n * Module names recorded as each bundler-transformed module loads (the\n * injected snippet calls `orchestrionModuleInjected`). The bundler plugin's\n * entry banner ensures an empty `Set` at boot, so a defined set — even\n * empty — signifies the plugin ran.\n */\n bundler?: Set;\n /**\n * Channel-subscriber integration factories stored by the snippet the\n * bundler transform splices into each instrumented module, keyed by module\n * name. A factory shared by several packages (e.g. pg/pg-pool) appears\n * under several keys; integration-name deduplication collapses them at\n * setup. A bundler-only SDK (e.g. `@sentry/cloudflare`) reads these at\n * `init()` and instantiates them.\n */\n integrations?: Map Integration>;\n /**\n * Set once `registerDiagnosticsChannelInjection()` has run but could not\n * install the runtime module hooks — most commonly because\n * `@sentry/server-runtime-injection` was bundled into the app (which strips its vendored\n * code transformer) or the Node runtime lacks the required module-hook API.\n * Dedupes the one-time warning and short-circuits repeat calls.\n */\n runtimeUnavailable?: boolean;\n /**\n * Set when an integration asks to subscribe to orchestrion-injected\n * channels, so a missing injection is only reported when it loses data.\n */\n channelIntegrations?: boolean;\n /**\n * Set once the Bun warning for missing channel injection has been shown.\n * Lives on the marker so that duplicate SDK copies warn only once.\n */\n warnedBunRunNotInjected?: boolean;\n /**\n * Module namespaces stashed by build-time provider imports, keyed by module\n * name (e.g. `@mastra/observability`). A bundler plugin can splice a static\n * `import * as ns from ''` into an integration and record `ns` here, so\n * the integration can read a bundled peer dependency it cannot `createRequire`\n * in a bundled runtime such as Cloudflare Workers.\n */\n providedModules?: Record>;\n /**\n * Channel events that `@sentry/cloudflare` could not publish at module scope and publishes with the first\n * request. Lives on the marker because a bundle can hold both the CommonJS and the ES module build of the SDK:\n * transformed CommonJS packages add events through one build, and the request wrapper of the other publishes them.\n */\n deferredChannelEvents?: unknown[];\n };\n} & Carrier;\n\n/** Get's the global object for the current JavaScript runtime */\nexport const GLOBAL_OBJ = globalThis as unknown as InternalGlobal;\n", "// 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 type { TunnelStore } from './utils/tunnelStore';\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 /** Supplies trace context from a non-Sentry source (e.g. OpenTelemetry); set by `openTelemetryIntegration`. */\n externalPropagationContextProvider?: () => { traceId: string; spanId: string } | undefined;\n\n /** Overwrites TextEncoder used in `@sentry/core`, need for `react-native@0.73` and older */\n encodePolyfill?: (input: string) => Uint8Array;\n /** Overwrites TextDecoder used in `@sentry/core`, need for `react-native@0.73` and older */\n decodePolyfill?: (input: Uint8Array) => string;\n\n /** Only `utils/tunnelStore.ts` reads or writes it. */\n tunnelStore?: TunnelStore;\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²) 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 — 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 */\ntype Constructor = { new (...args: never[]): T };\n\nexport function isInstanceOf(wat: unknown, base: Constructor): wat is T;\nexport function isInstanceOf(wat: unknown, base: unknown): boolean;\nexport function isInstanceOf(wat: unknown, base: unknown): wat is T {\n try {\n return wat instanceof (base as Constructor);\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(\n source: { [key: string | symbol]: any },\n name: string | symbol,\n replacementFactory: (...args: any[]) => any,\n): 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 \"${String(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** (${stringifyCaughtValue(err)})` };\n }\n}\n\n/**\n * Stringify a caught value for an error message. Template literals and other implicit\n * conversions throw on symbols and on objects with no usable `toString`, which is how\n * the values that end up here tend to be broken in the first place, so fall back to\n * fixed text instead of throwing again.\n */\nfunction stringifyCaughtValue(err: unknown): string {\n try {\n return String(err);\n } catch {\n return 'unknown error';\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** (${stringifyCaughtValue(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 applyExceptionMechanism(firstException, newMechanism);\n}\n\n/**\n * Adds exception mechanism data to the originally captured (root) exception of a given event.\n *\n * @hidden\n */\nexport function addExceptionMechanismToCapturedException(event: Event, newMechanism?: Partial): void {\n const exceptions = event.exception?.values;\n\n // Exception groups identify the originally captured (root) exception with exception_id 0.\n const capturedException = exceptions?.find(exception => exception.mechanism?.exception_id === 0) ?? exceptions?.[0];\n\n if (!capturedException) {\n return;\n }\n\n applyExceptionMechanism(capturedException, newMechanism);\n}\n\nfunction applyExceptionMechanism(exception: Exception, newMechanism?: Partial): void {\n const defaultMechanism = { type: 'generic', handled: true };\n const currentMechanism = exception.mechanism;\n exception.mechanism = { ...defaultMechanism, ...currentMechanism, ...newMechanism };\n\n if (newMechanism && 'data' in newMechanism) {\n exception.mechanism.data = { ...currentMechanism?.data, ...newMechanism.data };\n }\n}\n\n// https://semver.org/#is-there-a-suggested-regular-expression-regex-to-check-a-semver-string\nconst SEMVER_REGEXP =\n /^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$/;\n\n/**\n * Represents Semantic Versioning object\n */\ninterface SemVer {\n major?: number;\n minor?: number;\n patch?: number;\n prerelease?: string;\n buildmetadata?: string;\n}\n\nfunction _parseInt(input: string | undefined): number {\n return parseInt(input || '', 10);\n}\n\n/**\n * Parses input into a SemVer interface\n * @param input string representation of a semver version\n */\nexport function parseSemver(input: string): SemVer {\n const match = input.match(SEMVER_REGEXP) || [];\n const major = _parseInt(match[1]);\n const minor = _parseInt(match[2]);\n const patch = _parseInt(match[3]);\n return {\n buildmetadata: match[5],\n major: isNaN(major) ? undefined : major,\n minor: isNaN(minor) ? undefined : minor,\n patch: isNaN(patch) ? undefined : patch,\n prerelease: match[4],\n };\n}\n\n/**\n * This function adds context (pre/post/line) lines to the provided frame\n *\n * @param lines string[] containing all lines\n * @param frame StackFrame that will be mutated\n * @param linesOfContext number of context lines we want to add pre/post\n */\nexport function addContextToFrame(lines: string[], frame: StackFrame, linesOfContext: number = 5): void {\n // When there is no line number in the frame, attaching context is nonsensical and will even break grouping\n if (frame.lineno === undefined) {\n return;\n }\n\n const maxLines = lines.length;\n const sourceLine = Math.max(Math.min(maxLines - 1, frame.lineno - 1), 0);\n\n frame.pre_context = lines\n .slice(Math.max(0, sourceLine - linesOfContext), sourceLine)\n .map((line: string) => snipLine(line, 0));\n\n // We guard here to ensure this is not larger than the existing number of lines\n const lineIndex = Math.min(maxLines - 1, sourceLine);\n\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n frame.context_line = snipLine(lines[lineIndex]!, frame.colno || 0);\n\n frame.post_context = lines\n .slice(Math.min(sourceLine + 1, maxLines), sourceLine + 1 + linesOfContext)\n .map((line: string) => snipLine(line, 0));\n}\n\n/**\n * Checks whether or not we've already captured the given exception (note: not an identical exception - the very object\n * in question), and marks it captured if not.\n *\n * This is useful because it's possible for an error to get captured by more than one mechanism. After we intercept and\n * record an error, we rethrow it (assuming we've intercepted it before it's reached the top-level global handlers), so\n * that we don't interfere with whatever effects the error might have had were the SDK not there. At that point, because\n * the error has been rethrown, it's possible for it to bubble up to some other code we've instrumented. If it's not\n * caught after that, it will bubble all the way up to the global handlers (which of course we also instrument). This\n * function helps us ensure that even if we encounter the same error more than once, we only record it the first time we\n * see it.\n *\n * The client runs this check for every captured exception, also when `dedupeIntegration` is not active.\n * `dedupeIntegration` drops equal events that come from different error objects.\n *\n * Note: It will ignore primitives (always return `false` and not mark them as seen), as properties can't be set on\n * them. {@link: Object.objectify} can be used on exceptions to convert any that are primitives into their equivalent\n * object wrapper forms so that this check will always work. However, because we need to flag the exact object which\n * will get rethrown, and because that rethrowing happens outside of the event processing pipeline, the objectification\n * must be done before the exception captured.\n *\n * @param A thrown exception to check or flag as having been seen\n * @returns `true` if the exception has already been captured, `false` if not (with the side effect of marking it seen)\n */\nexport function checkOrSetAlreadyCaught(exception: unknown): boolean {\n if (isAlreadyCaptured(exception)) {\n return true;\n }\n\n try {\n // set it this way rather than by assignment so that it's not ennumerable and therefore isn't recorded by the\n // `ExtraErrorData` integration\n addNonEnumerableProperty(exception as { [key: string]: unknown }, '__sentry_captured__', true);\n } catch {\n // `exception` is a primitive, so we can't mark it seen\n }\n\n return false;\n}\n\n/**\n * Checks whether we've already captured the given exception (note: not an identical exception - the very object).\n * It is considered already captured if it has the `__sentry_captured__` property set to `true`.\n *\n * @internal Only considered for internal usage\n */\nexport function isAlreadyCaptured(exception: unknown): boolean | void {\n try {\n return (exception as { __sentry_captured__?: boolean }).__sentry_captured__;\n } catch {} // eslint-disable-line no-empty\n}\n", "import { safeDateNow, withRandomSafeContext } from './randomSafeContext';\nimport { GLOBAL_OBJ } from './worldwide';\n\nconst ONE_SECOND_IN_MS = 1000;\n\n/**\n * If `performance.timeOrigin + performance.now()` and `Date.now()` differ by more than this, we correct the time origin.\n */\nconst CLOCK_DRIFT_THRESHOLD_MS = 1_000;\n\n/**\n * Max number of time origins we store. When we hit it, we drop the oldest one, except the page load origin, which\n * the pageload span uses.\n */\nconst MAX_TIME_ORIGIN_SEGMENTS = 100;\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 * A time origin and the `performance.now()` value from which it applies.\n *\n * When we correct the time origin, we keep the old ones. This way, a `performance.now()` value can be converted with the\n * origin that was valid when it was measured, not the one that is valid now.\n */\ninterface TimeOriginSegment {\n /** The `performance.now()` value from which `origin` applies. */\n from: number;\n /** Milliseconds since the UNIX epoch that `performance.now() === 0` corresponds to. */\n origin: number;\n}\n\n/**\n * All time origins of the page, oldest first. Empty until the first `timestampInSeconds` call, or if the Performance\n * API is unavailable.\n */\nlet _timeOriginSegments: TimeOriginSegment[] = [];\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 if (performance?.now) {\n // We can still convert `performance.now()` values, just without drift correction.\n _timeOriginSegments = [{ from: 0, origin: safeDateNow() - withRandomSafeContext(() => performance.now()) }];\n }\n return dateTimestampInSeconds;\n }\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 // Due to device sleeps, the origin might need to be corrected to match the wall clock time over the SDK's lifetime.\n let correctedTimeOrigin = performance.timeOrigin;\n _timeOriginSegments = [{ from: 0, origin: correctedTimeOrigin }];\n let isFirstCall = true;\n let lastCheckedPerformanceNow = 0;\n\n return () => {\n return withRandomSafeContext(() => {\n const performanceNow = performance.now();\n const dateNow = Date.now();\n\n // `performance.now()` stops while the device sleeps, and the wall clock can be changed by NTP or the user. In\n // both cases `timeOrigin + performance.now()` no longer matches `Date.now()`, so we correct the time origin.\n // We still use `performance.now()` for elapsed time to keep sub-millisecond precision.\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 if (Math.abs(correctedTimeOrigin + performanceNow - dateNow) > CLOCK_DRIFT_THRESHOLD_MS) {\n correctedTimeOrigin = dateNow - performanceNow;\n\n if (isFirstCall) {\n // `performance.timeOrigin` was already wrong at startup, so we replace it. If we pushed a second segment\n // instead, the segment cap below could later drop the corrected one and keep the wrong one.\n _timeOriginSegments = [{ from: 0, origin: correctedTimeOrigin }];\n } else {\n // We keep the old origins, so performance entries recorded before the correction still use their origin.\n _timeOriginSegments.push({ from: lastCheckedPerformanceNow, origin: correctedTimeOrigin });\n if (_timeOriginSegments.length > MAX_TIME_ORIGIN_SEGMENTS) {\n // we keep the oldest entry (the page load origin) and drop the one after it.\n _timeOriginSegments.splice(1, 1);\n }\n }\n }\n isFirstCall = false;\n lastCheckedPerformanceNow = performanceNow;\n\n return (correctedTimeOrigin + performanceNow) / ONE_SECOND_IN_MS;\n });\n };\n}\n\n/**\n * Returns `performance.now()` in milliseconds, or `undefined` if the Performance API is unavailable.\n */\nexport function safePerformanceNow(): number | undefined {\n const { performance } = GLOBAL_OBJ as typeof GLOBAL_OBJ & { performance?: Performance };\n return performance?.now ? withRandomSafeContext(() => performance.now()) : undefined;\n}\n\nlet _cachedTimestampInSecondsFn: (() => number) | undefined;\nlet _checkedForDriftInThisTask = false;\n\n/**\n * Converts a `performance.now()` based, relative time in milliseconds (e.g. a `PerformanceEntry`'s `startTime`)\n * to a UNIX timestamp in seconds, matching {@link timestampInSeconds}.\n *\n * Corrects for clock drift via browserPerformanceTimeOrigin().\n *\n * Pass `entryStartTimeInMs` (also a `performance.now()` based time) to use the time origin that was valid at the entry's\n * start. Use it for all timings of one entry, so its duration stays correct.\n *\n * Returns `undefined` if the Performance API is unavailable.\n */\nexport function performanceTimeToSeconds(\n monotonicTimeInMs: number,\n entryStartTimeInMs = monotonicTimeInMs,\n): number | undefined {\n const origin = browserPerformanceTimeOrigin(entryStartTimeInMs);\n return origin == null ? undefined : (origin + monotonicTimeInMs) / ONE_SECOND_IN_MS;\n}\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 * If the Performance API time and `Date.now()` differ by more than {@link CLOCK_DRIFT_THRESHOLD_MS} (e.g. after the\n * device slept), the time origin is corrected based on `Date.now()`.\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 = _cachedTimestampInSecondsFn ?? (_cachedTimestampInSecondsFn = createUnixTimestampInSecondsFunc());\n return func();\n}\n\n/**\n * Returns the time origin in milliseconds that was valid at the given `performance.now()` time. Defaults to the page\n * load origin.\n *\n * Pass the time you want to convert, so entries that are reported late (e.g. INP on pagehide) are not shifted by a\n * drift that happened after they were recorded. Use the same time for all timings of one entry to keep its duration.\n *\n * Returns `undefined` if the Performance API is unavailable.\n */\nexport function browserPerformanceTimeOrigin(monotonicTimeInMs = 0): number | undefined {\n // Checks for drift (and sets up `_timeOriginSegments`), so entries recorded after a sleep get the corrected origin.\n // To avoid the expensive clock drift check on every call, we only do it once per task. Helps mitigating performance\n // overhead in loops over many entries (e.g. browser profiling `convertToContinuousProfile`).\n if (!_checkedForDriftInThisTask) {\n _checkedForDriftInThisTask = true;\n // We use a promise instead of `queueMicrotask`, because React Native < 0.66 doesn't have it.\n void Promise.resolve().then(() => {\n _checkedForDriftInThisTask = false;\n });\n timestampInSeconds();\n }\n\n let segment: TimeOriginSegment | undefined;\n for (const candidate of _timeOriginSegments) {\n if (segment && candidate.from > monotonicTimeInMs) {\n break;\n }\n segment = candidate;\n }\n\n return segment?.origin;\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. — 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", "/* eslint-disable max-lines */\nimport type { AttributeObject, RawAttribute, RawAttributes } from './attributes';\nimport type { Client } from './client';\nimport { DEBUG_BUILD } from './debug-build';\nimport { updateSession } from './session';\nimport type { Attachment } from './types/attachment';\nimport type { Breadcrumb } from './types/breadcrumb';\nimport type { Context, Contexts } from './types/context';\nimport type { DynamicSamplingContext } from './types/envelope';\nimport type { Event, EventHint } from './types/event';\nimport type { EventProcessor } from './types/eventprocessor';\nimport type { Extra, Extras } from './types/extra';\nimport type { Primitive } from './types/misc';\nimport type { RequestEventData } from './types/request';\nimport type { Session } from './types/session';\nimport type { SeverityLevel } from './types/severity';\nimport type { PropagationContext } from './types/tracing';\nimport type { User } from './types/user';\nimport { debug } from './utils/debug-logger';\nimport { isPlainObject } from './utils/is';\nimport { addNonEnumerableProperty } from './utils/object';\nimport { merge } from './utils/merge';\nimport { uuid4 } from './utils/misc';\nimport { generateTraceId } from './utils/propagationContext';\nimport { safeMathRandom } from './utils/randomSafeContext';\nimport { truncate } from './utils/string';\nimport { dateTimestampInSeconds } from './utils/time';\n\n/**\n * Default value for maximum number of breadcrumbs added to an event.\n */\nconst DEFAULT_MAX_BREADCRUMBS = 100;\n\n/**\n * A context to be used for capturing an event.\n * This can either be a Scope, or a partial ScopeContext,\n * or a callback that receives the current scope and returns a new scope to use.\n */\nexport type CaptureContext = Scope | Partial | ((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 /**\n * @deprecated This is no longer set or read by the SDK and will be removed in the next major version.\n */\n spanCountBeforeProcessing?: number;\n ipAddress?: string;\n /**\n * Set on `captureMessage` events whose stack trace exists only because `attachStacktrace`\n * defaults to `true`, so Replay does not treat them as errors in buffer mode.\n */\n hasDefaultSyntheticStacktrace?: boolean;\n}\n\n/**\n * Normalized data of the Scope, ready to be used.\n */\nexport interface ScopeData {\n eventProcessors: EventProcessor[];\n breadcrumbs: Breadcrumb[];\n user: User;\n tags: { [key: string]: Primitive };\n attributes: RawAttributes>;\n extra: Extras;\n contexts: Contexts;\n attachments: Attachment[];\n propagationContext: PropagationContext;\n sdkProcessingMetadata: SdkProcessingMetadata;\n fingerprint: string[];\n level?: SeverityLevel;\n transactionName?: string;\n conversationId?: string;\n}\n\n/**\n * Holds additional event information.\n */\nexport class Scope {\n /** Flag if notifying is happening. */\n protected _notifyingListeners: boolean;\n\n /** Callback for client to receive scope changes. */\n protected _scopeListeners: Array<(scope: Scope) => void>;\n\n /** Callback list that will be called during event processing. */\n protected _eventProcessors: EventProcessor[];\n\n /** Array of breadcrumbs. */\n protected _breadcrumbs: Breadcrumb[];\n\n /** User */\n protected _user: User;\n\n /** Tags */\n protected _tags: { [key: string]: Primitive };\n\n /** Attributes */\n protected _attributes: RawAttributes>;\n\n /** Extra */\n protected _extra: Extras;\n\n /** Contexts */\n protected _contexts: Contexts;\n\n /** Attachments */\n protected _attachments: Attachment[];\n\n /** Propagation Context for distributed tracing */\n protected _propagationContext: PropagationContext;\n\n /**\n * A place to stash data which is needed at some point in the SDK's event processing pipeline but which shouldn't get\n * sent to Sentry\n */\n protected _sdkProcessingMetadata: SdkProcessingMetadata;\n\n /** Fingerprint */\n protected _fingerprint?: string[];\n\n /** Severity */\n protected _level?: SeverityLevel;\n\n /**\n * Transaction Name\n *\n * IMPORTANT: The transaction name on the scope has nothing to do with root spans/transaction objects.\n * It's purpose is to assign a transaction to the scope that's added to non-transaction events.\n */\n protected _transactionName?: string;\n\n /** Session */\n protected _session?: Session;\n\n /** The client on this scope */\n protected _client?: Client;\n\n /** Contains the last event id of a captured event. */\n protected _lastEventId?: string;\n\n /** Conversation ID */\n protected _conversationId?: string;\n\n /**\n * A place to stash references to objects that are associated with this scope but should not be serialized,\n * such as the currently active span (core) or the OpenTelemetry context (opentelemetry).\n * These are cloned as-is (shallow) when the scope is cloned, so they survive `clone()`.\n *\n * This is non-enumerable so it does not leak into `toJSON`, `Object.keys` or structural comparisons.\n */\n declare public refs: Record;\n\n // NOTE: Any field which gets added here should get added not only to the constructor but also to the `clone` method.\n\n public constructor() {\n this._notifyingListeners = false;\n this._scopeListeners = [];\n this._eventProcessors = [];\n this._breadcrumbs = [];\n this._attachments = [];\n this._user = {};\n this._tags = {};\n this._attributes = {};\n this._extra = {};\n this._contexts = {};\n this._sdkProcessingMetadata = {};\n addNonEnumerableProperty(this, 'refs', {});\n this._propagationContext = {\n traceId: generateTraceId(),\n sampleRand: safeMathRandom(),\n };\n }\n\n /**\n * Clone all data from this scope into a new scope.\n */\n public clone(): Scope {\n const newScope = new Scope();\n newScope._breadcrumbs = [...this._breadcrumbs];\n newScope._tags = { ...this._tags };\n newScope._attributes = { ...this._attributes };\n newScope._extra = { ...this._extra };\n newScope._contexts = { ...this._contexts };\n if (this._contexts.flags) {\n // We need to copy the `values` array so insertions on a cloned scope\n // won't affect the original array.\n newScope._contexts.flags = {\n values: [...this._contexts.flags.values],\n };\n }\n\n newScope._user = this._user;\n newScope._level = this._level;\n newScope._session = this._session;\n newScope._transactionName = this._transactionName;\n newScope._fingerprint = this._fingerprint;\n newScope._eventProcessors = [...this._eventProcessors];\n newScope._attachments = [...this._attachments];\n newScope._sdkProcessingMetadata = { ...this._sdkProcessingMetadata };\n newScope._propagationContext = { ...this._propagationContext };\n newScope._client = this._client;\n newScope._lastEventId = this._lastEventId;\n newScope._conversationId = this._conversationId;\n newScope.refs = { ...this.refs };\n\n return newScope;\n }\n\n /**\n * Update the client assigned to this scope.\n * Note that not every scope will have a client assigned - isolation scopes & the global scope will generally not have a client,\n * as well as manually created scopes.\n */\n public setClient(client: Client | undefined): void {\n this._client = client;\n }\n\n /**\n * Set the ID of the last captured error event.\n * This is generally only captured on the isolation scope.\n */\n public setLastEventId(lastEventId: string | undefined): void {\n this._lastEventId = lastEventId;\n }\n\n /**\n * Get the client assigned to this scope.\n */\n public getClient(): C | 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 * Adds a breadcrumb to the scope.\n * By default, the last 100 breadcrumbs are kept.\n */\n public addBreadcrumb(breadcrumb: Breadcrumb, maxBreadcrumbs?: number): this {\n const maxCrumbs = typeof maxBreadcrumbs === 'number' ? maxBreadcrumbs : DEFAULT_MAX_BREADCRUMBS;\n\n // No data has been changed, so don't notify scope listeners\n if (maxCrumbs <= 0) {\n return this;\n }\n\n const mergedBreadcrumb: Breadcrumb = {\n timestamp: dateTimestampInSeconds(),\n ...breadcrumb,\n // Breadcrumb messages can theoretically be infinitely large and they're held in memory so we truncate them not to leak (too much) memory\n message: breadcrumb.message ? truncate(breadcrumb.message, 2048) : breadcrumb.message,\n };\n\n this._breadcrumbs.push(mergedBreadcrumb);\n if (this._breadcrumbs.length > maxCrumbs) {\n this._breadcrumbs = this._breadcrumbs.slice(-maxCrumbs);\n }\n\n this._notifyScopeListeners();\n\n return this;\n }\n\n /**\n * Get the last breadcrumb of the scope.\n */\n public getLastBreadcrumb(): Breadcrumb | undefined {\n return this._breadcrumbs[this._breadcrumbs.length - 1];\n }\n\n /**\n * Clear all breadcrumbs from the scope.\n */\n public clearBreadcrumbs(): this {\n this._breadcrumbs = [];\n this._notifyScopeListeners();\n return this;\n }\n\n /**\n * Add an attachment to the scope.\n */\n public addAttachment(attachment: Attachment): this {\n this._attachments.push(attachment);\n return this;\n }\n\n /**\n * Clear all attachments from the scope.\n */\n public clearAttachments(): this {\n this._attachments = [];\n return this;\n }\n\n /**\n * Get the data of this scope, which should be applied to an event during processing.\n */\n public getScopeData(): ScopeData {\n return {\n breadcrumbs: this._breadcrumbs,\n attachments: this._attachments,\n contexts: this._contexts,\n tags: this._tags,\n attributes: this._attributes,\n extra: this._extra,\n user: this._user,\n level: this._level,\n fingerprint: this._fingerprint || [],\n eventProcessors: this._eventProcessors,\n propagationContext: this._propagationContext,\n sdkProcessingMetadata: this._sdkProcessingMetadata,\n transactionName: this._transactionName,\n conversationId: this._conversationId,\n };\n }\n\n /**\n * Add data which will be accessible during event processing but won't get sent to Sentry.\n */\n public setSDKProcessingMetadata(newData: SdkProcessingMetadata): this {\n this._sdkProcessingMetadata = merge(this._sdkProcessingMetadata, newData, 2);\n return this;\n }\n\n /**\n * Add propagation context to the scope, used for distributed tracing\n */\n public setPropagationContext(context: PropagationContext): this {\n this._propagationContext = context;\n return this;\n }\n\n /**\n * Get propagation context from the scope, used for distributed tracing\n */\n public getPropagationContext(): PropagationContext {\n return this._propagationContext;\n }\n\n /**\n * Capture an exception for this scope.\n *\n * @returns {string} The id of the captured Sentry event.\n */\n public captureException(exception: unknown, hint?: EventHint): string {\n const eventId = hint?.event_id || uuid4();\n\n if (!this._client) {\n DEBUG_BUILD && debug.warn('No client configured on scope - will not capture exception!');\n return eventId;\n }\n\n const syntheticException = new Error('Sentry syntheticException');\n\n this._client.captureException(\n exception,\n {\n originalException: exception,\n syntheticException,\n ...hint,\n event_id: eventId,\n },\n this,\n );\n\n return eventId;\n }\n\n /**\n * Capture a message for this scope.\n *\n * @returns {string} The id of the captured message.\n */\n public captureMessage(message: string, level?: SeverityLevel, hint?: EventHint): string {\n const eventId = hint?.event_id || uuid4();\n\n if (!this._client) {\n DEBUG_BUILD && debug.warn('No client configured on scope - will not capture message!');\n return eventId;\n }\n\n const syntheticException = hint?.syntheticException ?? new Error(message);\n\n this._client.captureMessage(\n message,\n level,\n {\n originalException: message,\n syntheticException,\n ...hint,\n event_id: eventId,\n },\n this,\n );\n\n return eventId;\n }\n\n /**\n * Capture a Sentry event for this scope.\n *\n * @returns {string} The id of the captured event.\n */\n public captureEvent(event: Event, hint?: EventHint): string {\n const eventId = event.event_id || hint?.event_id || uuid4();\n\n if (!this._client) {\n DEBUG_BUILD && debug.warn('No client configured on scope - will not capture event!');\n return eventId;\n }\n\n this._client.captureEvent(event, { ...hint, event_id: eventId }, this);\n\n return eventId;\n }\n\n /**\n * This will be called on every set call.\n */\n protected _notifyScopeListeners(): void {\n // We need this check for this._notifyingListeners to be able to work on scope during updates\n // If this check is not here we'll produce endless recursion when something is done with the scope\n // during the callback.\n if (!this._notifyingListeners) {\n this._notifyingListeners = true;\n this._scopeListeners.forEach(callback => {\n callback(this);\n });\n this._notifyingListeners = false;\n }\n }\n}\n", "import { 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", "export const SUPPRESS_TRACING_KEY = '__SENTRY_SUPPRESS_TRACING__';\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 { SUPPRESS_TRACING_KEY } from '../tracing/constants';\nimport { chainAndCopyPromiseLike } from '../utils/chain-and-copy-promiselike';\nimport { isThenable } from '../utils/is';\nimport { getMainCarrier, getSentryCarrier } from './../carrier';\nimport type { AsyncContextStrategy } from './types';\n\ninterface Layer {\n client?: Client;\n scope: Scope;\n}\n\n/**\n * This is an object that holds a stack of scopes.\n */\nexport class AsyncContextStack {\n private readonly _stack: [Layer, ...Layer[]];\n private _isolationScope: Scope;\n\n public constructor(scope?: Scope, isolationScope?: Scope) {\n let assignedScope;\n if (!scope) {\n assignedScope = new Scope();\n } else {\n assignedScope = scope;\n }\n\n let assignedIsolationScope;\n if (!isolationScope) {\n assignedIsolationScope = new Scope();\n } else {\n assignedIsolationScope = isolationScope;\n }\n\n // scope stack for domains or the process\n this._stack = [{ scope: assignedScope }];\n this._isolationScope = assignedIsolationScope;\n }\n\n /**\n * Fork a scope for the stack.\n */\n public withScope(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 suppressTracing: suppressTracingInStack,\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\n/**\n * In stack-based ACS, we do not wait for the callback to finish before we reset the metadata\n * the reason for this is that otherwise, in the stack this can lead to very weird behavior\n * as there is only a single top scope, if the callback takes longer to finish,\n * other, unrelated spans may also be suppressed, which we do not want\n * so instead, we only suppress tracing synchronoysly in the stack.\n */\nfunction suppressTracingInStack(callback: () => T): T {\n return withScope(scope => {\n scope.setSDKProcessingMetadata({ [SUPPRESS_TRACING_KEY]: true });\n const res = callback();\n scope.setSDKProcessingMetadata({ [SUPPRESS_TRACING_KEY]: undefined });\n return res;\n });\n}\n", "import 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, getSentryCarrier } from './carrier';\nimport type { Client } from './client';\nimport { Scope } from './scope';\nimport type { TraceContext } from './types/context';\nimport { generateSpanId } from './utils/propagationContext';\n\n/**\n * Register an external propagation context provider function.\n * When registered, trace context will be read from the external source (e.g. OpenTelemetry)\n * instead of from the Sentry scope's propagation context.\n */\nexport function registerExternalPropagationContext(fn: () => { traceId: string; spanId: string } | undefined): void {\n // Kept on the carrier rather than in module state: bundlers routinely emit more than one copy of\n // `@sentry/core` (e.g. one per Next.js server chunk), and the copy the integration registers on is\n // usually not the copy that reads it back when an event is assembled.\n getSentryCarrier(getMainCarrier()).externalPropagationContextProvider = fn;\n}\n\n/**\n * Get the external propagation context, if a provider has been registered.\n */\nexport function getExternalPropagationContext(): { traceId: string; spanId: string } | undefined {\n return getSentryCarrier(getMainCarrier()).externalPropagationContextProvider?.();\n}\n\n/**\n * Check if an external propagation context provider has been registered.\n */\nexport function hasExternalPropagationContext(): boolean {\n return getSentryCarrier(getMainCarrier()).externalPropagationContextProvider !== undefined;\n}\n\n/**\n * Get the currently active scope.\n */\nexport function getCurrentScope(): Scope {\n const carrier = getMainCarrier();\n const acs = getAsyncContextStrategy(carrier);\n return acs.getCurrentScope();\n}\n\n/**\n * Get the currently active isolation scope.\n * The isolation scope is active for the current execution context.\n */\nexport function getIsolationScope(): Scope {\n const carrier = getMainCarrier();\n const acs = getAsyncContextStrategy(carrier);\n return acs.getIsolationScope();\n}\n\n/**\n * Get the global scope.\n * This scope is applied to _all_ events.\n */\nexport function getGlobalScope(): Scope {\n return getGlobalSingleton('globalScope', () => new Scope());\n}\n\n/**\n * Creates a new scope with and executes the given operation within.\n * The scope is automatically removed once the operation\n * finishes or throws.\n */\nexport function withScope(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", "export const SPAN_STATUS_TYPES = [\n /** The operation completed successfully. */\n 'ok',\n /** Deadline expired before operation could complete. */\n 'deadline_exceeded',\n /** 401 Unauthorized (actually does mean unauthenticated according to RFC 7235) */\n 'unauthenticated',\n /** 403 Forbidden */\n 'permission_denied',\n /** 404 Not Found. Some requested entity (file or directory) was not found. */\n 'not_found',\n /** 429 Too Many Requests */\n 'resource_exhausted',\n /** Client specified an invalid argument. 4xx. */\n 'invalid_argument',\n /** 501 Not Implemented */\n 'unimplemented',\n /** 503 Service Unavailable */\n 'unavailable',\n /** Other/generic 5xx. */\n 'internal_error',\n /** Unknown. Any non-standard HTTP status code. */\n 'unknown_error',\n /** The operation was cancelled (typically by the user). */\n 'cancelled',\n /** Already exists (409) */\n 'already_exists',\n /** Operation was rejected because the system is not in a state required for the operation's */\n 'failed_precondition',\n /** The operation was aborted, typically due to a concurrency issue. */\n 'aborted',\n /** Operation was attempted past the valid range. */\n 'out_of_range',\n /** Unrecoverable data loss or corruption */\n 'data_loss',\n] as const;\n\nexport type SpanStatusType = (typeof SPAN_STATUS_TYPES)[number];\n\n// These are aligned with OpenTelemetry span status codes\nconst SPAN_STATUS_UNSET = 0;\nconst SPAN_STATUS_OK = 1;\nconst SPAN_STATUS_ERROR = 2;\n/** The status code of a span. */\nexport type SpanStatusCode = typeof SPAN_STATUS_UNSET | typeof SPAN_STATUS_OK | typeof SPAN_STATUS_ERROR;\n\n/**\n * The status of a span.\n * This can optionally contain a human-readable message.\n */\nexport interface SpanStatus {\n /**\n * The status code of this message.\n * 0 = UNSET\n * 1 = OK\n * 2 = ERROR\n */\n code: SpanStatusCode;\n /**\n * A developer-facing error message.\n */\n message?: SpanStatusType | string;\n}\n", "// This is an auto-generated file. Do not edit!\n\nexport type { SystemInstructions, TextPart } from './_schemas/gen_ai_system_instructions';\n\nexport type { ToolCallArguments } from './_schemas/gen_ai_tool_call_arguments';\n\nexport type { ToolCallResult } from './_schemas/gen_ai_tool_call_result';\n\nexport type {\n ToolDefinitions,\n ToolDefinition,\n FunctionToolDefinition,\n ServerSideToolDefinition,\n} from './_schemas/gen_ai_tool_definitions';\n\n// Path: model/attributes/address.json\n\n/**\n * The destination hostname or IP address for a TCP connection. `address`\n *\n * Attribute Value Type: `string` {@link ADDRESS_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`, {@link SERVER_NAME} `server_name`, {@link NET_PEER_NAME} `net.peer.name`\n *\n * @deprecated Use {@link SERVER_ADDRESS} (server.address) instead - Old namespace-less attribute, to be replaced with server.address for span-first future\n * @example \"example.com\"\n */\nexport const ADDRESS = 'address';\n\n/**\n * Type for {@link ADDRESS} address\n */\nexport type ADDRESS_TYPE = string;\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: manual\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`, {@link AI_RESPONSE_ID} `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 id of the model used by the Vercel AI SDK. `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_REQUEST_MODEL} `gen_ai.request.model`, {@link _AI_MODEL_ID} `ai.model_id`\n *\n * @deprecated Use {@link GEN_AI_REQUEST_MODEL} (gen_ai.request.model) instead - This attribute is being deprecated in favor of gen_ai.request.model.\n * @example \"gpt-4o\"\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_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_REQUEST_MODEL} `gen_ai.request.model`, {@link AI_MODEL_ID} `ai.model.id`\n *\n * @deprecated Use {@link GEN_AI_REQUEST_MODEL} (gen_ai.request.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`, {@link LANGCHAIN_CHAIN_NAME} `langchain.chain.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: manual\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.json\n\n/**\n * The prompt passed to the Vercel AI SDK, as a stringified object. `ai.prompt`\n *\n * Attribute Value Type: `string` {@link AI_PROMPT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_INPUT_MESSAGES} `gen_ai.input.messages`, {@link AI_TEXTS} `ai.texts`, {@link AI_PROMPT_MESSAGES} `ai.prompt.messages`, {@link GEN_AI_PROMPT} `gen_ai.prompt`\n *\n * @deprecated Use {@link GEN_AI_INPUT_MESSAGES} (gen_ai.input.messages) instead - This attribute is being deprecated in favor of gen_ai.input.messages.\n * @example \"{\\\"prompt\\\":\\\"What is the weather in Paris?\\\"}\"\n */\nexport const AI_PROMPT = 'ai.prompt';\n\n/**\n * Type for {@link AI_PROMPT} ai.prompt\n */\nexport type AI_PROMPT_TYPE = string;\n\n// Path: model/attributes/ai/ai__prompt__messages.json\n\n/**\n * The input messages sent to the AI model. `ai.prompt.messages`\n *\n * Attribute Value Type: `string` {@link AI_PROMPT_MESSAGES_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_INPUT_MESSAGES} `gen_ai.input.messages`, {@link AI_TEXTS} `ai.texts`, {@link GEN_AI_PROMPT} `gen_ai.prompt`, {@link AI_PROMPT} `ai.prompt`\n *\n * @deprecated Use {@link GEN_AI_INPUT_MESSAGES} (gen_ai.input.messages) instead\n * @example \"[{\\\"role\\\": \\\"user\\\", \\\"message\\\": \\\"hello\\\"}]\"\n */\nexport const AI_PROMPT_MESSAGES = 'ai.prompt.messages';\n\n/**\n * Type for {@link AI_PROMPT_MESSAGES} ai.prompt.messages\n */\nexport type AI_PROMPT_MESSAGES_TYPE = string;\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__prompt__tools.json\n\n/**\n * The tools made available to the model, as an array of stringified tool definitions. `ai.prompt.tools`\n *\n * Attribute Value Type: `Array` {@link AI_PROMPT_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 - This attribute is being deprecated in favor of gen_ai.tool.definitions.\n * @example [\"{\\\"type\\\":\\\"function\\\",\\\"name\\\":\\\"get_weather\\\"}\"]\n */\nexport const AI_PROMPT_TOOLS = 'ai.prompt.tools';\n\n/**\n * Type for {@link AI_PROMPT_TOOLS} ai.prompt.tools\n */\nexport type AI_PROMPT_TOOLS_TYPE = Array;\n\n// Path: model/attributes/ai/ai__raw_prompting.json\n\n/**\n * When enabled, the user’s 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__response__id.json\n\n/**\n * The id of the response returned by the model. `ai.response.id`\n *\n * Attribute Value Type: `string` {@link AI_RESPONSE_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`, {@link AI_GENERATION_ID} `ai.generation_id`\n *\n * @deprecated Use {@link GEN_AI_RESPONSE_ID} (gen_ai.response.id) instead - This attribute is being deprecated in favor of gen_ai.response.id.\n * @example \"chatcmpl-BuKJgVSKAMTUYbBSjHTMUuNGKzOPY\"\n */\nexport const AI_RESPONSE_ID = 'ai.response.id';\n\n/**\n * Type for {@link AI_RESPONSE_ID} ai.response.id\n */\nexport type AI_RESPONSE_ID_TYPE = string;\n\n// Path: model/attributes/ai/ai__response__model.json\n\n/**\n * The id of the model that produced the response. `ai.response.model`\n *\n * Attribute Value Type: `string` {@link AI_RESPONSE_MODEL_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 - This attribute is being deprecated in favor of gen_ai.response.model.\n * @example \"gpt-4o-2024-08-06\"\n */\nexport const AI_RESPONSE_MODEL = 'ai.response.model';\n\n/**\n * Type for {@link AI_RESPONSE_MODEL} ai.response.model\n */\nexport type AI_RESPONSE_MODEL_TYPE = string;\n\n// Path: model/attributes/ai/ai__response__object.json\n\n/**\n * The type of the object returned by the model. `ai.response.object`\n *\n * Attribute Value Type: `string` {@link AI_RESPONSE_OBJECT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated - This attribute is deprecated. The Sentry conventions have no replacement for the raw Vercel AI response object type.\n * @example \"chat.completion\"\n */\nexport const AI_RESPONSE_OBJECT = 'ai.response.object';\n\n/**\n * Type for {@link AI_RESPONSE_OBJECT} ai.response.object\n */\nexport type AI_RESPONSE_OBJECT_TYPE = string;\n\n// Path: model/attributes/ai/ai__response__text.json\n\n/**\n * The text response from the AI model. `ai.response.text`\n *\n * Attribute Value Type: `string` {@link AI_RESPONSE_TEXT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_OUTPUT_MESSAGES} `gen_ai.output.messages`, {@link AI_RESPONSE_TOOLCALLS} `ai.response.toolCalls`\n *\n * @deprecated Use {@link GEN_AI_OUTPUT_MESSAGES} (gen_ai.output.messages) instead\n * @example \"The weather in Paris is currently rainy.\"\n */\nexport const AI_RESPONSE_TEXT = 'ai.response.text';\n\n/**\n * Type for {@link AI_RESPONSE_TEXT} ai.response.text\n */\nexport type AI_RESPONSE_TEXT_TYPE = string;\n\n// Path: model/attributes/ai/ai__response__timestamp.json\n\n/**\n * The ISO 8601 timestamp at which the response was produced. `ai.response.timestamp`\n *\n * Attribute Value Type: `string` {@link AI_RESPONSE_TIMESTAMP_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated - This attribute is deprecated. The span start and end timestamps carry the same information.\n * @example \"2026-02-19T15:32:11.000Z\"\n */\nexport const AI_RESPONSE_TIMESTAMP = 'ai.response.timestamp';\n\n/**\n * Type for {@link AI_RESPONSE_TIMESTAMP} ai.response.timestamp\n */\nexport type AI_RESPONSE_TIMESTAMP_TYPE = string;\n\n// Path: model/attributes/ai/ai__response__toolCalls.json\n\n/**\n * The tool calls in the AI model response. `ai.response.toolCalls`\n *\n * Attribute Value Type: `string` {@link AI_RESPONSE_TOOLCALLS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_OUTPUT_MESSAGES} `gen_ai.output.messages`, {@link AI_RESPONSE_TEXT} `ai.response.text`\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 AI_RESPONSE_TOOLCALLS = 'ai.response.toolCalls';\n\n/**\n * Type for {@link AI_RESPONSE_TOOLCALLS} ai.response.toolCalls\n */\nexport type AI_RESPONSE_TOOLCALLS_TYPE = string;\n\n// Path: model/attributes/ai/ai__schema.json\n\n/**\n * The stringified JSON schema the model output must conform to. `ai.schema`\n *\n * Attribute Value Type: `string` {@link AI_SCHEMA_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated - This attribute is deprecated. The Sentry conventions have no replacement for the requested output schema.\n * @example \"{\\\"type\\\":\\\"object\\\",\\\"properties\\\":{\\\"city\\\":{\\\"type\\\":\\\"string\\\"}}}\"\n */\nexport const AI_SCHEMA = 'ai.schema';\n\n/**\n * Type for {@link AI_SCHEMA} ai.schema\n */\nexport type AI_SCHEMA_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: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_INPUT_MESSAGES} `gen_ai.input.messages`, {@link AI_PROMPT_MESSAGES} `ai.prompt.messages`, {@link GEN_AI_PROMPT} `gen_ai.prompt`, {@link AI_PROMPT} `ai.prompt`\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__toolCall__args.json\n\n/**\n * The arguments of the tool call. `ai.toolCall.args`\n *\n * Attribute Value Type: `string` {@link AI_TOOLCALL_ARGS_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`, {@link GEN_AI_TOOL_INPUT} `gen_ai.tool.input`\n *\n * @deprecated Use {@link GEN_AI_TOOL_CALL_ARGUMENTS} (gen_ai.tool.call.arguments) instead\n * @example \"{\\\"location\\\": \\\"Paris\\\"}\"\n */\nexport const AI_TOOLCALL_ARGS = 'ai.toolCall.args';\n\n/**\n * Type for {@link AI_TOOLCALL_ARGS} ai.toolCall.args\n */\nexport type AI_TOOLCALL_ARGS_TYPE = string;\n\n// Path: model/attributes/ai/ai__toolCall__result.json\n\n/**\n * The result of the tool call. `ai.toolCall.result`\n *\n * Attribute Value Type: `string` {@link AI_TOOLCALL_RESULT_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_OUTPUT} `gen_ai.tool.output`, {@link GEN_AI_TOOL_MESSAGE} `gen_ai.tool.message`, {@link MCP_TOOL_RESULT_CONTENT} `mcp.tool.result.content`, {@link ANTHROPIC_TOOL_RESULT_CONTENT} `anthropic.tool_result.content`\n *\n * @deprecated Use {@link GEN_AI_TOOL_CALL_RESULT} (gen_ai.tool.call.result) instead\n * @example \"rainy, 57°F\"\n */\nexport const AI_TOOLCALL_RESULT = 'ai.toolCall.result';\n\n/**\n * Type for {@link AI_TOOLCALL_RESULT} ai.toolCall.result\n */\nexport type AI_TOOLCALL_RESULT_TYPE = string;\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: 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 [\"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`, {@link AI_USAGE_TOKENS} `ai.usage.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__usage__tokens.json\n\n/**\n * The total number of tokens used for the request and the response. `ai.usage.tokens`\n *\n * Attribute Value Type: `number` {@link AI_USAGE_TOKENS_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`, {@link AI_TOTAL_TOKENS_USED} `ai.total_tokens.used`\n *\n * @deprecated Use {@link GEN_AI_USAGE_TOTAL_TOKENS} (gen_ai.usage.total_tokens) instead - This attribute is being deprecated in favor of gen_ai.usage.total_tokens.\n * @example 150\n */\nexport const AI_USAGE_TOKENS = 'ai.usage.tokens';\n\n/**\n * Type for {@link AI_USAGE_TOKENS} ai.usage.tokens\n */\nexport type AI_USAGE_TOKENS_TYPE = number;\n\n// Path: model/attributes/ai/ai__values.json\n\n/**\n * The stringified values produced by a Vercel AI SDK object or array generation. `ai.values`\n *\n * Attribute Value Type: `string` {@link AI_VALUES_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated - This attribute is deprecated. Use gen_ai.output.messages for model output instead.\n * @example \"[{\\\"city\\\":\\\"Paris\\\"}]\"\n */\nexport const AI_VALUES = 'ai.values';\n\n/**\n * Type for {@link AI_VALUES} ai.values\n */\nexport type AI_VALUES_TYPE = string;\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/anthropic/anthropic__tool_result__content.json\n\n/**\n * The content of the tool result. `anthropic.tool_result.content`\n *\n * Attribute Value Type: `string` {@link ANTHROPIC_TOOL_RESULT_CONTENT_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_OUTPUT} `gen_ai.tool.output`, {@link GEN_AI_TOOL_MESSAGE} `gen_ai.tool.message`, {@link MCP_TOOL_RESULT_CONTENT} `mcp.tool.result.content`, {@link AI_TOOLCALL_RESULT} `ai.toolCall.result`\n *\n * @deprecated Use {@link GEN_AI_TOOL_CALL_RESULT} (gen_ai.tool.call.result) instead - Use gen_ai.tool.call.result for tool results.\n * @example \"rainy, 57°F\"\n */\nexport const ANTHROPIC_TOOL_RESULT_CONTENT = 'anthropic.tool_result.content';\n\n/**\n * Type for {@link ANTHROPIC_TOOL_RESULT_CONTENT} anthropic.tool_result.content\n */\nexport type ANTHROPIC_TOOL_RESULT_CONTENT_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`, {@link SENTRY_FRAMES_FROZEN} `sentry.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__frozen__rate.json\n\n/**\n * The fraction of rendered frames that were frozen, calculated as `app.vitals.frames.frozen.count` divided by `app.vitals.frames.total.count`. This is computed by Relay. `app.vitals.frames.frozen.rate`\n *\n * Attribute Value Type: `number` {@link APP_VITALS_FRAMES_FROZEN_RATE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link FRAMES_FROZEN_RATE} `frames_frozen_rate`\n *\n * @example 0.5\n */\nexport const APP_VITALS_FRAMES_FROZEN_RATE = 'app.vitals.frames.frozen.rate';\n\n/**\n * Type for {@link APP_VITALS_FRAMES_FROZEN_RATE} app.vitals.frames.frozen.rate\n */\nexport type APP_VITALS_FRAMES_FROZEN_RATE_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`, {@link SENTRY_FRAMES_SLOW} `sentry.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__slow__rate.json\n\n/**\n * The fraction of rendered frames that were slow, calculated as `app.vitals.frames.slow.count` divided by `app.vitals.frames.total.count`. This is computed by Relay. `app.vitals.frames.slow.rate`\n *\n * Attribute Value Type: `number` {@link APP_VITALS_FRAMES_SLOW_RATE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link FRAMES_SLOW_RATE} `frames_slow_rate`\n *\n * @example 0.25\n */\nexport const APP_VITALS_FRAMES_SLOW_RATE = 'app.vitals.frames.slow.rate';\n\n/**\n * Type for {@link APP_VITALS_FRAMES_SLOW_RATE} app.vitals.frames.slow.rate\n */\nexport type APP_VITALS_FRAMES_SLOW_RATE_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`, {@link SENTRY_FRAMES_TOTAL} `sentry.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__stall__duration.json\n\n/**\n * The combined duration of all stalls in milliseconds. Only applies to React Native. This is computed by Relay. `app.vitals.stall.duration`\n *\n * Attribute Value Type: `number` {@link APP_VITALS_STALL_DURATION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link STALL_TOTAL_TIME} `stall_total_time`\n *\n * @example 4000\n */\nexport const APP_VITALS_STALL_DURATION = 'app.vitals.stall.duration';\n\n/**\n * Type for {@link APP_VITALS_STALL_DURATION} app.vitals.stall.duration\n */\nexport type APP_VITALS_STALL_DURATION_TYPE = number;\n\n// Path: model/attributes/app/app__vitals__stall__percentage.json\n\n/**\n * The fraction of transaction duration during which the app was stalled, between 0.0 and 1.0. For example, 0.8 represents 80%. Only applies to React Native. This is computed by Relay. `app.vitals.stall.percentage`\n *\n * Attribute Value Type: `number` {@link APP_VITALS_STALL_PERCENTAGE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link STALL_PERCENTAGE} `stall_percentage`\n *\n * @example 0.8\n */\nexport const APP_VITALS_STALL_PERCENTAGE = 'app.vitals.stall.percentage';\n\n/**\n * Type for {@link APP_VITALS_STALL_PERCENTAGE} app.vitals.stall.percentage\n */\nexport type APP_VITALS_STALL_PERCENTAGE_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__attributes_to_get.json\n\n/**\n * The value of the `AttributesToGet` request parameter. `aws.dynamodb.attributes_to_get`\n *\n * Attribute Value Type: `Array` {@link AWS_DYNAMODB_ATTRIBUTES_TO_GET_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example [\"lives\",\"id\"]\n */\nexport const AWS_DYNAMODB_ATTRIBUTES_TO_GET = 'aws.dynamodb.attributes_to_get';\n\n/**\n * Type for {@link AWS_DYNAMODB_ATTRIBUTES_TO_GET} aws.dynamodb.attributes_to_get\n */\nexport type AWS_DYNAMODB_ATTRIBUTES_TO_GET_TYPE = Array;\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__initialization_type.json\n\n/**\n * How AWS Lambda initialized the execution environment, as reported by AWS_LAMBDA_INITIALIZATION_TYPE. `aws.lambda.initialization_type`\n *\n * Attribute Value Type: `string` {@link AWS_LAMBDA_INITIALIZATION_TYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"native-http\"\n * @example \"on-demand\"\n * @example \"provisioned-concurrency\"\n * @example \"snap-start\"\n */\nexport const AWS_LAMBDA_INITIALIZATION_TYPE = 'aws.lambda.initialization_type';\n\n/**\n * Type for {@link AWS_LAMBDA_INITIALIZATION_TYPE} aws.lambda.initialization_type\n */\nexport type AWS_LAMBDA_INITIALIZATION_TYPE_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__lambda__resource_mapping__id.json\n\n/**\n * The UUID of the [AWS Lambda EventSource Mapping](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html). An event source is mapped to a lambda function. Its contents are read by Lambda and used to trigger a function. This isn't available in the lambda execution context or the lambda runtime environment. This is going to be populated by the AWS SDK for each language when that UUID is present. Some of these operations are Create/Delete/Get/List/Update EventSourceMapping. `aws.lambda.resource_mapping.id`\n *\n * Attribute Value Type: `string` {@link AWS_LAMBDA_RESOURCE_MAPPING_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"587ad24b-03b9-4413-8202-bbd56b36e5b7\"\n */\nexport const AWS_LAMBDA_RESOURCE_MAPPING_ID = 'aws.lambda.resource_mapping.id';\n\n/**\n * Type for {@link AWS_LAMBDA_RESOURCE_MAPPING_ID} aws.lambda.resource_mapping.id\n */\nexport type AWS_LAMBDA_RESOURCE_MAPPING_ID_TYPE = string;\n\n// Path: model/attributes/aws/aws__lambda__target_function__name.json\n\n/**\n * The name of the AWS Lambda function that an AWS SDK call acts on. `aws.lambda.target_function.name`\n *\n * Attribute Value Type: `string` {@link AWS_LAMBDA_TARGET_FUNCTION_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"billing\"\n */\nexport const AWS_LAMBDA_TARGET_FUNCTION_NAME = 'aws.lambda.target_function.name';\n\n/**\n * Type for {@link AWS_LAMBDA_TARGET_FUNCTION_NAME} aws.lambda.target_function.name\n */\nexport type AWS_LAMBDA_TARGET_FUNCTION_NAME_TYPE = string;\n\n// Path: model/attributes/aws/aws__lambda__web__endpoint_name.json\n\n/**\n * The name of the AWS Lambda Web Function endpoint that received the request, as reported by the lambda-web-endpoint-name request header. `aws.lambda.web.endpoint_name`\n *\n * Attribute Value Type: `string` {@link AWS_LAMBDA_WEB_ENDPOINT_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"prod\"\n * @example \"canary\"\n */\nexport const AWS_LAMBDA_WEB_ENDPOINT_NAME = 'aws.lambda.web.endpoint_name';\n\n/**\n * Type for {@link AWS_LAMBDA_WEB_ENDPOINT_NAME} aws.lambda.web.endpoint_name\n */\nexport type AWS_LAMBDA_WEB_ENDPOINT_NAME_TYPE = string;\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__operation_name.json\n\n/**\n * The name of the API operation invoked on an AWS service. `aws.operation_name`\n *\n * Attribute Value Type: `string` {@link AWS_OPERATION_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link RPC_METHOD} `rpc.method`\n *\n * @deprecated Use {@link RPC_METHOD} (rpc.method) instead - This attribute is being deprecated in favor of rpc.method, which is the framework-agnostic replacement.\n * @example \"PutObject\"\n */\nexport const AWS_OPERATION_NAME = 'aws.operation_name';\n\n/**\n * Type for {@link AWS_OPERATION_NAME} aws.operation_name\n */\nexport type AWS_OPERATION_NAME_TYPE = string;\n\n// Path: model/attributes/aws_region.json\n\n/**\n * The geographical region the AWS resource is running `aws_region`\n *\n * Attribute Value Type: `string` {@link AWS_REGION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link CLOUD_REGION} `cloud.region`, {@link GCP_REGION} `gcp_region`\n *\n * @deprecated Use {@link CLOUD_REGION} (cloud.region) instead\n * @example \"us-east-1\"\n */\nexport const AWS_REGION = 'aws_region';\n\n/**\n * Type for {@link AWS_REGION} aws_region\n */\nexport type AWS_REGION_TYPE = string;\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__request__url.json\n\n/**\n * The URL of the AWS API request. `aws.request.url`\n *\n * Attribute Value Type: `string` {@link AWS_REQUEST_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`, {@link URL} `url`, {@link MESSAGING_URL} `messaging.url`\n *\n * @deprecated Use {@link URL_FULL} (url.full) instead - This attribute is being deprecated in favor of url.full, which is the OTel-aligned replacement.\n * @example \"https://sqs.us-east-1.amazonaws.com/123456789/my-queue\"\n */\nexport const AWS_REQUEST_URL = 'aws.request.url';\n\n/**\n * Type for {@link AWS_REQUEST_URL} aws.request.url\n */\nexport type AWS_REQUEST_URL_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__s3__copy_source.json\n\n/**\n * The source object (in the form bucket/key) for the copy operation. `aws.s3.copy_source`\n *\n * Attribute Value Type: `string` {@link AWS_S3_COPY_SOURCE_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"someFile.yml\"\n */\nexport const AWS_S3_COPY_SOURCE = 'aws.s3.copy_source';\n\n/**\n * Type for {@link AWS_S3_COPY_SOURCE} aws.s3.copy_source\n */\nexport type AWS_S3_COPY_SOURCE_TYPE = string;\n\n// Path: model/attributes/aws/aws__s3__delete.json\n\n/**\n * The JSON-serialized value of Delete request field, which specifies the objects to be deleted. `aws.s3.delete`\n *\n * Attribute Value Type: `string` {@link AWS_S3_DELETE_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"{\\\"Objects\\\":[{\\\"Key\\\":\\\"someFile.yml\\\",\\\"VersionId\\\":\\\"3HL4kqtJlcpXroDTDmJ\\\"}],\\\"Quiet\\\":false}\"\n */\nexport const AWS_S3_DELETE = 'aws.s3.delete';\n\n/**\n * Type for {@link AWS_S3_DELETE} aws.s3.delete\n */\nexport type AWS_S3_DELETE_TYPE = string;\n\n// Path: model/attributes/aws/aws__s3__key.json\n\n/**\n * The S3 object key the request refers to. Corresponds to the --key parameter of the S3 API operations. `aws.s3.key`\n *\n * Attribute Value Type: `string` {@link AWS_S3_KEY_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"someFile.yml\"\n */\nexport const AWS_S3_KEY = 'aws.s3.key';\n\n/**\n * Type for {@link AWS_S3_KEY} aws.s3.key\n */\nexport type AWS_S3_KEY_TYPE = string;\n\n// Path: model/attributes/aws/aws__s3__part_number.json\n\n/**\n * The part number of the part being uploaded in a multipart-upload operation. This is a positive integer between 1 and 10,000. `aws.s3.part_number`\n *\n * Attribute Value Type: `number` {@link AWS_S3_PART_NUMBER_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example 3456\n */\nexport const AWS_S3_PART_NUMBER = 'aws.s3.part_number';\n\n/**\n * Type for {@link AWS_S3_PART_NUMBER} aws.s3.part_number\n */\nexport type AWS_S3_PART_NUMBER_TYPE = number;\n\n// Path: model/attributes/aws/aws__s3__upload_id.json\n\n/**\n * Upload ID that identifies the multipart upload. `aws.s3.upload_id`\n *\n * Attribute Value Type: `string` {@link AWS_S3_UPLOAD_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"dfRtDYWFbkRONycy.Yxwh66Yjlx.cph0gtNBtJ\"\n */\nexport const AWS_S3_UPLOAD_ID = 'aws.s3.upload_id';\n\n/**\n * Type for {@link AWS_S3_UPLOAD_ID} aws.s3.upload_id\n */\nexport type AWS_S3_UPLOAD_ID_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__secretsmanager__secret__name.json\n\n/**\n * The name of the secret stored in AWS Secrets Manager. `aws.secretsmanager.secret.name`\n *\n * Attribute Value Type: `string` {@link AWS_SECRETSMANAGER_SECRET_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"db-password\"\n * @example \"prod/billing/api-key\"\n */\nexport const AWS_SECRETSMANAGER_SECRET_NAME = 'aws.secretsmanager.secret.name';\n\n/**\n * Type for {@link AWS_SECRETSMANAGER_SECRET_NAME} aws.secretsmanager.secret.name\n */\nexport type AWS_SECRETSMANAGER_SECRET_NAME_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__sqs__queue__url.json\n\n/**\n * The URL of the AWS SQS Queue. It’s a unique identifier for a queue in Amazon Simple Queue Service (SQS) and is used to access the queue and perform actions on it. `aws.sqs.queue.url`\n *\n * Attribute Value Type: `string` {@link AWS_SQS_QUEUE_URL_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"https://sqs.us-east-1.amazonaws.com/123456789012/MyQueue\"\n */\nexport const AWS_SQS_QUEUE_URL = 'aws.sqs.queue.url';\n\n/**\n * Type for {@link AWS_SQS_QUEUE_URL} aws.sqs.queue.url\n */\nexport type AWS_SQS_QUEUE_URL_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__activity__name.json\n\n/**\n * The name of the AWS Step Functions activity. `aws.step_functions.activity.name`\n *\n * Attribute Value Type: `string` {@link AWS_STEP_FUNCTIONS_ACTIVITY_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"resize-image\"\n */\nexport const AWS_STEP_FUNCTIONS_ACTIVITY_NAME = 'aws.step_functions.activity.name';\n\n/**\n * Type for {@link AWS_STEP_FUNCTIONS_ACTIVITY_NAME} aws.step_functions.activity.name\n */\nexport type AWS_STEP_FUNCTIONS_ACTIVITY_NAME_TYPE = string;\n\n// Path: model/attributes/aws/aws__step_functions__execution__arn.json\n\n/**\n * The ARN of the AWS Step Functions Execution. `aws.step_functions.execution.arn`\n *\n * Attribute Value Type: `string` {@link AWS_STEP_FUNCTIONS_EXECUTION_ARN_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"arn:aws:states:us-east-1:123456789012:execution:myStateMachine:myExecution\"\n */\nexport const AWS_STEP_FUNCTIONS_EXECUTION_ARN = 'aws.step_functions.execution.arn';\n\n/**\n * Type for {@link AWS_STEP_FUNCTIONS_EXECUTION_ARN} aws.step_functions.execution.arn\n */\nexport type AWS_STEP_FUNCTIONS_EXECUTION_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/aws/aws__step_functions__state_machine__name.json\n\n/**\n * The name of the AWS Step Functions state machine. `aws.step_functions.state_machine.name`\n *\n * Attribute Value Type: `string` {@link AWS_STEP_FUNCTIONS_STATE_MACHINE_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"orders\"\n */\nexport const AWS_STEP_FUNCTIONS_STATE_MACHINE_NAME = 'aws.step_functions.state_machine.name';\n\n/**\n * Type for {@link AWS_STEP_FUNCTIONS_STATE_MACHINE_NAME} aws.step_functions.state_machine.name\n */\nexport type AWS_STEP_FUNCTIONS_STATE_MACHINE_NAME_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__bfcache__frame.json\n\n/**\n * Which frame in the page's frame tree a back/forward cache not-restored reason originated from: the top document or a child frame. `browser.bfcache.frame`\n *\n * Attribute Value Type: `string` {@link BROWSER_BFCACHE_FRAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"top\"\n * @example \"child\"\n */\nexport const BROWSER_BFCACHE_FRAME = 'browser.bfcache.frame';\n\n/**\n * Type for {@link BROWSER_BFCACHE_FRAME} browser.bfcache.frame\n */\nexport type BROWSER_BFCACHE_FRAME_TYPE = string;\n\n// Path: model/attributes/browser/browser__bfcache__not_restored_reason_count.json\n\n/**\n * The number of reported reasons a page was not restored from the back/forward cache on a back/forward navigation. 0 when the browser reported no reasons (e.g. non-Chromium browsers). `browser.bfcache.not_restored_reason_count`\n *\n * Attribute Value Type: `number` {@link BROWSER_BFCACHE_NOT_RESTORED_REASON_COUNT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 2\n */\nexport const BROWSER_BFCACHE_NOT_RESTORED_REASON_COUNT = 'browser.bfcache.not_restored_reason_count';\n\n/**\n * Type for {@link BROWSER_BFCACHE_NOT_RESTORED_REASON_COUNT} browser.bfcache.not_restored_reason_count\n */\nexport type BROWSER_BFCACHE_NOT_RESTORED_REASON_COUNT_TYPE = number;\n\n// Path: model/attributes/browser/browser__bfcache__outcome.json\n\n/**\n * Whether a back/forward navigation was restored from the browser's back/forward cache (bfcache). 'hit' means the page was restored; 'miss' means it was reloaded. `browser.bfcache.outcome`\n *\n * Attribute Value Type: `string` {@link BROWSER_BFCACHE_OUTCOME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"hit\"\n * @example \"miss\"\n */\nexport const BROWSER_BFCACHE_OUTCOME = 'browser.bfcache.outcome';\n\n/**\n * Type for {@link BROWSER_BFCACHE_OUTCOME} browser.bfcache.outcome\n */\nexport type BROWSER_BFCACHE_OUTCOME_TYPE = string;\n\n// Path: model/attributes/browser/browser__bfcache__reason.json\n\n/**\n * A browser-reported reason a page was not restored from the back/forward cache on a back/forward navigation, taken from the notRestoredReasons API. Reported per reason (a single miss can have several). Currently Chromium-only. `browser.bfcache.reason`\n *\n * Attribute Value Type: `string` {@link BROWSER_BFCACHE_REASON_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"unload-listener\"\n * @example \"websocket\"\n * @example \"idbversionchangeevent\"\n * @example \"response-cache-control-no-store\"\n */\nexport const BROWSER_BFCACHE_REASON = 'browser.bfcache.reason';\n\n/**\n * Type for {@link BROWSER_BFCACHE_REASON} browser.bfcache.reason\n */\nexport type BROWSER_BFCACHE_REASON_TYPE = string;\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__navigation__id.json\n\n/**\n * The identifier of the navigation the measurement belongs to, incremented by the browser for each navigation within a page's lifetime. `browser.navigation.id`\n *\n * Attribute Value Type: `number` {@link BROWSER_NAVIGATION_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 1\n * @example 3\n * @example 0\n */\nexport const BROWSER_NAVIGATION_ID = 'browser.navigation.id';\n\n/**\n * Type for {@link BROWSER_NAVIGATION_ID} browser.navigation.id\n */\nexport type BROWSER_NAVIGATION_ID_TYPE = number;\n\n// Path: model/attributes/browser/browser__navigation__type.json\n\n/**\n * The type of navigation the browser performed to arrive at the page the metrics were measured on. `browser.navigation.type`\n *\n * Attribute Value Type: `string` {@link BROWSER_NAVIGATION_TYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"navigate\"\n * @example \"reload\"\n * @example \"back-forward\"\n * @example \"back-forward-cache\"\n * @example \"prerender\"\n * @example \"restore\"\n * @example \"soft-navigation\"\n */\nexport const BROWSER_NAVIGATION_TYPE = 'browser.navigation.type';\n\n/**\n * Type for {@link BROWSER_NAVIGATION_TYPE} browser.navigation.type\n */\nexport type BROWSER_NAVIGATION_TYPE_TYPE = string;\n\n// Path: model/attributes/browser/browser__paint__type.json\n\n/**\n * The type of paint timing entry reported by the browser. `browser.paint.type`\n *\n * Attribute Value Type: `string` {@link BROWSER_PAINT_TYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"first-paint\"\n * @example \"first-contentful-paint\"\n */\nexport const BROWSER_PAINT_TYPE = 'browser.paint.type';\n\n/**\n * Type for {@link BROWSER_PAINT_TYPE} browser.paint.type\n */\nexport type BROWSER_PAINT_TYPE_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 * @deprecated - The JavaScript SDK stopped setting this in v11. With per-navigation web vitals, web-vitals decides when the CLS value is final, so there is no report event to record. No replacement.\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__input_delay.json\n\n/**\n * The time between the user interacting with the page and the browser starting to run the event handlers, for the interaction INP was reported on, in milliseconds `browser.web_vital.inp.input_delay`\n *\n * Attribute Value Type: `number` {@link BROWSER_WEB_VITAL_INP_INPUT_DELAY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 120\n */\nexport const BROWSER_WEB_VITAL_INP_INPUT_DELAY = 'browser.web_vital.inp.input_delay';\n\n/**\n * Type for {@link BROWSER_WEB_VITAL_INP_INPUT_DELAY} browser.web_vital.inp.input_delay\n */\nexport type BROWSER_WEB_VITAL_INP_INPUT_DELAY_TYPE = number;\n\n// Path: model/attributes/browser/browser__web_vital__inp__interaction_type.json\n\n/**\n * The kind of user interaction INP was reported on `browser.web_vital.inp.interaction_type`\n *\n * Attribute Value Type: `string` {@link BROWSER_WEB_VITAL_INP_INTERACTION_TYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"click\"\n * @example \"hover\"\n * @example \"drag\"\n * @example \"press\"\n */\nexport const BROWSER_WEB_VITAL_INP_INTERACTION_TYPE = 'browser.web_vital.inp.interaction_type';\n\n/**\n * Type for {@link BROWSER_WEB_VITAL_INP_INTERACTION_TYPE} browser.web_vital.inp.interaction_type\n */\nexport type BROWSER_WEB_VITAL_INP_INTERACTION_TYPE_TYPE = string;\n\n// Path: model/attributes/browser/browser__web_vital__inp__presentation_delay.json\n\n/**\n * The time between the event handlers finishing and the browser presenting the next frame, for the interaction INP was reported on, in milliseconds `browser.web_vital.inp.presentation_delay`\n *\n * Attribute Value Type: `number` {@link BROWSER_WEB_VITAL_INP_PRESENTATION_DELAY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 100\n */\nexport const BROWSER_WEB_VITAL_INP_PRESENTATION_DELAY = 'browser.web_vital.inp.presentation_delay';\n\n/**\n * Type for {@link BROWSER_WEB_VITAL_INP_PRESENTATION_DELAY} browser.web_vital.inp.presentation_delay\n */\nexport type BROWSER_WEB_VITAL_INP_PRESENTATION_DELAY_TYPE = number;\n\n// Path: model/attributes/browser/browser__web_vital__inp__processing_duration.json\n\n/**\n * The time it took the event handlers to run, for the interaction INP was reported on, in milliseconds `browser.web_vital.inp.processing_duration`\n *\n * Attribute Value Type: `number` {@link BROWSER_WEB_VITAL_INP_PROCESSING_DURATION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 140\n */\nexport const BROWSER_WEB_VITAL_INP_PROCESSING_DURATION = 'browser.web_vital.inp.processing_duration';\n\n/**\n * Type for {@link BROWSER_WEB_VITAL_INP_PROCESSING_DURATION} browser.web_vital.inp.processing_duration\n */\nexport type BROWSER_WEB_VITAL_INP_PROCESSING_DURATION_TYPE = number;\n\n// Path: model/attributes/browser/browser__web_vital__inp__target.json\n\n/**\n * The HTML element selector or component name of the element the user interacted with, for the interaction INP was reported on `browser.web_vital.inp.target`\n *\n * Attribute Value Type: `string` {@link BROWSER_WEB_VITAL_INP_TARGET_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"body > div#app > button.submit\"\n * @example \"SubmitButton\"\n */\nexport const BROWSER_WEB_VITAL_INP_TARGET = 'browser.web_vital.inp.target';\n\n/**\n * Type for {@link BROWSER_WEB_VITAL_INP_TARGET} browser.web_vital.inp.target\n */\nexport type BROWSER_WEB_VITAL_INP_TARGET_TYPE = string;\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__element_render_delay.json\n\n/**\n * The time between the LCP resource finishing loading and the LCP element being rendered, in milliseconds `browser.web_vital.lcp.element_render_delay`\n *\n * Attribute Value Type: `number` {@link BROWSER_WEB_VITAL_LCP_ELEMENT_RENDER_DELAY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 410\n */\nexport const BROWSER_WEB_VITAL_LCP_ELEMENT_RENDER_DELAY = 'browser.web_vital.lcp.element_render_delay';\n\n/**\n * Type for {@link BROWSER_WEB_VITAL_LCP_ELEMENT_RENDER_DELAY} browser.web_vital.lcp.element_render_delay\n */\nexport type BROWSER_WEB_VITAL_LCP_ELEMENT_RENDER_DELAY_TYPE = number;\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 * @deprecated - The JavaScript SDK stopped setting this in v11. With per-navigation web vitals, web-vitals decides when the LCP value is final, so there is no report event to record. No replacement.\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__resource_load_delay.json\n\n/**\n * The time between the first byte of the document arriving and the browser starting to load the LCP resource, in milliseconds `browser.web_vital.lcp.resource_load_delay`\n *\n * Attribute Value Type: `number` {@link BROWSER_WEB_VITAL_LCP_RESOURCE_LOAD_DELAY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 320.5\n */\nexport const BROWSER_WEB_VITAL_LCP_RESOURCE_LOAD_DELAY = 'browser.web_vital.lcp.resource_load_delay';\n\n/**\n * Type for {@link BROWSER_WEB_VITAL_LCP_RESOURCE_LOAD_DELAY} browser.web_vital.lcp.resource_load_delay\n */\nexport type BROWSER_WEB_VITAL_LCP_RESOURCE_LOAD_DELAY_TYPE = number;\n\n// Path: model/attributes/browser/browser__web_vital__lcp__resource_load_duration.json\n\n/**\n * The time it took to load the LCP resource, in milliseconds `browser.web_vital.lcp.resource_load_duration`\n *\n * Attribute Value Type: `number` {@link BROWSER_WEB_VITAL_LCP_RESOURCE_LOAD_DURATION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 780.2\n */\nexport const BROWSER_WEB_VITAL_LCP_RESOURCE_LOAD_DURATION = 'browser.web_vital.lcp.resource_load_duration';\n\n/**\n * Type for {@link BROWSER_WEB_VITAL_LCP_RESOURCE_LOAD_DURATION} browser.web_vital.lcp.resource_load_duration\n */\nexport type BROWSER_WEB_VITAL_LCP_RESOURCE_LOAD_DURATION_TYPE = number;\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_age.json\n\n/**\n * The age of the cache entry in seconds, measured at read time. `cache.item_age`\n *\n * Attribute Value Type: `number` {@link CACHE_ITEM_AGE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 5\n * @example 3600\n */\nexport const CACHE_ITEM_AGE = 'cache.item_age';\n\n/**\n * Type for {@link CACHE_ITEM_AGE} cache.item_age\n */\nexport type CACHE_ITEM_AGE_TYPE = number;\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 * @example \"put\"\n * @example \"remove\"\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__tags.json\n\n/**\n * The tags attached to the cache entry. Tags group entries so a cache can invalidate them together. `cache.tags`\n *\n * Attribute Value Type: `Array` {@link CACHE_TAGS_TYPE}\n *\n * Apply Scrubbing: auto - Applications pick tag values freely and often build them from record identifiers such as a user id.\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example [\"blog-posts\",\"post-42\"]\n * @example [\"products\"]\n */\nexport const CACHE_TAGS = 'cache.tags';\n\n/**\n * Type for {@link CACHE_TAGS} cache.tags\n */\nexport type CACHE_TAGS_TYPE = Array;\n\n// Path: model/attributes/cache/cache__ttl.json\n\n/**\n * The TTL (maximum lifetime) of the cache entry 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`, {@link REDIS_COMMAND} `redis.command`\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 * Aliases: {@link AWS_REGION} `aws_region`, {@link GCP_REGION} `gcp_region`\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.json\n\n/**\n * Status code of the RPC returned by the RPC server or generated by the client. `code`\n *\n * Attribute Value Type: `string` {@link CODE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link RPC_GRPC_STATUS_CODE} `rpc.grpc.status_code`, {@link RPC_RESPONSE_STATUS_CODE} `rpc.response.status_code`\n *\n * @deprecated Use {@link RPC_RESPONSE_STATUS_CODE} (rpc.response.status_code) instead\n * @example \"DEADLINE_EXCEEDED\"\n */\nexport const CODE = 'code';\n\n/**\n * Type for {@link CODE} code\n */\nexport type CODE_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`, {@link SVELTEKIT_LOAD_NODE_ID} `sveltekit.load.node_id`\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`, {@link SVELTEKIT_LOAD_NODE_ID} `sveltekit.load.node_id`\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`, {@link DJANGO_FUNCTION_NAME} `django.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`, {@link DJANGO_FUNCTION_NAME} `django.function_name`\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 * Aliases: {@link DB_MONGODB_COLLECTION} `db.mongodb.collection`\n *\n * @example \"users\"\n * @example \",customers,orders,\"\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__connection_string.json\n\n/**\n * The connection string used to connect to the database. `db.connection_string`\n *\n * Attribute Value Type: `string` {@link DB_CONNECTION_STRING_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @deprecated - This attribute is deprecated. The connection is described by server.address and server.port instead, so the value cannot be copied to a single replacement attribute.\n * @example \"redis://localhost:6379\"\n */\nexport const DB_CONNECTION_STRING = 'db.connection_string';\n\n/**\n * Type for {@link DB_CONNECTION_STRING} db.connection_string\n */\nexport type DB_CONNECTION_STRING_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__mongodb__collection.json\n\n/**\n * The MongoDB collection being accessed. `db.mongodb.collection`\n *\n * Attribute Value Type: `string` {@link DB_MONGODB_COLLECTION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link DB_COLLECTION_NAME} `db.collection.name`\n *\n * @deprecated Use {@link DB_COLLECTION_NAME} (db.collection.name) instead - This attribute is being deprecated in favor of db.collection.name, which is the OTel-aligned replacement.\n * @example \"users\"\n */\nexport const DB_MONGODB_COLLECTION = 'db.mongodb.collection';\n\n/**\n * Type for {@link DB_MONGODB_COLLECTION} db.mongodb.collection\n */\nexport type DB_MONGODB_COLLECTION_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`, {@link REDIS_COMMAND} `redis.command`\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`, {@link REDIS_COMMAND} `redis.command`\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__params.json\n\n/**\n * The query bindings for a database request. `db.params`\n *\n * Attribute Value Type: `string` {@link DB_PARAMS_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.params attribute, add them as individual entries with db.query.parameter..\n * @example \"[{\\\"x\\\": 100}]\"\n */\nexport const DB_PARAMS = 'db.params';\n\n/**\n * Type for {@link DB_PARAMS} db.params\n */\nexport type DB_PARAMS_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 * @example \"INSERT products; UPDATE orders\"\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: auto\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link DB_STATEMENT} `db.statement`, {@link QUERY} `query`\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 * Aliases: {@link REDIS_KEY} `redis.key`\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 entries 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`, {@link QUERY} `query`\n *\n * @deprecated Use {@link DB_QUERY_TEXT} (db.query.text) instead - While this attribute never specifically required parameterization, the replacement, db.query.text, does.\n * @example \"SELECT * FROM users WHERE id = $1\"\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 user-assigned name of the mobile device. `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. `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 * Well-defined Values:\n * - `nominal`\n * - `fair`\n * - `serious`\n * - `critical`\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/django/django__function_name.json\n\n/**\n * The fully qualified name of a function used in a Django context. `django.function_name`\n *\n * Attribute Value Type: `string` {@link DJANGO_FUNCTION_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link CODE_FUNCTION_NAME} `code.function.name`, {@link CODE_FUNCTION} `code.function`\n *\n * @deprecated Use {@link CODE_FUNCTION_NAME} (code.function.name) instead - This attribute is being deprecated in favor of code.function.name, which is the framework-agnostic replacement.\n * @example \"django.contrib.sessions.middleware.SessionMiddleware\"\n */\nexport const DJANGO_FUNCTION_NAME = 'django.function_name';\n\n/**\n * Type for {@link DJANGO_FUNCTION_NAME} django.function_name\n */\nexport type DJANGO_FUNCTION_NAME_TYPE = string;\n\n// Path: model/attributes/django/django__middleware_name.json\n\n/**\n * The name of the Django middleware. `django.middleware_name`\n *\n * Attribute Value Type: `string` {@link DJANGO_MIDDLEWARE_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link MIDDLEWARE_NAME} `middleware.name`\n *\n * @deprecated Use {@link MIDDLEWARE_NAME} (middleware.name) instead - This attribute is being deprecated in favor of middleware.name, which is the framework-agnostic replacement.\n * @example \"AuthenticationMiddleware\"\n */\nexport const DJANGO_MIDDLEWARE_NAME = 'django.middleware_name';\n\n/**\n * Type for {@link DJANGO_MIDDLEWARE_NAME} django.middleware_name\n */\nexport type DJANGO_MIDDLEWARE_NAME_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: never\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__document__collection.json\n\n/**\n * The name of the source on which the triggering operation was performed. For example, in Cloud Storage or S3 corresponds to the bucket name, and in Cosmos DB to the database name. `faas.document.collection`\n *\n * Attribute Value Type: `string` {@link FAAS_DOCUMENT_COLLECTION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"myBucketName\"\n * @example \"myDbName\"\n */\nexport const FAAS_DOCUMENT_COLLECTION = 'faas.document.collection';\n\n/**\n * Type for {@link FAAS_DOCUMENT_COLLECTION} faas.document.collection\n */\nexport type FAAS_DOCUMENT_COLLECTION_TYPE = string;\n\n// Path: model/attributes/faas/faas__document__name.json\n\n/**\n * The document name/table subjected to the operation. For example, in Cloud Storage or S3 is the name of the file, and in Cosmos DB the table name. `faas.document.name`\n *\n * Attribute Value Type: `string` {@link FAAS_DOCUMENT_NAME_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"myFile.txt\"\n * @example \"myTableName\"\n */\nexport const FAAS_DOCUMENT_NAME = 'faas.document.name';\n\n/**\n * Type for {@link FAAS_DOCUMENT_NAME} faas.document.name\n */\nexport type FAAS_DOCUMENT_NAME_TYPE = string;\n\n// Path: model/attributes/faas/faas__document__operation.json\n\n/**\n * Describes the type of the operation that was performed on the data. `faas.document.operation`\n *\n * Attribute Value Type: `string` {@link FAAS_DOCUMENT_OPERATION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"insert\"\n * @example \"edit\"\n * @example \"delete\"\n */\nexport const FAAS_DOCUMENT_OPERATION = 'faas.document.operation';\n\n/**\n * Type for {@link FAAS_DOCUMENT_OPERATION} faas.document.operation\n */\nexport type FAAS_DOCUMENT_OPERATION_TYPE = string;\n\n// Path: model/attributes/faas/faas__document__time.json\n\n/**\n * A string containing the time when the data was accessed in the ISO 8601 format expressed in UTC. `faas.document.time`\n *\n * Attribute Value Type: `string` {@link FAAS_DOCUMENT_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_DOCUMENT_TIME = 'faas.document.time';\n\n/**\n * Type for {@link FAAS_DOCUMENT_TIME} faas.document.time\n */\nexport type FAAS_DOCUMENT_TIME_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__instance.json\n\n/**\n * The execution environment ID as a string, that will be potentially reused for other invocations to the same function/function version. `faas.instance`\n *\n * Attribute Value Type: `string` {@link FAAS_INSTANCE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"2021/06/28/[$LATEST]2f399eb14537447da05ab2a2e39309de\"\n */\nexport const FAAS_INSTANCE = 'faas.instance';\n\n/**\n * Type for {@link FAAS_INSTANCE} faas.instance\n */\nexport type FAAS_INSTANCE_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__max_memory.json\n\n/**\n * The amount of memory available to the serverless function, in bytes. `faas.max_memory`\n *\n * Attribute Value Type: `number` {@link FAAS_MAX_MEMORY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example 134217728\n * @example 1073741824\n */\nexport const FAAS_MAX_MEMORY = 'faas.max_memory';\n\n/**\n * Type for {@link FAAS_MAX_MEMORY} faas.max_memory\n */\nexport type FAAS_MAX_MEMORY_TYPE = number;\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/file/file__path.json\n\n/**\n * Path to the file. `file.path`\n *\n * Attribute Value Type: `string` {@link FILE_PATH_TYPE}\n *\n * Apply Scrubbing: auto - File paths can contain end-user paths (e.g. from stack traces) that may be sensitive.\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"/home/user/example.txt\"\n */\nexport const FILE_PATH = 'file.path';\n\n/**\n * Type for {@link FILE_PATH} file.path\n */\nexport type FILE_PATH_TYPE = string;\n\n// Path: model/attributes/file/file__size.json\n\n/**\n * File size in bytes. `file.size`\n *\n * Attribute Value Type: `number` {@link FILE_SIZE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example 1024\n */\nexport const FILE_SIZE = 'file.size';\n\n/**\n * Type for {@link FILE_SIZE} file.size\n */\nexport type FILE_SIZE_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`, {@link SENTRY_FRAMES_FROZEN} `sentry.frames.frozen`\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 *\n * Aliases: {@link APP_VITALS_FRAMES_FROZEN_RATE} `app.vitals.frames.frozen.rate`\n *\n * @deprecated Use {@link APP_VITALS_FRAMES_FROZEN_RATE} (app.vitals.frames.frozen.rate) instead - Replaced by app.vitals.frames.frozen.rate to align with the app.vitals.* namespace for mobile performance attributes\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`, {@link SENTRY_FRAMES_SLOW} `sentry.frames.slow`\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 *\n * Aliases: {@link APP_VITALS_FRAMES_SLOW_RATE} `app.vitals.frames.slow.rate`\n *\n * @deprecated Use {@link APP_VITALS_FRAMES_SLOW_RATE} (app.vitals.frames.slow.rate) instead - Replaced by app.vitals.frames.slow.rate to align with the app.vitals.* namespace for mobile performance attributes\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`, {@link SENTRY_FRAMES_TOTAL} `sentry.frames.total`\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. The value changes from the full error message to the syscall error code, so the old value cannot be copied over.\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/gcp_region.json\n\n/**\n * The geographical region the GCP resource is running `gcp_region`\n *\n * Attribute Value Type: `string` {@link GCP_REGION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link CLOUD_REGION} `cloud.region`, {@link AWS_REGION} `aws_region`\n *\n * @deprecated Use {@link CLOUD_REGION} (cloud.region) instead\n * @example \"us-east-1\"\n */\nexport const GCP_REGION = 'gcp_region';\n\n/**\n * Type for {@link GCP_REGION} gcp_region\n */\nexport type GCP_REGION_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 in the format `{role: \"...\", parts: [...]}`. The `role` must be `\"user\"`, `\"assistant\"`, `\"tool\"`, or `\"system\"`. Each part is an object with a `type`, such as `{type: \"text\", content: \"...\"}`. Other part types include `\"reasoning\"`, `\"tool_call\"`, and `\"tool_call_response\"`. Put the model's thinking in a `{type: \"reasoning\", content: \"...\"}` part, not a `\"text\"` part. Sentry shows reasoning separately from user-visible messages. The legacy format `{role, content}` is also accepted. The first example shows this shape. Some operations use a different shape. See the additional context. `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`, {@link AI_PROMPT_MESSAGES} `ai.prompt.messages`, {@link GEN_AI_PROMPT} `gen_ai.prompt`, {@link AI_PROMPT} `ai.prompt`\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\\\", \\\"response\\\": \\\"rainy, 57°F\\\"}]}]\"\n * @example \"[{\\\"state\\\": \\\"I cannot log in, and I also want a refund for last month.\\\", \\\"questions\\\": {\\\"authIssue\\\": {\\\"type\\\": \\\"noul\\\", \\\"instructions\\\": \\\"Is there a login problem?\\\"}, \\\"department\\\": {\\\"type\\\": \\\"choice\\\", \\\"instructions\\\": \\\"Which team should handle this?\\\", \\\"criteria\\\": {\\\"billing\\\": \\\"Charges and refunds\\\", \\\"technical\\\": \\\"Bugs and outages\\\"}}}}]\"\n * @example \"[{\\\"state\\\": \\\"Invoice INV-2291 from Northwind Supply, issued 2026-09-02, net 30. 4 pallets at $250.00 each, shipping $80.00. Contact: Dana Ruiz, Priya Shah.\\\", \\\"fields\\\": {\\\"invoice_number\\\": {\\\"type\\\": \\\"text\\\"}, \\\"due_date\\\": {\\\"type\\\": \\\"date\\\", \\\"instructions\\\": \\\"Issue date plus the net payment days\\\"}, \\\"total\\\": {\\\"type\\\": \\\"number\\\", \\\"decimals\\\": 2, \\\"unit\\\": \\\"USD\\\", \\\"instructions\\\": \\\"Amount due including shipping\\\"}, \\\"contacts\\\": {\\\"type\\\": \\\"list\\\", \\\"items\\\": \\\"text\\\"}, \\\"po_number\\\": {\\\"type\\\": \\\"text\\\", \\\"instructions\\\": \\\"Purchase order number\\\"}, \\\"days_to_pay\\\": {\\\"type\\\": \\\"estimate\\\", \\\"min\\\": 0, \\\"max\\\": 120, \\\"step\\\": 1, \\\"instructions\\\": \\\"Days after issue until this invoice is paid\\\"}}}]\"\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__memory__query__text.json\n\n/**\n * The search query used to retrieve memories. Only applicable to 'search_memory'. Opt-in: instrumentations SHOULD NOT capture this by default and SHOULD gate it behind explicit user opt-in, as it may contain sensitive information. `gen_ai.memory.query.text`\n *\n * Attribute Value Type: `string` {@link GEN_AI_MEMORY_QUERY_TEXT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"user dietary preferences\"\n * @example \"past flight bookings\"\n */\nexport const GEN_AI_MEMORY_QUERY_TEXT = 'gen_ai.memory.query.text';\n\n/**\n * Type for {@link GEN_AI_MEMORY_QUERY_TEXT} gen_ai.memory.query.text\n */\nexport type GEN_AI_MEMORY_QUERY_TEXT_TYPE = string;\n\n// Path: model/attributes/gen_ai/gen_ai__memory__records.json\n\n/**\n * The memory records stored or retrieved in a memory operation. Stringified JSON array; each element follows the OTel MemoryRecord schema: {content (required), id, metadata, score}. Opt-in: instrumentations SHOULD NOT capture this by default and SHOULD gate it behind explicit user opt-in, as it may contain sensitive information including user/PII data. `gen_ai.memory.records`\n *\n * Attribute Value Type: `string` {@link GEN_AI_MEMORY_RECORDS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"[{\\\"content\\\": \\\"User prefers dark mode\\\", \\\"id\\\": \\\"mem_123\\\", \\\"score\\\": 0.95}, {\\\"content\\\": {\\\"preference\\\": \\\"vegetarian meals\\\", \\\"confidence\\\": 0.9}, \\\"metadata\\\": {\\\"source\\\": \\\"profile\\\"}}]\"\n */\nexport const GEN_AI_MEMORY_RECORDS = 'gen_ai.memory.records';\n\n/**\n * Type for {@link GEN_AI_MEMORY_RECORDS} gen_ai.memory.records\n */\nexport type GEN_AI_MEMORY_RECORDS_TYPE = string;\n\n// Path: model/attributes/gen_ai/gen_ai__memory__record__count.json\n\n/**\n * The number of memory records relevant to the operation. For 'search_memory' this is the number returned; for 'create_memory', 'update_memory', 'upsert_memory' and 'delete_memory' it is the number the operation attempted to create, modify, create-or-update, or delete respectively. `gen_ai.memory.record.count`\n *\n * Attribute Value Type: `number` {@link GEN_AI_MEMORY_RECORD_COUNT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example 3\n */\nexport const GEN_AI_MEMORY_RECORD_COUNT = 'gen_ai.memory.record.count';\n\n/**\n * Type for {@link GEN_AI_MEMORY_RECORD_COUNT} gen_ai.memory.record.count\n */\nexport type GEN_AI_MEMORY_RECORD_COUNT_TYPE = number;\n\n// Path: model/attributes/gen_ai/gen_ai__memory__record__id.json\n\n/**\n * The unique identifier of the memory record. Set when the operation applies to a specific memory record. For 'delete_memory', its absence may indicate the operation intends to delete all memory records in the store. `gen_ai.memory.record.id`\n *\n * Attribute Value Type: `string` {@link GEN_AI_MEMORY_RECORD_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"mem_5j66UpCpwteGg4YSxUnt7lPY\"\n */\nexport const GEN_AI_MEMORY_RECORD_ID = 'gen_ai.memory.record.id';\n\n/**\n * Type for {@link GEN_AI_MEMORY_RECORD_ID} gen_ai.memory.record.id\n */\nexport type GEN_AI_MEMORY_RECORD_ID_TYPE = string;\n\n// Path: model/attributes/gen_ai/gen_ai__memory__store__id.json\n\n/**\n * The unique identifier of the memory store the operation targets. What this maps to is implementation-specific (e.g. a collection, namespace, or vector index) and SHOULD be documented per integration. `gen_ai.memory.store.id`\n *\n * Attribute Value Type: `string` {@link GEN_AI_MEMORY_STORE_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"ms_abc123\"\n * @example \"user-preferences-store\"\n * @example \"seer-knowledge\"\n */\nexport const GEN_AI_MEMORY_STORE_ID = 'gen_ai.memory.store.id';\n\n/**\n * Type for {@link GEN_AI_MEMORY_STORE_ID} gen_ai.memory.store.id\n */\nexport type GEN_AI_MEMORY_STORE_ID_TYPE = string;\n\n// Path: model/attributes/gen_ai/gen_ai__operation__name.json\n\n/**\n * The name of the operation being performed. `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 * Well-defined Values:\n * - `chat`\n * - `create_agent`\n * - `create_memory`\n * - `create_memory_store`\n * - `decide`\n * - `delete_memory`\n * - `delete_memory_store`\n * - `embeddings`\n * - `evaluate`\n * - `execute_tool`\n * - `extract`\n * - `generate_content`\n * - `invoke_agent`\n * - `search_memory`\n * - `text_completion`\n * - `update_memory`\n * - `upsert_memory`\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. 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 * Well-defined Values:\n * - `agent` - invoke_agent and create_agent spans\n * - `ai_client` - any LLM call\n * - `tool` - execute_tool spans\n * - `handoff` - handoff spans\n * - `memory` - gen_ai.memory.client spans\n * - `other` - input and output processors, skill loading, guardrails etc.\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 * Messages returned by the model where each message represents a specific model response (choice, candidate). It has to be a stringified version of an array of message objects in the format `{role: \"assistant\", parts: [...]}`, which can include text responses and tool calls. Each part is an object with a `type`, such as `{type: \"text\", content: \"...\"}`. Other part types include `\"reasoning\"` and `\"tool_call\"`. Put the model's thinking in a `{type: \"reasoning\", content: \"...\"}` part, not a `\"text\"` part. Sentry shows reasoning separately from user-visible messages. The first example shows this shape. Some operations use a different shape. See the additional context. `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 * Aliases: {@link AI_RESPONSE_TOOLCALLS} `ai.response.toolCalls`, {@link AI_RESPONSE_TEXT} `ai.response.text`\n *\n * @example \"[{\\\"role\\\": \\\"assistant\\\", \\\"parts\\\": [{\\\"type\\\": \\\"text\\\", \\\"content\\\": \\\"The weather in Paris is currently rainy with a temperature of 57°F.\\\"}]}]\"\n * @example \"[{\\\"answers\\\": {\\\"authIssue\\\": {\\\"type\\\": \\\"noul\\\", \\\"noul\\\": 0.98}, \\\"department\\\": {\\\"type\\\": \\\"choice\\\", \\\"choice\\\": \\\"billing\\\", \\\"confidence\\\": 0.28, \\\"probabilities\\\": {\\\"billing\\\": 0.64, \\\"technical\\\": 0.36}}}}]\"\n * @example \"[{\\\"answers\\\": {\\\"invoice_number\\\": {\\\"type\\\": \\\"text\\\", \\\"p_null\\\": 3.8e-10, \\\"span\\\": [8, 16], \\\"guess\\\": \\\"INV-2291\\\", \\\"confidence\\\": 1, \\\"value\\\": \\\"INV-2291\\\"}, \\\"due_date\\\": {\\\"type\\\": \\\"date\\\", \\\"p_null\\\": 1.9e-08, \\\"guess\\\": \\\"2026-10-02\\\", \\\"confidence\\\": 0.9999, \\\"value\\\": \\\"2026-10-02\\\"}, \\\"total\\\": {\\\"type\\\": \\\"number\\\", \\\"p_null\\\": 2.3e-08, \\\"guess\\\": 1080, \\\"confidence\\\": 0.9999, \\\"value\\\": 1080}, \\\"contacts\\\": {\\\"type\\\": \\\"list\\\", \\\"value\\\": [\\\"Dana Ruiz\\\", \\\"Priya Shah\\\"], \\\"spans\\\": [[120, 129], [131, 141]], \\\"confidence\\\": 0.9999}, \\\"po_number\\\": {\\\"type\\\": \\\"text\\\", \\\"p_null\\\": 1, \\\"span\\\": [8, 16], \\\"guess\\\": \\\"INV-2291\\\", \\\"confidence\\\": 0.9995, \\\"value\\\": null}, \\\"days_to_pay\\\": {\\\"type\\\": \\\"estimate\\\", \\\"value\\\": 30, \\\"mean\\\": 29.535, \\\"median\\\": 30, \\\"p10\\\": 21, \\\"p90\\\": 38, \\\"p_below\\\": 5.9e-06, \\\"p_above\\\": 1.2e-05}}, \\\"truncated\\\": false}]\"\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`, {@link LANGCHAIN_CHAIN_NAME} `langchain.chain.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 * Aliases: {@link GEN_AI_INPUT_MESSAGES} `gen_ai.input.messages`, {@link AI_TEXTS} `ai.texts`, {@link AI_PROMPT_MESSAGES} `ai.prompt.messages`, {@link AI_PROMPT} `ai.prompt`\n *\n * @deprecated Use {@link GEN_AI_INPUT_MESSAGES} (gen_ai.input.messages) instead - 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__prompt__variable__[key].json\n\n/**\n * Variables supplied to the prompt template. The is the variable name, and the value is the variable value serialized as a string. `gen_ai.prompt.variable.`\n *\n * Attribute Value Type: `string` {@link GEN_AI_PROMPT_VARIABLE_KEY_TYPE}\n *\n * Apply Scrubbing: auto - Prompt variables contain user input and may include sensitive information\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Has Dynamic Suffix: true\n *\n * @example \"gen_ai.prompt.variable.language='French'\"\n * @example \"gen_ai.prompt.variable.topic='weather'\"\n */\nexport const GEN_AI_PROMPT_VARIABLE_KEY = 'gen_ai.prompt.variable.';\n\n/**\n * Base key for {@link GEN_AI_PROMPT_VARIABLE_KEY}. Use with a dynamic suffix, e.g. `${GEN_AI_PROMPT_VARIABLE_KEY_BASE}.${key}`.\n */\nexport const GEN_AI_PROMPT_VARIABLE_KEY_BASE = 'gen_ai.prompt.variable';\n\n/**\n * Type for {@link GEN_AI_PROMPT_VARIABLE_KEY} gen_ai.prompt.variable.\n */\nexport type GEN_AI_PROMPT_VARIABLE_KEY_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 * Aliases: {@link GEN_AI_TOOL_DEFINITIONS} `gen_ai.tool.definitions`\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 * Aliases: {@link _AI_MODEL_ID} `ai.model_id`, {@link AI_MODEL_ID} `ai.model.id`\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__level.json\n\n/**\n * The reasoning or thinking effort level requested for a GenAI model. Supported values vary by provider. `gen_ai.request.reasoning.level`\n *\n * Attribute Value Type: `string` {@link GEN_AI_REQUEST_REASONING_LEVEL_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"high\"\n */\nexport const GEN_AI_REQUEST_REASONING_LEVEL = 'gen_ai.request.reasoning.level';\n\n/**\n * Type for {@link GEN_AI_REQUEST_REASONING_LEVEL} gen_ai.request.reasoning.level\n */\nexport type GEN_AI_REQUEST_REASONING_LEVEL_TYPE = string;\n\n// Path: model/attributes/gen_ai/gen_ai__request__schema.json\n\n/**\n * The stringified JSON schema the model output must conform to. `gen_ai.request.schema`\n *\n * Attribute Value Type: `string` {@link GEN_AI_REQUEST_SCHEMA_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated - This attribute is deprecated. The Sentry conventions have no replacement for the requested output schema.\n * @example \"{\\\"type\\\":\\\"object\\\",\\\"properties\\\":{\\\"city\\\":{\\\"type\\\":\\\"string\\\"}}}\"\n */\nexport const GEN_AI_REQUEST_SCHEMA = 'gen_ai.request.schema';\n\n/**\n * Type for {@link GEN_AI_REQUEST_SCHEMA} gen_ai.request.schema\n */\nexport type GEN_AI_REQUEST_SCHEMA_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_reason.json\n\n/**\n * The reason why the model stopped generating (singular form). `gen_ai.response.finish_reason`\n *\n * Attribute Value Type: `string` {@link GEN_AI_RESPONSE_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 GEN_AI_RESPONSE_FINISH_REASON = 'gen_ai.response.finish_reason';\n\n/**\n * Type for {@link GEN_AI_RESPONSE_FINISH_REASON} gen_ai.response.finish_reason\n */\nexport type GEN_AI_RESPONSE_FINISH_REASON_TYPE = string;\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`, {@link GEN_AI_RESPONSE_FINISH_REASON} `gen_ai.response.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`, {@link AI_RESPONSE_ID} `ai.response.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_RESPONSE_MODEL} `ai.response.model`\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__object.json\n\n/**\n * The type of the object returned by the model. `gen_ai.response.object`\n *\n * Attribute Value Type: `string` {@link GEN_AI_RESPONSE_OBJECT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated - This attribute is deprecated. The Sentry conventions have no replacement for the raw response object type.\n * @example \"chat.completion\"\n */\nexport const GEN_AI_RESPONSE_OBJECT = 'gen_ai.response.object';\n\n/**\n * Type for {@link GEN_AI_RESPONSE_OBJECT} gen_ai.response.object\n */\nexport type GEN_AI_RESPONSE_OBJECT_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°F\\\", \\\"The weather in London is sunny and warm, with temperatures around 65°F\\\"]\"\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 from the start of a logical inference operation to the first chunk in its streaming response, in seconds. `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 from the start of a logical inference operation to the first chunk in its streaming response, in seconds. `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 message or instructions provided to the GenAI model separately from the chat history. `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 \"[{\\\"type\\\": \\\"text\\\", \\\"content\\\": \\\"You are a helpful assistant.\\\"}, {\\\"type\\\": \\\"text\\\", \\\"content\\\": \\\"Be concise and clear.\\\"}]\"\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: manual\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. `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`, {@link AI_TOOLCALL_ARGS} `ai.toolCall.args`\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. `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`, {@link AI_TOOLCALL_RESULT} `ai.toolCall.result`, {@link ANTHROPIC_TOOL_RESULT_CONTENT} `anthropic.tool_result.content`\n *\n * @example \"rainy, 57°F\"\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__call__result__size.json\n\n/**\n * The UTF-8 byte length of the serialized tool call result, measured before truncation. `gen_ai.tool.call.result.size`\n *\n * Attribute Value Type: `number` {@link GEN_AI_TOOL_CALL_RESULT_SIZE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 0\n * @example 1024\n */\nexport const GEN_AI_TOOL_CALL_RESULT_SIZE = 'gen_ai.tool.call.result.size';\n\n/**\n * Type for {@link GEN_AI_TOOL_CALL_RESULT_SIZE} gen_ai.tool.call.result.size\n */\nexport type GEN_AI_TOOL_CALL_RESULT_SIZE_TYPE = number;\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. It has to be a stringified version of an array of objects. `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 * Aliases: {@link GEN_AI_REQUEST_AVAILABLE_TOOLS} `gen_ai.request.available_tools`\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`, {@link AI_TOOLCALL_ARGS} `ai.toolCall.args`\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: 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_OUTPUT} `gen_ai.tool.output`, {@link MCP_TOOL_RESULT_CONTENT} `mcp.tool.result.content`, {@link AI_TOOLCALL_RESULT} `ai.toolCall.result`, {@link ANTHROPIC_TOOL_RESULT_CONTENT} `anthropic.tool_result.content`\n *\n * @deprecated Use {@link GEN_AI_TOOL_CALL_RESULT} (gen_ai.tool.call.result) instead\n * @example \"rainy, 57°F\"\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`, {@link AI_TOOLCALL_RESULT} `ai.toolCall.result`, {@link ANTHROPIC_TOOL_RESULT_CONTENT} `anthropic.tool_result.content`\n *\n * @deprecated Use {@link GEN_AI_TOOL_CALL_RESULT} (gen_ai.tool.call.result) instead\n * @example \"rainy, 57°F\"\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`, {@link _GEN_AI_USAGE_CACHE_CREATION_INPUT_TOKENS} `gen_ai.usage.cache_creation_input_tokens`\n *\n * @example 20\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_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: No\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_USAGE_CACHE_CREATION_INPUT_TOKENS} `gen_ai.usage.cache_creation.input_tokens`, {@link GEN_AI_USAGE_INPUT_TOKENS_CACHE_WRITE} `gen_ai.usage.input_tokens.cache_write`\n *\n * @deprecated Use {@link GEN_AI_USAGE_CACHE_CREATION_INPUT_TOKENS} (gen_ai.usage.cache_creation.input_tokens) instead - This attribute is being deprecated in favor of gen_ai.usage.cache_creation.input_tokens.\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`, {@link _GEN_AI_USAGE_CACHE_READ_INPUT_TOKENS} `gen_ai.usage.cache_read_input_tokens`\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__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: No\n * Visibility: public\n *\n * Aliases: {@link GEN_AI_USAGE_CACHE_READ_INPUT_TOKENS} `gen_ai.usage.cache_read.input_tokens`, {@link GEN_AI_USAGE_INPUT_TOKENS_CACHED} `gen_ai.usage.input_tokens.cached`\n *\n * @deprecated Use {@link GEN_AI_USAGE_CACHE_READ_INPUT_TOKENS} (gen_ai.usage.cache_read.input_tokens) instead - This attribute is being deprecated in favor of gen_ai.usage.cache_read.input_tokens.\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 100\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`, {@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`, {@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 130\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 30\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 tokens) `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`, {@link AI_USAGE_TOKENS} `ai.usage.tokens`\n *\n * @example 230\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 * Aliases: {@link GRAPHQL_SOURCE} `graphql.source`\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/graphql/graphql__processing__type.json\n\n/**\n * The type of processing represented by this span. `graphql.processing.type`\n *\n * Attribute Value Type: `string` {@link GRAPHQL_PROCESSING_TYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"parse\"\n * @example \"validate\"\n * @example \"execute\"\n * @example \"resolve\"\n */\nexport const GRAPHQL_PROCESSING_TYPE = 'graphql.processing.type';\n\n/**\n * Type for {@link GRAPHQL_PROCESSING_TYPE} graphql.processing.type\n */\nexport type GRAPHQL_PROCESSING_TYPE_TYPE = string;\n\n// Path: model/attributes/graphql/graphql__source.json\n\n/**\n * The GraphQL document being executed. `graphql.source`\n *\n * Attribute Value Type: `string` {@link GRAPHQL_SOURCE_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link GRAPHQL_DOCUMENT} `graphql.document`\n *\n * @deprecated Use {@link GRAPHQL_DOCUMENT} (graphql.document) instead - This attribute is being deprecated in favor of graphql.document, which is the OpenTelemetry name for the same value.\n * @example \"query findBookById { bookById(id: ?) { name } }\"\n */\nexport const GRAPHQL_SOURCE = 'graphql.source';\n\n/**\n * Type for {@link GRAPHQL_SOURCE} graphql.source\n */\nexport type GRAPHQL_SOURCE_TYPE = string;\n\n// Path: model/attributes/grpc/grpc__error__bad_request__field_violations.json\n\n/**\n * The individual field violations from a google.rpc.BadRequest error detail. Each entry is a JSON-encoded object with field, description, reason, and (optional) localized_message keys, mirroring google.rpc.BadRequest.FieldViolation. `grpc.error.bad_request.field_violations`\n *\n * Attribute Value Type: `Array` {@link GRPC_ERROR_BAD_REQUEST_FIELD_VIOLATIONS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example [\"{\\\"field\\\":\\\"email\\\",\\\"description\\\":\\\"must be a valid email address\\\",\\\"reason\\\":\\\"FIELD_INVALID\\\",\\\"localized_message\\\":{\\\"locale\\\":\\\"en-US\\\",\\\"message\\\":\\\"Must be a valid email address\\\"}}\"]\n */\nexport const GRPC_ERROR_BAD_REQUEST_FIELD_VIOLATIONS = 'grpc.error.bad_request.field_violations';\n\n/**\n * Type for {@link GRPC_ERROR_BAD_REQUEST_FIELD_VIOLATIONS} grpc.error.bad_request.field_violations\n */\nexport type GRPC_ERROR_BAD_REQUEST_FIELD_VIOLATIONS_TYPE = Array;\n\n// Path: model/attributes/grpc/grpc__error__debug_info__detail.json\n\n/**\n * Additional debugging information, such as a server-side stack trace, from a google.rpc.DebugInfo error detail. SDKs should only send this attribute when sendDefaultPii is enabled or dataCollection is configured accordingly. `grpc.error.debug_info.detail`\n *\n * Attribute Value Type: `string` {@link GRPC_ERROR_DEBUG_INFO_DETAIL_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"at com.example.Service.method(Service.java:42)\"\n */\nexport const GRPC_ERROR_DEBUG_INFO_DETAIL = 'grpc.error.debug_info.detail';\n\n/**\n * Type for {@link GRPC_ERROR_DEBUG_INFO_DETAIL} grpc.error.debug_info.detail\n */\nexport type GRPC_ERROR_DEBUG_INFO_DETAIL_TYPE = string;\n\n// Path: model/attributes/grpc/grpc__error__debug_info__stack_entries.json\n\n/**\n * The server-side stack trace entries from a google.rpc.DebugInfo error detail. SDKs should only send this attribute when sendDefaultPii is enabled or dataCollection is configured accordingly. `grpc.error.debug_info.stack_entries`\n *\n * Attribute Value Type: `Array` {@link GRPC_ERROR_DEBUG_INFO_STACK_ENTRIES_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example [\"com.example.Service.method(Service.java:42)\",\"com.example.Server.handle(Server.java:100)\"]\n */\nexport const GRPC_ERROR_DEBUG_INFO_STACK_ENTRIES = 'grpc.error.debug_info.stack_entries';\n\n/**\n * Type for {@link GRPC_ERROR_DEBUG_INFO_STACK_ENTRIES} grpc.error.debug_info.stack_entries\n */\nexport type GRPC_ERROR_DEBUG_INFO_STACK_ENTRIES_TYPE = Array;\n\n// Path: model/attributes/grpc/grpc__error__error_info__domain.json\n\n/**\n * The logical grouping to which the gRPC error reason belongs, from the google.rpc.ErrorInfo error detail. `grpc.error.error_info.domain`\n *\n * Attribute Value Type: `string` {@link GRPC_ERROR_ERROR_INFO_DOMAIN_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"example.sentry.io\"\n */\nexport const GRPC_ERROR_ERROR_INFO_DOMAIN = 'grpc.error.error_info.domain';\n\n/**\n * Type for {@link GRPC_ERROR_ERROR_INFO_DOMAIN} grpc.error.error_info.domain\n */\nexport type GRPC_ERROR_ERROR_INFO_DOMAIN_TYPE = string;\n\n// Path: model/attributes/grpc/grpc__error__error_info__metadata__[key].json\n\n/**\n * Additional structured metadata attached to a google.rpc.ErrorInfo error detail, with being the metadata key name. SDKs should only send this attribute when sendDefaultPii is enabled or dataCollection is configured accordingly. `grpc.error.error_info.metadata.`\n *\n * Attribute Value Type: `string` {@link GRPC_ERROR_ERROR_INFO_METADATA_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 \"grpc.error.error_info.metadata.user_id='123'\"\n */\nexport const GRPC_ERROR_ERROR_INFO_METADATA_KEY = 'grpc.error.error_info.metadata.';\n\n/**\n * Base key for {@link GRPC_ERROR_ERROR_INFO_METADATA_KEY}. Use with a dynamic suffix, e.g. `${GRPC_ERROR_ERROR_INFO_METADATA_KEY_BASE}.${key}`.\n */\nexport const GRPC_ERROR_ERROR_INFO_METADATA_KEY_BASE = 'grpc.error.error_info.metadata';\n\n/**\n * Type for {@link GRPC_ERROR_ERROR_INFO_METADATA_KEY} grpc.error.error_info.metadata.\n */\nexport type GRPC_ERROR_ERROR_INFO_METADATA_KEY_TYPE = string;\n\n// Path: model/attributes/grpc/grpc__error__error_info__reason.json\n\n/**\n * The reason for the gRPC error, as defined by the service that generated it, from the google.rpc.ErrorInfo error detail. `grpc.error.error_info.reason`\n *\n * Attribute Value Type: `string` {@link GRPC_ERROR_ERROR_INFO_REASON_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"FIELD_INVALID\"\n */\nexport const GRPC_ERROR_ERROR_INFO_REASON = 'grpc.error.error_info.reason';\n\n/**\n * Type for {@link GRPC_ERROR_ERROR_INFO_REASON} grpc.error.error_info.reason\n */\nexport type GRPC_ERROR_ERROR_INFO_REASON_TYPE = string;\n\n// Path: model/attributes/grpc/grpc__error__precondition_failure__violations.json\n\n/**\n * The individual precondition violations from a google.rpc.PreconditionFailure error detail. Each entry is a JSON-encoded object with type, subject, and description keys. SDKs should only send this attribute when sendDefaultPii is enabled or dataCollection is configured accordingly, since violation subjects may identify specific resources or users. `grpc.error.precondition_failure.violations`\n *\n * Attribute Value Type: `Array` {@link GRPC_ERROR_PRECONDITION_FAILURE_VIOLATIONS_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example [\"{\\\"type\\\":\\\"TOS\\\",\\\"subject\\\":\\\"example.com/user/123\\\",\\\"description\\\":\\\"User must accept the terms of service\\\"}\"]\n */\nexport const GRPC_ERROR_PRECONDITION_FAILURE_VIOLATIONS = 'grpc.error.precondition_failure.violations';\n\n/**\n * Type for {@link GRPC_ERROR_PRECONDITION_FAILURE_VIOLATIONS} grpc.error.precondition_failure.violations\n */\nexport type GRPC_ERROR_PRECONDITION_FAILURE_VIOLATIONS_TYPE = Array;\n\n// Path: model/attributes/grpc/grpc__error__quota_failure__violations.json\n\n/**\n * The individual quota violations from a google.rpc.QuotaFailure error detail. Each entry is a JSON-encoded object with subject, description, api_service, quota_metric, quota_id, quota_dimensions, quota_value, and (optional) future_quota_value keys, mirroring google.rpc.QuotaFailure.Violation. SDKs should only send this attribute when sendDefaultPii is enabled or dataCollection is configured accordingly, since violation subjects may identify specific resources or users. `grpc.error.quota_failure.violations`\n *\n * Attribute Value Type: `Array` {@link GRPC_ERROR_QUOTA_FAILURE_VIOLATIONS_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example [\"{\\\"subject\\\":\\\"clientip:127.0.0.1\\\",\\\"description\\\":\\\"Limit checks failed.\\\",\\\"api_service\\\":\\\"example.googleapis.com\\\",\\\"quota_metric\\\":\\\"example.googleapis.com/read_requests\\\",\\\"quota_id\\\":\\\"ReadRequestsPerMinutePerProject\\\",\\\"quota_dimensions\\\":{\\\"region\\\":\\\"us-central1\\\"},\\\"quota_value\\\":1000}\"]\n */\nexport const GRPC_ERROR_QUOTA_FAILURE_VIOLATIONS = 'grpc.error.quota_failure.violations';\n\n/**\n * Type for {@link GRPC_ERROR_QUOTA_FAILURE_VIOLATIONS} grpc.error.quota_failure.violations\n */\nexport type GRPC_ERROR_QUOTA_FAILURE_VIOLATIONS_TYPE = Array;\n\n// Path: model/attributes/grpc/grpc__error__resource_info__description.json\n\n/**\n * A description of the error that occurred while accessing the resource, from a google.rpc.ResourceInfo error detail. `grpc.error.resource_info.description`\n *\n * Attribute Value Type: `string` {@link GRPC_ERROR_RESOURCE_INFO_DESCRIPTION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"Instance is not ready for the request.\"\n */\nexport const GRPC_ERROR_RESOURCE_INFO_DESCRIPTION = 'grpc.error.resource_info.description';\n\n/**\n * Type for {@link GRPC_ERROR_RESOURCE_INFO_DESCRIPTION} grpc.error.resource_info.description\n */\nexport type GRPC_ERROR_RESOURCE_INFO_DESCRIPTION_TYPE = string;\n\n// Path: model/attributes/grpc/grpc__error__resource_info__owner.json\n\n/**\n * The owner of the resource being accessed (e.g. project or account owning it), from a google.rpc.ResourceInfo error detail. SDKs should only send this attribute when sendDefaultPii is enabled or dataCollection is configured accordingly. `grpc.error.resource_info.owner`\n *\n * Attribute Value Type: `string` {@link GRPC_ERROR_RESOURCE_INFO_OWNER_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"user@example.com\"\n */\nexport const GRPC_ERROR_RESOURCE_INFO_OWNER = 'grpc.error.resource_info.owner';\n\n/**\n * Type for {@link GRPC_ERROR_RESOURCE_INFO_OWNER} grpc.error.resource_info.owner\n */\nexport type GRPC_ERROR_RESOURCE_INFO_OWNER_TYPE = string;\n\n// Path: model/attributes/grpc/grpc__error__resource_info__resource_name.json\n\n/**\n * The name of the resource being accessed, from a google.rpc.ResourceInfo error detail. SDKs should only send this attribute when sendDefaultPii is enabled or dataCollection is configured accordingly. `grpc.error.resource_info.resource_name`\n *\n * Attribute Value Type: `string` {@link GRPC_ERROR_RESOURCE_INFO_RESOURCE_NAME_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"projects/example/instances/example-instance\"\n */\nexport const GRPC_ERROR_RESOURCE_INFO_RESOURCE_NAME = 'grpc.error.resource_info.resource_name';\n\n/**\n * Type for {@link GRPC_ERROR_RESOURCE_INFO_RESOURCE_NAME} grpc.error.resource_info.resource_name\n */\nexport type GRPC_ERROR_RESOURCE_INFO_RESOURCE_NAME_TYPE = string;\n\n// Path: model/attributes/grpc/grpc__error__resource_info__resource_type.json\n\n/**\n * The type of resource being accessed, from a google.rpc.ResourceInfo error detail. `grpc.error.resource_info.resource_type`\n *\n * Attribute Value Type: `string` {@link GRPC_ERROR_RESOURCE_INFO_RESOURCE_TYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"database\"\n */\nexport const GRPC_ERROR_RESOURCE_INFO_RESOURCE_TYPE = 'grpc.error.resource_info.resource_type';\n\n/**\n * Type for {@link GRPC_ERROR_RESOURCE_INFO_RESOURCE_TYPE} grpc.error.resource_info.resource_type\n */\nexport type GRPC_ERROR_RESOURCE_INFO_RESOURCE_TYPE_TYPE = string;\n\n// Path: model/attributes/grpc/grpc__error__retry_info__retry_delay_ms.json\n\n/**\n * How long the client should wait before retrying the gRPC call, in milliseconds, from the google.rpc.RetryInfo error detail. `grpc.error.retry_info.retry_delay_ms`\n *\n * Attribute Value Type: `number` {@link GRPC_ERROR_RETRY_INFO_RETRY_DELAY_MS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 5000\n */\nexport const GRPC_ERROR_RETRY_INFO_RETRY_DELAY_MS = 'grpc.error.retry_info.retry_delay_ms';\n\n/**\n * Type for {@link GRPC_ERROR_RETRY_INFO_RETRY_DELAY_MS} grpc.error.retry_info.retry_delay_ms\n */\nexport type GRPC_ERROR_RETRY_INFO_RETRY_DELAY_MS_TYPE = number;\n\n// Path: model/attributes/hapi/hapi__ext__type.json\n\n/**\n * The request lifecycle extension point where the Hapi extension function runs. `hapi.ext.type`\n *\n * Attribute Value Type: `string` {@link HAPI_EXT_TYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link SERVER_EXT_TYPE} `server.ext.type`\n *\n * @example \"onRequest\"\n * @example \"onPreResponse\"\n */\nexport const HAPI_EXT_TYPE = 'hapi.ext.type';\n\n/**\n * Type for {@link HAPI_EXT_TYPE} hapi.ext.type\n */\nexport type HAPI_EXT_TYPE_TYPE = string;\n\n// Path: model/attributes/hapi/hapi__plugin__name.json\n\n/**\n * The name of the Hapi plugin that registered the route. `hapi.plugin.name`\n *\n * Attribute Value Type: `string` {@link HAPI_PLUGIN_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"hapi-swagger\"\n */\nexport const HAPI_PLUGIN_NAME = 'hapi.plugin.name';\n\n/**\n * Type for {@link HAPI_PLUGIN_NAME} hapi.plugin.name\n */\nexport type HAPI_PLUGIN_NAME_TYPE = string;\n\n// Path: model/attributes/hapi/hapi__type.json\n\n/**\n * The type of the Hapi layer that the span describes: `router`, `plugin`, or `server.ext`. `hapi.type`\n *\n * Attribute Value Type: `string` {@link HAPI_TYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"router\"\n * @example \"plugin\"\n * @example \"server.ext\"\n */\nexport const HAPI_TYPE = 'hapi.type';\n\n/**\n * Type for {@link HAPI_TYPE} hapi.type\n */\nexport type HAPI_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/heroku/heroku__dyno__name.json\n\n/**\n * Name of the Heroku dyno serving the request or emitting telemetry `heroku.dyno.name`\n *\n * Attribute Value Type: `string` {@link HEROKU_DYNO_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"web.1\"\n * @example \"web-12a34bcd56-7efgh\"\n */\nexport const HEROKU_DYNO_NAME = 'heroku.dyno.name';\n\n/**\n * Type for {@link HEROKU_DYNO_NAME} heroku.dyno.name\n */\nexport type HEROKU_DYNO_NAME_TYPE = string;\n\n// Path: model/attributes/heroku/heroku__error__code.json\n\n/**\n * Heroku error code reported by a router or platform log `heroku.error.code`\n *\n * Attribute Value Type: `string` {@link HEROKU_ERROR_CODE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"H12\"\n * @example \"R14\"\n * @example \"L10\"\n */\nexport const HEROKU_ERROR_CODE = 'heroku.error.code';\n\n/**\n * Type for {@link HEROKU_ERROR_CODE} heroku.error.code\n */\nexport type HEROKU_ERROR_CODE_TYPE = string;\n\n// Path: model/attributes/heroku/heroku__error__description.json\n\n/**\n * Description of the Heroku error reported by a router or platform log `heroku.error.description`\n *\n * Attribute Value Type: `string` {@link HEROKU_ERROR_DESCRIPTION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"Request timeout\"\n * @example \"Memory quota exceeded\"\n */\nexport const HEROKU_ERROR_DESCRIPTION = 'heroku.error.description';\n\n/**\n * Type for {@link HEROKU_ERROR_DESCRIPTION} heroku.error.description\n */\nexport type HEROKU_ERROR_DESCRIPTION_TYPE = string;\n\n// Path: model/attributes/heroku/heroku__logplex__drain_token.json\n\n/**\n * Identifier of the Heroku log drain that delivered the log, from the Logplex-Drain-Token header `heroku.logplex.drain_token`\n *\n * Attribute Value Type: `string` {@link HEROKU_LOGPLEX_DRAIN_TOKEN_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"d.73ea7440-270a-435a-a0ea-adf50b4e5f5a\"\n */\nexport const HEROKU_LOGPLEX_DRAIN_TOKEN = 'heroku.logplex.drain_token';\n\n/**\n * Type for {@link HEROKU_LOGPLEX_DRAIN_TOKEN} heroku.logplex.drain_token\n */\nexport type HEROKU_LOGPLEX_DRAIN_TOKEN_TYPE = string;\n\n// Path: model/attributes/heroku/heroku__router__connect.json\n\n/**\n * Time in milliseconds the Heroku router spent establishing a connection to the dyno `heroku.router.connect`\n *\n * Attribute Value Type: `number` {@link HEROKU_ROUTER_CONNECT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 0\n * @example 0.5\n * @example 6\n */\nexport const HEROKU_ROUTER_CONNECT = 'heroku.router.connect';\n\n/**\n * Type for {@link HEROKU_ROUTER_CONNECT} heroku.router.connect\n */\nexport type HEROKU_ROUTER_CONNECT_TYPE = number;\n\n// Path: model/attributes/heroku/heroku__router__request_id.json\n\n/**\n * Request identifier reported by the Heroku router `heroku.router.request_id`\n *\n * Attribute Value Type: `string` {@link HEROKU_ROUTER_REQUEST_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"6903a168-b79b-ec27-03c8-b8f64d8d8792\"\n */\nexport const HEROKU_ROUTER_REQUEST_ID = 'heroku.router.request_id';\n\n/**\n * Type for {@link HEROKU_ROUTER_REQUEST_ID} heroku.router.request_id\n */\nexport type HEROKU_ROUTER_REQUEST_ID_TYPE = string;\n\n// Path: model/attributes/heroku/heroku__router__service.json\n\n/**\n * Time in milliseconds spent proxying data between the backend dyno and the client, as reported by the Heroku router `heroku.router.service`\n *\n * Attribute Value Type: `number` {@link HEROKU_ROUTER_SERVICE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 0\n * @example 12.5\n * @example 30001\n */\nexport const HEROKU_ROUTER_SERVICE = 'heroku.router.service';\n\n/**\n * Type for {@link HEROKU_ROUTER_SERVICE} heroku.router.service\n */\nexport type HEROKU_ROUTER_SERVICE_TYPE = number;\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 * Aliases: {@link HTTP_RESPONSE_BODY_DECODED_SIZE} `http.response.body.decoded_size`, {@link HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED} `http.response_content_length_uncompressed`\n *\n * @deprecated Use {@link HTTP_RESPONSE_BODY_DECODED_SIZE} (http.response.body.decoded_size) instead\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`, {@link MESSAGING_PROTOCOL_VERSION} `messaging.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 ADDRESS} `address`, {@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`, {@link NET_PEER_NAME} `net.peer.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__body__decoded_size.json\n\n/**\n * The decoded body size of the request (in bytes). `http.request.body.decoded_size`\n *\n * Attribute Value Type: `number` {@link HTTP_REQUEST_BODY_DECODED_SIZE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED} `http.request_content_length_uncompressed`\n *\n * @example 456\n */\nexport const HTTP_REQUEST_BODY_DECODED_SIZE = 'http.request.body.decoded_size';\n\n/**\n * Type for {@link HTTP_REQUEST_BODY_DECODED_SIZE} http.request.body.decoded_size\n */\nexport type HTTP_REQUEST_BODY_DECODED_SIZE_TYPE = number;\n\n// Path: model/attributes/http/http__request__body__size.json\n\n/**\n * The encoded body size of the request (in bytes). `http.request.body.size`\n *\n * Attribute Value Type: `number` {@link HTTP_REQUEST_BODY_SIZE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link HTTP_REQUEST_CONTENT_LENGTH} `http.request_content_length`\n *\n * @example 123\n */\nexport const HTTP_REQUEST_BODY_SIZE = 'http.request.body.size';\n\n/**\n * Type for {@link HTTP_REQUEST_BODY_SIZE} http.request.body.size\n */\nexport type HTTP_REQUEST_BODY_SIZE_TYPE = number;\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_content_length.json\n\n/**\n * The encoded body size of the request (in bytes). `http.request_content_length`\n *\n * Attribute Value Type: `number` {@link HTTP_REQUEST_CONTENT_LENGTH_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link HTTP_REQUEST_BODY_SIZE} `http.request.body.size`\n *\n * @deprecated Use {@link HTTP_REQUEST_BODY_SIZE} (http.request.body.size) instead\n * @example 123\n */\nexport const HTTP_REQUEST_CONTENT_LENGTH = 'http.request_content_length';\n\n/**\n * Type for {@link HTTP_REQUEST_CONTENT_LENGTH} http.request_content_length\n */\nexport type HTTP_REQUEST_CONTENT_LENGTH_TYPE = number;\n\n// Path: model/attributes/http/http__request_content_length_uncompressed.json\n\n/**\n * The decoded body size of the request (in bytes). `http.request_content_length_uncompressed`\n *\n * Attribute Value Type: `number` {@link HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link HTTP_REQUEST_BODY_DECODED_SIZE} `http.request.body.decoded_size`\n *\n * @deprecated Use {@link HTTP_REQUEST_BODY_DECODED_SIZE} (http.request.body.decoded_size) instead\n * @example 456\n */\nexport const HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED = 'http.request_content_length_uncompressed';\n\n/**\n * Type for {@link HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED} http.request_content_length_uncompressed\n */\nexport type HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED_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__duration.json\n\n/**\n * The duration of a HTTP request, in milliseconds. `http.request.duration`\n *\n * Attribute Value Type: `number` {@link HTTP_REQUEST_DURATION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 5000\n */\nexport const HTTP_REQUEST_DURATION = 'http.request.duration';\n\n/**\n * Type for {@link HTTP_REQUEST_DURATION} http.request.duration\n */\nexport type HTTP_REQUEST_DURATION_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 lower-cased, but otherwise unchanged HTTP Header name, 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 * @example \"http.request.header.content-length=['123']\"\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__decoded_size.json\n\n/**\n * The decoded body size of the response (in bytes). `http.response.body.decoded_size`\n *\n * Attribute Value Type: `number` {@link HTTP_RESPONSE_BODY_DECODED_SIZE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link HTTP_DECODED_RESPONSE_CONTENT_LENGTH} `http.decoded_response_content_length`, {@link HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED} `http.response_content_length_uncompressed`\n *\n * @example 456\n */\nexport const HTTP_RESPONSE_BODY_DECODED_SIZE = 'http.response.body.decoded_size';\n\n/**\n * Type for {@link HTTP_RESPONSE_BODY_DECODED_SIZE} http.response.body.decoded_size\n */\nexport type HTTP_RESPONSE_BODY_DECODED_SIZE_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_content_length_uncompressed.json\n\n/**\n * The decoded body size of the response (in bytes). `http.response_content_length_uncompressed`\n *\n * Attribute Value Type: `number` {@link HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link HTTP_RESPONSE_BODY_DECODED_SIZE} `http.response.body.decoded_size`, {@link HTTP_DECODED_RESPONSE_CONTENT_LENGTH} `http.decoded_response_content_length`\n *\n * @deprecated Use {@link HTTP_RESPONSE_BODY_DECODED_SIZE} (http.response.body.decoded_size) instead\n * @example 456\n */\nexport const HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED = 'http.response_content_length_uncompressed';\n\n/**\n * Type for {@link HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED} http.response_content_length_uncompressed\n */\nexport type HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED_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 lower-cased, but otherwise unchanged HTTP Header name, 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 * @example \"http.response.header.content-length=['123']\"\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__status_text.json\n\n/**\n * The reason phrase of the HTTP response. `http.response.status_text`\n *\n * Attribute Value Type: `string` {@link HTTP_RESPONSE_STATUS_TEXT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link HTTP_STATUS_TEXT} `http.status_text`\n *\n * @example \"NOT FOUND\"\n */\nexport const HTTP_RESPONSE_STATUS_TEXT = 'http.response.status_text';\n\n/**\n * Type for {@link HTTP_RESPONSE_STATUS_TEXT} http.response.status_text\n */\nexport type HTTP_RESPONSE_STATUS_TEXT_TYPE = string;\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 ROUTE} `route`\n *\n * @example \"/users/:id\"\n * @example \"my-controller/my-action/{id}\"\n * @example \"/posts\"\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 ADDRESS} `address`, {@link SERVER_ADDRESS} `server.address`, {@link NET_HOST_NAME} `net.host.name`, {@link HTTP_HOST} `http.host`, {@link SERVER_NAME} `server_name`, {@link NET_PEER_NAME} `net.peer.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__status_text.json\n\n/**\n * The reason phrase of the HTTP response `http.status_text`\n *\n * Attribute Value Type: `string` {@link HTTP_STATUS_TEXT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link HTTP_RESPONSE_STATUS_TEXT} `http.response.status_text`\n *\n * @deprecated Use {@link HTTP_RESPONSE_STATUS_TEXT} (http.response.status_text) instead\n * @example \"NOT FOUND\"\n */\nexport const HTTP_STATUS_TEXT = 'http.status_text';\n\n/**\n * Type for {@link HTTP_STATUS_TEXT} http.status_text\n */\nexport type HTTP_STATUS_TEXT_TYPE = string;\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 - This attribute is being deprecated in favor of url.path, url.query and url.fragment. The value holds all three parts at once, so it has no single replacement.\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`, {@link AWS_REQUEST_URL} `aws.request.url`, {@link MESSAGING_URL} `messaging.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/integrity/integrity__blocked_url.json\n\n/**\n * The URL of the resource blocked by the integrity policy. `integrity.blocked_url`\n *\n * Attribute Value Type: `string` {@link INTEGRITY_BLOCKED_URL_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"https://example.com/app.js\"\n */\nexport const INTEGRITY_BLOCKED_URL = 'integrity.blocked_url';\n\n/**\n * Type for {@link INTEGRITY_BLOCKED_URL} integrity.blocked_url\n */\nexport type INTEGRITY_BLOCKED_URL_TYPE = string;\n\n// Path: model/attributes/integrity/integrity__destination.json\n\n/**\n * The destination type of the resource affected by the integrity policy. `integrity.destination`\n *\n * Attribute Value Type: `string` {@link INTEGRITY_DESTINATION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"script\"\n */\nexport const INTEGRITY_DESTINATION = 'integrity.destination';\n\n/**\n * Type for {@link INTEGRITY_DESTINATION} integrity.destination\n */\nexport type INTEGRITY_DESTINATION_TYPE = string;\n\n// Path: model/attributes/integrity/integrity__document_url.json\n\n/**\n * The URL of the document where the integrity violation occurred. `integrity.document_url`\n *\n * Attribute Value Type: `string` {@link INTEGRITY_DOCUMENT_URL_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"https://example.com/index.html\"\n */\nexport const INTEGRITY_DOCUMENT_URL = 'integrity.document_url';\n\n/**\n * Type for {@link INTEGRITY_DOCUMENT_URL} integrity.document_url\n */\nexport type INTEGRITY_DOCUMENT_URL_TYPE = string;\n\n// Path: model/attributes/integrity/integrity__report_only.json\n\n/**\n * Whether the integrity violation was generated by a report-only policy. `integrity.report_only`\n *\n * Attribute Value Type: `boolean` {@link INTEGRITY_REPORT_ONLY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example true\n */\nexport const INTEGRITY_REPORT_ONLY = 'integrity.report_only';\n\n/**\n * Type for {@link INTEGRITY_REPORT_ONLY} integrity.report_only\n */\nexport type INTEGRITY_REPORT_ONLY_TYPE = boolean;\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, used to correlate a request with its response. `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/langchain/langchain__chain__name.json\n\n/**\n * The name of the LangChain chain being executed. `langchain.chain.name`\n *\n * Attribute Value Type: `string` {@link LANGCHAIN_CHAIN_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`, {@link AI_PIPELINE_NAME} `ai.pipeline.name`\n *\n * @deprecated Use {@link GEN_AI_PIPELINE_NAME} (gen_ai.pipeline.name) instead - This attribute is being deprecated in favor of gen_ai.pipeline.name, which is the SDK-agnostic replacement for the name of the AI pipeline or chain being executed.\n * @example \"format_prompt\"\n * @example \"RunnableSequence\"\n */\nexport const LANGCHAIN_CHAIN_NAME = 'langchain.chain.name';\n\n/**\n * Type for {@link LANGCHAIN_CHAIN_NAME} langchain.chain.name\n */\nexport type LANGCHAIN_CHAIN_NAME_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/litestar/litestar__middleware_name.json\n\n/**\n * The name of the Litestar middleware. `litestar.middleware_name`\n *\n * Attribute Value Type: `string` {@link LITESTAR_MIDDLEWARE_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link MIDDLEWARE_NAME} `middleware.name`\n *\n * @deprecated Use {@link MIDDLEWARE_NAME} (middleware.name) instead - This attribute is being deprecated in favor of middleware.name, which is the framework-agnostic replacement.\n * @example \"AuthenticationMiddleware\"\n */\nexport const LITESTAR_MIDDLEWARE_NAME = 'litestar.middleware_name';\n\n/**\n * Type for {@link LITESTAR_MIDDLEWARE_NAME} litestar.middleware_name\n */\nexport type LITESTAR_MIDDLEWARE_NAME_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__auth__client__name.json\n\n/**\n * Registered OAuth client application name associated with the authenticated MCP request. Taken from OAuth client registration metadata (client_name) made available by the authentication layer. This is distinct from the MCP implementation name in mcp.client.name; omit it when the OAuth client name is unavailable. `mcp.auth.client.name`\n *\n * Attribute Value Type: `string` {@link MCP_AUTH_CLIENT_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"Example Desktop\"\n * @example \"Example CLI\"\n */\nexport const MCP_AUTH_CLIENT_NAME = 'mcp.auth.client.name';\n\n/**\n * Type for {@link MCP_AUTH_CLIENT_NAME} mcp.auth.client.name\n */\nexport type MCP_AUTH_CLIENT_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 implementation, as declared in clientInfo. This is distinct from the registered OAuth application name in mcp.auth.client.name. `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 \"example-mcp-client\"\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 implementation, as declared in clientInfo. `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 \"Example MCP Client\"\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 implementation, as declared in clientInfo. `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 0.2\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 1\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__[key]__content.json\n\n/**\n * Legacy text content of an indexed message in a multi-message MCP prompt result. `mcp.prompt.result..content`\n *\n * Attribute Value Type: `string` {@link MCP_PROMPT_RESULT_KEY_CONTENT_TYPE}\n *\n * Apply Scrubbing: auto - Preserve automatic scrubbing of server-provided result fields.\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"Summarize the document.\"\n */\nexport const MCP_PROMPT_RESULT_KEY_CONTENT = 'mcp.prompt.result..content';\n\n/**\n * Type for {@link MCP_PROMPT_RESULT_KEY_CONTENT} mcp.prompt.result..content\n */\nexport type MCP_PROMPT_RESULT_KEY_CONTENT_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__prompt__result__[key]__role.json\n\n/**\n * Legacy role of an indexed message in a multi-message MCP prompt result. `mcp.prompt.result..role`\n *\n * Attribute Value Type: `string` {@link MCP_PROMPT_RESULT_KEY_ROLE_TYPE}\n *\n * Apply Scrubbing: auto - Preserve automatic scrubbing of server-provided result fields.\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"user\"\n * @example \"assistant\"\n */\nexport const MCP_PROMPT_RESULT_KEY_ROLE = 'mcp.prompt.result..role';\n\n/**\n * Type for {@link MCP_PROMPT_RESULT_KEY_ROLE} mcp.prompt.result..role\n */\nexport type MCP_PROMPT_RESULT_KEY_ROLE_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 * Readiness indicator for the legacy MCP initialization handshake. A non-zero value indicates that notifications/initialized has completed initialization. Omit for protocol versions without this handshake. `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 * Version of the Model Context Protocol used for the operation. `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, used to correlate the request with its response. `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 * URI scheme of the MCP resource being accessed, extracted from its URI. This is distinct from the network protocol used to communicate with the MCP server. `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 * @example \"file\"\n * @example \"postgres\"\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 implementation, as declared in serverInfo. `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 \"example-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 implementation, as declared in serverInfo. `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 \"Example 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 implementation, as declared in serverInfo. `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 an MCP protocol session, when the operation belongs to a 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: manual - 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`, {@link AI_TOOLCALL_RESULT} `ai.toolCall.result`, {@link ANTHROPIC_TOOL_RESULT_CONTENT} `anthropic.tool_result.content`\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 * @deprecated - A count can be calculated from the value of the gen_ai.tool.call.result attribute.\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__content_type.json\n\n/**\n * Legacy content type of the content item in a single-item MCP tool result. `mcp.tool.result.content_type`\n *\n * Attribute Value Type: `string` {@link MCP_TOOL_RESULT_CONTENT_TYPE_TYPE}\n *\n * Apply Scrubbing: auto - Preserve automatic scrubbing of server-provided result fields.\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated - Capture the complete tool result in gen_ai.tool.call.result instead. This attribute describes only part of the result and cannot be directly backfilled.\n * @example \"text\"\n * @example \"image\"\n */\nexport const MCP_TOOL_RESULT_CONTENT_TYPE = 'mcp.tool.result.content_type';\n\n/**\n * Type for {@link MCP_TOOL_RESULT_CONTENT_TYPE} mcp.tool.result.content_type\n */\nexport type MCP_TOOL_RESULT_CONTENT_TYPE_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__tool__result__data_size.json\n\n/**\n * Legacy length of the data string in UTF-16 code units of the content item in a single-item MCP tool result. `mcp.tool.result.data_size`\n *\n * Attribute Value Type: `number` {@link MCP_TOOL_RESULT_DATA_SIZE_TYPE}\n *\n * Apply Scrubbing: manual - The length contains no result content.\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated - Capture the complete tool result in gen_ai.tool.call.result instead. This attribute describes only part of the result and cannot be directly backfilled.\n * @example 4\n * @example 1024\n */\nexport const MCP_TOOL_RESULT_DATA_SIZE = 'mcp.tool.result.data_size';\n\n/**\n * Type for {@link MCP_TOOL_RESULT_DATA_SIZE} mcp.tool.result.data_size\n */\nexport type MCP_TOOL_RESULT_DATA_SIZE_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__tool__result__[key]__content.json\n\n/**\n * Legacy text content of an indexed content item in a multi-item MCP tool result. `mcp.tool.result..content`\n *\n * Attribute Value Type: `string` {@link MCP_TOOL_RESULT_KEY_CONTENT_TYPE}\n *\n * Apply Scrubbing: auto - Preserve automatic scrubbing of server-provided result fields.\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated - Capture the complete tool result in gen_ai.tool.call.result instead. This attribute describes only part of the result and cannot be directly backfilled.\n * @example \"The operation completed.\"\n */\nexport const MCP_TOOL_RESULT_KEY_CONTENT = 'mcp.tool.result..content';\n\n/**\n * Type for {@link MCP_TOOL_RESULT_KEY_CONTENT} mcp.tool.result..content\n */\nexport type MCP_TOOL_RESULT_KEY_CONTENT_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__tool__result__[key]__content_type.json\n\n/**\n * Legacy content type of an indexed content item in a multi-item MCP tool result. `mcp.tool.result..content_type`\n *\n * Attribute Value Type: `string` {@link MCP_TOOL_RESULT_KEY_CONTENT_TYPE_TYPE}\n *\n * Apply Scrubbing: auto - Preserve automatic scrubbing of server-provided result fields.\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated - Capture the complete tool result in gen_ai.tool.call.result instead. This attribute describes only part of the result and cannot be directly backfilled.\n * @example \"text\"\n * @example \"image\"\n */\nexport const MCP_TOOL_RESULT_KEY_CONTENT_TYPE = 'mcp.tool.result..content_type';\n\n/**\n * Type for {@link MCP_TOOL_RESULT_KEY_CONTENT_TYPE} mcp.tool.result..content_type\n */\nexport type MCP_TOOL_RESULT_KEY_CONTENT_TYPE_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__tool__result__[key]__data_size.json\n\n/**\n * Legacy length of the data string in UTF-16 code units of an indexed content item in a multi-item MCP tool result. `mcp.tool.result..data_size`\n *\n * Attribute Value Type: `number` {@link MCP_TOOL_RESULT_KEY_DATA_SIZE_TYPE}\n *\n * Apply Scrubbing: manual - The length contains no result content.\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated - Capture the complete tool result in gen_ai.tool.call.result instead. This attribute describes only part of the result and cannot be directly backfilled.\n * @example 4\n * @example 1024\n */\nexport const MCP_TOOL_RESULT_KEY_DATA_SIZE = 'mcp.tool.result..data_size';\n\n/**\n * Type for {@link MCP_TOOL_RESULT_KEY_DATA_SIZE} mcp.tool.result..data_size\n */\nexport type MCP_TOOL_RESULT_KEY_DATA_SIZE_TYPE = number;\n\n// Path: model/attributes/mcp/mcp__tool__result__[key]__mime_type.json\n\n/**\n * Legacy MIME type of an indexed content item in a multi-item MCP tool result. `mcp.tool.result..mime_type`\n *\n * Attribute Value Type: `string` {@link MCP_TOOL_RESULT_KEY_MIME_TYPE_TYPE}\n *\n * Apply Scrubbing: auto - Preserve automatic scrubbing of server-provided result fields.\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated - Capture the complete tool result in gen_ai.tool.call.result instead. This attribute describes only part of the result and cannot be directly backfilled.\n * @example \"image/png\"\n * @example \"audio/wav\"\n */\nexport const MCP_TOOL_RESULT_KEY_MIME_TYPE = 'mcp.tool.result..mime_type';\n\n/**\n * Type for {@link MCP_TOOL_RESULT_KEY_MIME_TYPE} mcp.tool.result..mime_type\n */\nexport type MCP_TOOL_RESULT_KEY_MIME_TYPE_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__tool__result__[key]__name.json\n\n/**\n * Legacy resource link name of an indexed content item in a multi-item MCP tool result. `mcp.tool.result..name`\n *\n * Attribute Value Type: `string` {@link MCP_TOOL_RESULT_KEY_NAME_TYPE}\n *\n * Apply Scrubbing: auto - Preserve automatic scrubbing of server-provided result fields.\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated - Capture the complete tool result in gen_ai.tool.call.result instead. This attribute describes only part of the result and cannot be directly backfilled.\n * @example \"report.txt\"\n */\nexport const MCP_TOOL_RESULT_KEY_NAME = 'mcp.tool.result..name';\n\n/**\n * Type for {@link MCP_TOOL_RESULT_KEY_NAME} mcp.tool.result..name\n */\nexport type MCP_TOOL_RESULT_KEY_NAME_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__tool__result__[key]__resource_mime_type.json\n\n/**\n * Legacy embedded resource MIME type of an indexed content item in a multi-item MCP tool result. `mcp.tool.result..resource_mime_type`\n *\n * Attribute Value Type: `string` {@link MCP_TOOL_RESULT_KEY_RESOURCE_MIME_TYPE_TYPE}\n *\n * Apply Scrubbing: auto - Preserve automatic scrubbing of server-provided result fields.\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated - Capture the complete tool result in gen_ai.tool.call.result instead. This attribute describes only part of the result and cannot be directly backfilled.\n * @example \"text/plain\"\n */\nexport const MCP_TOOL_RESULT_KEY_RESOURCE_MIME_TYPE = 'mcp.tool.result..resource_mime_type';\n\n/**\n * Type for {@link MCP_TOOL_RESULT_KEY_RESOURCE_MIME_TYPE} mcp.tool.result..resource_mime_type\n */\nexport type MCP_TOOL_RESULT_KEY_RESOURCE_MIME_TYPE_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__tool__result__[key]__resource_uri.json\n\n/**\n * Legacy embedded resource URI of an indexed content item in a multi-item MCP tool result. `mcp.tool.result..resource_uri`\n *\n * Attribute Value Type: `string` {@link MCP_TOOL_RESULT_KEY_RESOURCE_URI_TYPE}\n *\n * Apply Scrubbing: auto - Preserve automatic scrubbing of server-provided result fields.\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated - Capture the complete tool result in gen_ai.tool.call.result instead. This attribute describes only part of the result and cannot be directly backfilled.\n * @example \"file:///project/report.txt\"\n */\nexport const MCP_TOOL_RESULT_KEY_RESOURCE_URI = 'mcp.tool.result..resource_uri';\n\n/**\n * Type for {@link MCP_TOOL_RESULT_KEY_RESOURCE_URI} mcp.tool.result..resource_uri\n */\nexport type MCP_TOOL_RESULT_KEY_RESOURCE_URI_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__tool__result__[key]__uri.json\n\n/**\n * Legacy resource link URI of an indexed content item in a multi-item MCP tool result. `mcp.tool.result..uri`\n *\n * Attribute Value Type: `string` {@link MCP_TOOL_RESULT_KEY_URI_TYPE}\n *\n * Apply Scrubbing: auto - Preserve automatic scrubbing of server-provided result fields.\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated - Capture the complete tool result in gen_ai.tool.call.result instead. This attribute describes only part of the result and cannot be directly backfilled.\n * @example \"file:///project/report.txt\"\n */\nexport const MCP_TOOL_RESULT_KEY_URI = 'mcp.tool.result..uri';\n\n/**\n * Type for {@link MCP_TOOL_RESULT_KEY_URI} mcp.tool.result..uri\n */\nexport type MCP_TOOL_RESULT_KEY_URI_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__tool__result__mime_type.json\n\n/**\n * Legacy MIME type of the content item in a single-item MCP tool result. `mcp.tool.result.mime_type`\n *\n * Attribute Value Type: `string` {@link MCP_TOOL_RESULT_MIME_TYPE_TYPE}\n *\n * Apply Scrubbing: auto - Preserve automatic scrubbing of server-provided result fields.\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated - Capture the complete tool result in gen_ai.tool.call.result instead. This attribute describes only part of the result and cannot be directly backfilled.\n * @example \"image/png\"\n * @example \"audio/wav\"\n */\nexport const MCP_TOOL_RESULT_MIME_TYPE = 'mcp.tool.result.mime_type';\n\n/**\n * Type for {@link MCP_TOOL_RESULT_MIME_TYPE} mcp.tool.result.mime_type\n */\nexport type MCP_TOOL_RESULT_MIME_TYPE_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__tool__result__name.json\n\n/**\n * Legacy resource link name of the content item in a single-item MCP tool result. `mcp.tool.result.name`\n *\n * Attribute Value Type: `string` {@link MCP_TOOL_RESULT_NAME_TYPE}\n *\n * Apply Scrubbing: auto - Preserve automatic scrubbing of server-provided result fields.\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated - Capture the complete tool result in gen_ai.tool.call.result instead. This attribute describes only part of the result and cannot be directly backfilled.\n * @example \"report.txt\"\n */\nexport const MCP_TOOL_RESULT_NAME = 'mcp.tool.result.name';\n\n/**\n * Type for {@link MCP_TOOL_RESULT_NAME} mcp.tool.result.name\n */\nexport type MCP_TOOL_RESULT_NAME_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__tool__result__resource_mime_type.json\n\n/**\n * Legacy embedded resource MIME type of the content item in a single-item MCP tool result. `mcp.tool.result.resource_mime_type`\n *\n * Attribute Value Type: `string` {@link MCP_TOOL_RESULT_RESOURCE_MIME_TYPE_TYPE}\n *\n * Apply Scrubbing: auto - Preserve automatic scrubbing of server-provided result fields.\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated - Capture the complete tool result in gen_ai.tool.call.result instead. This attribute describes only part of the result and cannot be directly backfilled.\n * @example \"text/plain\"\n */\nexport const MCP_TOOL_RESULT_RESOURCE_MIME_TYPE = 'mcp.tool.result.resource_mime_type';\n\n/**\n * Type for {@link MCP_TOOL_RESULT_RESOURCE_MIME_TYPE} mcp.tool.result.resource_mime_type\n */\nexport type MCP_TOOL_RESULT_RESOURCE_MIME_TYPE_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__tool__result__resource_uri.json\n\n/**\n * Legacy embedded resource URI of the content item in a single-item MCP tool result. `mcp.tool.result.resource_uri`\n *\n * Attribute Value Type: `string` {@link MCP_TOOL_RESULT_RESOURCE_URI_TYPE}\n *\n * Apply Scrubbing: auto - Preserve automatic scrubbing of server-provided result fields.\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated - Capture the complete tool result in gen_ai.tool.call.result instead. This attribute describes only part of the result and cannot be directly backfilled.\n * @example \"file:///project/report.txt\"\n */\nexport const MCP_TOOL_RESULT_RESOURCE_URI = 'mcp.tool.result.resource_uri';\n\n/**\n * Type for {@link MCP_TOOL_RESULT_RESOURCE_URI} mcp.tool.result.resource_uri\n */\nexport type MCP_TOOL_RESULT_RESOURCE_URI_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__tool__result__uri.json\n\n/**\n * Legacy resource link URI of the content item in a single-item MCP tool result. `mcp.tool.result.uri`\n *\n * Attribute Value Type: `string` {@link MCP_TOOL_RESULT_URI_TYPE}\n *\n * Apply Scrubbing: auto - Preserve automatic scrubbing of server-provided result fields.\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated - Capture the complete tool result in gen_ai.tool.call.result instead. This attribute describes only part of the result and cannot be directly backfilled.\n * @example \"file:///project/report.txt\"\n */\nexport const MCP_TOOL_RESULT_URI = 'mcp.tool.result.uri';\n\n/**\n * Type for {@link MCP_TOOL_RESULT_URI} mcp.tool.result.uri\n */\nexport type MCP_TOOL_RESULT_URI_TYPE = string;\n\n// Path: model/attributes/mcp/mcp__transport.json\n\n/**\n * MCP transport implementation name, such as the transport class name. This identifies the implementation, not the network transport or application protocol. `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 * @example \"StdioServerTransport\"\n * @example \"CustomHTTPTransport\"\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__bullmq__flow__name.json\n\n/**\n * The name of the root job of the BullMQ flow that FlowProducer.add() adds. `messaging.bullmq.flow.name`\n *\n * Attribute Value Type: `string` {@link MESSAGING_BULLMQ_FLOW_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"build-report\"\n */\nexport const MESSAGING_BULLMQ_FLOW_NAME = 'messaging.bullmq.flow.name';\n\n/**\n * Type for {@link MESSAGING_BULLMQ_FLOW_NAME} messaging.bullmq.flow.name\n */\nexport type MESSAGING_BULLMQ_FLOW_NAME_TYPE = string;\n\n// Path: model/attributes/messaging/messaging__bullmq__job__attempt_finished_timestamp.json\n\n/**\n * The time in milliseconds since the Unix epoch when the current attempt of the BullMQ job finished. `messaging.bullmq.job.attempt_finished_timestamp`\n *\n * Attribute Value Type: `number` {@link MESSAGING_BULLMQ_JOB_ATTEMPT_FINISHED_TIMESTAMP_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 1791184722406\n */\nexport const MESSAGING_BULLMQ_JOB_ATTEMPT_FINISHED_TIMESTAMP = 'messaging.bullmq.job.attempt_finished_timestamp';\n\n/**\n * Type for {@link MESSAGING_BULLMQ_JOB_ATTEMPT_FINISHED_TIMESTAMP} messaging.bullmq.job.attempt_finished_timestamp\n */\nexport type MESSAGING_BULLMQ_JOB_ATTEMPT_FINISHED_TIMESTAMP_TYPE = number;\n\n// Path: model/attributes/messaging/messaging__bullmq__job__bulk__names.json\n\n/**\n * The names of the BullMQ jobs or flows that one bulk operation adds, for example Queue.addBulk(). `messaging.bullmq.job.bulk.names`\n *\n * Attribute Value Type: `Array` {@link MESSAGING_BULLMQ_JOB_BULK_NAMES_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example [\"send-welcome-email\",\"generate-report\"]\n */\nexport const MESSAGING_BULLMQ_JOB_BULK_NAMES = 'messaging.bullmq.job.bulk.names';\n\n/**\n * Type for {@link MESSAGING_BULLMQ_JOB_BULK_NAMES} messaging.bullmq.job.bulk.names\n */\nexport type MESSAGING_BULLMQ_JOB_BULK_NAMES_TYPE = Array;\n\n// Path: model/attributes/messaging/messaging__bullmq__job__deduplication__key.json\n\n/**\n * The deduplication ID that Queue.removeDeduplicationKey() removes. `messaging.bullmq.job.deduplication.key`\n *\n * Attribute Value Type: `string` {@link MESSAGING_BULLMQ_JOB_DEDUPLICATION_KEY_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"user-42-sync\"\n */\nexport const MESSAGING_BULLMQ_JOB_DEDUPLICATION_KEY = 'messaging.bullmq.job.deduplication.key';\n\n/**\n * Type for {@link MESSAGING_BULLMQ_JOB_DEDUPLICATION_KEY} messaging.bullmq.job.deduplication.key\n */\nexport type MESSAGING_BULLMQ_JOB_DEDUPLICATION_KEY_TYPE = string;\n\n// Path: model/attributes/messaging/messaging__bullmq__job__ids.json\n\n/**\n * The IDs of the BullMQ jobs that Queue.clean() removed. `messaging.bullmq.job.ids`\n *\n * Attribute Value Type: `Array` {@link MESSAGING_BULLMQ_JOB_IDS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example [\"1\",\"2\",\"3\"]\n */\nexport const MESSAGING_BULLMQ_JOB_IDS = 'messaging.bullmq.job.ids';\n\n/**\n * Type for {@link MESSAGING_BULLMQ_JOB_IDS} messaging.bullmq.job.ids\n */\nexport type MESSAGING_BULLMQ_JOB_IDS_TYPE = Array;\n\n// Path: model/attributes/messaging/messaging__bullmq__job__key.json\n\n/**\n * The key that a BullMQ remove operation for a debounce or repeatable key gets, for example Queue.removeDebounceKey(). `messaging.bullmq.job.key`\n *\n * Attribute Value Type: `string` {@link MESSAGING_BULLMQ_JOB_KEY_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"user-42-sync\"\n */\nexport const MESSAGING_BULLMQ_JOB_KEY = 'messaging.bullmq.job.key';\n\n/**\n * Type for {@link MESSAGING_BULLMQ_JOB_KEY} messaging.bullmq.job.key\n */\nexport type MESSAGING_BULLMQ_JOB_KEY_TYPE = string;\n\n// Path: model/attributes/messaging/messaging__bullmq__job__name.json\n\n/**\n * The name of the BullMQ job, which the user passes to Queue.add() to identify the kind of work. `messaging.bullmq.job.name`\n *\n * Attribute Value Type: `string` {@link MESSAGING_BULLMQ_JOB_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"send-welcome-email\"\n * @example \"generate-report\"\n */\nexport const MESSAGING_BULLMQ_JOB_NAME = 'messaging.bullmq.job.name';\n\n/**\n * Type for {@link MESSAGING_BULLMQ_JOB_NAME} messaging.bullmq.job.name\n */\nexport type MESSAGING_BULLMQ_JOB_NAME_TYPE = string;\n\n// Path: model/attributes/messaging/messaging__bullmq__job__processed_timestamp.json\n\n/**\n * The time in milliseconds since the Unix epoch when the Worker started to process the BullMQ job. `messaging.bullmq.job.processed_timestamp`\n *\n * Attribute Value Type: `number` {@link MESSAGING_BULLMQ_JOB_PROCESSED_TIMESTAMP_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 1791184722281\n */\nexport const MESSAGING_BULLMQ_JOB_PROCESSED_TIMESTAMP = 'messaging.bullmq.job.processed_timestamp';\n\n/**\n * Type for {@link MESSAGING_BULLMQ_JOB_PROCESSED_TIMESTAMP} messaging.bullmq.job.processed_timestamp\n */\nexport type MESSAGING_BULLMQ_JOB_PROCESSED_TIMESTAMP_TYPE = number;\n\n// Path: model/attributes/messaging/messaging__bullmq__job__scheduler__id.json\n\n/**\n * The ID of the BullMQ job scheduler that adds the job. `messaging.bullmq.job.scheduler.id`\n *\n * Attribute Value Type: `string` {@link MESSAGING_BULLMQ_JOB_SCHEDULER_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"daily-report\"\n */\nexport const MESSAGING_BULLMQ_JOB_SCHEDULER_ID = 'messaging.bullmq.job.scheduler.id';\n\n/**\n * Type for {@link MESSAGING_BULLMQ_JOB_SCHEDULER_ID} messaging.bullmq.job.scheduler.id\n */\nexport type MESSAGING_BULLMQ_JOB_SCHEDULER_ID_TYPE = string;\n\n// Path: model/attributes/messaging/messaging__bullmq__job__state.json\n\n/**\n * The state of the BullMQ job that a job metric counts. `messaging.bullmq.job.state`\n *\n * Attribute Value Type: `string` {@link MESSAGING_BULLMQ_JOB_STATE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"completed\"\n * @example \"failed\"\n * @example \"delayed\"\n */\nexport const MESSAGING_BULLMQ_JOB_STATE = 'messaging.bullmq.job.state';\n\n/**\n * Type for {@link MESSAGING_BULLMQ_JOB_STATE} messaging.bullmq.job.state\n */\nexport type MESSAGING_BULLMQ_JOB_STATE_TYPE = string;\n\n// Path: model/attributes/messaging/messaging__bullmq__job__type.json\n\n/**\n * The job state from which Queue.clean() removes BullMQ jobs. `messaging.bullmq.job.type`\n *\n * Attribute Value Type: `string` {@link MESSAGING_BULLMQ_JOB_TYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"completed\"\n * @example \"failed\"\n */\nexport const MESSAGING_BULLMQ_JOB_TYPE = 'messaging.bullmq.job.type';\n\n/**\n * Type for {@link MESSAGING_BULLMQ_JOB_TYPE} messaging.bullmq.job.type\n */\nexport type MESSAGING_BULLMQ_JOB_TYPE_TYPE = string;\n\n// Path: model/attributes/messaging/messaging__bullmq__queue__clean__count.json\n\n/**\n * The number of BullMQ jobs that Queue.clean() removed. `messaging.bullmq.queue.clean.count`\n *\n * Attribute Value Type: `number` {@link MESSAGING_BULLMQ_QUEUE_CLEAN_COUNT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 25\n */\nexport const MESSAGING_BULLMQ_QUEUE_CLEAN_COUNT = 'messaging.bullmq.queue.clean.count';\n\n/**\n * Type for {@link MESSAGING_BULLMQ_QUEUE_CLEAN_COUNT} messaging.bullmq.queue.clean.count\n */\nexport type MESSAGING_BULLMQ_QUEUE_CLEAN_COUNT_TYPE = number;\n\n// Path: model/attributes/messaging/messaging__bullmq__queue__clean__limit.json\n\n/**\n * The maximum number of BullMQ jobs that Queue.clean() removes. `messaging.bullmq.queue.clean.limit`\n *\n * Attribute Value Type: `number` {@link MESSAGING_BULLMQ_QUEUE_CLEAN_LIMIT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 1000\n */\nexport const MESSAGING_BULLMQ_QUEUE_CLEAN_LIMIT = 'messaging.bullmq.queue.clean.limit';\n\n/**\n * Type for {@link MESSAGING_BULLMQ_QUEUE_CLEAN_LIMIT} messaging.bullmq.queue.clean.limit\n */\nexport type MESSAGING_BULLMQ_QUEUE_CLEAN_LIMIT_TYPE = number;\n\n// Path: model/attributes/messaging/messaging__bullmq__queue__drain__delay.json\n\n/**\n * Whether Queue.drain() also removes the delayed BullMQ jobs. `messaging.bullmq.queue.drain.delay`\n *\n * Attribute Value Type: `boolean` {@link MESSAGING_BULLMQ_QUEUE_DRAIN_DELAY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example true\n */\nexport const MESSAGING_BULLMQ_QUEUE_DRAIN_DELAY = 'messaging.bullmq.queue.drain.delay';\n\n/**\n * Type for {@link MESSAGING_BULLMQ_QUEUE_DRAIN_DELAY} messaging.bullmq.queue.drain.delay\n */\nexport type MESSAGING_BULLMQ_QUEUE_DRAIN_DELAY_TYPE = boolean;\n\n// Path: model/attributes/messaging/messaging__bullmq__queue__event__max_length.json\n\n/**\n * The maximum number of events that Queue.trimEvents() keeps in the BullMQ event stream. `messaging.bullmq.queue.event.max_length`\n *\n * Attribute Value Type: `number` {@link MESSAGING_BULLMQ_QUEUE_EVENT_MAX_LENGTH_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 10000\n */\nexport const MESSAGING_BULLMQ_QUEUE_EVENT_MAX_LENGTH = 'messaging.bullmq.queue.event.max_length';\n\n/**\n * Type for {@link MESSAGING_BULLMQ_QUEUE_EVENT_MAX_LENGTH} messaging.bullmq.queue.event.max_length\n */\nexport type MESSAGING_BULLMQ_QUEUE_EVENT_MAX_LENGTH_TYPE = number;\n\n// Path: model/attributes/messaging/messaging__bullmq__queue__grace.json\n\n/**\n * The grace period in milliseconds that Queue.clean() uses. Only BullMQ jobs that are older are removed. `messaging.bullmq.queue.grace`\n *\n * Attribute Value Type: `number` {@link MESSAGING_BULLMQ_QUEUE_GRACE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 60000\n */\nexport const MESSAGING_BULLMQ_QUEUE_GRACE = 'messaging.bullmq.queue.grace';\n\n/**\n * Type for {@link MESSAGING_BULLMQ_QUEUE_GRACE} messaging.bullmq.queue.grace\n */\nexport type MESSAGING_BULLMQ_QUEUE_GRACE_TYPE = number;\n\n// Path: model/attributes/messaging/messaging__bullmq__queue__jobs__state.json\n\n/**\n * The BullMQ job state that the queue job count metric counts. `messaging.bullmq.queue.jobs.state`\n *\n * Attribute Value Type: `string` {@link MESSAGING_BULLMQ_QUEUE_JOBS_STATE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"waiting\"\n * @example \"active\"\n * @example \"completed\"\n */\nexport const MESSAGING_BULLMQ_QUEUE_JOBS_STATE = 'messaging.bullmq.queue.jobs.state';\n\n/**\n * Type for {@link MESSAGING_BULLMQ_QUEUE_JOBS_STATE} messaging.bullmq.queue.jobs.state\n */\nexport type MESSAGING_BULLMQ_QUEUE_JOBS_STATE_TYPE = string;\n\n// Path: model/attributes/messaging/messaging__bullmq__queue__rate_limit.json\n\n/**\n * The time in milliseconds for which Queue.rateLimit() rate-limits the BullMQ queue. `messaging.bullmq.queue.rate_limit`\n *\n * Attribute Value Type: `number` {@link MESSAGING_BULLMQ_QUEUE_RATE_LIMIT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 5000\n */\nexport const MESSAGING_BULLMQ_QUEUE_RATE_LIMIT = 'messaging.bullmq.queue.rate_limit';\n\n/**\n * Type for {@link MESSAGING_BULLMQ_QUEUE_RATE_LIMIT} messaging.bullmq.queue.rate_limit\n */\nexport type MESSAGING_BULLMQ_QUEUE_RATE_LIMIT_TYPE = number;\n\n// Path: model/attributes/messaging/messaging__bullmq__worker__do_not_wait_active.json\n\n/**\n * Whether Worker.pause() returns without waiting for the active BullMQ jobs to finish. `messaging.bullmq.worker.do_not_wait_active`\n *\n * Attribute Value Type: `boolean` {@link MESSAGING_BULLMQ_WORKER_DO_NOT_WAIT_ACTIVE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example false\n */\nexport const MESSAGING_BULLMQ_WORKER_DO_NOT_WAIT_ACTIVE = 'messaging.bullmq.worker.do_not_wait_active';\n\n/**\n * Type for {@link MESSAGING_BULLMQ_WORKER_DO_NOT_WAIT_ACTIVE} messaging.bullmq.worker.do_not_wait_active\n */\nexport type MESSAGING_BULLMQ_WORKER_DO_NOT_WAIT_ACTIVE_TYPE = boolean;\n\n// Path: model/attributes/messaging/messaging__bullmq__worker__force_close.json\n\n/**\n * Whether Worker.close() closes the Worker without waiting for the active BullMQ jobs to finish. `messaging.bullmq.worker.force_close`\n *\n * Attribute Value Type: `boolean` {@link MESSAGING_BULLMQ_WORKER_FORCE_CLOSE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example false\n */\nexport const MESSAGING_BULLMQ_WORKER_FORCE_CLOSE = 'messaging.bullmq.worker.force_close';\n\n/**\n * Type for {@link MESSAGING_BULLMQ_WORKER_FORCE_CLOSE} messaging.bullmq.worker.force_close\n */\nexport type MESSAGING_BULLMQ_WORKER_FORCE_CLOSE_TYPE = boolean;\n\n// Path: model/attributes/messaging/messaging__bullmq__worker__jobs_to_extend_locks.json\n\n/**\n * The IDs of the BullMQ jobs whose locks the Worker extends. `messaging.bullmq.worker.jobs_to_extend_locks`\n *\n * Attribute Value Type: `Array` {@link MESSAGING_BULLMQ_WORKER_JOBS_TO_EXTEND_LOCKS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example [\"1\",\"2\"]\n */\nexport const MESSAGING_BULLMQ_WORKER_JOBS_TO_EXTEND_LOCKS = 'messaging.bullmq.worker.jobs_to_extend_locks';\n\n/**\n * Type for {@link MESSAGING_BULLMQ_WORKER_JOBS_TO_EXTEND_LOCKS} messaging.bullmq.worker.jobs_to_extend_locks\n */\nexport type MESSAGING_BULLMQ_WORKER_JOBS_TO_EXTEND_LOCKS_TYPE = Array;\n\n// Path: model/attributes/messaging/messaging__bullmq__worker__name.json\n\n/**\n * The name that the user gives to the BullMQ Worker in its options. `messaging.bullmq.worker.name`\n *\n * Attribute Value Type: `string` {@link MESSAGING_BULLMQ_WORKER_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"email-worker\"\n */\nexport const MESSAGING_BULLMQ_WORKER_NAME = 'messaging.bullmq.worker.name';\n\n/**\n * Type for {@link MESSAGING_BULLMQ_WORKER_NAME} messaging.bullmq.worker.name\n */\nexport type MESSAGING_BULLMQ_WORKER_NAME_TYPE = string;\n\n// Path: model/attributes/messaging/messaging__bullmq__worker__rate_limit.json\n\n/**\n * The time in milliseconds for which Worker.rateLimit() rate-limits the BullMQ Worker. `messaging.bullmq.worker.rate_limit`\n *\n * Attribute Value Type: `number` {@link MESSAGING_BULLMQ_WORKER_RATE_LIMIT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 5000\n */\nexport const MESSAGING_BULLMQ_WORKER_RATE_LIMIT = 'messaging.bullmq.worker.rate_limit';\n\n/**\n * Type for {@link MESSAGING_BULLMQ_WORKER_RATE_LIMIT} messaging.bullmq.worker.rate_limit\n */\nexport type MESSAGING_BULLMQ_WORKER_RATE_LIMIT_TYPE = number;\n\n// Path: model/attributes/messaging/messaging__bullmq__worker__stalled_jobs.json\n\n/**\n * The IDs of the stalled BullMQ jobs that the Worker moved back to the wait state. `messaging.bullmq.worker.stalled_jobs`\n *\n * Attribute Value Type: `Array` {@link MESSAGING_BULLMQ_WORKER_STALLED_JOBS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example [\"1\",\"2\"]\n */\nexport const MESSAGING_BULLMQ_WORKER_STALLED_JOBS = 'messaging.bullmq.worker.stalled_jobs';\n\n/**\n * Type for {@link MESSAGING_BULLMQ_WORKER_STALLED_JOBS} messaging.bullmq.worker.stalled_jobs\n */\nexport type MESSAGING_BULLMQ_WORKER_STALLED_JOBS_TYPE = Array;\n\n// Path: model/attributes/messaging/messaging__client__id.json\n\n/**\n * A unique identifier for the client that consumes or produces a message. `messaging.client.id`\n *\n * Attribute Value Type: `string` {@link MESSAGING_CLIENT_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"client-5\"\n * @example \"myhost@8742@s8083jm\"\n */\nexport const MESSAGING_CLIENT_ID = 'messaging.client.id';\n\n/**\n * Type for {@link MESSAGING_CLIENT_ID} messaging.client.id\n */\nexport type MESSAGING_CLIENT_ID_TYPE = string;\n\n// Path: model/attributes/messaging/messaging__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.conversation_id`\n *\n * Attribute Value Type: `string` {@link MESSAGING_CONVERSATION_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link MESSAGING_MESSAGE_CONVERSATION_ID} `messaging.message.conversation_id`\n *\n * @deprecated Use {@link MESSAGING_MESSAGE_CONVERSATION_ID} (messaging.message.conversation_id) instead - This attribute is being deprecated in favor of messaging.message.conversation_id.\n * @example \"MyConversationId\"\n */\nexport const MESSAGING_CONVERSATION_ID = 'messaging.conversation_id';\n\n/**\n * Type for {@link MESSAGING_CONVERSATION_ID} messaging.conversation_id\n */\nexport type MESSAGING_CONVERSATION_ID_TYPE = string;\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_kind.json\n\n/**\n * The kind of message destination. `messaging.destination_kind`\n *\n * Attribute Value Type: `string` {@link MESSAGING_DESTINATION_KIND_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @deprecated - Deprecated from OTEL, which now models the destination kind via messaging.operation.type and messaging.destination.name.\n * @example \"topic\"\n */\nexport const MESSAGING_DESTINATION_KIND = 'messaging.destination_kind';\n\n/**\n * Type for {@link MESSAGING_DESTINATION_KIND} messaging.destination_kind\n */\nexport type MESSAGING_DESTINATION_KIND_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__destination__partition__id.json\n\n/**\n * The identifier of the partition messages are sent to or received from, unique within the messaging.destination.name. `messaging.destination.partition.id`\n *\n * Attribute Value Type: `string` {@link MESSAGING_DESTINATION_PARTITION_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"1\"\n */\nexport const MESSAGING_DESTINATION_PARTITION_ID = 'messaging.destination.partition.id';\n\n/**\n * Type for {@link MESSAGING_DESTINATION_PARTITION_ID} messaging.destination.partition.id\n */\nexport type MESSAGING_DESTINATION_PARTITION_ID_TYPE = string;\n\n// Path: model/attributes/messaging/messaging__kafka__message__key.json\n\n/**\n * Message keys in Kafka are used for grouping alike messages to ensure they're processed on the same partition. They differ from messaging.message.id in that they're not unique. If the key is null, the attribute MUST NOT be set. `messaging.kafka.message.key`\n *\n * Attribute Value Type: `string` {@link MESSAGING_KAFKA_MESSAGE_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_KAFKA_MESSAGE_KEY = 'messaging.kafka.message.key';\n\n/**\n * Type for {@link MESSAGING_KAFKA_MESSAGE_KEY} messaging.kafka.message.key\n */\nexport type MESSAGING_KAFKA_MESSAGE_KEY_TYPE = string;\n\n// Path: model/attributes/messaging/messaging__kafka__message__tombstone.json\n\n/**\n * A boolean that is true if the message is a tombstone. `messaging.kafka.message.tombstone`\n *\n * Attribute Value Type: `boolean` {@link MESSAGING_KAFKA_MESSAGE_TOMBSTONE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example true\n */\nexport const MESSAGING_KAFKA_MESSAGE_TOMBSTONE = 'messaging.kafka.message.tombstone';\n\n/**\n * Type for {@link MESSAGING_KAFKA_MESSAGE_TOMBSTONE} messaging.kafka.message.tombstone\n */\nexport type MESSAGING_KAFKA_MESSAGE_TOMBSTONE_TYPE = boolean;\n\n// Path: model/attributes/messaging/messaging__kafka__offset.json\n\n/**\n * The offset of a record in the corresponding Kafka partition. `messaging.kafka.offset`\n *\n * Attribute Value Type: `number` {@link MESSAGING_KAFKA_OFFSET_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example 42\n */\nexport const MESSAGING_KAFKA_OFFSET = 'messaging.kafka.offset';\n\n/**\n * Type for {@link MESSAGING_KAFKA_OFFSET} messaging.kafka.offset\n */\nexport type MESSAGING_KAFKA_OFFSET_TYPE = number;\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 * Aliases: {@link MESSAGING_CONVERSATION_ID} `messaging.conversation_id`\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 * Aliases: {@link _MESSAGING_MESSAGE_ID} `messaging.message_id`\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_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: No\n * Visibility: public\n *\n * Aliases: {@link MESSAGING_MESSAGE_ID} `messaging.message.id`\n *\n * @deprecated Use {@link MESSAGING_MESSAGE_ID} (messaging.message.id) instead - This attribute is being deprecated in favor of messaging.message.id.\n * @example \"452a7c7c7c7048c2f887f0e7\"\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.json\n\n/**\n * The name of the messaging operation being performed. `messaging.operation`\n *\n * Attribute Value Type: `string` {@link MESSAGING_OPERATION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link MESSAGING_OPERATION_NAME} `messaging.operation.name`\n *\n * @deprecated Use {@link MESSAGING_OPERATION_NAME} (messaging.operation.name) instead - This attribute is being deprecated in favor of messaging.operation.name.\n * @example \"publish\"\n */\nexport const MESSAGING_OPERATION = 'messaging.operation';\n\n/**\n * Type for {@link MESSAGING_OPERATION} messaging.operation\n */\nexport type MESSAGING_OPERATION_TYPE = string;\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 * Aliases: {@link MESSAGING_OPERATION} `messaging.operation`\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__protocol.json\n\n/**\n * OSI application layer or non-OSI equivalent. `messaging.protocol`\n *\n * Attribute Value Type: `string` {@link MESSAGING_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 - This attribute is being deprecated in favor of network.protocol.name.\n * @example \"AMQP\"\n */\nexport const MESSAGING_PROTOCOL = 'messaging.protocol';\n\n/**\n * Type for {@link MESSAGING_PROTOCOL} messaging.protocol\n */\nexport type MESSAGING_PROTOCOL_TYPE = string;\n\n// Path: model/attributes/messaging/messaging__protocol_version.json\n\n/**\n * The actual version of the protocol used for network communication. `messaging.protocol_version`\n *\n * Attribute Value Type: `string` {@link MESSAGING_PROTOCOL_VERSION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link NETWORK_PROTOCOL_VERSION} `network.protocol.version`, {@link HTTP_FLAVOR} `http.flavor`, {@link NET_PROTOCOL_VERSION} `net.protocol.version`\n *\n * @deprecated Use {@link NETWORK_PROTOCOL_VERSION} (network.protocol.version) instead - This attribute is being deprecated in favor of network.protocol.version.\n * @example \"0.9.1\"\n */\nexport const MESSAGING_PROTOCOL_VERSION = 'messaging.protocol_version';\n\n/**\n * Type for {@link MESSAGING_PROTOCOL_VERSION} messaging.protocol_version\n */\nexport type MESSAGING_PROTOCOL_VERSION_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 * Aliases: {@link MESSAGING_RABBITMQ_ROUTING_KEY} `messaging.rabbitmq.routing_key`\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__rabbitmq__routing_key.json\n\n/**\n * RabbitMQ message routing key. `messaging.rabbitmq.routing_key`\n *\n * Attribute Value Type: `string` {@link MESSAGING_RABBITMQ_ROUTING_KEY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link MESSAGING_RABBITMQ_DESTINATION_ROUTING_KEY} `messaging.rabbitmq.destination.routing_key`\n *\n * @deprecated Use {@link MESSAGING_RABBITMQ_DESTINATION_ROUTING_KEY} (messaging.rabbitmq.destination.routing_key) instead - This attribute is being deprecated in favor of messaging.rabbitmq.destination.routing_key.\n * @example \"myKey\"\n */\nexport const MESSAGING_RABBITMQ_ROUTING_KEY = 'messaging.rabbitmq.routing_key';\n\n/**\n * Type for {@link MESSAGING_RABBITMQ_ROUTING_KEY} messaging.rabbitmq.routing_key\n */\nexport type MESSAGING_RABBITMQ_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/messaging/messaging__url.json\n\n/**\n * The connection string of the messaging broker. `messaging.url`\n *\n * Attribute Value Type: `string` {@link MESSAGING_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`, {@link URL} `url`, {@link AWS_REQUEST_URL} `aws.request.url`\n *\n * @deprecated Use {@link URL_FULL} (url.full) instead - This attribute is being deprecated in favor of url.full.\n * @example \"amqp://guest:guest@localhost:5672\"\n */\nexport const MESSAGING_URL = 'messaging.url';\n\n/**\n * Type for {@link MESSAGING_URL} messaging.url\n */\nexport type MESSAGING_URL_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 * Aliases: {@link DJANGO_MIDDLEWARE_NAME} `django.middleware_name`, {@link STARLITE_MIDDLEWARE_NAME} `starlite.middleware_name`, {@link LITESTAR_MIDDLEWARE_NAME} `litestar.middleware_name`, {@link STARLETTE_MIDDLEWARE_NAME} `starlette.middleware_name`\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 preferably be a 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 ROUTER_NAVIGATION_ORIGIN} `router.navigation.origin`, {@link SENTRY_SVELTEKIT_NAVIGATION_FROM} `sentry.sveltekit.navigation.from`\n *\n * @deprecated Use {@link ROUTER_NAVIGATION_ORIGIN} (router.navigation.origin) instead - Moved to the router.* namespace to separate client-side router navigations from browser navigations.\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 * Aliases: {@link ROUTER_NAVIGATION_ROUTE_ID} `router.navigation.route.id`\n *\n * @deprecated Use {@link ROUTER_NAVIGATION_ROUTE_ID} (router.navigation.route.id) instead - Moved to the router.* namespace to separate client-side router navigations from browser navigations.\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 ROUTER_NAVIGATION_TYPE} `router.navigation.type`, {@link SENTRY_SVELTEKIT_NAVIGATION_TYPE} `sentry.sveltekit.navigation.type`\n *\n * @deprecated Use {@link ROUTER_NAVIGATION_TYPE} (router.navigation.type) instead - Moved to the router.* namespace to separate client-side router navigations from browser navigations.\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_fraction.json\n\n/**\n * The sampling fraction used to determine if the request should be sampled. `nel.sampling_fraction`\n *\n * Attribute Value Type: `number` {@link NEL_SAMPLING_FRACTION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link NEL_SAMPLING_FUNCTION} `nel.sampling_function`\n *\n * @example 0.5\n */\nexport const NEL_SAMPLING_FRACTION = 'nel.sampling_fraction';\n\n/**\n * Type for {@link NEL_SAMPLING_FRACTION} nel.sampling_fraction\n */\nexport type NEL_SAMPLING_FRACTION_TYPE = number;\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 * Aliases: {@link NEL_SAMPLING_FRACTION} `nel.sampling_fraction`\n *\n * @deprecated Use {@link NEL_SAMPLING_FRACTION} (nel.sampling_fraction) instead - The correct name of this attribute is nel.sampling_fraction\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 * @example \"/var/run/my.sock\"\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 * Aliases: {@link NET_SOCK_PEER_PORT} `net.sock.peer.port`\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 MESSAGING_PROTOCOL} `messaging.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`, {@link MESSAGING_PROTOCOL_VERSION} `messaging.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`\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 ADDRESS} `address`, {@link SERVER_ADDRESS} `server.address`, {@link HTTP_SERVER_NAME} `http.server_name`, {@link HTTP_HOST} `http.host`, {@link SERVER_NAME} `server_name`, {@link NET_PEER_NAME} `net.peer.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`, {@link PORT} `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: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * Aliases: {@link ADDRESS} `address`, {@link SERVER_ADDRESS} `server.address`, {@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 * @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 MESSAGING_PROTOCOL} `messaging.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`, {@link MESSAGING_PROTOCOL_VERSION} `messaging.protocol_version`\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 * Aliases: {@link NETWORK_PEER_PORT} `network.peer.port`\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`\n *\n * @deprecated Use {@link NETWORK_TRANSPORT} (network.transport) instead - This attribute is being deprecated in favor of network.transport. The values change from ip_tcp and ip_udp to tcp and udp, so the old value cannot be copied over.\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 “OK” or “ERROR”. 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/page/page__server_rendering__age.json\n\n/**\n * Set on a pageload span. The time in seconds from the start of the server render of the reused part of the page to the start of the span. `page.server_rendering.age`\n *\n * Attribute Value Type: `number` {@link PAGE_SERVER_RENDERING_AGE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 0\n * @example 2520\n * @example 259200\n */\nexport const PAGE_SERVER_RENDERING_AGE = 'page.server_rendering.age';\n\n/**\n * Type for {@link PAGE_SERVER_RENDERING_AGE} page.server_rendering.age\n */\nexport type PAGE_SERVER_RENDERING_AGE_TYPE = number;\n\n// Path: model/attributes/page/page__server_rendering__type.json\n\n/**\n * Set on a pageload span. Describes how the server rendered the content of the page: to reuse it for other requests, only for this request, or a mix of both. `page.server_rendering.type`\n *\n * Attribute Value Type: `string` {@link PAGE_SERVER_RENDERING_TYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Well-defined Values:\n * - `static` - The server rendered the whole page to reuse it for other requests, for example a page from the build, a Next.js ISR page, or a Nuxt `swr` route.\n * - `partially_static` - The server reuses a static part of the page, and renders the other parts for this request in the same response (Next.js Partial Prerendering).\n * - `dynamic` - The server rendered the whole page only for this request. Set only when the SDK knows that the server reused no part of the page. If the SDK cannot tell `dynamic` from `partially_static`, it leaves the attribute unset.\n *\n * @example \"static\"\n * @example \"partially_static\"\n * @example \"dynamic\"\n */\nexport const PAGE_SERVER_RENDERING_TYPE = 'page.server_rendering.type';\n\n/**\n * Type for {@link PAGE_SERVER_RENDERING_TYPE} page.server_rendering.type\n */\nexport type PAGE_SERVER_RENDERING_TYPE_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.`, {@link URL_PATH_PARAMS_KEY} `url.path.params.`\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/port.json\n\n/**\n * The destination port for a TCP connection. `port`\n *\n * Attribute Value Type: `number` {@link PORT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link SERVER_PORT} `server.port`, {@link NET_HOST_PORT} `net.host.port`\n *\n * @deprecated Use {@link SERVER_PORT} (server.port) instead - Old namespace-less attribute, to be replaced with server.port for span-first future\n * @example 1337\n */\nexport const PORT = 'port';\n\n/**\n * Type for {@link PORT} port\n */\nexport type PORT_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 * Aliases: {@link SUBPROCESS_PID} `subprocess.pid`\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__elixir__memory__type.json\n\n/**\n * The kind of BEAM memory a measurement covers: processes, atom, binary, code, ets, or other for the rest of the VM total. `process.runtime.elixir.memory.type`\n *\n * Attribute Value Type: `string` {@link PROCESS_RUNTIME_ELIXIR_MEMORY_TYPE_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"processes\"\n * @example \"binary\"\n * @example \"other\"\n */\nexport const PROCESS_RUNTIME_ELIXIR_MEMORY_TYPE = 'process.runtime.elixir.memory.type';\n\n/**\n * Type for {@link PROCESS_RUNTIME_ELIXIR_MEMORY_TYPE} process.runtime.elixir.memory.type\n */\nexport type PROCESS_RUNTIME_ELIXIR_MEMORY_TYPE_TYPE = string;\n\n// Path: model/attributes/process/process__runtime__elixir__run_queue__type.json\n\n/**\n * The kind of BEAM run queue a measurement covers: cpu for the normal and dirty CPU scheduler run queues, io for the dirty IO run queue. `process.runtime.elixir.run_queue.type`\n *\n * Attribute Value Type: `string` {@link PROCESS_RUNTIME_ELIXIR_RUN_QUEUE_TYPE_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"cpu\"\n * @example \"io\"\n */\nexport const PROCESS_RUNTIME_ELIXIR_RUN_QUEUE_TYPE = 'process.runtime.elixir.run_queue.type';\n\n/**\n * Type for {@link PROCESS_RUNTIME_ELIXIR_RUN_QUEUE_TYPE} process.runtime.elixir.run_queue.type\n */\nexport type PROCESS_RUNTIME_ELIXIR_RUN_QUEUE_TYPE_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/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. `profile_id`\n *\n * Attribute Value Type: `string` {@link PROFILE_ID_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link SENTRY_PROFILE_ID} `sentry.profile_id`\n *\n * @deprecated Use {@link SENTRY_PROFILE_ID} (sentry.profile_id) instead\n * @example \"123e4567e89b12d3a456426614174000\"\n */\nexport const PROFILE_ID = 'profile_id';\n\n/**\n * Type for {@link PROFILE_ID} profile_id\n */\nexport type PROFILE_ID_TYPE = string;\n\n// Path: model/attributes/query.json\n\n/**\n * The database query being executed. `query`\n *\n * Attribute Value Type: `string` {@link QUERY_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link DB_QUERY_TEXT} `db.query.text`, {@link DB_STATEMENT} `db.statement`\n *\n * @deprecated Use {@link DB_QUERY_TEXT} (db.query.text) instead - While this attribute never specifically required parameterization, the replacement, db.query.text, does.\n * @example \"SELECT * FROM users WHERE id = $1\"\n */\nexport const QUERY = 'query';\n\n/**\n * Type for {@link QUERY} query\n */\nexport type QUERY_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_native/react_native__architecture.json\n\n/**\n * The React Native architecture the app is running on. `new` for the New Architecture, where native modules are resolved as TurboModules through `TurboModuleRegistry`, `legacy` for the Old Architecture bridge. `react_native.architecture`\n *\n * Attribute Value Type: `string` {@link REACT_NATIVE_ARCHITECTURE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link TURBO_MODULE_ARCH} `turbo_module.arch`\n *\n * @example \"new\"\n * @example \"legacy\"\n */\nexport const REACT_NATIVE_ARCHITECTURE = 'react_native.architecture';\n\n/**\n * Type for {@link REACT_NATIVE_ARCHITECTURE} react_native.architecture\n */\nexport type REACT_NATIVE_ARCHITECTURE_TYPE = string;\n\n// Path: model/attributes/react_native/react_native__module__call__count.json\n\n/**\n * The number of native module calls observed during the lifetime of the span. `react_native.module.call.count`\n *\n * Attribute Value Type: `number` {@link REACT_NATIVE_MODULE_CALL_COUNT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link TURBO_MODULE_TOTAL_CALL_COUNT} `turbo_module.total_call_count`, {@link TURBO_MODULES_TOTAL_CALL_COUNT} `turbo_modules.total_call_count`\n *\n * @example 42\n */\nexport const REACT_NATIVE_MODULE_CALL_COUNT = 'react_native.module.call.count';\n\n/**\n * Type for {@link REACT_NATIVE_MODULE_CALL_COUNT} react_native.module.call.count\n */\nexport type REACT_NATIVE_MODULE_CALL_COUNT_TYPE = number;\n\n// Path: model/attributes/react_native/react_native__module__call__distinct_count.json\n\n/**\n * The number of distinct native module and method pairs called during the lifetime of the span. Useful as a cardinality signal when the per-method breakdown has been truncated. `react_native.module.call.distinct_count`\n *\n * Attribute Value Type: `number` {@link REACT_NATIVE_MODULE_CALL_DISTINCT_COUNT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link TURBO_MODULE_UNIQUE_METHODS} `turbo_module.unique_methods`, {@link TURBO_MODULES_UNIQUE_METHODS} `turbo_modules.unique_methods`\n *\n * @example 7\n */\nexport const REACT_NATIVE_MODULE_CALL_DISTINCT_COUNT = 'react_native.module.call.distinct_count';\n\n/**\n * Type for {@link REACT_NATIVE_MODULE_CALL_DISTINCT_COUNT} react_native.module.call.distinct_count\n */\nexport type REACT_NATIVE_MODULE_CALL_DISTINCT_COUNT_TYPE = number;\n\n// Path: model/attributes/react_native/react_native__module__duration__max.json\n\n/**\n * The duration of the slowest single native module call observed during the lifetime of the span, in milliseconds. `react_native.module.duration.max`\n *\n * Attribute Value Type: `number` {@link REACT_NATIVE_MODULE_DURATION_MAX_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example 512.5\n */\nexport const REACT_NATIVE_MODULE_DURATION_MAX = 'react_native.module.duration.max';\n\n/**\n * Type for {@link REACT_NATIVE_MODULE_DURATION_MAX} react_native.module.duration.max\n */\nexport type REACT_NATIVE_MODULE_DURATION_MAX_TYPE = number;\n\n// Path: model/attributes/react_native/react_native__module__duration__total.json\n\n/**\n * The combined wall-clock duration of all native module calls observed during the lifetime of the span, in milliseconds. Calls overlap, so this can exceed the span duration. `react_native.module.duration.total`\n *\n * Attribute Value Type: `number` {@link REACT_NATIVE_MODULE_DURATION_TOTAL_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link TURBO_MODULE_TOTAL_DURATION_MS} `turbo_module.total_duration_ms`, {@link TURBO_MODULES_TOTAL_DURATION_MS} `turbo_modules.total_duration_ms`\n *\n * @example 128.45\n */\nexport const REACT_NATIVE_MODULE_DURATION_TOTAL = 'react_native.module.duration.total';\n\n/**\n * Type for {@link REACT_NATIVE_MODULE_DURATION_TOTAL} react_native.module.duration.total\n */\nexport type REACT_NATIVE_MODULE_DURATION_TOTAL_TYPE = number;\n\n// Path: model/attributes/react_native/react_native__module__error__count.json\n\n/**\n * The number of native module calls that failed during the lifetime of the span. A call counts as failed when it threw, rejected, or — on the Old Architecture bridge only — invoked its failure callback. `react_native.module.error.count`\n *\n * Attribute Value Type: `number` {@link REACT_NATIVE_MODULE_ERROR_COUNT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link TURBO_MODULE_TOTAL_ERROR_COUNT} `turbo_module.total_error_count`, {@link TURBO_MODULES_TOTAL_ERROR_COUNT} `turbo_modules.total_error_count`\n *\n * @example 2\n */\nexport const REACT_NATIVE_MODULE_ERROR_COUNT = 'react_native.module.error.count';\n\n/**\n * Type for {@link REACT_NATIVE_MODULE_ERROR_COUNT} react_native.module.error.count\n */\nexport type REACT_NATIVE_MODULE_ERROR_COUNT_TYPE = number;\n\n// Path: model/attributes/react_native/react_native__module__kind.json\n\n/**\n * Whether the native module call completed synchronously or reported completion later through a Promise or a callback. One of `sync` or `async`. `react_native.module.kind`\n *\n * Attribute Value Type: `string` {@link REACT_NATIVE_MODULE_KIND_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"sync\"\n * @example \"async\"\n */\nexport const REACT_NATIVE_MODULE_KIND = 'react_native.module.kind';\n\n/**\n * Type for {@link REACT_NATIVE_MODULE_KIND} react_native.module.kind\n */\nexport type REACT_NATIVE_MODULE_KIND_TYPE = string;\n\n// Path: model/attributes/react_native/react_native__module__method.json\n\n/**\n * The name of the native module method that was called. `react_native.module.method`\n *\n * Attribute Value Type: `string` {@link REACT_NATIVE_MODULE_METHOD_TYPE}\n *\n * Apply Scrubbing: manual - Native module and method names are app-defined identifiers, but scrubbing them would make the call attribution unusable\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link TURBO_MODULE_METHOD} `turbo_module.method`\n *\n * @example \"getUniqueId\"\n */\nexport const REACT_NATIVE_MODULE_METHOD = 'react_native.module.method';\n\n/**\n * Type for {@link REACT_NATIVE_MODULE_METHOD} react_native.module.method\n */\nexport type REACT_NATIVE_MODULE_METHOD_TYPE = string;\n\n// Path: model/attributes/react_native/react_native__module__name.json\n\n/**\n * The name of the native module the call was dispatched to. On the New Architecture this is the TurboModule name, on the Old Architecture the `NativeModules` key. `react_native.module.name`\n *\n * Attribute Value Type: `string` {@link REACT_NATIVE_MODULE_NAME_TYPE}\n *\n * Apply Scrubbing: manual - Native module and method names are app-defined identifiers, but scrubbing them would make the call attribution unusable\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link TURBO_MODULE_NAME} `turbo_module.name`\n *\n * @example \"RNDeviceInfo\"\n */\nexport const REACT_NATIVE_MODULE_NAME = 'react_native.module.name';\n\n/**\n * Type for {@link REACT_NATIVE_MODULE_NAME} react_native.module.name\n */\nexport type REACT_NATIVE_MODULE_NAME_TYPE = string;\n\n// Path: model/attributes/react_native/react_native__module__top__duration.json\n\n/**\n * The total duration attributed to `react_native.module.top.name`, in milliseconds. `react_native.module.top.duration`\n *\n * Attribute Value Type: `number` {@link REACT_NATIVE_MODULE_TOP_DURATION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link TURBO_MODULE_TOP_MODULE_DURATION_MS} `turbo_module.top_module_duration_ms`\n *\n * @example 87.25\n */\nexport const REACT_NATIVE_MODULE_TOP_DURATION = 'react_native.module.top.duration';\n\n/**\n * Type for {@link REACT_NATIVE_MODULE_TOP_DURATION} react_native.module.top.duration\n */\nexport type REACT_NATIVE_MODULE_TOP_DURATION_TYPE = number;\n\n// Path: model/attributes/react_native/react_native__module__top__name.json\n\n/**\n * The native module and method that accounted for the most total duration during the lifetime of the span, formatted as `.`. `react_native.module.top.name`\n *\n * Attribute Value Type: `string` {@link REACT_NATIVE_MODULE_TOP_NAME_TYPE}\n *\n * Apply Scrubbing: manual - Native module and method names are app-defined identifiers, but scrubbing them would make the call attribution unusable\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link TURBO_MODULE_TOP_MODULE} `turbo_module.top_module`\n *\n * @example \"RNDeviceInfo.getUniqueId\"\n */\nexport const REACT_NATIVE_MODULE_TOP_NAME = 'react_native.module.top.name';\n\n/**\n * Type for {@link REACT_NATIVE_MODULE_TOP_NAME} react_native.module.top.name\n */\nexport type REACT_NATIVE_MODULE_TOP_NAME_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/redis/redis__command.json\n\n/**\n * The name of the Redis operation being executed. `redis.command`\n *\n * Attribute Value Type: `string` {@link REDIS_COMMAND_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link CLOUDFLARE_D1_QUERY_TYPE} `cloudflare.d1.query_type`, {@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 \"SELECT\"\n */\nexport const REDIS_COMMAND = 'redis.command';\n\n/**\n * Type for {@link REDIS_COMMAND} redis.command\n */\nexport type REDIS_COMMAND_TYPE = string;\n\n// Path: model/attributes/redis/redis__key.json\n\n/**\n * The key the Redis command is operating on. `redis.key`\n *\n * Attribute Value Type: `string` {@link REDIS_KEY_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link DB_REDIS_KEY} `db.redis.key`\n *\n * @deprecated Use {@link DB_REDIS_KEY} (db.redis.key) instead - This attribute is being deprecated in favor of db.redis.key, which is the preferred replacement.\n * @example \"user:2047:city\"\n */\nexport const REDIS_KEY = 'redis.key';\n\n/**\n * Type for {@link REDIS_KEY} redis.key\n */\nexport type REDIS_KEY_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: never\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/replayId.json\n\n/**\n * The id of the sentry replay. `replayId`\n *\n * Attribute Value Type: `string` {@link REPLAYID_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 REPLAYID = 'replayId';\n\n/**\n * Type for {@link REPLAYID} replayId\n */\nexport type REPLAYID_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: never\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: never\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/router/router__navigation__origin.json\n\n/**\n * The origin of the navigation (usually client side router navigations). Should preferably be a parameterized template (like url.template) or a URL path otherwise. `router.navigation.origin`\n *\n * Attribute Value Type: `string` {@link ROUTER_NAVIGATION_ORIGIN_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link NAVIGATION_ORIGIN} `navigation.origin`, {@link SENTRY_SVELTEKIT_NAVIGATION_FROM} `sentry.sveltekit.navigation.from`\n *\n * @example \"/users/:id\"\n */\nexport const ROUTER_NAVIGATION_ORIGIN = 'router.navigation.origin';\n\n/**\n * Type for {@link ROUTER_NAVIGATION_ORIGIN} router.navigation.origin\n */\nexport type ROUTER_NAVIGATION_ORIGIN_TYPE = string;\n\n// Path: model/attributes/router/router__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). `router.navigation.route.id`\n *\n * Attribute Value Type: `string` {@link ROUTER_NAVIGATION_ROUTE_ID_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link NAVIGATION_ROUTE_ID} `navigation.route.id`\n *\n * @example \"AboutView\"\n */\nexport const ROUTER_NAVIGATION_ROUTE_ID = 'router.navigation.route.id';\n\n/**\n * Type for {@link ROUTER_NAVIGATION_ROUTE_ID} router.navigation.route.id\n */\nexport type ROUTER_NAVIGATION_ROUTE_ID_TYPE = string;\n\n// Path: model/attributes/router/router__navigation__type.json\n\n/**\n * The type of navigation done by a client-side router. `router.navigation.type`\n *\n * Attribute Value Type: `string` {@link ROUTER_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`, {@link SENTRY_SVELTEKIT_NAVIGATION_TYPE} `sentry.sveltekit.navigation.type`\n *\n * @example \"router.push\"\n */\nexport const ROUTER_NAVIGATION_TYPE = 'router.navigation.type';\n\n/**\n * Type for {@link ROUTER_NAVIGATION_TYPE} router.navigation.type\n */\nexport type ROUTER_NAVIGATION_TYPE_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 * Aliases: {@link CODE} `code`, {@link RPC_RESPONSE_STATUS_CODE} `rpc.response.status_code`\n *\n * @deprecated Use {@link RPC_RESPONSE_STATUS_CODE} (rpc.response.status_code) instead - Cannot be automatically backfilled due to type mismatch (integer vs string); rpc.grpc.status_code is a numeric gRPC status code while rpc.response.status_code is the string status name.\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 * Aliases: {@link AWS_OPERATION_NAME} `aws.operation_name`\n *\n * @example \"com.example.ExampleService/exampleMethod\"\n * @example \"GetObject\"\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 * Aliases: {@link CODE} `code`, {@link RPC_GRPC_STATUS_CODE} `rpc.grpc.status_code`\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 * @example \"S3\"\n * @example \"APIGateway\"\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). `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 * Well-defined Values:\n * - `ai`\n * - `ai.pipeline`\n * - `app`\n * - `browser`\n * - `cache`\n * - `console`\n * - `db`\n * - `event`\n * - `file`\n * - `function.aws`\n * - `function.azure`\n * - `function.gcp`\n * - `function.nextjs`\n * - `function.remix`\n * - `graphql`\n * - `grpc`\n * - `http`\n * - `measure`\n * - `middleware`\n * - `navigation`\n * - `object`\n * - `pageload`\n * - `queue`\n * - `resource`\n * - `rpc`\n * - `serialize`\n * - `subprocess`\n * - `template`\n * - `topic`\n * - `ui`\n * - `ui.angular`\n * - `ui.ember`\n * - `ui.react`\n * - `ui.svelte`\n * - `ui.vue`\n * - `view`\n * - `websocket`\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: manual\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__event__serialized_breadcrumbs.json\n\n/**\n * JSON-serialized `breadcrumbs` property from a Sentry event. `sentry.event.serialized_breadcrumbs`\n *\n * Attribute Value Type: `string` {@link SENTRY_EVENT_SERIALIZED_BREADCRUMBS_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: internal\n */\nexport const SENTRY_EVENT_SERIALIZED_BREADCRUMBS = 'sentry.event.serialized_breadcrumbs';\n\n/**\n * Type for {@link SENTRY_EVENT_SERIALIZED_BREADCRUMBS} sentry.event.serialized_breadcrumbs\n */\nexport type SENTRY_EVENT_SERIALIZED_BREADCRUMBS_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__event__serialized_contexts.json\n\n/**\n * JSON-serialized `contexts` property from a Sentry event. `sentry.event.serialized_contexts`\n *\n * Attribute Value Type: `string` {@link SENTRY_EVENT_SERIALIZED_CONTEXTS_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: internal\n */\nexport const SENTRY_EVENT_SERIALIZED_CONTEXTS = 'sentry.event.serialized_contexts';\n\n/**\n * Type for {@link SENTRY_EVENT_SERIALIZED_CONTEXTS} sentry.event.serialized_contexts\n */\nexport type SENTRY_EVENT_SERIALIZED_CONTEXTS_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__event__serialized_extra.json\n\n/**\n * JSON-serialized `extra` property from a Sentry event. `sentry.event.serialized_extra`\n *\n * Attribute Value Type: `string` {@link SENTRY_EVENT_SERIALIZED_EXTRA_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: internal\n */\nexport const SENTRY_EVENT_SERIALIZED_EXTRA = 'sentry.event.serialized_extra';\n\n/**\n * Type for {@link SENTRY_EVENT_SERIALIZED_EXTRA} sentry.event.serialized_extra\n */\nexport type SENTRY_EVENT_SERIALIZED_EXTRA_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__event__serialized_meta.json\n\n/**\n * JSON-serialized `_meta` for the `sentry.event.serialized_*` properties from a Sentry event. `sentry.event.serialized_meta`\n *\n * Attribute Value Type: `string` {@link SENTRY_EVENT_SERIALIZED_META_TYPE}\n *\n * Apply Scrubbing: never\n *\n * Attribute defined in OTEL: No\n * Visibility: internal\n */\nexport const SENTRY_EVENT_SERIALIZED_META = 'sentry.event.serialized_meta';\n\n/**\n * Type for {@link SENTRY_EVENT_SERIALIZED_META} sentry.event.serialized_meta\n */\nexport type SENTRY_EVENT_SERIALIZED_META_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__frames__frozen.json\n\n/**\n * The number of frozen frames rendered during the lifetime of the span. `sentry.frames.frozen`\n *\n * Attribute Value Type: `number` {@link SENTRY_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`, {@link FRAMES_FROZEN} `frames.frozen`\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 SENTRY_FRAMES_FROZEN = 'sentry.frames.frozen';\n\n/**\n * Type for {@link SENTRY_FRAMES_FROZEN} sentry.frames.frozen\n */\nexport type SENTRY_FRAMES_FROZEN_TYPE = number;\n\n// Path: model/attributes/sentry/sentry__frames__slow.json\n\n/**\n * The number of slow frames rendered during the lifetime of the span. `sentry.frames.slow`\n *\n * Attribute Value Type: `number` {@link SENTRY_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`, {@link FRAMES_SLOW} `frames.slow`\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 SENTRY_FRAMES_SLOW = 'sentry.frames.slow';\n\n/**\n * Type for {@link SENTRY_FRAMES_SLOW} sentry.frames.slow\n */\nexport type SENTRY_FRAMES_SLOW_TYPE = number;\n\n// Path: model/attributes/sentry/sentry__frames__total.json\n\n/**\n * The number of total frames rendered during the lifetime of the span. `sentry.frames.total`\n *\n * Attribute Value Type: `number` {@link SENTRY_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`, {@link FRAMES_TOTAL} `frames.total`\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 SENTRY_FRAMES_TOTAL = 'sentry.frames.total';\n\n/**\n * Type for {@link SENTRY_FRAMES_TOTAL} sentry.frames.total\n */\nexport type SENTRY_FRAMES_TOTAL_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_localhost.json\n\n/**\n * Indicates whether a telemetry item was sent on a host, device or browser on a localhost URL or IP address. `sentry.is_localhost`\n *\n * Attribute Value Type: `boolean` {@link SENTRY_IS_LOCALHOST_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: internal\n *\n * @example true\n * @example false\n */\nexport const SENTRY_IS_LOCALHOST = 'sentry.is_localhost';\n\n/**\n * Type for {@link SENTRY_IS_LOCALHOST} sentry.is_localhost\n */\nexport type SENTRY_IS_LOCALHOST_TYPE = boolean;\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 \"client\"\n * @example \"server\"\n * @example \"producer\"\n * @example \"consumer\"\n * @example \"internal\"\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__link__type.json\n\n/**\n * Set on a span link. Describes the relationship between the span and the linked span. `sentry.link.type`\n *\n * Attribute Value Type: `string` {@link SENTRY_LINK_TYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Well-defined Values:\n * - `previous_trace` - The linked span is the root span of the trace before this trace, for example the pageload span before a navigation span.\n * - `cache_origin` - The linked span produced the cached value that this span uses. For example, a `cache.get` span links the `cache.put` span that wrote the cache entry. A pageload span links the span that rendered the reused part of the page (see `page.server_rendering.type`).\n * - `message_origin` - The linked span published the queue message that this span processes.\n * - `server_request` - The linked span handled the request for the document of this pageload span. Set only when the trace context of that request arrived too late, so the pageload span could not continue the trace. For a part of the page that the server reused from an earlier request, use `cache_origin`.\n *\n * @example \"previous_trace\"\n * @example \"cache_origin\"\n * @example \"message_origin\"\n * @example \"server_request\"\n */\nexport const SENTRY_LINK_TYPE = 'sentry.link.type';\n\n/**\n * Type for {@link SENTRY_LINK_TYPE} sentry.link.type\n */\nexport type SENTRY_LINK_TYPE_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__pageload__span_id.json\n\n/**\n * The id of the pageload span, set by web vital spans and metrics `sentry.pageload.span_id`\n *\n * Attribute Value Type: `string` {@link SENTRY_PAGELOAD_SPAN_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"bf2c8d3df84524de\"\n */\nexport const SENTRY_PAGELOAD_SPAN_ID = 'sentry.pageload.span_id';\n\n/**\n * Type for {@link SENTRY_PAGELOAD_SPAN_ID} sentry.pageload.span_id\n */\nexport type SENTRY_PAGELOAD_SPAN_ID_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 * Aliases: {@link PROFILE_ID} `profile_id`\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__relay__ingress.json\n\n/**\n * How an item (span, log, &c.) entered Relay. `sentry.relay.ingress`\n *\n * Attribute Value Type: `string` {@link SENTRY_RELAY_INGRESS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: internal\n *\n * @example \"OTEL\"\n */\nexport const SENTRY_RELAY_INGRESS = 'sentry.relay.ingress';\n\n/**\n * Type for {@link SENTRY_RELAY_INGRESS} sentry.relay.ingress\n */\nexport type SENTRY_RELAY_INGRESS_TYPE = string;\n\n// Path: model/attributes/sentry/sentry__relay__pipeline.json\n\n/**\n * An internal descriptor of which processing pipeline an item went through in Relay. `sentry.relay.pipeline`\n *\n * Attribute Value Type: `string` {@link SENTRY_RELAY_PIPELINE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: internal\n *\n * @example \"span v2\"\n */\nexport const SENTRY_RELAY_PIPELINE = 'sentry.relay.pipeline';\n\n/**\n * Type for {@link SENTRY_RELAY_PIPELINE} sentry.relay.pipeline\n */\nexport type SENTRY_RELAY_PIPELINE_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`, {@link REPLAYID} `replayId`\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 moved to browser.web_vital.lcp.report_event and browser.web_vital.cls.report_event, which are themselves deprecated without a replacement. No backfill required.\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__segment__name__source.json\n\n/**\n * The source of the segment span name. Should only be set on segment spans. `sentry.segment.name.source`\n *\n * Attribute Value Type: `string` {@link SENTRY_SEGMENT_NAME_SOURCE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: internal\n *\n * Well-defined Values:\n * - `custom` - Describes a name set by the user, not derived from the URL or a route pattern\n * - `url` - Describes the full URL, potentially containing identifiers\n * - `route` - Describes a parametrized route\n * - `component`\n * - `view`\n * - `task`\n *\n * @example \"route\"\n * @example \"component\"\n * @example \"view\"\n * @example \"task\"\n * @example \"custom\"\n * @example \"url\"\n */\nexport const SENTRY_SEGMENT_NAME_SOURCE = 'sentry.segment.name.source';\n\n/**\n * Type for {@link SENTRY_SEGMENT_NAME_SOURCE} sentry.segment.name.source\n */\nexport type SENTRY_SEGMENT_NAME_SOURCE_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. `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 * Well-defined Values:\n * - `custom`\n * - `url` - Describes the full URL, potentially containing identifiers\n * - `route` - Describes a parametrized route\n * - `component`\n * - `view`\n * - `task`\n *\n * @deprecated - This attribute is superseded by sentry.segment.name.source, which only needs to be set on segment spans.\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. `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 * Well-defined Values:\n * - `custom`\n * - `url` - Describes the full URL, potentially containing identifiers\n * - `route` - Describes a parametrized route\n * - `component`\n * - `view`\n * - `task`\n *\n * @deprecated - This attribute is superseded by sentry.segment.name.source, which only needs to be set on segment spans.\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`, {@link ROUTER_NAVIGATION_ORIGIN} `router.navigation.origin`\n *\n * @deprecated Use {@link ROUTER_NAVIGATION_ORIGIN} (router.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`, {@link ROUTER_NAVIGATION_TYPE} `router.navigation.type`\n *\n * @deprecated Use {@link ROUTER_NAVIGATION_TYPE} (router.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 \"managed\" 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: manual\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.json\n\n/**\n * Combined identifier of the user, used for the `user` tag and for counting unique users. Set to the first available of the user's ID, username, email address, or IP address, prefixed with which one it is: `id:`, `username:`, `email:`, or `ip:`. `sentry.user`\n *\n * Attribute Value Type: `string` {@link SENTRY_USER_TYPE}\n *\n * Apply Scrubbing: auto\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"id:123\"\n * @example \"username:j.smith\"\n * @example \"email:test@example.com\"\n * @example \"ip:192.168.1.1\"\n */\nexport const SENTRY_USER = 'sentry.user';\n\n/**\n * Type for {@link SENTRY_USER} sentry.user\n */\nexport type SENTRY_USER_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__geo__subregion.json\n\n/**\n * UN M49 subregion code of the user's location, derived from user.geo.country_code. Sub-Saharan Africa and Latin America and the Caribbean are split into their M49 intermediate regions. `sentry.user.geo.subregion`\n *\n * Attribute Value Type: `string` {@link SENTRY_USER_GEO_SUBREGION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Well-defined Values:\n * - `5` - South America\n * - `11` - Western Africa\n * - `13` - Central America\n * - `14` - Eastern Africa\n * - `15` - Northern Africa\n * - `17` - Middle Africa\n * - `18` - Southern Africa\n * - `21` - Northern America\n * - `29` - Caribbean\n * - `30` - Eastern Asia\n * - `34` - Southern Asia\n * - `35` - South-Eastern Asia\n * - `39` - Southern Europe\n * - `53` - Australia and New Zealand\n * - `54` - Melanesia\n * - `57` - Micronesia\n * - `61` - Polynesia\n * - `143` - Central Asia\n * - `145` - Western Asia\n * - `151` - Eastern Europe\n * - `154` - Northern Europe\n * - `155` - Western Europe\n *\n * Aliases: {@link USER_GEO_SUBREGION} `user.geo.subregion`\n *\n * @deprecated Use {@link USER_GEO_SUBREGION} (user.geo.subregion) instead\n * @example \"155\"\n * @example \"21\"\n */\nexport const SENTRY_USER_GEO_SUBREGION = 'sentry.user.geo.subregion';\n\n/**\n * Type for {@link SENTRY_USER_GEO_SUBREGION} sentry.user.geo.subregion\n */\nexport type SENTRY_USER_GEO_SUBREGION_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 * Preferably the server domain name if available without reverse DNS lookup, or an IP address or Unix domain socket name. For compatibility, it may contain what the hostname command returns on UNIX systems, the fully qualified hostname, or another name specified by the user. `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 ADDRESS} `address`, {@link HTTP_SERVER_NAME} `http.server_name`, {@link NET_HOST_NAME} `net.host.name`, {@link HTTP_HOST} `http.host`, {@link SERVER_NAME} `server_name`, {@link NET_PEER_NAME} `net.peer.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/server__ext__type.json\n\n/**\n * The request lifecycle extension point where the Hapi extension function runs. `server.ext.type`\n *\n * Attribute Value Type: `string` {@link SERVER_EXT_TYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link HAPI_EXT_TYPE} `hapi.ext.type`\n *\n * @deprecated Use {@link HAPI_EXT_TYPE} (hapi.ext.type) instead - Name from the OpenTelemetry Hapi instrumentation. The `server` namespace describes the network endpoint of the server, so the attribute moves to the `hapi` namespace.\n * @example \"onRequest\"\n * @example \"onPreResponse\"\n */\nexport const SERVER_EXT_TYPE = 'server.ext.type';\n\n/**\n * Type for {@link SERVER_EXT_TYPE} server.ext.type\n */\nexport type SERVER_EXT_TYPE_TYPE = string;\n\n// Path: model/attributes/server_name.json\n\n/**\n * The name of the device. On servers and desktops, this is typically the hostname. `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 ADDRESS} `address`, {@link SERVER_ADDRESS} `server.address`, {@link HTTP_SERVER_NAME} `http.server_name`, {@link NET_HOST_NAME} `net.host.name`, {@link HTTP_HOST} `http.host`, {@link NET_PEER_NAME} `net.peer.name`\n *\n * @deprecated Use {@link SERVER_ADDRESS} (server.address) instead - This attribute is being deprecated in favor of server.address.\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`, {@link PORT} `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 *\n * Aliases: {@link APP_VITALS_STALL_PERCENTAGE} `app.vitals.stall.percentage`\n *\n * @deprecated Use {@link APP_VITALS_STALL_PERCENTAGE} (app.vitals.stall.percentage) instead - Replaced by app.vitals.stall.percentage to align with the app.vitals.* namespace for mobile performance attributes\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 *\n * Aliases: {@link APP_VITALS_STALL_DURATION} `app.vitals.stall.duration`\n *\n * @deprecated Use {@link APP_VITALS_STALL_DURATION} (app.vitals.stall.duration) instead - Replaced by app.vitals.stall.duration to align with the app.vitals.* namespace for mobile performance attributes\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/starlette/starlette__middleware_name.json\n\n/**\n * The name of the Starlette middleware. `starlette.middleware_name`\n *\n * Attribute Value Type: `string` {@link STARLETTE_MIDDLEWARE_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link MIDDLEWARE_NAME} `middleware.name`\n *\n * @deprecated Use {@link MIDDLEWARE_NAME} (middleware.name) instead - This attribute is being deprecated in favor of middleware.name, which is the framework-agnostic replacement.\n * @example \"AuthenticationMiddleware\"\n */\nexport const STARLETTE_MIDDLEWARE_NAME = 'starlette.middleware_name';\n\n/**\n * Type for {@link STARLETTE_MIDDLEWARE_NAME} starlette.middleware_name\n */\nexport type STARLETTE_MIDDLEWARE_NAME_TYPE = string;\n\n// Path: model/attributes/starlite/starlite__middleware_name.json\n\n/**\n * The name of the Starlite middleware. `starlite.middleware_name`\n *\n * Attribute Value Type: `string` {@link STARLITE_MIDDLEWARE_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link MIDDLEWARE_NAME} `middleware.name`\n *\n * @deprecated Use {@link MIDDLEWARE_NAME} (middleware.name) instead - This attribute is being deprecated in favor of middleware.name, which is the framework-agnostic replacement.\n * @example \"AuthenticationMiddleware\"\n */\nexport const STARLITE_MIDDLEWARE_NAME = 'starlite.middleware_name';\n\n/**\n * Type for {@link STARLITE_MIDDLEWARE_NAME} starlite.middleware_name\n */\nexport type STARLITE_MIDDLEWARE_NAME_TYPE = string;\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/subprocess/subprocess__pid.json\n\n/**\n * The process ID of a subprocess. `subprocess.pid`\n *\n * Attribute Value Type: `number` {@link SUBPROCESS_PID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link PROCESS_PID} `process.pid`\n *\n * @deprecated Use {@link PROCESS_PID} (process.pid) instead - This attribute is being deprecated in favor of process.pid, which is the OTel-aligned replacement.\n * @example 12345\n */\nexport const SUBPROCESS_PID = 'subprocess.pid';\n\n/**\n * Type for {@link SUBPROCESS_PID} subprocess.pid\n */\nexport type SUBPROCESS_PID_TYPE = number;\n\n// Path: model/attributes/sveltekit/sveltekit__load__environment.json\n\n/**\n * The runtime environment in which the SvelteKit load function was executed. Known values are `'server'` and `'client'`. `sveltekit.load.environment`\n *\n * Attribute Value Type: `string` {@link SVELTEKIT_LOAD_ENVIRONMENT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"server\"\n * @example \"client\"\n */\nexport const SVELTEKIT_LOAD_ENVIRONMENT = 'sveltekit.load.environment';\n\n/**\n * Type for {@link SVELTEKIT_LOAD_ENVIRONMENT} sveltekit.load.environment\n */\nexport type SVELTEKIT_LOAD_ENVIRONMENT_TYPE = string;\n\n// Path: model/attributes/sveltekit/sveltekit__load__node_id.json\n\n/**\n * The path to the SvelteKit load function. `sveltekit.load.node_id`\n *\n * Attribute Value Type: `string` {@link SVELTEKIT_LOAD_NODE_ID_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link CODE_FILE_PATH} `code.file.path`, {@link CODE_FILEPATH} `code.filepath`\n *\n * @example \"src/routes/users/:id/+page.server.ts\"\n */\nexport const SVELTEKIT_LOAD_NODE_ID = 'sveltekit.load.node_id';\n\n/**\n * Type for {@link SVELTEKIT_LOAD_NODE_ID} sveltekit.load.node_id\n */\nexport type SVELTEKIT_LOAD_NODE_ID_TYPE = string;\n\n// Path: model/attributes/sveltekit/sveltekit__load__node_type.json\n\n/**\n * The kind of SvelteKit load function that was executed, distinguishing page from layout and universal from server load functions. `sveltekit.load.node_type`\n *\n * Attribute Value Type: `string` {@link SVELTEKIT_LOAD_NODE_TYPE_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"+page.server\"\n * @example \"+layout\"\n * @example \"+layout.server\"\n */\nexport const SVELTEKIT_LOAD_NODE_TYPE = 'sveltekit.load.node_type';\n\n/**\n * Type for {@link SVELTEKIT_LOAD_NODE_TYPE} sveltekit.load.node_type\n */\nexport type SVELTEKIT_LOAD_NODE_TYPE_TYPE = string;\n\n// Path: model/attributes/sveltekit/sveltekit__tracing__original_name.json\n\n/**\n * The original span name as emitted by SvelteKit. `sveltekit.tracing.original_name`\n *\n * Attribute Value Type: `string` {@link SVELTEKIT_TRACING_ORIGINAL_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * @example \"sveltekit.handle.root\"\n */\nexport const SVELTEKIT_TRACING_ORIGINAL_NAME = 'sveltekit.tracing.original_name';\n\n/**\n * Type for {@link SVELTEKIT_TRACING_ORIGINAL_NAME} sveltekit.tracing.original_name\n */\nexport type SVELTEKIT_TRACING_ORIGINAL_NAME_TYPE = string;\n\n// Path: model/attributes/thread/thread__id.json\n\n/**\n * Current “managed” 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/tls/tls__protocol__name.json\n\n/**\n * Normalized lowercase protocol name parsed from the negotiated SSL/TLS protocol version `tls.protocol.name`\n *\n * Attribute Value Type: `string` {@link TLS_PROTOCOL_NAME_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"tls\"\n * @example \"ssl\"\n */\nexport const TLS_PROTOCOL_NAME = 'tls.protocol.name';\n\n/**\n * Type for {@link TLS_PROTOCOL_NAME} tls.protocol.name\n */\nexport type TLS_PROTOCOL_NAME_TYPE = string;\n\n// Path: model/attributes/tls/tls__protocol__version.json\n\n/**\n * Numeric part of the version parsed from the negotiated SSL/TLS protocol version `tls.protocol.version`\n *\n * Attribute Value Type: `string` {@link TLS_PROTOCOL_VERSION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: Yes\n * Visibility: public\n *\n * @example \"1.2\"\n * @example \"1.3\"\n * @example \"3\"\n */\nexport const TLS_PROTOCOL_VERSION = 'tls.protocol.version';\n\n/**\n * Type for {@link TLS_PROTOCOL_VERSION} tls.protocol.version\n */\nexport type TLS_PROTOCOL_VERSION_TYPE = string;\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/turbo_modules/turbo_modules__total_call_count.json\n\n/**\n * The number of native module calls in the flushed call aggregate. Only applies to React Native. `turbo_modules.total_call_count`\n *\n * Attribute Value Type: `number` {@link TURBO_MODULES_TOTAL_CALL_COUNT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link REACT_NATIVE_MODULE_CALL_COUNT} `react_native.module.call.count`, {@link TURBO_MODULE_TOTAL_CALL_COUNT} `turbo_module.total_call_count`\n *\n * @deprecated Use {@link REACT_NATIVE_MODULE_CALL_COUNT} (react_native.module.call.count) instead - Replaced by the `react_native.module.*` namespace; the SDK emitted the same values under both a singular `turbo_module.*` and a plural `turbo_modules.*` prefix\n * @example 42\n */\nexport const TURBO_MODULES_TOTAL_CALL_COUNT = 'turbo_modules.total_call_count';\n\n/**\n * Type for {@link TURBO_MODULES_TOTAL_CALL_COUNT} turbo_modules.total_call_count\n */\nexport type TURBO_MODULES_TOTAL_CALL_COUNT_TYPE = number;\n\n// Path: model/attributes/turbo_modules/turbo_modules__total_duration_ms.json\n\n/**\n * The combined duration of all native module calls in the flushed call aggregate, in milliseconds. Only applies to React Native. `turbo_modules.total_duration_ms`\n *\n * Attribute Value Type: `number` {@link TURBO_MODULES_TOTAL_DURATION_MS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link REACT_NATIVE_MODULE_DURATION_TOTAL} `react_native.module.duration.total`, {@link TURBO_MODULE_TOTAL_DURATION_MS} `turbo_module.total_duration_ms`\n *\n * @deprecated Use {@link REACT_NATIVE_MODULE_DURATION_TOTAL} (react_native.module.duration.total) instead - Replaced by the `react_native.module.*` namespace; the SDK emitted the same values under both a singular `turbo_module.*` and a plural `turbo_modules.*` prefix\n * @example 128.45\n */\nexport const TURBO_MODULES_TOTAL_DURATION_MS = 'turbo_modules.total_duration_ms';\n\n/**\n * Type for {@link TURBO_MODULES_TOTAL_DURATION_MS} turbo_modules.total_duration_ms\n */\nexport type TURBO_MODULES_TOTAL_DURATION_MS_TYPE = number;\n\n// Path: model/attributes/turbo_modules/turbo_modules__total_error_count.json\n\n/**\n * The number of failed native module calls in the flushed call aggregate. Only applies to React Native. `turbo_modules.total_error_count`\n *\n * Attribute Value Type: `number` {@link TURBO_MODULES_TOTAL_ERROR_COUNT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link REACT_NATIVE_MODULE_ERROR_COUNT} `react_native.module.error.count`, {@link TURBO_MODULE_TOTAL_ERROR_COUNT} `turbo_module.total_error_count`\n *\n * @deprecated Use {@link REACT_NATIVE_MODULE_ERROR_COUNT} (react_native.module.error.count) instead - Replaced by the `react_native.module.*` namespace; the SDK emitted the same values under both a singular `turbo_module.*` and a plural `turbo_modules.*` prefix\n * @example 2\n */\nexport const TURBO_MODULES_TOTAL_ERROR_COUNT = 'turbo_modules.total_error_count';\n\n/**\n * Type for {@link TURBO_MODULES_TOTAL_ERROR_COUNT} turbo_modules.total_error_count\n */\nexport type TURBO_MODULES_TOTAL_ERROR_COUNT_TYPE = number;\n\n// Path: model/attributes/turbo_modules/turbo_modules__unique_methods.json\n\n/**\n * The number of distinct native module and method pairs in the flushed call aggregate. Only applies to React Native. `turbo_modules.unique_methods`\n *\n * Attribute Value Type: `number` {@link TURBO_MODULES_UNIQUE_METHODS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link REACT_NATIVE_MODULE_CALL_DISTINCT_COUNT} `react_native.module.call.distinct_count`, {@link TURBO_MODULE_UNIQUE_METHODS} `turbo_module.unique_methods`\n *\n * @deprecated Use {@link REACT_NATIVE_MODULE_CALL_DISTINCT_COUNT} (react_native.module.call.distinct_count) instead - Replaced by the `react_native.module.*` namespace; the SDK emitted the same values under both a singular `turbo_module.*` and a plural `turbo_modules.*` prefix\n * @example 7\n */\nexport const TURBO_MODULES_UNIQUE_METHODS = 'turbo_modules.unique_methods';\n\n/**\n * Type for {@link TURBO_MODULES_UNIQUE_METHODS} turbo_modules.unique_methods\n */\nexport type TURBO_MODULES_UNIQUE_METHODS_TYPE = number;\n\n// Path: model/attributes/turbo_module/turbo_module__arch.json\n\n/**\n * The React Native architecture the call was observed on. `new` for a TurboModule resolved through `TurboModuleRegistry`, `legacy` for a module reached over the Old Architecture bridge. Only applies to React Native. `turbo_module.arch`\n *\n * Attribute Value Type: `string` {@link TURBO_MODULE_ARCH_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link REACT_NATIVE_ARCHITECTURE} `react_native.architecture`\n *\n * @deprecated Use {@link REACT_NATIVE_ARCHITECTURE} (react_native.architecture) instead - Replaced by the `react_native.*` namespace, which also covers native module calls made over the Old Architecture bridge, which are not TurboModules\n * @example \"new\"\n * @example \"legacy\"\n */\nexport const TURBO_MODULE_ARCH = 'turbo_module.arch';\n\n/**\n * Type for {@link TURBO_MODULE_ARCH} turbo_module.arch\n */\nexport type TURBO_MODULE_ARCH_TYPE = string;\n\n// Path: model/attributes/turbo_module/turbo_module__method.json\n\n/**\n * The name of the native module method that was called. Only applies to React Native. `turbo_module.method`\n *\n * Attribute Value Type: `string` {@link TURBO_MODULE_METHOD_TYPE}\n *\n * Apply Scrubbing: manual - Native module and method names are app-defined identifiers, but scrubbing them would make the call attribution unusable\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link REACT_NATIVE_MODULE_METHOD} `react_native.module.method`\n *\n * @deprecated Use {@link REACT_NATIVE_MODULE_METHOD} (react_native.module.method) instead - Replaced by the `react_native.*` namespace, which also covers native module calls made over the Old Architecture bridge, which are not TurboModules\n * @example \"getUniqueId\"\n */\nexport const TURBO_MODULE_METHOD = 'turbo_module.method';\n\n/**\n * Type for {@link TURBO_MODULE_METHOD} turbo_module.method\n */\nexport type TURBO_MODULE_METHOD_TYPE = string;\n\n// Path: model/attributes/turbo_module/turbo_module__name.json\n\n/**\n * The name of the native module the call was dispatched to. On the New Architecture this is the TurboModule name, on the Old Architecture the `NativeModules` key. Only applies to React Native. `turbo_module.name`\n *\n * Attribute Value Type: `string` {@link TURBO_MODULE_NAME_TYPE}\n *\n * Apply Scrubbing: manual - Native module and method names are app-defined identifiers, but scrubbing them would make the call attribution unusable\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link REACT_NATIVE_MODULE_NAME} `react_native.module.name`\n *\n * @deprecated Use {@link REACT_NATIVE_MODULE_NAME} (react_native.module.name) instead - Replaced by the `react_native.*` namespace, which also covers native module calls made over the Old Architecture bridge, which are not TurboModules\n * @example \"RNDeviceInfo\"\n */\nexport const TURBO_MODULE_NAME = 'turbo_module.name';\n\n/**\n * Type for {@link TURBO_MODULE_NAME} turbo_module.name\n */\nexport type TURBO_MODULE_NAME_TYPE = string;\n\n// Path: model/attributes/turbo_module/turbo_module__top_module.json\n\n/**\n * The native module and method that accounted for the most total duration during the lifetime of the span. Only applies to React Native. `turbo_module.top_module`\n *\n * Attribute Value Type: `string` {@link TURBO_MODULE_TOP_MODULE_TYPE}\n *\n * Apply Scrubbing: manual - Native module and method names are app-defined identifiers, but scrubbing them would make the call attribution unusable\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link REACT_NATIVE_MODULE_TOP_NAME} `react_native.module.top.name`\n *\n * @deprecated Use {@link REACT_NATIVE_MODULE_TOP_NAME} (react_native.module.top.name) instead - Replaced by the `react_native.module.*` namespace, which also covers native module calls made over the Old Architecture bridge, and which drops the `total_` prefix and `_ms` suffix in favor of dot-separated logical grouping\n * @example \"RNDeviceInfo.getUniqueId\"\n */\nexport const TURBO_MODULE_TOP_MODULE = 'turbo_module.top_module';\n\n/**\n * Type for {@link TURBO_MODULE_TOP_MODULE} turbo_module.top_module\n */\nexport type TURBO_MODULE_TOP_MODULE_TYPE = string;\n\n// Path: model/attributes/turbo_module/turbo_module__top_module_duration_ms.json\n\n/**\n * The total duration attributed to the top native module method, in milliseconds. Only applies to React Native. `turbo_module.top_module_duration_ms`\n *\n * Attribute Value Type: `number` {@link TURBO_MODULE_TOP_MODULE_DURATION_MS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link REACT_NATIVE_MODULE_TOP_DURATION} `react_native.module.top.duration`\n *\n * @deprecated Use {@link REACT_NATIVE_MODULE_TOP_DURATION} (react_native.module.top.duration) instead - Replaced by the `react_native.module.*` namespace, which also covers native module calls made over the Old Architecture bridge, and which drops the `total_` prefix and `_ms` suffix in favor of dot-separated logical grouping\n * @example 87.25\n */\nexport const TURBO_MODULE_TOP_MODULE_DURATION_MS = 'turbo_module.top_module_duration_ms';\n\n/**\n * Type for {@link TURBO_MODULE_TOP_MODULE_DURATION_MS} turbo_module.top_module_duration_ms\n */\nexport type TURBO_MODULE_TOP_MODULE_DURATION_MS_TYPE = number;\n\n// Path: model/attributes/turbo_module/turbo_module__total_call_count.json\n\n/**\n * The number of native module calls observed during the lifetime of the span. Only applies to React Native. `turbo_module.total_call_count`\n *\n * Attribute Value Type: `number` {@link TURBO_MODULE_TOTAL_CALL_COUNT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link REACT_NATIVE_MODULE_CALL_COUNT} `react_native.module.call.count`, {@link TURBO_MODULES_TOTAL_CALL_COUNT} `turbo_modules.total_call_count`\n *\n * @deprecated Use {@link REACT_NATIVE_MODULE_CALL_COUNT} (react_native.module.call.count) instead - Replaced by the `react_native.module.*` namespace, which also covers native module calls made over the Old Architecture bridge, and which drops the `total_` prefix and `_ms` suffix in favor of dot-separated logical grouping\n * @example 42\n */\nexport const TURBO_MODULE_TOTAL_CALL_COUNT = 'turbo_module.total_call_count';\n\n/**\n * Type for {@link TURBO_MODULE_TOTAL_CALL_COUNT} turbo_module.total_call_count\n */\nexport type TURBO_MODULE_TOTAL_CALL_COUNT_TYPE = number;\n\n// Path: model/attributes/turbo_module/turbo_module__total_duration_ms.json\n\n/**\n * The combined duration of all native module calls observed during the lifetime of the span, in milliseconds. Only applies to React Native. `turbo_module.total_duration_ms`\n *\n * Attribute Value Type: `number` {@link TURBO_MODULE_TOTAL_DURATION_MS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link REACT_NATIVE_MODULE_DURATION_TOTAL} `react_native.module.duration.total`, {@link TURBO_MODULES_TOTAL_DURATION_MS} `turbo_modules.total_duration_ms`\n *\n * @deprecated Use {@link REACT_NATIVE_MODULE_DURATION_TOTAL} (react_native.module.duration.total) instead - Replaced by the `react_native.module.*` namespace, which also covers native module calls made over the Old Architecture bridge, and which drops the `total_` prefix and `_ms` suffix in favor of dot-separated logical grouping\n * @example 128.45\n */\nexport const TURBO_MODULE_TOTAL_DURATION_MS = 'turbo_module.total_duration_ms';\n\n/**\n * Type for {@link TURBO_MODULE_TOTAL_DURATION_MS} turbo_module.total_duration_ms\n */\nexport type TURBO_MODULE_TOTAL_DURATION_MS_TYPE = number;\n\n// Path: model/attributes/turbo_module/turbo_module__total_error_count.json\n\n/**\n * The number of native module calls that failed during the lifetime of the span. Only applies to React Native. `turbo_module.total_error_count`\n *\n * Attribute Value Type: `number` {@link TURBO_MODULE_TOTAL_ERROR_COUNT_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link REACT_NATIVE_MODULE_ERROR_COUNT} `react_native.module.error.count`, {@link TURBO_MODULES_TOTAL_ERROR_COUNT} `turbo_modules.total_error_count`\n *\n * @deprecated Use {@link REACT_NATIVE_MODULE_ERROR_COUNT} (react_native.module.error.count) instead - Replaced by the `react_native.module.*` namespace, which also covers native module calls made over the Old Architecture bridge, and which drops the `total_` prefix and `_ms` suffix in favor of dot-separated logical grouping\n * @example 2\n */\nexport const TURBO_MODULE_TOTAL_ERROR_COUNT = 'turbo_module.total_error_count';\n\n/**\n * Type for {@link TURBO_MODULE_TOTAL_ERROR_COUNT} turbo_module.total_error_count\n */\nexport type TURBO_MODULE_TOTAL_ERROR_COUNT_TYPE = number;\n\n// Path: model/attributes/turbo_module/turbo_module__unique_methods.json\n\n/**\n * The number of distinct native module and method pairs called during the lifetime of the span. Only applies to React Native. `turbo_module.unique_methods`\n *\n * Attribute Value Type: `number` {@link TURBO_MODULE_UNIQUE_METHODS_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Aliases: {@link REACT_NATIVE_MODULE_CALL_DISTINCT_COUNT} `react_native.module.call.distinct_count`, {@link TURBO_MODULES_UNIQUE_METHODS} `turbo_modules.unique_methods`\n *\n * @deprecated Use {@link REACT_NATIVE_MODULE_CALL_DISTINCT_COUNT} (react_native.module.call.distinct_count) instead - Replaced by the `react_native.module.*` namespace, which also covers native module calls made over the Old Architecture bridge, and which drops the `total_` prefix and `_ms` suffix in favor of dot-separated logical grouping\n * @example 7\n */\nexport const TURBO_MODULE_UNIQUE_METHODS = 'turbo_module.unique_methods';\n\n/**\n * Type for {@link TURBO_MODULE_UNIQUE_METHODS} turbo_module.unique_methods\n */\nexport type TURBO_MODULE_UNIQUE_METHODS_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`, {@link AWS_REQUEST_URL} `aws.request.url`, {@link MESSAGING_URL} `messaging.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`, {@link AWS_REQUEST_URL} `aws.request.url`, {@link MESSAGING_URL} `messaging.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.`, {@link URL_PATH_PARAMS_KEY} `url.path.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__path__params__[key].json\n\n/**\n * Decoded parameters extracted from a URL path. Usually added by client-side routing frameworks like vue-router. `url.path.params.`\n *\n * Attribute Value Type: `string` {@link URL_PATH_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.`, {@link PARAMS_KEY} `params.`\n *\n * @deprecated Use {@link URL_PATH_PARAMETER_KEY} (url.path.parameter.) instead - This attribute is being deprecated in favor of url.path.parameter..\n * @example \"url.path.params.id='123'\"\n */\nexport const URL_PATH_PARAMS_KEY = 'url.path.params.';\n\n/**\n * Base key for {@link URL_PATH_PARAMS_KEY}. Use with a dynamic suffix, e.g. `${URL_PATH_PARAMS_KEY_BASE}.${key}`.\n *\n * @deprecated Use {@link URL_PATH_PARAMETER_KEY_BASE} (url.path.parameter) instead - This attribute is being deprecated in favor of url.path.parameter..\n */\nexport const URL_PATH_PARAMS_KEY_BASE = 'url.path.params';\n\n/**\n * Type for {@link URL_PATH_PARAMS_KEY} url.path.params.\n */\nexport type URL_PATH_PARAMS_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 URL 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 * @example \"/users/{id}\"\n * @example \"/users/:id\"\n * @example \"/about\"\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__geo__subregion.json\n\n/**\n * UN M49 subregion code of the user's location, derived from user.geo.country_code. Sub-Saharan Africa and Latin America and the Caribbean are split into their M49 intermediate regions. `user.geo.subregion`\n *\n * Attribute Value Type: `string` {@link USER_GEO_SUBREGION_TYPE}\n *\n * Apply Scrubbing: manual\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Well-defined Values:\n * - `5` - South America\n * - `11` - Western Africa\n * - `13` - Central America\n * - `14` - Eastern Africa\n * - `15` - Northern Africa\n * - `17` - Middle Africa\n * - `18` - Southern Africa\n * - `21` - Northern America\n * - `29` - Caribbean\n * - `30` - Eastern Asia\n * - `34` - Southern Asia\n * - `35` - South-Eastern Asia\n * - `39` - Southern Europe\n * - `53` - Australia and New Zealand\n * - `54` - Melanesia\n * - `57` - Micronesia\n * - `61` - Polynesia\n * - `143` - Central Asia\n * - `145` - Western Asia\n * - `151` - Eastern Europe\n * - `154` - Northern Europe\n * - `155` - Western Europe\n *\n * Aliases: {@link SENTRY_USER_GEO_SUBREGION} `sentry.user.geo.subregion`\n *\n * @example \"155\"\n * @example \"21\"\n */\nexport const USER_GEO_SUBREGION = 'user.geo.subregion';\n\n/**\n * Type for {@link USER_GEO_SUBREGION} user.geo.subregion\n */\nexport type USER_GEO_SUBREGION_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__ai__settings__context__[key].json\n\n/**\n * A runtime context property of a Vercel AI SDK call that the app included in telemetry through `telemetry.includeRuntimeContext`, with being the top-level context property name. `vercel.ai.settings.context.`\n *\n * Attribute Value Type: `string` {@link VERCEL_AI_SETTINGS_CONTEXT_KEY_TYPE}\n *\n * Apply Scrubbing: auto - Runtime context is user-defined and can contain user data\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Has Dynamic Suffix: true\n *\n * @example \"vercel.ai.settings.context.tenantId='acme'\"\n */\nexport const VERCEL_AI_SETTINGS_CONTEXT_KEY = 'vercel.ai.settings.context.';\n\n/**\n * Base key for {@link VERCEL_AI_SETTINGS_CONTEXT_KEY}. Use with a dynamic suffix, e.g. `${VERCEL_AI_SETTINGS_CONTEXT_KEY_BASE}.${key}`.\n */\nexport const VERCEL_AI_SETTINGS_CONTEXT_KEY_BASE = 'vercel.ai.settings.context';\n\n/**\n * Type for {@link VERCEL_AI_SETTINGS_CONTEXT_KEY} vercel.ai.settings.context.\n */\nexport type VERCEL_AI_SETTINGS_CONTEXT_KEY_TYPE = string;\n\n// Path: model/attributes/vercel/vercel__ai__telemetry__metadata__[key].json\n\n/**\n * Metadata passed to a Vercel AI SDK call through `experimental_telemetry.metadata`, with being the metadata key name. `vercel.ai.telemetry.metadata.`\n *\n * Attribute Value Type: `string` {@link VERCEL_AI_TELEMETRY_METADATA_KEY_TYPE}\n *\n * Apply Scrubbing: auto - Metadata is user-defined and can contain user data\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Has Dynamic Suffix: true\n *\n * @example \"vercel.ai.telemetry.metadata.tenantId='acme'\"\n */\nexport const VERCEL_AI_TELEMETRY_METADATA_KEY = 'vercel.ai.telemetry.metadata.';\n\n/**\n * Base key for {@link VERCEL_AI_TELEMETRY_METADATA_KEY}. Use with a dynamic suffix, e.g. `${VERCEL_AI_TELEMETRY_METADATA_KEY_BASE}.${key}`.\n */\nexport const VERCEL_AI_TELEMETRY_METADATA_KEY_BASE = 'vercel.ai.telemetry.metadata';\n\n/**\n * Type for {@link VERCEL_AI_TELEMETRY_METADATA_KEY} vercel.ai.telemetry.metadata.\n */\nexport type VERCEL_AI_TELEMETRY_METADATA_KEY_TYPE = string;\n\n// Path: model/attributes/vercel/vercel__ai__tool_call__context__[key].json\n\n/**\n * A tool context property of a Vercel AI SDK tool call that the app included in telemetry through `telemetry.includeToolsContext`, with being the top-level context property name. `vercel.ai.tool_call.context.`\n *\n * Attribute Value Type: `string` {@link VERCEL_AI_TOOL_CALL_CONTEXT_KEY_TYPE}\n *\n * Apply Scrubbing: auto - Tool context is user-defined and can contain user data\n *\n * Attribute defined in OTEL: No\n * Visibility: public\n *\n * Has Dynamic Suffix: true\n *\n * @example \"vercel.ai.tool_call.context.units='metric'\"\n */\nexport const VERCEL_AI_TOOL_CALL_CONTEXT_KEY = 'vercel.ai.tool_call.context.';\n\n/**\n * Base key for {@link VERCEL_AI_TOOL_CALL_CONTEXT_KEY}. Use with a dynamic suffix, e.g. `${VERCEL_AI_TOOL_CALL_CONTEXT_KEY_BASE}.${key}`.\n */\nexport const VERCEL_AI_TOOL_CALL_CONTEXT_KEY_BASE = 'vercel.ai.tool_call.context';\n\n/**\n * Type for {@link VERCEL_AI_TOOL_CALL_CONTEXT_KEY} vercel.ai.tool_call.context.\n */\nexport type VERCEL_AI_TOOL_CALL_CONTEXT_KEY_TYPE = string;\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 type DeprecationStatus = 'backfill' | 'normalize' | 'transform';\n\nexport interface DeprecationInfo {\n /** What this attribute was replaced with */\n replacement?: string;\n /** Reason for deprecation */\n reason?: string;\n /** How the attribute should be handled in the ingestion pipeline */\n status?: DeprecationStatus;\n /** Attribute transformation id to apply when status is transform */\n transformation?: 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 type SearchAliasType = 'byte' | 'currency' | 'millisecond' | 'percentage' | 'second';\n\nexport interface SearchAlias {\n /** The public name exposed in Sentry search */\n name: string;\n /** The type exposed by Sentry search. Defaults to the attribute's primary type if omitted */\n type?: SearchAliasType;\n /** Deprecated aliases still accepted in search queries */\n deprecatedAliases?: 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 /**\n * Every key this attribute's value may be readable under, preferred key first.\n *\n * All members of a family read the same set of keys. Mutually aliased attributes each head their\n * own chain, so those chains agree on membership but differ in which key they prefer. Only\n * `backfill` and `normalize` deprecations join their replacement's chain,\n * because only for those is the value rewritten onto the replacement. An attribute with any other\n * deprecation therefore has a chain of just its own names, and the first key is not guaranteed to\n * be non-deprecated — check `deprecation` if that matters.\n */\n keys: readonly string[];\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 /** Example values of the attribute */\n examples?: 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 /** How this attribute is exposed in Sentry search */\n searchAlias?: SearchAlias;\n}\n\nexport const ATTRIBUTE_TYPE: Record = {\n address: 'string',\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_id': 'string',\n 'ai.model.provider': 'string',\n 'ai.pipeline.name': 'string',\n 'ai.preamble': 'string',\n 'ai.presence_penalty': 'double',\n 'ai.prompt': 'string',\n 'ai.prompt.messages': 'string',\n 'ai.prompt_tokens.used': 'integer',\n 'ai.prompt.tools': 'string[]',\n 'ai.raw_prompting': 'boolean',\n 'ai.responses': 'string[]',\n 'ai.response_format': 'string',\n 'ai.response.id': 'string',\n 'ai.response.model': 'string',\n 'ai.response.object': 'string',\n 'ai.response.text': 'string',\n 'ai.response.timestamp': 'string',\n 'ai.response.toolCalls': 'string',\n 'ai.schema': '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.toolCall.args': 'string',\n 'ai.toolCall.result': '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.usage.tokens': 'integer',\n 'ai.values': 'string',\n 'ai.warnings': 'string[]',\n 'angular.version': 'string',\n 'anthropic.tool_result.content': '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.frozen.rate': 'double',\n 'app.vitals.frames.slow.count': 'integer',\n 'app.vitals.frames.slow.rate': 'double',\n 'app.vitals.frames.total.count': 'integer',\n 'app.vitals.stall.duration': 'double',\n 'app.vitals.stall.percentage': 'double',\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.attributes_to_get': '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.initialization_type': 'string',\n 'aws.lambda.invoked_arn': 'string',\n 'aws.lambda.invoked_function_arn': 'string',\n 'aws.lambda.remaining_time_in_millis': 'double',\n 'aws.lambda.resource_mapping.id': 'string',\n 'aws.lambda.target_function.name': 'string',\n 'aws.lambda.web.endpoint_name': 'string',\n 'aws.log.group.names': 'string[]',\n 'aws.log.stream.names': 'string[]',\n 'aws.operation_name': 'string',\n aws_region: 'string',\n 'aws.request.extended_id': 'string',\n 'aws.request_id': 'string',\n 'aws.request.id': 'string',\n 'aws.request.url': 'string',\n 'aws.s3.bucket': 'string',\n 'aws.s3.copy_source': 'string',\n 'aws.s3.delete': 'string',\n 'aws.s3.key': 'string',\n 'aws.s3.part_number': 'integer',\n 'aws.s3.upload_id': 'string',\n 'aws.secretsmanager.secret.arn': 'string',\n 'aws.secretsmanager.secret.name': 'string',\n 'aws.sns.topic.arn': 'string',\n 'aws.sqs.queue.url': 'string',\n 'aws.step_functions.activity.arn': 'string',\n 'aws.step_functions.activity.name': 'string',\n 'aws.step_functions.execution.arn': 'string',\n 'aws.step_functions.state_machine.arn': 'string',\n 'aws.step_functions.state_machine.name': 'string',\n blocked_main_thread: 'boolean',\n 'browser.bfcache.frame': 'string',\n 'browser.bfcache.not_restored_reason_count': 'integer',\n 'browser.bfcache.outcome': 'string',\n 'browser.bfcache.reason': 'string',\n 'browser.name': 'string',\n 'browser.navigation.id': 'integer',\n 'browser.navigation.type': 'string',\n 'browser.paint.type': '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.input_delay': 'double',\n 'browser.web_vital.inp.interaction_type': 'string',\n 'browser.web_vital.inp.presentation_delay': 'double',\n 'browser.web_vital.inp.processing_duration': 'double',\n 'browser.web_vital.inp.target': 'string',\n 'browser.web_vital.inp.value': 'double',\n 'browser.web_vital.lcp.element': 'string',\n 'browser.web_vital.lcp.element_render_delay': 'double',\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.resource_load_delay': 'double',\n 'browser.web_vital.lcp.resource_load_duration': 'double',\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_age': 'integer',\n 'cache.item_size': 'integer',\n 'cache.key': 'string[]',\n 'cache.operation': 'string',\n 'cache.tags': '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: '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.connection_string': 'string',\n 'db.driver.name': 'string',\n 'db.mongodb.collection': '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.params': '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 'django.function_name': 'string',\n 'django.middleware_name': '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.document.collection': 'string',\n 'faas.document.name': 'string',\n 'faas.document.operation': 'string',\n 'faas.document.time': '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.instance': 'string',\n 'faas.invocation_id': 'string',\n 'faas.invoked_name': 'string',\n 'faas.invoked_provider': 'string',\n 'faas.invoked_region': 'string',\n 'faas.max_memory': 'integer',\n 'faas.name': 'string',\n 'faas.time': 'string',\n 'faas.trigger': 'string',\n 'faas.version': 'string',\n fcp: 'double',\n 'file.path': 'string',\n 'file.size': 'integer',\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 gcp_region: '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.memory.query.text': 'string',\n 'gen_ai.memory.records': 'string',\n 'gen_ai.memory.record.count': 'integer',\n 'gen_ai.memory.record.id': 'string',\n 'gen_ai.memory.store.id': '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.prompt.variable.': '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.level': 'string',\n 'gen_ai.request.schema': '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_reason': 'string',\n 'gen_ai.response.finish_reasons': 'string',\n 'gen_ai.response.id': 'string',\n 'gen_ai.response.model': 'string',\n 'gen_ai.response.object': '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.call.result.size': 'integer',\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_creation_input_tokens': 'integer',\n 'gen_ai.usage.cache_read.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 'graphql.processing.type': 'string',\n 'graphql.source': 'string',\n 'grpc.error.bad_request.field_violations': 'string[]',\n 'grpc.error.debug_info.detail': 'string',\n 'grpc.error.debug_info.stack_entries': 'string[]',\n 'grpc.error.error_info.domain': 'string',\n 'grpc.error.error_info.metadata.': 'string',\n 'grpc.error.error_info.reason': 'string',\n 'grpc.error.precondition_failure.violations': 'string[]',\n 'grpc.error.quota_failure.violations': 'string[]',\n 'grpc.error.resource_info.description': 'string',\n 'grpc.error.resource_info.owner': 'string',\n 'grpc.error.resource_info.resource_name': 'string',\n 'grpc.error.resource_info.resource_type': 'string',\n 'grpc.error.retry_info.retry_delay_ms': 'integer',\n 'hapi.ext.type': 'string',\n 'hapi.plugin.name': 'string',\n 'hapi.type': 'string',\n hardwareConcurrency: 'string',\n 'heroku.dyno.name': 'string',\n 'heroku.error.code': 'string',\n 'heroku.error.description': 'string',\n 'heroku.logplex.drain_token': 'string',\n 'heroku.router.connect': 'double',\n 'heroku.router.request_id': 'string',\n 'heroku.router.service': 'double',\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.body.decoded_size': 'integer',\n 'http.request.body.size': 'integer',\n 'http.request.connection_end': 'double',\n 'http.request.connect_start': 'double',\n 'http.request_content_length': 'integer',\n 'http.request_content_length_uncompressed': 'integer',\n 'http.request.domain_lookup_end': 'double',\n 'http.request.domain_lookup_start': 'double',\n 'http.request.duration': 'integer',\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.decoded_size': 'integer',\n 'http.response.body.size': 'integer',\n 'http.response_content_length': 'integer',\n 'http.response_content_length_uncompressed': '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.status_text': 'string',\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.status_text': 'string',\n 'http.target': 'string',\n 'http.url': 'string',\n 'http.user_agent': 'string',\n id: 'string',\n inp: 'double',\n 'integrity.blocked_url': 'string',\n 'integrity.destination': 'string',\n 'integrity.document_url': 'string',\n 'integrity.report_only': 'boolean',\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 'langchain.chain.name': '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 'litestar.middleware_name': 'string',\n 'logger.name': 'string',\n 'mcp.auth.client.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': 'double',\n 'mcp.progress.message': 'string',\n 'mcp.progress.percentage': 'double',\n 'mcp.progress.token': 'string',\n 'mcp.progress.total': 'double',\n 'mcp.prompt.name': 'string',\n 'mcp.prompt.result.description': 'string',\n 'mcp.prompt.result..content': 'string',\n 'mcp.prompt.result..role': '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.content_type': 'string',\n 'mcp.tool.result.data_size': 'integer',\n 'mcp.tool.result.is_error': 'boolean',\n 'mcp.tool.result..content': 'string',\n 'mcp.tool.result..content_type': 'string',\n 'mcp.tool.result..data_size': 'integer',\n 'mcp.tool.result..mime_type': 'string',\n 'mcp.tool.result..name': 'string',\n 'mcp.tool.result..resource_mime_type': 'string',\n 'mcp.tool.result..resource_uri': 'string',\n 'mcp.tool.result..uri': 'string',\n 'mcp.tool.result.mime_type': 'string',\n 'mcp.tool.result.name': 'string',\n 'mcp.tool.result.resource_mime_type': 'string',\n 'mcp.tool.result.resource_uri': 'string',\n 'mcp.tool.result.uri': 'string',\n 'mcp.transport': 'string',\n 'mdc.': 'string',\n 'messaging.batch.message_count': 'integer',\n 'messaging.bullmq.flow.name': 'string',\n 'messaging.bullmq.job.attempt_finished_timestamp': 'integer',\n 'messaging.bullmq.job.bulk.names': 'string[]',\n 'messaging.bullmq.job.deduplication.key': 'string',\n 'messaging.bullmq.job.ids': 'string[]',\n 'messaging.bullmq.job.key': 'string',\n 'messaging.bullmq.job.name': 'string',\n 'messaging.bullmq.job.processed_timestamp': 'integer',\n 'messaging.bullmq.job.scheduler.id': 'string',\n 'messaging.bullmq.job.state': 'string',\n 'messaging.bullmq.job.type': 'string',\n 'messaging.bullmq.queue.clean.count': 'integer',\n 'messaging.bullmq.queue.clean.limit': 'integer',\n 'messaging.bullmq.queue.drain.delay': 'boolean',\n 'messaging.bullmq.queue.event.max_length': 'integer',\n 'messaging.bullmq.queue.grace': 'integer',\n 'messaging.bullmq.queue.jobs.state': 'string',\n 'messaging.bullmq.queue.rate_limit': 'integer',\n 'messaging.bullmq.worker.do_not_wait_active': 'boolean',\n 'messaging.bullmq.worker.force_close': 'boolean',\n 'messaging.bullmq.worker.jobs_to_extend_locks': 'string[]',\n 'messaging.bullmq.worker.name': 'string',\n 'messaging.bullmq.worker.rate_limit': 'integer',\n 'messaging.bullmq.worker.stalled_jobs': 'string[]',\n 'messaging.client.id': 'string',\n 'messaging.conversation_id': 'string',\n 'messaging.destination': 'string',\n 'messaging.destination.connection': 'string',\n 'messaging.destination_kind': 'string',\n 'messaging.destination.name': 'string',\n 'messaging.destination.partition.id': 'string',\n 'messaging.kafka.message.key': 'string',\n 'messaging.kafka.message.tombstone': 'boolean',\n 'messaging.kafka.offset': 'integer',\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_id': 'string',\n 'messaging.message.receive.latency': 'integer',\n 'messaging.message.retry.count': 'integer',\n 'messaging.operation': 'string',\n 'messaging.operation.name': 'string',\n 'messaging.operation.type': 'string',\n 'messaging.protocol': 'string',\n 'messaging.protocol_version': 'string',\n 'messaging.rabbitmq.destination.routing_key': 'string',\n 'messaging.rabbitmq.routing_key': 'string',\n 'messaging.system': 'string',\n 'messaging.url': '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_fraction': 'double',\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 'page.server_rendering.age': 'integer',\n 'page.server_rendering.type': 'string',\n 'params.': 'string',\n 'performance.activationStart': 'double',\n 'performance.timeOrigin': 'double',\n port: 'integer',\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.elixir.memory.type': 'string',\n 'process.runtime.elixir.run_queue.type': 'string',\n 'process.runtime.engine.name': 'string',\n 'process.runtime.engine.version': 'string',\n 'process.runtime.name': 'string',\n 'process.runtime.version': 'string',\n profile_id: 'string',\n query: 'string',\n 'query.': 'string',\n 'react_native.architecture': 'string',\n 'react_native.module.call.count': 'integer',\n 'react_native.module.call.distinct_count': 'integer',\n 'react_native.module.duration.max': 'double',\n 'react_native.module.duration.total': 'double',\n 'react_native.module.error.count': 'integer',\n 'react_native.module.kind': 'string',\n 'react_native.module.method': 'string',\n 'react_native.module.name': 'string',\n 'react_native.module.top.duration': 'double',\n 'react_native.module.top.name': 'string',\n 'react.version': 'string',\n 'redis.command': 'string',\n 'redis.key': 'string',\n release: 'string',\n 'remix.action_form_data.': 'string',\n replayId: '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 'router.navigation.origin': 'string',\n 'router.navigation.route.id': 'string',\n 'router.navigation.type': '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.event.serialized_breadcrumbs': 'string',\n 'sentry.event.serialized_contexts': 'string',\n 'sentry.event.serialized_extra': 'string',\n 'sentry.event.serialized_meta': 'string',\n 'sentry.exclusive_time': 'double',\n 'sentry.frames.frozen': 'integer',\n 'sentry.frames.slow': 'integer',\n 'sentry.frames.total': 'integer',\n 'sentry.graphql.operation': 'string',\n 'sentry.group': 'string',\n 'sentry.http.prefetch': 'boolean',\n 'sentry.idle_span_finish_reason': 'string',\n 'sentry.is_localhost': 'boolean',\n 'sentry.is_remote': 'boolean',\n 'sentry.kind': 'string',\n 'sentry.link.type': '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.pageload.span_id': 'string',\n 'sentry.platform': 'string',\n 'sentry.profiler_id': 'string',\n 'sentry.profile_id': 'string',\n 'sentry.relay.ingress': 'string',\n 'sentry.relay.pipeline': '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.segment.name.source': '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': '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.geo.subregion': 'string',\n 'sentry.user.id': 'string',\n 'sentry.user.ip': 'string',\n 'sentry.user.username': 'string',\n 'server.address': 'string',\n 'server.ext.type': '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 'starlette.middleware_name': 'string',\n 'starlite.middleware_name': 'string',\n 'state.type': 'string',\n 'subprocess.pid': 'integer',\n 'sveltekit.load.environment': 'string',\n 'sveltekit.load.node_id': 'string',\n 'sveltekit.load.node_type': 'string',\n 'sveltekit.tracing.original_name': '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 'tls.protocol.name': 'string',\n 'tls.protocol.version': 'string',\n transaction: 'string',\n 'trpc.procedure_path': 'string',\n 'trpc.procedure_type': 'string',\n ttfb: 'double',\n 'ttfb.requestTime': 'double',\n 'turbo_modules.total_call_count': 'integer',\n 'turbo_modules.total_duration_ms': 'double',\n 'turbo_modules.total_error_count': 'integer',\n 'turbo_modules.unique_methods': 'integer',\n 'turbo_module.arch': 'string',\n 'turbo_module.method': 'string',\n 'turbo_module.name': 'string',\n 'turbo_module.top_module': 'string',\n 'turbo_module.top_module_duration_ms': 'double',\n 'turbo_module.total_call_count': 'integer',\n 'turbo_module.total_duration_ms': 'double',\n 'turbo_module.total_error_count': 'integer',\n 'turbo_module.unique_methods': 'integer',\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.path.params.': '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.geo.subregion': 'string',\n 'user.hash': 'string',\n 'user.id': 'string',\n 'user.ip_address': 'string',\n 'user.name': 'string',\n 'user.roles': 'string[]',\n 'vercel.ai.settings.context.': 'string',\n 'vercel.ai.telemetry.metadata.': 'string',\n 'vercel.ai.tool_call.context.': '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 ADDRESS\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_ID\n | typeof AI_MODEL_PROVIDER\n | typeof AI_PIPELINE_NAME\n | typeof AI_PREAMBLE\n | typeof AI_PRESENCE_PENALTY\n | typeof AI_PROMPT\n | typeof AI_PROMPT_MESSAGES\n | typeof AI_PROMPT_TOKENS_USED\n | typeof AI_PROMPT_TOOLS\n | typeof AI_RAW_PROMPTING\n | typeof AI_RESPONSES\n | typeof AI_RESPONSE_FORMAT\n | typeof AI_RESPONSE_ID\n | typeof AI_RESPONSE_MODEL\n | typeof AI_RESPONSE_OBJECT\n | typeof AI_RESPONSE_TEXT\n | typeof AI_RESPONSE_TIMESTAMP\n | typeof AI_RESPONSE_TOOLCALLS\n | typeof AI_SCHEMA\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_TOOLCALL_ARGS\n | typeof AI_TOOLCALL_RESULT\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_USAGE_TOKENS\n | typeof AI_VALUES\n | typeof AI_WARNINGS\n | typeof ANGULAR_VERSION\n | typeof ANTHROPIC_TOOL_RESULT_CONTENT\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_FROZEN_RATE\n | typeof APP_VITALS_FRAMES_SLOW_COUNT\n | typeof APP_VITALS_FRAMES_SLOW_RATE\n | typeof APP_VITALS_FRAMES_TOTAL_COUNT\n | typeof APP_VITALS_STALL_DURATION\n | typeof APP_VITALS_STALL_PERCENTAGE\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_ATTRIBUTES_TO_GET\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_INITIALIZATION_TYPE\n | typeof AWS_LAMBDA_INVOKED_ARN\n | typeof AWS_LAMBDA_INVOKED_FUNCTION_ARN\n | typeof AWS_LAMBDA_REMAINING_TIME_IN_MILLIS\n | typeof AWS_LAMBDA_RESOURCE_MAPPING_ID\n | typeof AWS_LAMBDA_TARGET_FUNCTION_NAME\n | typeof AWS_LAMBDA_WEB_ENDPOINT_NAME\n | typeof AWS_LOG_GROUP_NAMES\n | typeof AWS_LOG_STREAM_NAMES\n | typeof AWS_OPERATION_NAME\n | typeof AWS_REGION\n | typeof AWS_REQUEST_EXTENDED_ID\n | typeof AWS_REQUEST_ID\n | typeof _AWS_REQUEST_ID\n | typeof AWS_REQUEST_URL\n | typeof AWS_S3_BUCKET\n | typeof AWS_S3_COPY_SOURCE\n | typeof AWS_S3_DELETE\n | typeof AWS_S3_KEY\n | typeof AWS_S3_PART_NUMBER\n | typeof AWS_S3_UPLOAD_ID\n | typeof AWS_SECRETSMANAGER_SECRET_ARN\n | typeof AWS_SECRETSMANAGER_SECRET_NAME\n | typeof AWS_SNS_TOPIC_ARN\n | typeof AWS_SQS_QUEUE_URL\n | typeof AWS_STEP_FUNCTIONS_ACTIVITY_ARN\n | typeof AWS_STEP_FUNCTIONS_ACTIVITY_NAME\n | typeof AWS_STEP_FUNCTIONS_EXECUTION_ARN\n | typeof AWS_STEP_FUNCTIONS_STATE_MACHINE_ARN\n | typeof AWS_STEP_FUNCTIONS_STATE_MACHINE_NAME\n | typeof BLOCKED_MAIN_THREAD\n | typeof BROWSER_BFCACHE_FRAME\n | typeof BROWSER_BFCACHE_NOT_RESTORED_REASON_COUNT\n | typeof BROWSER_BFCACHE_OUTCOME\n | typeof BROWSER_BFCACHE_REASON\n | typeof BROWSER_NAME\n | typeof BROWSER_NAVIGATION_ID\n | typeof BROWSER_NAVIGATION_TYPE\n | typeof BROWSER_PAINT_TYPE\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_INPUT_DELAY\n | typeof BROWSER_WEB_VITAL_INP_INTERACTION_TYPE\n | typeof BROWSER_WEB_VITAL_INP_PRESENTATION_DELAY\n | typeof BROWSER_WEB_VITAL_INP_PROCESSING_DURATION\n | typeof BROWSER_WEB_VITAL_INP_TARGET\n | typeof BROWSER_WEB_VITAL_INP_VALUE\n | typeof BROWSER_WEB_VITAL_LCP_ELEMENT\n | typeof BROWSER_WEB_VITAL_LCP_ELEMENT_RENDER_DELAY\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_RESOURCE_LOAD_DELAY\n | typeof BROWSER_WEB_VITAL_LCP_RESOURCE_LOAD_DURATION\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_AGE\n | typeof CACHE_ITEM_SIZE\n | typeof CACHE_KEY\n | typeof CACHE_OPERATION\n | typeof CACHE_TAGS\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\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_CONNECTION_STRING\n | typeof DB_DRIVER_NAME\n | typeof DB_MONGODB_COLLECTION\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_PARAMS\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 DJANGO_FUNCTION_NAME\n | typeof DJANGO_MIDDLEWARE_NAME\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_DOCUMENT_COLLECTION\n | typeof FAAS_DOCUMENT_NAME\n | typeof FAAS_DOCUMENT_OPERATION\n | typeof FAAS_DOCUMENT_TIME\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_INSTANCE\n | typeof FAAS_INVOCATION_ID\n | typeof FAAS_INVOKED_NAME\n | typeof FAAS_INVOKED_PROVIDER\n | typeof FAAS_INVOKED_REGION\n | typeof FAAS_MAX_MEMORY\n | typeof FAAS_NAME\n | typeof FAAS_TIME\n | typeof FAAS_TRIGGER\n | typeof FAAS_VERSION\n | typeof FCP\n | typeof FILE_PATH\n | typeof FILE_SIZE\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 GCP_REGION\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_MEMORY_QUERY_TEXT\n | typeof GEN_AI_MEMORY_RECORDS\n | typeof GEN_AI_MEMORY_RECORD_COUNT\n | typeof GEN_AI_MEMORY_RECORD_ID\n | typeof GEN_AI_MEMORY_STORE_ID\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_PROMPT_VARIABLE_KEY\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_LEVEL\n | typeof GEN_AI_REQUEST_SCHEMA\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_REASON\n | typeof GEN_AI_RESPONSE_FINISH_REASONS\n | typeof GEN_AI_RESPONSE_ID\n | typeof GEN_AI_RESPONSE_MODEL\n | typeof GEN_AI_RESPONSE_OBJECT\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_CALL_RESULT_SIZE\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_CREATION_INPUT_TOKENS\n | typeof GEN_AI_USAGE_CACHE_READ_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 GRAPHQL_PROCESSING_TYPE\n | typeof GRAPHQL_SOURCE\n | typeof GRPC_ERROR_BAD_REQUEST_FIELD_VIOLATIONS\n | typeof GRPC_ERROR_DEBUG_INFO_DETAIL\n | typeof GRPC_ERROR_DEBUG_INFO_STACK_ENTRIES\n | typeof GRPC_ERROR_ERROR_INFO_DOMAIN\n | typeof GRPC_ERROR_ERROR_INFO_METADATA_KEY\n | typeof GRPC_ERROR_ERROR_INFO_REASON\n | typeof GRPC_ERROR_PRECONDITION_FAILURE_VIOLATIONS\n | typeof GRPC_ERROR_QUOTA_FAILURE_VIOLATIONS\n | typeof GRPC_ERROR_RESOURCE_INFO_DESCRIPTION\n | typeof GRPC_ERROR_RESOURCE_INFO_OWNER\n | typeof GRPC_ERROR_RESOURCE_INFO_RESOURCE_NAME\n | typeof GRPC_ERROR_RESOURCE_INFO_RESOURCE_TYPE\n | typeof GRPC_ERROR_RETRY_INFO_RETRY_DELAY_MS\n | typeof HAPI_EXT_TYPE\n | typeof HAPI_PLUGIN_NAME\n | typeof HAPI_TYPE\n | typeof HARDWARECONCURRENCY\n | typeof HEROKU_DYNO_NAME\n | typeof HEROKU_ERROR_CODE\n | typeof HEROKU_ERROR_DESCRIPTION\n | typeof HEROKU_LOGPLEX_DRAIN_TOKEN\n | typeof HEROKU_ROUTER_CONNECT\n | typeof HEROKU_ROUTER_REQUEST_ID\n | typeof HEROKU_ROUTER_SERVICE\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_BODY_DECODED_SIZE\n | typeof HTTP_REQUEST_BODY_SIZE\n | typeof HTTP_REQUEST_CONNECTION_END\n | typeof HTTP_REQUEST_CONNECT_START\n | typeof HTTP_REQUEST_CONTENT_LENGTH\n | typeof HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED\n | typeof HTTP_REQUEST_DOMAIN_LOOKUP_END\n | typeof HTTP_REQUEST_DOMAIN_LOOKUP_START\n | typeof HTTP_REQUEST_DURATION\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_DECODED_SIZE\n | typeof HTTP_RESPONSE_BODY_SIZE\n | typeof HTTP_RESPONSE_CONTENT_LENGTH\n | typeof HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED\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_STATUS_TEXT\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_STATUS_TEXT\n | typeof HTTP_TARGET\n | typeof HTTP_URL\n | typeof HTTP_USER_AGENT\n | typeof ID\n | typeof INP\n | typeof INTEGRITY_BLOCKED_URL\n | typeof INTEGRITY_DESTINATION\n | typeof INTEGRITY_DOCUMENT_URL\n | typeof INTEGRITY_REPORT_ONLY\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 LANGCHAIN_CHAIN_NAME\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 LITESTAR_MIDDLEWARE_NAME\n | typeof LOGGER_NAME\n | typeof MCP_AUTH_CLIENT_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_KEY_CONTENT\n | typeof MCP_PROMPT_RESULT_KEY_ROLE\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_CONTENT_TYPE\n | typeof MCP_TOOL_RESULT_DATA_SIZE\n | typeof MCP_TOOL_RESULT_IS_ERROR\n | typeof MCP_TOOL_RESULT_KEY_CONTENT\n | typeof MCP_TOOL_RESULT_KEY_CONTENT_TYPE\n | typeof MCP_TOOL_RESULT_KEY_DATA_SIZE\n | typeof MCP_TOOL_RESULT_KEY_MIME_TYPE\n | typeof MCP_TOOL_RESULT_KEY_NAME\n | typeof MCP_TOOL_RESULT_KEY_RESOURCE_MIME_TYPE\n | typeof MCP_TOOL_RESULT_KEY_RESOURCE_URI\n | typeof MCP_TOOL_RESULT_KEY_URI\n | typeof MCP_TOOL_RESULT_MIME_TYPE\n | typeof MCP_TOOL_RESULT_NAME\n | typeof MCP_TOOL_RESULT_RESOURCE_MIME_TYPE\n | typeof MCP_TOOL_RESULT_RESOURCE_URI\n | typeof MCP_TOOL_RESULT_URI\n | typeof MCP_TRANSPORT\n | typeof MDC_KEY\n | typeof MESSAGING_BATCH_MESSAGE_COUNT\n | typeof MESSAGING_BULLMQ_FLOW_NAME\n | typeof MESSAGING_BULLMQ_JOB_ATTEMPT_FINISHED_TIMESTAMP\n | typeof MESSAGING_BULLMQ_JOB_BULK_NAMES\n | typeof MESSAGING_BULLMQ_JOB_DEDUPLICATION_KEY\n | typeof MESSAGING_BULLMQ_JOB_IDS\n | typeof MESSAGING_BULLMQ_JOB_KEY\n | typeof MESSAGING_BULLMQ_JOB_NAME\n | typeof MESSAGING_BULLMQ_JOB_PROCESSED_TIMESTAMP\n | typeof MESSAGING_BULLMQ_JOB_SCHEDULER_ID\n | typeof MESSAGING_BULLMQ_JOB_STATE\n | typeof MESSAGING_BULLMQ_JOB_TYPE\n | typeof MESSAGING_BULLMQ_QUEUE_CLEAN_COUNT\n | typeof MESSAGING_BULLMQ_QUEUE_CLEAN_LIMIT\n | typeof MESSAGING_BULLMQ_QUEUE_DRAIN_DELAY\n | typeof MESSAGING_BULLMQ_QUEUE_EVENT_MAX_LENGTH\n | typeof MESSAGING_BULLMQ_QUEUE_GRACE\n | typeof MESSAGING_BULLMQ_QUEUE_JOBS_STATE\n | typeof MESSAGING_BULLMQ_QUEUE_RATE_LIMIT\n | typeof MESSAGING_BULLMQ_WORKER_DO_NOT_WAIT_ACTIVE\n | typeof MESSAGING_BULLMQ_WORKER_FORCE_CLOSE\n | typeof MESSAGING_BULLMQ_WORKER_JOBS_TO_EXTEND_LOCKS\n | typeof MESSAGING_BULLMQ_WORKER_NAME\n | typeof MESSAGING_BULLMQ_WORKER_RATE_LIMIT\n | typeof MESSAGING_BULLMQ_WORKER_STALLED_JOBS\n | typeof MESSAGING_CLIENT_ID\n | typeof MESSAGING_CONVERSATION_ID\n | typeof MESSAGING_DESTINATION\n | typeof MESSAGING_DESTINATION_CONNECTION\n | typeof MESSAGING_DESTINATION_KIND\n | typeof MESSAGING_DESTINATION_NAME\n | typeof MESSAGING_DESTINATION_PARTITION_ID\n | typeof MESSAGING_KAFKA_MESSAGE_KEY\n | typeof MESSAGING_KAFKA_MESSAGE_TOMBSTONE\n | typeof MESSAGING_KAFKA_OFFSET\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_ID\n | typeof MESSAGING_MESSAGE_RECEIVE_LATENCY\n | typeof MESSAGING_MESSAGE_RETRY_COUNT\n | typeof MESSAGING_OPERATION\n | typeof MESSAGING_OPERATION_NAME\n | typeof MESSAGING_OPERATION_TYPE\n | typeof MESSAGING_PROTOCOL\n | typeof MESSAGING_PROTOCOL_VERSION\n | typeof MESSAGING_RABBITMQ_DESTINATION_ROUTING_KEY\n | typeof MESSAGING_RABBITMQ_ROUTING_KEY\n | typeof MESSAGING_SYSTEM\n | typeof MESSAGING_URL\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_FRACTION\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 PAGE_SERVER_RENDERING_AGE\n | typeof PAGE_SERVER_RENDERING_TYPE\n | typeof PARAMS_KEY\n | typeof PERFORMANCE_ACTIVATIONSTART\n | typeof PERFORMANCE_TIMEORIGIN\n | typeof PORT\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_ELIXIR_MEMORY_TYPE\n | typeof PROCESS_RUNTIME_ELIXIR_RUN_QUEUE_TYPE\n | typeof PROCESS_RUNTIME_ENGINE_NAME\n | typeof PROCESS_RUNTIME_ENGINE_VERSION\n | typeof PROCESS_RUNTIME_NAME\n | typeof PROCESS_RUNTIME_VERSION\n | typeof PROFILE_ID\n | typeof QUERY\n | typeof QUERY_KEY\n | typeof REACT_NATIVE_ARCHITECTURE\n | typeof REACT_NATIVE_MODULE_CALL_COUNT\n | typeof REACT_NATIVE_MODULE_CALL_DISTINCT_COUNT\n | typeof REACT_NATIVE_MODULE_DURATION_MAX\n | typeof REACT_NATIVE_MODULE_DURATION_TOTAL\n | typeof REACT_NATIVE_MODULE_ERROR_COUNT\n | typeof REACT_NATIVE_MODULE_KIND\n | typeof REACT_NATIVE_MODULE_METHOD\n | typeof REACT_NATIVE_MODULE_NAME\n | typeof REACT_NATIVE_MODULE_TOP_DURATION\n | typeof REACT_NATIVE_MODULE_TOP_NAME\n | typeof REACT_VERSION\n | typeof REDIS_COMMAND\n | typeof REDIS_KEY\n | typeof RELEASE\n | typeof REMIX_ACTION_FORM_DATA_KEY\n | typeof REPLAYID\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 ROUTER_NAVIGATION_ORIGIN\n | typeof ROUTER_NAVIGATION_ROUTE_ID\n | typeof ROUTER_NAVIGATION_TYPE\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_EVENT_SERIALIZED_BREADCRUMBS\n | typeof SENTRY_EVENT_SERIALIZED_CONTEXTS\n | typeof SENTRY_EVENT_SERIALIZED_EXTRA\n | typeof SENTRY_EVENT_SERIALIZED_META\n | typeof SENTRY_EXCLUSIVE_TIME\n | typeof SENTRY_FRAMES_FROZEN\n | typeof SENTRY_FRAMES_SLOW\n | typeof SENTRY_FRAMES_TOTAL\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_LOCALHOST\n | typeof SENTRY_IS_REMOTE\n | typeof SENTRY_KIND\n | typeof SENTRY_LINK_TYPE\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_PAGELOAD_SPAN_ID\n | typeof SENTRY_PLATFORM\n | typeof SENTRY_PROFILER_ID\n | typeof SENTRY_PROFILE_ID\n | typeof SENTRY_RELAY_INGRESS\n | typeof SENTRY_RELAY_PIPELINE\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_SEGMENT_NAME_SOURCE\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\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_GEO_SUBREGION\n | typeof SENTRY_USER_ID\n | typeof SENTRY_USER_IP\n | typeof SENTRY_USER_USERNAME\n | typeof SERVER_ADDRESS\n | typeof SERVER_EXT_TYPE\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 STARLETTE_MIDDLEWARE_NAME\n | typeof STARLITE_MIDDLEWARE_NAME\n | typeof STATE_TYPE\n | typeof SUBPROCESS_PID\n | typeof SVELTEKIT_LOAD_ENVIRONMENT\n | typeof SVELTEKIT_LOAD_NODE_ID\n | typeof SVELTEKIT_LOAD_NODE_TYPE\n | typeof SVELTEKIT_TRACING_ORIGINAL_NAME\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 TLS_PROTOCOL_NAME\n | typeof TLS_PROTOCOL_VERSION\n | typeof TRANSACTION\n | typeof TRPC_PROCEDURE_PATH\n | typeof TRPC_PROCEDURE_TYPE\n | typeof TTFB\n | typeof TTFB_REQUESTTIME\n | typeof TURBO_MODULES_TOTAL_CALL_COUNT\n | typeof TURBO_MODULES_TOTAL_DURATION_MS\n | typeof TURBO_MODULES_TOTAL_ERROR_COUNT\n | typeof TURBO_MODULES_UNIQUE_METHODS\n | typeof TURBO_MODULE_ARCH\n | typeof TURBO_MODULE_METHOD\n | typeof TURBO_MODULE_NAME\n | typeof TURBO_MODULE_TOP_MODULE\n | typeof TURBO_MODULE_TOP_MODULE_DURATION_MS\n | typeof TURBO_MODULE_TOTAL_CALL_COUNT\n | typeof TURBO_MODULE_TOTAL_DURATION_MS\n | typeof TURBO_MODULE_TOTAL_ERROR_COUNT\n | typeof TURBO_MODULE_UNIQUE_METHODS\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_PATH_PARAMS_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_GEO_SUBREGION\n | typeof USER_HASH\n | typeof USER_ID\n | typeof USER_IP_ADDRESS\n | typeof USER_NAME\n | typeof USER_ROLES\n | typeof VERCEL_AI_SETTINGS_CONTEXT_KEY\n | typeof VERCEL_AI_TELEMETRY_METADATA_KEY\n | typeof VERCEL_AI_TOOL_CALL_CONTEXT_KEY\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 address: {\n brief: 'The destination hostname or IP address for a TCP connection.',\n type: 'string',\n keys: ['server.address', 'address', 'http.server_name', 'net.host.name', 'server_name'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'example.com',\n examples: ['example.com'],\n deprecation: {\n replacement: 'server.address',\n reason: 'Old namespace-less attribute, to be replaced with server.address for span-first future',\n status: 'backfill',\n },\n aliases: ['server.address', 'http.server_name', 'net.host.name', 'http.host', 'server_name', 'net.peer.name'],\n changelog: [\n { version: '0.24.0', prs: [647], description: 'Added server_name as an alias' },\n { version: '0.21.0', prs: [588, 602], description: 'Added net.peer.name as an alias' },\n { version: '0.19.0', prs: [534], description: 'Added address attribute' },\n ],\n },\n 'ai.citations': {\n brief: 'References or sources cited by the AI model in its response.',\n type: 'string[]',\n keys: ['ai.citations'],\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 keys: ['gen_ai.usage.output_tokens', 'ai.completion_tokens.used', 'gen_ai.usage.completion_tokens'],\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 status: 'backfill',\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 keys: ['ai.documents'],\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 keys: ['gen_ai.response.finish_reasons', 'ai.finish_reason', 'gen_ai.response.finish_reason'],\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 status: 'backfill',\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 keys: ['gen_ai.request.frequency_penalty', 'ai.frequency_penalty'],\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 status: 'backfill',\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 keys: ['gen_ai.tool.name', 'ai.function_call', 'mcp.tool.name'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'function_name',\n deprecation: {\n replacement: 'gen_ai.tool.name',\n status: 'backfill',\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 keys: ['gen_ai.response.id', 'ai.generation_id', 'ai.response.id'],\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 status: 'backfill',\n },\n aliases: ['gen_ai.response.id', 'ai.response.id'],\n changelog: [\n { version: '0.21.0', prs: [583], description: 'Added ai.response.id as an alias' },\n { version: '0.1.0', prs: [55, 57, 61, 108, 127] },\n ],\n },\n 'ai.input_messages': {\n brief: 'The input messages sent to the model',\n type: 'string',\n keys: [\n 'gen_ai.input.messages',\n 'ai.input_messages',\n 'ai.prompt',\n 'ai.prompt.messages',\n 'ai.texts',\n 'gen_ai.prompt',\n 'gen_ai.request.messages',\n ],\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 status: 'backfill',\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 keys: ['ai.is_search_required'],\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 keys: ['ai.metadata'],\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 id of the model used by the Vercel AI SDK.',\n type: 'string',\n keys: ['gen_ai.request.model', 'ai.model.id', 'ai.model_id'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'gpt-4o',\n examples: ['gpt-4o'],\n deprecation: {\n replacement: 'gen_ai.request.model',\n reason: 'This attribute is being deprecated in favor of gen_ai.request.model.',\n status: 'backfill',\n },\n aliases: ['gen_ai.request.model', 'ai.model_id'],\n changelog: [{ version: '0.21.0', prs: [583], description: 'Added ai.model.id attribute' }],\n },\n 'ai.model_id': {\n brief: 'The vendor-specific ID of the model used.',\n type: 'string',\n keys: ['gen_ai.request.model', 'ai.model.id', 'ai.model_id'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'gpt-4',\n deprecation: {\n replacement: 'gen_ai.request.model',\n status: 'backfill',\n },\n aliases: ['gen_ai.request.model', 'ai.model.id'],\n changelog: [\n { version: '0.21.0', prs: [583], description: 'Added ai.model.id as an alias' },\n { version: '0.1.0', prs: [57, 61, 127] },\n { version: '0.0.0' },\n ],\n },\n 'ai.model.provider': {\n brief: 'The provider of the model.',\n type: 'string',\n keys: ['gen_ai.provider.name', 'ai.model.provider', 'gen_ai.system'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'openai',\n deprecation: {\n replacement: 'gen_ai.provider.name',\n status: 'backfill',\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 keys: ['gen_ai.pipeline.name', 'ai.pipeline.name', 'langchain.chain.name'],\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 status: 'backfill',\n },\n aliases: ['gen_ai.pipeline.name', 'langchain.chain.name'],\n changelog: [\n { version: '0.22.0', prs: [599], description: 'Added langchain.chain.name as an alias' },\n { version: '0.1.0', prs: [53, 76, 108, 127] },\n ],\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 keys: ['gen_ai.system_instructions', 'ai.preamble', 'gen_ai.system.message'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'You are now a clown.',\n deprecation: {\n replacement: 'gen_ai.system_instructions',\n status: 'backfill',\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 keys: ['gen_ai.request.presence_penalty', 'ai.presence_penalty'],\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 status: 'backfill',\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': {\n brief: 'The prompt passed to the Vercel AI SDK, as a stringified object.',\n type: 'string',\n keys: [\n 'gen_ai.input.messages',\n 'ai.input_messages',\n 'ai.prompt',\n 'ai.prompt.messages',\n 'ai.texts',\n 'gen_ai.prompt',\n 'gen_ai.request.messages',\n ],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: '{\"prompt\":\"What is the weather in Paris?\"}',\n examples: ['{\"prompt\":\"What is the weather in Paris?\"}'],\n deprecation: {\n replacement: 'gen_ai.input.messages',\n reason: 'This attribute is being deprecated in favor of gen_ai.input.messages.',\n status: 'backfill',\n },\n aliases: ['gen_ai.input.messages', 'ai.texts', 'ai.prompt.messages', 'gen_ai.prompt'],\n changelog: [{ version: '0.21.0', prs: [583], description: 'Added ai.prompt attribute' }],\n },\n 'ai.prompt.messages': {\n brief: 'The input messages sent to the AI model.',\n type: 'string',\n keys: [\n 'gen_ai.input.messages',\n 'ai.input_messages',\n 'ai.prompt',\n 'ai.prompt.messages',\n 'ai.texts',\n 'gen_ai.prompt',\n 'gen_ai.request.messages',\n ],\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 status: 'backfill',\n },\n aliases: ['gen_ai.input.messages', 'ai.texts', 'gen_ai.prompt', 'ai.prompt'],\n changelog: [\n { version: '0.21.0', prs: [583], description: 'Added ai.prompt as an alias' },\n { version: '0.19.0', prs: [498], description: 'Added ai.prompt.messages attribute' },\n ],\n },\n 'ai.prompt_tokens.used': {\n brief: 'The number of tokens used to process just the prompt.',\n type: 'integer',\n keys: ['gen_ai.usage.input_tokens', 'ai.prompt_tokens.used', 'gen_ai.usage.prompt_tokens'],\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 status: 'backfill',\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.prompt.tools': {\n brief: 'The tools made available to the model, as an array of stringified tool definitions.',\n type: 'string[]',\n keys: ['gen_ai.tool.definitions', 'ai.prompt.tools', 'ai.tools', 'gen_ai.request.available_tools'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: ['{\"type\":\"function\",\"name\":\"get_weather\"}'],\n examples: [['{\"type\":\"function\",\"name\":\"get_weather\"}']],\n deprecation: {\n replacement: 'gen_ai.tool.definitions',\n reason: 'This attribute is being deprecated in favor of gen_ai.tool.definitions.',\n status: 'backfill',\n },\n changelog: [{ version: '0.21.0', prs: [583], description: 'Added ai.prompt.tools attribute' }],\n },\n 'ai.raw_prompting': {\n brief: 'When enabled, the user’s prompt will be sent to the model without any pre-processing.',\n type: 'boolean',\n keys: ['ai.raw_prompting'],\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 keys: [\n 'gen_ai.output.messages',\n 'ai.response.text',\n 'ai.response.toolCalls',\n 'ai.responses',\n 'ai.tool_calls',\n 'gen_ai.response.text',\n 'gen_ai.response.tool_calls',\n ],\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 status: 'backfill',\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 keys: ['ai.response_format'],\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.response.id': {\n brief: 'The id of the response returned by the model.',\n type: 'string',\n keys: ['gen_ai.response.id', 'ai.generation_id', 'ai.response.id'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'chatcmpl-BuKJgVSKAMTUYbBSjHTMUuNGKzOPY',\n examples: ['chatcmpl-BuKJgVSKAMTUYbBSjHTMUuNGKzOPY'],\n deprecation: {\n replacement: 'gen_ai.response.id',\n reason: 'This attribute is being deprecated in favor of gen_ai.response.id.',\n status: 'backfill',\n },\n aliases: ['gen_ai.response.id', 'ai.generation_id'],\n changelog: [{ version: '0.21.0', prs: [583], description: 'Added ai.response.id attribute' }],\n },\n 'ai.response.model': {\n brief: 'The id of the model that produced the response.',\n type: 'string',\n keys: ['gen_ai.response.model', 'ai.response.model'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'gpt-4o-2024-08-06',\n examples: ['gpt-4o-2024-08-06'],\n deprecation: {\n replacement: 'gen_ai.response.model',\n reason: 'This attribute is being deprecated in favor of gen_ai.response.model.',\n status: 'backfill',\n },\n aliases: ['gen_ai.response.model'],\n changelog: [{ version: '0.21.0', prs: [583], description: 'Added ai.response.model attribute' }],\n },\n 'ai.response.object': {\n brief: 'The type of the object returned by the model.',\n type: 'string',\n keys: ['ai.response.object'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'chat.completion',\n examples: ['chat.completion'],\n deprecation: {\n reason:\n 'This attribute is deprecated. The Sentry conventions have no replacement for the raw Vercel AI response object type.',\n },\n changelog: [{ version: '0.21.0', prs: [583], description: 'Added ai.response.object attribute' }],\n },\n 'ai.response.text': {\n brief: 'The text response from the AI model.',\n type: 'string',\n keys: [\n 'gen_ai.output.messages',\n 'ai.response.text',\n 'ai.response.toolCalls',\n 'ai.responses',\n 'ai.tool_calls',\n 'gen_ai.response.text',\n 'gen_ai.response.tool_calls',\n ],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'The weather in Paris is currently rainy.',\n deprecation: {\n replacement: 'gen_ai.output.messages',\n status: 'backfill',\n },\n aliases: ['gen_ai.output.messages', 'ai.response.toolCalls'],\n changelog: [{ version: '0.19.0', prs: [498], description: 'Added ai.response.text attribute' }],\n },\n 'ai.response.timestamp': {\n brief: 'The ISO 8601 timestamp at which the response was produced.',\n type: 'string',\n keys: ['ai.response.timestamp'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: '2026-02-19T15:32:11.000Z',\n examples: ['2026-02-19T15:32:11.000Z'],\n deprecation: {\n reason: 'This attribute is deprecated. The span start and end timestamps carry the same information.',\n },\n changelog: [{ version: '0.21.0', prs: [583], description: 'Added ai.response.timestamp attribute' }],\n },\n 'ai.response.toolCalls': {\n brief: 'The tool calls in the AI model response.',\n type: 'string',\n keys: [\n 'gen_ai.output.messages',\n 'ai.response.text',\n 'ai.response.toolCalls',\n 'ai.responses',\n 'ai.tool_calls',\n 'gen_ai.response.text',\n 'gen_ai.response.tool_calls',\n ],\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 status: 'backfill',\n },\n aliases: ['gen_ai.output.messages', 'ai.response.text'],\n changelog: [{ version: '0.19.0', prs: [498], description: 'Added ai.response.toolCalls attribute' }],\n },\n 'ai.schema': {\n brief: 'The stringified JSON schema the model output must conform to.',\n type: 'string',\n keys: ['ai.schema'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: '{\"type\":\"object\",\"properties\":{\"city\":{\"type\":\"string\"}}}',\n examples: ['{\"type\":\"object\",\"properties\":{\"city\":{\"type\":\"string\"}}}'],\n deprecation: {\n reason:\n 'This attribute is deprecated. The Sentry conventions have no replacement for the requested output schema.',\n },\n changelog: [{ version: '0.21.0', prs: [583], description: 'Added ai.schema attribute' }],\n },\n 'ai.search_queries': {\n brief: 'Queries used to search for relevant context or documents.',\n type: 'string[]',\n keys: ['ai.search_queries'],\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 keys: ['ai.search_results'],\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 keys: ['gen_ai.request.seed', 'ai.seed'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: '1234567890',\n deprecation: {\n replacement: 'gen_ai.request.seed',\n status: 'backfill',\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 keys: ['gen_ai.response.streaming', 'ai.streaming'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: true,\n deprecation: {\n replacement: 'gen_ai.response.streaming',\n status: 'backfill',\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 keys: ['ai.tags'],\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 keys: ['gen_ai.request.temperature', 'ai.temperature'],\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 status: 'backfill',\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 keys: [\n 'gen_ai.input.messages',\n 'ai.input_messages',\n 'ai.prompt',\n 'ai.prompt.messages',\n 'ai.texts',\n 'gen_ai.prompt',\n 'gen_ai.request.messages',\n ],\n applyScrubbing: {\n key: 'manual',\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 status: 'backfill',\n },\n aliases: ['gen_ai.input.messages', 'ai.prompt.messages', 'gen_ai.prompt', 'ai.prompt'],\n changelog: [\n { version: '0.21.0', prs: [583], description: 'Added ai.prompt as an alias' },\n { version: '0.5.0', prs: [264] },\n { version: '0.1.0', prs: [55] },\n ],\n },\n 'ai.toolCall.args': {\n brief: 'The arguments of the tool call.',\n type: 'string',\n keys: ['gen_ai.tool.call.arguments', 'ai.toolCall.args', 'gen_ai.tool.input'],\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 status: 'backfill',\n },\n aliases: ['gen_ai.tool.call.arguments', 'gen_ai.tool.input'],\n changelog: [{ version: '0.19.0', prs: [498], description: 'Added ai.toolCall.args attribute' }],\n },\n 'ai.toolCall.result': {\n brief: 'The result of the tool call.',\n type: 'string',\n keys: [\n 'gen_ai.tool.call.result',\n 'ai.toolCall.result',\n 'anthropic.tool_result.content',\n 'gen_ai.tool.message',\n 'gen_ai.tool.output',\n 'mcp.tool.result.content',\n ],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'rainy, 57°F',\n deprecation: {\n replacement: 'gen_ai.tool.call.result',\n status: 'backfill',\n },\n aliases: [\n 'gen_ai.tool.call.result',\n 'gen_ai.tool.output',\n 'gen_ai.tool.message',\n 'mcp.tool.result.content',\n 'anthropic.tool_result.content',\n ],\n changelog: [{ version: '0.19.0', prs: [498], description: 'Added ai.toolCall.result attribute' }],\n },\n 'ai.tools': {\n brief: 'For an AI model call, the functions that are available',\n type: 'string[]',\n keys: ['gen_ai.tool.definitions', 'ai.prompt.tools', 'ai.tools', 'gen_ai.request.available_tools'],\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 status: 'backfill',\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 keys: [\n 'gen_ai.output.messages',\n 'ai.response.text',\n 'ai.response.toolCalls',\n 'ai.responses',\n 'ai.tool_calls',\n 'gen_ai.response.text',\n 'gen_ai.response.tool_calls',\n ],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: ['tool_call_1', 'tool_call_2'],\n deprecation: {\n replacement: 'gen_ai.output.messages',\n status: 'backfill',\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 keys: ['gen_ai.request.top_k', 'ai.top_k'],\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 status: 'backfill',\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 keys: ['gen_ai.request.top_p', 'ai.top_p'],\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 status: 'backfill',\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 keys: ['gen_ai.cost.total_tokens', 'ai.total_cost'],\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 status: 'backfill',\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 searchAlias: {\n name: 'ai.total_cost',\n type: 'currency',\n },\n },\n 'ai.total_tokens.used': {\n brief: 'The total number of tokens used to process the prompt.',\n type: 'integer',\n keys: ['gen_ai.usage.total_tokens', 'ai.total_tokens.used', 'ai.usage.tokens'],\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 status: 'backfill',\n },\n aliases: ['gen_ai.usage.total_tokens', 'ai.usage.tokens'],\n changelog: [\n { version: '0.21.0', prs: [583], description: 'Added ai.usage.tokens as an alias' },\n { version: '0.4.0', prs: [228] },\n { version: '0.1.0', prs: [57, 61, 108] },\n { version: '0.0.0' },\n ],\n },\n 'ai.usage.tokens': {\n brief: 'The total number of tokens used for the request and the response.',\n type: 'integer',\n keys: ['gen_ai.usage.total_tokens', 'ai.total_tokens.used', 'ai.usage.tokens'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 150,\n examples: [150],\n deprecation: {\n replacement: 'gen_ai.usage.total_tokens',\n reason: 'This attribute is being deprecated in favor of gen_ai.usage.total_tokens.',\n status: 'backfill',\n },\n aliases: ['gen_ai.usage.total_tokens', 'ai.total_tokens.used'],\n changelog: [{ version: '0.21.0', prs: [583], description: 'Added ai.usage.tokens attribute' }],\n },\n 'ai.values': {\n brief: 'The stringified values produced by a Vercel AI SDK object or array generation.',\n type: 'string',\n keys: ['ai.values'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: '[{\"city\":\"Paris\"}]',\n examples: ['[{\"city\":\"Paris\"}]'],\n deprecation: {\n reason: 'This attribute is deprecated. Use gen_ai.output.messages for model output instead.',\n },\n changelog: [{ version: '0.21.0', prs: [583], description: 'Added ai.values attribute' }],\n },\n 'ai.warnings': {\n brief: 'Warning messages generated during model execution.',\n type: 'string[]',\n keys: ['ai.warnings'],\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 keys: ['angular.version'],\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 'anthropic.tool_result.content': {\n brief: 'The content of the tool result.',\n type: 'string',\n keys: [\n 'gen_ai.tool.call.result',\n 'ai.toolCall.result',\n 'anthropic.tool_result.content',\n 'gen_ai.tool.message',\n 'gen_ai.tool.output',\n 'mcp.tool.result.content',\n ],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'rainy, 57°F',\n examples: ['rainy, 57°F'],\n deprecation: {\n replacement: 'gen_ai.tool.call.result',\n reason: 'Use gen_ai.tool.call.result for tool results.',\n status: 'backfill',\n },\n aliases: [\n 'gen_ai.tool.call.result',\n 'gen_ai.tool.output',\n 'gen_ai.tool.message',\n 'mcp.tool.result.content',\n 'ai.toolCall.result',\n ],\n changelog: [\n {\n version: '0.26.0',\n prs: [660],\n description: 'Added anthropic.tool_result.content attribute, deprecated in favor of gen_ai.tool.call.result',\n },\n ],\n },\n 'app.app_build': {\n brief: 'Internal build identifier, as it appears on the platform.',\n type: 'string',\n keys: ['app.build', 'app.app_build'],\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 status: 'backfill',\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 keys: ['app.identifier', 'app.app_identifier'],\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 status: 'backfill',\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 keys: ['app.name', 'app.app_name'],\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 status: 'backfill',\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 keys: ['app.start_time', 'app.app_start_time'],\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 status: 'backfill',\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 keys: ['app.version', 'app.app_version'],\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 status: 'backfill',\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 keys: ['app.build', 'app.app_build'],\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 keys: ['app.identifier', 'app.app_identifier'],\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 keys: ['app.in_foreground'],\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 keys: ['app.name', 'app.app_name'],\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 keys: ['app.vitals.start.cold.value', 'app_start_cold'],\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 status: 'backfill',\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 keys: ['app.start_time', 'app.app_start_time'],\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 keys: ['app.vitals.start.type', 'app_start_type'],\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 status: 'backfill',\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 keys: ['app.vitals.start.warm.value', 'app_start_warm'],\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 status: 'backfill',\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 keys: ['app.version', 'app.app_version'],\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 keys: ['app.vitals.frames.delay.value', 'frames.delay', 'mobile.frames_delay'],\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 keys: ['app.vitals.frames.frozen.count', 'frames.frozen', 'mobile.frozen_frames', 'sentry.frames.frozen'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 3,\n aliases: ['frames.frozen', 'sentry.frames.frozen'],\n changelog: [\n { version: '0.19.0', prs: [500], description: 'Added sentry.frames.frozen as an alias' },\n { version: '0.5.0', prs: [313], description: 'Added app.vitals.frames.frozen.count to replace frames.frozen' },\n ],\n },\n 'app.vitals.frames.frozen.rate': {\n brief:\n 'The fraction of rendered frames that were frozen, calculated as `app.vitals.frames.frozen.count` divided by `app.vitals.frames.total.count`. This is computed by Relay.',\n type: 'double',\n keys: ['app.vitals.frames.frozen.rate', 'frames_frozen_rate'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 0.5,\n aliases: ['frames_frozen_rate'],\n changelog: [{ version: '0.19.0', prs: [493], description: 'Added app.vitals.frames.frozen.rate attribute' }],\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 keys: ['app.vitals.frames.slow.count', 'frames.slow', 'mobile.slow_frames', 'sentry.frames.slow'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 1,\n aliases: ['frames.slow', 'sentry.frames.slow'],\n changelog: [\n { version: '0.19.0', prs: [500], description: 'Added sentry.frames.slow as an alias' },\n { version: '0.5.0', prs: [313], description: 'Added app.vitals.frames.slow.count to replace frames.slow' },\n ],\n },\n 'app.vitals.frames.slow.rate': {\n brief:\n 'The fraction of rendered frames that were slow, calculated as `app.vitals.frames.slow.count` divided by `app.vitals.frames.total.count`. This is computed by Relay.',\n type: 'double',\n keys: ['app.vitals.frames.slow.rate', 'frames_slow_rate'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 0.25,\n aliases: ['frames_slow_rate'],\n changelog: [{ version: '0.19.0', prs: [493], description: 'Added app.vitals.frames.slow.rate attribute' }],\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 keys: ['app.vitals.frames.total.count', 'frames.total', 'mobile.total_frames', 'sentry.frames.total'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 60,\n aliases: ['frames.total', 'sentry.frames.total'],\n changelog: [\n { version: '0.19.0', prs: [500], description: 'Added sentry.frames.total as an alias' },\n { version: '0.5.0', prs: [313], description: 'Added app.vitals.frames.total.count to replace frames.total' },\n ],\n },\n 'app.vitals.stall.duration': {\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 keys: ['app.vitals.stall.duration', 'stall_total_time'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 4000,\n aliases: ['stall_total_time'],\n changelog: [{ version: '0.19.0', prs: [493], description: 'Added app.vitals.stall.duration attribute' }],\n },\n 'app.vitals.stall.percentage': {\n brief:\n 'The fraction of transaction duration during which the app was stalled, between 0.0 and 1.0. For example, 0.8 represents 80%. Only applies to React Native. This is computed by Relay.',\n type: 'double',\n keys: ['app.vitals.stall.percentage', 'stall_percentage'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 0.8,\n aliases: ['stall_percentage'],\n changelog: [{ version: '0.19.0', prs: [493], description: 'Added app.vitals.stall.percentage attribute' }],\n },\n 'app.vitals.start.cold.value': {\n brief: 'The duration of a cold app start in milliseconds',\n type: 'double',\n keys: ['app.vitals.start.cold.value', 'app_start_cold'],\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 keys: ['app.vitals.start.prewarmed'],\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 keys: ['app.vitals.start.reason'],\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 keys: ['app.vitals.start.screen'],\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 keys: ['app.vitals.start.type', 'app_start_type'],\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 keys: ['app.vitals.start.warm.value', 'app_start_warm'],\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 keys: ['app.vitals.ttfd.value', 'time_to_full_display'],\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 keys: ['app.vitals.ttid.value', 'time_to_initial_display'],\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 keys: ['art.gc.blocking_count'],\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 keys: ['art.gc.blocking_time'],\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 keys: ['art.gc.pre_oome_count'],\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 keys: ['art.gc.total_count'],\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 keys: ['art.gc.total_time'],\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 keys: ['art.gc.waiting_time'],\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 keys: ['art.memory.free'],\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 keys: ['art.memory.free_until_gc'],\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 keys: ['art.memory.free_until_oome'],\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 keys: ['art.memory.max'],\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 keys: ['art.memory.total'],\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 keys: ['aws.cloudwatch.logs.log_group'],\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 keys: ['aws.cloudwatch.logs.log_stream'],\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 keys: ['aws.cloudwatch.logs.url'],\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.attributes_to_get': {\n brief: 'The value of the `AttributesToGet` request parameter.',\n type: 'string[]',\n keys: ['aws.dynamodb.attributes_to_get'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: ['lives', 'id'],\n examples: [['lives', 'id']],\n changelog: [{ version: '0.27.0', prs: [672], description: 'Added aws.dynamodb.attributes_to_get 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 keys: ['aws.dynamodb.attribute_definitions'],\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 keys: ['aws.dynamodb.consistent_read'],\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 keys: ['aws.dynamodb.consumed_capacity'],\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 keys: ['aws.dynamodb.count'],\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 keys: ['aws.dynamodb.exclusive_start_table'],\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 keys: ['aws.dynamodb.global_secondary_indexes'],\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 keys: ['aws.dynamodb.global_secondary_index_updates'],\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 keys: ['aws.dynamodb.index_name'],\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 keys: ['aws.dynamodb.item_collection_metrics'],\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 keys: ['aws.dynamodb.limit'],\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 keys: ['aws.dynamodb.local_secondary_indexes'],\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 keys: ['aws.dynamodb.projection'],\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 keys: ['aws.dynamodb.provisioned_read_capacity'],\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 keys: ['aws.dynamodb.provisioned_write_capacity'],\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 keys: ['aws.dynamodb.scanned_count'],\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 keys: ['aws.dynamodb.scan_forward'],\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 keys: ['aws.dynamodb.segment'],\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 keys: ['aws.dynamodb.select'],\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 keys: ['aws.dynamodb.table_count'],\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 keys: ['aws.dynamodb.table_names'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: ['Users', 'Cats'],\n changelog: [\n { version: '0.29.0', prs: [717], description: 'Added additional context on sorting the names' },\n { version: '0.16.0', prs: [479], description: 'Added aws.dynamodb.table_names attribute' },\n ],\n additionalContext: [\n 'List each table name once, sorted alphabetically, so the same call gets the same value and span description (`DynamoDB.BatchGetItem Cat, Users`), whatever the order of the tables in the request.',\n ],\n },\n 'aws.dynamodb.total_segments': {\n brief: 'The value of the `TotalSegments` request parameter.',\n type: 'integer',\n keys: ['aws.dynamodb.total_segments'],\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 keys: ['aws.extended_request_id', 'aws.request.extended_id'],\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 keys: ['aws.kinesis.stream_name', 'aws.kinesis.stream.name'],\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 keys: ['aws.kinesis.stream_name', 'aws.kinesis.stream.name'],\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 status: 'backfill',\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 keys: ['faas.invocation_id', 'aws.lambda.aws_request_id', 'faas.execution'],\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 status: 'backfill',\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 keys: ['aws.lambda.execution_duration_in_millis'],\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 keys: ['faas.name', 'aws.lambda.function_name'],\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 status: 'backfill',\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 keys: ['faas.version', 'aws.lambda.function_version'],\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 status: 'backfill',\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.initialization_type': {\n brief: 'How AWS Lambda initialized the execution environment, as reported by AWS_LAMBDA_INITIALIZATION_TYPE.',\n type: 'string',\n keys: ['aws.lambda.initialization_type'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'native-http',\n examples: ['native-http', 'on-demand', 'provisioned-concurrency', 'snap-start'],\n changelog: [{ version: '0.30.0', prs: [715], description: 'Added aws.lambda.initialization_type attribute' }],\n },\n 'aws.lambda.invoked_arn': {\n brief: 'The full ARN of the Lambda function that was invoked',\n type: 'string',\n keys: ['aws.lambda.invoked_arn', 'aws.lambda.invoked_function_arn'],\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 keys: ['aws.lambda.invoked_arn', 'aws.lambda.invoked_function_arn'],\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 status: 'backfill',\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 keys: ['aws.lambda.remaining_time_in_millis'],\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.lambda.resource_mapping.id': {\n brief:\n \"The UUID of the [AWS Lambda EventSource Mapping](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-lambda-eventsourcemapping.html). An event source is mapped to a lambda function. Its contents are read by Lambda and used to trigger a function. This isn't available in the lambda execution context or the lambda runtime environment. This is going to be populated by the AWS SDK for each language when that UUID is present. Some of these operations are Create/Delete/Get/List/Update EventSourceMapping.\",\n type: 'string',\n keys: ['aws.lambda.resource_mapping.id'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: '587ad24b-03b9-4413-8202-bbd56b36e5b7',\n examples: ['587ad24b-03b9-4413-8202-bbd56b36e5b7'],\n changelog: [{ version: '0.28.0', prs: [710], description: 'Added aws.lambda.resource_mapping.id attribute' }],\n },\n 'aws.lambda.target_function.name': {\n brief: 'The name of the AWS Lambda function that an AWS SDK call acts on.',\n type: 'string',\n keys: ['aws.lambda.target_function.name'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'billing',\n examples: ['billing'],\n changelog: [{ version: '0.29.0', prs: [716], description: 'Added aws.lambda.target_function.name attribute' }],\n additionalContext: [\n 'Set on Lambda API calls that take a `FunctionName`, such as `GetFunction` or `UpdateFunctionCode`, without a version or alias qualifier (`billing`, not `billing:prod`). Different from `faas.name` which is the function the code runs in.',\n ],\n },\n 'aws.lambda.web.endpoint_name': {\n brief:\n 'The name of the AWS Lambda Web Function endpoint that received the request, as reported by the lambda-web-endpoint-name request header.',\n type: 'string',\n keys: ['aws.lambda.web.endpoint_name'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'prod',\n examples: ['prod', 'canary'],\n changelog: [{ version: '0.30.0', prs: [715], description: 'Added aws.lambda.web.endpoint_name 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 keys: ['aws.log.group.names'],\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 keys: ['aws.log.stream.names'],\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.operation_name': {\n brief: 'The name of the API operation invoked on an AWS service.',\n type: 'string',\n keys: ['rpc.method', 'aws.operation_name'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'PutObject',\n examples: ['PutObject'],\n deprecation: {\n replacement: 'rpc.method',\n reason: 'This attribute is being deprecated in favor of rpc.method, which is the framework-agnostic replacement.',\n status: 'backfill',\n },\n aliases: ['rpc.method'],\n changelog: [{ version: '0.19.0', prs: [536], description: 'Added aws.operation_name attribute' }],\n },\n aws_region: {\n brief: 'The geographical region the AWS resource is running',\n type: 'string',\n keys: ['cloud.region', 'aws_region', 'gcp_region'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'us-east-1',\n examples: ['us-east-1'],\n deprecation: {\n replacement: 'cloud.region',\n status: 'backfill',\n },\n aliases: ['cloud.region', 'gcp_region'],\n changelog: [{ version: '0.19.0', prs: [537], description: 'Added aws_region attribute' }],\n },\n 'aws.request.extended_id': {\n brief: 'The AWS extended request ID as returned in the response headers.',\n type: 'string',\n keys: ['aws.extended_request_id', 'aws.request.extended_id'],\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 status: 'backfill',\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 keys: ['aws.request_id', 'aws.request.id'],\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 keys: ['aws.request_id', 'aws.request.id'],\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 status: 'backfill',\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.request.url': {\n brief: 'The URL of the AWS API request.',\n type: 'string',\n keys: ['url.full', 'aws.request.url', 'http.url', 'messaging.url', 'url'],\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'https://sqs.us-east-1.amazonaws.com/123456789/my-queue',\n deprecation: {\n replacement: 'url.full',\n reason: 'This attribute is being deprecated in favor of url.full, which is the OTel-aligned replacement.',\n status: 'backfill',\n },\n aliases: ['url.full', 'http.url', 'url', 'messaging.url'],\n changelog: [\n { version: '0.21.0', prs: [581], description: 'Added messaging.url as an alias' },\n {\n version: '0.19.0',\n prs: [488],\n description: 'Added aws.request.url attribute, deprecated in favor of url.full',\n },\n ],\n },\n 'aws.s3.bucket': {\n brief: 'The S3 bucket name the request refers to.',\n type: 'string',\n keys: ['aws.s3.bucket'],\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.s3.copy_source': {\n brief: 'The source object (in the form bucket/key) for the copy operation.',\n type: 'string',\n keys: ['aws.s3.copy_source'],\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'someFile.yml',\n examples: ['someFile.yml'],\n changelog: [\n { version: '0.28.0', prs: [713], description: 'Changed apply_scrubbing from manual to auto' },\n { version: '0.27.0', prs: [672], description: 'Added aws.s3.copy_source attribute' },\n ],\n additionalContext: [\n 'Applicable to the copy-object and upload-part-copy operations, corresponding to the CopySource parameter.',\n ],\n },\n 'aws.s3.delete': {\n brief: 'The JSON-serialized value of Delete request field, which specifies the objects to be deleted.',\n type: 'string',\n keys: ['aws.s3.delete'],\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: true,\n visibility: 'public',\n example: '{\"Objects\":[{\"Key\":\"someFile.yml\",\"VersionId\":\"3HL4kqtJlcpXroDTDmJ\"}],\"Quiet\":false}',\n examples: ['{\"Objects\":[{\"Key\":\"someFile.yml\",\"VersionId\":\"3HL4kqtJlcpXroDTDmJ\"}],\"Quiet\":false}'],\n changelog: [\n { version: '0.29.0', prs: [711], description: 'Changed the value to a JSON-serialized field, with an example' },\n { version: '0.28.0', prs: [713], description: 'Changed apply_scrubbing from manual to auto' },\n { version: '0.27.0', prs: [672], description: 'Added aws.s3.delete attribute' },\n ],\n additionalContext: ['Applicable only to the delete-objects operation, corresponding to its Delete parameter.'],\n },\n 'aws.s3.key': {\n brief: 'The S3 object key the request refers to. Corresponds to the --key parameter of the S3 API operations.',\n type: 'string',\n keys: ['aws.s3.key'],\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'someFile.yml',\n examples: ['someFile.yml'],\n changelog: [\n { version: '0.28.0', prs: [713], description: 'Changed apply_scrubbing from manual to auto' },\n { version: '0.27.0', prs: [672], description: 'Added aws.s3.key attribute' },\n ],\n },\n 'aws.s3.part_number': {\n brief:\n 'The part number of the part being uploaded in a multipart-upload operation. This is a positive integer between 1 and 10,000.',\n type: 'integer',\n keys: ['aws.s3.part_number'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 3456,\n examples: [3456],\n changelog: [{ version: '0.27.0', prs: [672], description: 'Added aws.s3.part_number attribute' }],\n additionalContext: ['Applicable only to the upload-part and upload-part-copy operations.'],\n },\n 'aws.s3.upload_id': {\n brief: 'Upload ID that identifies the multipart upload.',\n type: 'string',\n keys: ['aws.s3.upload_id'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'dfRtDYWFbkRONycy.Yxwh66Yjlx.cph0gtNBtJ',\n examples: ['dfRtDYWFbkRONycy.Yxwh66Yjlx.cph0gtNBtJ'],\n changelog: [{ version: '0.27.0', prs: [672], description: 'Added aws.s3.upload_id attribute' }],\n },\n 'aws.secretsmanager.secret.arn': {\n brief: 'The ARN of the Secret stored in Secrets Manager.',\n type: 'string',\n keys: ['aws.secretsmanager.secret.arn'],\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.secretsmanager.secret.name': {\n brief: 'The name of the secret stored in AWS Secrets Manager.',\n type: 'string',\n keys: ['aws.secretsmanager.secret.name'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'db-password',\n examples: ['db-password', 'prod/billing/api-key'],\n changelog: [{ version: '0.29.0', prs: [716], description: 'Added aws.secretsmanager.secret.name attribute' }],\n additionalContext: [\n \"Without the hyphen and six random characters that Secrets Manager appends to the name in the secret's ARN (`db-password`, not `db-password-AbCdEf`).\",\n ],\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 keys: ['aws.sns.topic.arn'],\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.sqs.queue.url': {\n brief:\n 'The URL of the AWS SQS Queue. It’s a unique identifier for a queue in Amazon Simple Queue Service (SQS) and is used to access the queue and perform actions on it.',\n type: 'string',\n keys: ['aws.sqs.queue.url'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'https://sqs.us-east-1.amazonaws.com/123456789012/MyQueue',\n examples: ['https://sqs.us-east-1.amazonaws.com/123456789012/MyQueue'],\n changelog: [{ version: '0.27.0', prs: [672], description: 'Added aws.sqs.queue.url attribute' }],\n },\n 'aws.step_functions.activity.arn': {\n brief: 'The ARN of the AWS Step Functions Activity.',\n type: 'string',\n keys: ['aws.step_functions.activity.arn'],\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.activity.name': {\n brief: 'The name of the AWS Step Functions activity.',\n type: 'string',\n keys: ['aws.step_functions.activity.name'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'resize-image',\n examples: ['resize-image'],\n changelog: [{ version: '0.29.0', prs: [716], description: 'Added aws.step_functions.activity.name attribute' }],\n additionalContext: [\n 'The last part of the activity ARN (`arn:aws:states:us-east-1:123456789012:activity:resize-image`).',\n ],\n },\n 'aws.step_functions.execution.arn': {\n brief: 'The ARN of the AWS Step Functions Execution.',\n type: 'string',\n keys: ['aws.step_functions.execution.arn'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'arn:aws:states:us-east-1:123456789012:execution:myStateMachine:myExecution',\n examples: ['arn:aws:states:us-east-1:123456789012:execution:myStateMachine:myExecution'],\n changelog: [{ version: '0.27.0', prs: [672], description: 'Added aws.step_functions.execution.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 keys: ['aws.step_functions.state_machine.arn'],\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 'aws.step_functions.state_machine.name': {\n brief: 'The name of the AWS Step Functions state machine.',\n type: 'string',\n keys: ['aws.step_functions.state_machine.name'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'orders',\n examples: ['orders'],\n changelog: [\n { version: '0.29.0', prs: [716], description: 'Added aws.step_functions.state_machine.name attribute' },\n ],\n additionalContext: ['Contains no version or alias qualifier (`orders`, not `orders:1` or `orders:prod`).'],\n },\n blocked_main_thread: {\n brief: 'Whether the main thread was blocked by the span.',\n type: 'boolean',\n keys: ['blocked_main_thread'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: true,\n changelog: [{ version: '0.0.0' }],\n },\n 'browser.bfcache.frame': {\n brief:\n \"Which frame in the page's frame tree a back/forward cache not-restored reason originated from: the top document or a child frame.\",\n type: 'string',\n keys: ['browser.bfcache.frame'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'top',\n examples: ['top', 'child'],\n changelog: [{ version: '0.19.0', prs: [513], description: 'Added browser.bfcache.frame attribute' }],\n },\n 'browser.bfcache.not_restored_reason_count': {\n brief:\n 'The number of reported reasons a page was not restored from the back/forward cache on a back/forward navigation. 0 when the browser reported no reasons (e.g. non-Chromium browsers).',\n type: 'integer',\n keys: ['browser.bfcache.not_restored_reason_count'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 2,\n examples: [2],\n changelog: [\n { version: '0.19.0', prs: [513], description: 'Added browser.bfcache.not_restored_reason_count attribute' },\n ],\n },\n 'browser.bfcache.outcome': {\n brief:\n \"Whether a back/forward navigation was restored from the browser's back/forward cache (bfcache). 'hit' means the page was restored; 'miss' means it was reloaded.\",\n type: 'string',\n keys: ['browser.bfcache.outcome'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'hit',\n examples: ['hit', 'miss'],\n changelog: [{ version: '0.19.0', prs: [513], description: 'Added browser.bfcache.outcome attribute' }],\n },\n 'browser.bfcache.reason': {\n brief:\n 'A browser-reported reason a page was not restored from the back/forward cache on a back/forward navigation, taken from the notRestoredReasons API. Reported per reason (a single miss can have several). Currently Chromium-only.',\n type: 'string',\n keys: ['browser.bfcache.reason'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'unload-listener',\n examples: ['unload-listener', 'websocket', 'idbversionchangeevent', 'response-cache-control-no-store'],\n changelog: [{ version: '0.19.0', prs: [513], description: 'Added browser.bfcache.reason attribute' }],\n },\n 'browser.name': {\n brief: 'The name of the browser.',\n type: 'string',\n keys: ['browser.name', 'sentry.browser.name'],\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.navigation.id': {\n brief:\n \"The identifier of the navigation the measurement belongs to, incremented by the browser for each navigation within a page's lifetime.\",\n type: 'integer',\n keys: ['browser.navigation.id'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 1,\n examples: [1, 3, 0],\n changelog: [\n {\n version: '0.24.0',\n prs: [640],\n description: 'Document 0 as the fallback value when the browser does not support `navigationId`',\n },\n { version: '0.22.0', prs: [634], description: 'Added browser.navigation.id attribute' },\n ],\n additionalContext: [\n 'Sourced from `PerformanceEntry.navigationId`, defined by the Soft Navigations spec. Despite its origin it is not soft-navigation specific: the field is set on the `PerformanceNavigationTiming` entry of a hard navigation too.',\n 'The value starts at 1 for the initial page load and increments for each subsequent navigation. It is only unique within a single page lifetime, not globally.',\n 'A value of 0 is a fallback rather than a real navigation id: web-vitals reports 0 when the browser does not expose `PerformanceEntry.navigationId`, so 0 means the id is unknown.',\n 'Pairs with `browser.navigation.type`: the type says how the browser arrived at the page, the id says which navigation of that page a measurement belongs to.',\n \"Not to be confused with the Navigation API's `NavigationHistoryEntry.id`, which is an opaque string identifying a history entry rather than a counter, and is not interchangeable with this value.\",\n \"Also distinct from the `router.navigation.*` attributes, which describe the client-side router's own view of a navigation. Those come from the framework, this one comes from the browser, and both can be set on the same span.\",\n ],\n },\n 'browser.navigation.type': {\n brief: 'The type of navigation the browser performed to arrive at the page the metrics were measured on.',\n type: 'string',\n keys: ['browser.navigation.type'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'navigate',\n examples: ['navigate', 'reload', 'back-forward', 'back-forward-cache', 'prerender', 'restore', 'soft-navigation'],\n changelog: [\n {\n version: '0.24.0',\n prs: [640],\n description:\n 'Use the web-vitals navigation types as-is: `bfcache` is now `back-forward-cache`, and `back-forward` and `restore` are no longer reported as `navigate`',\n },\n { version: '0.22.0', prs: [600], description: 'Added browser.navigation.type attribute' },\n ],\n additionalContext: [\n 'Carries the `navigationType` value reported by the web-vitals library verbatim. web-vitals hyphenates the Navigation Timing `PerformanceNavigationTiming.type` value (`back_forward` becomes `back-forward`) and adds states that API does not cover: `back-forward-cache` for a restore from the back/forward cache, `prerender`, `restore` for a discarded tab being reloaded, and `soft-navigation`.',\n '`back-forward-cache` is only set when the page was actually restored from the back/forward cache. A back/forward navigation that missed the cache is a full document load and reports `back-forward`. Use the `browser.bfcache.*` attributes to diagnose misses.',\n '`prerender` pages finish painting before activation, so their paint timings are offset by `browser.performance.navigation.activation_start`. Keep them separate when aggregating web vitals.',\n \"Not to be confused with `router.navigation.type`, which holds the client-side router's own vocabulary (`link`, `goto`, `router.push`). The two are independent and can both be set on the same span.\",\n ],\n },\n 'browser.paint.type': {\n brief: 'The type of paint timing entry reported by the browser.',\n type: 'string',\n keys: ['browser.paint.type'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'first-paint',\n examples: ['first-paint', 'first-contentful-paint'],\n changelog: [{ version: '0.22.0', prs: [606], description: 'Added browser.paint.type attribute' }],\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 keys: ['browser.performance.navigation.activation_start', 'performance.activationStart'],\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 keys: ['browser.performance.time_origin', 'performance.timeOrigin'],\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 keys: ['browser.report.type'],\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 keys: ['browser.script.invoker'],\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 keys: ['browser.script.invoker_type'],\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 keys: ['browser.script.source_char_position'],\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 keys: ['browser.version', 'sentry.browser.version'],\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 keys: ['browser.web_vital.cls.report_event'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'navigation',\n deprecation: {\n reason:\n 'The JavaScript SDK stopped setting this in v11. With per-navigation web vitals, web-vitals decides when the CLS value is final, so there is no report event to record. No replacement.',\n },\n changelog: [\n {\n version: '0.24.0',\n prs: [642],\n description: 'Deprecated browser.web_vital.cls.report_event, which has no replacement',\n },\n { version: '0.5.0', prs: [319], description: 'Added browser.web_vital.cls.report_event attribute' },\n ],\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 keys: ['browser.web_vital.cls.source.', 'cls.source.'],\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 keys: ['browser.web_vital.cls.value', 'cls'],\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 keys: ['browser.web_vital.fcp.value', 'fcp'],\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 keys: ['browser.web_vital.fp.value', 'fp'],\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.input_delay': {\n brief:\n 'The time between the user interacting with the page and the browser starting to run the event handlers, for the interaction INP was reported on, in milliseconds',\n type: 'double',\n keys: ['browser.web_vital.inp.input_delay'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 120,\n examples: [120],\n changelog: [{ version: '0.28.0', prs: [712], description: 'Added browser.web_vital.inp.input_delay attribute' }],\n additionalContext: [\n 'One of the three INP subparts, which add up to `browser.web_vital.inp.value`: input delay, processing duration and presentation delay. Named after `inputDelay` in the web-vitals attribution build.',\n \"Measured from the interaction's `PerformanceEventTiming` entry as `processingStart` minus `startTime`.\",\n 'Omitted when INP is reported without an interaction to attribute it to, like `browser.web_vital.inp.target`.',\n ],\n },\n 'browser.web_vital.inp.interaction_type': {\n brief: 'The kind of user interaction INP was reported on',\n type: 'string',\n keys: ['browser.web_vital.inp.interaction_type'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'click',\n examples: ['click', 'hover', 'drag', 'press'],\n changelog: [\n { version: '0.24.0', prs: [641], description: 'Added browser.web_vital.inp.interaction_type attribute' },\n ],\n additionalContext: [\n \"One of `click`, `hover`, `drag` or `press`, derived from the DOM event name of the Event Timing entry: pointer, mouse and touch events map to `click`, `mouseover` and similar to `hover`, drag and drop events to `drag`, and keyboard and `input` events to `press`. The same value forms the suffix of the span's `ui.interaction.*` op.\",\n 'Not to be confused with the `interactionType` of the web-vitals attribution build, which only distinguishes `pointer` and `keyboard`.',\n 'Omitted when INP is reported without an interaction to attribute it to, see `browser.web_vital.inp.target`. The op of such a span still falls into `ui.interaction.click` so that it stays within the interaction span family, which makes this attribute, not the op, the way to tell a real click from a value with no interaction.',\n ],\n },\n 'browser.web_vital.inp.presentation_delay': {\n brief:\n 'The time between the event handlers finishing and the browser presenting the next frame, for the interaction INP was reported on, in milliseconds',\n type: 'double',\n keys: ['browser.web_vital.inp.presentation_delay'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 100,\n examples: [100],\n changelog: [\n { version: '0.28.0', prs: [712], description: 'Added browser.web_vital.inp.presentation_delay attribute' },\n ],\n additionalContext: [\n 'One of the three INP subparts, which add up to `browser.web_vital.inp.value`. Named after `presentationDelay` in the web-vitals attribution build.',\n \"Measured from the interaction's `PerformanceEventTiming` entry as `startTime` plus `duration` minus `processingEnd`.\",\n 'Omitted when INP is reported without an interaction to attribute it to, like `browser.web_vital.inp.target`.',\n ],\n },\n 'browser.web_vital.inp.processing_duration': {\n brief: 'The time it took the event handlers to run, for the interaction INP was reported on, in milliseconds',\n type: 'double',\n keys: ['browser.web_vital.inp.processing_duration'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 140,\n examples: [140],\n changelog: [\n { version: '0.28.0', prs: [712], description: 'Added browser.web_vital.inp.processing_duration attribute' },\n ],\n additionalContext: [\n 'One of the three INP subparts, which add up to `browser.web_vital.inp.value`. Named after `processingDuration` in the web-vitals attribution build.',\n \"Measured from the interaction's `PerformanceEventTiming` entry as `processingEnd` minus `processingStart`.\",\n 'Omitted when INP is reported without an interaction to attribute it to, like `browser.web_vital.inp.target`.',\n ],\n },\n 'browser.web_vital.inp.target': {\n brief:\n 'The HTML element selector or component name of the element the user interacted with, for the interaction INP was reported on',\n type: 'string',\n keys: ['browser.web_vital.inp.target'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'body > div#app > button.submit',\n examples: ['body > div#app > button.submit', 'SubmitButton'],\n changelog: [{ version: '0.24.0', prs: [641], description: 'Added browser.web_vital.inp.target attribute' }],\n additionalContext: [\n 'Named after `PerformanceEventTiming.target`, the way `browser.web_vital.lcp.element` is named after `LargestContentfulPaint.element`. The value uses the same format as that attribute.',\n 'Omitted when INP is reported without an interaction to attribute it to. web-vitals reports such a value for a soft navigation whose interactions all stayed below the Event Timing duration threshold, so there is no element to name. The span is still named and still carries `browser.web_vital.inp.value`.',\n ],\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 keys: ['browser.web_vital.inp.value', 'inp'],\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 keys: ['browser.web_vital.lcp.element', 'lcp.element'],\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.element_render_delay': {\n brief: 'The time between the LCP resource finishing loading and the LCP element being rendered, in milliseconds',\n type: 'double',\n keys: ['browser.web_vital.lcp.element_render_delay'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 410,\n examples: [410],\n changelog: [\n { version: '0.28.0', prs: [712], description: 'Added browser.web_vital.lcp.element_render_delay attribute' },\n ],\n additionalContext: [\n 'One of the four LCP subparts, which add up to `browser.web_vital.lcp.value`. Named after `elementRenderDelay` in the web-vitals attribution build.',\n \"Measured as the LCP value minus the LCP resource's `responseEnd`. When the LCP element is text, it covers all time after TTFB.\",\n 'For a prerendered page, timestamps are measured from `activationStart`.',\n ],\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 keys: ['browser.web_vital.lcp.id', 'lcp.id'],\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 keys: ['browser.web_vital.lcp.load_time', 'lcp.loadTime'],\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 keys: ['browser.web_vital.lcp.render_time', 'lcp.renderTime'],\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 keys: ['browser.web_vital.lcp.report_event'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'pagehide',\n deprecation: {\n reason:\n 'The JavaScript SDK stopped setting this in v11. With per-navigation web vitals, web-vitals decides when the LCP value is final, so there is no report event to record. No replacement.',\n },\n changelog: [\n {\n version: '0.24.0',\n prs: [642],\n description: 'Deprecated browser.web_vital.lcp.report_event, which has no replacement',\n },\n { version: '0.5.0', prs: [319], description: 'Added browser.web_vital.lcp.report_event attribute' },\n ],\n },\n 'browser.web_vital.lcp.resource_load_delay': {\n brief:\n 'The time between the first byte of the document arriving and the browser starting to load the LCP resource, in milliseconds',\n type: 'double',\n keys: ['browser.web_vital.lcp.resource_load_delay'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 320.5,\n examples: [320.5],\n changelog: [\n { version: '0.28.0', prs: [712], description: 'Added browser.web_vital.lcp.resource_load_delay attribute' },\n ],\n additionalContext: [\n 'One of the four LCP subparts, which add up to `browser.web_vital.lcp.value`: TTFB (`browser.web_vital.ttfb.value`), resource load delay, resource load duration and element render delay. Named after `resourceLoadDelay` in the web-vitals attribution build.',\n \"Measured as the LCP resource's `requestStart` (or `startTime` when `requestStart` is not exposed) minus TTFB. It is 0 when the LCP element is text, since no resource is loaded.\",\n 'For a prerendered page, timestamps are measured from `activationStart`.',\n ],\n },\n 'browser.web_vital.lcp.resource_load_duration': {\n brief: 'The time it took to load the LCP resource, in milliseconds',\n type: 'double',\n keys: ['browser.web_vital.lcp.resource_load_duration'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 780.2,\n examples: [780.2],\n changelog: [\n { version: '0.28.0', prs: [712], description: 'Added browser.web_vital.lcp.resource_load_duration attribute' },\n ],\n additionalContext: [\n 'One of the four LCP subparts, which add up to `browser.web_vital.lcp.value`. Named after `resourceLoadDuration` in the web-vitals attribution build.',\n \"Measured as the LCP resource's `responseEnd` minus its `requestStart` (or `startTime` when `requestStart` is not exposed). It is 0 when the LCP element is text, since no resource is loaded.\",\n 'For a prerendered page, timestamps are measured from `activationStart`.',\n ],\n },\n 'browser.web_vital.lcp.size': {\n brief: 'The size of the largest contentful paint element',\n type: 'integer',\n keys: ['browser.web_vital.lcp.size', 'lcp.size'],\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 keys: ['browser.web_vital.lcp.url', 'lcp.url'],\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 keys: ['browser.web_vital.lcp.value', 'lcp'],\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 keys: ['browser.web_vital.ttfb.request_time', 'ttfb.requestTime'],\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 keys: ['browser.web_vital.ttfb.value', 'ttfb'],\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 keys: ['cache.hit'],\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_age': {\n brief: 'The age of the cache entry in seconds, measured at read time.',\n type: 'integer',\n keys: ['cache.item_age'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 5,\n examples: [5, 3600],\n changelog: [{ version: '0.23.0', prs: [637], description: 'Added cache.item_age attribute' }],\n additionalContext: [\n 'Set on reads that return an entry. Absent on a miss, or when the cache does not report a write time.',\n \"Clamped to 0. On a shared cache, the writer's clock and the reader's clock can drift far enough to make the age negative.\",\n 'Can exceed `cache.ttl`. A cache that discards an expired entry on read still reports the age of that entry, with `cache.hit: false`.',\n ],\n searchAlias: {\n name: 'cache.item_age',\n type: 'second',\n },\n },\n 'cache.item_size': {\n brief: 'The size of the requested item in the cache. In bytes.',\n type: 'integer',\n keys: ['cache.item_size'],\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 searchAlias: {\n name: 'cache.item_size',\n type: 'byte',\n },\n },\n 'cache.key': {\n brief: 'The key of the cache accessed.',\n type: 'string[]',\n keys: ['cache.key'],\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 keys: ['cache.operation'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'get',\n examples: ['get', 'put', 'remove'],\n changelog: [{ version: '0.1.0', prs: [127] }, { version: '0.0.0' }],\n },\n 'cache.tags': {\n brief: 'The tags attached to the cache entry. Tags group entries so a cache can invalidate them together.',\n type: 'string[]',\n keys: ['cache.tags'],\n applyScrubbing: {\n key: 'auto',\n reason: 'Applications pick tag values freely and often build them from record identifiers such as a user id.',\n },\n isInOtel: false,\n visibility: 'public',\n example: ['blog-posts', 'post-42'],\n examples: [['blog-posts', 'post-42'], ['products']],\n changelog: [{ version: '0.23.0', prs: [637], description: 'Added cache.tags attribute' }],\n additionalContext: [\n 'Cache library examples that support tags: Next.js `cacheTag()`, Symfony `ItemInterface::tag()`, Laravel `Cache::tags()`.',\n 'HTTP caches take tags from a response header. Cloudflare reads `Cache-Tag`, Fastly reads `Surrogate-Key`.',\n 'Record only the tags the application declared. Leave out implicit tags that the framework adds itself, for example one tag per route.',\n 'The tags describe the entry, not the operation. Take them from the entry the cache returned or stored.',\n ],\n },\n 'cache.ttl': {\n brief: 'The TTL (maximum lifetime) of the cache entry in seconds',\n type: 'integer',\n keys: ['cache.ttl'],\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 additionalContext: [\n 'Counted from the write. On a read, the value is the full TTL, not the time that remains.',\n 'A value of 0 means the entry expires immediately, as with HTTP `max-age=0`. Round a fractional TTL up, so 0.3 seconds becomes 1, not 0.',\n 'Omit the attribute when the entry never expires, the TTL is unknown, or each read restarts the TTL.',\n ],\n },\n 'cache.write': {\n brief: 'If the cache operation resulted in a write to the cache.',\n type: 'boolean',\n keys: ['cache.write'],\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 keys: ['channel'],\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 keys: ['client.address', 'http.client_ip'],\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 keys: ['client.port'],\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 keys: ['cloudflare.d1.duration'],\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 keys: ['db.operation.name', 'cloudflare.d1.query_type', 'db.operation', 'redis.command'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'run',\n deprecation: {\n replacement: 'db.operation.name',\n status: 'backfill',\n },\n aliases: ['db.operation.name', 'db.operation', 'redis.command'],\n changelog: [\n { version: '0.19.0', prs: [531], description: 'Added redis.command as an alias' },\n { version: '0.11.0', prs: [392], description: 'Added cloudflare.d1.query_type attribute' },\n ],\n },\n 'cloudflare.d1.rows_read': {\n brief: 'The number of rows read in a Cloudflare D1 operation.',\n type: 'integer',\n keys: ['cloudflare.d1.rows_read'],\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 keys: ['cloudflare.d1.rows_written'],\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 keys: ['cloudflare.durable_object.query.bindings'],\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 keys: ['cloudflare.durable_object.response.rows_read'],\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 keys: ['cloudflare.durable_object.response.rows_written'],\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 keys: ['cloudflare.r2.bucket'],\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 keys: ['cloudflare.r2.operation'],\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 keys: ['cloudflare.r2.request.delimiter'],\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 keys: ['cloudflare.r2.request.key'],\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 keys: ['cloudflare.r2.request.part_number'],\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 keys: ['cloudflare.r2.request.prefix'],\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 keys: ['cloudflare.workflow.attempt'],\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 keys: ['cloudflare.workflow.retries.backoff'],\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 keys: ['cloudflare.workflow.retries.delay'],\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 keys: ['cloudflare.workflow.retries.limit'],\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 keys: ['cloudflare.workflow.timeout'],\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 keys: ['cloud.account.id'],\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 keys: ['cloud.availability_zone'],\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 keys: ['cloud.platform'],\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 keys: ['cloud.provider'],\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 keys: ['cloud.region', 'aws_region', 'gcp_region'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'us-east-1',\n aliases: ['aws_region', 'gcp_region'],\n changelog: [\n { version: '0.19.0', prs: [535, 537], description: 'Added aws_region and gcp_region as aliases' },\n { version: '0.7.0', prs: [364], description: 'Added cloud.region attribute' },\n ],\n },\n 'cloud.resource_id': {\n brief: 'Cloud provider-specific native identifier of the monitored cloud resource',\n type: 'string',\n keys: ['cloud.resource_id', 'faas.id'],\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 keys: ['browser.web_vital.cls.value', 'cls'],\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 status: 'backfill',\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 keys: ['browser.web_vital.cls.source.', 'cls.source.'],\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 status: 'backfill',\n },\n aliases: ['browser.web_vital.cls.source.'],\n changelog: [{ version: '0.5.0', prs: [234] }],\n },\n code: {\n brief: 'Status code of the RPC returned by the RPC server or generated by the client.',\n type: 'string',\n keys: ['rpc.response.status_code', 'code'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'DEADLINE_EXCEEDED',\n examples: ['DEADLINE_EXCEEDED'],\n deprecation: {\n replacement: 'rpc.response.status_code',\n status: 'backfill',\n },\n aliases: ['rpc.grpc.status_code', 'rpc.response.status_code'],\n changelog: [{ version: '0.19.0', prs: [533], description: 'Added code attribute' }],\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 keys: ['code.file.path', 'sveltekit.load.node_id', 'code.filepath'],\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 status: 'backfill',\n },\n aliases: ['code.file.path', 'sveltekit.load.node_id'],\n changelog: [\n { version: '0.22.0', prs: [611], description: 'Added sveltekit.load.node_id as an alias' },\n { version: '0.1.0', prs: [61] },\n { version: '0.0.0' },\n ],\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 keys: ['code.file.path', 'sveltekit.load.node_id', 'code.filepath'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: '/app/myapplication/http/handler/server.py',\n aliases: ['code.filepath', 'sveltekit.load.node_id'],\n changelog: [\n { version: '0.22.0', prs: [611], description: 'Added sveltekit.load.node_id as an alias' },\n { version: '0.0.0' },\n ],\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 keys: ['code.function', 'code.function.name', 'django.function_name'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'server_request',\n aliases: ['code.function.name', 'django.function_name'],\n changelog: [\n { version: '0.19.0', prs: [538], description: 'Added django.function_name as an alias' },\n { version: '0.1.0', prs: [61, 74] },\n { version: '0.0.0' },\n ],\n },\n 'code.function.name': {\n brief: 'The method or function fully-qualified name without arguments.',\n type: 'string',\n keys: ['code.function.name', 'code.function', 'django.function_name'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'server_request',\n aliases: ['code.function', 'django.function_name'],\n changelog: [\n { version: '0.19.0', prs: [538], description: 'Added django.function_name as an alias' },\n { version: '0.1.0', prs: [127] },\n { version: '0.0.0' },\n ],\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 keys: ['code.line.number', 'code.lineno'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 42,\n deprecation: {\n replacement: 'code.line.number',\n status: 'backfill',\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 keys: ['code.line.number', 'code.lineno'],\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 keys: ['code.namespace'],\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 keys: ['network.connection.type', 'connectionType', 'device.connection_type'],\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 status: 'backfill',\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 keys: ['network.connection.rtt', 'connection.rtt'],\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 status: 'backfill',\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 keys: ['culture.calendar'],\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 keys: ['culture.display_name'],\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 keys: ['culture.is_24_hour_format'],\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 keys: ['culture.locale'],\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 keys: ['culture.timezone'],\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 keys: ['db.collection.name', 'db.mongodb.collection'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'users',\n examples: ['users', ',customers,orders,'],\n aliases: ['db.mongodb.collection'],\n changelog: [\n { version: '0.29.0', prs: [711], description: 'Add comma-wrapped format for calls on more than one collection' },\n { version: '0.19.0', prs: [483], description: 'Added db.mongodb.collection as an alias' },\n { version: '0.1.0', prs: [106, 127] },\n { version: '0.0.0' },\n ],\n additionalContext: [\n 'For a call on more than one collection: the unique names, sorted and wrapped in commas (`,customers,orders,`), so each name matches `,,`.',\n ],\n },\n 'db.connection_string': {\n brief: 'The connection string used to connect to the database.',\n type: 'string',\n keys: ['db.connection_string'],\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'redis://localhost:6379',\n examples: ['redis://localhost:6379'],\n deprecation: {\n reason:\n 'This attribute is deprecated. The connection is described by server.address and server.port instead, so the value cannot be copied to a single replacement attribute.',\n },\n changelog: [{ version: '0.21.0', prs: [581], description: 'Added db.connection_string attribute' }],\n },\n 'db.driver.name': {\n brief: 'The name of the driver used for the database connection.',\n type: 'string',\n keys: ['db.driver.name'],\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.mongodb.collection': {\n brief: 'The MongoDB collection being accessed.',\n type: 'string',\n keys: ['db.collection.name', 'db.mongodb.collection'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'users',\n deprecation: {\n replacement: 'db.collection.name',\n reason:\n 'This attribute is being deprecated in favor of db.collection.name, which is the OTel-aligned replacement.',\n status: 'backfill',\n },\n aliases: ['db.collection.name'],\n changelog: [\n {\n version: '0.19.0',\n prs: [483],\n description: 'Added db.mongodb.collection attribute, deprecated in favor of db.collection.name',\n },\n ],\n },\n 'db.name': {\n brief: 'The name of the database being accessed.',\n type: 'string',\n keys: ['db.namespace', 'db.name'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'customers',\n deprecation: {\n replacement: 'db.namespace',\n status: 'backfill',\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 keys: ['db.namespace', 'db.name'],\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 keys: ['db.operation.name', 'cloudflare.d1.query_type', 'db.operation', 'redis.command'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'SELECT',\n deprecation: {\n replacement: 'db.operation.name',\n status: 'normalize',\n },\n aliases: ['db.operation.name', 'cloudflare.d1.query_type', 'redis.command'],\n changelog: [\n { version: '0.19.0', prs: [531], description: 'Added redis.command as an alias' },\n { version: '0.4.0', prs: [199] },\n { version: '0.1.0', prs: [61, 127] },\n { version: '0.0.0' },\n ],\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 keys: ['db.operation.batch.size'],\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 keys: ['db.operation.name', 'cloudflare.d1.query_type', 'db.operation', 'redis.command'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'SELECT',\n aliases: ['db.operation', 'cloudflare.d1.query_type', 'redis.command'],\n changelog: [\n { version: '0.19.0', prs: [531], description: 'Added redis.command as an alias' },\n { version: '0.1.0', prs: [127] },\n { version: '0.0.0' },\n ],\n },\n 'db.params': {\n brief: 'The query bindings for a database request.',\n type: 'string',\n keys: ['db.params'],\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: false,\n visibility: 'public',\n example: '[{\"x\": 100}]',\n examples: ['[{\"x\": 100}]'],\n deprecation: {\n replacement: 'db.query.parameter.',\n reason:\n 'Instead of adding every binding in the db.params attribute, add them as individual entries with db.query.parameter..',\n },\n changelog: [{ version: '0.19.0', prs: [529], description: 'Added db.params attribute' }],\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 keys: ['db.query.parameter.'],\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 keys: ['db.query.summary'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'SELECT users',\n examples: ['SELECT users', 'INSERT products; UPDATE orders'],\n changelog: [\n { version: '0.19.0', prs: [505], description: 'Added multiple examples' },\n { version: '0.4.0', prs: [208] },\n { version: '0.1.0', prs: [127] },\n { version: '0.0.0' },\n ],\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 keys: ['db.query.text', 'db.statement', 'query'],\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'SELECT * FROM users WHERE id = $1',\n aliases: ['db.statement', 'query'],\n changelog: [\n { version: '0.19.0', prs: [530], description: 'Added query as an alias' },\n { version: '0.4.0', prs: [208] },\n { version: '0.1.0', prs: [127] },\n { version: '0.0.0' },\n ],\n },\n 'db.redis.connection': {\n brief: 'The redis connection name.',\n type: 'string',\n keys: ['db.redis.connection'],\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 keys: ['db.redis.key', 'redis.key'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'user:2047:city',\n aliases: ['redis.key'],\n changelog: [\n { version: '0.19.0', prs: [484], description: 'Added redis.key as an alias' },\n { version: '0.6.0', prs: [326], description: 'Added db.redis.key attribute' },\n ],\n },\n 'db.redis.parameters': {\n brief: 'The array of command parameters given to a redis command.',\n type: 'string[]',\n keys: ['db.redis.parameters'],\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 keys: ['db.response.status_code'],\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 keys: ['db.sql.bindings'],\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 entries 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 keys: ['db.query.text', 'db.statement', 'query'],\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'SELECT * FROM users WHERE id = $1',\n deprecation: {\n replacement: 'db.query.text',\n reason:\n 'While this attribute never specifically required parameterization, the replacement, db.query.text, does.',\n status: 'normalize',\n },\n aliases: ['db.query.text', 'query'],\n changelog: [\n {\n version: '0.19.0',\n prs: [501],\n description: 'Improved example, added deprecation reason, and added query as an alias',\n },\n { version: '0.4.0', prs: [199] },\n { version: '0.1.0', prs: [61, 127] },\n { version: '0.0.0' },\n ],\n },\n 'db.stored_procedure.name': {\n brief: 'The name of a stored procedure being called.',\n type: 'string',\n keys: ['db.stored_procedure.name'],\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 keys: ['db.system.name', 'db.system', 'span.system'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'postgresql',\n deprecation: {\n replacement: 'db.system.name',\n status: 'backfill',\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 searchAlias: {\n name: 'db.system',\n deprecatedAliases: ['span.system'],\n },\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 keys: ['db.system.name', 'db.system', 'span.system'],\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 keys: ['db.user'],\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 keys: ['device.memory.estimated_capacity', 'deviceMemory'],\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 status: 'backfill',\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 keys: ['device.archs'],\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 keys: ['device.battery_level'],\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 keys: ['device.battery_temperature'],\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 keys: ['device.boot_time'],\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 keys: ['device.brand'],\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 keys: ['device.charging'],\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 keys: ['device.chipset'],\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 keys: ['device.class'],\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 keys: ['network.connection.type', 'connectionType', 'device.connection_type'],\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 status: 'backfill',\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 keys: ['device.cpu_description'],\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 keys: ['device.external_free_storage'],\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 keys: ['device.external_storage_size'],\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 keys: ['device.family'],\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 keys: ['device.free_memory'],\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 keys: ['device.free_storage'],\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 keys: ['device.id'],\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 keys: ['device.locale'],\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 keys: ['device.low_memory'],\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 keys: ['device.low_power_mode'],\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 keys: ['device.manufacturer'],\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 keys: ['device.memory.estimated_capacity', 'deviceMemory'],\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 keys: ['device.memory_size'],\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 keys: ['device.model'],\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 keys: ['device.model_id'],\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: 'The user-assigned name of the mobile device.',\n type: 'string',\n keys: ['device.name'],\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'localhost',\n changelog: [\n { version: '0.24.0', prs: [647], description: 'Limit brief to mobile attributes and remove server_name alias' },\n { version: '0.21.0', prs: [602], description: 'Added server_name as an alias' },\n { version: '0.5.0', prs: [303], description: 'Added device.name attribute' },\n ],\n },\n 'device.online': {\n brief: 'Whether the device was online or not.',\n type: 'boolean',\n keys: ['device.online'],\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 keys: ['device.orientation'],\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 keys: ['device.processor_count', 'hardwareConcurrency'],\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 keys: ['device.processor_frequency'],\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 keys: ['device.screen_density'],\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 keys: ['device.screen_dpi'],\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 keys: ['device.screen_height_pixels'],\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 keys: ['device.screen_width_pixels'],\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 keys: ['device.simulator'],\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 keys: ['device.storage_size'],\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: \"The thermal state of the device. Based on Apple's `ProcessInfo.ThermalState` enum.\",\n type: 'string',\n keys: ['device.thermal_state'],\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 keys: ['device.timezone'],\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 keys: ['device.usable_memory'],\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 keys: ['sentry.dist', 'dist'],\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 status: 'backfill',\n },\n aliases: ['sentry.dist'],\n changelog: [{ version: '0.16.0', prs: [489], description: 'Added dist attribute' }],\n },\n 'django.function_name': {\n brief: 'The fully qualified name of a function used in a Django context.',\n type: 'string',\n keys: ['code.function.name', 'code.function', 'django.function_name'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'django.contrib.sessions.middleware.SessionMiddleware',\n examples: ['django.contrib.sessions.middleware.SessionMiddleware'],\n deprecation: {\n replacement: 'code.function.name',\n reason:\n 'This attribute is being deprecated in favor of code.function.name, which is the framework-agnostic replacement.',\n status: 'backfill',\n },\n aliases: ['code.function.name', 'code.function'],\n changelog: [{ version: '0.19.0', prs: [538], description: 'Added django.function_name attribute' }],\n },\n 'django.middleware_name': {\n brief: 'The name of the Django middleware.',\n type: 'string',\n keys: [\n 'middleware.name',\n 'django.middleware_name',\n 'litestar.middleware_name',\n 'starlette.middleware_name',\n 'starlite.middleware_name',\n ],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'AuthenticationMiddleware',\n examples: ['AuthenticationMiddleware'],\n deprecation: {\n replacement: 'middleware.name',\n reason:\n 'This attribute is being deprecated in favor of middleware.name, which is the framework-agnostic replacement.',\n status: 'backfill',\n },\n aliases: ['middleware.name'],\n changelog: [{ version: '0.19.0', prs: [520], description: 'Added django.middleware_name 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 keys: ['network.connection.effective_type', 'effectiveConnectionType'],\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 status: 'backfill',\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 keys: [\n 'sentry.environment',\n 'environment',\n 'resource.deployment.environment',\n 'resource.deployment.environment.name',\n ],\n applyScrubbing: {\n key: 'never',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'production',\n deprecation: {\n replacement: 'sentry.environment',\n status: 'normalize',\n },\n aliases: ['sentry.environment'],\n changelog: [\n { version: '0.19.0', prs: [427], description: 'Configured normalization' },\n { version: '0.1.0', prs: [61, 127] },\n { version: '0.0.0' },\n ],\n },\n 'error.type': {\n brief: 'Describes a class of error the operation ended with.',\n type: 'string',\n keys: ['error.type'],\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 keys: ['event.id'],\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 keys: ['event.name'],\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 keys: ['exception.escaped'],\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 keys: ['exception.message'],\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 keys: ['exception.stacktrace'],\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 keys: ['exception.type'],\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 keys: ['faas.coldstart'],\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 keys: ['faas.cron'],\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.document.collection': {\n brief:\n 'The name of the source on which the triggering operation was performed. For example, in Cloud Storage or S3 corresponds to the bucket name, and in Cosmos DB to the database name.',\n type: 'string',\n keys: ['faas.document.collection'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'myBucketName',\n examples: ['myBucketName', 'myDbName'],\n changelog: [{ version: '0.31.0', prs: [747], description: 'Added faas.document.collection attribute' }],\n },\n 'faas.document.name': {\n brief:\n 'The document name/table subjected to the operation. For example, in Cloud Storage or S3 is the name of the file, and in Cosmos DB the table name.',\n type: 'string',\n keys: ['faas.document.name'],\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'myFile.txt',\n examples: ['myFile.txt', 'myTableName'],\n changelog: [{ version: '0.31.0', prs: [747], description: 'Added faas.document.name attribute' }],\n },\n 'faas.document.operation': {\n brief: 'Describes the type of the operation that was performed on the data.',\n type: 'string',\n keys: ['faas.document.operation'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'insert',\n examples: ['insert', 'edit', 'delete'],\n changelog: [{ version: '0.31.0', prs: [747], description: 'Added faas.document.operation attribute' }],\n additionalContext: [\n 'Has the following list of well-known values. If one of them applies, then the respective value MUST be used; otherwise, a custom value MAY be used.',\n '`delete`: When an object is deleted.',\n '`edit`: When an object is modified.',\n '`insert`: When a new object is created.',\n ],\n },\n 'faas.document.time': {\n brief: 'A string containing the time when the data was accessed in the ISO 8601 format expressed in UTC.',\n type: 'string',\n keys: ['faas.document.time'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: '2020-01-23T13:47:06Z',\n examples: ['2020-01-23T13:47:06Z'],\n changelog: [{ version: '0.31.0', prs: [747], description: 'Added faas.document.time attribute' }],\n },\n 'faas.duration_in_ms': {\n brief: 'The duration a function took to run, in milliseconds.',\n type: 'integer',\n keys: ['faas.duration_in_ms'],\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 keys: ['faas.entry_point'],\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 keys: ['faas.invocation_id', 'aws.lambda.aws_request_id', 'faas.execution'],\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 status: 'backfill',\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 keys: ['cloud.resource_id', 'faas.id'],\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 status: 'backfill',\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 keys: ['faas.identity'],\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.instance': {\n brief:\n 'The execution environment ID as a string, that will be potentially reused for other invocations to the same function/function version.',\n type: 'string',\n keys: ['faas.instance'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: '2021/06/28/[$LATEST]2f399eb14537447da05ab2a2e39309de',\n examples: ['2021/06/28/[$LATEST]2f399eb14537447da05ab2a2e39309de'],\n changelog: [{ version: '0.31.0', prs: [748], description: 'Added faas.instance attribute' }],\n additionalContext: ['For AWS Lambda, use the (full) log stream name.'],\n },\n 'faas.invocation_id': {\n brief: 'The invocation ID of the current function invocation.',\n type: 'string',\n keys: ['faas.invocation_id', 'aws.lambda.aws_request_id', 'faas.execution'],\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 keys: ['faas.invoked_name'],\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 keys: ['faas.invoked_provider'],\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 keys: ['faas.invoked_region'],\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.max_memory': {\n brief: 'The amount of memory available to the serverless function, in bytes.',\n type: 'integer',\n keys: ['faas.max_memory'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 134217728,\n examples: [134217728, 1073741824],\n changelog: [{ version: '0.30.0', prs: [715], description: 'Added faas.max_memory attribute' }],\n additionalContext: [\n 'On AWS Lambda, multiply AWS_LAMBDA_FUNCTION_MEMORY_SIZE by 1,048,576 to convert the configured memory from MiB to bytes.',\n ],\n },\n 'faas.name': {\n brief: 'The name of the serverless function',\n type: 'string',\n keys: ['faas.name', 'aws.lambda.function_name'],\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 keys: ['faas.time'],\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 keys: ['faas.trigger'],\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 keys: ['faas.version', 'aws.lambda.function_version'],\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 keys: ['browser.web_vital.fcp.value', 'fcp'],\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 status: 'backfill',\n },\n aliases: ['browser.web_vital.fcp.value'],\n changelog: [{ version: '0.5.0', prs: [235] }],\n },\n 'file.path': {\n brief: 'Path to the file.',\n type: 'string',\n keys: ['file.path'],\n applyScrubbing: {\n key: 'auto',\n reason: 'File paths can contain end-user paths (e.g. from stack traces) that may be sensitive.',\n },\n isInOtel: true,\n visibility: 'public',\n example: '/home/user/example.txt',\n changelog: [{ version: '0.17.0', prs: [458], description: 'Added file.path attribute' }],\n },\n 'file.size': {\n brief: 'File size in bytes.',\n type: 'integer',\n keys: ['file.size'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 1024,\n changelog: [{ version: '0.17.0', prs: [458], description: 'Added file.size attribute' }],\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 keys: ['flag.evaluation.'],\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 keys: ['browser.web_vital.fp.value', 'fp'],\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 status: 'backfill',\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 keys: ['app.vitals.frames.delay.value', 'frames.delay', 'mobile.frames_delay'],\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 status: 'backfill',\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 searchAlias: {\n name: 'mobile.frames_delay',\n type: 'second',\n },\n },\n 'frames.frozen': {\n brief: 'The number of frozen frames rendered during the lifetime of the span.',\n type: 'integer',\n keys: ['app.vitals.frames.frozen.count', 'frames.frozen', 'mobile.frozen_frames', 'sentry.frames.frozen'],\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 status: 'backfill',\n },\n aliases: ['app.vitals.frames.frozen.count', 'sentry.frames.frozen'],\n changelog: [\n { version: '0.19.0', prs: [500], description: 'Added sentry.frames.frozen as an alias' },\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 searchAlias: {\n name: 'mobile.frozen_frames',\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 keys: ['app.vitals.frames.frozen.rate', 'frames_frozen_rate'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n deprecation: {\n replacement: 'app.vitals.frames.frozen.rate',\n reason:\n 'Replaced by app.vitals.frames.frozen.rate to align with the app.vitals.* namespace for mobile performance attributes',\n status: 'backfill',\n },\n aliases: ['app.vitals.frames.frozen.rate'],\n changelog: [\n { version: '0.19.0', prs: [493], description: 'Deprecated in favor of app.vitals.frames.frozen.rate' },\n { version: '0.7.0', prs: [362], description: 'Added frames_frozen_rate attribute' },\n ],\n },\n 'frames.slow': {\n brief: 'The number of slow frames rendered during the lifetime of the span.',\n type: 'integer',\n keys: ['app.vitals.frames.slow.count', 'frames.slow', 'mobile.slow_frames', 'sentry.frames.slow'],\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 status: 'backfill',\n },\n aliases: ['app.vitals.frames.slow.count', 'sentry.frames.slow'],\n changelog: [\n { version: '0.19.0', prs: [500], description: 'Added sentry.frames.slow as an alias' },\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 searchAlias: {\n name: 'mobile.slow_frames',\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 keys: ['app.vitals.frames.slow.rate', 'frames_slow_rate'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n deprecation: {\n replacement: 'app.vitals.frames.slow.rate',\n reason:\n 'Replaced by app.vitals.frames.slow.rate to align with the app.vitals.* namespace for mobile performance attributes',\n status: 'backfill',\n },\n aliases: ['app.vitals.frames.slow.rate'],\n changelog: [\n { version: '0.19.0', prs: [493], description: 'Deprecated in favor of app.vitals.frames.slow.rate' },\n { version: '0.7.0', prs: [362], description: 'Added frames_slow_rate attribute' },\n ],\n },\n 'frames.total': {\n brief: 'The number of total frames rendered during the lifetime of the span.',\n type: 'integer',\n keys: ['app.vitals.frames.total.count', 'frames.total', 'mobile.total_frames', 'sentry.frames.total'],\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 status: 'backfill',\n },\n aliases: ['app.vitals.frames.total.count', 'sentry.frames.total'],\n changelog: [\n { version: '0.19.0', prs: [500], description: 'Added sentry.frames.total as an alias' },\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 searchAlias: {\n name: 'mobile.total_frames',\n },\n },\n fs_error: {\n brief: 'The error message of a file system error.',\n type: 'string',\n keys: ['fs_error'],\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:\n 'This attribute is not part of the OpenTelemetry specification and error.type fits much better. The value changes from the full error message to the syscall error code, so the old value cannot be copied over.',\n },\n changelog: [\n {\n version: '0.23.0',\n prs: [638],\n description: 'Remove unnecessary transformation and change deprecation status to null.',\n },\n { version: '0.22.0', prs: [589], description: 'Transform fs_error into error.type' },\n { version: '0.1.0', prs: [61, 127] },\n { version: '0.0.0' },\n ],\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 keys: ['gcp.function.context.event_id'],\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 keys: ['gcp.function.context.event_type'],\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 keys: ['gcp.function.context.id'],\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 keys: ['gcp.function.context.resource'],\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 keys: ['gcp.function.context.source'],\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 keys: ['gcp.function.context.specversion'],\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 keys: ['gcp.function.context.time'],\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 keys: ['gcp.function.context.timestamp'],\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 keys: ['gcp.function.context.type'],\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 keys: ['gcp.project.id'],\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 gcp_region: {\n brief: 'The geographical region the GCP resource is running',\n type: 'string',\n keys: ['cloud.region', 'aws_region', 'gcp_region'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'us-east-1',\n examples: ['us-east-1'],\n deprecation: {\n replacement: 'cloud.region',\n status: 'backfill',\n },\n aliases: ['cloud.region', 'aws_region'],\n changelog: [{ version: '0.19.0', prs: [535], description: 'Added gcp_region attribute' }],\n },\n 'gen_ai.agent.name': {\n brief: 'The name of the agent being used.',\n type: 'string',\n keys: ['gen_ai.agent.name'],\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 keys: ['gen_ai.context.utilization'],\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 keys: ['gen_ai.context.window_size'],\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 keys: ['gen_ai.conversation.id'],\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 keys: ['gen_ai.cost.cache_creation.input_tokens'],\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 — 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 keys: ['gen_ai.cost.cache_read.input_tokens'],\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 — 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 keys: ['gen_ai.cost.input_tokens'],\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 keys: ['gen_ai.cost.output_tokens'],\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 keys: ['gen_ai.cost.reasoning.output_tokens'],\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 — 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 keys: ['gen_ai.cost.total_tokens', 'ai.total_cost'],\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 keys: ['gen_ai.embeddings.input'],\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 keys: ['gen_ai.function_id'],\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 in the format `{role: \"...\", parts: [...]}`. The `role` must be `\"user\"`, `\"assistant\"`, `\"tool\"`, or `\"system\"`. Each part is an object with a `type`, such as `{type: \"text\", content: \"...\"}`. Other part types include `\"reasoning\"`, `\"tool_call\"`, and `\"tool_call_response\"`. Put the model\\'s thinking in a `{type: \"reasoning\", content: \"...\"}` part, not a `\"text\"` part. Sentry shows reasoning separately from user-visible messages. The legacy format `{role, content}` is also accepted. The first example shows this shape. Some operations use a different shape. See the additional context.',\n type: 'string',\n keys: [\n 'gen_ai.input.messages',\n 'ai.input_messages',\n 'ai.prompt',\n 'ai.prompt.messages',\n 'ai.texts',\n 'gen_ai.prompt',\n 'gen_ai.request.messages',\n ],\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\", \"response\": \"rainy, 57°F\"}]}]',\n examples: [\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\", \"response\": \"rainy, 57°F\"}]}]',\n '[{\"state\": \"I cannot log in, and I also want a refund for last month.\", \"questions\": {\"authIssue\": {\"type\": \"noul\", \"instructions\": \"Is there a login problem?\"}, \"department\": {\"type\": \"choice\", \"instructions\": \"Which team should handle this?\", \"criteria\": {\"billing\": \"Charges and refunds\", \"technical\": \"Bugs and outages\"}}}}]',\n '[{\"state\": \"Invoice INV-2291 from Northwind Supply, issued 2026-09-02, net 30. 4 pallets at $250.00 each, shipping $80.00. Contact: Dana Ruiz, Priya Shah.\", \"fields\": {\"invoice_number\": {\"type\": \"text\"}, \"due_date\": {\"type\": \"date\", \"instructions\": \"Issue date plus the net payment days\"}, \"total\": {\"type\": \"number\", \"decimals\": 2, \"unit\": \"USD\", \"instructions\": \"Amount due including shipping\"}, \"contacts\": {\"type\": \"list\", \"items\": \"text\"}, \"po_number\": {\"type\": \"text\", \"instructions\": \"Purchase order number\"}, \"days_to_pay\": {\"type\": \"estimate\", \"min\": 0, \"max\": 120, \"step\": 1, \"instructions\": \"Days after issue until this invoice is paid\"}}}]',\n ],\n aliases: ['ai.texts', 'ai.prompt.messages', 'gen_ai.prompt', 'ai.prompt'],\n changelog: [\n {\n version: '0.28.0',\n prs: [728],\n description:\n 'Describe the extraction message shape for gen_ai.extract and move operation-specific shapes to additional context',\n },\n { version: '0.26.0', prs: [650], description: 'Describe the evaluation message shape for gen_ai.evaluate' },\n { version: '0.21.0', prs: [583], description: 'Added ai.prompt as an alias' },\n { version: '0.5.0', prs: [264] },\n { version: '0.4.0', prs: [221] },\n ],\n additionalContext: [\n 'For `gen_ai.decide` operations, the array holds one object `{state: ..., questions: {...}}`. `state` is the evaluated state. `questions` holds the questions keyed by name, as the caller passed them. Replace binary data in `state`, including `data:` URLs, with the string `\"[Blob substitute]\"`. The second example shows this shape.',\n 'For `gen_ai.extract` operations, the array holds one object `{state?: string, fields: {: }, images?: string[], reference_date?: string, options?: {...}}`. This object is the request body as the caller passed it, without `model`. Do not change the values, and leave out the keys that the caller did not set. Do not record the image data. Replace each image with the string `\"[Blob substitute]\"`. `state` is the text that the model reads. `fields` holds the field specs keyed by field name. Set the model in `gen_ai.request.model`. The third example shows this shape.',\n ],\n },\n 'gen_ai.memory.query.text': {\n brief:\n \"The search query used to retrieve memories. Only applicable to 'search_memory'. Opt-in: instrumentations SHOULD NOT capture this by default and SHOULD gate it behind explicit user opt-in, as it may contain sensitive information.\",\n type: 'string',\n keys: ['gen_ai.memory.query.text'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'user dietary preferences',\n examples: ['user dietary preferences', 'past flight bookings'],\n changelog: [{ version: '0.27.0', prs: [653], description: 'Added gen_ai.memory.query.text attribute' }],\n },\n 'gen_ai.memory.records': {\n brief:\n 'The memory records stored or retrieved in a memory operation. Stringified JSON array; each element follows the OTel MemoryRecord schema: {content (required), id, metadata, score}. Opt-in: instrumentations SHOULD NOT capture this by default and SHOULD gate it behind explicit user opt-in, as it may contain sensitive information including user/PII data.',\n type: 'string',\n keys: ['gen_ai.memory.records'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example:\n '[{\"content\": \"User prefers dark mode\", \"id\": \"mem_123\", \"score\": 0.95}, {\"content\": {\"preference\": \"vegetarian meals\", \"confidence\": 0.9}, \"metadata\": {\"source\": \"profile\"}}]',\n examples: [\n '[{\"content\": \"User prefers dark mode\", \"id\": \"mem_123\", \"score\": 0.95}, {\"content\": {\"preference\": \"vegetarian meals\", \"confidence\": 0.9}, \"metadata\": {\"source\": \"profile\"}}]',\n ],\n changelog: [{ version: '0.27.0', prs: [653], description: 'Added gen_ai.memory.records attribute' }],\n },\n 'gen_ai.memory.record.count': {\n brief:\n \"The number of memory records relevant to the operation. For 'search_memory' this is the number returned; for 'create_memory', 'update_memory', 'upsert_memory' and 'delete_memory' it is the number the operation attempted to create, modify, create-or-update, or delete respectively.\",\n type: 'integer',\n keys: ['gen_ai.memory.record.count'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 3,\n examples: [3],\n changelog: [{ version: '0.27.0', prs: [653], description: 'Added gen_ai.memory.record.count attribute' }],\n },\n 'gen_ai.memory.record.id': {\n brief:\n \"The unique identifier of the memory record. Set when the operation applies to a specific memory record. For 'delete_memory', its absence may indicate the operation intends to delete all memory records in the store.\",\n type: 'string',\n keys: ['gen_ai.memory.record.id'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'mem_5j66UpCpwteGg4YSxUnt7lPY',\n examples: ['mem_5j66UpCpwteGg4YSxUnt7lPY'],\n changelog: [{ version: '0.27.0', prs: [653], description: 'Added gen_ai.memory.record.id attribute' }],\n },\n 'gen_ai.memory.store.id': {\n brief:\n 'The unique identifier of the memory store the operation targets. What this maps to is implementation-specific (e.g. a collection, namespace, or vector index) and SHOULD be documented per integration.',\n type: 'string',\n keys: ['gen_ai.memory.store.id'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'ms_abc123',\n examples: ['ms_abc123', 'user-preferences-store', 'seer-knowledge'],\n changelog: [{ version: '0.27.0', prs: [653], description: 'Added gen_ai.memory.store.id attribute' }],\n },\n 'gen_ai.operation.name': {\n brief: 'The name of the operation being performed.',\n type: 'string',\n keys: ['gen_ai.operation.name'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'chat',\n changelog: [\n { version: '0.28.0', prs: [728], description: \"Added 'extract' to the well-known values\" },\n {\n version: '0.27.0',\n prs: [653, 680],\n description:\n \"Added memory operation values, 'evaluate', and 'decide' to the well-known values; deprecated 'evaluate' in favor of 'decide'\",\n },\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. 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 keys: ['gen_ai.operation.type'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'tool',\n changelog: [\n { version: '0.27.0', prs: [653], description: \"Added 'memory' value\" },\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 'Messages returned by the model where each message represents a specific model response (choice, candidate). It has to be a stringified version of an array of message objects in the format `{role: \"assistant\", parts: [...]}`, which can include text responses and tool calls. Each part is an object with a `type`, such as `{type: \"text\", content: \"...\"}`. Other part types include `\"reasoning\"` and `\"tool_call\"`. Put the model\\'s thinking in a `{type: \"reasoning\", content: \"...\"}` part, not a `\"text\"` part. Sentry shows reasoning separately from user-visible messages. The first example shows this shape. Some operations use a different shape. See the additional context.',\n type: 'string',\n keys: [\n 'gen_ai.output.messages',\n 'ai.response.text',\n 'ai.response.toolCalls',\n 'ai.responses',\n 'ai.tool_calls',\n 'gen_ai.response.text',\n 'gen_ai.response.tool_calls',\n ],\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°F.\"}]}]',\n examples: [\n '[{\"role\": \"assistant\", \"parts\": [{\"type\": \"text\", \"content\": \"The weather in Paris is currently rainy with a temperature of 57°F.\"}]}]',\n '[{\"answers\": {\"authIssue\": {\"type\": \"noul\", \"noul\": 0.98}, \"department\": {\"type\": \"choice\", \"choice\": \"billing\", \"confidence\": 0.28, \"probabilities\": {\"billing\": 0.64, \"technical\": 0.36}}}}]',\n '[{\"answers\": {\"invoice_number\": {\"type\": \"text\", \"p_null\": 3.8e-10, \"span\": [8, 16], \"guess\": \"INV-2291\", \"confidence\": 1, \"value\": \"INV-2291\"}, \"due_date\": {\"type\": \"date\", \"p_null\": 1.9e-08, \"guess\": \"2026-10-02\", \"confidence\": 0.9999, \"value\": \"2026-10-02\"}, \"total\": {\"type\": \"number\", \"p_null\": 2.3e-08, \"guess\": 1080, \"confidence\": 0.9999, \"value\": 1080}, \"contacts\": {\"type\": \"list\", \"value\": [\"Dana Ruiz\", \"Priya Shah\"], \"spans\": [[120, 129], [131, 141]], \"confidence\": 0.9999}, \"po_number\": {\"type\": \"text\", \"p_null\": 1, \"span\": [8, 16], \"guess\": \"INV-2291\", \"confidence\": 0.9995, \"value\": null}, \"days_to_pay\": {\"type\": \"estimate\", \"value\": 30, \"mean\": 29.535, \"median\": 30, \"p10\": 21, \"p90\": 38, \"p_below\": 5.9e-06, \"p_above\": 1.2e-05}}, \"truncated\": false}]',\n ],\n aliases: ['ai.response.toolCalls', 'ai.response.text'],\n changelog: [\n { version: '0.34.0', prs: [802], description: 'Aligned the brief with OTel and added additional context.' },\n {\n version: '0.28.0',\n prs: [728],\n description:\n 'Describe the extraction message shape for gen_ai.extract and move operation-specific shapes to additional context',\n },\n { version: '0.26.0', prs: [650], description: 'Describe the evaluation message shape for gen_ai.evaluate' },\n { version: '0.4.0', prs: [221] },\n ],\n additionalContext: [\n 'Each message represents a single output choice/candidate generated by the model. Each message corresponds to exactly one generation (choice/candidate) and vice versa - one choice cannot be split across multiple messages or one message cannot contain parts from multiple choices.',\n 'When an operation ends in an error, this attribute is only set when the operation produced output, including partial streamed output. Instrumentation does not synthesize output content for a failed operation.',\n 'For `gen_ai.decide` operations, the array holds one object `{answers: {...}}`. `answers` holds the answers keyed by question name, as the provider returned them. The second example shows this shape.',\n 'For `gen_ai.extract` operations, the array holds one object `{answers: {: }, truncated: boolean, state_text?: string}`. This object is the response body as the provider returned it, without `model` and `usage`. Do not change the values. `answers` holds one answer for each field in the input, keyed by field name. A field that the model cannot determine has a `value` of `null`. `span` and `spans` are `[start, end]` character offsets into `state` (or into `state_text`, if the provider returns it), and `end` is exclusive. Set the model in `gen_ai.response.model` and the token counts in `gen_ai.usage.input_tokens` and `gen_ai.usage.output_tokens`. The third example shows this shape.',\n ],\n },\n 'gen_ai.pipeline.name': {\n brief: 'Name of the AI pipeline or chain being executed.',\n type: 'string',\n keys: ['gen_ai.pipeline.name', 'ai.pipeline.name', 'langchain.chain.name'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'Autofix Pipeline',\n aliases: ['ai.pipeline.name', 'langchain.chain.name'],\n changelog: [\n { version: '0.22.0', prs: [599], description: 'Added langchain.chain.name as an alias' },\n { version: '0.1.0', prs: [76, 127] },\n ],\n },\n 'gen_ai.prompt': {\n brief: 'The input messages sent to the model',\n type: 'string',\n keys: [\n 'gen_ai.input.messages',\n 'ai.input_messages',\n 'ai.prompt',\n 'ai.prompt.messages',\n 'ai.texts',\n 'gen_ai.prompt',\n 'gen_ai.request.messages',\n ],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: '[{\"role\": \"user\", \"message\": \"hello\"}]',\n deprecation: {\n replacement: 'gen_ai.input.messages',\n reason: 'Deprecated from OTEL, use gen_ai.input.messages with the new format instead.',\n status: 'backfill',\n },\n aliases: ['gen_ai.input.messages', 'ai.texts', 'ai.prompt.messages', 'ai.prompt'],\n changelog: [\n { version: '0.21.0', prs: [583], description: 'Added ai.prompt as an alias' },\n { version: '0.1.0', prs: [74, 108, 119] },\n { version: '0.0.0' },\n ],\n },\n 'gen_ai.prompt.name': {\n brief: 'The name of the prompt that uniquely identifies it.',\n type: 'string',\n keys: ['gen_ai.prompt.name', 'mcp.prompt.name'],\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.prompt.variable.': {\n brief:\n 'Variables supplied to the prompt template. The is the variable name, and the value is the variable value serialized as a string.',\n type: 'string',\n keys: ['gen_ai.prompt.variable.'],\n applyScrubbing: {\n key: 'auto',\n reason: 'Prompt variables contain user input and may include sensitive information',\n },\n isInOtel: true,\n visibility: 'public',\n hasDynamicSuffix: true,\n example: \"gen_ai.prompt.variable.language='French'\",\n examples: [\"gen_ai.prompt.variable.language='French'\", \"gen_ai.prompt.variable.topic='weather'\"],\n changelog: [\n { version: '0.27.0', prs: [671], description: 'Added the OpenTelemetry convention for prompt variables' },\n ],\n additionalContext: [\n 'Capture only when the user explicitly opts in to recording prompt inputs. In MCP, these values are the arguments supplied in prompts/get requests.',\n ],\n },\n 'gen_ai.provider.name': {\n brief: 'The Generative AI provider as identified by the client or server instrumentation.',\n type: 'string',\n keys: ['gen_ai.provider.name', 'ai.model.provider', 'gen_ai.system'],\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 keys: ['gen_ai.tool.definitions', 'ai.prompt.tools', 'ai.tools', 'gen_ai.request.available_tools'],\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 status: 'normalize',\n },\n aliases: ['gen_ai.tool.definitions'],\n changelog: [\n { version: '0.22.0', prs: [595], description: 'Added gen_ai.tool.definitions as an alias' },\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 keys: ['gen_ai.request.frequency_penalty', 'ai.frequency_penalty'],\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 keys: ['gen_ai.request.max_tokens'],\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 keys: [\n 'gen_ai.input.messages',\n 'ai.input_messages',\n 'ai.prompt',\n 'ai.prompt.messages',\n 'ai.texts',\n 'gen_ai.prompt',\n 'gen_ai.request.messages',\n ],\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 status: 'normalize',\n },\n aliases: ['ai.input_messages'],\n changelog: [\n { version: '0.34.0', prs: [801], description: 'Revert deprecation status from `transform` to `normalize`.' },\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 keys: ['gen_ai.request.model', 'ai.model.id', 'ai.model_id'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'gpt-4-turbo-preview',\n aliases: ['ai.model_id', 'ai.model.id'],\n changelog: [\n { version: '0.21.0', prs: [583], description: 'Added ai.model.id as an alias' },\n { version: '0.1.0', prs: [62, 127] },\n ],\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 keys: ['gen_ai.request.presence_penalty', 'ai.presence_penalty'],\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.level': {\n brief: 'The reasoning or thinking effort level requested for a GenAI model. Supported values vary by provider.',\n type: 'string',\n keys: ['gen_ai.request.reasoning.level'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'high',\n changelog: [{ version: '0.17.0', prs: [502], description: 'Added gen_ai.request.reasoning.level attribute' }],\n },\n 'gen_ai.request.schema': {\n brief: 'The stringified JSON schema the model output must conform to.',\n type: 'string',\n keys: ['gen_ai.request.schema'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: '{\"type\":\"object\",\"properties\":{\"city\":{\"type\":\"string\"}}}',\n examples: ['{\"type\":\"object\",\"properties\":{\"city\":{\"type\":\"string\"}}}'],\n deprecation: {\n reason:\n 'This attribute is deprecated. The Sentry conventions have no replacement for the requested output schema.',\n },\n changelog: [{ version: '0.21.0', prs: [583], description: 'Added gen_ai.request.schema 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 keys: ['gen_ai.request.seed', 'ai.seed'],\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 keys: ['gen_ai.request.stop_sequences'],\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 keys: ['gen_ai.request.temperature', 'ai.temperature'],\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 keys: ['gen_ai.request.top_k', 'ai.top_k'],\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 keys: ['gen_ai.request.top_p', 'ai.top_p'],\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_reason': {\n brief: 'The reason why the model stopped generating (singular form).',\n type: 'string',\n keys: ['gen_ai.response.finish_reasons', 'ai.finish_reason', 'gen_ai.response.finish_reason'],\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 status: 'normalize',\n },\n aliases: ['gen_ai.response.finish_reasons'],\n changelog: [{ version: '0.19.0', prs: [498], description: 'Added gen_ai.response.finish_reason attribute' }],\n },\n 'gen_ai.response.finish_reasons': {\n brief: 'The reason why the model stopped generating.',\n type: 'string',\n keys: ['gen_ai.response.finish_reasons', 'ai.finish_reason', 'gen_ai.response.finish_reason'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'COMPLETE',\n aliases: ['ai.finish_reason', 'gen_ai.response.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 keys: ['gen_ai.response.id', 'ai.generation_id', 'ai.response.id'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'gen_123abc',\n aliases: ['ai.generation_id', 'ai.response.id'],\n changelog: [\n { version: '0.21.0', prs: [583], description: 'Added ai.response.id as an alias' },\n { version: '0.1.0', prs: [57, 127] },\n ],\n },\n 'gen_ai.response.model': {\n brief: 'The vendor-specific ID of the model used.',\n type: 'string',\n keys: ['gen_ai.response.model', 'ai.response.model'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'gpt-4',\n aliases: ['ai.response.model'],\n changelog: [\n { version: '0.21.0', prs: [583], description: 'Added ai.response.model as an alias' },\n { version: '0.1.0', prs: [127] },\n { version: '0.0.0' },\n ],\n },\n 'gen_ai.response.object': {\n brief: 'The type of the object returned by the model.',\n type: 'string',\n keys: ['gen_ai.response.object'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'chat.completion',\n examples: ['chat.completion'],\n deprecation: {\n reason:\n 'This attribute is deprecated. The Sentry conventions have no replacement for the raw response object type.',\n },\n changelog: [{ version: '0.21.0', prs: [583], description: 'Added gen_ai.response.object attribute' }],\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 keys: ['gen_ai.response.streaming', 'ai.streaming'],\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 keys: [\n 'gen_ai.output.messages',\n 'ai.response.text',\n 'ai.response.toolCalls',\n 'ai.responses',\n 'ai.tool_calls',\n 'gen_ai.response.text',\n 'gen_ai.response.tool_calls',\n ],\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°F\", \"The weather in London is sunny and warm, with temperatures around 65°F\"]',\n deprecation: {\n replacement: 'gen_ai.output.messages',\n status: 'normalize',\n },\n changelog: [\n { version: '0.34.0', prs: [801], description: 'Revert deprecation status from `transform` to `normalize`.' },\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:\n 'Time from the start of a logical inference operation to the first chunk in its streaming response, in seconds.',\n type: 'double',\n keys: ['gen_ai.response.time_to_first_chunk', 'gen_ai.response.time_to_first_token'],\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: [\n { version: '0.34.0', prs: [795], description: 'Aligned the brief with OTel and added additional context.' },\n { version: '0.11.0', prs: [418], description: 'Added gen_ai.response.time_to_first_chunk attribute' },\n ],\n additionalContext: [\n 'A chunk is a decoded provider stream event carrying new, non-empty output: text, refusals, reasoning (including opaque payloads), audio, images, or tool-call names or arguments. Empty start events or events carrying only usage, roles, IDs, signatures, keep-alives, progress/status updates, or end markers are not chunks. Chunk boundaries follow provider events, not TCP reads, HTTP frames, or extra SDK callbacks.',\n 'Measure the time from the start of the logical inference operation, before authentication and the first attempt, to when the first chunk is fully received by the client, before application processing.',\n 'Set this attribute when the first chunk is received and do not set it if no chunk is received.',\n ],\n },\n 'gen_ai.response.time_to_first_token': {\n brief:\n 'Time from the start of a logical inference operation to the first chunk in its streaming response, in seconds.',\n type: 'double',\n keys: ['gen_ai.response.time_to_first_chunk', 'gen_ai.response.time_to_first_token'],\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 status: 'backfill',\n },\n aliases: ['gen_ai.response.time_to_first_chunk'],\n changelog: [\n { version: '0.34.0', prs: [795], description: 'Aligned the brief with OTel and added additional context' },\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 additionalContext: [\n 'A chunk is a decoded provider stream event carrying new, non-empty output: text, refusals, reasoning (including opaque payloads), audio, images, or tool-call names or arguments. Empty start events or events carrying only usage, roles, IDs, signatures, keep-alives, progress/status updates, or end markers are not chunks. Chunk boundaries follow provider events, not TCP reads, HTTP frames, or extra SDK callbacks.',\n 'Measure the time from the start of the logical inference operation, before authentication and the first attempt, to when the first chunk is fully received by the client, before application processing.',\n 'Set this attribute when the first chunk is received and do not set it if no chunk is received.',\n ],\n },\n 'gen_ai.response.tokens_per_second': {\n brief: 'The total output tokens per seconds throughput',\n type: 'double',\n keys: ['gen_ai.response.tokens_per_second'],\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 keys: [\n 'gen_ai.output.messages',\n 'ai.response.text',\n 'ai.response.toolCalls',\n 'ai.responses',\n 'ai.tool_calls',\n 'gen_ai.response.text',\n 'gen_ai.response.tool_calls',\n ],\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 status: 'normalize',\n },\n changelog: [\n { version: '0.34.0', prs: [801], description: 'Revert deprecation status from `transform` to `normalize`.' },\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 keys: ['gen_ai.provider.name', 'ai.model.provider', 'gen_ai.system'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'openai',\n deprecation: {\n replacement: 'gen_ai.provider.name',\n status: 'normalize',\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 message or instructions provided to the GenAI model separately from the chat history.',\n type: 'string',\n keys: ['gen_ai.system_instructions', 'ai.preamble', 'gen_ai.system.message'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example:\n '[{\"type\": \"text\", \"content\": \"You are a helpful assistant.\"}, {\"type\": \"text\", \"content\": \"Be concise and clear.\"}]',\n aliases: ['ai.preamble'],\n changelog: [\n {\n version: '0.34.0',\n prs: [790, 791],\n description:\n 'Clarify that messages in the chat history only belong in gen_ai.input.messages. Remove informal format description from the brief to prevent duplication with the structured schema.',\n },\n { version: '0.5.0', prs: [264] },\n { version: '0.4.0', prs: [221] },\n ],\n additionalContext: [\n 'Instructions that are part of the chat history are recorded in the gen_ai.input.messages attribute instead.',\n ],\n },\n 'gen_ai.system.message': {\n brief: 'The system instructions passed to the model.',\n type: 'string',\n keys: ['gen_ai.system_instructions', 'ai.preamble', 'gen_ai.system.message'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'You are a helpful assistant',\n deprecation: {\n replacement: 'gen_ai.system_instructions',\n status: 'backfill',\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.',\n type: 'string',\n keys: ['gen_ai.tool.call.arguments', 'ai.toolCall.args', 'gen_ai.tool.input'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: '{\"location\": \"Paris\"}',\n aliases: ['gen_ai.tool.input', 'ai.toolCall.args'],\n changelog: [\n {\n version: '0.34.0',\n prs: [793],\n description:\n 'Remove informal format description from the brief to prevent duplication with the structured schema.',\n },\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.',\n type: 'string',\n keys: [\n 'gen_ai.tool.call.result',\n 'ai.toolCall.result',\n 'anthropic.tool_result.content',\n 'gen_ai.tool.message',\n 'gen_ai.tool.output',\n 'mcp.tool.result.content',\n ],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'rainy, 57°F',\n aliases: [\n 'gen_ai.tool.output',\n 'gen_ai.tool.message',\n 'mcp.tool.result.content',\n 'ai.toolCall.result',\n 'anthropic.tool_result.content',\n ],\n changelog: [\n {\n version: '0.34.0',\n prs: [794],\n description:\n 'Remove informal format description from the brief to prevent duplication with the structured schema.',\n },\n { version: '0.5.0', prs: [265] },\n { version: '0.4.0', prs: [221] },\n ],\n },\n 'gen_ai.tool.call.result.size': {\n brief: 'The UTF-8 byte length of the serialized tool call result, measured before truncation.',\n type: 'integer',\n keys: ['gen_ai.tool.call.result.size'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 0,\n examples: [0, 1024],\n changelog: [{ version: '0.28.0', prs: [679], description: 'Added gen_ai.tool.call.result.size attribute' }],\n additionalContext: [\n 'The value is a non-negative byte count, not a token count, character count, or in-memory object size. It excludes span and envelope overhead.',\n 'Use 0 for an empty string result. Omit this attribute when the tool result is unavailable; do not treat missing output as zero.',\n ],\n searchAlias: {\n name: 'gen_ai.tool.call.result.size',\n type: 'byte',\n },\n },\n 'gen_ai.tool.definitions': {\n brief:\n 'The list of source system tool definitions available to the GenAI agent or model. It has to be a stringified version of an array of objects.',\n type: 'string',\n keys: ['gen_ai.tool.definitions', 'ai.prompt.tools', 'ai.tools', 'gen_ai.request.available_tools'],\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 aliases: ['gen_ai.request.available_tools'],\n changelog: [\n { version: '0.22.0', prs: [595], description: 'Added gen_ai.request.available_tools as an alias' },\n { version: '0.4.0', prs: [221] },\n ],\n },\n 'gen_ai.tool.description': {\n brief: 'The description of the tool being used.',\n type: 'string',\n keys: ['gen_ai.tool.description'],\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 keys: ['gen_ai.tool.call.arguments', 'ai.toolCall.args', 'gen_ai.tool.input'],\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 status: 'normalize',\n },\n aliases: ['gen_ai.tool.call.arguments', 'ai.toolCall.args'],\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 keys: [\n 'gen_ai.tool.call.result',\n 'ai.toolCall.result',\n 'anthropic.tool_result.content',\n 'gen_ai.tool.message',\n 'gen_ai.tool.output',\n 'mcp.tool.result.content',\n ],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'rainy, 57°F',\n deprecation: {\n replacement: 'gen_ai.tool.call.result',\n status: 'normalize',\n },\n aliases: [\n 'gen_ai.tool.call.result',\n 'gen_ai.tool.output',\n 'mcp.tool.result.content',\n 'ai.toolCall.result',\n 'anthropic.tool_result.content',\n ],\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 keys: ['gen_ai.tool.name', 'ai.function_call', 'mcp.tool.name'],\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 keys: [\n 'gen_ai.tool.call.result',\n 'ai.toolCall.result',\n 'anthropic.tool_result.content',\n 'gen_ai.tool.message',\n 'gen_ai.tool.output',\n 'mcp.tool.result.content',\n ],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'rainy, 57°F',\n deprecation: {\n replacement: 'gen_ai.tool.call.result',\n status: 'normalize',\n },\n aliases: [\n 'gen_ai.tool.call.result',\n 'gen_ai.tool.message',\n 'mcp.tool.result.content',\n 'ai.toolCall.result',\n 'anthropic.tool_result.content',\n ],\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 keys: ['gen_ai.tool.type'],\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 keys: [\n 'gen_ai.usage.cache_creation.input_tokens',\n 'gen_ai.usage.cache_creation_input_tokens',\n 'gen_ai.usage.input_tokens.cache_write',\n ],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 20,\n aliases: ['gen_ai.usage.input_tokens.cache_write', 'gen_ai.usage.cache_creation_input_tokens'],\n changelog: [\n { version: '0.24.0', prs: [582], description: 'Added gen_ai.usage.cache_creation_input_tokens as an alias' },\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_creation_input_tokens': {\n brief: 'The number of tokens written to the cache when processing the AI input (prompt).',\n type: 'integer',\n keys: [\n 'gen_ai.usage.cache_creation.input_tokens',\n 'gen_ai.usage.cache_creation_input_tokens',\n 'gen_ai.usage.input_tokens.cache_write',\n ],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 100,\n examples: [100],\n deprecation: {\n replacement: 'gen_ai.usage.cache_creation.input_tokens',\n reason: 'This attribute is being deprecated in favor of gen_ai.usage.cache_creation.input_tokens.',\n status: 'backfill',\n },\n aliases: ['gen_ai.usage.cache_creation.input_tokens', 'gen_ai.usage.input_tokens.cache_write'],\n changelog: [\n { version: '0.24.0', prs: [582], description: 'Added gen_ai.usage.cache_creation_input_tokens attribute' },\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 keys: [\n 'gen_ai.usage.cache_read.input_tokens',\n 'gen_ai.usage.cache_read_input_tokens',\n 'gen_ai.usage.input_tokens.cached',\n ],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 50,\n aliases: ['gen_ai.usage.input_tokens.cached', 'gen_ai.usage.cache_read_input_tokens'],\n changelog: [\n { version: '0.24.0', prs: [582], description: 'Added gen_ai.usage.cache_read_input_tokens as an alias' },\n { version: '0.11.0', prs: [418], description: 'Added gen_ai.usage.cache_read.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 'This is a subset of gen_ai.usage.input_tokens, not an independent count. Do not sum this with gen_ai.usage.input_tokens — it is already included.',\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 keys: [\n 'gen_ai.usage.cache_read.input_tokens',\n 'gen_ai.usage.cache_read_input_tokens',\n 'gen_ai.usage.input_tokens.cached',\n ],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 50,\n examples: [50],\n deprecation: {\n replacement: 'gen_ai.usage.cache_read.input_tokens',\n reason: 'This attribute is being deprecated in favor of gen_ai.usage.cache_read.input_tokens.',\n status: 'backfill',\n },\n aliases: ['gen_ai.usage.cache_read.input_tokens', 'gen_ai.usage.input_tokens.cached'],\n changelog: [{ version: '0.24.0', prs: [582], description: 'Added gen_ai.usage.cache_read_input_tokens attribute' }],\n },\n 'gen_ai.usage.completion_tokens': {\n brief: 'The number of tokens used in the GenAI response (completion).',\n type: 'integer',\n keys: ['gen_ai.usage.output_tokens', 'ai.completion_tokens.used', 'gen_ai.usage.completion_tokens'],\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 status: 'backfill',\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 keys: ['gen_ai.usage.input_tokens', 'ai.prompt_tokens.used', 'gen_ai.usage.prompt_tokens'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 100,\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 — 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 keys: [\n 'gen_ai.usage.cache_read.input_tokens',\n 'gen_ai.usage.cache_read_input_tokens',\n 'gen_ai.usage.input_tokens.cached',\n ],\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 status: 'backfill',\n },\n aliases: ['gen_ai.usage.cache_read.input_tokens', 'gen_ai.usage.cache_read_input_tokens'],\n changelog: [\n { version: '0.24.0', prs: [582], description: 'Added gen_ai.usage.cache_read_input_tokens as an alias' },\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 — 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 keys: [\n 'gen_ai.usage.cache_creation.input_tokens',\n 'gen_ai.usage.cache_creation_input_tokens',\n 'gen_ai.usage.input_tokens.cache_write',\n ],\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 status: 'backfill',\n },\n aliases: ['gen_ai.usage.cache_creation.input_tokens', 'gen_ai.usage.cache_creation_input_tokens'],\n changelog: [\n { version: '0.24.0', prs: [582], description: 'Added gen_ai.usage.cache_creation_input_tokens as an alias' },\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 keys: ['gen_ai.usage.output_tokens', 'ai.completion_tokens.used', 'gen_ai.usage.completion_tokens'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 130,\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 — 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 keys: ['gen_ai.usage.reasoning.output_tokens', 'gen_ai.usage.output_tokens.reasoning'],\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 status: 'backfill',\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 — 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 keys: ['gen_ai.usage.input_tokens', 'ai.prompt_tokens.used', 'gen_ai.usage.prompt_tokens'],\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 status: 'backfill',\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 keys: ['gen_ai.usage.reasoning.output_tokens', 'gen_ai.usage.output_tokens.reasoning'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 30,\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 — 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 tokens)',\n type: 'integer',\n keys: ['gen_ai.usage.total_tokens', 'ai.total_tokens.used', 'ai.usage.tokens'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 230,\n aliases: ['ai.total_tokens.used', 'ai.usage.tokens'],\n changelog: [\n { version: '0.21.0', prs: [583], description: 'Added ai.usage.tokens as an alias' },\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 — they are already included.',\n ],\n },\n 'graphql.document': {\n brief: 'The GraphQL document being executed.',\n type: 'string',\n keys: ['graphql.document', 'graphql.source'],\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 aliases: ['graphql.source'],\n changelog: [\n { version: '0.21.0', prs: [584], description: 'Added graphql.source as an alias' },\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 keys: ['graphql.operation.name'],\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 keys: ['graphql.operation.type'],\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 'graphql.processing.type': {\n brief: 'The type of processing represented by this span.',\n type: 'string',\n keys: ['graphql.processing.type'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'parse',\n examples: ['parse', 'validate', 'execute', 'resolve'],\n changelog: [{ version: '0.21.0', prs: [572], description: 'Added graphql.processing.type attribute' }],\n additionalContext: [\n 'Well-known values are request, parse, validate, variable_coercion, plan, execute, subscription_event, step_execute, resolve, dataloader_dispatch, dataloader_batch and _OTHER. Use one of these if it applies, otherwise a custom value.',\n 'Not to be confused with graphql.operation.type, which holds the GraphQL operation type (query, mutation, subscription) and only applies to spans that run an operation.',\n ],\n },\n 'graphql.source': {\n brief: 'The GraphQL document being executed.',\n type: 'string',\n keys: ['graphql.document', 'graphql.source'],\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'query findBookById { bookById(id: ?) { name } }',\n examples: ['query findBookById { bookById(id: ?) { name } }'],\n deprecation: {\n replacement: 'graphql.document',\n reason:\n 'This attribute is being deprecated in favor of graphql.document, which is the OpenTelemetry name for the same value.',\n status: 'backfill',\n },\n aliases: ['graphql.document'],\n changelog: [{ version: '0.21.0', prs: [584], description: 'Added graphql.source attribute' }],\n },\n 'grpc.error.bad_request.field_violations': {\n brief:\n 'The individual field violations from a google.rpc.BadRequest error detail. Each entry is a JSON-encoded object with field, description, reason, and (optional) localized_message keys, mirroring google.rpc.BadRequest.FieldViolation.',\n type: 'string[]',\n keys: ['grpc.error.bad_request.field_violations'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: [\n '{\"field\":\"email\",\"description\":\"must be a valid email address\",\"reason\":\"FIELD_INVALID\",\"localized_message\":{\"locale\":\"en-US\",\"message\":\"Must be a valid email address\"}}',\n ],\n changelog: [\n { version: '0.17.0', prs: [460], description: 'Added grpc.error.bad_request.field_violations attribute' },\n ],\n },\n 'grpc.error.debug_info.detail': {\n brief:\n 'Additional debugging information, such as a server-side stack trace, from a google.rpc.DebugInfo error detail. SDKs should only send this attribute when sendDefaultPii is enabled or dataCollection is configured accordingly.',\n type: 'string',\n keys: ['grpc.error.debug_info.detail'],\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'at com.example.Service.method(Service.java:42)',\n changelog: [{ version: '0.17.0', prs: [460], description: 'Added grpc.error.debug_info.detail attribute' }],\n },\n 'grpc.error.debug_info.stack_entries': {\n brief:\n 'The server-side stack trace entries from a google.rpc.DebugInfo error detail. SDKs should only send this attribute when sendDefaultPii is enabled or dataCollection is configured accordingly.',\n type: 'string[]',\n keys: ['grpc.error.debug_info.stack_entries'],\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: false,\n visibility: 'public',\n example: ['com.example.Service.method(Service.java:42)', 'com.example.Server.handle(Server.java:100)'],\n changelog: [{ version: '0.17.0', prs: [460], description: 'Added grpc.error.debug_info.stack_entries attribute' }],\n },\n 'grpc.error.error_info.domain': {\n brief: 'The logical grouping to which the gRPC error reason belongs, from the google.rpc.ErrorInfo error detail.',\n type: 'string',\n keys: ['grpc.error.error_info.domain'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'example.sentry.io',\n changelog: [{ version: '0.17.0', prs: [460], description: 'Added grpc.error.error_info.domain attribute' }],\n },\n 'grpc.error.error_info.metadata.': {\n brief:\n 'Additional structured metadata attached to a google.rpc.ErrorInfo error detail, with being the metadata key name. SDKs should only send this attribute when sendDefaultPii is enabled or dataCollection is configured accordingly.',\n type: 'string',\n keys: ['grpc.error.error_info.metadata.'],\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: false,\n visibility: 'public',\n hasDynamicSuffix: true,\n example: \"grpc.error.error_info.metadata.user_id='123'\",\n changelog: [{ version: '0.17.0', prs: [460], description: 'Added grpc.error.error_info.metadata. attribute' }],\n },\n 'grpc.error.error_info.reason': {\n brief:\n 'The reason for the gRPC error, as defined by the service that generated it, from the google.rpc.ErrorInfo error detail.',\n type: 'string',\n keys: ['grpc.error.error_info.reason'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'FIELD_INVALID',\n changelog: [{ version: '0.17.0', prs: [460], description: 'Added grpc.error.error_info.reason attribute' }],\n },\n 'grpc.error.precondition_failure.violations': {\n brief:\n 'The individual precondition violations from a google.rpc.PreconditionFailure error detail. Each entry is a JSON-encoded object with type, subject, and description keys. SDKs should only send this attribute when sendDefaultPii is enabled or dataCollection is configured accordingly, since violation subjects may identify specific resources or users.',\n type: 'string[]',\n keys: ['grpc.error.precondition_failure.violations'],\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: false,\n visibility: 'public',\n example: ['{\"type\":\"TOS\",\"subject\":\"example.com/user/123\",\"description\":\"User must accept the terms of service\"}'],\n changelog: [\n { version: '0.17.0', prs: [460], description: 'Added grpc.error.precondition_failure.violations attribute' },\n ],\n },\n 'grpc.error.quota_failure.violations': {\n brief:\n 'The individual quota violations from a google.rpc.QuotaFailure error detail. Each entry is a JSON-encoded object with subject, description, api_service, quota_metric, quota_id, quota_dimensions, quota_value, and (optional) future_quota_value keys, mirroring google.rpc.QuotaFailure.Violation. SDKs should only send this attribute when sendDefaultPii is enabled or dataCollection is configured accordingly, since violation subjects may identify specific resources or users.',\n type: 'string[]',\n keys: ['grpc.error.quota_failure.violations'],\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: false,\n visibility: 'public',\n example: [\n '{\"subject\":\"clientip:127.0.0.1\",\"description\":\"Limit checks failed.\",\"api_service\":\"example.googleapis.com\",\"quota_metric\":\"example.googleapis.com/read_requests\",\"quota_id\":\"ReadRequestsPerMinutePerProject\",\"quota_dimensions\":{\"region\":\"us-central1\"},\"quota_value\":1000}',\n ],\n changelog: [{ version: '0.17.0', prs: [460], description: 'Added grpc.error.quota_failure.violations attribute' }],\n },\n 'grpc.error.resource_info.description': {\n brief:\n 'A description of the error that occurred while accessing the resource, from a google.rpc.ResourceInfo error detail.',\n type: 'string',\n keys: ['grpc.error.resource_info.description'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'Instance is not ready for the request.',\n changelog: [{ version: '0.17.0', prs: [460], description: 'Added grpc.error.resource_info.description attribute' }],\n },\n 'grpc.error.resource_info.owner': {\n brief:\n 'The owner of the resource being accessed (e.g. project or account owning it), from a google.rpc.ResourceInfo error detail. SDKs should only send this attribute when sendDefaultPii is enabled or dataCollection is configured accordingly.',\n type: 'string',\n keys: ['grpc.error.resource_info.owner'],\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'user@example.com',\n changelog: [{ version: '0.17.0', prs: [460], description: 'Added grpc.error.resource_info.owner attribute' }],\n },\n 'grpc.error.resource_info.resource_name': {\n brief:\n 'The name of the resource being accessed, from a google.rpc.ResourceInfo error detail. SDKs should only send this attribute when sendDefaultPii is enabled or dataCollection is configured accordingly.',\n type: 'string',\n keys: ['grpc.error.resource_info.resource_name'],\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'projects/example/instances/example-instance',\n changelog: [\n { version: '0.17.0', prs: [460], description: 'Added grpc.error.resource_info.resource_name attribute' },\n ],\n },\n 'grpc.error.resource_info.resource_type': {\n brief: 'The type of resource being accessed, from a google.rpc.ResourceInfo error detail.',\n type: 'string',\n keys: ['grpc.error.resource_info.resource_type'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'database',\n changelog: [\n { version: '0.17.0', prs: [460], description: 'Added grpc.error.resource_info.resource_type attribute' },\n ],\n },\n 'grpc.error.retry_info.retry_delay_ms': {\n brief:\n 'How long the client should wait before retrying the gRPC call, in milliseconds, from the google.rpc.RetryInfo error detail.',\n type: 'integer',\n keys: ['grpc.error.retry_info.retry_delay_ms'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 5000,\n changelog: [{ version: '0.17.0', prs: [460], description: 'Added grpc.error.retry_info.retry_delay_ms attribute' }],\n },\n 'hapi.ext.type': {\n brief: 'The request lifecycle extension point where the Hapi extension function runs.',\n type: 'string',\n keys: ['hapi.ext.type', 'server.ext.type'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'onRequest',\n examples: ['onRequest', 'onPreResponse'],\n aliases: ['server.ext.type'],\n changelog: [{ version: '0.28.0', prs: [741], description: 'Added hapi.ext.type attribute' }],\n },\n 'hapi.plugin.name': {\n brief: 'The name of the Hapi plugin that registered the route.',\n type: 'string',\n keys: ['hapi.plugin.name'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'hapi-swagger',\n examples: ['hapi-swagger'],\n changelog: [{ version: '0.28.0', prs: [741], description: 'Added hapi.plugin.name attribute' }],\n },\n 'hapi.type': {\n brief: 'The type of the Hapi layer that the span describes: `router`, `plugin`, or `server.ext`.',\n type: 'string',\n keys: ['hapi.type'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'router',\n examples: ['router', 'plugin', 'server.ext'],\n changelog: [{ version: '0.28.0', prs: [741], description: 'Added hapi.type attribute' }],\n },\n hardwareConcurrency: {\n brief: 'The number of logical CPU cores available.',\n type: 'string',\n keys: ['device.processor_count', 'hardwareConcurrency'],\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 status: 'backfill',\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 'heroku.dyno.name': {\n brief: 'Name of the Heroku dyno serving the request or emitting telemetry',\n type: 'string',\n keys: ['heroku.dyno.name'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'web.1',\n examples: ['web.1', 'web-12a34bcd56-7efgh'],\n changelog: [{ version: '0.31.0', prs: [772], description: 'Added heroku.dyno.name attribute' }],\n additionalContext: [\n 'A dyno name is distinct from the dyno ID or service.instance.id. Do not manufacture those identifiers from this value.',\n ],\n },\n 'heroku.error.code': {\n brief: 'Heroku error code reported by a router or platform log',\n type: 'string',\n keys: ['heroku.error.code'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'H12',\n examples: ['H12', 'R14', 'L10'],\n changelog: [{ version: '0.31.0', prs: [772], description: 'Added heroku.error.code attribute' }],\n additionalContext: ['Preserves the provider-specific code from the router code field or a platform error message.'],\n },\n 'heroku.error.description': {\n brief: 'Description of the Heroku error reported by a router or platform log',\n type: 'string',\n keys: ['heroku.error.description'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'Request timeout',\n examples: ['Request timeout', 'Memory quota exceeded'],\n changelog: [{ version: '0.31.0', prs: [772], description: 'Added heroku.error.description attribute' }],\n additionalContext: ['A router or platform error description does not imply that an exception was thrown'],\n },\n 'heroku.logplex.drain_token': {\n brief: 'Identifier of the Heroku log drain that delivered the log, from the Logplex-Drain-Token header',\n type: 'string',\n keys: ['heroku.logplex.drain_token'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'd.73ea7440-270a-435a-a0ea-adf50b4e5f5a',\n examples: ['d.73ea7440-270a-435a-a0ea-adf50b4e5f5a'],\n changelog: [{ version: '0.31.0', prs: [772], description: 'Added heroku.logplex.drain_token attribute' }],\n },\n 'heroku.router.connect': {\n brief: 'Time in milliseconds the Heroku router spent establishing a connection to the dyno',\n type: 'double',\n keys: ['heroku.router.connect'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 0,\n examples: [0, 0.5, 6],\n changelog: [{ version: '0.31.0', prs: [772], description: 'Added heroku.router.connect attribute' }],\n },\n 'heroku.router.request_id': {\n brief: 'Request identifier reported by the Heroku router',\n type: 'string',\n keys: ['heroku.router.request_id'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: '6903a168-b79b-ec27-03c8-b8f64d8d8792',\n examples: ['6903a168-b79b-ec27-03c8-b8f64d8d8792'],\n changelog: [{ version: '0.31.0', prs: [772], description: 'Added heroku.router.request_id attribute' }],\n additionalContext: [\n 'Heroku generates or accepts this identifier and forwards it to the application in the X-Request-ID header.',\n ],\n },\n 'heroku.router.service': {\n brief:\n 'Time in milliseconds spent proxying data between the backend dyno and the client, as reported by the Heroku router',\n type: 'double',\n keys: ['heroku.router.service'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 0,\n examples: [0, 12.5, 30001],\n changelog: [{ version: '0.31.0', prs: [772], description: 'Added heroku.router.service attribute' }],\n additionalContext: ['This measures the proxying phase, not necessarily the complete HTTP request duration.'],\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 keys: ['client.address', 'http.client_ip'],\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'example.com',\n deprecation: {\n replacement: 'client.address',\n status: 'backfill',\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 keys: [\n 'http.response.body.decoded_size',\n 'http.decoded_response_content_length',\n 'http.response_content_length_uncompressed',\n ],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 456,\n deprecation: {\n replacement: 'http.response.body.decoded_size',\n status: 'backfill',\n },\n aliases: ['http.response.body.decoded_size', 'http.response_content_length_uncompressed'],\n changelog: [\n { version: '0.21.0', prs: [574], description: 'Deprecated in favor of http.response.body.decoded_size' },\n { version: '0.4.0', prs: [228] },\n { version: '0.0.0' },\n ],\n searchAlias: {\n name: 'http.decoded_response_content_length',\n type: 'byte',\n },\n },\n 'http.flavor': {\n brief: 'The actual version of the protocol used for network communication.',\n type: 'string',\n keys: ['network.protocol.version', 'http.flavor', 'messaging.protocol_version', 'net.protocol.version'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: '1.1',\n deprecation: {\n replacement: 'network.protocol.version',\n status: 'backfill',\n },\n aliases: ['network.protocol.version', 'net.protocol.version', 'messaging.protocol_version'],\n changelog: [\n { version: '0.21.0', prs: [581], description: 'Added messaging.protocol_version as an alias' },\n { version: '0.1.0', prs: [61, 108, 127] },\n { version: '0.0.0' },\n ],\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 keys: ['http.fragment'],\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 keys: ['http.host'],\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: [\n 'address',\n 'server.address',\n 'client.address',\n 'http.server_name',\n 'net.host.name',\n 'server_name',\n 'net.peer.name',\n ],\n changelog: [\n { version: '0.24.0', prs: [647], description: 'Added server_name as an alias' },\n { version: '0.21.0', prs: [588, 602], description: 'Added net.peer.name as an alias' },\n { version: '0.19.0', prs: [534], description: 'Added address as an alias' },\n { version: '0.1.0', prs: [61, 108, 127] },\n { version: '0.0.0' },\n ],\n },\n 'http.method': {\n brief: 'The HTTP method used.',\n type: 'string',\n keys: ['http.request.method', 'http.method', 'http.request_method', 'method'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'GET',\n deprecation: {\n replacement: 'http.request.method',\n status: 'backfill',\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 keys: ['http.query'],\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 keys: ['http.request.body.data'],\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.body.decoded_size': {\n brief: 'The decoded body size of the request (in bytes).',\n type: 'integer',\n keys: ['http.request.body.decoded_size', 'http.request_content_length_uncompressed'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 456,\n aliases: ['http.request_content_length_uncompressed'],\n changelog: [{ version: '0.21.0', prs: [574], description: 'Added http.request.body.decoded_size attribute' }],\n additionalContext: [\n 'This is the size after content decoding. Set it only when the decoded size is actually known, for example by measuring a decompressed request stream.',\n 'Do not derive this from the `content-length` header, which always carries the encoded size. Use `http.request.body.size` for that.',\n ],\n },\n 'http.request.body.size': {\n brief: 'The encoded body size of the request (in bytes).',\n type: 'integer',\n keys: ['http.request.body.size', 'http.request_content_length'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 123,\n aliases: ['http.request_content_length'],\n changelog: [{ version: '0.21.0', prs: [574], description: 'Added http.request.body.size attribute' }],\n additionalContext: [\n 'This is the on-the-wire (encoded) size. The `content-length` header always carries the encoded size, so set this attribute whenever `content-length` is known, regardless of whether `content-encoding` is present.',\n ],\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 keys: ['http.request.connection_end'],\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 keys: ['http.request.connect_start'],\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_content_length': {\n brief: 'The encoded body size of the request (in bytes).',\n type: 'integer',\n keys: ['http.request.body.size', 'http.request_content_length'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 123,\n deprecation: {\n replacement: 'http.request.body.size',\n status: 'backfill',\n },\n aliases: ['http.request.body.size'],\n changelog: [\n {\n version: '0.21.0',\n prs: [574],\n description: 'Added http.request_content_length attribute, deprecated in favor of http.request.body.size',\n },\n ],\n },\n 'http.request_content_length_uncompressed': {\n brief: 'The decoded body size of the request (in bytes).',\n type: 'integer',\n keys: ['http.request.body.decoded_size', 'http.request_content_length_uncompressed'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 456,\n deprecation: {\n replacement: 'http.request.body.decoded_size',\n status: 'backfill',\n },\n aliases: ['http.request.body.decoded_size'],\n changelog: [\n {\n version: '0.21.0',\n prs: [574],\n description:\n 'Added http.request_content_length_uncompressed attribute, deprecated in favor of http.request.body.decoded_size',\n },\n ],\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 keys: ['http.request.domain_lookup_end'],\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 keys: ['http.request.domain_lookup_start'],\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.duration': {\n brief: 'The duration of a HTTP request, in milliseconds.',\n type: 'integer',\n keys: ['http.request.duration'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 5000,\n examples: [5000],\n changelog: [{ version: '0.28.0', prs: [697], description: 'Added http.request.duration attribute' }],\n additionalContext: ['This attribute is set by Relay.'],\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 keys: ['http.request.fetch_start'],\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 lower-cased, but otherwise unchanged HTTP Header name, the value being the header values.',\n type: 'string[]',\n keys: ['http.request.header.'],\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 examples: [\"http.request.header.custom-header=['foo', 'bar']\", \"http.request.header.content-length=['123']\"],\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 keys: ['http.request.method', 'http.method', 'http.request_method', 'method'],\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 keys: ['http.request.method', 'http.method', 'http.request_method', 'method'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'GET',\n deprecation: {\n replacement: 'http.request.method',\n status: 'backfill',\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 keys: ['http.request.redirect_end'],\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 keys: ['http.request.redirect_start'],\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 keys: ['http.request.request_start'],\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 keys: ['http.request.resend_count'],\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 keys: ['http.request.response_end'],\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 keys: ['http.request.response_start'],\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 keys: ['http.request.same_origin', 'url.same_origin'],\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 keys: ['http.request.secure_connection_start'],\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 keys: ['http.request.time_to_first_byte'],\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 keys: ['http.request.worker_start'],\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.decoded_size': {\n brief: 'The decoded body size of the response (in bytes).',\n type: 'integer',\n keys: [\n 'http.response.body.decoded_size',\n 'http.decoded_response_content_length',\n 'http.response_content_length_uncompressed',\n ],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 456,\n aliases: ['http.decoded_response_content_length', 'http.response_content_length_uncompressed'],\n changelog: [{ version: '0.21.0', prs: [574], description: 'Added http.response.body.decoded_size attribute' }],\n additionalContext: [\n 'This is the size after content decoding. Set it only when the decoded size is actually known, for example from the browser Resource Timing `decodedBodySize` or by measuring a decompressed response stream.',\n 'Do not derive this from the `content-length` header, which always carries the encoded size. Use `http.response.body.size` for that.',\n ],\n },\n 'http.response.body.size': {\n brief: 'The encoded body size of the response (in bytes).',\n type: 'integer',\n keys: ['http.response.body.size', 'http.response.header.content-length', 'http.response_content_length'],\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 keys: ['http.response.body.size', 'http.response.header.content-length', 'http.response_content_length'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 123,\n deprecation: {\n replacement: 'http.response.body.size',\n status: 'backfill',\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 searchAlias: {\n name: 'http.response_content_length',\n type: 'byte',\n },\n },\n 'http.response_content_length_uncompressed': {\n brief: 'The decoded body size of the response (in bytes).',\n type: 'integer',\n keys: [\n 'http.response.body.decoded_size',\n 'http.decoded_response_content_length',\n 'http.response_content_length_uncompressed',\n ],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 456,\n deprecation: {\n replacement: 'http.response.body.decoded_size',\n status: 'backfill',\n },\n aliases: ['http.response.body.decoded_size', 'http.decoded_response_content_length'],\n changelog: [\n {\n version: '0.21.0',\n prs: [574],\n description:\n 'Added http.response_content_length_uncompressed attribute, deprecated in favor of http.response.body.decoded_size',\n },\n ],\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 keys: ['http.response.header.content-length', 'http.response.body.size', 'http.response_content_length'],\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 lower-cased, but otherwise unchanged HTTP Header name, the value being the header values.',\n type: 'string[]',\n keys: ['http.response.header.'],\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 examples: [\"http.response.header.custom-header=['foo', 'bar']\", \"http.response.header.content-length=['123']\"],\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 keys: ['http.response.size', 'http.response_transfer_size'],\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 keys: ['http.response.status_code', 'http.response_status_code', 'http.status_code'],\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 searchAlias: {\n name: 'http.response_status_code',\n },\n },\n 'http.response.status_text': {\n brief: 'The reason phrase of the HTTP response.',\n type: 'string',\n keys: ['http.response.status_text', 'http.status_text'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'NOT FOUND',\n aliases: ['http.status_text'],\n changelog: [{ version: '0.21.0', prs: [574], description: 'Added http.response.status_text attribute' }],\n additionalContext: [\n 'HTTP/2 and HTTP/3 do not carry a reason phrase. Do not set this attribute when the protocol provides none; use `http.response.status_code` instead.',\n ],\n },\n 'http.response_transfer_size': {\n brief: 'The transfer size of the response (in bytes).',\n type: 'integer',\n keys: ['http.response.size', 'http.response_transfer_size'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 456,\n deprecation: {\n replacement: 'http.response.size',\n status: 'backfill',\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 searchAlias: {\n name: 'http.response_transfer_size',\n type: 'byte',\n },\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 keys: ['http.route'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: '/users/:id',\n examples: ['/users/:id', 'my-controller/my-action/{id}', '/posts'],\n aliases: ['route'],\n changelog: [\n {\n version: '0.19.0',\n prs: [505, 521],\n description: 'Added multiple examples, removed alias to `url.template`, added additional context',\n },\n { version: '0.1.0', prs: [127] },\n { version: '0.0.0' },\n ],\n additionalContext: [\n 'This attribute should primarily be set by server-side instrumentation that captures the framework route of an incoming request.',\n 'For `http.client` spans and client-side routing, use `url.template` instead.',\n ],\n },\n 'http.scheme': {\n brief: 'The URI scheme component identifying the used protocol.',\n type: 'string',\n keys: ['url.scheme', 'http.scheme'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'https',\n deprecation: {\n replacement: 'url.scheme',\n status: 'backfill',\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 keys: ['server.address', 'address', 'http.server_name', 'net.host.name', 'server_name'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'example.com',\n deprecation: {\n replacement: 'server.address',\n status: 'backfill',\n },\n aliases: ['address', 'server.address', 'net.host.name', 'http.host', 'server_name', 'net.peer.name'],\n changelog: [\n { version: '0.24.0', prs: [647], description: 'Added server_name as an alias' },\n { version: '0.21.0', prs: [588, 602], description: 'Added net.peer.name as an alias' },\n { version: '0.19.0', prs: [534], description: 'Added address as an alias' },\n { version: '0.1.0', prs: [61, 108, 127] },\n { version: '0.0.0' },\n ],\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 keys: ['http.server.request.time_in_queue'],\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 keys: ['http.response.status_code', 'http.response_status_code', 'http.status_code'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 404,\n deprecation: {\n replacement: 'http.response.status_code',\n status: 'backfill',\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.status_text': {\n brief: 'The reason phrase of the HTTP response',\n type: 'string',\n keys: ['http.response.status_text', 'http.status_text'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'NOT FOUND',\n examples: ['NOT FOUND'],\n deprecation: {\n replacement: 'http.response.status_text',\n status: 'backfill',\n },\n aliases: ['http.response.status_text'],\n changelog: [\n {\n version: '0.21.0',\n prs: [574],\n description: 'Added http.status_text attribute, deprecated in favor of http.response.status_text',\n },\n ],\n },\n 'http.target': {\n brief: 'The pathname and query string of the URL.',\n type: 'string',\n keys: ['http.target'],\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: true,\n visibility: 'public',\n example: '/test?foo=bar#buzz',\n deprecation: {\n reason:\n 'This attribute is being deprecated in favor of url.path, url.query and url.fragment. The value holds all three parts at once, so it has no single replacement.',\n },\n changelog: [\n {\n version: '0.21.0',\n prs: [587],\n description: 'Documented url.path, url.query and url.fragment as the replacements for http.target',\n },\n { version: '0.1.0', prs: [61] },\n { version: '0.0.0' },\n ],\n },\n 'http.url': {\n brief: 'The URL of the resource that was fetched.',\n type: 'string',\n keys: ['url.full', 'aws.request.url', 'http.url', 'messaging.url', 'url'],\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 status: 'backfill',\n },\n aliases: ['url.full', 'url', 'aws.request.url', 'messaging.url'],\n changelog: [\n { version: '0.21.0', prs: [581], description: 'Added messaging.url as an alias' },\n { version: '0.1.0', prs: [61, 108] },\n { version: '0.0.0' },\n ],\n },\n 'http.user_agent': {\n brief: 'Value of the HTTP User-Agent header sent by the client.',\n type: 'string',\n keys: ['user_agent.original', 'http.user_agent'],\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 status: 'backfill',\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 keys: ['id'],\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 keys: ['browser.web_vital.inp.value', 'inp'],\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 status: 'backfill',\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 'integrity.blocked_url': {\n brief: 'The URL of the resource blocked by the integrity policy.',\n type: 'string',\n keys: ['integrity.blocked_url'],\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'https://example.com/app.js',\n changelog: [{ version: '0.27.0', prs: [691] }],\n },\n 'integrity.destination': {\n brief: 'The destination type of the resource affected by the integrity policy.',\n type: 'string',\n keys: ['integrity.destination'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'script',\n changelog: [{ version: '0.27.0', prs: [691] }],\n },\n 'integrity.document_url': {\n brief: 'The URL of the document where the integrity violation occurred.',\n type: 'string',\n keys: ['integrity.document_url'],\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'https://example.com/index.html',\n changelog: [{ version: '0.27.0', prs: [691] }],\n },\n 'integrity.report_only': {\n brief: 'Whether the integrity violation was generated by a report-only policy.',\n type: 'boolean',\n keys: ['integrity.report_only'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: true,\n changelog: [{ version: '0.27.0', prs: [691] }],\n },\n 'jsonrpc.protocol.version': {\n brief: 'The version of the JSON-RPC protocol used.',\n type: 'string',\n keys: ['jsonrpc.protocol.version'],\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, used to correlate a request with its response.',\n type: 'string',\n keys: ['jsonrpc.request.id', 'mcp.request.id'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: '1',\n examples: ['1'],\n aliases: ['mcp.request.id'],\n changelog: [\n {\n version: '0.27.0',\n prs: [671],\n description: 'Removed the session-scoped uniqueness requirement from the request identifier',\n },\n { version: '0.12.0', prs: [420], description: 'Added jsonrpc.request.id attribute' },\n ],\n },\n 'jvm.gc.action': {\n brief: 'Name of the garbage collector action.',\n type: 'string',\n keys: ['jvm.gc.action'],\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 keys: ['jvm.gc.name'],\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 keys: ['jvm.memory.pool.name'],\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 keys: ['jvm.memory.type'],\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 keys: ['jvm.thread.daemon'],\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 keys: ['jvm.thread.state'],\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 keys: ['koa.name'],\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 keys: ['koa.type'],\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 'langchain.chain.name': {\n brief: 'The name of the LangChain chain being executed.',\n type: 'string',\n keys: ['gen_ai.pipeline.name', 'ai.pipeline.name', 'langchain.chain.name'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'format_prompt',\n examples: ['format_prompt', 'RunnableSequence'],\n deprecation: {\n replacement: 'gen_ai.pipeline.name',\n reason:\n 'This attribute is being deprecated in favor of gen_ai.pipeline.name, which is the SDK-agnostic replacement for the name of the AI pipeline or chain being executed.',\n status: 'backfill',\n },\n aliases: ['gen_ai.pipeline.name', 'ai.pipeline.name'],\n changelog: [{ version: '0.22.0', prs: [599], description: 'Added langchain.chain.name attribute' }],\n },\n lcp: {\n brief: 'The value of the recorded Largest Contentful Paint (LCP) web vital',\n type: 'double',\n keys: ['browser.web_vital.lcp.value', 'lcp'],\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 status: 'backfill',\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 keys: ['browser.web_vital.lcp.element', 'lcp.element'],\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 status: 'backfill',\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 keys: ['browser.web_vital.lcp.id', 'lcp.id'],\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 status: 'backfill',\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 keys: ['browser.web_vital.lcp.load_time', 'lcp.loadTime'],\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 status: 'backfill',\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 keys: ['browser.web_vital.lcp.render_time', 'lcp.renderTime'],\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 status: 'backfill',\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 keys: ['browser.web_vital.lcp.size', 'lcp.size'],\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 status: 'backfill',\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 keys: ['browser.web_vital.lcp.url', 'lcp.url'],\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 status: 'backfill',\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 'litestar.middleware_name': {\n brief: 'The name of the Litestar middleware.',\n type: 'string',\n keys: [\n 'middleware.name',\n 'django.middleware_name',\n 'litestar.middleware_name',\n 'starlette.middleware_name',\n 'starlite.middleware_name',\n ],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'AuthenticationMiddleware',\n deprecation: {\n replacement: 'middleware.name',\n reason:\n 'This attribute is being deprecated in favor of middleware.name, which is the framework-agnostic replacement.',\n status: 'backfill',\n },\n aliases: ['middleware.name'],\n changelog: [\n {\n version: '0.19.0',\n prs: [486],\n description: 'Added litestar.middleware_name attribute, deprecated in favor of middleware.name',\n },\n ],\n },\n 'logger.name': {\n brief: 'The name of the logger that generated this event.',\n type: 'string',\n keys: ['logger.name'],\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.auth.client.name': {\n brief:\n 'Registered OAuth client application name associated with the authenticated MCP request. Taken from OAuth client registration metadata (client_name) made available by the authentication layer. This is distinct from the MCP implementation name in mcp.client.name; omit it when the OAuth client name is unavailable.',\n type: 'string',\n keys: ['mcp.auth.client.name'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'Example Desktop',\n examples: ['Example Desktop', 'Example CLI'],\n changelog: [{ version: '0.27.0', prs: [671], description: 'Added mcp.auth.client.name attribute' }],\n },\n 'mcp.cancelled.reason': {\n brief: 'Reason for the cancellation of an MCP operation.',\n type: 'string',\n keys: ['mcp.cancelled.reason'],\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 keys: ['mcp.cancelled.request_id'],\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:\n 'Name of the MCP client implementation, as declared in clientInfo. This is distinct from the registered OAuth application name in mcp.auth.client.name.',\n type: 'string',\n keys: ['mcp.client.name'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'example-mcp-client',\n examples: ['example-mcp-client'],\n changelog: [\n {\n version: '0.27.0',\n prs: [671],\n description: 'Clarified that the attribute describes declared MCP implementation metadata',\n },\n { version: '0.3.0', prs: [171] },\n ],\n },\n 'mcp.client.title': {\n brief: 'Display title of the MCP client implementation, as declared in clientInfo.',\n type: 'string',\n keys: ['mcp.client.title'],\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: 'Example MCP Client',\n examples: ['Example MCP Client'],\n changelog: [\n {\n version: '0.27.0',\n prs: [671],\n description: 'Clarified that the attribute describes declared MCP implementation metadata',\n },\n { version: '0.3.0', prs: [171] },\n ],\n },\n 'mcp.client.version': {\n brief: 'Version of the MCP client implementation, as declared in clientInfo.',\n type: 'string',\n keys: ['mcp.client.version'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: '1.0.0',\n examples: ['1.0.0'],\n changelog: [\n {\n version: '0.27.0',\n prs: [671],\n description: 'Clarified that the attribute describes declared MCP implementation metadata',\n },\n { version: '0.3.0', prs: [171] },\n ],\n },\n 'mcp.lifecycle.phase': {\n brief: 'Lifecycle phase indicator for MCP operations.',\n type: 'string',\n keys: ['mcp.lifecycle.phase'],\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 keys: ['mcp.logging.data_type'],\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 keys: ['mcp.logging.level'],\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 keys: ['mcp.logging.logger'],\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 keys: ['mcp.logging.message'],\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 keys: ['mcp.method.name'],\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: 'double',\n keys: ['mcp.progress.current'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 0.2,\n examples: [0.2, 50],\n changelog: [\n {\n version: '0.27.0',\n prs: [671],\n description: 'Changed the type to double to support fractional MCP progress values',\n },\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 keys: ['mcp.progress.message'],\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 keys: ['mcp.progress.percentage'],\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 keys: ['mcp.progress.token'],\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: 'double',\n keys: ['mcp.progress.total'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 1,\n examples: [1, 100],\n changelog: [\n {\n version: '0.27.0',\n prs: [671],\n description: 'Changed the type to double to support fractional MCP progress values',\n },\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 keys: ['gen_ai.prompt.name', 'mcp.prompt.name'],\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 status: 'backfill',\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 keys: ['mcp.prompt.result.description'],\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..content': {\n brief: 'Legacy text content of an indexed message in a multi-message MCP prompt result.',\n type: 'string',\n keys: ['mcp.prompt.result..content'],\n applyScrubbing: {\n key: 'auto',\n reason: 'Preserve automatic scrubbing of server-provided result fields.',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'Summarize the document.',\n examples: ['Summarize the document.'],\n changelog: [\n { version: '0.27.0', prs: [689], description: 'Register an existing JavaScript SDK MCP result attribute.' },\n ],\n additionalContext: [\n 'Registers an existing Sentry JavaScript SDK attribute for compatibility.',\n 'Emitted for results with multiple messages. is the zero-based position in the original messages array; absent fields do not renumber later messages.',\n 'Recorded only when output capture is enabled.',\n ],\n },\n 'mcp.prompt.result..role': {\n brief: 'Legacy role of an indexed message in a multi-message MCP prompt result.',\n type: 'string',\n keys: ['mcp.prompt.result..role'],\n applyScrubbing: {\n key: 'auto',\n reason: 'Preserve automatic scrubbing of server-provided result fields.',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'user',\n examples: ['user', 'assistant'],\n changelog: [\n { version: '0.27.0', prs: [689], description: 'Register an existing JavaScript SDK MCP result attribute.' },\n ],\n additionalContext: [\n 'Registers an existing Sentry JavaScript SDK attribute for compatibility.',\n 'Emitted for results with multiple messages. is the zero-based position in the original messages array; absent fields do not renumber later messages.',\n 'Recorded only when output capture is enabled.',\n ],\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 keys: ['mcp.prompt.result.message_content'],\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 keys: ['mcp.prompt.result.message_count'],\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 keys: ['mcp.prompt.result.message_role'],\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:\n 'Readiness indicator for the legacy MCP initialization handshake. A non-zero value indicates that notifications/initialized has completed initialization. Omit for protocol versions without this handshake.',\n type: 'integer',\n keys: ['mcp.protocol.ready'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 1,\n examples: [1],\n changelog: [\n {\n version: '0.27.0',\n prs: [671],\n description: 'Clarified that readiness describes the legacy MCP initialization handshake',\n },\n { version: '0.4.0', prs: [228] },\n { version: '0.3.0', prs: [171] },\n ],\n },\n 'mcp.protocol.version': {\n brief: 'Version of the Model Context Protocol used for the operation.',\n type: 'string',\n keys: ['mcp.protocol.version'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: '2024-11-05',\n examples: ['2024-11-05'],\n changelog: [\n {\n version: '0.27.0',\n prs: [671],\n description: 'Clarified that the protocol version applies to an operation without requiring a session',\n },\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 keys: ['mcp.request.argument.'],\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 keys: ['mcp.request.argument.name'],\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 keys: ['mcp.request.argument.uri'],\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, used to correlate the request with its response.',\n type: 'string',\n keys: ['jsonrpc.request.id', 'mcp.request.id'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: '1',\n examples: ['1'],\n deprecation: {\n replacement: 'jsonrpc.request.id',\n reason: 'OTel models MCP as JSON-RPC, uses jsonrpc.request.id',\n status: 'backfill',\n },\n aliases: ['jsonrpc.request.id'],\n changelog: [\n {\n version: '0.27.0',\n prs: [671],\n description: 'Removed the session-scoped uniqueness requirement from the request identifier',\n },\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:\n 'URI scheme of the MCP resource being accessed, extracted from its URI. This is distinct from the network protocol used to communicate with the MCP server.',\n type: 'string',\n keys: ['mcp.resource.protocol'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'file',\n examples: ['file', 'postgres'],\n changelog: [\n {\n version: '0.27.0',\n prs: [671],\n description:\n 'Clarified Sentry-specific semantics and removed the incorrect network attribute alias and deprecation',\n },\n { version: '0.21.0', prs: [581], description: 'Added messaging.protocol as an alias' },\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 keys: ['mcp.resource.uri'],\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 implementation, as declared in serverInfo.',\n type: 'string',\n keys: ['mcp.server.name'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'example-mcp-server',\n examples: ['example-mcp-server'],\n changelog: [\n {\n version: '0.27.0',\n prs: [671],\n description: 'Clarified that the attribute describes declared MCP implementation metadata',\n },\n { version: '0.3.0', prs: [171] },\n ],\n },\n 'mcp.server.title': {\n brief: 'Display title of the MCP server implementation, as declared in serverInfo.',\n type: 'string',\n keys: ['mcp.server.title'],\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: 'Example MCP Server',\n examples: ['Example MCP Server'],\n changelog: [\n {\n version: '0.27.0',\n prs: [671],\n description: 'Clarified that the attribute describes declared MCP implementation metadata',\n },\n { version: '0.3.0', prs: [171] },\n ],\n },\n 'mcp.server.version': {\n brief: 'Version of the MCP server implementation, as declared in serverInfo.',\n type: 'string',\n keys: ['mcp.server.version'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: '0.1.0',\n examples: ['0.1.0'],\n changelog: [\n {\n version: '0.27.0',\n prs: [671],\n description: 'Clarified that the attribute describes declared MCP implementation metadata',\n },\n { version: '0.3.0', prs: [171] },\n ],\n },\n 'mcp.session.id': {\n brief: 'Identifier for an MCP protocol session, when the operation belongs to a session.',\n type: 'string',\n keys: ['mcp.session.id'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: '550e8400-e29b-41d4-a716-446655440000',\n examples: ['550e8400-e29b-41d4-a716-446655440000'],\n changelog: [\n {\n version: '0.27.0',\n prs: [671],\n description: 'Clarified that the identifier requires a real MCP protocol session',\n },\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 additionalContext: [\n 'Applies to protocol versions and transports that provide MCP session management, including legacy Streamable HTTP sessions. Omit for operations without a protocol session; do not synthesize a session identifier from a request, connection, or conversation.',\n ],\n },\n 'mcp.tool.name': {\n brief: 'Name of the MCP tool being called.',\n type: 'string',\n keys: ['gen_ai.tool.name', 'ai.function_call', 'mcp.tool.name'],\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 status: 'backfill',\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 keys: [\n 'gen_ai.tool.call.result',\n 'ai.toolCall.result',\n 'anthropic.tool_result.content',\n 'gen_ai.tool.message',\n 'gen_ai.tool.output',\n 'mcp.tool.result.content',\n ],\n applyScrubbing: {\n key: 'manual',\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 status: 'backfill',\n },\n aliases: [\n 'gen_ai.tool.call.result',\n 'gen_ai.tool.message',\n 'gen_ai.tool.output',\n 'ai.toolCall.result',\n 'anthropic.tool_result.content',\n ],\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 keys: ['mcp.tool.result.content_count'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 1,\n deprecation: {\n reason: 'A count can be calculated from the value of the gen_ai.tool.call.result attribute.',\n },\n changelog: [\n {\n version: '0.27.0',\n prs: [669],\n description: 'Deprecate the attribute since it is redundant given gen_ai.tool.call.result.',\n },\n { version: '0.4.0', prs: [228] },\n { version: '0.3.0', prs: [171] },\n ],\n },\n 'mcp.tool.result.content_type': {\n brief: 'Legacy content type of the content item in a single-item MCP tool result.',\n type: 'string',\n keys: ['mcp.tool.result.content_type'],\n applyScrubbing: {\n key: 'auto',\n reason: 'Preserve automatic scrubbing of server-provided result fields.',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'text',\n examples: ['text', 'image'],\n deprecation: {\n reason:\n 'Capture the complete tool result in gen_ai.tool.call.result instead. This attribute describes only part of the result and cannot be directly backfilled.',\n },\n changelog: [\n {\n version: '0.27.0',\n prs: [689],\n description:\n 'Register an existing JavaScript SDK MCP result attribute as deprecated in favor of gen_ai.tool.call.result, without backfill.',\n },\n ],\n additionalContext: [\n 'Registers an existing Sentry JavaScript SDK attribute for compatibility.',\n 'Emitted only when the result contains exactly one content item.',\n 'Recorded even when output capture is disabled.',\n ],\n },\n 'mcp.tool.result.data_size': {\n brief:\n 'Legacy length of the data string in UTF-16 code units of the content item in a single-item MCP tool result.',\n type: 'integer',\n keys: ['mcp.tool.result.data_size'],\n applyScrubbing: {\n key: 'manual',\n reason: 'The length contains no result content.',\n },\n isInOtel: false,\n visibility: 'public',\n example: 4,\n examples: [4, 1024],\n deprecation: {\n reason:\n 'Capture the complete tool result in gen_ai.tool.call.result instead. This attribute describes only part of the result and cannot be directly backfilled.',\n },\n changelog: [\n {\n version: '0.27.0',\n prs: [689],\n description:\n 'Register an existing JavaScript SDK MCP result attribute as deprecated in favor of gen_ai.tool.call.result, without backfill.',\n },\n ],\n additionalContext: [\n 'Registers an existing Sentry JavaScript SDK attribute for compatibility.',\n 'Emitted only when the result contains exactly one content item.',\n 'Recorded only when output capture is enabled.',\n 'The JavaScript SDK records data.length. For base64-encoded image or audio data, this counts encoded characters, not decoded bytes.',\n ],\n },\n 'mcp.tool.result.is_error': {\n brief: 'Whether a tool execution resulted in an error.',\n type: 'boolean',\n keys: ['mcp.tool.result.is_error'],\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.tool.result..content': {\n brief: 'Legacy text content of an indexed content item in a multi-item MCP tool result.',\n type: 'string',\n keys: ['mcp.tool.result..content'],\n applyScrubbing: {\n key: 'auto',\n reason: 'Preserve automatic scrubbing of server-provided result fields.',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'The operation completed.',\n examples: ['The operation completed.'],\n deprecation: {\n reason:\n 'Capture the complete tool result in gen_ai.tool.call.result instead. This attribute describes only part of the result and cannot be directly backfilled.',\n },\n changelog: [\n {\n version: '0.27.0',\n prs: [689],\n description:\n 'Register an existing JavaScript SDK MCP result attribute as deprecated in favor of gen_ai.tool.call.result, without backfill.',\n },\n ],\n additionalContext: [\n 'Registers an existing Sentry JavaScript SDK attribute for compatibility.',\n 'Emitted for results with multiple content items. is the zero-based position in the original content array; absent fields do not renumber later items.',\n 'Recorded only when output capture is enabled.',\n \"This is one item's text, not the complete tool result. It must not be aliased or directly backfilled to gen_ai.tool.call.result; reconstructing the complete result requires aggregation.\",\n ],\n },\n 'mcp.tool.result..content_type': {\n brief: 'Legacy content type of an indexed content item in a multi-item MCP tool result.',\n type: 'string',\n keys: ['mcp.tool.result..content_type'],\n applyScrubbing: {\n key: 'auto',\n reason: 'Preserve automatic scrubbing of server-provided result fields.',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'text',\n examples: ['text', 'image'],\n deprecation: {\n reason:\n 'Capture the complete tool result in gen_ai.tool.call.result instead. This attribute describes only part of the result and cannot be directly backfilled.',\n },\n changelog: [\n {\n version: '0.27.0',\n prs: [689],\n description:\n 'Register an existing JavaScript SDK MCP result attribute as deprecated in favor of gen_ai.tool.call.result, without backfill.',\n },\n ],\n additionalContext: [\n 'Registers an existing Sentry JavaScript SDK attribute for compatibility.',\n 'Emitted for results with multiple content items. is the zero-based position in the original content array; absent fields do not renumber later items.',\n 'Recorded even when output capture is disabled.',\n ],\n },\n 'mcp.tool.result..data_size': {\n brief:\n 'Legacy length of the data string in UTF-16 code units of an indexed content item in a multi-item MCP tool result.',\n type: 'integer',\n keys: ['mcp.tool.result..data_size'],\n applyScrubbing: {\n key: 'manual',\n reason: 'The length contains no result content.',\n },\n isInOtel: false,\n visibility: 'public',\n example: 4,\n examples: [4, 1024],\n deprecation: {\n reason:\n 'Capture the complete tool result in gen_ai.tool.call.result instead. This attribute describes only part of the result and cannot be directly backfilled.',\n },\n changelog: [\n {\n version: '0.27.0',\n prs: [689],\n description:\n 'Register an existing JavaScript SDK MCP result attribute as deprecated in favor of gen_ai.tool.call.result, without backfill.',\n },\n ],\n additionalContext: [\n 'Registers an existing Sentry JavaScript SDK attribute for compatibility.',\n 'Emitted for results with multiple content items. is the zero-based position in the original content array; absent fields do not renumber later items.',\n 'Recorded only when output capture is enabled.',\n 'The JavaScript SDK records data.length. For base64-encoded image or audio data, this counts encoded characters, not decoded bytes.',\n ],\n },\n 'mcp.tool.result..mime_type': {\n brief: 'Legacy MIME type of an indexed content item in a multi-item MCP tool result.',\n type: 'string',\n keys: ['mcp.tool.result..mime_type'],\n applyScrubbing: {\n key: 'auto',\n reason: 'Preserve automatic scrubbing of server-provided result fields.',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'image/png',\n examples: ['image/png', 'audio/wav'],\n deprecation: {\n reason:\n 'Capture the complete tool result in gen_ai.tool.call.result instead. This attribute describes only part of the result and cannot be directly backfilled.',\n },\n changelog: [\n {\n version: '0.27.0',\n prs: [689],\n description:\n 'Register an existing JavaScript SDK MCP result attribute as deprecated in favor of gen_ai.tool.call.result, without backfill.',\n },\n ],\n additionalContext: [\n 'Registers an existing Sentry JavaScript SDK attribute for compatibility.',\n 'Emitted for results with multiple content items. is the zero-based position in the original content array; absent fields do not renumber later items.',\n 'Recorded only when output capture is enabled.',\n ],\n },\n 'mcp.tool.result..name': {\n brief: 'Legacy resource link name of an indexed content item in a multi-item MCP tool result.',\n type: 'string',\n keys: ['mcp.tool.result..name'],\n applyScrubbing: {\n key: 'auto',\n reason: 'Preserve automatic scrubbing of server-provided result fields.',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'report.txt',\n examples: ['report.txt'],\n deprecation: {\n reason:\n 'Capture the complete tool result in gen_ai.tool.call.result instead. This attribute describes only part of the result and cannot be directly backfilled.',\n },\n changelog: [\n {\n version: '0.27.0',\n prs: [689],\n description:\n 'Register an existing JavaScript SDK MCP result attribute as deprecated in favor of gen_ai.tool.call.result, without backfill.',\n },\n ],\n additionalContext: [\n 'Registers an existing Sentry JavaScript SDK attribute for compatibility.',\n 'Emitted for results with multiple content items. is the zero-based position in the original content array; absent fields do not renumber later items.',\n 'Recorded only when output capture is enabled.',\n ],\n },\n 'mcp.tool.result..resource_mime_type': {\n brief: 'Legacy embedded resource MIME type of an indexed content item in a multi-item MCP tool result.',\n type: 'string',\n keys: ['mcp.tool.result..resource_mime_type'],\n applyScrubbing: {\n key: 'auto',\n reason: 'Preserve automatic scrubbing of server-provided result fields.',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'text/plain',\n examples: ['text/plain'],\n deprecation: {\n reason:\n 'Capture the complete tool result in gen_ai.tool.call.result instead. This attribute describes only part of the result and cannot be directly backfilled.',\n },\n changelog: [\n {\n version: '0.27.0',\n prs: [689],\n description:\n 'Register an existing JavaScript SDK MCP result attribute as deprecated in favor of gen_ai.tool.call.result, without backfill.',\n },\n ],\n additionalContext: [\n 'Registers an existing Sentry JavaScript SDK attribute for compatibility.',\n 'Emitted for results with multiple content items. is the zero-based position in the original content array; absent fields do not renumber later items.',\n 'Recorded only when output capture is enabled.',\n ],\n },\n 'mcp.tool.result..resource_uri': {\n brief: 'Legacy embedded resource URI of an indexed content item in a multi-item MCP tool result.',\n type: 'string',\n keys: ['mcp.tool.result..resource_uri'],\n applyScrubbing: {\n key: 'auto',\n reason: 'Preserve automatic scrubbing of server-provided result fields.',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'file:///project/report.txt',\n examples: ['file:///project/report.txt'],\n deprecation: {\n reason:\n 'Capture the complete tool result in gen_ai.tool.call.result instead. This attribute describes only part of the result and cannot be directly backfilled.',\n },\n changelog: [\n {\n version: '0.27.0',\n prs: [689],\n description:\n 'Register an existing JavaScript SDK MCP result attribute as deprecated in favor of gen_ai.tool.call.result, without backfill.',\n },\n ],\n additionalContext: [\n 'Registers an existing Sentry JavaScript SDK attribute for compatibility.',\n 'Emitted for results with multiple content items. is the zero-based position in the original content array; absent fields do not renumber later items.',\n 'Recorded only when output capture is enabled.',\n ],\n },\n 'mcp.tool.result..uri': {\n brief: 'Legacy resource link URI of an indexed content item in a multi-item MCP tool result.',\n type: 'string',\n keys: ['mcp.tool.result..uri'],\n applyScrubbing: {\n key: 'auto',\n reason: 'Preserve automatic scrubbing of server-provided result fields.',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'file:///project/report.txt',\n examples: ['file:///project/report.txt'],\n deprecation: {\n reason:\n 'Capture the complete tool result in gen_ai.tool.call.result instead. This attribute describes only part of the result and cannot be directly backfilled.',\n },\n changelog: [\n {\n version: '0.27.0',\n prs: [689],\n description:\n 'Register an existing JavaScript SDK MCP result attribute as deprecated in favor of gen_ai.tool.call.result, without backfill.',\n },\n ],\n additionalContext: [\n 'Registers an existing Sentry JavaScript SDK attribute for compatibility.',\n 'Emitted for results with multiple content items. is the zero-based position in the original content array; absent fields do not renumber later items.',\n 'Recorded only when output capture is enabled.',\n ],\n },\n 'mcp.tool.result.mime_type': {\n brief: 'Legacy MIME type of the content item in a single-item MCP tool result.',\n type: 'string',\n keys: ['mcp.tool.result.mime_type'],\n applyScrubbing: {\n key: 'auto',\n reason: 'Preserve automatic scrubbing of server-provided result fields.',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'image/png',\n examples: ['image/png', 'audio/wav'],\n deprecation: {\n reason:\n 'Capture the complete tool result in gen_ai.tool.call.result instead. This attribute describes only part of the result and cannot be directly backfilled.',\n },\n changelog: [\n {\n version: '0.27.0',\n prs: [689],\n description:\n 'Register an existing JavaScript SDK MCP result attribute as deprecated in favor of gen_ai.tool.call.result, without backfill.',\n },\n ],\n additionalContext: [\n 'Registers an existing Sentry JavaScript SDK attribute for compatibility.',\n 'Emitted only when the result contains exactly one content item.',\n 'Recorded only when output capture is enabled.',\n ],\n },\n 'mcp.tool.result.name': {\n brief: 'Legacy resource link name of the content item in a single-item MCP tool result.',\n type: 'string',\n keys: ['mcp.tool.result.name'],\n applyScrubbing: {\n key: 'auto',\n reason: 'Preserve automatic scrubbing of server-provided result fields.',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'report.txt',\n examples: ['report.txt'],\n deprecation: {\n reason:\n 'Capture the complete tool result in gen_ai.tool.call.result instead. This attribute describes only part of the result and cannot be directly backfilled.',\n },\n changelog: [\n {\n version: '0.27.0',\n prs: [689],\n description:\n 'Register an existing JavaScript SDK MCP result attribute as deprecated in favor of gen_ai.tool.call.result, without backfill.',\n },\n ],\n additionalContext: [\n 'Registers an existing Sentry JavaScript SDK attribute for compatibility.',\n 'Emitted only when the result contains exactly one content item.',\n 'Recorded only when output capture is enabled.',\n ],\n },\n 'mcp.tool.result.resource_mime_type': {\n brief: 'Legacy embedded resource MIME type of the content item in a single-item MCP tool result.',\n type: 'string',\n keys: ['mcp.tool.result.resource_mime_type'],\n applyScrubbing: {\n key: 'auto',\n reason: 'Preserve automatic scrubbing of server-provided result fields.',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'text/plain',\n examples: ['text/plain'],\n deprecation: {\n reason:\n 'Capture the complete tool result in gen_ai.tool.call.result instead. This attribute describes only part of the result and cannot be directly backfilled.',\n },\n changelog: [\n {\n version: '0.27.0',\n prs: [689],\n description:\n 'Register an existing JavaScript SDK MCP result attribute as deprecated in favor of gen_ai.tool.call.result, without backfill.',\n },\n ],\n additionalContext: [\n 'Registers an existing Sentry JavaScript SDK attribute for compatibility.',\n 'Emitted only when the result contains exactly one content item.',\n 'Recorded only when output capture is enabled.',\n ],\n },\n 'mcp.tool.result.resource_uri': {\n brief: 'Legacy embedded resource URI of the content item in a single-item MCP tool result.',\n type: 'string',\n keys: ['mcp.tool.result.resource_uri'],\n applyScrubbing: {\n key: 'auto',\n reason: 'Preserve automatic scrubbing of server-provided result fields.',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'file:///project/report.txt',\n examples: ['file:///project/report.txt'],\n deprecation: {\n reason:\n 'Capture the complete tool result in gen_ai.tool.call.result instead. This attribute describes only part of the result and cannot be directly backfilled.',\n },\n changelog: [\n {\n version: '0.27.0',\n prs: [689],\n description:\n 'Register an existing JavaScript SDK MCP result attribute as deprecated in favor of gen_ai.tool.call.result, without backfill.',\n },\n ],\n additionalContext: [\n 'Registers an existing Sentry JavaScript SDK attribute for compatibility.',\n 'Emitted only when the result contains exactly one content item.',\n 'Recorded only when output capture is enabled.',\n ],\n },\n 'mcp.tool.result.uri': {\n brief: 'Legacy resource link URI of the content item in a single-item MCP tool result.',\n type: 'string',\n keys: ['mcp.tool.result.uri'],\n applyScrubbing: {\n key: 'auto',\n reason: 'Preserve automatic scrubbing of server-provided result fields.',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'file:///project/report.txt',\n examples: ['file:///project/report.txt'],\n deprecation: {\n reason:\n 'Capture the complete tool result in gen_ai.tool.call.result instead. This attribute describes only part of the result and cannot be directly backfilled.',\n },\n changelog: [\n {\n version: '0.27.0',\n prs: [689],\n description:\n 'Register an existing JavaScript SDK MCP result attribute as deprecated in favor of gen_ai.tool.call.result, without backfill.',\n },\n ],\n additionalContext: [\n 'Registers an existing Sentry JavaScript SDK attribute for compatibility.',\n 'Emitted only when the result contains exactly one content item.',\n 'Recorded only when output capture is enabled.',\n ],\n },\n 'mcp.transport': {\n brief:\n 'MCP transport implementation name, such as the transport class name. This identifies the implementation, not the network transport or application protocol.',\n type: 'string',\n keys: ['mcp.transport'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'StdioServerTransport',\n examples: ['StdioServerTransport', 'CustomHTTPTransport'],\n changelog: [\n {\n version: '0.27.0',\n prs: [671],\n description:\n 'Clarified Sentry-specific semantics and removed the incorrect network attribute alias and deprecation',\n },\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 keys: ['mdc.'],\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 keys: ['messaging.batch.message_count'],\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.bullmq.flow.name': {\n brief: 'The name of the root job of the BullMQ flow that FlowProducer.add() adds.',\n type: 'string',\n keys: ['messaging.bullmq.flow.name'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'build-report',\n examples: ['build-report'],\n changelog: [{ version: '0.28.0', prs: [690], description: 'Added messaging.bullmq.flow.name attribute' }],\n additionalContext: [\n \"The Sentry SDK sets this attribute from the `bullmq.flow.name` attribute of BullMQ's telemetry interface.\",\n ],\n },\n 'messaging.bullmq.job.attempt_finished_timestamp': {\n brief: 'The time in milliseconds since the Unix epoch when the current attempt of the BullMQ job finished.',\n type: 'integer',\n keys: ['messaging.bullmq.job.attempt_finished_timestamp'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 1791184722406,\n examples: [1791184722406],\n changelog: [\n { version: '0.28.0', prs: [690], description: 'Added messaging.bullmq.job.attempt_finished_timestamp attribute' },\n ],\n additionalContext: [\n \"The Sentry SDK sets this attribute from the `bullmq.job.attempt_finished_timestamp` attribute of BullMQ's telemetry interface.\",\n ],\n },\n 'messaging.bullmq.job.bulk.names': {\n brief: 'The names of the BullMQ jobs or flows that one bulk operation adds, for example Queue.addBulk().',\n type: 'string[]',\n keys: ['messaging.bullmq.job.bulk.names'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: ['send-welcome-email', 'generate-report'],\n examples: [['send-welcome-email', 'generate-report']],\n changelog: [{ version: '0.28.0', prs: [690], description: 'Added messaging.bullmq.job.bulk.names attribute' }],\n additionalContext: [\n \"The Sentry SDK sets this attribute from the `bullmq.job.bulk.names` attribute of BullMQ's telemetry interface.\",\n ],\n },\n 'messaging.bullmq.job.deduplication.key': {\n brief: 'The deduplication ID that Queue.removeDeduplicationKey() removes.',\n type: 'string',\n keys: ['messaging.bullmq.job.deduplication.key'],\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'user-42-sync',\n examples: ['user-42-sync'],\n changelog: [\n { version: '0.28.0', prs: [690], description: 'Added messaging.bullmq.job.deduplication.key attribute' },\n ],\n additionalContext: [\n \"The Sentry SDK sets this attribute from the `bullmq.job.deduplication.key` attribute of BullMQ's telemetry interface.\",\n ],\n },\n 'messaging.bullmq.job.ids': {\n brief: 'The IDs of the BullMQ jobs that Queue.clean() removed.',\n type: 'string[]',\n keys: ['messaging.bullmq.job.ids'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: ['1', '2', '3'],\n examples: [['1', '2', '3']],\n changelog: [{ version: '0.28.0', prs: [690], description: 'Added messaging.bullmq.job.ids attribute' }],\n additionalContext: [\n \"The Sentry SDK sets this attribute from the `bullmq.job.ids` attribute of BullMQ's telemetry interface.\",\n 'BullMQ 5.79.1 sets this attribute. BullMQ 6.3.11 does not.',\n ],\n },\n 'messaging.bullmq.job.key': {\n brief:\n 'The key that a BullMQ remove operation for a debounce or repeatable key gets, for example Queue.removeDebounceKey().',\n type: 'string',\n keys: ['messaging.bullmq.job.key'],\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'user-42-sync',\n examples: ['user-42-sync'],\n changelog: [{ version: '0.28.0', prs: [690], description: 'Added messaging.bullmq.job.key attribute' }],\n additionalContext: [\n \"The Sentry SDK sets this attribute from the `bullmq.job.key` attribute of BullMQ's telemetry interface.\",\n ],\n },\n 'messaging.bullmq.job.name': {\n brief: 'The name of the BullMQ job, which the user passes to Queue.add() to identify the kind of work.',\n type: 'string',\n keys: ['messaging.bullmq.job.name'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'send-welcome-email',\n examples: ['send-welcome-email', 'generate-report'],\n changelog: [{ version: '0.28.0', prs: [690], description: 'Added messaging.bullmq.job.name attribute' }],\n additionalContext: [\n \"The Sentry SDK sets this attribute from the `bullmq.job.name` attribute of BullMQ's telemetry interface.\",\n 'Also set on the BullMQ job metrics.',\n ],\n },\n 'messaging.bullmq.job.processed_timestamp': {\n brief: 'The time in milliseconds since the Unix epoch when the Worker started to process the BullMQ job.',\n type: 'integer',\n keys: ['messaging.bullmq.job.processed_timestamp'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 1791184722281,\n examples: [1791184722281],\n changelog: [\n { version: '0.28.0', prs: [690], description: 'Added messaging.bullmq.job.processed_timestamp attribute' },\n ],\n additionalContext: [\n \"The Sentry SDK sets this attribute from the `bullmq.job.processed.timestamp` attribute of BullMQ's telemetry interface.\",\n ],\n },\n 'messaging.bullmq.job.scheduler.id': {\n brief: 'The ID of the BullMQ job scheduler that adds the job.',\n type: 'string',\n keys: ['messaging.bullmq.job.scheduler.id'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'daily-report',\n examples: ['daily-report'],\n changelog: [{ version: '0.28.0', prs: [690], description: 'Added messaging.bullmq.job.scheduler.id attribute' }],\n additionalContext: [\n \"The Sentry SDK sets this attribute from the `bullmq.job.scheduler.id` attribute of BullMQ's telemetry interface.\",\n ],\n },\n 'messaging.bullmq.job.state': {\n brief: 'The state of the BullMQ job that a job metric counts.',\n type: 'string',\n keys: ['messaging.bullmq.job.state'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'completed',\n examples: ['completed', 'failed', 'delayed'],\n changelog: [{ version: '0.28.0', prs: [690], description: 'Added messaging.bullmq.job.state attribute' }],\n additionalContext: [\n \"The Sentry SDK sets this attribute from the `bullmq.job.state` attribute of BullMQ's telemetry interface. BullMQ before 5.81.2 sets `bullmq.job.status` instead, and the SDK then uses that value.\",\n ],\n },\n 'messaging.bullmq.job.type': {\n brief: 'The job state from which Queue.clean() removes BullMQ jobs.',\n type: 'string',\n keys: ['messaging.bullmq.job.type'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'completed',\n examples: ['completed', 'failed'],\n changelog: [{ version: '0.28.0', prs: [690], description: 'Added messaging.bullmq.job.type attribute' }],\n additionalContext: [\n \"The Sentry SDK sets this attribute from the `bullmq.job.type` attribute of BullMQ's telemetry interface.\",\n ],\n },\n 'messaging.bullmq.queue.clean.count': {\n brief: 'The number of BullMQ jobs that Queue.clean() removed.',\n type: 'integer',\n keys: ['messaging.bullmq.queue.clean.count'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 25,\n examples: [25],\n changelog: [{ version: '0.28.0', prs: [690], description: 'Added messaging.bullmq.queue.clean.count attribute' }],\n additionalContext: [\n \"The Sentry SDK sets this attribute from the `bullmq.queue.clean.count` attribute of BullMQ's telemetry interface.\",\n 'BullMQ 6.3.11 sets this attribute. BullMQ 5.79.1 does not.',\n ],\n },\n 'messaging.bullmq.queue.clean.limit': {\n brief: 'The maximum number of BullMQ jobs that Queue.clean() removes.',\n type: 'integer',\n keys: ['messaging.bullmq.queue.clean.limit'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 1000,\n examples: [1000],\n changelog: [{ version: '0.28.0', prs: [690], description: 'Added messaging.bullmq.queue.clean.limit attribute' }],\n additionalContext: [\n \"The Sentry SDK sets this attribute from the `bullmq.queue.clean.limit` attribute of BullMQ's telemetry interface.\",\n ],\n },\n 'messaging.bullmq.queue.drain.delay': {\n brief: 'Whether Queue.drain() also removes the delayed BullMQ jobs.',\n type: 'boolean',\n keys: ['messaging.bullmq.queue.drain.delay'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: true,\n examples: [true],\n changelog: [{ version: '0.28.0', prs: [690], description: 'Added messaging.bullmq.queue.drain.delay attribute' }],\n additionalContext: [\n \"The Sentry SDK sets this attribute from the `bullmq.queue.drain.delay` attribute of BullMQ's telemetry interface.\",\n ],\n },\n 'messaging.bullmq.queue.event.max_length': {\n brief: 'The maximum number of events that Queue.trimEvents() keeps in the BullMQ event stream.',\n type: 'integer',\n keys: ['messaging.bullmq.queue.event.max_length'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 10000,\n examples: [10000],\n changelog: [\n { version: '0.28.0', prs: [690], description: 'Added messaging.bullmq.queue.event.max_length attribute' },\n ],\n additionalContext: [\n \"The Sentry SDK sets this attribute from the `bullmq.queue.event.max.length` attribute of BullMQ's telemetry interface.\",\n ],\n },\n 'messaging.bullmq.queue.grace': {\n brief: 'The grace period in milliseconds that Queue.clean() uses. Only BullMQ jobs that are older are removed.',\n type: 'integer',\n keys: ['messaging.bullmq.queue.grace'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 60000,\n examples: [60000],\n changelog: [{ version: '0.28.0', prs: [690], description: 'Added messaging.bullmq.queue.grace attribute' }],\n additionalContext: [\n \"The Sentry SDK sets this attribute from the `bullmq.queue.grace` attribute of BullMQ's telemetry interface.\",\n ],\n },\n 'messaging.bullmq.queue.jobs.state': {\n brief: 'The BullMQ job state that the queue job count metric counts.',\n type: 'string',\n keys: ['messaging.bullmq.queue.jobs.state'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'waiting',\n examples: ['waiting', 'active', 'completed'],\n changelog: [{ version: '0.28.0', prs: [690], description: 'Added messaging.bullmq.queue.jobs.state attribute' }],\n additionalContext: [\n \"The Sentry SDK sets this attribute from the `bullmq.queue.jobs.state` attribute of BullMQ's telemetry interface.\",\n 'Set on the BullMQ queue job count metric.',\n ],\n },\n 'messaging.bullmq.queue.rate_limit': {\n brief: 'The time in milliseconds for which Queue.rateLimit() rate-limits the BullMQ queue.',\n type: 'integer',\n keys: ['messaging.bullmq.queue.rate_limit'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 5000,\n examples: [5000],\n changelog: [{ version: '0.28.0', prs: [690], description: 'Added messaging.bullmq.queue.rate_limit attribute' }],\n additionalContext: [\n \"The Sentry SDK sets this attribute from the `bullmq.queue.rate.limit` attribute of BullMQ's telemetry interface.\",\n ],\n },\n 'messaging.bullmq.worker.do_not_wait_active': {\n brief: 'Whether Worker.pause() returns without waiting for the active BullMQ jobs to finish.',\n type: 'boolean',\n keys: ['messaging.bullmq.worker.do_not_wait_active'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: false,\n examples: [false],\n changelog: [\n { version: '0.28.0', prs: [690], description: 'Added messaging.bullmq.worker.do_not_wait_active attribute' },\n ],\n additionalContext: [\n \"The Sentry SDK sets this attribute from the `bullmq.worker.do.not.wait.active` attribute of BullMQ's telemetry interface.\",\n ],\n },\n 'messaging.bullmq.worker.force_close': {\n brief: 'Whether Worker.close() closes the Worker without waiting for the active BullMQ jobs to finish.',\n type: 'boolean',\n keys: ['messaging.bullmq.worker.force_close'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: false,\n examples: [false],\n changelog: [{ version: '0.28.0', prs: [690], description: 'Added messaging.bullmq.worker.force_close attribute' }],\n additionalContext: [\n \"The Sentry SDK sets this attribute from the `bullmq.worker.force.close` attribute of BullMQ's telemetry interface.\",\n ],\n },\n 'messaging.bullmq.worker.jobs_to_extend_locks': {\n brief: 'The IDs of the BullMQ jobs whose locks the Worker extends.',\n type: 'string[]',\n keys: ['messaging.bullmq.worker.jobs_to_extend_locks'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: ['1', '2'],\n examples: [['1', '2']],\n changelog: [\n { version: '0.28.0', prs: [690], description: 'Added messaging.bullmq.worker.jobs_to_extend_locks attribute' },\n ],\n additionalContext: [\n \"The Sentry SDK sets this attribute from the `bullmq.worker.jobs.to.extend.locks` attribute of BullMQ's telemetry interface.\",\n ],\n },\n 'messaging.bullmq.worker.name': {\n brief: 'The name that the user gives to the BullMQ Worker in its options.',\n type: 'string',\n keys: ['messaging.bullmq.worker.name'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'email-worker',\n examples: ['email-worker'],\n changelog: [{ version: '0.28.0', prs: [690], description: 'Added messaging.bullmq.worker.name attribute' }],\n additionalContext: [\n \"The Sentry SDK sets this attribute from the `bullmq.worker.name` attribute of BullMQ's telemetry interface.\",\n ],\n },\n 'messaging.bullmq.worker.rate_limit': {\n brief: 'The time in milliseconds for which Worker.rateLimit() rate-limits the BullMQ Worker.',\n type: 'integer',\n keys: ['messaging.bullmq.worker.rate_limit'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 5000,\n examples: [5000],\n changelog: [{ version: '0.28.0', prs: [690], description: 'Added messaging.bullmq.worker.rate_limit attribute' }],\n additionalContext: [\n \"The Sentry SDK sets this attribute from the `bullmq.worker.rate.limit` attribute of BullMQ's telemetry interface.\",\n ],\n },\n 'messaging.bullmq.worker.stalled_jobs': {\n brief: 'The IDs of the stalled BullMQ jobs that the Worker moved back to the wait state.',\n type: 'string[]',\n keys: ['messaging.bullmq.worker.stalled_jobs'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: ['1', '2'],\n examples: [['1', '2']],\n changelog: [{ version: '0.28.0', prs: [690], description: 'Added messaging.bullmq.worker.stalled_jobs attribute' }],\n additionalContext: [\n \"The Sentry SDK sets this attribute from the `bullmq.worker.stalled.jobs` attribute of BullMQ's telemetry interface.\",\n ],\n },\n 'messaging.client.id': {\n brief: 'A unique identifier for the client that consumes or produces a message.',\n type: 'string',\n keys: ['messaging.client.id'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'client-5',\n examples: ['client-5', 'myhost@8742@s8083jm'],\n changelog: [{ version: '0.28.0', prs: [690], description: 'Added messaging.client.id attribute' }],\n additionalContext: [\n \"The Sentry SDK sets this attribute on BullMQ spans from the `bullmq.worker.id` attribute of BullMQ's telemetry interface, which is the ID of the Worker.\",\n ],\n },\n 'messaging.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 keys: ['messaging.message.conversation_id', 'messaging.conversation_id'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'MyConversationId',\n examples: ['MyConversationId'],\n deprecation: {\n replacement: 'messaging.message.conversation_id',\n reason: 'This attribute is being deprecated in favor of messaging.message.conversation_id.',\n status: 'backfill',\n },\n aliases: ['messaging.message.conversation_id'],\n changelog: [{ version: '0.21.0', prs: [581], description: 'Added messaging.conversation_id attribute' }],\n },\n 'messaging.destination': {\n brief: 'The message destination name.',\n type: 'string',\n keys: ['messaging.destination.name', 'messaging.destination'],\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 status: 'backfill',\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 keys: ['messaging.destination.connection'],\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_kind': {\n brief: 'The kind of message destination.',\n type: 'string',\n keys: ['messaging.destination_kind'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'topic',\n deprecation: {\n reason:\n 'Deprecated from OTEL, which now models the destination kind via messaging.operation.type and messaging.destination.name.',\n },\n changelog: [\n {\n version: '0.19.0',\n prs: [509],\n description:\n 'Added deprecated messaging.destination_kind attribute for parity with legacy OTel instrumentations.',\n },\n ],\n },\n 'messaging.destination.name': {\n brief: 'The message destination name.',\n type: 'string',\n keys: ['messaging.destination.name', 'messaging.destination'],\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.destination.partition.id': {\n brief:\n 'The identifier of the partition messages are sent to or received from, unique within the messaging.destination.name.',\n type: 'string',\n keys: ['messaging.destination.partition.id'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: '1',\n changelog: [{ version: '0.19.0', prs: [474], description: 'Added messaging.destination.partition.id attribute' }],\n },\n 'messaging.kafka.message.key': {\n brief:\n \"Message keys in Kafka are used for grouping alike messages to ensure they're processed on the same partition. They differ from messaging.message.id in that they're not unique. If the key is null, the attribute MUST NOT be set.\",\n type: 'string',\n keys: ['messaging.kafka.message.key'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'myKey',\n changelog: [{ version: '0.19.0', prs: [474], description: 'Added messaging.kafka.message.key attribute' }],\n },\n 'messaging.kafka.message.tombstone': {\n brief: 'A boolean that is true if the message is a tombstone.',\n type: 'boolean',\n keys: ['messaging.kafka.message.tombstone'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: true,\n changelog: [{ version: '0.19.0', prs: [474], description: 'Added messaging.kafka.message.tombstone attribute' }],\n },\n 'messaging.kafka.offset': {\n brief: 'The offset of a record in the corresponding Kafka partition.',\n type: 'integer',\n keys: ['messaging.kafka.offset'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 42,\n changelog: [{ version: '0.19.0', prs: [474], description: 'Added messaging.kafka.offset attribute' }],\n },\n 'messaging.message.body.size': {\n brief: 'The size of the message body in bytes.',\n type: 'integer',\n keys: ['messaging.message.body.size'],\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 searchAlias: {\n name: 'messaging.message.body.size',\n type: 'byte',\n },\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 keys: ['messaging.message.conversation_id', 'messaging.conversation_id'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'MyConversationId',\n aliases: ['messaging.conversation_id'],\n changelog: [\n { version: '0.21.0', prs: [581], description: 'Added messaging.conversation_id as an alias' },\n { version: '0.16.0', prs: [468], description: 'Added messaging.message.conversation_id attribute' },\n ],\n },\n 'messaging.message.envelope.size': {\n brief: 'The size of the message body and metadata in bytes.',\n type: 'integer',\n keys: ['messaging.message.envelope.size'],\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 keys: ['messaging.message.id', 'messaging.message_id'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'f47ac10b58cc4372a5670e02b2c3d479',\n aliases: ['messaging.message_id'],\n changelog: [\n { version: '0.21.0', prs: [581], description: 'Added messaging.message_id as an alias' },\n { version: '0.1.0', prs: [127] },\n { version: '0.0.0' },\n ],\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 keys: ['messaging.message.id', 'messaging.message_id'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: '452a7c7c7c7048c2f887f0e7',\n examples: ['452a7c7c7c7048c2f887f0e7'],\n deprecation: {\n replacement: 'messaging.message.id',\n reason: 'This attribute is being deprecated in favor of messaging.message.id.',\n status: 'backfill',\n },\n aliases: ['messaging.message.id'],\n changelog: [{ version: '0.21.0', prs: [581], description: 'Added messaging.message_id attribute' }],\n },\n 'messaging.message.receive.latency': {\n brief: 'The latency between when the message was published and received.',\n type: 'integer',\n keys: ['messaging.message.receive.latency'],\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 searchAlias: {\n name: 'messaging.message.receive.latency',\n type: 'millisecond',\n },\n },\n 'messaging.message.retry.count': {\n brief: 'The amount of attempts to send the message.',\n type: 'integer',\n keys: ['messaging.message.retry.count'],\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': {\n brief: 'The name of the messaging operation being performed.',\n type: 'string',\n keys: ['messaging.operation.name', 'messaging.operation'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'publish',\n examples: ['publish'],\n deprecation: {\n replacement: 'messaging.operation.name',\n reason: 'This attribute is being deprecated in favor of messaging.operation.name.',\n status: 'backfill',\n },\n aliases: ['messaging.operation.name'],\n changelog: [{ version: '0.21.0', prs: [581], description: 'Added messaging.operation attribute' }],\n },\n 'messaging.operation.name': {\n brief: 'The name of the messaging operation being performed',\n type: 'string',\n keys: ['messaging.operation.name', 'messaging.operation'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'send',\n aliases: ['messaging.operation'],\n changelog: [\n { version: '0.21.0', prs: [581], description: 'Added messaging.operation as an alias' },\n { version: '0.11.0', prs: [392], description: 'Added messaging.operation.name attribute' },\n ],\n },\n 'messaging.operation.type': {\n brief: 'A string identifying the type of the messaging operation',\n type: 'string',\n keys: ['messaging.operation.type'],\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.protocol': {\n brief: 'OSI application layer or non-OSI equivalent.',\n type: 'string',\n keys: ['network.protocol.name', 'messaging.protocol', 'net.protocol.name'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'AMQP',\n examples: ['AMQP'],\n deprecation: {\n replacement: 'network.protocol.name',\n reason: 'This attribute is being deprecated in favor of network.protocol.name.',\n status: 'backfill',\n },\n aliases: ['network.protocol.name', 'net.protocol.name'],\n changelog: [\n { version: '0.27.0', prs: [671], description: 'Removed the semantically distinct mcp.resource.protocol alias' },\n { version: '0.21.0', prs: [581], description: 'Added messaging.protocol attribute' },\n ],\n },\n 'messaging.protocol_version': {\n brief: 'The actual version of the protocol used for network communication.',\n type: 'string',\n keys: ['network.protocol.version', 'http.flavor', 'messaging.protocol_version', 'net.protocol.version'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: '0.9.1',\n examples: ['0.9.1'],\n deprecation: {\n replacement: 'network.protocol.version',\n reason: 'This attribute is being deprecated in favor of network.protocol.version.',\n status: 'backfill',\n },\n aliases: ['network.protocol.version', 'http.flavor', 'net.protocol.version'],\n changelog: [{ version: '0.21.0', prs: [581], description: 'Added messaging.protocol_version attribute' }],\n },\n 'messaging.rabbitmq.destination.routing_key': {\n brief: 'RabbitMQ message routing key.',\n type: 'string',\n keys: ['messaging.rabbitmq.destination.routing_key', 'messaging.rabbitmq.routing_key'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'myKey',\n aliases: ['messaging.rabbitmq.routing_key'],\n changelog: [\n { version: '0.21.0', prs: [581], description: 'Added messaging.rabbitmq.routing_key as an alias' },\n { version: '0.16.0', prs: [468], description: 'Added messaging.rabbitmq.destination.routing_key attribute' },\n ],\n },\n 'messaging.rabbitmq.routing_key': {\n brief: 'RabbitMQ message routing key.',\n type: 'string',\n keys: ['messaging.rabbitmq.destination.routing_key', 'messaging.rabbitmq.routing_key'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'myKey',\n examples: ['myKey'],\n deprecation: {\n replacement: 'messaging.rabbitmq.destination.routing_key',\n reason: 'This attribute is being deprecated in favor of messaging.rabbitmq.destination.routing_key.',\n status: 'backfill',\n },\n aliases: ['messaging.rabbitmq.destination.routing_key'],\n changelog: [{ version: '0.21.0', prs: [581], description: 'Added messaging.rabbitmq.routing_key attribute' }],\n },\n 'messaging.system': {\n brief: 'The messaging system as identified by the client instrumentation.',\n type: 'string',\n keys: ['messaging.system'],\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 'messaging.url': {\n brief: 'The connection string of the messaging broker.',\n type: 'string',\n keys: ['url.full', 'aws.request.url', 'http.url', 'messaging.url', 'url'],\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'amqp://guest:guest@localhost:5672',\n examples: ['amqp://guest:guest@localhost:5672'],\n deprecation: {\n replacement: 'url.full',\n reason: 'This attribute is being deprecated in favor of url.full.',\n status: 'backfill',\n },\n aliases: ['url.full', 'http.url', 'url', 'aws.request.url'],\n changelog: [{ version: '0.21.0', prs: [581], description: 'Added messaging.url attribute' }],\n },\n method: {\n brief: 'The HTTP method used.',\n type: 'string',\n keys: ['http.request.method', 'http.method', 'http.request_method', 'method'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'GET',\n deprecation: {\n replacement: 'http.request.method',\n status: 'normalize',\n },\n aliases: ['http.request.method', 'http.request_method', 'http.method'],\n changelog: [\n { version: '0.19.0', prs: [497], description: 'Configured normalization' },\n { version: '0.1.0', prs: [61, 127] },\n { version: '0.0.0' },\n ],\n },\n 'middleware.name': {\n brief: 'The name of the middleware.',\n type: 'string',\n keys: [\n 'middleware.name',\n 'django.middleware_name',\n 'litestar.middleware_name',\n 'starlette.middleware_name',\n 'starlite.middleware_name',\n ],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'AuthenticationMiddleware',\n aliases: [\n 'django.middleware_name',\n 'starlite.middleware_name',\n 'litestar.middleware_name',\n 'starlette.middleware_name',\n ],\n changelog: [\n {\n version: '0.19.0',\n prs: [485, 486, 519, 520],\n description:\n 'Added django.middleware_name, starlite.middleware_name, litestar.middleware_name and starlette.middleware_name as aliases',\n },\n { version: '0.6.0', prs: [336], description: 'Added middleware.name attribute' },\n ],\n },\n 'navigation.origin': {\n brief:\n 'The origin of the navigation (usually client side router navigations). Should preferably be a parameterized template (like url.template) or a URL path otherwise.',\n type: 'string',\n keys: ['router.navigation.origin', 'navigation.origin', 'sentry.sveltekit.navigation.from'],\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: false,\n visibility: 'public',\n example: '/users/:id',\n deprecation: {\n replacement: 'router.navigation.origin',\n reason: 'Moved to the router.* namespace to separate client-side router navigations from browser navigations.',\n status: 'backfill',\n },\n aliases: ['router.navigation.origin', 'sentry.sveltekit.navigation.from'],\n changelog: [\n { version: '0.22.0', prs: [600], description: 'Deprecated in favor of router.navigation.origin' },\n { version: '0.16.0', prs: [467], description: 'Added navigation.origin attribute' },\n ],\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 keys: ['router.navigation.route.id', 'navigation.route.id'],\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'AboutView',\n deprecation: {\n replacement: 'router.navigation.route.id',\n reason: 'Moved to the router.* namespace to separate client-side router navigations from browser navigations.',\n status: 'backfill',\n },\n aliases: ['router.navigation.route.id'],\n changelog: [\n { version: '0.22.0', prs: [600], description: 'Deprecated in favor of router.navigation.route.id' },\n { version: '0.16.0', prs: [468], description: 'Added navigation.route.id attribute' },\n ],\n },\n 'navigation.type': {\n brief: 'The type of navigation done by a client-side router.',\n type: 'string',\n keys: ['router.navigation.type', 'navigation.type', 'sentry.sveltekit.navigation.type'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'router.push',\n deprecation: {\n replacement: 'router.navigation.type',\n reason: 'Moved to the router.* namespace to separate client-side router navigations from browser navigations.',\n status: 'backfill',\n },\n aliases: ['router.navigation.type', 'sentry.sveltekit.navigation.type'],\n changelog: [\n { version: '0.22.0', prs: [600], description: 'Deprecated in favor of router.navigation.type' },\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 keys: ['nel.elapsed_time'],\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 keys: ['nel.phase'],\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 keys: ['nel.referrer'],\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_fraction': {\n brief: 'The sampling fraction used to determine if the request should be sampled.',\n type: 'double',\n keys: ['nel.sampling_fraction', 'nel.sampling_function'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 0.5,\n examples: [0.5],\n aliases: ['nel.sampling_function'],\n changelog: [{ version: '0.26.0', prs: [668], description: 'Added nel.sampling_fraction attribute' }],\n },\n 'nel.sampling_function': {\n brief: 'The sampling function used to determine if the request should be sampled.',\n type: 'double',\n keys: ['nel.sampling_fraction', 'nel.sampling_function'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 0.5,\n deprecation: {\n replacement: 'nel.sampling_fraction',\n reason: 'The correct name of this attribute is nel.sampling_fraction',\n status: 'backfill',\n },\n aliases: ['nel.sampling_fraction'],\n changelog: [\n { version: '0.26.0', prs: [668], description: 'Deprecated in favor of nel.sampling_fraction' },\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 keys: ['nel.type'],\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 keys: ['network.connection.effective_type', 'effectiveConnectionType'],\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 keys: ['network.connection.rtt', 'connection.rtt'],\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 keys: ['network.connection.type', 'connectionType', 'device.connection_type'],\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 keys: ['network.local.address', 'net.host.ip', 'net.sock.host.addr'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: '10.1.2.80',\n examples: ['10.1.2.80', '/var/run/my.sock'],\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 keys: ['network.local.port', 'net.sock.host.port'],\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 keys: ['network.peer.address', 'net.peer.ip', 'net.sock.peer.addr'],\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 keys: ['network.peer.port', 'net.sock.peer.port'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 65400,\n aliases: ['net.sock.peer.port'],\n changelog: [\n { version: '0.21.0', prs: [588], description: 'Added net.sock.peer.port as an alias' },\n { version: '0.4.0', prs: [228] },\n { version: '0.0.0' },\n ],\n },\n 'network.protocol.name': {\n brief: 'OSI application layer or non-OSI equivalent.',\n type: 'string',\n keys: ['network.protocol.name', 'messaging.protocol', 'net.protocol.name'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'http',\n examples: ['http'],\n aliases: ['net.protocol.name', 'messaging.protocol'],\n changelog: [\n { version: '0.27.0', prs: [671], description: 'Removed the semantically distinct mcp.resource.protocol alias' },\n { version: '0.21.0', prs: [581], description: 'Added messaging.protocol as an alias' },\n { version: '0.1.0', prs: [127] },\n { version: '0.0.0' },\n ],\n },\n 'network.protocol.version': {\n brief: 'The actual version of the protocol used for network communication.',\n type: 'string',\n keys: ['network.protocol.version', 'http.flavor', 'messaging.protocol_version', 'net.protocol.version'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: '1.1',\n aliases: ['http.flavor', 'net.protocol.version', 'messaging.protocol_version'],\n changelog: [\n { version: '0.21.0', prs: [581], description: 'Added messaging.protocol_version as an alias' },\n { version: '0.1.0', prs: [127] },\n { version: '0.0.0' },\n ],\n },\n 'network.transport': {\n brief: 'OSI transport layer or inter-process communication method.',\n type: 'string',\n keys: ['network.transport'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'tcp',\n examples: ['tcp'],\n aliases: ['net.transport'],\n changelog: [\n { version: '0.27.0', prs: [671], description: 'Removed the semantically distinct mcp.transport alias' },\n { version: '0.1.0', prs: [127] },\n { version: '0.0.0' },\n ],\n },\n 'network.type': {\n brief: 'OSI network layer or non-OSI equivalent.',\n type: 'string',\n keys: ['network.type'],\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 keys: ['network.local.address', 'net.host.ip', 'net.sock.host.addr'],\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 status: 'backfill',\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 keys: ['server.address', 'address', 'http.server_name', 'net.host.name', 'server_name'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'example.com',\n deprecation: {\n replacement: 'server.address',\n status: 'backfill',\n },\n aliases: ['address', 'server.address', 'http.server_name', 'http.host', 'server_name', 'net.peer.name'],\n changelog: [\n { version: '0.24.0', prs: [647], description: 'Added server_name as an alias' },\n { version: '0.21.0', prs: [588, 602], description: 'Added net.peer.name as an alias' },\n { version: '0.19.0', prs: [534], description: 'Added address as an alias' },\n { version: '0.1.0', prs: [61, 108, 127] },\n { version: '0.0.0' },\n ],\n },\n 'net.host.port': {\n brief: 'Server port number.',\n type: 'integer',\n keys: ['server.port', 'net.host.port', 'port'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 1337,\n deprecation: {\n replacement: 'server.port',\n status: 'backfill',\n },\n aliases: ['server.port', 'port'],\n changelog: [\n { version: '0.19.0', prs: [532], description: 'Added port as an alias' },\n { version: '0.4.0', prs: [228] },\n { version: '0.1.0', prs: [61] },\n { version: '0.0.0' },\n ],\n },\n 'net.peer.ip': {\n brief: 'Peer address of the network connection - IP address or Unix domain socket name.',\n type: 'string',\n keys: ['network.peer.address', 'net.peer.ip', 'net.sock.peer.addr'],\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 status: 'backfill',\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 keys: ['net.peer.name'],\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 server.address on client spans and client.address on server spans.',\n },\n aliases: ['address', 'server.address', 'http.server_name', 'net.host.name', 'http.host', 'server_name'],\n changelog: [\n { version: '0.24.0', prs: [647], description: 'Added server_name as an alias' },\n { version: '0.21.0', prs: [588, 602], description: 'Added the server.address alias group to net.peer.name' },\n { version: '0.1.0', prs: [61, 127] },\n { version: '0.0.0' },\n ],\n },\n 'net.peer.port': {\n brief: 'Peer port number.',\n type: 'integer',\n keys: ['net.peer.port'],\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 keys: ['network.protocol.name', 'messaging.protocol', 'net.protocol.name'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'http',\n examples: ['http'],\n deprecation: {\n replacement: 'network.protocol.name',\n status: 'backfill',\n },\n aliases: ['network.protocol.name', 'messaging.protocol'],\n changelog: [\n { version: '0.27.0', prs: [671], description: 'Removed the semantically distinct mcp.resource.protocol alias' },\n { version: '0.21.0', prs: [581], description: 'Added messaging.protocol as an alias' },\n { version: '0.1.0', prs: [61, 127] },\n { version: '0.0.0' },\n ],\n },\n 'net.protocol.version': {\n brief: 'The actual version of the protocol used for network communication.',\n type: 'string',\n keys: ['network.protocol.version', 'http.flavor', 'messaging.protocol_version', 'net.protocol.version'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: '1.1',\n deprecation: {\n replacement: 'network.protocol.version',\n status: 'backfill',\n },\n aliases: ['network.protocol.version', 'http.flavor', 'messaging.protocol_version'],\n changelog: [\n { version: '0.21.0', prs: [581], description: 'Added messaging.protocol_version as an alias' },\n { version: '0.1.0', prs: [61, 108, 127] },\n { version: '0.0.0' },\n ],\n },\n 'net.sock.family': {\n brief: 'OSI transport and network layer',\n type: 'string',\n keys: ['net.sock.family'],\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 keys: ['network.local.address', 'net.host.ip', 'net.sock.host.addr'],\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 status: 'backfill',\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 keys: ['network.local.port', 'net.sock.host.port'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 8080,\n deprecation: {\n replacement: 'network.local.port',\n status: 'backfill',\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 keys: ['network.peer.address', 'net.peer.ip', 'net.sock.peer.addr'],\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 status: 'backfill',\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 keys: ['net.sock.peer.name'],\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 keys: ['network.peer.port', 'net.sock.peer.port'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 8080,\n deprecation: {\n replacement: 'network.peer.port',\n status: 'backfill',\n },\n aliases: ['network.peer.port'],\n changelog: [\n { version: '0.21.0', prs: [588], description: 'Added network.peer.port as an alias' },\n { version: '0.4.0', prs: [228] },\n { version: '0.1.0', prs: [61] },\n { version: '0.0.0' },\n ],\n },\n 'net.transport': {\n brief: 'OSI transport layer or inter-process communication method.',\n type: 'string',\n keys: ['net.transport'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'tcp',\n examples: ['tcp'],\n deprecation: {\n replacement: 'network.transport',\n reason:\n 'This attribute is being deprecated in favor of network.transport. The values change from ip_tcp and ip_udp to tcp and udp, so the old value cannot be copied over.',\n },\n aliases: ['network.transport'],\n changelog: [\n { version: '0.27.0', prs: [671], description: 'Removed the semantically distinct mcp.transport alias' },\n {\n version: '0.21.0',\n prs: [588],\n description: 'Set net.transport to _status null, because its values change on the replacement',\n },\n { version: '0.1.0', prs: [61, 127] },\n { version: '0.0.0' },\n ],\n },\n 'os.build': {\n brief: 'The build ID of the operating system.',\n type: 'string',\n keys: ['os.build_id', 'os.build'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: '1234567890',\n deprecation: {\n replacement: 'os.build_id',\n status: 'backfill',\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 keys: ['os.build_id', 'os.build'],\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 keys: ['os.description'],\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 keys: ['os.kernel_version'],\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 keys: ['os.name'],\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 keys: ['os.raw_description'],\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 keys: ['os.rooted'],\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 keys: ['os.theme'],\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 keys: ['os.type'],\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 keys: ['os.version'],\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 keys: ['sentry.kind', 'span.kind', 'otel.kind'],\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 status: 'backfill',\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 keys: ['otel.scope.name'],\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 keys: ['otel.scope.version'],\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 “OK” or “ERROR”. MUST NOT be set if the status code is UNSET.',\n type: 'string',\n keys: ['otel.status_code'],\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 keys: ['otel.status_description'],\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 'page.server_rendering.age': {\n brief:\n 'Set on a pageload span. The time in seconds from the start of the server render of the reused part of the page to the start of the span.',\n type: 'integer',\n keys: ['page.server_rendering.age'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 0,\n examples: [0, 2520, 259200],\n changelog: [{ version: '0.34.0', prs: [799], description: 'Added page.server_rendering.age attribute' }],\n additionalContext: [\n 'Set only by an SDK that controls the server render, when the page reuses a server render and the SDK knows when that render started. With `page.server_rendering.type: partially_static`, the value is for the static part.',\n 'If the span has a `cache_origin` link, the linked span is that render. The SDK can also set the value without a link, for example for a page from the build.',\n 'Approximate, because the render time comes from the server clock and the span start from the browser clock. Rounded down to whole seconds and clamped to 0, as `cache.item_age`. A value near 0 does not prove that the server rendered the page for this request.',\n 'The age of the render, not of its data. The render can read older cached data.',\n 'Not the HTTP `Age` response header. HTTP caches reset that header when they validate the response.',\n ],\n searchAlias: {\n name: 'page.server_rendering.age',\n type: 'second',\n },\n },\n 'page.server_rendering.type': {\n brief:\n 'Set on a pageload span. Describes how the server rendered the content of the page: to reuse it for other requests, only for this request, or a mix of both.',\n type: 'string',\n keys: ['page.server_rendering.type'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'static',\n examples: ['static', 'partially_static', 'dynamic'],\n changelog: [\n { version: '0.34.0', prs: [789], description: 'Added the cache_origin link to the reused part' },\n { version: '0.31.0', prs: [740], description: 'Added page.server_rendering.type attribute' },\n ],\n additionalContext: [\n 'Set only by an SDK that controls the server render, and only when the SDK knows the value.',\n 'More values can be added later.',\n 'Not set when the browser renders the content of the page (client-side rendering), or when the SDK does not know the value.',\n 'With `static` and `partially_static`, the server spans that rendered the reused part are not in the trace of the pageload span. If Sentry recorded them, they are in a different trace. The pageload span can link to them with a `cache_origin` link.',\n \"Describes how the server rendered the page, not how the page was delivered. A CDN or the browser cache can reuse a response with any value. For the browser's own [prerendering](https://developer.mozilla.org/en-US/docs/Web/API/Document/prerendering), see `browser.navigation.type`.\",\n ],\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 keys: ['params.', 'url.path.parameter.', 'url.path.params.'],\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.', 'url.path.params.'],\n changelog: [\n { version: '0.21.0', prs: [586], description: 'Added url.path.params. as an alias' },\n { version: '0.1.0', prs: [103] },\n ],\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 keys: ['browser.performance.navigation.activation_start', 'performance.activationStart'],\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 status: 'backfill',\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 keys: ['browser.performance.time_origin', 'performance.timeOrigin'],\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 status: 'backfill',\n },\n aliases: ['browser.performance.time_origin'],\n changelog: [{ version: '0.5.0', prs: [321], description: 'Added performance.timeOrigin attribute' }],\n },\n port: {\n brief: 'The destination port for a TCP connection.',\n type: 'integer',\n keys: ['server.port', 'net.host.port', 'port'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 1337,\n examples: [1337],\n deprecation: {\n replacement: 'server.port',\n reason: 'Old namespace-less attribute, to be replaced with server.port for span-first future',\n status: 'backfill',\n },\n aliases: ['server.port', 'net.host.port'],\n changelog: [{ version: '0.19.0', prs: [532], description: 'Added port attribute' }],\n },\n previous_route: {\n brief: 'Also used by mobile SDKs to indicate the previous route in the application.',\n type: 'string',\n keys: ['previous_route'],\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 keys: ['process.command_args'],\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 keys: ['process.executable.name'],\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 keys: ['process.pid', 'subprocess.pid'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 12345,\n aliases: ['subprocess.pid'],\n changelog: [\n { version: '0.19.0', prs: [487], description: 'Added subprocess.pid as an alias' },\n { version: '0.4.0', prs: [228] },\n { version: '0.0.0' },\n ],\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 keys: ['process.runtime.description', 'runtime.raw_description'],\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.elixir.memory.type': {\n brief:\n 'The kind of BEAM memory a measurement covers: processes, atom, binary, code, ets, or other for the rest of the VM total.',\n type: 'string',\n keys: ['process.runtime.elixir.memory.type'],\n applyScrubbing: {\n key: 'never',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'processes',\n examples: ['processes', 'binary', 'other'],\n changelog: [{ version: '0.34.0', prs: [768], description: 'Added process.runtime.elixir.memory.type attribute' }],\n },\n 'process.runtime.elixir.run_queue.type': {\n brief:\n 'The kind of BEAM run queue a measurement covers: cpu for the normal and dirty CPU scheduler run queues, io for the dirty IO run queue.',\n type: 'string',\n keys: ['process.runtime.elixir.run_queue.type'],\n applyScrubbing: {\n key: 'never',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'cpu',\n examples: ['cpu', 'io'],\n changelog: [\n { version: '0.34.0', prs: [768], description: 'Added process.runtime.elixir.run_queue.type attribute' },\n ],\n },\n 'process.runtime.engine.name': {\n brief: 'The name of the runtime engine.',\n type: 'string',\n keys: ['process.runtime.engine.name'],\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 keys: ['process.runtime.engine.version'],\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 keys: ['process.runtime.name', 'runtime.name'],\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 keys: ['process.runtime.version', 'runtime.version'],\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 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 keys: ['sentry.profile_id', 'profile.id', 'profile_id'],\n applyScrubbing: {\n key: 'never',\n },\n isInOtel: false,\n visibility: 'public',\n example: '123e4567e89b12d3a456426614174000',\n deprecation: {\n replacement: 'sentry.profile_id',\n status: 'normalize',\n },\n aliases: ['sentry.profile_id'],\n changelog: [{ version: '0.19.0', prs: [497], description: 'Added profile_id attribute' }],\n },\n query: {\n brief: 'The database query being executed.',\n type: 'string',\n keys: ['db.query.text', 'db.statement', 'query'],\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'SELECT * FROM users WHERE id = $1',\n examples: ['SELECT * FROM users WHERE id = $1'],\n deprecation: {\n replacement: 'db.query.text',\n reason:\n 'While this attribute never specifically required parameterization, the replacement, db.query.text, does.',\n status: 'backfill',\n },\n aliases: ['db.query.text', 'db.statement'],\n changelog: [{ version: '0.19.0', prs: [530], description: 'Added query attribute' }],\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 keys: ['query.'],\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_native.architecture': {\n brief:\n 'The React Native architecture the app is running on. `new` for the New Architecture, where native modules are resolved as TurboModules through `TurboModuleRegistry`, `legacy` for the Old Architecture bridge.',\n type: 'string',\n keys: ['react_native.architecture', 'turbo_module.arch'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'new',\n examples: ['new', 'legacy'],\n aliases: ['turbo_module.arch'],\n changelog: [{ version: '0.24.0', prs: [564], description: 'Added react_native.architecture attribute' }],\n },\n 'react_native.module.call.count': {\n brief: 'The number of native module calls observed during the lifetime of the span.',\n type: 'integer',\n keys: ['react_native.module.call.count', 'turbo_module.total_call_count', 'turbo_modules.total_call_count'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 42,\n examples: [42],\n aliases: ['turbo_module.total_call_count', 'turbo_modules.total_call_count'],\n changelog: [{ version: '0.24.0', prs: [564], description: 'Added react_native.module.call.count attribute' }],\n },\n 'react_native.module.call.distinct_count': {\n brief:\n 'The number of distinct native module and method pairs called during the lifetime of the span. Useful as a cardinality signal when the per-method breakdown has been truncated.',\n type: 'integer',\n keys: ['react_native.module.call.distinct_count', 'turbo_module.unique_methods', 'turbo_modules.unique_methods'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 7,\n examples: [7],\n aliases: ['turbo_module.unique_methods', 'turbo_modules.unique_methods'],\n changelog: [\n { version: '0.24.0', prs: [564], description: 'Added react_native.module.call.distinct_count attribute' },\n ],\n },\n 'react_native.module.duration.max': {\n brief:\n 'The duration of the slowest single native module call observed during the lifetime of the span, in milliseconds.',\n type: 'double',\n keys: ['react_native.module.duration.max'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 512.5,\n examples: [512.5],\n changelog: [{ version: '0.24.0', prs: [564], description: 'Added react_native.module.duration.max attribute' }],\n },\n 'react_native.module.duration.total': {\n brief:\n 'The combined wall-clock duration of all native module calls observed during the lifetime of the span, in milliseconds. Calls overlap, so this can exceed the span duration.',\n type: 'double',\n keys: ['react_native.module.duration.total', 'turbo_module.total_duration_ms', 'turbo_modules.total_duration_ms'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 128.45,\n examples: [128.45],\n aliases: ['turbo_module.total_duration_ms', 'turbo_modules.total_duration_ms'],\n changelog: [{ version: '0.24.0', prs: [564], description: 'Added react_native.module.duration.total attribute' }],\n },\n 'react_native.module.error.count': {\n brief:\n 'The number of native module calls that failed during the lifetime of the span. A call counts as failed when it threw, rejected, or — on the Old Architecture bridge only — invoked its failure callback.',\n type: 'integer',\n keys: ['react_native.module.error.count', 'turbo_module.total_error_count', 'turbo_modules.total_error_count'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 2,\n examples: [2],\n aliases: ['turbo_module.total_error_count', 'turbo_modules.total_error_count'],\n changelog: [{ version: '0.24.0', prs: [564], description: 'Added react_native.module.error.count attribute' }],\n },\n 'react_native.module.kind': {\n brief:\n 'Whether the native module call completed synchronously or reported completion later through a Promise or a callback. One of `sync` or `async`.',\n type: 'string',\n keys: ['react_native.module.kind'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'sync',\n examples: ['sync', 'async'],\n changelog: [{ version: '0.24.0', prs: [564], description: 'Added react_native.module.kind attribute' }],\n },\n 'react_native.module.method': {\n brief: 'The name of the native module method that was called.',\n type: 'string',\n keys: ['react_native.module.method', 'turbo_module.method'],\n applyScrubbing: {\n key: 'manual',\n reason:\n 'Native module and method names are app-defined identifiers, but scrubbing them would make the call attribution unusable',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'getUniqueId',\n examples: ['getUniqueId'],\n aliases: ['turbo_module.method'],\n changelog: [{ version: '0.24.0', prs: [564], description: 'Added react_native.module.method attribute' }],\n },\n 'react_native.module.name': {\n brief:\n 'The name of the native module the call was dispatched to. On the New Architecture this is the TurboModule name, on the Old Architecture the `NativeModules` key.',\n type: 'string',\n keys: ['react_native.module.name', 'turbo_module.name'],\n applyScrubbing: {\n key: 'manual',\n reason:\n 'Native module and method names are app-defined identifiers, but scrubbing them would make the call attribution unusable',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'RNDeviceInfo',\n examples: ['RNDeviceInfo'],\n aliases: ['turbo_module.name'],\n changelog: [{ version: '0.24.0', prs: [564], description: 'Added react_native.module.name attribute' }],\n },\n 'react_native.module.top.duration': {\n brief: 'The total duration attributed to `react_native.module.top.name`, in milliseconds.',\n type: 'double',\n keys: ['react_native.module.top.duration', 'turbo_module.top_module_duration_ms'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 87.25,\n examples: [87.25],\n aliases: ['turbo_module.top_module_duration_ms'],\n changelog: [{ version: '0.24.0', prs: [564], description: 'Added react_native.module.top.duration attribute' }],\n },\n 'react_native.module.top.name': {\n brief:\n 'The native module and method that accounted for the most total duration during the lifetime of the span, formatted as `.`.',\n type: 'string',\n keys: ['react_native.module.top.name', 'turbo_module.top_module'],\n applyScrubbing: {\n key: 'manual',\n reason:\n 'Native module and method names are app-defined identifiers, but scrubbing them would make the call attribution unusable',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'RNDeviceInfo.getUniqueId',\n examples: ['RNDeviceInfo.getUniqueId'],\n aliases: ['turbo_module.top_module'],\n changelog: [{ version: '0.24.0', prs: [564], description: 'Added react_native.module.top.name attribute' }],\n },\n 'react.version': {\n brief: 'The version of the React framework',\n type: 'string',\n keys: ['react.version'],\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 'redis.command': {\n brief: 'The name of the Redis operation being executed.',\n type: 'string',\n keys: ['db.operation.name', 'cloudflare.d1.query_type', 'db.operation', 'redis.command'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'SELECT',\n examples: ['SELECT'],\n deprecation: {\n replacement: 'db.operation.name',\n status: 'backfill',\n },\n aliases: ['cloudflare.d1.query_type', 'db.operation.name', 'db.operation'],\n changelog: [{ version: '0.19.0', prs: [531], description: 'Added redis.command attribute' }],\n },\n 'redis.key': {\n brief: 'The key the Redis command is operating on.',\n type: 'string',\n keys: ['db.redis.key', 'redis.key'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'user:2047:city',\n deprecation: {\n replacement: 'db.redis.key',\n reason: 'This attribute is being deprecated in favor of db.redis.key, which is the preferred replacement.',\n status: 'backfill',\n },\n aliases: ['db.redis.key'],\n changelog: [\n { version: '0.19.0', prs: [484], description: 'Added redis.key attribute, deprecated in favor of db.redis.key' },\n ],\n },\n release: {\n brief: 'The sentry release.',\n type: 'string',\n keys: ['sentry.release', 'release', 'service.version'],\n applyScrubbing: {\n key: 'never',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'production',\n deprecation: {\n replacement: 'sentry.release',\n status: 'normalize',\n },\n aliases: ['sentry.release'],\n changelog: [\n { version: '0.19.0', prs: [497], description: 'Configured normalization' },\n { version: '0.1.0', prs: [61, 127] },\n { version: '0.0.0' },\n ],\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 keys: ['remix.action_form_data.'],\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 replayId: {\n brief: 'The id of the sentry replay.',\n type: 'string',\n keys: ['replayId'],\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.24.0', prs: [401] }],\n },\n replay_id: {\n brief: 'The id of the sentry replay.',\n type: 'string',\n keys: ['sentry.replay_id', 'replay.id', 'replay_id'],\n applyScrubbing: {\n key: 'never',\n },\n isInOtel: false,\n visibility: 'public',\n example: '123e4567e89b12d3a456426614174000',\n deprecation: {\n replacement: 'sentry.replay_id',\n status: 'normalize',\n },\n aliases: ['sentry.replay_id'],\n changelog: [\n { version: '0.19.0', prs: [497], description: 'Configured normalization' },\n { version: '0.1.0', prs: [61] },\n { version: '0.0.0' },\n ],\n },\n 'resource.deployment.environment': {\n brief: 'The software deployment environment name.',\n type: 'string',\n keys: [\n 'sentry.environment',\n 'environment',\n 'resource.deployment.environment',\n 'resource.deployment.environment.name',\n ],\n applyScrubbing: {\n key: 'never',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'production',\n deprecation: {\n replacement: 'sentry.environment',\n status: 'backfill',\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 keys: [\n 'sentry.environment',\n 'environment',\n 'resource.deployment.environment',\n 'resource.deployment.environment.name',\n ],\n applyScrubbing: {\n key: 'never',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'production',\n deprecation: {\n replacement: 'sentry.environment',\n status: 'backfill',\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 keys: ['resource.render_blocking_status'],\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 keys: ['route'],\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 'router.navigation.origin': {\n brief:\n 'The origin of the navigation (usually client side router navigations). Should preferably be a parameterized template (like url.template) or a URL path otherwise.',\n type: 'string',\n keys: ['router.navigation.origin', 'navigation.origin', 'sentry.sveltekit.navigation.from'],\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: false,\n visibility: 'public',\n example: '/users/:id',\n aliases: ['navigation.origin', 'sentry.sveltekit.navigation.from'],\n changelog: [\n {\n version: '0.22.0',\n prs: [600],\n description: 'Added router.navigation.origin attribute, replacing navigation.origin',\n },\n ],\n },\n 'router.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 keys: ['router.navigation.route.id', 'navigation.route.id'],\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'AboutView',\n aliases: ['navigation.route.id'],\n changelog: [\n {\n version: '0.22.0',\n prs: [600],\n description: 'Added router.navigation.route.id attribute, replacing navigation.route.id',\n },\n ],\n },\n 'router.navigation.type': {\n brief: 'The type of navigation done by a client-side router.',\n type: 'string',\n keys: ['router.navigation.type', 'navigation.type', 'sentry.sveltekit.navigation.type'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'router.push',\n aliases: ['navigation.type', 'sentry.sveltekit.navigation.type'],\n changelog: [\n {\n version: '0.22.0',\n prs: [600],\n description: 'Added router.navigation.type attribute, replacing navigation.type',\n },\n ],\n },\n 'rpc.grpc.status_code': {\n brief: 'The numeric status code of the gRPC request.',\n type: 'integer',\n keys: ['rpc.grpc.status_code'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 2,\n deprecation: {\n replacement: 'rpc.response.status_code',\n reason:\n 'Cannot be automatically backfilled due to type mismatch (integer vs string); rpc.grpc.status_code is a numeric gRPC status code while rpc.response.status_code is the string status name.',\n },\n aliases: ['code', 'rpc.response.status_code'],\n changelog: [\n {\n version: '0.19.0',\n prs: [494, 533],\n description: 'Deprecated rpc.grpc.status_code in favor of rpc.response.status_code',\n },\n { version: '0.4.0', prs: [228] },\n { version: '0.0.0' },\n ],\n },\n 'rpc.method': {\n brief: 'The fully-qualified logical name of the method from the RPC interface perspective.',\n type: 'string',\n keys: ['rpc.method', 'aws.operation_name'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'com.example.ExampleService/exampleMethod',\n examples: ['com.example.ExampleService/exampleMethod', 'GetObject'],\n aliases: ['aws.operation_name'],\n changelog: [\n { version: '0.29.0', prs: [707], description: 'Added AWS SDK example and additional context' },\n { version: '0.19.0', prs: [536], description: 'Added aws.operation_name as an alias' },\n { version: '0.7.0', prs: [351], description: 'Added rpc.method attribute' },\n ],\n additionalContext: ['For AWS SDK calls, this is the operation name only, as the SDK reports it, e.g. `GetObject`.'],\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 keys: ['rpc.response.status_code', 'code'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'DEADLINE_EXCEEDED',\n aliases: ['code', 'rpc.grpc.status_code'],\n changelog: [\n { version: '0.19.0', prs: [494, 533], description: 'Added code and rpc.grpc.status_code as aliases' },\n { version: '0.7.0', prs: [352], description: 'Added rpc.response.status_code attribute' },\n ],\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 keys: ['rpc.service'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'myService.BestService',\n examples: ['myService.BestService', 'S3', 'APIGateway'],\n changelog: [\n { version: '0.29.0', prs: [707], description: 'Added AWS SDK examples' },\n { version: '0.28.0', prs: [714], description: 'Added additional context about the OpenTelemetry deprecation' },\n { version: '0.1.0', prs: [127] },\n { version: '0.0.0' },\n ],\n additionalContext: [\n 'Deprecated in OpenTelemetry for generic RPC spans. The value should be included in `rpc.method`, which is expected to be the fully-qualified name.',\n 'Still set on AWS SDK spans, where it holds the AWS service ID with all whitespace removed (e.g. `S3`, `APIGateway` for `API Gateway`) and `rpc.method` is set to the operation (e.g. `GetObject`).',\n ],\n },\n 'rpc.system': {\n brief: 'A string identifying the remoting system.',\n type: 'string',\n keys: ['rpc.system.name', 'rpc.system'],\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 status: 'backfill',\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 keys: ['rpc.system.name', 'rpc.system'],\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 keys: ['runtime.build'],\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 keys: ['process.runtime.name', 'runtime.name'],\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 status: 'backfill',\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 keys: ['process.runtime.description', 'runtime.raw_description'],\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 status: 'backfill',\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 keys: ['process.runtime.version', 'runtime.version'],\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 status: 'backfill',\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 keys: ['score.'],\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 keys: ['score.ratio.'],\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 keys: ['score.total'],\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 keys: ['score.weight.'],\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 keys: ['sentry.action', 'span.action'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'SELECT',\n changelog: [{ version: '0.4.0', prs: [212] }],\n searchAlias: {\n name: 'span.action',\n },\n },\n 'sentry.browser.name': {\n brief: 'The name of the browser.',\n type: 'string',\n keys: ['browser.name', 'sentry.browser.name'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'Chrome',\n deprecation: {\n replacement: 'browser.name',\n status: 'backfill',\n },\n aliases: ['browser.name'],\n changelog: [{ version: '0.1.0', prs: [139] }],\n searchAlias: {\n name: 'browser.name',\n },\n },\n 'sentry.browser.version': {\n brief: 'The version of the browser.',\n type: 'string',\n keys: ['browser.version', 'sentry.browser.version'],\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 status: 'backfill',\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 keys: ['sentry.cancellation_reason'],\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).',\n type: 'string',\n keys: ['sentry.category', 'span.category'],\n applyScrubbing: {\n key: 'never',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'db',\n changelog: [\n { version: '0.28.0', prs: [721], description: 'Added object to the enum values' },\n { version: '0.4.0', prs: [218] },\n ],\n searchAlias: {\n name: 'span.category',\n },\n },\n 'sentry.client_sample_rate': {\n brief: 'Rate at which a span was sampled in the SDK.',\n type: 'double',\n keys: ['sentry.client_sample_rate', 'client_sample_rate'],\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 searchAlias: {\n name: 'client_sample_rate',\n },\n },\n 'sentry.description': {\n brief: 'The human-readable description of a span.',\n type: 'string',\n keys: ['sentry.description'],\n applyScrubbing: {\n key: 'manual',\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 keys: ['sentry.dist', 'dist'],\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 keys: ['sentry.domain', 'span.domain'],\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 searchAlias: {\n name: 'span.domain',\n },\n },\n 'sentry.dsc.environment': {\n brief: 'The environment from the dynamic sampling context.',\n type: 'string',\n keys: ['sentry.dsc.environment'],\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 keys: ['sentry.dsc.project_id'],\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 keys: ['sentry.dsc.public_key'],\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 keys: ['sentry.dsc.release'],\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 keys: ['sentry.dsc.sampled'],\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 keys: ['sentry.dsc.sample_rate'],\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 keys: ['sentry.dsc.trace_id'],\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 keys: ['sentry.dsc.transaction'],\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 keys: [\n 'sentry.environment',\n 'environment',\n 'resource.deployment.environment',\n 'resource.deployment.environment.name',\n ],\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 searchAlias: {\n name: 'environment',\n },\n },\n 'sentry.event.serialized_breadcrumbs': {\n brief: 'JSON-serialized `breadcrumbs` property from a Sentry event.',\n type: 'string',\n keys: ['sentry.event.serialized_breadcrumbs'],\n applyScrubbing: {\n key: 'never',\n },\n isInOtel: false,\n visibility: 'internal',\n changelog: [{ version: '0.19.0', prs: [556] }],\n },\n 'sentry.event.serialized_contexts': {\n brief: 'JSON-serialized `contexts` property from a Sentry event.',\n type: 'string',\n keys: ['sentry.event.serialized_contexts'],\n applyScrubbing: {\n key: 'never',\n },\n isInOtel: false,\n visibility: 'internal',\n changelog: [{ version: '0.19.0', prs: [556] }],\n },\n 'sentry.event.serialized_extra': {\n brief: 'JSON-serialized `extra` property from a Sentry event.',\n type: 'string',\n keys: ['sentry.event.serialized_extra'],\n applyScrubbing: {\n key: 'never',\n },\n isInOtel: false,\n visibility: 'internal',\n changelog: [{ version: '0.19.0', prs: [556] }],\n },\n 'sentry.event.serialized_meta': {\n brief: 'JSON-serialized `_meta` for the `sentry.event.serialized_*` properties from a Sentry event.',\n type: 'string',\n keys: ['sentry.event.serialized_meta'],\n applyScrubbing: {\n key: 'never',\n },\n isInOtel: false,\n visibility: 'internal',\n changelog: [{ version: '0.20.0', prs: [566] }],\n },\n 'sentry.exclusive_time': {\n brief: 'The exclusive time duration of the span in milliseconds.',\n type: 'double',\n keys: ['sentry.exclusive_time'],\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.frames.frozen': {\n brief: 'The number of frozen frames rendered during the lifetime of the span.',\n type: 'integer',\n keys: ['app.vitals.frames.frozen.count', 'frames.frozen', 'mobile.frozen_frames', 'sentry.frames.frozen'],\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 status: 'backfill',\n },\n aliases: ['app.vitals.frames.frozen.count', 'frames.frozen'],\n changelog: [{ version: '0.19.0', prs: [500], description: 'Added sentry.frames.frozen attribute' }],\n },\n 'sentry.frames.slow': {\n brief: 'The number of slow frames rendered during the lifetime of the span.',\n type: 'integer',\n keys: ['app.vitals.frames.slow.count', 'frames.slow', 'mobile.slow_frames', 'sentry.frames.slow'],\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 status: 'backfill',\n },\n aliases: ['app.vitals.frames.slow.count', 'frames.slow'],\n changelog: [{ version: '0.19.0', prs: [500], description: 'Added sentry.frames.slow attribute' }],\n },\n 'sentry.frames.total': {\n brief: 'The number of total frames rendered during the lifetime of the span.',\n type: 'integer',\n keys: ['app.vitals.frames.total.count', 'frames.total', 'mobile.total_frames', 'sentry.frames.total'],\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 status: 'backfill',\n },\n aliases: ['app.vitals.frames.total.count', 'frames.total'],\n changelog: [{ version: '0.19.0', prs: [500], description: 'Added sentry.frames.total attribute' }],\n },\n 'sentry.graphql.operation': {\n brief: 'Indicates the type of graphql operation, emitted by the Javascript SDK.',\n type: 'string',\n keys: ['sentry.graphql.operation'],\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 keys: ['sentry.group', 'span.group'],\n applyScrubbing: {\n key: 'never',\n },\n isInOtel: false,\n visibility: 'public',\n changelog: [{ version: '0.4.0', prs: [212] }],\n searchAlias: {\n name: 'span.group',\n },\n },\n 'sentry.http.prefetch': {\n brief: 'If an http request was a prefetch request.',\n type: 'boolean',\n keys: ['sentry.http.prefetch'],\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 keys: ['sentry.idle_span_finish_reason'],\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_localhost': {\n brief: 'Indicates whether a telemetry item was sent on a host, device or browser on a localhost URL or IP address.',\n type: 'boolean',\n keys: ['sentry.is_localhost'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'internal',\n example: true,\n examples: [true, false],\n changelog: [{ version: '0.24.0', prs: [646], description: 'Added sentry.is_localhost attribute' }],\n additionalContext: [\n 'This attribute is used for the Sentry \"Filter telemetry from localhost\" inbound filter feature.',\n 'SDKs must set this attribute on every span, as well as every other telemetry item supporting attribuztes.',\n ],\n },\n 'sentry.is_remote': {\n brief: \"Indicates whether a span's parent is remote.\",\n type: 'boolean',\n keys: ['sentry.is_remote'],\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 keys: ['sentry.kind', 'span.kind', 'otel.kind'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'client',\n examples: ['client', 'server', 'producer', 'consumer', 'internal'],\n aliases: ['otel.kind'],\n changelog: [\n { version: '0.19.0', prs: [517], description: 'Added more examples and additional_context to the attribute' },\n { version: '0.3.1', prs: [190] },\n ],\n additionalContext: ['Valid attribute values are: \"client\", \"server\", \"producer\", \"consumer\" and \"internal\"'],\n searchAlias: {\n name: 'span.kind',\n },\n },\n 'sentry.link.type': {\n brief: 'Set on a span link. Describes the relationship between the span and the linked span.',\n type: 'string',\n keys: ['sentry.link.type', 'link.type'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'previous_trace',\n examples: ['previous_trace', 'cache_origin', 'message_origin', 'server_request'],\n changelog: [\n { version: '0.34.0', prs: [789], description: 'Added pageload examples to cache_origin and server_request' },\n {\n version: '0.28.0',\n prs: [724, 738, 739],\n description: 'Removed next_trace from the examples and enum_values, because no SDK sets it',\n },\n { version: '0.27.0', prs: [687], description: 'Added search alias link.type' },\n { version: '0.25.0', prs: [656], description: 'Added sentry.link.type attribute' },\n ],\n additionalContext: [\n 'This attribute is exclusively set on span links.',\n 'Sentry instrumentation setting span links, sets it to describe the relationship between the span and the linked span.',\n 'Add each new link type to `enum_values`, with a brief that says what the linked span is.',\n 'A span can have links of different types. For example, a pageload span can have a `cache_origin` link and a `server_request` link.',\n ],\n searchAlias: {\n name: 'link.type',\n },\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 keys: ['sentry.main_thread'],\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 keys: ['sentry.message.parameter.'],\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 keys: ['sentry.message.template'],\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 keys: ['sentry.metric.source'],\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 keys: ['sentry.mobile'],\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 keys: ['sentry.module.'],\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 keys: ['sentry.nextjs.ssr.function.route'],\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 keys: ['sentry.nextjs.ssr.function.type'],\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 keys: ['sentry.normalized_db_query'],\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 keys: ['sentry.normalized_db_query.hash'],\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 keys: ['sentry.normalized_description'],\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 keys: ['sentry.observed_timestamp_nanos'],\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 keys: ['sentry.op', 'span.op'],\n applyScrubbing: {\n key: 'never',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'http.client',\n changelog: [{ version: '0.0.0' }],\n searchAlias: {\n name: 'span.op',\n },\n },\n 'sentry.origin': {\n brief: 'The origin of the instrumentation (e.g. span, log, etc.)',\n type: 'string',\n keys: ['sentry.origin', 'origin'],\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 searchAlias: {\n name: 'origin',\n },\n },\n 'sentry.pageload.span_id': {\n brief: 'The id of the pageload span, set by web vital spans and metrics',\n type: 'string',\n keys: ['sentry.pageload.span_id'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'bf2c8d3df84524de',\n changelog: [{ version: '0.17.0', prs: [495], description: 'Added sentry.pageload.span_id attribute' }],\n },\n 'sentry.platform': {\n brief: 'The sdk platform that generated the event.',\n type: 'string',\n keys: ['sentry.platform', 'platform'],\n applyScrubbing: {\n key: 'never',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'php',\n changelog: [{ version: '0.0.0' }],\n searchAlias: {\n name: 'platform',\n },\n },\n 'sentry.profiler_id': {\n brief: 'The id of the currently running profiler (continuous profiling)',\n type: 'string',\n keys: ['sentry.profiler_id', 'profiler.id'],\n applyScrubbing: {\n key: 'never',\n },\n isInOtel: false,\n visibility: 'public',\n example: '18779b64dd35d1a538e7ce2dd2d3fad3',\n changelog: [{ version: '0.4.0', prs: [242] }],\n searchAlias: {\n name: 'profiler.id',\n },\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 keys: ['sentry.profile_id', 'profile.id', 'profile_id'],\n applyScrubbing: {\n key: 'never',\n },\n isInOtel: false,\n visibility: 'public',\n example: '123e4567e89b12d3a456426614174000',\n aliases: ['profile_id'],\n changelog: [\n { version: '0.19.0', prs: [497], description: 'Added profile_id as an alias' },\n { version: '0.6.0', prs: [344], description: 'Added sentry.profile_id attribute' },\n ],\n searchAlias: {\n name: 'profile.id',\n },\n },\n 'sentry.relay.ingress': {\n brief: 'How an item (span, log, &c.) entered Relay.',\n type: 'string',\n keys: ['sentry.relay.ingress'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'internal',\n example: 'OTEL',\n changelog: [{ version: '0.17.0', prs: [491], description: 'Added sentry.relay.ingress attribute' }],\n },\n 'sentry.relay.pipeline': {\n brief: 'An internal descriptor of which processing pipeline an item went through in Relay.',\n type: 'string',\n keys: ['sentry.relay.pipeline'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'internal',\n example: 'span v2',\n changelog: [{ version: '0.17.0', prs: [491], description: 'Added sentry.relay.pipeline attribute' }],\n },\n 'sentry.release': {\n brief: 'The sentry release.',\n type: 'string',\n keys: ['sentry.release', 'release', 'service.version'],\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 searchAlias: {\n name: 'release',\n },\n },\n 'sentry.replay_id': {\n brief: 'The id of the sentry replay.',\n type: 'string',\n keys: ['sentry.replay_id', 'replay.id', 'replay_id'],\n applyScrubbing: {\n key: 'never',\n },\n isInOtel: false,\n visibility: 'public',\n example: '123e4567e89b12d3a456426614174000',\n aliases: ['replay_id', 'replayId'],\n changelog: [{ version: '0.0.0' }],\n searchAlias: {\n name: 'replay.id',\n deprecatedAliases: ['replay_id'],\n },\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 keys: ['sentry.replay_is_buffering'],\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 keys: ['sentry.report_event'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'pagehide',\n deprecation: {\n reason:\n 'The report event moved to browser.web_vital.lcp.report_event and browser.web_vital.cls.report_event, which are themselves deprecated without a replacement. No backfill required.',\n },\n changelog: [\n {\n version: '0.24.0',\n prs: [642],\n description:\n 'Updated the deprecation reason now that the browser.web_vital.*.report_event attributes are deprecated',\n },\n { version: '0.5.0', prs: [320], description: 'Added sentry.report_event attribute' },\n ],\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 keys: ['sentry.sdk.integrations'],\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 keys: ['sentry.sdk.name', 'sdk.name'],\n applyScrubbing: {\n key: 'never',\n },\n isInOtel: false,\n visibility: 'public',\n example: '@sentry/react',\n changelog: [{ version: '0.0.0' }],\n searchAlias: {\n name: 'sdk.name',\n },\n },\n 'sentry.sdk.version': {\n brief: 'The sentry sdk version.',\n type: 'string',\n keys: ['sentry.sdk.version', 'sdk.version'],\n applyScrubbing: {\n key: 'never',\n },\n isInOtel: false,\n visibility: 'public',\n example: '7.0.0',\n changelog: [{ version: '0.0.0' }],\n searchAlias: {\n name: 'sdk.version',\n },\n },\n 'sentry.segment.id': {\n brief: 'The segment ID of a span',\n type: 'string',\n keys: ['sentry.segment.id', 'sentry.segment_id', 'transaction.span_id'],\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 keys: ['sentry.segment.id', 'sentry.segment_id', 'transaction.span_id'],\n applyScrubbing: {\n key: 'never',\n },\n isInOtel: false,\n visibility: 'public',\n example: '051581bf3cb55c13',\n deprecation: {\n replacement: 'sentry.segment.id',\n status: 'backfill',\n },\n aliases: ['sentry.segment.id'],\n changelog: [{ version: '0.1.0', prs: [124] }],\n searchAlias: {\n name: 'transaction.span_id',\n },\n },\n 'sentry.segment.name': {\n brief: 'The segment name of a span',\n type: 'string',\n keys: ['sentry.segment.name', 'transaction', 'sentry.transaction'],\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 searchAlias: {\n name: 'transaction',\n },\n },\n 'sentry.segment.name.source': {\n brief: 'The source of the segment span name. Should only be set on segment spans.',\n type: 'string',\n keys: ['sentry.segment.name.source'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'internal',\n example: 'route',\n examples: ['route', 'component', 'view', 'task', 'custom', 'url'],\n changelog: [{ version: '0.19.0', prs: [466], description: 'Added sentry.segment.name.source' }],\n additionalContext: [\n 'This attribute is the replacement for `transaction_info.source` on transactions.',\n 'Should we bring back clustering for segment names (like we do for transaction names), this attribute will be used to determine if a segment name should be clustered.',\n ],\n },\n 'sentry.server_sample_rate': {\n brief: 'Rate at which a span was sampled in Relay.',\n type: 'double',\n keys: ['sentry.server_sample_rate', 'server_sample_rate'],\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 searchAlias: {\n name: 'server_sample_rate',\n },\n },\n 'sentry.source': {\n brief: 'The source of a span, also referred to as transaction source.',\n type: 'string',\n keys: ['sentry.source'],\n applyScrubbing: {\n key: 'never',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'route',\n deprecation: {\n reason:\n 'This attribute is superseded by sentry.segment.name.source, which only needs to be set on segment spans.',\n },\n changelog: [\n { version: '0.19.0', prs: [510], description: 'Removed the sentry.span.source replacement' },\n { version: '0.5.0' },\n ],\n },\n 'sentry.span.source': {\n brief: 'The source of a span, also referred to as transaction source.',\n type: 'string',\n keys: ['sentry.span.source'],\n applyScrubbing: {\n key: 'never',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'route',\n deprecation: {\n reason:\n 'This attribute is superseded by sentry.segment.name.source, which only needs to be set on segment spans.',\n },\n changelog: [\n {\n version: '0.19.0',\n prs: [510],\n description: 'Deprecated; superseded by sentry.segment.name.source on segment spans',\n },\n { version: '0.4.0', prs: [214] },\n { version: '0.0.0' },\n ],\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 keys: ['sentry.status', 'span.status'],\n applyScrubbing: {\n key: 'never',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'ok',\n changelog: [{ version: '0.14.0', prs: [453] }],\n searchAlias: {\n name: 'span.status',\n },\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 keys: ['sentry.status_code', 'span.status_code'],\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 searchAlias: {\n name: 'span.status_code',\n },\n },\n 'sentry.status.message': {\n brief: 'The from OTLP extracted status message.',\n type: 'string',\n keys: ['sentry.status.message', 'span.status.message'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'foobar',\n changelog: [{ version: '0.3.1', prs: [190] }],\n searchAlias: {\n name: 'span.status.message',\n },\n },\n 'sentry.sveltekit.navigation.from': {\n brief: 'the navigation origin (sveltekit router)',\n type: 'string',\n keys: ['router.navigation.origin', 'navigation.origin', 'sentry.sveltekit.navigation.from'],\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: false,\n visibility: 'public',\n example: '/home',\n deprecation: {\n replacement: 'router.navigation.origin',\n reason: 'Use the more generic attribute instead',\n status: 'backfill',\n },\n aliases: ['navigation.origin', 'router.navigation.origin'],\n changelog: [\n {\n version: '0.22.0',\n prs: [600],\n description: 'Re-pointed deprecation from navigation.origin to router.navigation.origin',\n },\n { version: '0.16.0', prs: [467], description: 'Added sentry.sveltekit.navigation.from attribute' },\n ],\n },\n 'sentry.sveltekit.navigation.to': {\n brief: 'the navigation destination',\n type: 'string',\n keys: ['sentry.sveltekit.navigation.to'],\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 keys: ['router.navigation.type', 'navigation.type', 'sentry.sveltekit.navigation.type'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'link',\n deprecation: {\n replacement: 'router.navigation.type',\n reason: 'Use the more generic attribute instead',\n status: 'backfill',\n },\n aliases: ['navigation.type', 'router.navigation.type'],\n changelog: [\n {\n version: '0.22.0',\n prs: [600],\n description: 'Re-pointed deprecation from navigation.type to router.navigation.type',\n },\n { version: '0.16.0', prs: [467], description: 'Added sentry.sveltekit.navigation.type attribute' },\n ],\n },\n 'sentry.thread.id': {\n brief: 'Current \"managed\" thread ID.',\n type: 'integer',\n keys: ['thread.id', 'sentry.thread.id'],\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 status: 'backfill',\n },\n changelog: [{ version: '0.13.0', prs: [451] }],\n searchAlias: {\n name: 'thread.id',\n },\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 keys: ['sentry.timestamp.sequence'],\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 keys: ['sentry.trace_lifecycle', 'trace_lifecycle'],\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 searchAlias: {\n name: 'trace_lifecycle',\n },\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 keys: ['sentry.trace.parent_span_id'],\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 keys: ['sentry.trace.status', 'trace.status'],\n applyScrubbing: {\n key: 'never',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'ok',\n changelog: [{ version: '0.14.0', prs: [453] }],\n searchAlias: {\n name: 'trace.status',\n },\n },\n 'sentry.transaction': {\n brief: 'The sentry transaction (segment name).',\n type: 'string',\n keys: ['sentry.segment.name', 'transaction', 'sentry.transaction'],\n applyScrubbing: {\n key: 'manual',\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 status: 'backfill',\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': {\n brief:\n \"Combined identifier of the user, used for the `user` tag and for counting unique users. Set to the first available of the user's ID, username, email address, or IP address, prefixed with which one it is: `id:`, `username:`, `email:`, or `ip:`.\",\n type: 'string',\n keys: ['sentry.user', 'user'],\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'id:123',\n examples: ['id:123', 'username:j.smith', 'email:test@example.com', 'ip:192.168.1.1'],\n changelog: [{ version: '0.34.0', prs: [817], description: 'Added sentry.user attribute' }],\n additionalContext: [\n 'Derived by Sentry during ingestion from `user.id`, `user.name`, `user.email`, and `user.ip_address`. SDKs do not set it.',\n ],\n searchAlias: {\n name: 'user',\n },\n },\n 'sentry.user.email': {\n brief: 'User email address.',\n type: 'string',\n keys: ['user.email', 'sentry.user.email'],\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: false,\n visibility: 'public',\n deprecation: {\n replacement: 'user.email',\n status: 'backfill',\n },\n aliases: ['user.email'],\n changelog: [{ version: '0.10.0', prs: [406] }],\n searchAlias: {\n name: 'user.email',\n },\n },\n 'sentry.user.geo.city': {\n brief: 'Human readable city name.',\n type: 'string',\n keys: ['user.geo.city', 'sentry.user.geo.city'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n deprecation: {\n replacement: 'user.geo.city',\n status: 'backfill',\n },\n aliases: ['user.geo.city'],\n changelog: [{ version: '0.10.0', prs: [406] }],\n searchAlias: {\n name: 'user.geo.city',\n },\n },\n 'sentry.user.geo.country_code': {\n brief: 'Two-letter country code (ISO 3166-1 alpha-2).',\n type: 'string',\n keys: ['user.geo.country_code', 'sentry.user.geo.country_code'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n deprecation: {\n replacement: 'user.geo.country_code',\n status: 'backfill',\n },\n aliases: ['user.geo.country_code'],\n changelog: [{ version: '0.10.0', prs: [406] }],\n searchAlias: {\n name: 'user.geo.country_code',\n },\n },\n 'sentry.user.geo.region': {\n brief: 'Human readable region name or code.',\n type: 'string',\n keys: ['user.geo.region', 'sentry.user.geo.region'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n deprecation: {\n replacement: 'user.geo.region',\n status: 'backfill',\n },\n aliases: ['user.geo.region'],\n changelog: [{ version: '0.10.0', prs: [406] }],\n searchAlias: {\n name: 'user.geo.region',\n },\n },\n 'sentry.user.geo.subdivision': {\n brief: 'Human readable subdivision name.',\n type: 'string',\n keys: ['user.geo.subdivision', 'sentry.user.geo.subdivision'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n deprecation: {\n replacement: 'user.geo.subdivision',\n status: 'backfill',\n },\n aliases: ['user.geo.subdivision'],\n changelog: [{ version: '0.10.0', prs: [406] }],\n searchAlias: {\n name: 'user.geo.subdivision',\n },\n },\n 'sentry.user.geo.subregion': {\n brief:\n \"UN M49 subregion code of the user's location, derived from user.geo.country_code. Sub-Saharan Africa and Latin America and the Caribbean are split into their M49 intermediate regions.\",\n type: 'string',\n keys: ['user.geo.subregion', 'sentry.user.geo.subregion'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: '155',\n examples: ['155', '21'],\n deprecation: {\n replacement: 'user.geo.subregion',\n status: 'backfill',\n },\n aliases: ['user.geo.subregion'],\n changelog: [{ version: '0.31.0', prs: [753], description: 'Added sentry.user.geo.subregion attribute' }],\n searchAlias: {\n name: 'user.geo.subregion',\n },\n },\n 'sentry.user.id': {\n brief: 'Unique identifier of the user.',\n type: 'string',\n keys: ['user.id', 'sentry.user.id'],\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: false,\n visibility: 'public',\n deprecation: {\n replacement: 'user.id',\n status: 'backfill',\n },\n aliases: ['user.id'],\n changelog: [{ version: '0.10.0', prs: [406] }],\n searchAlias: {\n name: 'user.id',\n },\n },\n 'sentry.user.ip': {\n brief: 'The IP address of the user.',\n type: 'string',\n keys: ['user.ip_address', 'sentry.user.ip', 'user.ip'],\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: false,\n visibility: 'public',\n deprecation: {\n replacement: 'user.ip_address',\n status: 'backfill',\n },\n aliases: ['user.ip_address'],\n changelog: [{ version: '0.10.0', prs: [406] }],\n searchAlias: {\n name: 'user.ip',\n },\n },\n 'sentry.user.username': {\n brief: 'Short name or login/username of the user.',\n type: 'string',\n keys: ['user.name', 'sentry.user.username', 'user.username'],\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: false,\n visibility: 'public',\n deprecation: {\n replacement: 'user.name',\n status: 'backfill',\n },\n aliases: ['user.name'],\n changelog: [{ version: '0.10.0', prs: [406] }],\n searchAlias: {\n name: 'user.username',\n },\n },\n 'server.address': {\n brief:\n 'Preferably the server domain name if available without reverse DNS lookup, or an IP address or Unix domain socket name. For compatibility, it may contain what the hostname command returns on UNIX systems, the fully qualified hostname, or another name specified by the user.',\n type: 'string',\n keys: ['server.address', 'address', 'http.server_name', 'net.host.name', 'server_name'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'example.com',\n aliases: ['address', 'http.server_name', 'net.host.name', 'http.host', 'server_name', 'net.peer.name'],\n changelog: [\n { version: '0.24.0', prs: [645, 647], description: 'Broaden brief to allow hostnames' },\n { version: '0.21.0', prs: [588, 602], description: 'Added net.peer.name as an alias' },\n { version: '0.19.0', prs: [534], description: 'Added address as an alias' },\n { version: '0.1.0', prs: [108, 127] },\n { version: '0.0.0' },\n ],\n },\n 'server.ext.type': {\n brief: 'The request lifecycle extension point where the Hapi extension function runs.',\n type: 'string',\n keys: ['hapi.ext.type', 'server.ext.type'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'onRequest',\n examples: ['onRequest', 'onPreResponse'],\n deprecation: {\n replacement: 'hapi.ext.type',\n reason:\n 'Name from the OpenTelemetry Hapi instrumentation. The `server` namespace describes the network endpoint of the server, so the attribute moves to the `hapi` namespace.',\n status: 'backfill',\n },\n aliases: ['hapi.ext.type'],\n changelog: [\n {\n version: '0.28.0',\n prs: [741],\n description: 'Added server.ext.type attribute, deprecated in favor of hapi.ext.type',\n },\n ],\n },\n server_name: {\n brief: 'The name of the device. On servers and desktops, this is typically the hostname.',\n type: 'string',\n keys: ['server.address', 'address', 'http.server_name', 'net.host.name', 'server_name'],\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.',\n status: 'backfill',\n },\n aliases: ['address', 'server.address', 'http.server_name', 'net.host.name', 'http.host', 'net.peer.name'],\n changelog: [\n { version: '0.24.0', prs: [647], description: 'Alias the server.address alias group' },\n {\n version: '0.21.0',\n prs: [588, 602],\n description: 'Alias device.name instead of the server.address alias group',\n },\n { version: '0.19.0', prs: [534], description: 'Added address as an alias' },\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 keys: ['server.port', 'net.host.port', 'port'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 1337,\n aliases: ['net.host.port', 'port'],\n changelog: [\n { version: '0.19.0', prs: [532], description: 'Added port as an alias' },\n { version: '0.4.0', prs: [228] },\n { version: '0.0.0' },\n ],\n },\n 'service.name': {\n brief: 'Logical name of the service.',\n type: 'string',\n keys: ['service.name'],\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 keys: ['service.version', 'sentry.release', 'release'],\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 keys: ['session.id'],\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 keys: ['app.vitals.stall.percentage', 'stall_percentage'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n deprecation: {\n replacement: 'app.vitals.stall.percentage',\n reason:\n 'Replaced by app.vitals.stall.percentage to align with the app.vitals.* namespace for mobile performance attributes',\n status: 'backfill',\n },\n aliases: ['app.vitals.stall.percentage'],\n changelog: [\n { version: '0.19.0', prs: [493], description: 'Deprecated in favor of app.vitals.stall.percentage' },\n { version: '0.7.0', prs: [362], description: 'Added stall_percentage attribute' },\n ],\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 keys: ['app.vitals.stall.duration', 'stall_total_time'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n deprecation: {\n replacement: 'app.vitals.stall.duration',\n reason:\n 'Replaced by app.vitals.stall.duration to align with the app.vitals.* namespace for mobile performance attributes',\n status: 'backfill',\n },\n aliases: ['app.vitals.stall.duration'],\n changelog: [\n { version: '0.19.0', prs: [493], description: 'Deprecated in favor of app.vitals.stall.duration' },\n { version: '0.7.0', prs: [362], description: 'Added stall_total_time attribute' },\n ],\n },\n 'starlette.middleware_name': {\n brief: 'The name of the Starlette middleware.',\n type: 'string',\n keys: [\n 'middleware.name',\n 'django.middleware_name',\n 'litestar.middleware_name',\n 'starlette.middleware_name',\n 'starlite.middleware_name',\n ],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'AuthenticationMiddleware',\n deprecation: {\n replacement: 'middleware.name',\n reason:\n 'This attribute is being deprecated in favor of middleware.name, which is the framework-agnostic replacement.',\n status: 'backfill',\n },\n aliases: ['middleware.name'],\n changelog: [\n {\n version: '0.19.0',\n prs: [485],\n description: 'Added starlette.middleware_name attribute, deprecated in favor of middleware.name',\n },\n ],\n },\n 'starlite.middleware_name': {\n brief: 'The name of the Starlite middleware.',\n type: 'string',\n keys: [\n 'middleware.name',\n 'django.middleware_name',\n 'litestar.middleware_name',\n 'starlette.middleware_name',\n 'starlite.middleware_name',\n ],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'AuthenticationMiddleware',\n examples: ['AuthenticationMiddleware'],\n deprecation: {\n replacement: 'middleware.name',\n reason:\n 'This attribute is being deprecated in favor of middleware.name, which is the framework-agnostic replacement.',\n status: 'backfill',\n },\n aliases: ['middleware.name'],\n changelog: [{ version: '0.19.0', prs: [519], description: 'Added starlite.middleware_name attribute' }],\n },\n 'state.type': {\n brief: 'The type of state management library',\n type: 'string',\n keys: ['state.type'],\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 'subprocess.pid': {\n brief: 'The process ID of a subprocess.',\n type: 'integer',\n keys: ['process.pid', 'subprocess.pid'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 12345,\n deprecation: {\n replacement: 'process.pid',\n reason: 'This attribute is being deprecated in favor of process.pid, which is the OTel-aligned replacement.',\n status: 'backfill',\n },\n aliases: ['process.pid'],\n changelog: [\n {\n version: '0.19.0',\n prs: [487],\n description: 'Added subprocess.pid attribute, deprecated in favor of process.pid',\n },\n ],\n },\n 'sveltekit.load.environment': {\n brief:\n \"The runtime environment in which the SvelteKit load function was executed. Known values are `'server'` and `'client'`.\",\n type: 'string',\n keys: ['sveltekit.load.environment'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'server',\n examples: ['server', 'client'],\n changelog: [{ version: '0.22.0', prs: [611], description: 'Added sveltekit.load.environment attribute' }],\n additionalContext: [\n 'Added by the SvelteKit framework itself. The Sentry SDK only forwards the attribute to Sentry.',\n ],\n },\n 'sveltekit.load.node_id': {\n brief: 'The path to the SvelteKit load function.',\n type: 'string',\n keys: ['sveltekit.load.node_id', 'code.file.path', 'code.filepath'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'src/routes/users/:id/+page.server.ts',\n examples: ['src/routes/users/:id/+page.server.ts'],\n aliases: ['code.file.path', 'code.filepath'],\n changelog: [{ version: '0.22.0', prs: [611], description: 'Added sveltekit.load.node_id attribute' }],\n additionalContext: [\n 'Added by the SvelteKit framework itself. The Sentry SDK only forwards the attribute to Sentry.',\n ],\n },\n 'sveltekit.load.node_type': {\n brief:\n 'The kind of SvelteKit load function that was executed, distinguishing page from layout and universal from server load functions.',\n type: 'string',\n keys: ['sveltekit.load.node_type'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: '+page.server',\n examples: ['+page.server', '+layout', '+layout.server'],\n changelog: [{ version: '0.22.0', prs: [611], description: 'Added sveltekit.load.node_type attribute' }],\n additionalContext: [\n 'Added by the SvelteKit framework itself. The Sentry SDK only forwards the attribute to Sentry.',\n ],\n },\n 'sveltekit.tracing.original_name': {\n brief: 'The original span name as emitted by SvelteKit.',\n type: 'string',\n keys: ['sveltekit.tracing.original_name'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'sveltekit.handle.root',\n examples: ['sveltekit.handle.root'],\n changelog: [{ version: '0.22.0', prs: [611], description: 'Added sveltekit.tracing.original_name attribute' }],\n additionalContext: [\n \"The Sentry SDK renames SvelteKit-emitted spans to match Sentry's span name semantics, and preserves the name SvelteKit originally set in this attribute.\",\n ],\n },\n 'thread.id': {\n brief: 'Current “managed” thread ID.',\n type: 'integer',\n keys: ['thread.id', 'sentry.thread.id'],\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 keys: ['thread.name'],\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 keys: ['timber.tag'],\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 keys: ['app.vitals.ttfd.value', 'time_to_full_display'],\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 status: 'backfill',\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 keys: ['app.vitals.ttid.value', 'time_to_initial_display'],\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 status: 'backfill',\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 'tls.protocol.name': {\n brief: 'Normalized lowercase protocol name parsed from the negotiated SSL/TLS protocol version',\n type: 'string',\n keys: ['tls.protocol.name'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: 'tls',\n examples: ['tls', 'ssl'],\n changelog: [{ version: '0.31.0', prs: [772], description: 'Added tls.protocol.name attribute' }],\n additionalContext: [\n 'Extract the protocol name from the negotiated SSL/TLS version string and normalize it to lowercase, without the version. For example, TLSv1.3 becomes tls and SSLv3 becomes ssl.',\n ],\n },\n 'tls.protocol.version': {\n brief: 'Numeric part of the version parsed from the negotiated SSL/TLS protocol version',\n type: 'string',\n keys: ['tls.protocol.version'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: '1.2',\n examples: ['1.2', '1.3', '3'],\n changelog: [{ version: '0.31.0', prs: [772], description: 'Added tls.protocol.version attribute' }],\n additionalContext: [\n 'Extract only the numeric version from the negotiated SSL/TLS version string. For example, TLSv1.3 becomes 1.3 and SSLv3 becomes 3. Do not include the protocol name or the v prefix.',\n ],\n },\n transaction: {\n brief: 'The sentry transaction (segment name).',\n type: 'string',\n keys: ['sentry.segment.name', 'transaction', 'sentry.transaction'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'GET /',\n deprecation: {\n replacement: 'sentry.segment.name',\n status: 'normalize',\n },\n aliases: ['sentry.segment.name', 'sentry.transaction'],\n changelog: [\n { version: '0.19.0', prs: [497], description: 'Change deprecation from backfill to normalize' },\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 keys: ['trpc.procedure_path'],\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 keys: ['trpc.procedure_type'],\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 keys: ['browser.web_vital.ttfb.value', 'ttfb'],\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 status: 'backfill',\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 keys: ['browser.web_vital.ttfb.request_time', 'ttfb.requestTime'],\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 status: 'backfill',\n },\n aliases: ['browser.web_vital.ttfb.request_time'],\n changelog: [{ version: '0.5.0', prs: [235] }],\n },\n 'turbo_modules.total_call_count': {\n brief: 'The number of native module calls in the flushed call aggregate. Only applies to React Native.',\n type: 'integer',\n keys: ['react_native.module.call.count', 'turbo_module.total_call_count', 'turbo_modules.total_call_count'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 42,\n examples: [42],\n deprecation: {\n replacement: 'react_native.module.call.count',\n reason:\n 'Replaced by the `react_native.module.*` namespace; the SDK emitted the same values under both a singular `turbo_module.*` and a plural `turbo_modules.*` prefix',\n status: 'backfill',\n },\n aliases: ['react_native.module.call.count', 'turbo_module.total_call_count'],\n changelog: [\n {\n version: '0.24.0',\n prs: [564],\n description:\n 'Added turbo_modules.total_call_count and deprecated it in favor of react_native.module.call.count',\n },\n ],\n },\n 'turbo_modules.total_duration_ms': {\n brief:\n 'The combined duration of all native module calls in the flushed call aggregate, in milliseconds. Only applies to React Native.',\n type: 'double',\n keys: ['react_native.module.duration.total', 'turbo_module.total_duration_ms', 'turbo_modules.total_duration_ms'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 128.45,\n examples: [128.45],\n deprecation: {\n replacement: 'react_native.module.duration.total',\n reason:\n 'Replaced by the `react_native.module.*` namespace; the SDK emitted the same values under both a singular `turbo_module.*` and a plural `turbo_modules.*` prefix',\n status: 'backfill',\n },\n aliases: ['react_native.module.duration.total', 'turbo_module.total_duration_ms'],\n changelog: [\n {\n version: '0.24.0',\n prs: [564],\n description:\n 'Added turbo_modules.total_duration_ms and deprecated it in favor of react_native.module.duration.total',\n },\n ],\n },\n 'turbo_modules.total_error_count': {\n brief: 'The number of failed native module calls in the flushed call aggregate. Only applies to React Native.',\n type: 'integer',\n keys: ['react_native.module.error.count', 'turbo_module.total_error_count', 'turbo_modules.total_error_count'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 2,\n examples: [2],\n deprecation: {\n replacement: 'react_native.module.error.count',\n reason:\n 'Replaced by the `react_native.module.*` namespace; the SDK emitted the same values under both a singular `turbo_module.*` and a plural `turbo_modules.*` prefix',\n status: 'backfill',\n },\n aliases: ['react_native.module.error.count', 'turbo_module.total_error_count'],\n changelog: [\n {\n version: '0.24.0',\n prs: [564],\n description:\n 'Added turbo_modules.total_error_count and deprecated it in favor of react_native.module.error.count',\n },\n ],\n },\n 'turbo_modules.unique_methods': {\n brief:\n 'The number of distinct native module and method pairs in the flushed call aggregate. Only applies to React Native.',\n type: 'integer',\n keys: ['react_native.module.call.distinct_count', 'turbo_module.unique_methods', 'turbo_modules.unique_methods'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 7,\n examples: [7],\n deprecation: {\n replacement: 'react_native.module.call.distinct_count',\n reason:\n 'Replaced by the `react_native.module.*` namespace; the SDK emitted the same values under both a singular `turbo_module.*` and a plural `turbo_modules.*` prefix',\n status: 'backfill',\n },\n aliases: ['react_native.module.call.distinct_count', 'turbo_module.unique_methods'],\n changelog: [\n {\n version: '0.24.0',\n prs: [564],\n description:\n 'Added turbo_modules.unique_methods and deprecated it in favor of react_native.module.call.distinct_count',\n },\n ],\n },\n 'turbo_module.arch': {\n brief:\n 'The React Native architecture the call was observed on. `new` for a TurboModule resolved through `TurboModuleRegistry`, `legacy` for a module reached over the Old Architecture bridge. Only applies to React Native.',\n type: 'string',\n keys: ['react_native.architecture', 'turbo_module.arch'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'new',\n examples: ['new', 'legacy'],\n deprecation: {\n replacement: 'react_native.architecture',\n reason:\n 'Replaced by the `react_native.*` namespace, which also covers native module calls made over the Old Architecture bridge, which are not TurboModules',\n status: 'backfill',\n },\n aliases: ['react_native.architecture'],\n changelog: [\n {\n version: '0.24.0',\n prs: [564],\n description: 'Added turbo_module.arch and deprecated it in favor of react_native.architecture',\n },\n ],\n },\n 'turbo_module.method': {\n brief: 'The name of the native module method that was called. Only applies to React Native.',\n type: 'string',\n keys: ['react_native.module.method', 'turbo_module.method'],\n applyScrubbing: {\n key: 'manual',\n reason:\n 'Native module and method names are app-defined identifiers, but scrubbing them would make the call attribution unusable',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'getUniqueId',\n examples: ['getUniqueId'],\n deprecation: {\n replacement: 'react_native.module.method',\n reason:\n 'Replaced by the `react_native.*` namespace, which also covers native module calls made over the Old Architecture bridge, which are not TurboModules',\n status: 'backfill',\n },\n aliases: ['react_native.module.method'],\n changelog: [\n {\n version: '0.24.0',\n prs: [564],\n description: 'Added turbo_module.method and deprecated it in favor of react_native.module.method',\n },\n ],\n },\n 'turbo_module.name': {\n brief:\n 'The name of the native module the call was dispatched to. On the New Architecture this is the TurboModule name, on the Old Architecture the `NativeModules` key. Only applies to React Native.',\n type: 'string',\n keys: ['react_native.module.name', 'turbo_module.name'],\n applyScrubbing: {\n key: 'manual',\n reason:\n 'Native module and method names are app-defined identifiers, but scrubbing them would make the call attribution unusable',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'RNDeviceInfo',\n examples: ['RNDeviceInfo'],\n deprecation: {\n replacement: 'react_native.module.name',\n reason:\n 'Replaced by the `react_native.*` namespace, which also covers native module calls made over the Old Architecture bridge, which are not TurboModules',\n status: 'backfill',\n },\n aliases: ['react_native.module.name'],\n changelog: [\n {\n version: '0.24.0',\n prs: [564],\n description: 'Added turbo_module.name and deprecated it in favor of react_native.module.name',\n },\n ],\n },\n 'turbo_module.top_module': {\n brief:\n 'The native module and method that accounted for the most total duration during the lifetime of the span. Only applies to React Native.',\n type: 'string',\n keys: ['react_native.module.top.name', 'turbo_module.top_module'],\n applyScrubbing: {\n key: 'manual',\n reason:\n 'Native module and method names are app-defined identifiers, but scrubbing them would make the call attribution unusable',\n },\n isInOtel: false,\n visibility: 'public',\n example: 'RNDeviceInfo.getUniqueId',\n examples: ['RNDeviceInfo.getUniqueId'],\n deprecation: {\n replacement: 'react_native.module.top.name',\n reason:\n 'Replaced by the `react_native.module.*` namespace, which also covers native module calls made over the Old Architecture bridge, and which drops the `total_` prefix and `_ms` suffix in favor of dot-separated logical grouping',\n status: 'backfill',\n },\n aliases: ['react_native.module.top.name'],\n changelog: [\n {\n version: '0.24.0',\n prs: [564],\n description: 'Added turbo_module.top_module and deprecated it in favor of react_native.module.top.name',\n },\n ],\n },\n 'turbo_module.top_module_duration_ms': {\n brief:\n 'The total duration attributed to the top native module method, in milliseconds. Only applies to React Native.',\n type: 'double',\n keys: ['react_native.module.top.duration', 'turbo_module.top_module_duration_ms'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 87.25,\n examples: [87.25],\n deprecation: {\n replacement: 'react_native.module.top.duration',\n reason:\n 'Replaced by the `react_native.module.*` namespace, which also covers native module calls made over the Old Architecture bridge, and which drops the `total_` prefix and `_ms` suffix in favor of dot-separated logical grouping',\n status: 'backfill',\n },\n aliases: ['react_native.module.top.duration'],\n changelog: [\n {\n version: '0.24.0',\n prs: [564],\n description:\n 'Added turbo_module.top_module_duration_ms and deprecated it in favor of react_native.module.top.duration',\n },\n ],\n },\n 'turbo_module.total_call_count': {\n brief: 'The number of native module calls observed during the lifetime of the span. Only applies to React Native.',\n type: 'integer',\n keys: ['react_native.module.call.count', 'turbo_module.total_call_count', 'turbo_modules.total_call_count'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 42,\n examples: [42],\n deprecation: {\n replacement: 'react_native.module.call.count',\n reason:\n 'Replaced by the `react_native.module.*` namespace, which also covers native module calls made over the Old Architecture bridge, and which drops the `total_` prefix and `_ms` suffix in favor of dot-separated logical grouping',\n status: 'backfill',\n },\n aliases: ['react_native.module.call.count', 'turbo_modules.total_call_count'],\n changelog: [\n {\n version: '0.24.0',\n prs: [564],\n description: 'Added turbo_module.total_call_count and deprecated it in favor of react_native.module.call.count',\n },\n ],\n },\n 'turbo_module.total_duration_ms': {\n brief:\n 'The combined duration of all native module calls observed during the lifetime of the span, in milliseconds. Only applies to React Native.',\n type: 'double',\n keys: ['react_native.module.duration.total', 'turbo_module.total_duration_ms', 'turbo_modules.total_duration_ms'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 128.45,\n examples: [128.45],\n deprecation: {\n replacement: 'react_native.module.duration.total',\n reason:\n 'Replaced by the `react_native.module.*` namespace, which also covers native module calls made over the Old Architecture bridge, and which drops the `total_` prefix and `_ms` suffix in favor of dot-separated logical grouping',\n status: 'backfill',\n },\n aliases: ['react_native.module.duration.total', 'turbo_modules.total_duration_ms'],\n changelog: [\n {\n version: '0.24.0',\n prs: [564],\n description:\n 'Added turbo_module.total_duration_ms and deprecated it in favor of react_native.module.duration.total',\n },\n ],\n },\n 'turbo_module.total_error_count': {\n brief:\n 'The number of native module calls that failed during the lifetime of the span. Only applies to React Native.',\n type: 'integer',\n keys: ['react_native.module.error.count', 'turbo_module.total_error_count', 'turbo_modules.total_error_count'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 2,\n examples: [2],\n deprecation: {\n replacement: 'react_native.module.error.count',\n reason:\n 'Replaced by the `react_native.module.*` namespace, which also covers native module calls made over the Old Architecture bridge, and which drops the `total_` prefix and `_ms` suffix in favor of dot-separated logical grouping',\n status: 'backfill',\n },\n aliases: ['react_native.module.error.count', 'turbo_modules.total_error_count'],\n changelog: [\n {\n version: '0.24.0',\n prs: [564],\n description:\n 'Added turbo_module.total_error_count and deprecated it in favor of react_native.module.error.count',\n },\n ],\n },\n 'turbo_module.unique_methods': {\n brief:\n 'The number of distinct native module and method pairs called during the lifetime of the span. Only applies to React Native.',\n type: 'integer',\n keys: ['react_native.module.call.distinct_count', 'turbo_module.unique_methods', 'turbo_modules.unique_methods'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: 7,\n examples: [7],\n deprecation: {\n replacement: 'react_native.module.call.distinct_count',\n reason:\n 'Replaced by the `react_native.module.*` namespace, which also covers native module calls made over the Old Architecture bridge, and which drops the `total_` prefix and `_ms` suffix in favor of dot-separated logical grouping',\n status: 'backfill',\n },\n aliases: ['react_native.module.call.distinct_count', 'turbo_modules.unique_methods'],\n changelog: [\n {\n version: '0.24.0',\n prs: [564],\n description:\n 'Added turbo_module.unique_methods and deprecated it in favor of react_native.module.call.distinct_count',\n },\n ],\n },\n type: {\n brief: 'More granular type of the operation happening.',\n type: 'string',\n keys: ['type'],\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 keys: ['ui.component_name'],\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 keys: ['ui.contributes_to_ttfd'],\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 keys: ['ui.contributes_to_ttid'],\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 keys: ['ui.element.height'],\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 keys: ['ui.element.id'],\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 keys: ['ui.element.identifier'],\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 keys: ['ui.element.load_time'],\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 keys: ['ui.element.paint_type'],\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 keys: ['ui.element.render_time'],\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 keys: ['ui.element.type'],\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 keys: ['ui.element.url'],\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 keys: ['ui.element.width'],\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 keys: ['url.full', 'aws.request.url', 'http.url', 'messaging.url', 'url'],\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 status: 'backfill',\n },\n aliases: ['url.full', 'http.url', 'aws.request.url', 'messaging.url'],\n changelog: [\n { version: '0.21.0', prs: [581], description: 'Added messaging.url as an alias' },\n { version: '0.1.0', prs: [61] },\n { version: '0.0.0' },\n ],\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 keys: ['url.domain'],\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 keys: ['url.fragment'],\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 keys: ['url.full', 'aws.request.url', 'http.url', 'messaging.url', 'url'],\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', 'aws.request.url', 'messaging.url'],\n changelog: [\n { version: '0.21.0', prs: [581], description: 'Added messaging.url as an alias' },\n { version: '0.19.0', prs: [488], description: 'Added aws.request.url as an alias' },\n { version: '0.1.0', prs: [108] },\n { version: '0.0.0' },\n ],\n },\n 'url.path': {\n brief: 'The URI path component.',\n type: 'string',\n keys: ['url.path'],\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 keys: ['url.path.parameter.', 'params.', 'url.path.params.'],\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.', 'url.path.params.'],\n changelog: [\n { version: '0.21.0', prs: [586], description: 'Added url.path.params. as an alias' },\n { version: '0.1.0', prs: [103] },\n ],\n },\n 'url.path.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 keys: ['url.path.parameter.', 'params.', 'url.path.params.'],\n applyScrubbing: {\n key: 'auto',\n },\n isInOtel: false,\n visibility: 'public',\n hasDynamicSuffix: true,\n example: \"url.path.params.id='123'\",\n examples: [\"url.path.params.id='123'\"],\n deprecation: {\n replacement: 'url.path.parameter.',\n reason: 'This attribute is being deprecated in favor of url.path.parameter..',\n status: 'backfill',\n },\n aliases: ['url.path.parameter.', 'params.'],\n changelog: [{ version: '0.21.0', prs: [586], description: 'Added url.path.params. attribute' }],\n },\n 'url.port': {\n brief: 'Server port number.',\n type: 'integer',\n keys: ['url.port'],\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 keys: ['url.query'],\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 keys: ['http.request.same_origin', 'url.same_origin'],\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 status: 'backfill',\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 keys: ['url.scheme', 'http.scheme'],\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 URL path reference.',\n type: 'string',\n keys: ['url.template'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: true,\n visibility: 'public',\n example: '/users/{id}',\n examples: ['/users/{id}', '/users/:id', '/about'],\n changelog: [\n {\n version: '0.19.0',\n prs: [505, 521],\n description: 'Added multiple examples, removed alias to `http.route`, added additional context',\n },\n { version: '0.1.0', prs: [127] },\n { version: '0.0.0' },\n ],\n additionalContext: [\n 'This attribute should primarily be set by client-side routing instrumentation, or `http.client` spans (if applicable).',\n 'Use `http.route` for server-side instrumentation that captures the framework route of an incoming request.',\n ],\n },\n 'user_agent.original': {\n brief: 'Value of the HTTP User-Agent header sent by the client.',\n type: 'string',\n keys: ['user_agent.original', 'http.user_agent'],\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 keys: ['user.email', 'sentry.user.email'],\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 keys: ['user.full_name'],\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 keys: ['user.geo.city', 'sentry.user.geo.city'],\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 keys: ['user.geo.country_code', 'sentry.user.geo.country_code'],\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 keys: ['user.geo.region', 'sentry.user.geo.region'],\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 keys: ['user.geo.subdivision', 'sentry.user.geo.subdivision'],\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.geo.subregion': {\n brief:\n \"UN M49 subregion code of the user's location, derived from user.geo.country_code. Sub-Saharan Africa and Latin America and the Caribbean are split into their M49 intermediate regions.\",\n type: 'string',\n keys: ['user.geo.subregion', 'sentry.user.geo.subregion'],\n applyScrubbing: {\n key: 'manual',\n },\n isInOtel: false,\n visibility: 'public',\n example: '155',\n examples: ['155', '21'],\n aliases: ['sentry.user.geo.subregion'],\n changelog: [{ version: '0.31.0', prs: [753], description: 'Added user.geo.subregion attribute' }],\n },\n 'user.hash': {\n brief: 'Unique user hash to correlate information for a user in anonymized form.',\n type: 'string',\n keys: ['user.hash'],\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 keys: ['user.id', 'sentry.user.id'],\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 keys: ['user.ip_address', 'sentry.user.ip', 'user.ip'],\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 keys: ['user.name', 'sentry.user.username', 'user.username'],\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 keys: ['user.roles'],\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.ai.settings.context.': {\n brief:\n 'A runtime context property of a Vercel AI SDK call that the app included in telemetry through `telemetry.includeRuntimeContext`, with being the top-level context property name.',\n type: 'string',\n keys: ['vercel.ai.settings.context.'],\n applyScrubbing: {\n key: 'auto',\n reason: 'Runtime context is user-defined and can contain user data',\n },\n isInOtel: false,\n visibility: 'public',\n hasDynamicSuffix: true,\n example: \"vercel.ai.settings.context.tenantId='acme'\",\n examples: [\"vercel.ai.settings.context.tenantId='acme'\"],\n changelog: [{ version: '0.31.0', prs: [756], description: 'Added vercel.ai.settings.context. attribute' }],\n additionalContext: [\n 'Set on `gen_ai` spans for `invoke_agent`, `generate_content`, `execute_tool`, `embeddings`, `rerank` and `decide` operations. Spans for model calls and tool calls inside an operation copy the attributes of that operation.',\n 'SDKs MUST only record the properties that the app included through `telemetry.includeRuntimeContext`. Some Vercel AI SDK versions expose the full runtime context to instrumentation. If an SDK cannot confirm that the Vercel AI SDK filtered the runtime context, it MUST NOT record it.',\n \"The Vercel AI SDK's own OpenTelemetry integration (`@ai-sdk/otel`) emits the same data as `ai.settings.context.`.\",\n 'Runtime context values can have any type. SDKs MUST convert them to strings, and SHOULD serialize objects and arrays as JSON.',\n 'This attribute is open-ended on purpose. The Vercel AI SDK does not define the runtime context keys.',\n ],\n },\n 'vercel.ai.telemetry.metadata.': {\n brief:\n 'Metadata passed to a Vercel AI SDK call through `experimental_telemetry.metadata`, with being the metadata key name.',\n type: 'string',\n keys: ['vercel.ai.telemetry.metadata.'],\n applyScrubbing: {\n key: 'auto',\n reason: 'Metadata is user-defined and can contain user data',\n },\n isInOtel: false,\n visibility: 'public',\n hasDynamicSuffix: true,\n example: \"vercel.ai.telemetry.metadata.tenantId='acme'\",\n examples: [\"vercel.ai.telemetry.metadata.tenantId='acme'\"],\n changelog: [{ version: '0.26.0', prs: [662], description: 'Added vercel.ai.telemetry.metadata. attribute' }],\n additionalContext: [\n 'Set on `gen_ai` spans for `invoke_agent`, `generate_content` and `embeddings` operations. Not set on `execute_tool` spans.',\n \"The Vercel AI SDK's own OpenTelemetry spans emit the same data as `ai.telemetry.metadata.`.\",\n 'The Vercel AI SDK also allows numbers, booleans and arrays as metadata values. SDKs MUST convert these values to strings.',\n 'This attribute is open-ended on purpose. The Vercel AI SDK does not define the metadata keys. If Vercel defines a stricter spec for this metadata, consider moving it into `gen_ai.*` attributes.',\n ],\n },\n 'vercel.ai.tool_call.context.': {\n brief:\n 'A tool context property of a Vercel AI SDK tool call that the app included in telemetry through `telemetry.includeToolsContext`, with being the top-level context property name.',\n type: 'string',\n keys: ['vercel.ai.tool_call.context.'],\n applyScrubbing: {\n key: 'auto',\n reason: 'Tool context is user-defined and can contain user data',\n },\n isInOtel: false,\n visibility: 'public',\n hasDynamicSuffix: true,\n example: \"vercel.ai.tool_call.context.units='metric'\",\n examples: [\"vercel.ai.tool_call.context.units='metric'\"],\n changelog: [{ version: '0.31.0', prs: [756], description: 'Added vercel.ai.tool_call.context. attribute' }],\n additionalContext: [\n 'Set on `gen_ai` spans for `execute_tool` operations.',\n 'SDKs MUST only record the properties that the app included for the tool through `telemetry.includeToolsContext`. Some Vercel AI SDK versions expose the full tool context to instrumentation. If an SDK cannot confirm that the Vercel AI SDK filtered the tool context, it MUST NOT record it.',\n \"The Vercel AI SDK's own OpenTelemetry integration (`@ai-sdk/otel`) does not record tool context.\",\n 'Tool context values can have any type. SDKs MUST convert them to strings, and SHOULD serialize objects and arrays as JSON.',\n 'This attribute is open-ended on purpose. The Vercel AI SDK does not define the tool context keys.',\n ],\n },\n 'vercel.branch': {\n brief: 'Git branch name for Vercel project',\n type: 'string',\n keys: ['vercel.branch'],\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 keys: ['vercel.build_id'],\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 keys: ['vercel.deployment_id'],\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 keys: ['vercel.destination'],\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 keys: ['vercel.edge_type'],\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 keys: ['vercel.entrypoint'],\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 keys: ['vercel.execution_region'],\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 keys: ['vercel.id'],\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 keys: ['vercel.ja3_digest'],\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 keys: ['vercel.ja4_digest'],\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 keys: ['vercel.log_type'],\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 keys: ['vercel.path'],\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 keys: ['vercel.project_id'],\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 keys: ['vercel.project_name'],\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 keys: ['vercel.proxy.cache_id'],\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 keys: ['vercel.proxy.client_ip'],\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 keys: ['vercel.proxy.host'],\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 keys: ['vercel.proxy.lambda_region'],\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 keys: ['vercel.proxy.method'],\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 keys: ['vercel.proxy.path'],\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 keys: ['vercel.proxy.path_type'],\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 keys: ['vercel.proxy.path_type_variant'],\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 keys: ['vercel.proxy.referer'],\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 keys: ['vercel.proxy.region'],\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 keys: ['vercel.proxy.response_byte_size'],\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 keys: ['vercel.proxy.scheme'],\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 keys: ['vercel.proxy.status_code'],\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 keys: ['vercel.proxy.timestamp'],\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 keys: ['vercel.proxy.user_agent'],\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 keys: ['vercel.proxy.vercel_cache'],\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 keys: ['vercel.proxy.vercel_id'],\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 keys: ['vercel.proxy.waf_action'],\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 keys: ['vercel.proxy.waf_rule_id'],\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 keys: ['vercel.request_id'],\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 keys: ['vercel.source'],\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 keys: ['vercel.status_code'],\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 [ADDRESS]?: ADDRESS_TYPE;\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_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]?: AI_PROMPT_TYPE;\n [AI_PROMPT_MESSAGES]?: AI_PROMPT_MESSAGES_TYPE;\n [AI_PROMPT_TOKENS_USED]?: AI_PROMPT_TOKENS_USED_TYPE;\n [AI_PROMPT_TOOLS]?: AI_PROMPT_TOOLS_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_RESPONSE_ID]?: AI_RESPONSE_ID_TYPE;\n [AI_RESPONSE_MODEL]?: AI_RESPONSE_MODEL_TYPE;\n [AI_RESPONSE_OBJECT]?: AI_RESPONSE_OBJECT_TYPE;\n [AI_RESPONSE_TEXT]?: AI_RESPONSE_TEXT_TYPE;\n [AI_RESPONSE_TIMESTAMP]?: AI_RESPONSE_TIMESTAMP_TYPE;\n [AI_RESPONSE_TOOLCALLS]?: AI_RESPONSE_TOOLCALLS_TYPE;\n [AI_SCHEMA]?: AI_SCHEMA_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_TOOLCALL_ARGS]?: AI_TOOLCALL_ARGS_TYPE;\n [AI_TOOLCALL_RESULT]?: AI_TOOLCALL_RESULT_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_USAGE_TOKENS]?: AI_USAGE_TOKENS_TYPE;\n [AI_VALUES]?: AI_VALUES_TYPE;\n [AI_WARNINGS]?: AI_WARNINGS_TYPE;\n [ANGULAR_VERSION]?: ANGULAR_VERSION_TYPE;\n [ANTHROPIC_TOOL_RESULT_CONTENT]?: ANTHROPIC_TOOL_RESULT_CONTENT_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_FROZEN_RATE]?: APP_VITALS_FRAMES_FROZEN_RATE_TYPE;\n [APP_VITALS_FRAMES_SLOW_COUNT]?: APP_VITALS_FRAMES_SLOW_COUNT_TYPE;\n [APP_VITALS_FRAMES_SLOW_RATE]?: APP_VITALS_FRAMES_SLOW_RATE_TYPE;\n [APP_VITALS_FRAMES_TOTAL_COUNT]?: APP_VITALS_FRAMES_TOTAL_COUNT_TYPE;\n [APP_VITALS_STALL_DURATION]?: APP_VITALS_STALL_DURATION_TYPE;\n [APP_VITALS_STALL_PERCENTAGE]?: APP_VITALS_STALL_PERCENTAGE_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_ATTRIBUTES_TO_GET]?: AWS_DYNAMODB_ATTRIBUTES_TO_GET_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_INITIALIZATION_TYPE]?: AWS_LAMBDA_INITIALIZATION_TYPE_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_LAMBDA_RESOURCE_MAPPING_ID]?: AWS_LAMBDA_RESOURCE_MAPPING_ID_TYPE;\n [AWS_LAMBDA_TARGET_FUNCTION_NAME]?: AWS_LAMBDA_TARGET_FUNCTION_NAME_TYPE;\n [AWS_LAMBDA_WEB_ENDPOINT_NAME]?: AWS_LAMBDA_WEB_ENDPOINT_NAME_TYPE;\n [AWS_LOG_GROUP_NAMES]?: AWS_LOG_GROUP_NAMES_TYPE;\n [AWS_LOG_STREAM_NAMES]?: AWS_LOG_STREAM_NAMES_TYPE;\n [AWS_OPERATION_NAME]?: AWS_OPERATION_NAME_TYPE;\n [AWS_REGION]?: AWS_REGION_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_REQUEST_URL]?: AWS_REQUEST_URL_TYPE;\n [AWS_S3_BUCKET]?: AWS_S3_BUCKET_TYPE;\n [AWS_S3_COPY_SOURCE]?: AWS_S3_COPY_SOURCE_TYPE;\n [AWS_S3_DELETE]?: AWS_S3_DELETE_TYPE;\n [AWS_S3_KEY]?: AWS_S3_KEY_TYPE;\n [AWS_S3_PART_NUMBER]?: AWS_S3_PART_NUMBER_TYPE;\n [AWS_S3_UPLOAD_ID]?: AWS_S3_UPLOAD_ID_TYPE;\n [AWS_SECRETSMANAGER_SECRET_ARN]?: AWS_SECRETSMANAGER_SECRET_ARN_TYPE;\n [AWS_SECRETSMANAGER_SECRET_NAME]?: AWS_SECRETSMANAGER_SECRET_NAME_TYPE;\n [AWS_SNS_TOPIC_ARN]?: AWS_SNS_TOPIC_ARN_TYPE;\n [AWS_SQS_QUEUE_URL]?: AWS_SQS_QUEUE_URL_TYPE;\n [AWS_STEP_FUNCTIONS_ACTIVITY_ARN]?: AWS_STEP_FUNCTIONS_ACTIVITY_ARN_TYPE;\n [AWS_STEP_FUNCTIONS_ACTIVITY_NAME]?: AWS_STEP_FUNCTIONS_ACTIVITY_NAME_TYPE;\n [AWS_STEP_FUNCTIONS_EXECUTION_ARN]?: AWS_STEP_FUNCTIONS_EXECUTION_ARN_TYPE;\n [AWS_STEP_FUNCTIONS_STATE_MACHINE_ARN]?: AWS_STEP_FUNCTIONS_STATE_MACHINE_ARN_TYPE;\n [AWS_STEP_FUNCTIONS_STATE_MACHINE_NAME]?: AWS_STEP_FUNCTIONS_STATE_MACHINE_NAME_TYPE;\n [BLOCKED_MAIN_THREAD]?: BLOCKED_MAIN_THREAD_TYPE;\n [BROWSER_BFCACHE_FRAME]?: BROWSER_BFCACHE_FRAME_TYPE;\n [BROWSER_BFCACHE_NOT_RESTORED_REASON_COUNT]?: BROWSER_BFCACHE_NOT_RESTORED_REASON_COUNT_TYPE;\n [BROWSER_BFCACHE_OUTCOME]?: BROWSER_BFCACHE_OUTCOME_TYPE;\n [BROWSER_BFCACHE_REASON]?: BROWSER_BFCACHE_REASON_TYPE;\n [BROWSER_NAME]?: BROWSER_NAME_TYPE;\n [BROWSER_NAVIGATION_ID]?: BROWSER_NAVIGATION_ID_TYPE;\n [BROWSER_NAVIGATION_TYPE]?: BROWSER_NAVIGATION_TYPE_TYPE;\n [BROWSER_PAINT_TYPE]?: BROWSER_PAINT_TYPE_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_INPUT_DELAY]?: BROWSER_WEB_VITAL_INP_INPUT_DELAY_TYPE;\n [BROWSER_WEB_VITAL_INP_INTERACTION_TYPE]?: BROWSER_WEB_VITAL_INP_INTERACTION_TYPE_TYPE;\n [BROWSER_WEB_VITAL_INP_PRESENTATION_DELAY]?: BROWSER_WEB_VITAL_INP_PRESENTATION_DELAY_TYPE;\n [BROWSER_WEB_VITAL_INP_PROCESSING_DURATION]?: BROWSER_WEB_VITAL_INP_PROCESSING_DURATION_TYPE;\n [BROWSER_WEB_VITAL_INP_TARGET]?: BROWSER_WEB_VITAL_INP_TARGET_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_ELEMENT_RENDER_DELAY]?: BROWSER_WEB_VITAL_LCP_ELEMENT_RENDER_DELAY_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_RESOURCE_LOAD_DELAY]?: BROWSER_WEB_VITAL_LCP_RESOURCE_LOAD_DELAY_TYPE;\n [BROWSER_WEB_VITAL_LCP_RESOURCE_LOAD_DURATION]?: BROWSER_WEB_VITAL_LCP_RESOURCE_LOAD_DURATION_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_AGE]?: CACHE_ITEM_AGE_TYPE;\n [CACHE_ITEM_SIZE]?: CACHE_ITEM_SIZE_TYPE;\n [CACHE_KEY]?: CACHE_KEY_TYPE;\n [CACHE_OPERATION]?: CACHE_OPERATION_TYPE;\n [CACHE_TAGS]?: CACHE_TAGS_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]?: CODE_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_CONNECTION_STRING]?: DB_CONNECTION_STRING_TYPE;\n [DB_DRIVER_NAME]?: DB_DRIVER_NAME_TYPE;\n [DB_MONGODB_COLLECTION]?: DB_MONGODB_COLLECTION_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_PARAMS]?: DB_PARAMS_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 [DJANGO_FUNCTION_NAME]?: DJANGO_FUNCTION_NAME_TYPE;\n [DJANGO_MIDDLEWARE_NAME]?: DJANGO_MIDDLEWARE_NAME_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_DOCUMENT_COLLECTION]?: FAAS_DOCUMENT_COLLECTION_TYPE;\n [FAAS_DOCUMENT_NAME]?: FAAS_DOCUMENT_NAME_TYPE;\n [FAAS_DOCUMENT_OPERATION]?: FAAS_DOCUMENT_OPERATION_TYPE;\n [FAAS_DOCUMENT_TIME]?: FAAS_DOCUMENT_TIME_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_INSTANCE]?: FAAS_INSTANCE_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_MAX_MEMORY]?: FAAS_MAX_MEMORY_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 [FILE_PATH]?: FILE_PATH_TYPE;\n [FILE_SIZE]?: FILE_SIZE_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 [GCP_REGION]?: GCP_REGION_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_MEMORY_QUERY_TEXT]?: GEN_AI_MEMORY_QUERY_TEXT_TYPE;\n [GEN_AI_MEMORY_RECORDS]?: GEN_AI_MEMORY_RECORDS_TYPE;\n [GEN_AI_MEMORY_RECORD_COUNT]?: GEN_AI_MEMORY_RECORD_COUNT_TYPE;\n [GEN_AI_MEMORY_RECORD_ID]?: GEN_AI_MEMORY_RECORD_ID_TYPE;\n [GEN_AI_MEMORY_STORE_ID]?: GEN_AI_MEMORY_STORE_ID_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_PROMPT_VARIABLE_KEY]?: GEN_AI_PROMPT_VARIABLE_KEY_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_LEVEL]?: GEN_AI_REQUEST_REASONING_LEVEL_TYPE;\n [GEN_AI_REQUEST_SCHEMA]?: GEN_AI_REQUEST_SCHEMA_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_REASON]?: GEN_AI_RESPONSE_FINISH_REASON_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_OBJECT]?: GEN_AI_RESPONSE_OBJECT_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_CALL_RESULT_SIZE]?: GEN_AI_TOOL_CALL_RESULT_SIZE_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_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_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 [GRAPHQL_PROCESSING_TYPE]?: GRAPHQL_PROCESSING_TYPE_TYPE;\n [GRAPHQL_SOURCE]?: GRAPHQL_SOURCE_TYPE;\n [GRPC_ERROR_BAD_REQUEST_FIELD_VIOLATIONS]?: GRPC_ERROR_BAD_REQUEST_FIELD_VIOLATIONS_TYPE;\n [GRPC_ERROR_DEBUG_INFO_DETAIL]?: GRPC_ERROR_DEBUG_INFO_DETAIL_TYPE;\n [GRPC_ERROR_DEBUG_INFO_STACK_ENTRIES]?: GRPC_ERROR_DEBUG_INFO_STACK_ENTRIES_TYPE;\n [GRPC_ERROR_ERROR_INFO_DOMAIN]?: GRPC_ERROR_ERROR_INFO_DOMAIN_TYPE;\n [GRPC_ERROR_ERROR_INFO_METADATA_KEY]?: GRPC_ERROR_ERROR_INFO_METADATA_KEY_TYPE;\n [GRPC_ERROR_ERROR_INFO_REASON]?: GRPC_ERROR_ERROR_INFO_REASON_TYPE;\n [GRPC_ERROR_PRECONDITION_FAILURE_VIOLATIONS]?: GRPC_ERROR_PRECONDITION_FAILURE_VIOLATIONS_TYPE;\n [GRPC_ERROR_QUOTA_FAILURE_VIOLATIONS]?: GRPC_ERROR_QUOTA_FAILURE_VIOLATIONS_TYPE;\n [GRPC_ERROR_RESOURCE_INFO_DESCRIPTION]?: GRPC_ERROR_RESOURCE_INFO_DESCRIPTION_TYPE;\n [GRPC_ERROR_RESOURCE_INFO_OWNER]?: GRPC_ERROR_RESOURCE_INFO_OWNER_TYPE;\n [GRPC_ERROR_RESOURCE_INFO_RESOURCE_NAME]?: GRPC_ERROR_RESOURCE_INFO_RESOURCE_NAME_TYPE;\n [GRPC_ERROR_RESOURCE_INFO_RESOURCE_TYPE]?: GRPC_ERROR_RESOURCE_INFO_RESOURCE_TYPE_TYPE;\n [GRPC_ERROR_RETRY_INFO_RETRY_DELAY_MS]?: GRPC_ERROR_RETRY_INFO_RETRY_DELAY_MS_TYPE;\n [HAPI_EXT_TYPE]?: HAPI_EXT_TYPE_TYPE;\n [HAPI_PLUGIN_NAME]?: HAPI_PLUGIN_NAME_TYPE;\n [HAPI_TYPE]?: HAPI_TYPE_TYPE;\n [HARDWARECONCURRENCY]?: HARDWARECONCURRENCY_TYPE;\n [HEROKU_DYNO_NAME]?: HEROKU_DYNO_NAME_TYPE;\n [HEROKU_ERROR_CODE]?: HEROKU_ERROR_CODE_TYPE;\n [HEROKU_ERROR_DESCRIPTION]?: HEROKU_ERROR_DESCRIPTION_TYPE;\n [HEROKU_LOGPLEX_DRAIN_TOKEN]?: HEROKU_LOGPLEX_DRAIN_TOKEN_TYPE;\n [HEROKU_ROUTER_CONNECT]?: HEROKU_ROUTER_CONNECT_TYPE;\n [HEROKU_ROUTER_REQUEST_ID]?: HEROKU_ROUTER_REQUEST_ID_TYPE;\n [HEROKU_ROUTER_SERVICE]?: HEROKU_ROUTER_SERVICE_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_BODY_DECODED_SIZE]?: HTTP_REQUEST_BODY_DECODED_SIZE_TYPE;\n [HTTP_REQUEST_BODY_SIZE]?: HTTP_REQUEST_BODY_SIZE_TYPE;\n [HTTP_REQUEST_CONNECTION_END]?: HTTP_REQUEST_CONNECTION_END_TYPE;\n [HTTP_REQUEST_CONNECT_START]?: HTTP_REQUEST_CONNECT_START_TYPE;\n [HTTP_REQUEST_CONTENT_LENGTH]?: HTTP_REQUEST_CONTENT_LENGTH_TYPE;\n [HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED]?: HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED_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_DURATION]?: HTTP_REQUEST_DURATION_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_DECODED_SIZE]?: HTTP_RESPONSE_BODY_DECODED_SIZE_TYPE;\n [HTTP_RESPONSE_BODY_SIZE]?: HTTP_RESPONSE_BODY_SIZE_TYPE;\n [HTTP_RESPONSE_CONTENT_LENGTH]?: HTTP_RESPONSE_CONTENT_LENGTH_TYPE;\n [HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED]?: HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED_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_STATUS_TEXT]?: HTTP_RESPONSE_STATUS_TEXT_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_STATUS_TEXT]?: HTTP_STATUS_TEXT_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 [INTEGRITY_BLOCKED_URL]?: INTEGRITY_BLOCKED_URL_TYPE;\n [INTEGRITY_DESTINATION]?: INTEGRITY_DESTINATION_TYPE;\n [INTEGRITY_DOCUMENT_URL]?: INTEGRITY_DOCUMENT_URL_TYPE;\n [INTEGRITY_REPORT_ONLY]?: INTEGRITY_REPORT_ONLY_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 [LANGCHAIN_CHAIN_NAME]?: LANGCHAIN_CHAIN_NAME_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 [LITESTAR_MIDDLEWARE_NAME]?: LITESTAR_MIDDLEWARE_NAME_TYPE;\n [LOGGER_NAME]?: LOGGER_NAME_TYPE;\n [MCP_AUTH_CLIENT_NAME]?: MCP_AUTH_CLIENT_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_KEY_CONTENT]?: MCP_PROMPT_RESULT_KEY_CONTENT_TYPE;\n [MCP_PROMPT_RESULT_KEY_ROLE]?: MCP_PROMPT_RESULT_KEY_ROLE_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_CONTENT_TYPE]?: MCP_TOOL_RESULT_CONTENT_TYPE_TYPE;\n [MCP_TOOL_RESULT_DATA_SIZE]?: MCP_TOOL_RESULT_DATA_SIZE_TYPE;\n [MCP_TOOL_RESULT_IS_ERROR]?: MCP_TOOL_RESULT_IS_ERROR_TYPE;\n [MCP_TOOL_RESULT_KEY_CONTENT]?: MCP_TOOL_RESULT_KEY_CONTENT_TYPE;\n [MCP_TOOL_RESULT_KEY_CONTENT_TYPE]?: MCP_TOOL_RESULT_KEY_CONTENT_TYPE_TYPE;\n [MCP_TOOL_RESULT_KEY_DATA_SIZE]?: MCP_TOOL_RESULT_KEY_DATA_SIZE_TYPE;\n [MCP_TOOL_RESULT_KEY_MIME_TYPE]?: MCP_TOOL_RESULT_KEY_MIME_TYPE_TYPE;\n [MCP_TOOL_RESULT_KEY_NAME]?: MCP_TOOL_RESULT_KEY_NAME_TYPE;\n [MCP_TOOL_RESULT_KEY_RESOURCE_MIME_TYPE]?: MCP_TOOL_RESULT_KEY_RESOURCE_MIME_TYPE_TYPE;\n [MCP_TOOL_RESULT_KEY_RESOURCE_URI]?: MCP_TOOL_RESULT_KEY_RESOURCE_URI_TYPE;\n [MCP_TOOL_RESULT_KEY_URI]?: MCP_TOOL_RESULT_KEY_URI_TYPE;\n [MCP_TOOL_RESULT_MIME_TYPE]?: MCP_TOOL_RESULT_MIME_TYPE_TYPE;\n [MCP_TOOL_RESULT_NAME]?: MCP_TOOL_RESULT_NAME_TYPE;\n [MCP_TOOL_RESULT_RESOURCE_MIME_TYPE]?: MCP_TOOL_RESULT_RESOURCE_MIME_TYPE_TYPE;\n [MCP_TOOL_RESULT_RESOURCE_URI]?: MCP_TOOL_RESULT_RESOURCE_URI_TYPE;\n [MCP_TOOL_RESULT_URI]?: MCP_TOOL_RESULT_URI_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_BULLMQ_FLOW_NAME]?: MESSAGING_BULLMQ_FLOW_NAME_TYPE;\n [MESSAGING_BULLMQ_JOB_ATTEMPT_FINISHED_TIMESTAMP]?: MESSAGING_BULLMQ_JOB_ATTEMPT_FINISHED_TIMESTAMP_TYPE;\n [MESSAGING_BULLMQ_JOB_BULK_NAMES]?: MESSAGING_BULLMQ_JOB_BULK_NAMES_TYPE;\n [MESSAGING_BULLMQ_JOB_DEDUPLICATION_KEY]?: MESSAGING_BULLMQ_JOB_DEDUPLICATION_KEY_TYPE;\n [MESSAGING_BULLMQ_JOB_IDS]?: MESSAGING_BULLMQ_JOB_IDS_TYPE;\n [MESSAGING_BULLMQ_JOB_KEY]?: MESSAGING_BULLMQ_JOB_KEY_TYPE;\n [MESSAGING_BULLMQ_JOB_NAME]?: MESSAGING_BULLMQ_JOB_NAME_TYPE;\n [MESSAGING_BULLMQ_JOB_PROCESSED_TIMESTAMP]?: MESSAGING_BULLMQ_JOB_PROCESSED_TIMESTAMP_TYPE;\n [MESSAGING_BULLMQ_JOB_SCHEDULER_ID]?: MESSAGING_BULLMQ_JOB_SCHEDULER_ID_TYPE;\n [MESSAGING_BULLMQ_JOB_STATE]?: MESSAGING_BULLMQ_JOB_STATE_TYPE;\n [MESSAGING_BULLMQ_JOB_TYPE]?: MESSAGING_BULLMQ_JOB_TYPE_TYPE;\n [MESSAGING_BULLMQ_QUEUE_CLEAN_COUNT]?: MESSAGING_BULLMQ_QUEUE_CLEAN_COUNT_TYPE;\n [MESSAGING_BULLMQ_QUEUE_CLEAN_LIMIT]?: MESSAGING_BULLMQ_QUEUE_CLEAN_LIMIT_TYPE;\n [MESSAGING_BULLMQ_QUEUE_DRAIN_DELAY]?: MESSAGING_BULLMQ_QUEUE_DRAIN_DELAY_TYPE;\n [MESSAGING_BULLMQ_QUEUE_EVENT_MAX_LENGTH]?: MESSAGING_BULLMQ_QUEUE_EVENT_MAX_LENGTH_TYPE;\n [MESSAGING_BULLMQ_QUEUE_GRACE]?: MESSAGING_BULLMQ_QUEUE_GRACE_TYPE;\n [MESSAGING_BULLMQ_QUEUE_JOBS_STATE]?: MESSAGING_BULLMQ_QUEUE_JOBS_STATE_TYPE;\n [MESSAGING_BULLMQ_QUEUE_RATE_LIMIT]?: MESSAGING_BULLMQ_QUEUE_RATE_LIMIT_TYPE;\n [MESSAGING_BULLMQ_WORKER_DO_NOT_WAIT_ACTIVE]?: MESSAGING_BULLMQ_WORKER_DO_NOT_WAIT_ACTIVE_TYPE;\n [MESSAGING_BULLMQ_WORKER_FORCE_CLOSE]?: MESSAGING_BULLMQ_WORKER_FORCE_CLOSE_TYPE;\n [MESSAGING_BULLMQ_WORKER_JOBS_TO_EXTEND_LOCKS]?: MESSAGING_BULLMQ_WORKER_JOBS_TO_EXTEND_LOCKS_TYPE;\n [MESSAGING_BULLMQ_WORKER_NAME]?: MESSAGING_BULLMQ_WORKER_NAME_TYPE;\n [MESSAGING_BULLMQ_WORKER_RATE_LIMIT]?: MESSAGING_BULLMQ_WORKER_RATE_LIMIT_TYPE;\n [MESSAGING_BULLMQ_WORKER_STALLED_JOBS]?: MESSAGING_BULLMQ_WORKER_STALLED_JOBS_TYPE;\n [MESSAGING_CLIENT_ID]?: MESSAGING_CLIENT_ID_TYPE;\n [MESSAGING_CONVERSATION_ID]?: MESSAGING_CONVERSATION_ID_TYPE;\n [MESSAGING_DESTINATION]?: MESSAGING_DESTINATION_TYPE;\n [MESSAGING_DESTINATION_CONNECTION]?: MESSAGING_DESTINATION_CONNECTION_TYPE;\n [MESSAGING_DESTINATION_KIND]?: MESSAGING_DESTINATION_KIND_TYPE;\n [MESSAGING_DESTINATION_NAME]?: MESSAGING_DESTINATION_NAME_TYPE;\n [MESSAGING_DESTINATION_PARTITION_ID]?: MESSAGING_DESTINATION_PARTITION_ID_TYPE;\n [MESSAGING_KAFKA_MESSAGE_KEY]?: MESSAGING_KAFKA_MESSAGE_KEY_TYPE;\n [MESSAGING_KAFKA_MESSAGE_TOMBSTONE]?: MESSAGING_KAFKA_MESSAGE_TOMBSTONE_TYPE;\n [MESSAGING_KAFKA_OFFSET]?: MESSAGING_KAFKA_OFFSET_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_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]?: MESSAGING_OPERATION_TYPE;\n [MESSAGING_OPERATION_NAME]?: MESSAGING_OPERATION_NAME_TYPE;\n [MESSAGING_OPERATION_TYPE]?: MESSAGING_OPERATION_TYPE_TYPE;\n [MESSAGING_PROTOCOL]?: MESSAGING_PROTOCOL_TYPE;\n [MESSAGING_PROTOCOL_VERSION]?: MESSAGING_PROTOCOL_VERSION_TYPE;\n [MESSAGING_RABBITMQ_DESTINATION_ROUTING_KEY]?: MESSAGING_RABBITMQ_DESTINATION_ROUTING_KEY_TYPE;\n [MESSAGING_RABBITMQ_ROUTING_KEY]?: MESSAGING_RABBITMQ_ROUTING_KEY_TYPE;\n [MESSAGING_SYSTEM]?: MESSAGING_SYSTEM_TYPE;\n [MESSAGING_URL]?: MESSAGING_URL_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_FRACTION]?: NEL_SAMPLING_FRACTION_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 [PAGE_SERVER_RENDERING_AGE]?: PAGE_SERVER_RENDERING_AGE_TYPE;\n [PAGE_SERVER_RENDERING_TYPE]?: PAGE_SERVER_RENDERING_TYPE_TYPE;\n [PARAMS_KEY]?: PARAMS_KEY_TYPE;\n [PERFORMANCE_ACTIVATIONSTART]?: PERFORMANCE_ACTIVATIONSTART_TYPE;\n [PERFORMANCE_TIMEORIGIN]?: PERFORMANCE_TIMEORIGIN_TYPE;\n [PORT]?: PORT_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_ELIXIR_MEMORY_TYPE]?: PROCESS_RUNTIME_ELIXIR_MEMORY_TYPE_TYPE;\n [PROCESS_RUNTIME_ELIXIR_RUN_QUEUE_TYPE]?: PROCESS_RUNTIME_ELIXIR_RUN_QUEUE_TYPE_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 [PROFILE_ID]?: PROFILE_ID_TYPE;\n [QUERY]?: QUERY_TYPE;\n [QUERY_KEY]?: QUERY_KEY_TYPE;\n [REACT_NATIVE_ARCHITECTURE]?: REACT_NATIVE_ARCHITECTURE_TYPE;\n [REACT_NATIVE_MODULE_CALL_COUNT]?: REACT_NATIVE_MODULE_CALL_COUNT_TYPE;\n [REACT_NATIVE_MODULE_CALL_DISTINCT_COUNT]?: REACT_NATIVE_MODULE_CALL_DISTINCT_COUNT_TYPE;\n [REACT_NATIVE_MODULE_DURATION_MAX]?: REACT_NATIVE_MODULE_DURATION_MAX_TYPE;\n [REACT_NATIVE_MODULE_DURATION_TOTAL]?: REACT_NATIVE_MODULE_DURATION_TOTAL_TYPE;\n [REACT_NATIVE_MODULE_ERROR_COUNT]?: REACT_NATIVE_MODULE_ERROR_COUNT_TYPE;\n [REACT_NATIVE_MODULE_KIND]?: REACT_NATIVE_MODULE_KIND_TYPE;\n [REACT_NATIVE_MODULE_METHOD]?: REACT_NATIVE_MODULE_METHOD_TYPE;\n [REACT_NATIVE_MODULE_NAME]?: REACT_NATIVE_MODULE_NAME_TYPE;\n [REACT_NATIVE_MODULE_TOP_DURATION]?: REACT_NATIVE_MODULE_TOP_DURATION_TYPE;\n [REACT_NATIVE_MODULE_TOP_NAME]?: REACT_NATIVE_MODULE_TOP_NAME_TYPE;\n [REACT_VERSION]?: REACT_VERSION_TYPE;\n [REDIS_COMMAND]?: REDIS_COMMAND_TYPE;\n [REDIS_KEY]?: REDIS_KEY_TYPE;\n [RELEASE]?: RELEASE_TYPE;\n [REMIX_ACTION_FORM_DATA_KEY]?: REMIX_ACTION_FORM_DATA_KEY_TYPE;\n [REPLAYID]?: REPLAYID_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 [ROUTER_NAVIGATION_ORIGIN]?: ROUTER_NAVIGATION_ORIGIN_TYPE;\n [ROUTER_NAVIGATION_ROUTE_ID]?: ROUTER_NAVIGATION_ROUTE_ID_TYPE;\n [ROUTER_NAVIGATION_TYPE]?: ROUTER_NAVIGATION_TYPE_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_EVENT_SERIALIZED_BREADCRUMBS]?: SENTRY_EVENT_SERIALIZED_BREADCRUMBS_TYPE;\n [SENTRY_EVENT_SERIALIZED_CONTEXTS]?: SENTRY_EVENT_SERIALIZED_CONTEXTS_TYPE;\n [SENTRY_EVENT_SERIALIZED_EXTRA]?: SENTRY_EVENT_SERIALIZED_EXTRA_TYPE;\n [SENTRY_EVENT_SERIALIZED_META]?: SENTRY_EVENT_SERIALIZED_META_TYPE;\n [SENTRY_EXCLUSIVE_TIME]?: SENTRY_EXCLUSIVE_TIME_TYPE;\n [SENTRY_FRAMES_FROZEN]?: SENTRY_FRAMES_FROZEN_TYPE;\n [SENTRY_FRAMES_SLOW]?: SENTRY_FRAMES_SLOW_TYPE;\n [SENTRY_FRAMES_TOTAL]?: SENTRY_FRAMES_TOTAL_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_LOCALHOST]?: SENTRY_IS_LOCALHOST_TYPE;\n [SENTRY_IS_REMOTE]?: SENTRY_IS_REMOTE_TYPE;\n [SENTRY_KIND]?: SENTRY_KIND_TYPE;\n [SENTRY_LINK_TYPE]?: SENTRY_LINK_TYPE_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_PAGELOAD_SPAN_ID]?: SENTRY_PAGELOAD_SPAN_ID_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_RELAY_INGRESS]?: SENTRY_RELAY_INGRESS_TYPE;\n [SENTRY_RELAY_PIPELINE]?: SENTRY_RELAY_PIPELINE_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_SEGMENT_NAME_SOURCE]?: SENTRY_SEGMENT_NAME_SOURCE_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]?: SENTRY_USER_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_GEO_SUBREGION]?: SENTRY_USER_GEO_SUBREGION_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_EXT_TYPE]?: SERVER_EXT_TYPE_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 [STARLETTE_MIDDLEWARE_NAME]?: STARLETTE_MIDDLEWARE_NAME_TYPE;\n [STARLITE_MIDDLEWARE_NAME]?: STARLITE_MIDDLEWARE_NAME_TYPE;\n [STATE_TYPE]?: STATE_TYPE_TYPE;\n [SUBPROCESS_PID]?: SUBPROCESS_PID_TYPE;\n [SVELTEKIT_LOAD_ENVIRONMENT]?: SVELTEKIT_LOAD_ENVIRONMENT_TYPE;\n [SVELTEKIT_LOAD_NODE_ID]?: SVELTEKIT_LOAD_NODE_ID_TYPE;\n [SVELTEKIT_LOAD_NODE_TYPE]?: SVELTEKIT_LOAD_NODE_TYPE_TYPE;\n [SVELTEKIT_TRACING_ORIGINAL_NAME]?: SVELTEKIT_TRACING_ORIGINAL_NAME_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 [TLS_PROTOCOL_NAME]?: TLS_PROTOCOL_NAME_TYPE;\n [TLS_PROTOCOL_VERSION]?: TLS_PROTOCOL_VERSION_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 [TURBO_MODULES_TOTAL_CALL_COUNT]?: TURBO_MODULES_TOTAL_CALL_COUNT_TYPE;\n [TURBO_MODULES_TOTAL_DURATION_MS]?: TURBO_MODULES_TOTAL_DURATION_MS_TYPE;\n [TURBO_MODULES_TOTAL_ERROR_COUNT]?: TURBO_MODULES_TOTAL_ERROR_COUNT_TYPE;\n [TURBO_MODULES_UNIQUE_METHODS]?: TURBO_MODULES_UNIQUE_METHODS_TYPE;\n [TURBO_MODULE_ARCH]?: TURBO_MODULE_ARCH_TYPE;\n [TURBO_MODULE_METHOD]?: TURBO_MODULE_METHOD_TYPE;\n [TURBO_MODULE_NAME]?: TURBO_MODULE_NAME_TYPE;\n [TURBO_MODULE_TOP_MODULE]?: TURBO_MODULE_TOP_MODULE_TYPE;\n [TURBO_MODULE_TOP_MODULE_DURATION_MS]?: TURBO_MODULE_TOP_MODULE_DURATION_MS_TYPE;\n [TURBO_MODULE_TOTAL_CALL_COUNT]?: TURBO_MODULE_TOTAL_CALL_COUNT_TYPE;\n [TURBO_MODULE_TOTAL_DURATION_MS]?: TURBO_MODULE_TOTAL_DURATION_MS_TYPE;\n [TURBO_MODULE_TOTAL_ERROR_COUNT]?: TURBO_MODULE_TOTAL_ERROR_COUNT_TYPE;\n [TURBO_MODULE_UNIQUE_METHODS]?: TURBO_MODULE_UNIQUE_METHODS_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_PATH_PARAMS_KEY]?: URL_PATH_PARAMS_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_GEO_SUBREGION]?: USER_GEO_SUBREGION_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_AI_SETTINGS_CONTEXT_KEY]?: VERCEL_AI_SETTINGS_CONTEXT_KEY_TYPE;\n [VERCEL_AI_TELEMETRY_METADATA_KEY]?: VERCEL_AI_TELEMETRY_METADATA_KEY_TYPE;\n [VERCEL_AI_TOOL_CALL_CONTEXT_KEY]?: VERCEL_AI_TOOL_CALL_CONTEXT_KEY_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 { HTTP_RESPONSE_STATUS_CODE } from '@sentry/conventions/attributes';\nimport type { Span } from '../types/span';\nimport type { SpanStatusType } from '../types/spanStatus';\nimport { SPAN_STATUS_TYPES, type SpanStatus } from '../types/spanStatus';\n\nexport const SPAN_STATUS_UNSET = 0;\nexport const SPAN_STATUS_OK = 1;\nexport const SPAN_STATUS_ERROR = 2;\n\nexport function isStatusErrorMessageValid(message: string): boolean {\n return message !== 'ok' && SPAN_STATUS_TYPES.includes(message as SpanStatusType);\n}\n\n/**\n * Converts a HTTP status code into a sentry status with a message.\n *\n * @param httpStatus The HTTP response status code.\n * @returns The span status or internal_error.\n */\n// https://develop.sentry.dev/sdk/event-payloads/span/\nexport function getSpanStatusFromHttpCode(httpStatus: number): SpanStatus {\n if (httpStatus < 400 && httpStatus >= 100) {\n return { code: SPAN_STATUS_OK };\n }\n\n if (httpStatus >= 400 && httpStatus < 500) {\n switch (httpStatus) {\n case 401:\n return { code: SPAN_STATUS_ERROR, message: 'unauthenticated' };\n case 403:\n return { code: SPAN_STATUS_ERROR, message: 'permission_denied' };\n case 404:\n return { code: SPAN_STATUS_ERROR, message: 'not_found' };\n case 409:\n return { code: SPAN_STATUS_ERROR, message: 'already_exists' };\n case 413:\n return { code: SPAN_STATUS_ERROR, message: 'failed_precondition' };\n case 429:\n return { code: SPAN_STATUS_ERROR, message: 'resource_exhausted' };\n case 499:\n return { code: SPAN_STATUS_ERROR, message: 'cancelled' };\n default:\n return { code: SPAN_STATUS_ERROR, message: 'invalid_argument' };\n }\n }\n\n if (httpStatus >= 500 && httpStatus < 600) {\n switch (httpStatus) {\n case 501:\n return { code: SPAN_STATUS_ERROR, message: 'unimplemented' };\n case 503:\n return { code: SPAN_STATUS_ERROR, message: 'unavailable' };\n case 504:\n return { code: SPAN_STATUS_ERROR, message: 'deadline_exceeded' };\n default:\n return { code: SPAN_STATUS_ERROR, message: 'internal_error' };\n }\n }\n\n return { code: SPAN_STATUS_ERROR, message: 'internal_error' };\n}\n\n/**\n * Sets the Http status attributes on the current span based on the http code.\n * Additionally, the span's status is updated, depending on the http code.\n */\nexport function setHttpStatus(span: Span, httpStatus: number): void {\n span.setAttribute(HTTP_RESPONSE_STATUS_CODE, httpStatus);\n\n const spanStatus = getSpanStatusFromHttpCode(httpStatus);\n if (spanStatus.message !== 'unknown_error') {\n span.setStatus(spanStatus);\n }\n}\n", "import { 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 '../utils/weakRef';\n\nconst SCOPE_ON_START_SPAN_FIELD = '_sentryScope';\nconst ISOLATION_SCOPE_ON_START_SPAN_FIELD = '_sentryIsolationScope';\n\n// Brand marking a span created by the `SentryTracerProvider` (i.e. via the OTel tracer) rather than\n// directly through the core span API. Such a span is handed to OTel instrumentations as an OTel span,\n// so it must become immutable after `end()` like a real OTel SDK span (see `SentrySpan.end()`). Spans\n// created directly through core (e.g. the browser SDK) are not branded and stay mutable.\nconst TRACER_PROVIDER_SPAN_FIELD = Symbol.for('sentry.tracerProviderSpan');\n\ntype SpanWithScopes = Span & {\n [SCOPE_ON_START_SPAN_FIELD]?: Scope;\n [ISOLATION_SCOPE_ON_START_SPAN_FIELD]?: MaybeWeakRef;\n};\n\ntype SpanWithTracerProviderBrand = Span & {\n [TRACER_PROVIDER_SPAN_FIELD]?: boolean;\n};\n\n/** Store the scope & isolation scope for a span, which can the be used when it is finished. */\nexport function setCapturedScopesOnSpan(span: Span | undefined, scope: Scope, isolationScope: Scope): void {\n if (span) {\n addNonEnumerableProperty(span, ISOLATION_SCOPE_ON_START_SPAN_FIELD, makeWeakRef(isolationScope));\n // We don't wrap the scope with a WeakRef here because webkit aggressively garbage collects\n // and scopes are not held in memory for long periods of time.\n addNonEnumerableProperty(span, SCOPE_ON_START_SPAN_FIELD, scope);\n }\n}\n\n/**\n * Grabs the scope and isolation scope off a span that were active when the span was started.\n * If WeakRef was used and scopes have been garbage collected, returns undefined for those scopes.\n */\nexport function getCapturedScopesOnSpan(span: Span): { scope?: Scope; isolationScope?: Scope } {\n const spanWithScopes = span as SpanWithScopes;\n\n return {\n scope: spanWithScopes[SCOPE_ON_START_SPAN_FIELD],\n isolationScope: derefWeakRef(spanWithScopes[ISOLATION_SCOPE_ON_START_SPAN_FIELD]),\n };\n}\n\n/**\n * Mark a span as created by the `SentryTracerProvider` (via the OTel tracer). Set by `SentryTracer`\n * on every span it creates; read by `SentrySpan.end()` to seal the span against further writes once\n * it has ended, mirroring OTel SDK spans (which are immutable after `end()`).\n */\nexport function markSpanAsTracerProviderSpan(span: Span): void {\n addNonEnumerableProperty(span, TRACER_PROVIDER_SPAN_FIELD, true);\n}\n\n/** Whether a span was created by the `SentryTracerProvider` (see {@link markSpanAsTracerProviderSpan}). */\nexport function spanIsTracerProviderSpan(span: Span): boolean {\n return (span as SpanWithTracerProviderBrand)[TRACER_PROVIDER_SPAN_FIELD] === true;\n}\n", "import { 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;\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 { Scope } from '../scope';\nimport type { Span } from '../types/span';\nimport { derefWeakRef, makeWeakRef, type MaybeWeakRef } from './weakRef';\n\nconst SCOPE_SPAN_FIELD = 'span';\n\n/**\n * Set the active span for a given scope.\n * NOTE: This should NOT be used directly, but is only used internally by the trace methods.\n */\nexport function _setSpanForScope(scope: Scope, span: Span | undefined): void {\n if (span) {\n // Use WeakRef to avoid circular reference with span holding scope\n scope.refs[SCOPE_SPAN_FIELD] = makeWeakRef(span);\n } else {\n // eslint-disable-next-line @typescript-eslint/no-dynamic-delete\n delete scope.refs[SCOPE_SPAN_FIELD];\n }\n}\n\n/**\n * Get the active span for a given scope.\n * NOTE: This should NOT be used directly, but is only used internally by the trace methods.\n */\nexport function _getSpanForScope(scope: Scope): Span | undefined {\n return derefWeakRef(scope.refs[SCOPE_SPAN_FIELD] as MaybeWeakRef | undefined);\n}\n", "// oxlint-disable max-lines\nimport { getAsyncContextStrategy } from '../asyncContext';\nimport type { RawAttributes } from '../attributes';\nimport { serializeAttributes } from '../attributes';\nimport { getMainCarrier } from '../carrier';\nimport { getCurrentScope } from '../currentScopes';\nimport type { Scope } from '../scope';\nimport {\n SENTRY_SEGMENT_NAME_SOURCE,\n SENTRY_STATUS_MESSAGE,\n SENTRY_OP,\n SENTRY_ORIGIN,\n} from '@sentry/conventions/attributes';\nimport { SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME } from '../semanticAttributes';\nimport type { SentrySpan } from '../tracing/sentrySpan';\nimport { isStatusErrorMessageValid, SPAN_STATUS_OK, SPAN_STATUS_UNSET } from '../tracing/spanstatus';\nimport { getCapturedScopesOnSpan } from '../tracing/utils';\nimport type { TraceContext } from '../types/context';\nimport type { SpanLink, SpanLinkJSON } from '../types/link';\nimport type { TransactionSource } from '../types/transaction';\nimport type {\n SerializedStreamedSpan,\n Span,\n SpanAttributes,\n SpanJSON,\n SpanOrigin,\n SpanTimeInput,\n StreamedSpanJSON,\n} from '../types/span';\nimport type { SpanStatus } from '../types/spanStatus';\nimport { addNonEnumerableProperty } from '../utils/object';\nimport { generateSpanId } from '../utils/propagationContext';\nimport { performanceTimeToSeconds, timestampInSeconds } from '../utils/time';\nimport { generateSentryTraceHeader, generateTraceparentHeader } from '../utils/tracing';\nimport { _getSpanForScope } from './spanOnScope';\n\n// These are aligned with OpenTelemetry trace flags\nexport const TRACE_FLAG_NONE = 0x0;\nexport const TRACE_FLAG_SAMPLED = 0x1;\n\n/**\n * Convert a span to a trace context, which can be sent as the `trace` context in an event.\n * By default, this will only include trace_id, span_id & parent_span_id.\n * If `includeAllData` is true, it will also include data, op, status & origin.\n */\nexport function spanToTransactionTraceContext(span: Span): TraceContext {\n const { spanId: span_id, traceId: trace_id } = span.spanContext();\n const { data, op, parent_span_id, status, origin, links } = spanToStaticSpanJSON(span);\n\n return {\n parent_span_id,\n span_id,\n trace_id,\n data,\n op,\n status,\n origin,\n links,\n };\n}\n\n/**\n * Convert a span to a trace context, which can be sent as the `trace` context in a non-transaction event.\n */\nexport function spanToTraceContext(span: Span): TraceContext {\n const { spanId, traceId: trace_id, isRemote } = span.spanContext();\n\n // If the span is remote, we use a random/virtual span as span_id to the trace context,\n // and the remote span as parent_span_id\n const parent_span_id = isRemote ? spanId : spanToStaticSpanJSON(span).parent_span_id;\n const scope = getCapturedScopesOnSpan(span).scope;\n\n const span_id = isRemote ? scope?.getPropagationContext().propagationSpanId || generateSpanId() : spanId;\n\n return {\n parent_span_id,\n span_id,\n trace_id,\n };\n}\n\n/**\n * Convert a Span to a Sentry trace header.\n */\nexport function spanToTraceHeader(span: Span): string {\n const { traceId, spanId } = span.spanContext();\n const sampled = spanIsSampled(span);\n return generateSentryTraceHeader(traceId, spanId, sampled);\n}\n\n/**\n * Convert a Span to a W3C traceparent header.\n */\nexport function spanToTraceparentHeader(span: Span): string {\n const { traceId, spanId } = span.spanContext();\n const sampled = spanIsSampled(span);\n return generateTraceparentHeader(traceId, spanId, sampled);\n}\n\n/**\n * Converts the span links array to a flattened version to be sent within an envelope.\n *\n * If the links array is empty, it returns `undefined` so the empty value can be dropped before it's sent.\n */\nexport function convertSpanLinksForEnvelope(links?: SpanLink[]): SpanLinkJSON[] | undefined {\n if (links && links.length > 0) {\n return links.map(({ context: { spanId, traceId, traceFlags, ...restContext }, attributes }) => ({\n span_id: spanId,\n trace_id: traceId,\n sampled: traceFlags === TRACE_FLAG_SAMPLED,\n attributes,\n ...restContext,\n }));\n } else {\n return undefined;\n }\n}\n\n/**\n * Converts the span links array to a flattened version with serialized attributes for V2 spans.\n *\n * If the links array is empty, it returns `undefined` so the empty value can be dropped before it's sent.\n */\nexport function getStreamedSpanLinks(\n links?: SpanLink[],\n): SpanLinkJSON>>[] | 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 an OpenTelemetry time input into a timestamp in seconds.\n *\n * OpenTelemetry numbers are always milliseconds, either since the epoch or since the performance time origin\n * (`performance.now()`).\n */\nexport function otelTimeInputToSeconds(input: SpanTimeInput | undefined): number {\n if (typeof input !== 'number') {\n return spanTimeInputToSeconds(input);\n }\n // Epoch milliseconds are > 1e12 for any date after 2001, `performance.now()` would need ~30 years of uptime to get there\n if (input < 1e12) {\n return performanceTimeToSeconds(input) ?? timestampInSeconds();\n }\n return input / 1000;\n}\n\n/**\n * Convert a span to a static JSON representation.\n */\n// Note: Because of this, we currently have a circular type dependency (which we opted out of in package.json).\n// This is not avoidable as we need `spanToJSON` in `spanUtils.ts`, which in turn is needed by `span.ts` for backwards compatibility.\n// And `spanToJSON` needs the Span class from `span.ts` to check here.\nexport function spanToStaticSpanJSON(span: Span): SpanJSON {\n if (spanIsSentrySpan(span)) {\n return span.getStaticSpanJSON();\n }\n\n const { spanId: span_id, traceId: trace_id } = span.spanContext();\n\n // Handle a span from @opentelemetry/sdk-base-trace's `Span` class\n if (spanIsOpenTelemetrySdkTraceBaseSpan(span)) {\n const { attributes, startTime, name, endTime, status, links } = span;\n\n return {\n span_id,\n trace_id,\n data: attributes,\n description: name,\n parent_span_id: getOtelParentSpanId(span),\n start_timestamp: spanTimeInputToSeconds(startTime),\n // This is [0,0] by default in OTEL, in which case we want to interpret this as no end time\n timestamp: spanTimeInputToSeconds(endTime) || undefined,\n status: getStatusMessage(status),\n op: attributes[SENTRY_OP],\n origin: attributes[SENTRY_ORIGIN] as SpanOrigin | undefined,\n links: convertSpanLinksForEnvelope(links),\n };\n }\n\n // Finally, at least we have `spanContext()`....\n // This should not actually happen in reality, but we need to handle it for type safety.\n return {\n span_id,\n trace_id,\n start_timestamp: 0,\n status: 'ok',\n data: {},\n };\n}\n\n/**\n * Convert a span to a JSON representation.\n */\nexport function spanToJSON(span: Span): StreamedSpanJSON {\n if (spanIsSentrySpan(span)) {\n return span.getSpanJSON();\n }\n\n const { spanId: span_id, traceId: trace_id } = span.spanContext();\n\n // Handle a span from @opentelemetry/sdk-base-trace's `Span` class\n if (spanIsOpenTelemetrySdkTraceBaseSpan(span)) {\n const { attributes, startTime, name, endTime, status, links } = span;\n\n return {\n name,\n span_id,\n trace_id,\n parent_span_id: getOtelParentSpanId(span),\n start_timestamp: spanTimeInputToSeconds(startTime),\n // This is [0,0] by default in OTEL, in which case we want to interpret this as no end time\n end_timestamp: spanTimeInputToSeconds(endTime) || undefined,\n is_segment: spanIsSegment(span),\n status: getSimpleStatus(status),\n attributes: addStatusMessageAttribute(attributes, status),\n links: getStreamedSpanLinks(links),\n };\n }\n\n // Finally, as a fallback, at least we have `spanContext()`....\n // This should not actually happen in reality, but we need to handle it for type safety.\n return {\n span_id,\n trace_id,\n start_timestamp: 0,\n name: '',\n status: 'ok',\n is_segment: spanIsSegment(span),\n attributes: {},\n };\n}\n\n/**\n * In preparation for the next major of OpenTelemetry, we want to support\n * looking up the parent span id according to the new API\n * In OTel v1, the parent span id is accessed as `parentSpanId`\n * In OTel v2, the parent span id is accessed as `spanId` on the `parentSpanContext`\n */\nfunction getOtelParentSpanId(span: OpenTelemetrySdkTraceBaseSpan): string | undefined {\n return 'parentSpanId' in span\n ? span.parentSpanId\n : 'parentSpanContext' in span\n ? (span.parentSpanContext as { spanId?: string } | undefined)?.spanId\n : undefined;\n}\n\n/**\n * Converts a {@link StreamedSpanJSON} to a {@link SerializedSpan}.\n * This is the final serialized span format that is sent to Sentry.\n * The returned serilaized spans must not be consumed by users or SDK integrations.\n */\nexport function streamedSpanJsonToSerializedSpan(spanJson: StreamedSpanJSON): SerializedStreamedSpan {\n return {\n ...spanJson,\n // We only ever send ended spans, but fall back to the start time (i.e. duration 0) so that\n // sent spans always carry an end timestamp.\n end_timestamp: spanJson.end_timestamp ?? spanJson.start_timestamp,\n attributes: serializeAttributes(spanJson.attributes),\n links: spanJson.links?.map(link => ({\n ...link,\n attributes: serializeAttributes(link.attributes),\n })),\n };\n}\n\nfunction spanIsOpenTelemetrySdkTraceBaseSpan(span: Span): span is OpenTelemetrySdkTraceBaseSpan {\n const castSpan = span as Partial;\n return !!castSpan.attributes && !!castSpan.startTime && !!castSpan.name && !!castSpan.endTime && !!castSpan.status;\n}\n\n/** Exported only for tests. */\nexport interface OpenTelemetrySdkTraceBaseSpan extends Span {\n attributes: SpanAttributes;\n startTime: SpanTimeInput;\n name: string;\n status: SpanStatus;\n endTime: SpanTimeInput;\n parentSpanId?: string;\n links?: SpanLink[];\n}\n\n/**\n * Sadly, due to circular dependency checks we cannot actually import the Span class here and check for instanceof.\n * :( So instead we approximate this by checking if it has the `getSpanJSON` method.\n */\nexport function spanIsSentrySpan(span: Span): span is SentrySpan {\n return typeof (span as SentrySpan).getSpanJSON === 'function';\n}\n\n/**\n * Returns true if a span is sampled.\n * In most cases, you should just use `span.isRecording()` instead.\n * However, this has a slightly different semantic, as it also returns false if the span is finished.\n * So in the case where this distinction is important, use this method.\n */\nexport function spanIsSampled(span: Span): boolean {\n // We align our trace flags with the ones OpenTelemetry use\n // So we also check for sampled the same way they do.\n const { traceFlags } = span.spanContext();\n return traceFlags === TRACE_FLAG_SAMPLED;\n}\n\n/** Get the status message to use for a JSON representation of a span. */\nexport function getStatusMessage(status: SpanStatus | undefined): string {\n if (!status || status.code === SPAN_STATUS_UNSET) {\n return 'ok';\n }\n\n if (status.code === SPAN_STATUS_OK) {\n return 'ok';\n }\n\n return status.message && isStatusErrorMessageValid(status.message) ? status.message : 'internal_error';\n}\n\n/**\n * Convert the various statuses to the simple ones expected by Sentry for streamed spans ('ok' is default).\n */\nexport function getSimpleStatus(status: SpanStatus | undefined): 'ok' | 'error' {\n return !status ||\n status.code === SPAN_STATUS_OK ||\n status.code === SPAN_STATUS_UNSET ||\n status.message === 'cancelled'\n ? 'ok'\n : 'error';\n}\n\n/**\n * Returns the span's attributes with the SENTRY_STATUS_MESSAGE attribute added\n * if the span has an error status message worth preserving.\n *\n * An explicitly set attribute is never overwritten.\n */\nexport function addStatusMessageAttribute(\n attributes: SpanAttributes,\n status: SpanStatus | undefined,\n): RawAttributes> {\n const statusMessage = getSimpleStatus(status) === 'error' ? status?.message : undefined;\n return {\n ...(statusMessage && { [SENTRY_STATUS_MESSAGE]: statusMessage }),\n ...attributes,\n };\n}\n\nconst CHILD_SPANS_FIELD = '_sentryChildSpans';\nconst ROOT_SPAN_FIELD = '_sentryRootSpan';\n\ntype SpanWithPotentialChildren = Span & {\n [CHILD_SPANS_FIELD]?: Set;\n [ROOT_SPAN_FIELD]?: Span;\n};\n\n/**\n * Adds an opaque child span reference to a span.\n */\nexport function addChildSpanToSpan(span: SpanWithPotentialChildren, childSpan: Span): void {\n // We store the root span reference on the child span\n // We need this for `getRootSpan()` to work\n const rootSpan = span[ROOT_SPAN_FIELD] || span;\n addNonEnumerableProperty(childSpan, ROOT_SPAN_FIELD, rootSpan);\n\n // Name source is exclusive to segment spans. Constructor-time attribute bags can leak it onto\n // children before this link exists, so drop it once the span is known not to be the segment.\n childSpan.setAttribute(SENTRY_SEGMENT_NAME_SOURCE, undefined);\n\n // `_sentryChildSpans` exists only so `getSpanDescendants()` can walk the tree when the segment span\n // is sent, and that walk stops at an unsampled span without ever visiting its children. So a child\n // tracked here would be held for the parent's lifetime and never read.\n if (!spanIsSampled(span)) {\n return;\n }\n\n // Once the segment span stopped recording, the tree has been read for the last time, and a child\n // starting now belongs to whatever segment comes next: it is re-emitted on its own instead. Tracking\n // it here would pin it for as long as the parent lives, which for a span left active in an async\n // context (e.g. a framework boot span captured by a queue consumer) is the rest of the process. Only\n // a parent that is itself still recording keeps tracking, so a late child that outlives its segment\n // still collects the subtree it is re-emitted with.\n if (!span.isRecording() && !rootSpan.isRecording()) {\n return;\n }\n\n // We store a list of child spans on the parent span\n // We need this for `getSpanDescendants()` to work\n if (span[CHILD_SPANS_FIELD]) {\n span[CHILD_SPANS_FIELD].add(childSpan);\n } else {\n addNonEnumerableProperty(span, CHILD_SPANS_FIELD, new Set([childSpan]));\n }\n}\n\n/** This is only used internally by Idle Spans. */\nexport function removeChildSpanFromSpan(span: SpanWithPotentialChildren, childSpan: Span): void {\n if (span[CHILD_SPANS_FIELD]) {\n span[CHILD_SPANS_FIELD].delete(childSpan);\n }\n}\n\n/**\n * Returns an array of the given span and all of its descendants.\n */\nexport function getSpanDescendants(span: SpanWithPotentialChildren): Span[] {\n const resultSet = new Set();\n\n function addSpanChildren(span: SpanWithPotentialChildren): void {\n // This exit condition is required to not infinitely loop in case of a circular dependency.\n if (resultSet.has(span)) {\n return;\n // We want to ignore unsampled spans (e.g. non recording spans)\n } else if (spanIsSampled(span)) {\n resultSet.add(span);\n const childSpans = span[CHILD_SPANS_FIELD] ? Array.from(span[CHILD_SPANS_FIELD]) : [];\n for (const childSpan of childSpans) {\n addSpanChildren(childSpan);\n }\n }\n }\n\n addSpanChildren(span);\n\n return Array.from(resultSet);\n}\n\n/**\n * Returns the root span of a given span.\n */\nexport const getRootSpan = INTERNAL_getSegmentSpan;\n\n/**\n * Returns the segment span of a given span.\n */\nexport function INTERNAL_getSegmentSpan(span: SpanWithPotentialChildren): Span {\n return span[ROOT_SPAN_FIELD] || span;\n}\n\n/**\n * Whether the given span is the segment span, i.e. it has no parent within its trace.\n */\nexport function spanIsSegment(span: SpanWithPotentialChildren): boolean {\n return span === INTERNAL_getSegmentSpan(span);\n}\n\n/**\n * Returns the currently active span.\n */\nexport function getActiveSpan(scope?: Scope): Span | undefined {\n const carrier = getMainCarrier();\n const acs = getAsyncContextStrategy(carrier);\n if (acs.getActiveSpan) {\n return acs.getActiveSpan(scope);\n }\n\n return _getSpanForScope(scope || getCurrentScope());\n}\n\n/**\n * Updates the name of the given span and ensures that the span name is not\n * overwritten by the Sentry SDK.\n *\n * Use this function instead of `span.updateName()` if you want to make sure that\n * your name is kept. For some spans, for example root `http.server` spans the\n * Sentry SDK would otherwise overwrite the span name with a high-quality name\n * it infers when the span ends.\n *\n * Use this function in server code or when your span is started on the server\n * and on the client (browser). If you only update a span name on the client,\n * you can also use `span.updateName()` the SDK does not overwrite the name.\n *\n * @param span - The span to update the name of.\n * @param name - The name to set on the span.\n */\nexport function updateSpanName(span: Span, name: string): void {\n span.updateName(name);\n span.setAttributes({\n [SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME]: name,\n });\n INTERNAL_setSegmentNameSourceIfSegment(span, 'custom');\n}\n\n/**\n * Sets `sentry.segment.name.source` only when `span` is the segment span.\n * No-op for child spans — the attribute must exclusively live on the segment.\n */\nexport function INTERNAL_setSegmentNameSourceIfSegment(span: Span, source: TransactionSource): void {\n if (spanIsSegment(span)) {\n span.setAttribute(SENTRY_SEGMENT_NAME_SOURCE, source);\n }\n}\n", "import { 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 { 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 — `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", "export const DEFAULT_ENVIRONMENT = 'production';\nexport const DEV_ENVIRONMENT = 'development';\n", "import type { EventDropReason } from '../types/clientreport';\nimport type {\n SentrySpanArguments,\n Span,\n SpanAttributes,\n SpanAttributeValue,\n SpanContextData,\n SpanTimeInput,\n} from '../types/span';\nimport type { SpanStatus } from '../types/spanStatus';\nimport { addNonEnumerableProperty } from '../utils/object';\nimport { generateSpanId, generateTraceId } from '../utils/propagationContext';\nimport { TRACE_FLAG_NONE } from '../utils/spanUtils';\n\ninterface SentryNonRecordingSpanArguments extends SentrySpanArguments {\n dropReason?: EventDropReason;\n}\n\n// Brand used to detect non-recording spans via {@link spanIsNonRecordingSpan} without `instanceof`,\n// which is brittle when `@sentry/core` is duplicated across packages. We use `Symbol.for` so the key\n// is shared across copies of the module, and so user payloads (e.g. JSON) cannot spoof the marker.\nconst NON_RECORDING_SPAN_FIELD = Symbol.for('sentry.nonRecordingSpan');\n\n/**\n * A Sentry Span that is non-recording, meaning it will not be sent to Sentry.\n */\nexport class SentryNonRecordingSpan implements Span {\n private _traceId: string;\n private _spanId: string;\n\n /**\n * Reason why this span was dropped, if applicable ('ignored' or 'sample_rate').\n * Used to propagate the correct client report outcome to descendant spans\n * when span streaming is enabled.\n */\n public dropReason?: EventDropReason;\n\n public constructor(spanContext: SentryNonRecordingSpanArguments = {}) {\n this._traceId = spanContext.traceId || generateTraceId();\n this._spanId = spanContext.spanId || generateSpanId();\n this.dropReason = spanContext.dropReason;\n addNonEnumerableProperty(this, NON_RECORDING_SPAN_FIELD, true);\n }\n\n /** @inheritdoc */\n public spanContext(): SpanContextData {\n return {\n spanId: this._spanId,\n traceId: this._traceId,\n traceFlags: TRACE_FLAG_NONE,\n };\n }\n\n /** @inheritdoc */\n public end(_timestamp?: SpanTimeInput): void {}\n\n /** @inheritdoc */\n public setAttribute(_key: string, _value: SpanAttributeValue | undefined): this {\n return this;\n }\n\n /** @inheritdoc */\n public setAttributes(_values: SpanAttributes): this {\n return this;\n }\n\n /** @inheritdoc */\n public setStatus(_status: SpanStatus): this {\n return this;\n }\n\n /** @inheritdoc */\n public updateName(_name: string): this {\n return this;\n }\n\n /** @inheritdoc */\n public isRecording(): boolean {\n return false;\n }\n\n /** @inheritdoc */\n public addEvent(\n _name: string,\n _attributesOrStartTime?: SpanAttributes | SpanTimeInput,\n _startTime?: SpanTimeInput,\n ): this {\n return this;\n }\n\n /** @inheritDoc */\n public addLink(_link: unknown): this {\n return this;\n }\n\n /** @inheritDoc */\n public addLinks(_links: unknown[]): this {\n return this;\n }\n\n /**\n * This should generally not be used,\n * but we need it for being compliant with the OTEL Span interface.\n *\n * @hidden\n * @internal\n */\n public recordException(_exception: unknown, _time?: SpanTimeInput | undefined): void {\n // noop\n }\n}\n\n/**\n * Whether the given span is a {@link SentryNonRecordingSpan}.\n */\nexport function spanIsNonRecordingSpan(span: Span | undefined): span is SentryNonRecordingSpan {\n return !!span && (span as { [NON_RECORDING_SPAN_FIELD]?: boolean })[NON_RECORDING_SPAN_FIELD] === true;\n}\n", "import type { Client } from '../client';\nimport { DEFAULT_ENVIRONMENT } from '../constants';\nimport { getClient, getExternalPropagationContext } from '../currentScopes';\nimport type { Scope } from '../scope';\nimport { SENTRY_SEGMENT_NAME_SOURCE } from '@sentry/conventions/attributes';\nimport {\n SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE,\n SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE,\n} from '../semanticAttributes';\nimport type { DynamicSamplingContext } from '../types/envelope';\nimport type { Span } from '../types/span';\nimport { baggageHeaderToDynamicSamplingContext, dynamicSamplingContextToSentryBaggageHeader } from '../utils/baggage';\nimport { extractOrgIdFromClient } from '../utils/dsn';\nimport { hasSpansEnabled } from '../utils/hasSpansEnabled';\nimport { addNonEnumerableProperty } from '../utils/object';\nimport { getRootSpan, spanIsSampled, spanToStaticSpanJSON } from '../utils/spanUtils';\nimport { spanIsNonRecordingSpan } from './sentryNonRecordingSpan';\nimport { getCapturedScopesOnSpan } from './utils';\n\n/**\n * If you change this value, also update the terser plugin config to\n * avoid minification of the object property!\n */\nconst FROZEN_DSC_FIELD = '_frozenDsc';\n\ntype SpanWithMaybeDsc = Span & {\n [FROZEN_DSC_FIELD]?: Partial | 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(\n client: Client,\n scope: Scope,\n): Partial | undefined {\n // While an external propagation context is active (e.g. the OTLP integration riding along on an\n // OpenTelemetry span), the SDK lacks most of the DSC information, like sampled, sample_rate,\n // sample_rand and transaction. The scope's own DSC would also name a different trace than the one\n // stamped on the event, so send none at all. Matches sentry-python.\n if (getExternalPropagationContext()) {\n return undefined;\n }\n\n const propagationContext = scope.getPropagationContext();\n return propagationContext.dsc || getDynamicSamplingContextFromClient(propagationContext.traceId, client);\n}\n\n/**\n * Creates a dynamic sampling context from a span (and client and scope)\n *\n * @param span the span from which a few values like the root span name and sample rate are extracted.\n *\n * @returns a dynamic sampling context\n */\nexport function getDynamicSamplingContextFromSpan(span: Span): Readonly> {\n const client = getClient();\n if (!client) {\n return {};\n }\n\n const rootSpan = getRootSpan(span);\n const rootSpanJson = spanToStaticSpanJSON(rootSpan);\n const rootSpanAttributes = rootSpanJson.data;\n const traceState = rootSpan.spanContext().traceState;\n\n // The span sample rate that was locally applied to the root span should also always be applied to the DSC, even if the DSC is frozen.\n // This is so that the downstream traces/services can use parentSampleRate in their `tracesSampler` to make consistent sampling decisions across the entire trace.\n const rootSpanSampleRate =\n traceState?.get('sentry.sample_rate') ??\n rootSpanAttributes[SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE] ??\n rootSpanAttributes[SEMANTIC_ATTRIBUTE_SENTRY_PREVIOUS_TRACE_SAMPLE_RATE];\n\n function applyLocalSampleRateToDsc(dsc: Partial): 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 // The scope yields no DSC while an external propagation context is active. We do have a Sentry\n // span here though, so we are head of *its* trace: fall through and derive the DSC from the span\n // rather than emitting an empty one.\n const scopeDsc = capturedScope && getDynamicSamplingContextFromScope(client, capturedScope);\n if (scopeDsc) {\n const dsc = { ...scopeDsc };\n if (isIgnoredRoot) {\n dsc.sampled = 'false';\n }\n return applyLocalSampleRateToDsc(dsc);\n }\n }\n\n // For OpenTelemetry, we freeze the DSC on the trace state\n const traceStateDsc = traceState?.get('sentry.dsc');\n\n // If the span has a DSC, we want it to take precedence\n const dscOnTraceState = traceStateDsc && baggageHeaderToDynamicSamplingContext(traceStateDsc);\n\n if (dscOnTraceState) {\n return applyLocalSampleRateToDsc(dscOnTraceState);\n }\n\n // Else, we generate it from the span\n const dsc = getDynamicSamplingContextFromClient(span.spanContext().traceId, client);\n\n // We don't want to have a transaction name in the DSC if the source is \"url\" because URLs might contain PII\n const source = rootSpanAttributes[SENTRY_SEGMENT_NAME_SOURCE];\n\n // after JSON conversion, txn.name becomes jsonSpan.description\n const name = rootSpanJson.description;\n if (source !== 'url' && name) {\n dsc.transaction = name;\n }\n\n // How can we even land here with hasSpansEnabled() returning false?\n // Otel creates a Non-recording span in Tracing Without Performance mode when handling incoming requests\n // So we end up with an active span that is not sampled (neither positively nor negatively)\n if (hasSpansEnabled()) {\n dsc.sampled = String(spanIsSampled(rootSpan));\n dsc.sample_rand =\n // In OTEL we store the sample rand on the trace state because we cannot access scopes for NonRecordingSpans\n // The Sentry OTEL SpanSampler takes care of writing the sample rand on the root span\n traceState?.get('sentry.sample_rand') ??\n // On all other platforms we can actually get the scopes from a root span (we use this as a fallback)\n getCapturedScopesOnSpan(rootSpan).scope?.getPropagationContext().sampleRand.toString();\n }\n\n applyLocalSampleRateToDsc(dsc);\n\n client.emit('createDsc', dsc, rootSpan);\n\n return dsc;\n}\n\n/**\n * Convert a Span to a baggage header.\n */\nexport function spanToBaggageHeader(span: Span): string | undefined {\n const dsc = getDynamicSamplingContextFromSpan(span);\n return dynamicSamplingContextToSentryBaggageHeader(dsc);\n}\n", "import { getGlobalScope } from '../currentScopes';\nimport type { Scope, ScopeData } from '../scope';\nimport { getDynamicSamplingContextFromSpan } from '../tracing/dynamicSamplingContext';\nimport type { Breadcrumb } from '../types/breadcrumb';\nimport type { Event } from '../types/event';\nimport type { Span } from '../types/span';\nimport { merge } from './merge';\nimport { getRootSpan, spanToStaticSpanJSON, spanToTraceContext } from './spanUtils';\n\n/**\n * Applies data from the scope to the event and runs all event processors on it.\n */\nexport function applyScopeDataToEvent(event: Event, data: ScopeData): void {\n const { fingerprint, breadcrumbs, sdkProcessingMetadata } = data;\n\n applyDataToEvent(event, data);\n applyFingerprintToEvent(event, fingerprint);\n applyBreadcrumbsToEvent(event, breadcrumbs);\n applySdkMetadataToEvent(event, sdkProcessingMetadata);\n}\n\n/** Merge data of two scopes together. */\nexport function mergeScopeData(data: ScopeData, mergeData: ScopeData): void {\n const {\n extra,\n tags,\n attributes,\n user,\n contexts,\n level,\n sdkProcessingMetadata,\n breadcrumbs,\n fingerprint,\n eventProcessors,\n attachments,\n propagationContext,\n transactionName,\n } = mergeData;\n\n mergeAndOverwriteScopeData(data, 'extra', extra);\n mergeAndOverwriteScopeData(data, 'tags', tags);\n mergeAndOverwriteScopeData(data, 'attributes', attributes);\n mergeAndOverwriteScopeData(data, 'user', user);\n mergeAndOverwriteScopeData(data, 'contexts', contexts);\n\n data.sdkProcessingMetadata = merge(data.sdkProcessingMetadata, sdkProcessingMetadata, 2);\n\n if (level) {\n data.level = level;\n }\n\n if (transactionName) {\n data.transactionName = transactionName;\n }\n\n if (breadcrumbs.length) {\n data.breadcrumbs = [...data.breadcrumbs, ...breadcrumbs];\n }\n\n if (fingerprint.length) {\n data.fingerprint = [...data.fingerprint, ...fingerprint];\n }\n\n if (eventProcessors.length) {\n data.eventProcessors = [...data.eventProcessors, ...eventProcessors];\n }\n\n if (attachments.length) {\n data.attachments = [...data.attachments, ...attachments];\n }\n\n data.propagationContext = { ...data.propagationContext, ...propagationContext };\n}\n\n/**\n * Merges certain scope data. Undefined values will overwrite any existing values.\n * Exported only for tests.\n */\nexport function mergeAndOverwriteScopeData<\n Prop extends 'extra' | 'tags' | 'attributes' | 'user' | 'contexts' | 'sdkProcessingMetadata',\n Data extends ScopeData,\n>(data: Data, prop: Prop, mergeVal: Data[Prop]): void {\n data[prop] = merge(data[prop], mergeVal, 1);\n}\n\n/** Exported only for tests */\nexport function mergeArray(\n event: Event,\n prop: Prop,\n mergeVal: ScopeData[Prop],\n): void {\n const prevVal = event[prop];\n // If we are not merging any new values,\n // we only need to proceed if there was an empty array before (as we want to replace it with undefined)\n if (!mergeVal.length && (!prevVal || prevVal.length)) {\n return;\n }\n\n const merged = [...(prevVal || []), ...mergeVal] as ScopeData[Prop];\n event[prop] = merged.length ? merged : undefined;\n}\n\n/**\n * Get the scope data for the current scope after merging with the\n * global scope and isolation scope.\n *\n * @param currentScope - The current scope.\n * @returns The scope data.\n */\nexport function getCombinedScopeData(isolationScope: Scope | undefined, currentScope: Scope | undefined): ScopeData {\n const scopeData = getGlobalScope().getScopeData();\n isolationScope && mergeScopeData(scopeData, isolationScope.getScopeData());\n currentScope && mergeScopeData(scopeData, currentScope.getScopeData());\n return scopeData;\n}\n\nfunction applyDataToEvent(event: Event, data: ScopeData): void {\n const { extra, tags, user, contexts, level, transactionName } = data;\n\n if (Object.keys(extra).length) {\n event.extra = { ...extra, ...event.extra };\n }\n\n if (Object.keys(tags).length) {\n event.tags = { ...tags, ...event.tags };\n }\n\n if (Object.keys(user).length) {\n event.user = { ...user, ...event.user };\n }\n\n if (Object.keys(contexts).length) {\n event.contexts = { ...contexts, ...event.contexts };\n }\n\n if (level) {\n event.level = level;\n }\n\n // transaction events get their `transaction` from the root span name\n if (transactionName && event.type !== 'transaction') {\n event.transaction = transactionName;\n }\n}\n\nfunction applyBreadcrumbsToEvent(event: Event, breadcrumbs: Breadcrumb[]): void {\n const mergedBreadcrumbs = [...(event.breadcrumbs || []), ...breadcrumbs];\n event.breadcrumbs = mergedBreadcrumbs.length ? mergedBreadcrumbs : undefined;\n}\n\nfunction applySdkMetadataToEvent(event: Event, sdkProcessingMetadata: ScopeData['sdkProcessingMetadata']): void {\n event.sdkProcessingMetadata = {\n ...event.sdkProcessingMetadata,\n ...sdkProcessingMetadata,\n };\n}\n\n/** Apply a given span to the event. */\nexport function applySpanToEvent(event: Event, span: Span): void {\n event.contexts = {\n trace: spanToTraceContext(span),\n ...event.contexts,\n };\n\n event.sdkProcessingMetadata = {\n dynamicSamplingContext: getDynamicSamplingContextFromSpan(span),\n ...event.sdkProcessingMetadata,\n };\n\n const rootSpan = getRootSpan(span);\n const transactionName = spanToStaticSpanJSON(rootSpan).description;\n if (transactionName && !event.transaction && event.type === 'transaction') {\n event.transaction = transactionName;\n }\n}\n\n/**\n * Applies fingerprint from the scope to the event if there's one,\n * uses message if there's one instead or get rid of empty fingerprint\n */\nfunction applyFingerprintToEvent(event: Event, fingerprint: ScopeData['fingerprint'] | undefined): void {\n // Make sure it's an array first and we actually have something in place\n event.fingerprint = event.fingerprint\n ? Array.isArray(event.fingerprint)\n ? event.fingerprint\n : [event.fingerprint]\n : [];\n\n // If we have something on the scope, then merge it with event\n if (fingerprint) {\n event.fingerprint = event.fingerprint.concat(fingerprint);\n }\n\n // If we have no data at all, remove empty array default\n if (!event.fingerprint.length) {\n delete event.fingerprint;\n }\n}\n", "import { DEBUG_BUILD } from '../debug-build';\nimport { debug } from './debug-logger';\nimport { isThenable } from './is';\n\n/**\n * Lets a `safeCallback` fallback signal \"the callback failed\" as opposed to \"the callback returned `null`\",\n * so the call site can report the drop as `callback_error`. Always return it, never throw it: a thrown\n * sentinel would have to be caught at every boundary, and some of those (e.g. `prepareEvent`) are public.\n */\nexport const CALLBACK_ERROR = Symbol.for('SentryCallbackError');\n\n/**\n * Invokes a user-provided callback (e.g. `beforeSend`, `tracesSampler`, an integration hook) so that\n * neither a synchronous throw nor a rejected promise escapes into the caller. On failure the error is\n * logged and `fallback(error)` supplies the result instead.\n *\n * Not for `startSpan` bodies: those must re-throw and are handled by `handleCallbackErrors`.\n *\n * @param message - Logged via `debug.error` together with the error. Pass it as `DEBUG_BUILD ? '...' : ''`\n * so the string is tree-shaken from non-debug bundles.\n * @param fn - Invokes the callback.\n * @param fallback - Produces the result to use when the callback throws or rejects.\n */\nexport function safeCallback(message: string, fn: () => T, fallback: (error: unknown) => T): T {\n let result: T;\n try {\n result = fn();\n } catch (error) {\n return recover(message, error, fallback);\n }\n\n if (isThenable(result)) {\n return result.then(undefined, (error: unknown) => recover(message, error, fallback)) as T;\n }\n\n return result;\n}\n\nfunction recover(message: string, error: unknown, fallback: (error: unknown) => T): T {\n DEBUG_BUILD && debug.error(message, error);\n return fallback(error);\n}\n", "import { DEBUG_BUILD } from '../../debug-build';\nimport type { BeforeSendStaticSpanCallback, BeforeSendStreamedSpanCallback } from '../../types/options';\nimport type { SpanJSON, StreamedSpanJSON } from '../../types/span';\nimport { addNonEnumerableProperty } from '../../utils/object';\nimport { safeCallback } from '../../utils/safeCallback';\n\n/**\n * A wrapper to use the static, transaction-based span format in your `beforeSendSpan` callback.\n *\n * When using `traceLifecycle: 'static'`, wrap your callback with this function\n * to receive and return a static span instead of a {@link StreamedSpanJSON}.\n *\n * @example\n *\n * Sentry.init({\n * traceLifecycle: 'static',\n * beforeSendSpan: withStaticSpan((span) => {\n * // span is of type SpanJSON\n * return span;\n * }),\n * });\n *\n * @param callback - A {@link BeforeSendStaticSpanCallback} that receives and returns a static span.\n * @returns A callback that is compatible with the `beforeSendSpan` option when using `traceLifecycle: 'static'`.\n */\nexport function withStaticSpan(callback: BeforeSendStaticSpanCallback): BeforeSendStreamedSpanCallback {\n addNonEnumerableProperty(callback, '_static', true);\n // `beforeSendSpan` is typed as a single streamed callback so that an unwrapped callback's parameter\n // is contextually typed as `StreamedSpanJSON`. The `_static` marker tells the SDK to hand this\n // callback a `SpanJSON` instead, so the declared parameter type is deliberately not what it receives.\n return callback as unknown as BeforeSendStreamedSpanCallback;\n}\n\n/**\n * A wrapper to explicitly use the streamed span format in your `beforeSendSpan` callback.\n *\n * @deprecated `beforeSendSpan` callbacks receive {@link StreamedSpanJSON} by default.\n * This function returns the callback unchanged and will be removed in SDK version 12.\n *\n * @param callback - The callback function that receives and returns a {@link StreamedSpanJSON}.\n * @returns The provided callback.\n */\nexport function withStreamedSpan(\n callback: (span: StreamedSpanJSON) => StreamedSpanJSON,\n): BeforeSendStreamedSpanCallback {\n return callback;\n}\n\n/**\n * Typesafe check to identify if a `beforeSendSpan` callback expects the static span JSON format.\n *\n * @param callback - The `beforeSendSpan` callback to check.\n * @returns `true` if the callback was wrapped with {@link withStaticSpan}.\n */\nexport function isStaticBeforeSendSpanCallback(callback: unknown): callback is BeforeSendStaticSpanCallback {\n return !!callback && typeof callback === 'function' && '_static' in callback && !!callback._static;\n}\n\n/**\n * Apply a user-provided beforeSendSpan callback to a span JSON.\n */\nexport function applyBeforeSendSpanCallback(\n span: T,\n beforeSendSpan: (span: T) => T,\n): T {\n // Spans are captured synchronously when they end, so a throwing callback would otherwise\n // propagate into whatever user code ended the span.\n const modifiedSpan = safeCallback(\n DEBUG_BUILD ? 'The `beforeSendSpan` callback threw an error, sending the span unmodified:' : '',\n () => beforeSendSpan(span),\n () => span,\n );\n return modifiedSpan || span;\n}\n", "import type { RawAttributes } from '../../attributes';\nimport type { SerializedStreamedSpan, SpanJSON, StreamedSpanJSON } from '../../types/span';\nimport { streamedSpanJsonToSerializedSpan } from '../../utils/spanUtils';\n\n/**\n * Converts a v1 SpanJSON (from a legacy transaction) to a serialized v2 StreamedSpan.\n */\nexport function spanJsonToSerializedStreamedSpan(span: SpanJSON): SerializedStreamedSpan {\n const streamedSpan: StreamedSpanJSON = {\n trace_id: span.trace_id,\n span_id: span.span_id,\n parent_span_id: span.parent_span_id,\n name: span.description || '',\n start_timestamp: span.start_timestamp,\n end_timestamp: span.timestamp,\n status: !span.status || span.status === 'ok' || span.status === 'cancelled' ? 'ok' : 'error',\n is_segment: false,\n attributes: { ...(span.data as RawAttributes>) },\n links: span.links,\n };\n\n return streamedSpanJsonToSerializedSpan(streamedSpan);\n}\n", "import type { RawAttributes } from '../../attributes';\nimport type { Client } from '../../client';\nimport type { ScopeData } from '../../scope';\nimport { SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME } from '../../semanticAttributes';\nimport type { SerializedStreamedSpan, Span, SpanAttributeValue, SpanJSON, StreamedSpanJSON } from '../../types/span';\nimport { getCombinedScopeData } from '../../utils/scopeData';\nimport {\n INTERNAL_getSegmentSpan,\n spanToStaticSpanJSON,\n spanToJSON,\n streamedSpanJsonToSerializedSpan,\n} from '../../utils/spanUtils';\nimport { freezeDscOnSpan, getDynamicSamplingContextFromSpan } from '../dynamicSamplingContext';\nimport { getCapturedScopesOnSpan } from '../utils';\nimport { applyBeforeSendSpanCallback, isStaticBeforeSendSpanCallback } from './beforeSendSpan';\nimport { spanJsonToSerializedStreamedSpan } from './spanJsonToStreamedSpan';\nimport { scopeContextsToSpanAttributes } from './scopeContextAttributes';\nimport { DEFAULT_ENVIRONMENT } from '../../constants';\nimport {\n SENTRY_SDK_NAME,\n SENTRY_SDK_VERSION,\n SENTRY_SEGMENT_ID,\n SENTRY_SEGMENT_NAME,\n SENTRY_TRACE_LIFECYCLE,\n USER_EMAIL,\n USER_ID,\n USER_IP_ADDRESS,\n USER_NAME,\n SENTRY_ENVIRONMENT,\n SENTRY_RELEASE,\n SENTRY_SDK_INTEGRATIONS,\n} from '@sentry/conventions/attributes';\n\nexport type SerializedStreamedSpanWithSegmentSpan = SerializedStreamedSpan & {\n _segmentSpan: Span;\n _segmentNameAtCapture?: string;\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 and the final segment name for the span envelope.\n */\nexport function captureSpan(span: Span, client: Client): SerializedStreamedSpanWithSegmentSpan {\n // Convert to JSON FIRST - we cannot write to an already-ended span\n const spanJSON = spanToJSON(span);\n if (spanJSON.attributes) {\n // oxlint-disable-next-line typescript/no-dynamic-delete\n delete spanJSON.attributes[SEMANTIC_ATTRIBUTE_SENTRY_CUSTOM_SPAN_NAME];\n }\n\n const segmentSpan = INTERNAL_getSegmentSpan(span);\n const serializedSegmentSpan = spanToJSON(segmentSpan);\n\n const { isolationScope: spanIsolationScope, scope: spanScope } = getCapturedScopesOnSpan(span);\n\n const finalScopeData = getCombinedScopeData(spanIsolationScope, spanScope);\n\n applyCommonSpanAttributes(spanJSON, serializedSegmentSpan, client, finalScopeData);\n\n // Preprocess the span JSON before any other hooks run, so that `processSpan`/`processSegmentSpan`\n // subscribers (incl. integrations) and `beforeSendSpan` see fully inferred span data.\n client.emit('preprocessSpan', spanJSON);\n\n if (spanJSON.is_segment) {\n // The span buffer builds the envelope's `trace` header from the segment span when a bucket is flushed.\n // This can happen after the captured scope moved on to another trace (e.g. a browser navigation).\n // Freezing the DSC at segment end keeps the values of this segment's trace.\n freezeDscOnSpan(segmentSpan, getDynamicSamplingContextFromSpan(segmentSpan));\n applyScopeToSegmentSpan(spanJSON, finalScopeData);\n applySdkMetadataToSegmentSpan(spanJSON, client);\n // Allow hook subscribers to mutate the segment span JSON\n // This also invokes the `processSegmentSpan` hook of all integrations\n client.emit('processSegmentSpan', spanJSON);\n }\n\n // This allows hook subscribers to mutate the span JSON\n // This also invokes the `processSpan` hook of all integrations\n client.emit('processSpan', spanJSON);\n\n const { beforeSendSpan, traceLifecycle } = client.getOptions();\n const processedSpan =\n // check for traceLifecycle here because in static lifecycle,\n // captureSpan is called for INP spans. If an unmigrated beforeSendSpan\n // callback is run on these spans, it will throw an error.\n traceLifecycle !== 'static' && beforeSendSpan && !isStaticBeforeSendSpanCallback(beforeSendSpan)\n ? applyBeforeSendSpanCallback(spanJSON, beforeSendSpan)\n : spanJSON;\n\n return {\n ...streamedSpanJsonToSerializedSpan(processedSpan),\n _segmentSpan: segmentSpan,\n _segmentNameAtCapture: serializedSegmentSpan.name,\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 [SENTRY_SDK_INTEGRATIONS]: integrationNames,\n });\n}\n\nfunction commonSpanAttributes(\n serializedSegmentSpan: StreamedSpanJSON,\n client: Client,\n scopeData: ScopeData,\n // TODO(standalone): remove this param (always include scope attributes) once the static (transaction)\n // trace lifecycle is dropped and standalone spans no longer need to look transaction-shaped.\n includeScopeAttributes = true,\n): RawAttributes> {\n const sdk = client.getSdkMetadata();\n const { release, environment } = client.getOptions();\n\n return {\n [SENTRY_TRACE_LIFECYCLE]: 'stream',\n [SENTRY_SEGMENT_NAME]: serializedSegmentSpan.name,\n [SENTRY_SEGMENT_ID]: serializedSegmentSpan.span_id,\n [SENTRY_SDK_NAME]: sdk?.sdk?.name,\n [SENTRY_SDK_VERSION]: sdk?.sdk?.version,\n [SENTRY_RELEASE]: release,\n [SENTRY_ENVIRONMENT]: environment || DEFAULT_ENVIRONMENT,\n [USER_ID]: scopeData.user?.id,\n [USER_EMAIL]: scopeData.user?.email,\n [USER_IP_ADDRESS]: scopeData.user?.ip_address,\n [USER_NAME]: scopeData.user?.username,\n ...(includeScopeAttributes ? scopeData.attributes : undefined),\n };\n}\n\nfunction applyCommonSpanAttributes(\n spanJSON: StreamedSpanJSON,\n serializedSegmentSpan: StreamedSpanJSON,\n client: Client,\n scopeData: ScopeData,\n): void {\n // avoid overwriting any previously set attributes (from users or potentially our SDK instrumentation)\n safeSetSpanJSONAttributes(spanJSON, commonSpanAttributes(serializedSegmentSpan, client, scopeData));\n}\n\n/**\n * Captures a standalone span whose `beforeSendSpan` callback expects the v1 {@link SpanJSON} format\n * (i.e. the user opted out of span streaming). The span is serialized to v1, the common attributes are\n * applied, the callback runs in its native format, and the result is converted forward to a serialized\n * v2 span. This mirrors how gen_ai spans reach the v2 span path from a static transaction (a plain\n * conversion, no `processSpan` hooks), so there is never a reverse v2 -> v1 conversion.\n *\n * TODO(standalone): remove once the static (transaction) trace lifecycle is dropped.\n */\nexport function captureStandaloneSpanWithStaticCallback(\n span: Span,\n client: Client,\n beforeSendSpan: (span: SpanJSON) => SpanJSON,\n): SerializedStreamedSpan {\n const spanJSON = spanToStaticSpanJSON(span);\n\n const segmentSpan = INTERNAL_getSegmentSpan(span);\n const serializedSegmentSpan = spanToJSON(segmentSpan);\n\n const { isolationScope: spanIsolationScope, scope: spanScope } = getCapturedScopesOnSpan(span);\n const finalScopeData = getCombinedScopeData(spanIsolationScope, spanScope);\n\n // Skip scope attributes: their `{ unit, value }` shape is unexpected for a static callback, and like\n // transactions, standalone spans don't get them.\n const commonAttributes = commonSpanAttributes(serializedSegmentSpan, client, finalScopeData, false);\n Object.entries(commonAttributes).forEach(([key, value]) => {\n if (value != null && !(key in spanJSON.data)) {\n spanJSON.data[key] = value as SpanAttributeValue;\n }\n });\n\n const processedSpan = applyBeforeSendSpanCallback(spanJSON, beforeSendSpan);\n\n return spanJsonToSerializedStreamedSpan(processedSpan);\n}\n", "import type { Client } from '../../client';\n\n/**\n * Determines if span streaming is enabled for the given client\n */\nexport function hasSpanStreamingEnabled(client: Client): boolean {\n return client.getOptions().traceLifecycle === 'stream';\n}\n", "/**\n * 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 { getSentryCarrier } from '../carrier';\nimport type { Attachment } from '../types/attachment';\nimport type { DataCategory } from '../types/datacategory';\nimport type { DsnComponents } from '../types/dsn';\nimport type {\n AttachmentItem,\n BaseEnvelopeHeaders,\n BaseEnvelopeItemHeaders,\n Envelope,\n EnvelopeItemType,\n EventEnvelopeHeaders,\n} from '../types/envelope';\nimport type { Event, EventType } from '../types/event';\nimport type { SdkInfo } from '../types/sdkinfo';\nimport type { SdkMetadata } from '../types/sdkmetadata';\nimport { dsnToString } from './dsn';\nimport { normalize } from './normalize';\nimport { safeDateNow } from './randomSafeContext';\nimport { GLOBAL_OBJ } from './worldwide';\n\n/**\n * Creates an envelope.\n * Make sure to always explicitly provide the generic to this function\n * so that the envelope types resolve correctly.\n */\nexport function createEnvelope(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 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, trace_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 metric: 'trace_metric',\n};\n\nfunction _isOverriddenType(type: EnvelopeItemType): type is OverriddenItemType {\n return type in DATA_CATEGORY_OVERRIDES;\n}\n\n/**\n * Maps the type of an envelope item to a data category.\n */\nexport function envelopeItemTypeToDataCategory(type: EnvelopeItemType): DataCategory {\n return _isOverriddenType(type) ? DATA_CATEGORY_OVERRIDES[type] : type;\n}\n\n/** Extracts the minimal SDK info from the metadata or an events */\nexport function getSdkMetadataForEnvelopeHeader(metadataOrEvent?: SdkMetadata | Event): SdkInfo | undefined {\n if (!metadataOrEvent?.sdk) {\n return;\n }\n const { name, version } = metadataOrEvent.sdk;\n return { name, version };\n}\n\n/**\n * Creates event envelope headers, based on event, sdk info and tunnel\n * Note: This function was extracted from the core package to make it available in Replay\n */\nexport function createEventEnvelopeHeaders(\n event: Event,\n sdkInfo: SdkInfo | undefined,\n tunnel: string | undefined,\n dsn?: DsnComponents,\n): EventEnvelopeHeaders {\n const dynamicSamplingContext = event.sdkProcessingMetadata?.dynamicSamplingContext;\n return {\n event_id: event.event_id as string,\n sent_at: new Date(safeDateNow()).toISOString(),\n ...(sdkInfo && { sdk: sdkInfo }),\n ...(!!tunnel && dsn && { dsn: dsnToString(dsn) }),\n ...(dynamicSamplingContext && {\n trace: dynamicSamplingContext,\n }),\n };\n}\n\n/**\n * Maps an event type to the data category used for client reports.\n */\nexport function getDataCategoryByType(type: EventType): DataCategory {\n return type === 'replay_event' ? 'replay' : type || 'error';\n}\n", "/*\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 { Client } from '../../client';\nimport type { DynamicSamplingContext, SpanContainerItem, StreamedSpanEnvelope } from '../../types/envelope';\nimport type { SerializedStreamedSpan } from '../../types/span';\nimport { dsnToString } from '../../utils/dsn';\nimport { createEnvelope, getSdkMetadataForEnvelopeHeader } from '../../utils/envelope';\nimport { isBrowser } from '../../utils/isBrowser';\nimport { safeDateNow } from '../../utils/randomSafeContext';\n\n/**\n * Creates a span v2 span streaming envelope\n */\nexport function createStreamedSpanEnvelope(\n serializedSpans: Array,\n dsc: Partial,\n client: Client,\n): StreamedSpanEnvelope {\n const options = client.getOptions();\n const dsn = client.getDsn();\n const tunnel = options.tunnel;\n const sdk = getSdkMetadataForEnvelopeHeader(options._metadata);\n\n const headers: StreamedSpanEnvelope[0] = {\n sent_at: new Date(safeDateNow()).toISOString(),\n ...(dscHasRequiredProps(dsc) && { trace: dsc }),\n ...(sdk && { sdk }),\n ...(!!tunnel && dsn && { dsn: dsnToString(dsn) }),\n };\n\n return createEnvelope(headers, [createSpanContainerItem(serializedSpans, client)]);\n}\n\n/**\n * Builds a span v2 container envelope item from already-serialized streamed spans.\n */\nexport function createSpanContainerItem(\n serializedSpans: Array,\n client: Client,\n): SpanContainerItem {\n const inferSetting = client.getDataCollectionOptions().userInfo ? 'auto' : 'never';\n\n return [\n { type: 'span', item_count: serializedSpans.length, content_type: 'application/vnd.sentry.items.span.v2+json' },\n {\n version: 2,\n ingest_settings: isBrowser() ? { infer_ip: inferSetting, infer_user_agent: inferSetting } : undefined,\n items: serializedSpans,\n },\n ];\n}\n\nfunction dscHasRequiredProps(dsc: Partial): dsc is DynamicSamplingContext {\n return !!dsc.trace_id && !!dsc.public_key;\n}\n", "import { getTraceContextFromScope } from '../currentScopes';\nimport type { Scope } from '../scope';\nimport type { TraceContext } from '../types/context';\nimport type { Event, EventHint } from '../types/event';\nimport type { Span } from '../types/span';\nimport { isPrimitive } from './is';\nimport { spanIsSampled, spanToTraceContext } from './spanUtils';\n\n/**\n * The trace context of the span an error escaped, keyed by the error itself.\n *\n * We store the trace context rather than the span because that is the shape we apply to the event\n * later, and it snapshots the span as it failed instead of reading it back once it has ended.\n */\nconst escapedSpanTraceContexts = new WeakMap();\n\n/**\n * A `WeakMap` can only be keyed by an object, so an error thrown as a primitive (`throw 'boom'`)\n * has nothing we can hang the span on and is left unattributed.\n */\nfunction toWeakMapKey(error: unknown): object | undefined {\n return isPrimitive(error) ? undefined : error;\n}\n\n/**\n * Remember which span an error escaped, so a later `captureException` can attribute the error to\n * the span that actually failed instead of whichever span happens to be active at capture time.\n *\n * The first span to see the error wins: as an error unwinds through nested spans, the innermost\n * one is the one that failed. Unsampled spans are skipped because they are never sent, so their\n * span id would point at a span that does not exist. Sampling rather than `isRecording()` is what\n * matters here: a span ended before the error escaped it, which is the norm for `startSpanManual`,\n * has stopped recording but is still sent.\n */\nexport function recordEscapedErrorSpan(error: unknown, span: Span): void {\n const key = toWeakMapKey(error);\n\n if (!key || !spanIsSampled(span) || escapedSpanTraceContexts.has(key)) {\n return;\n }\n\n escapedSpanTraceContexts.set(key, spanToTraceContext(span));\n}\n\n/**\n * Attribute an error event to the span the error escaped, if we recorded one.\n *\n * This only applies within the error's own trace. The stored span id is meaningless in another\n * trace, and the event's dynamic sampling context (which the envelope header is built from) is\n * derived from the root span of the trace the event is already on. Rewriting the trace id here\n * would leave the envelope header and body naming different traces.\n */\nexport function applyEscapedErrorSpanToEvent(event: Event, hint: EventHint, scope: Scope | undefined): void {\n const key = toWeakMapKey(hint.originalException);\n const traceContext = key && escapedSpanTraceContexts.get(key);\n\n if (!traceContext) {\n return;\n }\n\n // An error captured with no active span has no trace context yet: the scope's is merged in\n // further downstream. Resolve the trace the event will end up on the same way that merge does,\n // so the check below still knows which trace we are on.\n const eventTraceContext = event.contexts?.trace;\n const eventTraceId = eventTraceContext?.trace_id ?? (scope && getTraceContextFromScope(scope).trace_id);\n\n if (eventTraceId !== traceContext.trace_id) {\n return;\n }\n\n event.contexts = {\n ...event.contexts,\n trace: {\n ...eventTraceContext,\n ...traceContext,\n },\n };\n}\n", "import type { LegacyCSPReport } from './types/csp';\nimport type { DsnComponents } from './types/dsn';\nimport type {\n EventEnvelope,\n EventItem,\n RawSecurityEnvelope,\n RawSecurityItem,\n SessionEnvelope,\n SessionItem,\n} from './types/envelope';\nimport type { Event } from './types/event';\nimport type { SdkInfo } from './types/sdkinfo';\nimport type { SdkMetadata } from './types/sdkmetadata';\nimport type { Session, SessionAggregates } from './types/session';\nimport { dsnToString } from './utils/dsn';\nimport { createEnvelope, createEventEnvelopeHeaders, getSdkMetadataForEnvelopeHeader } from './utils/envelope';\nimport { uuid4 } from './utils/misc';\nimport { safeDateNow } from './utils/randomSafeContext';\n\n/**\n * Apply SdkInfo (name, version, packages, integrations) to the corresponding event key.\n * Merge with existing data if any.\n *\n * @internal, exported only for testing\n **/\nexport function _enhanceEventWithSdkInfo(event: Event, newSdkInfo?: SdkInfo): Event {\n if (!newSdkInfo) {\n return event;\n }\n\n const eventSdkInfo = event.sdk || {};\n\n event.sdk = {\n ...eventSdkInfo,\n name: eventSdkInfo.name || newSdkInfo.name,\n version: eventSdkInfo.version || newSdkInfo.version,\n integrations: [...(event.sdk?.integrations || []), ...(newSdkInfo.integrations || [])],\n packages: [...(event.sdk?.packages || []), ...(newSdkInfo.packages || [])],\n settings:\n event.sdk?.settings || newSdkInfo.settings\n ? {\n ...event.sdk?.settings,\n ...newSdkInfo.settings,\n }\n : undefined,\n };\n\n return event;\n}\n\n/** Creates an envelope from a Session */\nexport function createSessionEnvelope(\n session: Session | SessionAggregates,\n dsn?: DsnComponents,\n metadata?: SdkMetadata,\n tunnel?: string,\n): SessionEnvelope {\n const sdkInfo = getSdkMetadataForEnvelopeHeader(metadata);\n const envelopeHeaders = {\n sent_at: new Date(safeDateNow()).toISOString(),\n ...(sdkInfo && { sdk: sdkInfo }),\n ...(!!tunnel && dsn && { dsn: dsnToString(dsn) }),\n };\n\n const envelopeItem: SessionItem =\n 'aggregates' in session ? [{ type: 'sessions' }, session] : [{ type: 'session' }, session.toJSON()];\n\n return createEnvelope(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 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", "export const FILTERED_VALUE = '[Filtered]';\n\nexport const SENSITIVE_KEY_SNIPPETS = [\n 'auth',\n 'token',\n 'secret',\n 'session', // for the user_session cookie\n 'password',\n 'passwd',\n 'pwd',\n 'key',\n 'jwt',\n 'bearer',\n 'sso',\n 'saml',\n 'csrf',\n 'xsrf',\n 'credentials',\n 'sid',\n 'identity',\n // Always treat cookie headers as sensitive in case individual key-value cookie pairs cannot properly be extracted\n 'set-cookie',\n 'cookie',\n];\n\n/**\n * Extra substrings matched only against individual Cookie / Set-Cookie **names** (not header names),\n * so we can cover common session secrets that do not match {@link SENSITIVE_KEY_SNIPPETS}\n * (e.g. `connect.sid` does not contain `session`) without false positives on arbitrary HTTP headers.\n *\n * Cookie names are checked with the same `includes()` list as headers plus these entries; omit redundant\n * cookie-only snippets that are already implied by a header match (e.g. `oauth` → `auth`, `id_token` → `token`,\n * `next-auth` → `auth`).\n */\nexport const SENSITIVE_COOKIE_NAME_SNIPPETS = [\n // Express / Connect default session cookie\n '.sid',\n // Opaque session ids (PHPSESSID, ASPSESSIONID*, BIGipServer*, *sessid*, …)\n 'sessid',\n // Laravel etc. \"remember me\" tokens\n 'remember',\n // OIDC / OAuth auxiliary (`oauth*` covered by header snippet `auth`)\n 'oidc',\n 'pkce',\n 'nonce',\n // RFC 6265bis high-security cookie name prefixes\n '__secure-',\n '__host-',\n // Load balancer / CDN sticky-session cookies (opaque routing tokens)\n 'awsalb',\n 'awselb',\n 'akamai',\n // BaaS / IdP session cookies (names often omit \"session\")\n '__stripe',\n 'cognito',\n 'firebase',\n 'supabase',\n 'sb-',\n // Step-up / MFA cookies\n 'mfa',\n '2fa',\n];\n", "import type { CollectBehavior } from '../../types/datacollection';\nimport { FILTERED_VALUE as FILTERED, SENSITIVE_KEY_SNIPPETS } from './filtering-snippets';\n\nfunction isSensitiveKey(lower: string, denySnippets: string[]): boolean {\n return denySnippets.some(snippet => lower.includes(snippet));\n}\n\nexport function shouldFilterDataKey(key: string, behavior: CollectBehavior, additionalDenyTerms?: string[]): boolean {\n if (behavior === false) {\n return true;\n }\n\n const lowerKey = key.toLowerCase();\n const denySnippets =\n additionalDenyTerms != null ? [...SENSITIVE_KEY_SNIPPETS, ...additionalDenyTerms] : SENSITIVE_KEY_SNIPPETS;\n\n if (isSensitiveKey(lowerKey, denySnippets)) {\n return true;\n }\n\n if (behavior === true) {\n return false;\n }\n\n const terms = 'deny' in behavior ? behavior.deny : behavior.allow;\n const matchesConfiguredTerm = terms.some(term => lowerKey.includes(term.toLowerCase()));\n return 'deny' in behavior ? matchesConfiguredTerm : !matchesConfiguredTerm;\n}\n\n/**\n * Filters a key-value record according to a `CollectBehavior`.\n *\n * Key names are always preserved. Values are either kept, replaced with\n * `[Filtered]`, or the entire record is dropped (off mode).\n *\n * @param additionalDenyTerms - Additional sensitive snippets to check beyond the built-in denylist.\n */\nexport function filterKeyValueData(\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", "/* 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: ¯\\_(ツ)_/¯\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);\n });\n });\n }\n\n /** Excute the resolve/reject handlers. */\n private _executeHandlers(): void {\n if (this._state === STATE_PENDING) {\n return;\n }\n\n const cachedHandlers = this._handlers.slice();\n this._handlers = [];\n\n cachedHandlers.forEach(handler => {\n if (handler[0]) {\n return;\n }\n\n if (this._state === STATE_RESOLVED) {\n handler[1](this._value);\n }\n\n if (this._state === STATE_REJECTED) {\n handler[2](this._value);\n }\n\n handler[0] = true;\n });\n }\n\n /** Run the executor for the SyncPromise. */\n private _runExecutor(executor: Executor): 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 { safeCallback } from './utils/safeCallback';\nimport { rejectedSyncPromise, resolvedSyncPromise } from './utils/syncpromise';\n\ntype EventProcessorDropReason = 'event_processor' | 'callback_error';\n\n/**\n * Process an array of event processors, returning the processed event (or `null` if the event was dropped).\n */\nexport function notifyEventProcessors(\n processors: EventProcessor[],\n event: Event | null,\n hint: EventHint,\n index: number = 0,\n onDrop?: (reason: EventProcessorDropReason) => void,\n): PromiseLike {\n try {\n const result = _notifyEventProcessors(event, hint, processors, index, onDrop);\n return isThenable(result) ? result : resolvedSyncPromise(result);\n } catch (error) {\n return rejectedSyncPromise(error);\n }\n}\n\nfunction _notifyEventProcessors(\n event: Event | null,\n hint: EventHint,\n processors: EventProcessor[],\n index: number,\n onDrop?: (reason: EventProcessorDropReason) => void,\n): Event | null | PromiseLike {\n const processor = processors[index];\n\n if (!event || !processor) {\n return event;\n }\n\n const processorName = `Event processor \"${processor.id || '?'}\"`;\n let callbackError = false;\n\n const result = safeCallback(\n DEBUG_BUILD ? `${processorName} threw an error, dropping event:` : '',\n () => processor({ ...event }, hint),\n () => {\n callbackError = true;\n return null;\n },\n );\n\n DEBUG_BUILD && result === null && debug.log(`${processorName} dropped event`);\n\n if (isThenable(result)) {\n return result.then(final => {\n if (!final) {\n onDrop?.(callbackError ? 'callback_error' : 'event_processor');\n return null;\n }\n return _notifyEventProcessors(final, hint, processors, index + 1, onDrop);\n });\n }\n\n if (!result) {\n onDrop?.(callbackError ? 'callback_error' : 'event_processor');\n return null;\n }\n return _notifyEventProcessors(result, hint, processors, index + 1, onDrop);\n}\n", "import type { DebugImage } from '../types/debugMeta';\nimport type { StackParser } from '../types/stacktrace';\nimport { normalizeStackTracePath } from './stacktrace';\nimport { GLOBAL_OBJ } from './worldwide';\n\ntype StackString = string;\ntype CachedResult = [string, string];\n\nlet parsedStackResults: Record | 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 { Event, EventHint } from '../types/event';\n\nexport function isInternalException(hint: EventHint): boolean {\n return (hint.data as { __sentry__: boolean })?.__sentry__ === true;\n}\n\n/**\n * Get a list of possible event messages from a Sentry event.\n */\nexport function getPossibleEventMessages(event: Event): string[] {\n const possibleMessages: string[] = [];\n\n if (event.message) {\n possibleMessages.push(event.message);\n }\n\n try {\n // @ts-expect-error Try catching to save bundle size\n const lastException = event.exception.values[event.exception.values.length - 1];\n if (lastException?.value) {\n possibleMessages.push(lastException.value);\n if (lastException.type) {\n possibleMessages.push(`${lastException.type}: ${lastException.value}`);\n }\n }\n } catch {\n // ignore errors here\n }\n\n return possibleMessages;\n}\n", "import type { Client } from '../client';\nimport { DEFAULT_ENVIRONMENT } from '../constants';\nimport { notifyEventProcessors } from '../eventProcessors';\nimport type { CaptureContext, ScopeContext } from '../scope';\nimport { Scope } from '../scope';\nimport type { Event, EventHint } from '../types/event';\nimport type { ClientOptions } from '../types/options';\nimport type { StackParser } from '../types/stacktrace';\nimport { getFilenameToDebugIdMap } from './debug-ids';\nimport { getDataCategoryByType } from './envelope';\nimport { applyEscapedErrorSpanToEvent } from './errorSpanAttribution';\nimport { isInternalException } from './eventUtils';\nimport { addExceptionMechanismToCapturedException, uuid4 } from './misc';\nimport { normalize } from './normalize';\nimport { applyScopeDataToEvent, applySpanToEvent, getCombinedScopeData } from './scopeData';\nimport { getActiveSpan } from './spanUtils';\nimport { truncate } from './string';\nimport { resolvedSyncPromise } from './syncpromise';\nimport { dateTimestampInSeconds } from './time';\n\n/**\n * This type makes sure that we get either a CaptureContext, OR an EventHint.\n * It does not allow mixing them, which could lead to unexpected outcomes, e.g. this is disallowed:\n * { user: { id: '123' }, mechanism: { handled: false } }\n */\nexport type ExclusiveEventHintOrCaptureContext =\n | (CaptureContext & Partial<{ [key in keyof EventHint]: never }>)\n | (EventHint & Partial<{ [key in keyof ScopeContext]: never }>);\n\n/**\n * Adds common information to events.\n *\n * The information includes release and environment from `options`,\n * breadcrumbs and context (extra, tags and user) from the scope.\n *\n * Information that is already present in the event is never overwritten. For\n * nested objects, such as the context, keys are merged.\n *\n * @param event The original event.\n * @param hint May contain additional information about the original exception.\n * @param scope A scope containing event metadata.\n * @returns A new event with more information, or `null` if an event processor dropped it (or threw). In that case the\n * drop has already been recorded on the client, so callers must not record it again.\n * @hidden\n */\nexport function prepareEvent(\n options: ClientOptions,\n event: Event,\n hint: EventHint,\n scope?: Scope,\n client?: Client,\n isolationScope?: Scope,\n): PromiseLike {\n const { normalizeDepth = 3, normalizeMaxBreadth = 1_000 } = options;\n const prepared: Event = {\n ...event,\n event_id: event.event_id || hint.event_id || uuid4(),\n timestamp: event.timestamp || dateTimestampInSeconds(),\n };\n const integrations = hint.integrations || options.integrations.map(i => i.name);\n\n applyClientOptions(prepared, options);\n applyIntegrationsMetadata(prepared, integrations);\n\n if (client) {\n client.emit('applyFrameMetadata', event);\n }\n\n // Only put debug IDs onto frames for error events.\n if (event.type === undefined) {\n applyDebugIds(prepared, options.stackParser);\n }\n\n // If we have scope given to us, use it as the base for further modifications.\n // This allows us to prevent unnecessary copying of data if `captureContext` is not provided.\n const finalScope = getFinalScope(scope, hint.captureContext);\n\n if (hint.mechanism) {\n addExceptionMechanismToCapturedException(prepared, hint.mechanism);\n }\n\n const clientEventProcessors = client ? client.getEventProcessors() : [];\n\n // This should be the last thing called, since we want that\n // {@link Scope.addEventProcessor} gets the finished prepared event.\n // Merge scope data together\n const data = getCombinedScopeData(isolationScope, finalScope);\n\n const attachments = [...(hint.attachments || []), ...data.attachments];\n if (attachments.length) {\n hint.attachments = attachments;\n }\n\n applyScopeDataToEvent(prepared, data);\n const span = getActiveSpan(finalScope);\n if (span) {\n applySpanToEvent(prepared, span);\n }\n\n // After the active span, so an error that escaped a span is attributed to that span rather than\n // to whichever one happened to be active at capture time. Done here rather than once the event is\n // assembled so that event processors and the `postprocessEvent` hook see the corrected span id.\n applyEscapedErrorSpanToEvent(prepared, hint, finalScope);\n\n const eventProcessors = [\n ...clientEventProcessors,\n // Run scope event processors _after_ all other processors\n ...data.eventProcessors,\n ];\n\n // Skip event processors for internal exceptions to prevent recursion\n const isTransaction = event.type === 'transaction';\n // Snapshot the count rather than reading `event.spans` later: processors get a shallow copy of the\n // event, so one that mutates `spans` in place also mutates the original array.\n const spanCountBeforeProcessing = event.spans?.length || 0;\n const result: PromiseLike = isInternalException(hint)\n ? resolvedSyncPromise(prepared)\n : notifyEventProcessors(eventProcessors, prepared, hint, 0, reason => {\n if (!client) {\n return;\n }\n\n client.recordDroppedEvent(reason, getDataCategoryByType(event.type));\n if (isTransaction) {\n client.recordDroppedEvent(reason, 'span', 1 + spanCountBeforeProcessing);\n }\n });\n\n return result.then(evt => {\n if (!evt) {\n return null;\n }\n\n if (isTransaction && client) {\n const droppedSpanCount = spanCountBeforeProcessing - (evt.spans?.length || 0);\n if (droppedSpanCount > 0) {\n client.recordDroppedEvent('event_processor', 'span', droppedSpanCount);\n }\n }\n\n // We apply the debug_meta field only after all event processors have ran, so that if any event processors modified\n // file names (e.g.the RewriteFrames integration) the filename -> debug ID relationship isn't destroyed.\n // This should not cause any PII issues, since we're only moving data that is already on the event and not adding\n // any new data\n applyDebugMeta(evt);\n\n if (typeof normalizeDepth === 'number' && normalizeDepth > 0) {\n return normalizeEvent(evt, normalizeDepth, normalizeMaxBreadth);\n }\n return evt;\n });\n}\n\n/**\n * Enhances event using the client configuration.\n * It takes care of all \"static\" values like environment, release and `dist`,\n * as well as truncating overly long values.\n *\n * Only exported for tests.\n *\n * @param event event instance to be enhanced\n */\nexport function applyClientOptions(event: Event, options: ClientOptions): void {\n const { environment, release, dist, maxValueLength } = options;\n\n // empty strings do not make sense for environment, release, and dist\n // so we handle them the same as if they were not provided\n event.environment = event.environment || environment || DEFAULT_ENVIRONMENT;\n\n if (!event.release && release) {\n event.release = release;\n }\n\n if (!event.dist && dist) {\n event.dist = dist;\n }\n\n const request = event.request;\n if (request?.url && maxValueLength) {\n request.url = truncate(request.url, maxValueLength);\n }\n\n if (maxValueLength) {\n event.exception?.values?.forEach(exception => {\n if (exception.value) {\n // Truncates error messages\n exception.value = truncate(exception.value, maxValueLength);\n }\n });\n }\n}\n\n/**\n * Puts debug IDs into the stack frames of an error event.\n */\nexport function applyDebugIds(event: Event, stackParser: StackParser): void {\n // Build a map of filename -> debug_id\n const filenameDebugIdMap = getFilenameToDebugIdMap(stackParser);\n\n event.exception?.values?.forEach(exception => {\n exception.stacktrace?.frames?.forEach(frame => {\n if (frame.filename) {\n frame.debug_id = filenameDebugIdMap[frame.filename];\n }\n });\n });\n}\n\n/**\n * Moves debug IDs from the stack frames of an error event into the debug_meta field.\n */\nexport function applyDebugMeta(event: Event): void {\n // Extract debug IDs and filenames from the stack frames on the event.\n const filenameDebugIdMap: Record = {};\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 { filterKeyValueData } from './utils/data-collection/filterKeyValueData';\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, and unbind it from the current scope.\n * See {@link Client.close}.\n *\n * @param timeout Maximum time in ms the client should wait to flush its event queue before shutting down. Omitting this\n * parameter will cause the client to wait until all events are sent before disabling itself.\n * @returns A promise which resolves to `true` if the queue successfully drains before the timeout, or `false` if it\n * doesn't (or if there's no client defined).\n */\nexport async function close(timeout?: number): Promise {\n const scope = getCurrentScope();\n const client = scope.getClient();\n if (client) {\n const result = await client.close(timeout);\n // Unbind the client, so a later `init()` sets up a new one.\n if (scope.getClient() === client) {\n scope.setClient(undefined);\n }\n return result;\n }\n DEBUG_BUILD && debug.warn('Cannot flush events and disable SDK. No client defined.');\n return Promise.resolve(false);\n}\n\n/**\n * Returns true if Sentry has been properly initialized.\n */\nexport function isInitialized(): boolean {\n return !!getClient();\n}\n\n/** If the SDK is initialized & enabled. */\nexport function isEnabled(): boolean {\n const client = getClient();\n return client?.getOptions().enabled !== false && !!client?.getTransport();\n}\n\n/**\n * Add an event processor.\n * This will be added to the current isolation scope, ensuring any event that is processed in the current execution\n * context will have the processor applied.\n */\nexport function addEventProcessor(callback: EventProcessor): void {\n getIsolationScope().addEventProcessor(callback);\n}\n\n/**\n * Start a session on the current isolation scope.\n *\n * @param context (optional) additional properties to be applied to the returned session object\n *\n * @returns the new active session\n */\nexport function startSession(context?: SessionContext): Session {\n const isolationScope = getIsolationScope();\n\n const { user } = getCombinedScopeData(isolationScope, getCurrentScope());\n\n let userAgent = GLOBAL_OBJ.navigator?.userAgent;\n if (userAgent) {\n const headerCollection = getClient()?.getDataCollectionOptions().httpHeaders.request ?? true;\n userAgent = filterKeyValueData({ 'User-Agent': userAgent }, headerCollection)['User-Agent'];\n }\n\n const session = makeSession({\n user,\n userAgent,\n ...context,\n });\n\n // End existing session if there's one\n const currentSession = isolationScope.getSession();\n if (currentSession?.status === 'ok') {\n updateSession(currentSession, { status: 'exited' });\n }\n\n endSession();\n\n // Afterwards we set the new session on the scope\n isolationScope.setSession(session);\n\n return session;\n}\n\n/**\n * End the session on the current isolation scope.\n */\nexport function endSession(): void {\n const isolationScope = getIsolationScope();\n const currentScope = getCurrentScope();\n\n const session = currentScope.getSession() || isolationScope.getSession();\n if (session) {\n closeSession(session);\n }\n _sendSessionUpdate();\n\n // the session is over; take it off of the scope\n isolationScope.setSession();\n}\n\n/**\n * Sends the current Session on the scope\n */\nfunction _sendSessionUpdate(): void {\n const isolationScope = getIsolationScope();\n const client = getClient();\n const session = isolationScope.getSession();\n if (session && client) {\n client.captureSession(session);\n }\n}\n\n/**\n * Sends the current session on the scope to Sentry\n *\n * @param end If set the session will be marked as exited and removed from the scope.\n * Defaults to `false`.\n */\nexport function captureSession(end: boolean = false): void {\n // both send the update and pull the session from the scope\n if (end) {\n endSession();\n return;\n }\n\n // only send the update\n _sendSessionUpdate();\n}\n", "import 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' || key === 'onError') {\n continue;\n }\n\n if (key === 'user') {\n const user = dialogOptions.user;\n if (!user) {\n continue;\n }\n if (user.name) {\n encodedOptions += `&name=${encodeURIComponent(user.name)}`;\n }\n if (user.email) {\n encodedOptions += `&email=${encodeURIComponent(user.email)}`;\n }\n } else {\n encodedOptions += `&${encodeURIComponent(key)}=${encodeURIComponent(dialogOptions[key] as string)}`;\n }\n }\n\n return `${endpoint}?${encodedOptions}`;\n}\n", "import type { Client } from '../../client';\nimport type { SpanContainerItem } from '../../types/envelope';\nimport type { Event } from '../../types/event';\nimport { createSpanContainerItem } from './envelope';\nimport { hasSpanStreamingEnabled } from './hasSpanStreamingEnabled';\nimport { spanJsonToSerializedStreamedSpan } from './spanJsonToStreamedSpan';\n\n/**\n * Extracts gen_ai spans from a transaction event, converts them to span v2 format,\n * and returns them as a SpanContainerItem.\n *\n * Only applies to static mode (non-streaming) transactions.\n *\n * WARNING: This function mutates `event.spans` by removing the extracted gen_ai spans\n * from the array. Call this before creating the event envelope so the transaction\n * item does not include the extracted spans.\n */\nexport function extractGenAiSpansFromEvent(event: Event, client: Client): SpanContainerItem | undefined {\n if (\n event.type !== 'transaction' ||\n !event.spans?.length ||\n !event.sdkProcessingMetadata?.hasGenAiSpans ||\n hasSpanStreamingEnabled(client)\n ) {\n return undefined;\n }\n\n const genAiSpans = [];\n const remainingSpans = [];\n\n for (const span of event.spans) {\n if (span.op?.startsWith('gen_ai.')) {\n genAiSpans.push(spanJsonToSerializedStreamedSpan(span));\n } else {\n remainingSpans.push(span);\n }\n }\n\n if (genAiSpans.length === 0) {\n return undefined;\n }\n\n event.spans = remainingSpans;\n\n return createSpanContainerItem(genAiSpans, client);\n}\n", "import { 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 response: TransportMakeRequestResponse,\n now: number = safeDateNow(),\n): RateLimits {\n const updatedRateLimits: RateLimits = {\n ...limits,\n };\n\n forEachRateLimit(response, now, (category, until) => {\n updatedRateLimits[category] = Math.max(updatedRateLimits[category] || 0, until);\n });\n\n return updatedRateLimits;\n}\n\n/**\n * Calls `extendRateLimit` with the category and deadline of each rate limit in the response.\n */\nfunction forEachRateLimit(\n { statusCode, headers }: TransportMakeRequestResponse,\n now: number,\n extendRateLimit: (category: string, until: number) => void,\n): void {\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 extendRateLimit('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 extendRateLimit(category, now + delay);\n }\n } else {\n extendRateLimit(category, now + delay);\n }\n }\n }\n }\n } else if (retryAfterHeader) {\n extendRateLimit('all', now + parseRetryAfterHeader(retryAfterHeader, now));\n } else if (statusCode === 429) {\n extendRateLimit('all', now + 60 * 1000);\n }\n}\n", "import { DEBUG_BUILD } from '../debug-build';\nimport type { EventDropReason } from '../types/clientreport';\nimport type { Envelope, EnvelopeItem, EnvelopeItemType } from '../types/envelope';\nimport type { Event } from '../types/event';\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: Readonly = {};\n const flush = (timeout?: number): PromiseLike => buffer.drain(timeout);\n\n function recordItemLoss(reason: EventDropReason, [headers, payload]: EnvelopeItem, type: EnvelopeItemType): void {\n const dataCategory = envelopeItemTypeToDataCategory(type);\n if (type === 'transaction') {\n // The transaction itself counts as a span, too\n options.recordDroppedEvent(reason, 'span', ((payload as Event).spans?.length ?? 0) + 1);\n }\n options.recordDroppedEvent(reason, dataCategory, typeof headers.item_count === 'number' ? headers.item_count : 1);\n }\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 if (isRateLimited(rateLimits, envelopeItemTypeToDataCategory(type))) {\n recordItemLoss('ratelimit_backoff', item, type);\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 recordItemLoss(reason, item, 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 { SENTRY_PROFILE_ID, SENTRY_EXCLUSIVE_TIME } from '@sentry/conventions/attributes';\nimport type { TransactionEvent } from '../types/event';\nimport type { SpanJSON } from '../types/span';\n\n/**\n * Converts a transaction event to a span JSON object.\n */\nexport function convertTransactionEventToSpanJson(event: TransactionEvent): SpanJSON {\n const { trace_id, parent_span_id, span_id, status, origin, data, op, links } = event.contexts?.trace ?? {};\n\n return {\n data: data ?? {},\n description: event.transaction,\n op,\n parent_span_id,\n span_id: span_id ?? '',\n start_timestamp: event.start_timestamp ?? 0,\n status: status ?? 'ok',\n timestamp: event.timestamp,\n trace_id: trace_id ?? '',\n origin,\n links,\n profile_id: data?.[SENTRY_PROFILE_ID] as string | undefined,\n exclusive_time: data?.[SENTRY_EXCLUSIVE_TIME] as number | undefined,\n measurements: event.measurements,\n is_segment: true,\n };\n}\n\n/**\n * Converts a span JSON object to a transaction event.\n */\nexport function convertSpanJsonToTransactionEvent(span: SpanJSON): TransactionEvent {\n return {\n type: 'transaction',\n timestamp: span.timestamp,\n start_timestamp: span.start_timestamp,\n transaction: span.description,\n contexts: {\n trace: {\n trace_id: span.trace_id,\n span_id: span.span_id,\n parent_span_id: span.parent_span_id,\n op: span.op,\n status: span.status,\n origin: span.origin,\n links: span.links,\n data: {\n ...span.data,\n ...(span.profile_id && { [SENTRY_PROFILE_ID]: span.profile_id }),\n ...(span.exclusive_time && { [SENTRY_EXCLUSIVE_TIME]: span.exclusive_time }),\n },\n },\n },\n measurements: span.measurements,\n };\n}\n", "import type { ClientOptions } from '../types/options';\nimport { consoleSandbox } from './debug-logger';\n\n/**\n * Warns about `beforeSendTransaction` and `ignoreTransactions` being ignored because span streaming is enabled.\n *\n * Both options are tied to the transaction event that span streaming no longer produces, so they silently\n * stop taking effect when users upgrade. Since that's easy to miss, this warning bypasses the `debug` logger\n * (which is opt-in and stripped from non-debug bundles) and writes to the console directly.\n */\nexport function maybeWarnAboutIgnoredTransactionOptions(options: ClientOptions): void {\n if (\n options.traceLifecycle !== 'stream' ||\n // oxlint-disable-next-line typescript/no-deprecated\n !(options.beforeSendTransaction || options.ignoreTransactions?.length)\n ) {\n return;\n }\n\n consoleSandbox(() => {\n // oxlint-disable-next-line no-console\n console.warn(\n \"[Sentry] `beforeSendTransaction` and `ignoreTransactions` are ignored with `traceLifecycle: 'stream'` (enabled by default). Use `beforeSendSpan` and `ignoreSpans` instead, or set `traceLifecycle: 'static'`.\",\n );\n });\n}\n", "import type {\n CollectBehavior,\n DataCollection,\n HttpHeadersCollection,\n ResolvedDataCollection,\n} from '../../types/datacollection';\n\nconst DEFAULTS: ResolvedDataCollection = {\n userInfo: true,\n cookies: true,\n httpHeaders: { request: true, response: true },\n httpBodies: ['incomingRequest', 'outgoingRequest', 'incomingResponse', 'outgoingResponse'],\n urlQueryParams: true,\n graphQL: { document: true, variables: true },\n genAI: { inputs: true, outputs: true },\n mcp: { inputs: true, outputs: true },\n databaseQueryData: true,\n queues: true,\n stackFrameVariables: true,\n frameContextLines: 5,\n};\n\nfunction isCollectBehavior(value: CollectBehavior | HttpHeadersCollection): value is CollectBehavior {\n return typeof value === 'boolean' || 'allow' in value || 'deny' in value;\n}\n\nfunction resolveHttpHeaders(httpHeaders: DataCollection['httpHeaders']): ResolvedDataCollection['httpHeaders'] {\n if (httpHeaders === undefined) {\n return { ...DEFAULTS.httpHeaders };\n }\n\n if (isCollectBehavior(httpHeaders)) {\n return { request: httpHeaders, response: httpHeaders };\n }\n\n return {\n request: httpHeaders.request ?? DEFAULTS.httpHeaders.request,\n response: httpHeaders.response ?? DEFAULTS.httpHeaders.response,\n };\n}\n\n/**\n * Resolves the effective `DataCollection` configuration from client options.\n *\n * Precedence:\n * 1. Spec defaults\n * 2. Fields explicitly set in `dataCollection`\n */\nexport function resolveDataCollectionOptions(options: { dataCollection?: DataCollection }): ResolvedDataCollection {\n const dc = options.dataCollection ?? {};\n\n return {\n userInfo: dc.userInfo ?? DEFAULTS.userInfo,\n cookies: dc.cookies ?? DEFAULTS.cookies,\n httpHeaders: resolveHttpHeaders(dc.httpHeaders),\n httpBodies: dc.httpBodies ?? DEFAULTS.httpBodies,\n urlQueryParams: dc.urlQueryParams ?? DEFAULTS.urlQueryParams,\n graphQL: {\n document: dc.graphQL?.document ?? DEFAULTS.graphQL.document,\n variables: dc.graphQL?.variables ?? DEFAULTS.graphQL.variables,\n },\n genAI: {\n inputs: dc.genAI?.inputs ?? DEFAULTS.genAI.inputs,\n outputs: dc.genAI?.outputs ?? DEFAULTS.genAI.outputs,\n },\n mcp: {\n inputs: dc.mcp?.inputs ?? DEFAULTS.mcp.inputs,\n outputs: dc.mcp?.outputs ?? DEFAULTS.mcp.outputs,\n },\n databaseQueryData: dc.databaseQueryData ?? DEFAULTS.databaseQueryData,\n queues: dc.queues ?? DEFAULTS.queues,\n stackFrameVariables: dc.stackFrameVariables ?? DEFAULTS.stackFrameVariables,\n frameContextLines: dc.frameContextLines ?? DEFAULTS.frameContextLines,\n };\n}\n", "/* eslint-disable max-lines */\nimport { getEnvelopeEndpointWithUrlEncodedAuth } from './api';\nimport { DEFAULT_ENVIRONMENT } from './constants';\nimport { getCurrentScope, getIsolationScope, getTraceContextFromScope } from './currentScopes';\nimport { DEBUG_BUILD } from './debug-build';\nimport { createEventEnvelope, createSessionEnvelope } from './envelope';\nimport type { IntegrationIndex } from './integration';\nimport { afterSetupIntegrations, setupIntegration, setupIntegrations } from './integration';\nimport type { Scope } from './scope';\nimport { updateSession } from './session';\nimport { getDynamicSamplingContextFromScope } from './tracing/dynamicSamplingContext';\nimport { isStaticBeforeSendSpanCallback } from './tracing/spans/beforeSendSpan';\nimport { extractGenAiSpansFromEvent } from './tracing/spans/extractGenAiSpans';\nimport { DEFAULT_TRANSPORT_BUFFER_SIZE } from './transports/base';\nimport type { Breadcrumb, BreadcrumbHint, FetchBreadcrumbHint, XhrBreadcrumbHint } from './types/breadcrumb';\nimport type { CheckIn, MonitorConfig } from './types/checkin';\nimport type { EventDropReason, Outcome } from './types/clientreport';\nimport type { DataCategory } from './types/datacategory';\nimport type { DsnComponents } from './types/dsn';\nimport type { DynamicSamplingContext, Envelope } from './types/envelope';\nimport type { ErrorEvent, Event, EventHint, TransactionEvent } from './types/event';\nimport type { EventProcessor } from './types/eventprocessor';\nimport type { FeedbackEvent } from './types/feedback';\nimport type { Integration } from './types/integration';\nimport type { Log } from './types/log';\nimport type { Metric } from './types/metric';\nimport type { ClientOptions } from './types/options';\nimport type { ParameterizedString } from './types/parameterize';\nimport type { ReplayEndEvent, ReplayStartEvent } from './types/replay';\nimport type { RequestEventData } from './types/request';\nimport type { SdkMetadata } from './types/sdkmetadata';\nimport type { Session, SessionAggregates, SessionStatus } from './types/session';\nimport type { SeverityLevel } from './types/severity';\nimport type { Span, SpanAttributes, SpanContextData, SpanJSON, StreamedSpanJSON } from './types/span';\nimport type { StartSpanOptions } from './types/startSpanOptions';\nimport type { Transport, TransportMakeRequestResponse } from './types/transport';\nimport type { ResolvedDataCollection } from './types/datacollection';\nimport { createClientReportEnvelope } from './utils/clientreport';\nimport { consoleSandbox, debug } from './utils/debug-logger';\nimport { dsnToString, makeDsn } from './utils/dsn';\nimport { addItemToEnvelope, createAttachmentEnvelopeItem, getDataCategoryByType } from './utils/envelope';\nimport { getPossibleEventMessages, isInternalException } from './utils/eventUtils';\nimport { isObjectLike, isParameterizedString, isPlainObject, isPrimitive } from './utils/is';\nimport { merge } from './utils/merge';\nimport { checkOrSetAlreadyCaught, uuid4 } from './utils/misc';\nimport { parseSampleRate } from './utils/parseSampleRate';\nimport { prepareEvent } from './utils/prepareEvent';\nimport { makePromiseBuffer, type PromiseBuffer, SENTRY_BUFFER_FULL_ERROR } from './utils/promisebuffer';\nimport { safeMathRandom } from './utils/randomSafeContext';\nimport { safeCallback } from './utils/safeCallback';\nimport { reparentChildSpans, shouldIgnoreSpan } from './utils/should-ignore-span';\nimport { rejectedSyncPromise } from './utils/syncpromise';\nimport { convertSpanJsonToTransactionEvent, convertTransactionEventToSpanJson } from './utils/transactionEvent';\nimport { maybeWarnAboutIgnoredTransactionOptions } from './utils/warnAboutIgnoredTransactionOptions';\nimport { resolveDataCollectionOptions } from './utils/data-collection/resolveDataCollectionOptions';\nimport { applyBeforeSendSpanCallback } from './tracing/spans/beforeSendSpan';\n\nconst ALREADY_SEEN_ERROR = \"Not capturing exception because it's already been captured.\";\nconst MISSING_RELEASE_FOR_SESSION_ERROR = 'Discarded session because of missing or non-string release';\n\nconst INTERNAL_ERROR_SYMBOL = Symbol.for('SentryInternalError');\nconst DO_NOT_SEND_EVENT_SYMBOL = Symbol.for('SentryDoNotSendEventError');\n\n// Clones of a scope keep their own reference to its client, so unbinding a\n// closed client from one scope does not reach the others. The mark lives on\n// the client under a `Symbol.for` key, so every copy of the SDK can read it.\nconst CLOSED_CLIENT_SYMBOL = Symbol.for('SentryClosedClient');\n\n/**\n * Whether `close()` was called on the given client.\n *\n * @hidden\n */\nexport function isClientClosed(client: Client): boolean {\n return CLOSED_CLIENT_SYMBOL in client;\n}\n\ninterface InternalError {\n message: string;\n [INTERNAL_ERROR_SYMBOL]: true;\n}\n\ninterface DoNotSendEventError {\n message: string;\n [DO_NOT_SEND_EVENT_SYMBOL]: true;\n}\n\nfunction _makeInternalError(message: string): InternalError {\n return {\n message,\n [INTERNAL_ERROR_SYMBOL]: true,\n };\n}\n\nfunction _makeDoNotSendEventError(message: string): DoNotSendEventError {\n return {\n message,\n [DO_NOT_SEND_EVENT_SYMBOL]: true,\n };\n}\n\nfunction _makeSampledOutError(sampleRate: ClientOptions['sampleRate']): DoNotSendEventError {\n return _makeDoNotSendEventError(\n `Discarding event because it's not included in the random sample (sampling rate = ${sampleRate})`,\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 * 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 * The session status to set when an unhandled error terminates a session.\n *\n * Defaults to `'crashed'`. Browser SDKs override this to `'unhandled'` because unhandled errors\n * don't actually crash the browser.\n */\n protected _unhandledSessionStatus: SessionStatus;\n\n /** Whether `attachStacktrace` came from the SDK default rather than the user's options. */\n protected readonly _attachStacktraceIsDefault: boolean;\n\n /**\n * Initializes this client instance.\n *\n * @param options Options for the client.\n */\n protected constructor(options: O) {\n // Any value other than `'static'` normalizes to the `'stream'` default, so that `traceLifecycle`\n // is always one of the two known values for the rest of the SDK.\n this._options = {\n attachStacktrace: true,\n ...options,\n traceLifecycle: options.traceLifecycle === 'static' ? 'static' : 'stream',\n };\n this._integrations = {};\n this._numProcessing = 0;\n this._outcomes = {};\n this._hooks = {};\n this._eventProcessors = [];\n this._promiseBuffer = makePromiseBuffer(options.transportOptions?.bufferSize ?? DEFAULT_TRANSPORT_BUFFER_SIZE);\n this._dataCollection = resolveDataCollectionOptions(options);\n this._unhandledSessionStatus = 'crashed';\n this._attachStacktraceIsDefault = options.attachStacktrace === undefined;\n\n if (options.dsn) {\n this._dsn = makeDsn(options.dsn);\n } else {\n DEBUG_BUILD && debug.warn('No DSN provided, client will not send events.');\n }\n\n const { beforeSendSpan, traceLifecycle } = this._options;\n // A `beforeSendSpan` callback is only invoked for the span format matching the trace lifecycle,\n // so a mismatch means it is silently never called.\n if (\n DEBUG_BUILD &&\n beforeSendSpan &&\n isStaticBeforeSendSpanCallback(beforeSendSpan) !== (traceLifecycle === 'static')\n ) {\n consoleSandbox(() => {\n // oxlint-disable-next-line no-console\n console.warn(\n `Ignoring \\`beforeSendSpan\\`: ${\n traceLifecycle === 'static' ? 'wrap it with' : 'remove'\n } \\`Sentry.withStaticSpan\\` to use it with \\`traceLifecycle: \"${traceLifecycle}\"\\`.`,\n );\n });\n }\n\n if (this._dsn) {\n const url = getEnvelopeEndpointWithUrlEncodedAuth(\n this._dsn,\n options.tunnel,\n options._metadata ? options._metadata.sdk : undefined,\n );\n this._transport = options.transport({\n tunnel: this._options.tunnel,\n recordDroppedEvent: this.recordDroppedEvent.bind(this),\n ...options.transportOptions,\n url,\n });\n }\n }\n\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).then(event => {\n // Lets Replay keep treating messages as non-errors unless the user opted into stack traces\n if (event.exception && this._attachStacktraceIsDefault) {\n event.sdkProcessingMetadata = { ...event.sdkProcessingMetadata, hasDefaultSyntheticStacktrace: true };\n }\n\n return event;\n })\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 Object.defineProperty(this, CLOSED_CLIENT_SYMBOL, { value: true });\n const result = await this.flush(timeout);\n this.getOptions().enabled = false;\n this.emit('close');\n return result;\n }\n\n /**\n * Get all installed event processors.\n */\n public getEventProcessors(): EventProcessor[] {\n return this._eventProcessors;\n }\n\n /**\n * Adds an event processor that applies to any event processed by this client.\n */\n public addEventProcessor(eventProcessor: EventProcessor): void {\n this._eventProcessors.push(eventProcessor);\n }\n\n /**\n * Initialize this client.\n * Call this after the client was set on a scope.\n */\n public init(): void {\n if (\n this._isEnabled() ||\n // Force integrations to be setup even if no DSN was set when we have\n // Spotlight enabled. This is particularly important for browser as we\n // don't support the `spotlight` option there and rely on the users\n // adding the `spotlightBrowserIntegration()` to their integrations which\n // wouldn't get initialized with the check below when there's no DSN set.\n this._options.integrations.some(({ name }) => name.startsWith('Spotlight'))\n ) {\n this._setupIntegrations();\n\n maybeWarnAboutIgnoredTransactionOptions(this._options);\n }\n }\n\n /**\n * Gets an installed integration by its name.\n *\n * @returns {Integration|undefined} The installed integration or `undefined` if no integration with that `name` was installed.\n */\n public getIntegrationByName(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 if (!isInternalException(hint)) {\n for (const attachment of hint.attachments || []) {\n env = addItemToEnvelope(env, createAttachmentEnvelopeItem(attachment));\n }\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 that can adjust the scope and the parent span right before a span is\n * created. Listeners mutate the passed `spanScope` object. The Node SDK uses this to continue\n * the trace of a remote (incoming) parent through the propagation context of a forked scope.\n * @returns {() => void} A function that, when executed, removes the registered callback.\n */\n public on(\n hook: 'prepareSpanScope',\n callback: (spanScope: { scope: Scope; parentSpan: Span | undefined }) => void,\n ): () => void;\n\n /**\n * Register a callback before span sampling runs. Receives a `samplingDecision` object argument with a `decision`\n * property that can be used to make a sampling decision that will be enforced, before any span sampling runs.\n * @returns {() => void} A function that, when executed, removes the registered callback.\n */\n public on(\n hook: 'beforeSampling',\n callback: (\n samplingData: {\n spanAttributes: SpanAttributes;\n spanName: string;\n parentSampled?: boolean;\n parentSampleRate?: number;\n parentContext?: SpanContextData;\n },\n samplingDecision: { decision: boolean },\n ) => void,\n ): void;\n\n /**\n * Register a callback for after a span is ended.\n * NOTE: The span cannot be mutated anymore in this callback.\n * Receives the span as argument.\n * @returns {() => void} A function that, when executed, removes the registered callback.\n */\n public on(hook: 'spanEnd', callback: (span: Span) => void): () => void;\n\n /** Register a callback before an idle span ends and its end timestamp is finalized. */\n public on(hook: 'beforeIdleSpanEnd', callback: (idleSpan: Span) => void): () => void;\n\n /**\n * Register a callback for after a span is ended and the `spanEnd` hook has run.\n * NOTE: The span cannot be mutated anymore in this callback.\n */\n public on(hook: 'afterSpanEnd', callback: (immutableSegmentSpan: Readonly) => 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 */\n public on(hook: 'preprocessSpan', callback: (streamedSpanJSON: StreamedSpanJSON) => void): () => void;\n\n /**\n * Register a callback for when a span JSON is processed, to add some data to the span JSON.\n */\n public on(hook: 'processSpan', callback: (streamedSpanJSON: StreamedSpanJSON) => void): () => void;\n\n /**\n * Register a callback for when a segment span JSON is processed, to add some data to the segment span JSON.\n */\n public on(hook: 'processSegmentSpan', callback: (streamedSpanJSON: StreamedSpanJSON) => void): () => void;\n\n /**\n * Register a callback for when an idle span is allowed to auto-finish.\n * @returns {() => void} A function that, when executed, removes the registered callback.\n */\n public on(hook: 'idleSpanEnableAutoFinish', callback: (span: Span) => void): () => void;\n\n /**\n * Register a callback for transaction start and finish.\n * @returns {() => void} A function that, when executed, removes the registered callback.\n */\n public on(hook: 'beforeEnvelope', callback: (envelope: Envelope) => void): () => void;\n\n /**\n * Register a callback for after an envelope has been accepted by the transport.\n * @returns {() => void} A function that, when executed, removes the registered callback.\n */\n public on(hook: 'afterEnvelope', callback: (envelope: Envelope) => void): () => void;\n\n /**\n * Register a callback that runs when stack frame metadata should be applied to an event.\n * @returns {() => void} A function that, when executed, removes the registered callback.\n */\n public on(hook: 'applyFrameMetadata', callback: (event: Event) => void): () => void;\n\n /**\n * Register a callback for before sending an event.\n * This is called right before an event is sent and should not be used to mutate the event.\n * Receives an Event & EventHint as arguments.\n * @returns {() => void} A function that, when executed, removes the registered callback.\n */\n public on(hook: 'beforeSendEvent', callback: (event: Event, hint?: EventHint | undefined) => void): () => void;\n\n /**\n * Register a callback for before sending a session or session aggregrates..\n * Receives the session/aggregate as second argument.\n * @returns {() => void} A function that, when executed, removes the registered callback.\n */\n public on(hook: 'beforeSendSession', callback: (session: Session | SessionAggregates) => void): () => void;\n\n /**\n * Register a callback for preprocessing an event,\n * before it is passed to (global) event processors.\n * Receives an Event & EventHint as arguments.\n * @returns {() => void} A function that, when executed, removes the registered callback.\n */\n public on(hook: 'preprocessEvent', callback: (event: Event, hint?: EventHint | undefined) => void): () => void;\n\n /**\n * Register a callback for postprocessing an event,\n * after it was passed to (global) event processors, before it is being sent.\n * Receives an Event & EventHint as arguments.\n * @returns {() => void} A function that, when executed, removes the registered callback.\n */\n public on(hook: 'postprocessEvent', callback: (event: Event, hint?: EventHint | undefined) => void): () => void;\n\n /**\n * Register a callback for when an event has been sent.\n * @returns {() => void} A function that, when executed, removes the registered callback.\n */\n public on(\n hook: 'afterSendEvent',\n callback: (event: Event, sendResponse: TransportMakeRequestResponse) => void,\n ): () => void;\n\n /**\n * Register a callback before a breadcrumb is added.\n * @returns {() => void} A function that, when executed, removes the registered callback.\n */\n public on(hook: 'beforeAddBreadcrumb', callback: (breadcrumb: Breadcrumb, hint?: BreadcrumbHint) => void): () => void;\n\n /**\n * Register a callback when a DSC (Dynamic Sampling Context) is created.\n * @returns {() => void} A function that, when executed, removes the registered callback.\n */\n public on(hook: 'createDsc', callback: (dsc: DynamicSamplingContext, rootSpan?: Span) => void): () => void;\n\n /**\n * Register a callback when a Feedback event has been prepared.\n * This should be used to mutate the event. The options argument can hint\n * about what kind of mutation it expects.\n * @returns {() => void} A function that, when executed, removes the registered callback.\n */\n public on(\n hook: 'beforeSendFeedback',\n callback: (feedback: FeedbackEvent, options?: { includeReplay?: boolean }) => void,\n ): () => void;\n\n /**\n * Register a callback when the feedback widget is opened in a user's browser\n */\n public on(hook: 'openFeedbackWidget', callback: () => void): () => void;\n\n /**\n * A hook that is called when a replay session starts recording (either session or buffer mode).\n * @returns {() => void} A function that, when executed, removes the registered callback.\n */\n public on(hook: 'replayStart', callback: (event: ReplayStartEvent) => void): () => void;\n\n /**\n * A hook that is called when a replay session stops recording, either manually or due to an\n * internal condition such as `maxReplayDuration` expiry, send failure, or mutation limit.\n * @returns {() => void} A function that, when executed, removes the registered callback.\n */\n public on(hook: 'replayEnd', callback: (event: ReplayEndEvent) => void): () => void;\n\n /**\n * A hook for the browser tracing integrations to trigger a span start for a page load.\n * @returns {() => void} A function that, when executed, removes the registered callback.\n */\n public on(\n hook: 'startPageLoadSpan',\n callback: (\n options: StartSpanOptions,\n traceOptions?: { sentryTrace?: string | undefined; baggage?: string | undefined },\n ) => void,\n ): () => void;\n\n /**\n * A hook for the browser tracing integrations to trigger the end of a page load span.\n * @returns {() => void} A function that, when executed, removes the registered callback.\n */\n public on(hook: 'endPageloadSpan', callback: () => void): () => void;\n\n /**\n * A hook for the browser tracing integrations to trigger after the pageload span was started.\n * @returns {() => void} A function that, when executed, removes the registered callback.\n */\n public on(hook: 'afterStartPageLoadSpan', callback: (span: Span) => void): () => void;\n\n /**\n * A hook for triggering right before a navigation span is started.\n * @returns {() => void} A function that, when executed, removes the registered callback.\n */\n public on(\n hook: 'beforeStartNavigationSpan',\n callback: (options: StartSpanOptions, navigationOptions?: { isRedirect?: boolean; url?: string }) => void,\n ): () => void;\n\n /**\n * A hook for browser tracing integrations to trigger a span for a navigation.\n * @returns {() => void} A function that, when executed, removes the registered callback.\n */\n public on(\n hook: 'startNavigationSpan',\n callback: (options: StartSpanOptions, navigationOptions?: { isRedirect?: boolean; url?: string }) => void,\n ): () => void;\n\n /**\n * A hook for GraphQL client integration to enhance a span with request data.\n * @returns A function that, when executed, removes the registered callback.\n */\n public on(\n hook: 'beforeOutgoingRequestSpan',\n callback: (span: Span, hint: XhrBreadcrumbHint | FetchBreadcrumbHint) => void,\n ): () => void;\n\n /**\n * A hook for GraphQL client integration to enhance a breadcrumb with request data.\n * @returns A function that, when executed, removes the registered callback.\n */\n public on(\n hook: 'beforeOutgoingRequestBreadcrumb',\n callback: (breadcrumb: Breadcrumb, hint: XhrBreadcrumbHint | FetchBreadcrumbHint) => void,\n ): () => void;\n\n /**\n * A hook that is called when an incoming request starts being tracked as a request session.\n * @returns {() => void} A function that, when executed, removes the registered callback.\n */\n public on(hook: 'startRequestSession', callback: () => void): () => void;\n\n /**\n * A hook that is called when the client is flushing\n * @returns {() => void} A function that, when executed, removes the registered callback.\n */\n public on(hook: 'flush', callback: () => void): () => void;\n\n /**\n * A hook that is called when spans of a single trace should be flushed eagerly,\n * ahead of the trace's regular flush point. Only runtimes with a span streaming\n * buffer (e.g. the Cloudflare SDK) listen to this hook.\n * @returns {() => void} A function that, when executed, removes the registered callback.\n */\n public on(hook: 'flushTraceSpans', callback: (traceId: string) => void): () => void;\n\n /**\n * A hook that is called when the client is closing\n * @returns {() => void} A function that, when executed, removes the registered callback.\n */\n public on(hook: 'close', callback: () => void): () => void;\n\n /**\n * A hook that is called before a log is captured. This hooks runs before `beforeSendLog` is fired.\n *\n * @returns {() => void} A function that, when executed, removes the registered callback.\n */\n public on(hook: 'beforeCaptureLog', callback: (log: Log) => void): () => void;\n\n /**\n * A hook that is called after a log is captured\n *\n * @returns {() => void} A function that, when executed, removes the registered callback.\n */\n public on(hook: 'afterCaptureLog', callback: (log: Log) => void): () => void;\n\n /**\n * A hook that is called when the client is flushing logs\n *\n * @returns {() => void} A function that, when executed, removes the registered callback.\n */\n public on(hook: 'flushLogs', callback: () => void): () => void;\n\n /**\n * A hook that is called after capturing a metric. This hooks runs after `beforeSendMetric` is fired.\n *\n * @returns {() => void} A function that, when executed, removes the registered callback.\n */\n public on(hook: 'afterCaptureMetric', callback: (metric: Metric) => void): () => void;\n\n /**\n * A hook that is called when the client is flushing metrics\n *\n * @returns {() => void} A function that, when executed, removes the registered callback.\n */\n public on(hook: 'flushMetrics', callback: () => void): () => void;\n\n /**\n * A hook that is called when a metric is processed before it is captured and before the `beforeSendMetric` callback is fired.\n *\n * @returns {() => void} A function that, when executed, removes the registered callback.\n */\n public on(hook: 'processMetric', callback: (metric: Metric) => void): () => void;\n\n /**\n * A hook that is called when a http server request is started.\n * This hook is called after request isolation, but before the request is processed.\n *\n * @returns {() => void} A function that, when executed, removes the registered callback.\n */\n public on(\n hook: 'httpServerRequest',\n callback: (request: unknown, response: unknown, normalizedRequest: RequestEventData) => void,\n ): () => void;\n\n /**\n * A hook that is called when the UI Profiler should start profiling.\n *\n * This hook is called when running `Sentry.uiProfiler.startProfiler()`.\n *\n * @returns {() => void} A function that, when executed, removes the registered callback.\n */\n public on(hook: 'startUIProfiler', callback: () => void): () => void;\n\n /**\n * A hook that is called when the UI Profiler should stop profiling.\n *\n * This hook is called when running `Sentry.uiProfiler.stopProfiler()`.\n *\n * @returns {() => void} A function that, when executed, removes the registered callback.\n */\n public on(hook: 'stopUIProfiler', callback: () => void): () => void;\n\n /**\n * A hook that is called when an instrumented module is injected —\n * at runtime by the module hook, or at load of a bundler-transformed module.\n * Channel-based integrations use it to subscribe their diagnostics-channel\n * listeners lazily, only once the module they instrument is actually loaded.\n * Receives the injected module name.\n *\n * @returns {() => void} A function that, when executed, removes the registered callback.\n */\n public on(hook: 'orchestrion.module-injected', callback: (moduleName: string) => void): () => void;\n\n /**\n * Register a hook on this client.\n */\n public on(hook: string, callback: unknown): () => void {\n const hookCallbacks = (this._hooks[hook] = this._hooks[hook] || new Set());\n\n // Wrap the callback in a function so that registering the same callback instance multiple\n // times results in the callback being called multiple times.\n // @ts-expect-error - The `callback` type is correct and must be a function due to the\n // individual, specific overloads of this function.\n // eslint-disable-next-line @typescript-eslint/ban-types\n const uniqueCallback: Function = (...args: unknown[]) => callback(...args);\n\n hookCallbacks.add(uniqueCallback);\n\n // This function returns a callback execution handler that, when invoked,\n // deregisters a callback. This is crucial for managing instances where callbacks\n // need to be unregistered to prevent self-referencing in callback closures,\n // ensuring proper garbage collection.\n return () => {\n hookCallbacks.delete(uniqueCallback);\n };\n }\n\n /** Fire a hook whenever a span starts. */\n public emit(hook: 'spanStart', span: Span): void;\n\n /** A hook that is called right before a span is created; listeners mutate the passed object. */\n public emit(hook: 'prepareSpanScope', spanScope: { scope: Scope; parentSpan: Span | undefined }): void;\n\n /** A hook that is called every time before a span is sampled. */\n public emit(\n hook: 'beforeSampling',\n samplingData: {\n spanAttributes: SpanAttributes;\n spanName: string;\n parentSampled?: boolean;\n parentSampleRate?: number;\n parentContext?: SpanContextData;\n },\n samplingDecision: { decision: boolean },\n ): void;\n\n /** Fire a hook whenever a span ends. */\n public emit(hook: 'spanEnd', span: Span): void;\n\n /** Fire a hook before an idle span ends and its end timestamp is finalized. */\n public emit(hook: 'beforeIdleSpanEnd', idleSpan: Span): void;\n\n /**\n * Fire a hook event after a span ends and the `spanEnd` hook has run.\n */\n public emit(hook: 'afterSpanEnd', immutableSpan: Readonly): 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): void;\n\n /**\n * Fire a hook event when a span JSON is processed, to add some data to the span JSON.\n */\n public emit(hook: 'processSpan', streamedSpanJSON: StreamedSpanJSON): void;\n\n /**\n * Fire a hook event for when a segment span JSON is processed, to add some data to the segment span JSON.\n */\n public emit(hook: 'processSegmentSpan', streamedSpanJSON: StreamedSpanJSON): void;\n\n /**\n * Fire a hook indicating that an idle span is allowed to auto finish.\n */\n public emit(hook: 'idleSpanEnableAutoFinish', span: Span): void;\n\n /**\n * Fire a hook event for envelope creation and sending. Expects to be given an envelope as the\n * second argument.\n */\n public emit(hook: 'beforeEnvelope', envelope: Envelope): void;\n\n /**\n * Fire a hook event after an envelope has been accepted by the transport.\n */\n public emit(hook: 'afterEnvelope', envelope: Envelope): void;\n\n /**\n * Fire a hook indicating that stack frame metadata should be applied to the event passed to the hook.\n */\n public emit(hook: 'applyFrameMetadata', event: Event): void;\n\n /**\n * Fire a hook event before sending an event.\n * This is called right before an event is sent and should not be used to mutate the event.\n * Expects to be given an Event & EventHint as the second/third argument.\n */\n public emit(hook: 'beforeSendEvent', event: Event, hint?: EventHint): void;\n\n /**\n * Fire a hook event before sending a session/aggregates.\n * Expects to be given the prepared session/aggregates as second argument.\n */\n public emit(hook: 'beforeSendSession', session: Session | SessionAggregates): void;\n\n /**\n * Fire a hook event to process events before they are passed to (global) event processors.\n * Expects to be given an Event & EventHint as the second/third argument.\n */\n public emit(hook: 'preprocessEvent', event: Event, hint?: EventHint): void;\n\n /**\n * Fire a hook event to process a user on an event before it is sent to Sentry, after all other processors have run.\n * Expects to be given an Event & EventHint as the second/third argument.\n */\n public emit(hook: 'postprocessEvent', event: Event, hint?: EventHint): void;\n\n /**\n * Fire a hook event after sending an event. Expects to be given an Event as the\n * second argument.\n */\n public emit(hook: 'afterSendEvent', event: Event, sendResponse: TransportMakeRequestResponse): void;\n\n /**\n * Fire a hook for when a breadcrumb is added. Expects the breadcrumb as second argument.\n */\n public emit(hook: 'beforeAddBreadcrumb', breadcrumb: Breadcrumb, hint?: BreadcrumbHint): void;\n\n /**\n * Fire a hook for when a DSC (Dynamic Sampling Context) is created. Expects the DSC as second argument.\n */\n public emit(hook: 'createDsc', dsc: DynamicSamplingContext, rootSpan?: Span): void;\n\n /**\n * Fire a hook event for after preparing a feedback event. Events to be given\n * a feedback event as the second argument, and an optional options object as\n * third argument.\n */\n public emit(hook: 'beforeSendFeedback', feedback: FeedbackEvent, options?: { includeReplay?: boolean }): void;\n\n /**\n * Fire a hook event for when the feedback widget is opened in a user's browser\n */\n public emit(hook: 'openFeedbackWidget'): void;\n\n /**\n * Fire a hook event when a replay session starts recording.\n */\n public emit(hook: 'replayStart', event: ReplayStartEvent): void;\n\n /**\n * Fire a hook event when a replay session stops recording.\n */\n public emit(hook: 'replayEnd', event: ReplayEndEvent): void;\n\n /**\n * Emit a hook event for browser tracing integrations to trigger a span start for a page load.\n */\n public emit(\n hook: 'startPageLoadSpan',\n options: StartSpanOptions,\n traceOptions?: { sentryTrace?: string | undefined; baggage?: string | undefined },\n ): void;\n\n /**\n * Emit a hook event for browser tracing integrations to trigger the end of a page load span.\n */\n public emit(hook: 'endPageloadSpan'): void;\n\n /**\n * Emit a hook event for browser tracing integrations to trigger after the pageload span was started.\n */\n public emit(hook: 'afterStartPageLoadSpan', span: Span): void;\n\n /**\n * Emit a hook event for triggering right before a navigation span is started.\n */\n public emit(\n hook: 'beforeStartNavigationSpan',\n options: StartSpanOptions,\n navigationOptions?: { isRedirect?: boolean; url?: string },\n ): void;\n\n /**\n * Emit a hook event for browser tracing integrations to trigger a span for a navigation.\n */\n public emit(\n hook: 'startNavigationSpan',\n options: StartSpanOptions,\n navigationOptions?: { isRedirect?: boolean; url?: string },\n ): void;\n\n /**\n * Emit a hook event for GraphQL client integration to enhance a span with request data.\n */\n public emit(hook: 'beforeOutgoingRequestSpan', span: Span, hint: XhrBreadcrumbHint | FetchBreadcrumbHint): void;\n\n /**\n * Emit a hook event for GraphQL client integration to enhance a breadcrumb with request data.\n */\n public emit(\n hook: 'beforeOutgoingRequestBreadcrumb',\n breadcrumb: Breadcrumb,\n hint: XhrBreadcrumbHint | FetchBreadcrumbHint,\n ): void;\n\n /**\n * Emit a hook event when an incoming request starts being tracked as a request session.\n */\n public emit(hook: 'startRequestSession'): void;\n\n /**\n * Emit a hook event for client flush\n */\n public emit(hook: 'flush'): void;\n\n /**\n * Fire a hook event indicating that spans of a single trace should be flushed eagerly.\n */\n public emit(hook: 'flushTraceSpans', traceId: string): void;\n\n /**\n * Emit a hook event for client close\n */\n public emit(hook: 'close'): void;\n\n /**\n * Emit a hook event for client before capturing a log. This hooks runs before `beforeSendLog` is fired.\n */\n public emit(hook: 'beforeCaptureLog', log: Log): void;\n\n /**\n * Emit a hook event for client after capturing a log.\n */\n public emit(hook: 'afterCaptureLog', log: Log): void;\n\n /**\n * Emit a hook event for client flush logs\n */\n public emit(hook: 'flushLogs'): void;\n\n /**\n * Emit a hook event for client after capturing a metric.\n */\n public emit(hook: 'afterCaptureMetric', metric: Metric): void;\n\n /**\n * Emit a hook event for client flush metrics\n */\n public emit(hook: 'flushMetrics'): void;\n\n /**\n *\n * Emit a hook event for client to process a metric before it is captured.\n * This hook is called before the `beforeSendMetric` callback is fired.\n */\n public emit(hook: 'processMetric', metric: Metric): void;\n\n /**\n * Emit a hook event for client when a http server request is started.\n * This hook is called after request isolation, but before the request is processed.\n */\n public emit(\n hook: 'httpServerRequest',\n request: unknown,\n response: unknown,\n normalizedRequest: RequestEventData,\n ): void;\n\n /**\n * Emit a hook event for starting the UI Profiler.\n */\n public emit(hook: 'startUIProfiler'): void;\n\n /**\n * Emit a hook event for stopping the UI Profiler.\n */\n public emit(hook: 'stopUIProfiler'): void;\n\n /**\n * Emit a hook when an instrumented module is injected (runtime\n * module hook or bundler-transformed module load).\n */\n public emit(hook: 'orchestrion.module-injected', moduleName: string): void;\n\n /**\n * Emit a hook that was previously registered via `on()`.\n */\n public emit(hook: string, ...rest: unknown[]): void {\n const callbacks = this._hooks[hook];\n if (callbacks) {\n callbacks.forEach(callback => callback(...rest));\n }\n }\n\n /**\n * Send an envelope to Sentry.\n */\n // @ts-expect-error - PromiseLike is a subset of Promise\n public async sendEnvelope(envelope: Envelope): PromiseLike {\n this.emit('beforeEnvelope', envelope);\n\n if (this._isEnabled() && this._transport) {\n try {\n const result = await this._transport.send(envelope);\n this.emit('afterEnvelope', envelope);\n\n return result;\n } catch (reason) {\n DEBUG_BUILD && debug.error('Error while sending envelope:', reason);\n return {};\n }\n }\n\n DEBUG_BUILD && debug.error('Transport disabled');\n return {};\n }\n\n /**\n * Register a cleanup function to be called when the client is disposed.\n * This is useful for integrations that need to clean up global state.\n *\n * NOTE: This is a no-op in the base `Client` class. Subclasses like `ServerRuntimeClient`\n * override this method to actually register and execute cleanup callbacks.\n */\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n public registerCleanup(callback: () => void): void {\n // No-op in base class - subclasses override to implement cleanup registration\n }\n\n /**\n * Disposes of the client and releases all resources.\n *\n * Subclasses should override this method to clean up their own resources, including invoking\n * any callbacks registered via {@link Client.registerCleanup}. The base implementation is a\n * no-op and does NOT execute registered cleanup callbacks.\n *\n * After calling dispose(), the client should not be used anymore.\n */\n public dispose(): void {\n // Base class has no cleanup logic - subclasses implement their own\n }\n\n /* eslint-enable @typescript-eslint/unified-signatures */\n\n /** Setup integrations for this client. */\n protected _setupIntegrations(): void {\n const { integrations } = this._options;\n this._integrations = setupIntegrations(this, integrations);\n afterSetupIntegrations(this, integrations);\n }\n\n /** Updates existing session based on the provided event */\n protected _updateSessionFromEvent(session: Session, event: Event): void {\n // initially, set `unhandled` based on the event level and update from exceptions if there are any later on\n let unhandled = event.level === 'fatal';\n let errored = false;\n const exceptions = event.exception?.values;\n\n if (exceptions) {\n errored = true;\n // reset `unhandled` to false if there are exceptions, to ensure `mechanism.handled` is respected.\n unhandled = false;\n\n for (const ex of exceptions) {\n if (ex.mechanism?.handled === false) {\n unhandled = true;\n break;\n }\n }\n }\n\n // A session is updated and that session update is sent in only one of the two following scenarios:\n // 1. Session with non terminal status and 0 errors + an error occurred -> Will set error count to 1 and send update\n // 2. Session with non terminal status and 1 error + a crash occurred -> Will set status unhandled and send update\n const sessionNonTerminal = session.status === 'ok';\n const shouldUpdateAndSend = (sessionNonTerminal && session.errors === 0) || (sessionNonTerminal && unhandled);\n\n if (shouldUpdateAndSend) {\n updateSession(session, {\n ...(unhandled && { status: this._unhandledSessionStatus }),\n errors: session.errors || Number(errored || unhandled),\n });\n this.captureSession(session);\n }\n }\n\n /**\n * Determine if the client is finished processing. Returns a promise because it will wait `timeout` ms before saying\n * \"no\" (resolving to `false`) in order to give the client a chance to potentially finish first.\n *\n * @param timeout The time, in ms, after which to resolve to `false` if the client is still busy. Passing `0` (or not\n * passing anything) will make the promise wait as long as it takes for processing to finish before resolving to\n * `true`.\n * @returns A promise which will resolve to `true` if processing is already done or finishes before the timeout, and\n * `false` otherwise\n */\n protected async _isClientDoneProcessing(timeout?: number): Promise {\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 let beforeSendDropReason: BeforeSendDropReason = 'before_send';\n let ignoredSpanCount = 0;\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 isSampledOut = isError && typeof parsedSampleRate === 'number' && safeMathRandom() > parsedSampleRate;\n const dataCategory = getDataCategoryByType(event.type);\n // Spans that event processors removed are already recorded in `prepareEvent`, so all later\n // span outcomes are relative to the span count of the prepared event.\n let preparedSpanCount = 0;\n\n const session = currentScope.getSession() || isolationScope.getSession();\n // A sampled-out error only runs the pipeline to update the session. Without a session it could update,\n // drop it right away so it doesn't hold a promise buffer slot while event processors run.\n if (isSampledOut && session?.status !== 'ok') {\n this.recordDroppedEvent('sample_rate', 'error');\n return rejectedSyncPromise(_makeSampledOutError(sampleRate));\n }\n\n return this._prepareEvent(event, hint, currentScope, isolationScope)\n .then(prepared => {\n if (prepared === null) {\n throw _makeDoNotSendEventError('An event processor returned `null`, will not send event.');\n }\n\n preparedSpanCount = prepared.spans?.length || 0;\n\n if (isInternalException(hint)) {\n return prepared;\n }\n\n return processBeforeSend(\n options,\n prepared,\n hint,\n reason => {\n beforeSendDropReason = reason;\n },\n count => {\n ignoredSpanCount = count;\n },\n );\n })\n .then(processedEvent => {\n if (ignoredSpanCount) {\n this.recordDroppedEvent('ignored', 'span', ignoredSpanCount);\n }\n\n // An annotated boolean keeps `isPlainObject` from narrowing `processedEvent` to a plain record\n const isValidEvent: boolean = isPlainObject(processedEvent);\n if (!isValidEvent || processedEvent === null) {\n this.recordDroppedEvent(beforeSendDropReason, dataCategory);\n if (isTransaction) {\n // the transaction itself counts as one span, plus all the child spans that weren't ignored before\n this.recordDroppedEvent(beforeSendDropReason, 'span', 1 + preparedSpanCount - ignoredSpanCount);\n }\n if (processedEvent !== null) {\n throw _makeInternalError(`${beforeSendLabel} must return \\`null\\` or a valid event.`);\n }\n const dropMessage =\n beforeSendDropReason === 'ignored'\n ? 'Transaction matched `ignoreSpans`'\n : `${beforeSendLabel} ${beforeSendDropReason === 'callback_error' ? 'threw an error' : 'returned `null`'}`;\n throw _makeDoNotSendEventError(`${dropMessage}, will not send event.`);\n }\n\n if (isError && session) {\n this._updateSessionFromEvent(session, processedEvent);\n }\n\n if (isSampledOut) {\n this.recordDroppedEvent('sample_rate', 'error');\n throw _makeSampledOutError(sampleRate);\n }\n\n if (isTransaction) {\n const droppedSpanCount = preparedSpanCount - ignoredSpanCount - (processedEvent.spans?.length || 0);\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\ntype BeforeSendDropReason = 'before_send' | 'callback_error' | 'ignored';\n\n/**\n * Process the matching `beforeSendXXX` callback.\n */\nfunction processBeforeSend(\n options: ClientOptions,\n event: Event,\n hint: EventHint,\n onDrop: (reason: Exclude) => void,\n onIgnoredSpans: (count: number) => void,\n): PromiseLike | Event | null {\n const {\n beforeSend,\n ignoreSpans,\n // oxlint-disable-next-line typescript/no-deprecated\n beforeSendTransaction,\n } = options;\n const beforeSendSpan = isStaticBeforeSendSpanCallback(options.beforeSendSpan) && options.beforeSendSpan;\n\n let processedEvent = event;\n\n if (isErrorEvent(processedEvent) && beforeSend) {\n const errorEvent = processedEvent;\n return safeCallback(\n DEBUG_BUILD ? 'The `beforeSend` callback threw an error, dropping the event:' : '',\n () => beforeSend(errorEvent, hint),\n () => {\n onDrop('callback_error');\n return null;\n },\n );\n }\n\n if (isTransactionEvent(processedEvent)) {\n // Avoid processing if we don't have to\n if (beforeSendSpan || ignoreSpans) {\n // 1. Process root span\n const rootSpanJson = convertTransactionEventToSpanJson(processedEvent);\n\n // 1.1 If the root span should be ignored, drop the whole transaction\n if (\n ignoreSpans?.length &&\n shouldIgnoreSpan(\n { description: rootSpanJson.description, op: rootSpanJson.op, attributes: rootSpanJson.data },\n ignoreSpans,\n )\n ) {\n onDrop('ignored');\n return null;\n }\n\n // 1.2 If a `beforeSendSpan` callback is defined, process the root span\n if (beforeSendSpan) {\n const processedRootSpanJson = applyBeforeSendSpanCallback(rootSpanJson, beforeSendSpan);\n // update event with processed root span values\n processedEvent = merge(event, convertSpanJsonToTransactionEvent(processedRootSpanJson));\n }\n\n // 2. Process child spans\n if (processedEvent.spans) {\n const processedSpans: SpanJSON[] = [];\n\n const initialSpans = processedEvent.spans;\n\n for (const span of initialSpans) {\n // 2.a If the child span should be ignored, reparent it to the root span\n if (\n ignoreSpans?.length &&\n shouldIgnoreSpan({ description: span.description, op: span.op, attributes: span.data }, ignoreSpans)\n ) {\n reparentChildSpans(initialSpans, span);\n continue;\n }\n\n // 2.b If a `beforeSendSpan` callback is defined, process the child span\n if (beforeSendSpan) {\n processedSpans.push(applyBeforeSendSpanCallback(span, beforeSendSpan));\n } else {\n processedSpans.push(span);\n }\n }\n\n onIgnoredSpans(initialSpans.length - processedSpans.length);\n processedEvent.spans = processedSpans;\n }\n }\n\n if (beforeSendTransaction) {\n return safeCallback(\n DEBUG_BUILD ? 'The `beforeSendTransaction` callback threw an error, dropping the event:' : '',\n () => beforeSendTransaction(processedEvent as TransactionEvent, hint),\n () => {\n onDrop('callback_error');\n return null;\n },\n );\n }\n }\n\n return processedEvent;\n}\n\nfunction isErrorEvent(event: Event): event is ErrorEvent {\n return event.type === undefined;\n}\n\nfunction isTransactionEvent(event: Event): event is TransactionEvent {\n return event.type === 'transaction';\n}\n", "import type { Client } from './client';\nimport { isClientClosed } from './client';\nimport { getClient, getCurrentScope } from './currentScopes';\nimport { DEBUG_BUILD } from './debug-build';\nimport type { ClientOptions } from './types/options';\nimport { consoleSandbox, debug } from './utils/debug-logger';\n\n/** A class object that can instantiate Client objects. */\nexport type ClientClass = 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 warnIfClientIsActive();\n\n const scope = getCurrentScope();\n scope.update(options.initialScope);\n\n const client = new clientClass(options);\n setCurrentClient(client);\n client.init();\n return client;\n}\n\n/**\n * Returns the client bound to the current scope, unless it is closed.\n *\n * @hidden\n */\nexport function getActiveClient(): C | undefined {\n const client = getClient();\n return client && !isClientClosed(client) ? client : undefined;\n}\n\n/**\n * Warns when `init()` runs while a client is still bound. The new client\n * replaces it, but the old client stays alive, so the two can mix state.\n *\n * @hidden\n */\nexport function warnIfClientIsActive(): void {\n if (getActiveClient()) {\n consoleSandbox(() => {\n // TODO(#24883): Point apps that share a page with another app to the\n // isolated client helper, once that PR settles its name.\n // eslint-disable-next-line no-console\n console.warn(\n '[Sentry] `Sentry.init()` was called more than once. The new client replaces the active client, but the active client is not closed, so state from both can mix. Call `Sentry.init()` only once, or call `await Sentry.close()` before you call it again.',\n );\n });\n }\n}\n\n/**\n * Make the given client the current client.\n */\nexport function setCurrentClient(client: Client): void {\n getCurrentScope().setClient(client);\n}\n", "import type { 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 — falling back to `getClient()` resolves\n * against the current scope, which is the wrong client in a multi-client setup.\n */\nexport function filterCollectedUrl(url: string, client?: Client): string;\nexport function filterCollectedUrl(url: string | undefined, client?: Client): string | undefined;\nexport function filterCollectedUrl(url: string | undefined, client?: Client): string | undefined {\n return url === undefined ? undefined : filterUrlQuery(url, urlQueryParamsBehavior(client));\n}\n\n/**\n * Applies `dataCollection.urlQueryParams` to a query string the SDK collected itself, for use as\n * `url.query`. Returns `undefined` when the query must not be collected at all.\n *\n * See {@link filterCollectedUrl} for why this is a helper and why passing `client` is preferred.\n */\nexport function filterCollectedUrlQuery(query: string | undefined, client?: Client): string | undefined {\n return query ? filterQueryParams(query, urlQueryParamsBehavior(client)) : undefined;\n}\n", "import {\n HTTP_REQUEST_METHOD,\n HTTP_ROUTE,\n SERVER_ADDRESS,\n URL_DOMAIN,\n URL_FRAGMENT,\n URL_FULL,\n URL_PATH,\n URL_PORT,\n URL_QUERY,\n SENTRY_SEGMENT_NAME_SOURCE,\n URL_SCHEME,\n URL_TEMPLATE,\n SENTRY_ORIGIN,\n} from '@sentry/conventions/attributes';\nimport type { Client } from '../client';\nimport type { SpanAttributes } from '../types/span';\nimport type { TransactionSource } from '../types/transaction';\nimport { filterCollectedUrl, filterCollectedUrlQuery } from './data-collection/filterCollectedUrl';\n\ntype PartialURL = {\n host?: string;\n path?: string;\n protocol?: string;\n relative?: string;\n search?: string;\n hash?: string;\n};\n\ninterface URLwithCanParse extends URL {\n canParse: (url: string, base?: string | URL | undefined) => boolean;\n}\n\n// A subset of the URL object that is valid for relative URLs\n// The URL object cannot handle relative URLs, so we need to handle them separately\ntype RelativeURL = {\n isRelative: true;\n pathname: URL['pathname'];\n search: URL['search'];\n hash: URL['hash'];\n};\n\ntype URLObject = RelativeURL | URL;\n\n// Curious about `thismessage:/`? See: https://www.rfc-editor.org/rfc/rfc2557.html\n// > When the methods above do not yield an absolute URI, a base URL\n// > of \"thismessage:/\" MUST be employed. This base URL has been\n// > defined for the sole purpose of resolving relative references\n// > within a multipart/related structure when no other base URI is\n// > specified.\n//\n// We need to provide a base URL to `parseStringToURLObject` because the fetch API gives us a\n// relative URL sometimes.\n//\n// This is the only case where we need to provide a base URL to `parseStringToURLObject`\n// because the relative URL is not valid on its own.\nconst DEFAULT_BASE_URL = 'thismessage:/';\n\n/**\n * Checks if the URL object is relative\n *\n * @param url - The URL object to check\n * @returns True if the URL object is relative, false otherwise\n */\nexport function isURLObjectRelative(url: URLObject): url is RelativeURL {\n return 'isRelative' in url;\n}\n\n/**\n * Parses string to a URL object\n *\n * @param url - The URL to parse\n * @returns The parsed URL object or undefined if the URL is invalid\n */\nexport function parseStringToURLObject(url: string, urlBase?: string | URL | undefined): URLObject | undefined {\n const isRelative = url.indexOf('://') <= 0 && url.indexOf('//') !== 0;\n const base = urlBase ?? (isRelative ? DEFAULT_BASE_URL : undefined);\n try {\n // Use `canParse` to short-circuit the URL constructor if it's not a valid URL\n // This is faster than trying to construct the URL and catching the error\n // Node 20+, Chrome 120+, Firefox 115+, Safari 17+\n if ('canParse' in URL && !(URL as unknown as URLwithCanParse).canParse(url, base)) {\n return undefined;\n }\n\n const fullUrlObject = new URL(url, base);\n if (isRelative) {\n // Because we used a fake base URL, we need to return a relative URL object.\n // We cannot return anything about the origin, host, etc. because it will refer to the fake base URL.\n return {\n isRelative,\n pathname: fullUrlObject.pathname,\n search: fullUrlObject.search,\n hash: fullUrlObject.hash,\n };\n }\n return fullUrlObject;\n } catch {\n // empty body\n }\n\n return undefined;\n}\n\n/**\n * Takes a URL object and returns a sanitized string which is safe to use as span name\n * see: https://develop.sentry.dev/sdk/data-handling/#structuring-data\n */\nexport function getSanitizedUrlStringFromUrlObject(url: URLObject): string {\n if (isURLObjectRelative(url)) {\n return url.pathname;\n }\n\n const newUrl = new URL(url);\n newUrl.search = '';\n newUrl.hash = '';\n if (['80', '443'].includes(newUrl.port)) {\n newUrl.port = '';\n }\n if (newUrl.password) {\n newUrl.password = '%filtered%';\n }\n if (newUrl.username) {\n newUrl.username = '%filtered%';\n }\n\n return newUrl.toString();\n}\n\n/**\n * Normalizes a query string for the `url.query` attribute, which is specced without the leading `?`.\n *\n * Accepts either a raw query string (`URL.search`, which includes the `?`) or an already-stripped one.\n * Empty results become `undefined` so callers can assign the return value to an attribute\n * unconditionally — setting an attribute to `undefined` is a no-op.\n */\nexport function getUrlQuery(query: string | undefined): string | undefined {\n return query?.replace(/^\\?/, '') || undefined;\n}\n\n/**\n * Normalizes a fragment for the `url.fragment` attribute, which is specced without the leading `#`.\n *\n * Accepts either a raw fragment (`URL.hash`, which includes the `#`) or an already-stripped one.\n * Empty results become `undefined` so callers can assign the return value to an attribute\n * unconditionally — setting an attribute to `undefined` is a no-op.\n */\nexport function getUrlFragment(fragment: string | undefined): string | undefined {\n return fragment?.replace(/^#/, '') || undefined;\n}\n\n/**\n * The domain a request goes to, for the `url.domain` attribute and low-cardinality span names.\n *\n * Relative URLs need a `base` to resolve against — browsers have the page origin, server runtimes do\n * not. URLs with no domain at all, such as data URLs, return `undefined`.\n */\nexport function getUrlDomain(url: string, base?: string): string | undefined {\n try {\n return new URL(url, base).hostname || undefined;\n } catch {\n return undefined;\n }\n}\n\ntype PartialRequest = {\n method?: string;\n};\n\nfunction getHttpSpanNameFromUrlObject(\n urlObject: URLObject | undefined,\n kind: 'server' | 'client',\n request?: PartialRequest,\n routeName?: string,\n): string {\n const method = request?.method?.toUpperCase() ?? 'GET';\n const route = routeName\n ? routeName\n : urlObject\n ? kind === 'client'\n ? getSanitizedUrlStringFromUrlObject(urlObject)\n : urlObject.pathname\n : '/';\n\n return `${method} ${route}`;\n}\n\n/**\n * Takes a parsed URL object and returns a set of attributes for the span\n * that represents the HTTP request for that url. This is used for both server\n * and client http spans.\n *\n * Follows https://opentelemetry.io/docs/specs/semconv/http/.\n *\n * @param urlObject - see {@link parseStringToURLObject}\n * @param kind - The type of HTTP operation (server or client)\n * @param spanOrigin - The origin of the span\n * @param request - The request object, see {@link PartialRequest}\n * @param routeName - The name of the route, must be low cardinality\n * @param client - The client the span belongs to, used to resolve `dataCollection.urlQueryParams`.\n * Falls back to the current scope's client when omitted, which is the wrong one in a multi-client setup.\n * @returns The span name and attributes for the HTTP operation\n */\nexport function getHttpSpanDetailsFromUrlObject(\n urlObject: URLObject | undefined,\n kind: 'server' | 'client',\n spanOrigin: string,\n request?: PartialRequest,\n routeName?: string,\n client?: Client,\n): [name: string, attributes: SpanAttributes] {\n const attributes: SpanAttributes = {\n [SENTRY_ORIGIN]: spanOrigin,\n };\n\n let nameSource: TransactionSource = 'url';\n\n if (routeName) {\n // This is based on https://opentelemetry.io/docs/specs/semconv/http/http-spans/#name\n attributes[kind === 'server' ? HTTP_ROUTE : URL_TEMPLATE] = routeName;\n nameSource = 'route';\n }\n\n if (request?.method) {\n attributes[HTTP_REQUEST_METHOD] = request.method.toUpperCase();\n }\n\n if (urlObject) {\n // Relative URLs have no meaningful `href`, so fall back to the sanitized path.\n attributes[URL_FULL] = filterCollectedUrl(\n isURLObjectRelative(urlObject) ? getSanitizedUrlStringFromUrlObject(urlObject) : urlObject.href,\n client,\n );\n\n attributes[URL_QUERY] = filterCollectedUrlQuery(getUrlQuery(urlObject.search), client);\n attributes[URL_FRAGMENT] = getUrlFragment(urlObject.hash);\n if (urlObject.pathname) {\n attributes[URL_PATH] = urlObject.pathname;\n if (urlObject.pathname === '/') {\n nameSource = 'route';\n }\n }\n\n if (!isURLObjectRelative(urlObject)) {\n if (urlObject.port) {\n attributes[URL_PORT] = Number(urlObject.port);\n }\n if (urlObject.protocol) {\n attributes[URL_SCHEME] = urlObject.protocol.replace(/:$/, '');\n }\n if (urlObject.hostname) {\n attributes[kind === 'server' ? SERVER_ADDRESS : URL_DOMAIN] = urlObject.hostname;\n }\n }\n }\n\n // Outgoing HTTP (`kind === 'client'`) is not a segment span. Incoming HTTP usually is;\n // if it is nested under a local parent, `addChildSpanToSpan` strips this attribute.\n if (kind === 'server') {\n attributes[SENTRY_SEGMENT_NAME_SOURCE] = nameSource;\n }\n\n return [getHttpSpanNameFromUrlObject(urlObject, kind, request, routeName), attributes];\n}\n\n/**\n * Parses string form of URL into an object\n * // borrowed from https://tools.ietf.org/html/rfc3986#appendix-B\n * // intentionally using regex and not href parsing trick because React Native and other\n * // environments where DOM might not be available\n * @returns parsed URL object\n */\nexport function parseUrl(url: string): PartialURL {\n if (!url) {\n return {};\n }\n\n const match = url.match(/^(([^:/?#]+):)?(\\/\\/([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$/);\n\n if (!match) {\n return {};\n }\n\n // coerce to undefined values to empty string so we don't get 'undefined'\n const query = match[6] || '';\n const fragment = match[8] || '';\n return {\n host: match[4],\n path: match[5],\n protocol: match[2],\n search: query,\n hash: fragment,\n relative: match[5] + query + fragment, // everything minus origin\n };\n}\n\n/**\n * Strip the query string and fragment off of a given URL or path (if present)\n *\n * @param urlPath Full URL or path, including possible query string and/or fragment\n * @returns URL or path without query string or fragment\n */\nexport function stripUrlQueryAndFragment(urlPath: string): string {\n return (urlPath.split(/[?#]/, 1) as [string, ...string[]])[0];\n}\n\n/**\n * Takes a URL object and returns a sanitized string which is safe to use as span name\n * see: https://develop.sentry.dev/sdk/data-handling/#structuring-data\n */\nexport function getSanitizedUrlString(url: PartialURL): string {\n const { protocol, host, path } = url;\n\n const filteredHost =\n host\n // Always filter out authority\n ?.replace(/^.*@/, '[filtered]:[filtered]@')\n // Don't show standard :80 (http) and :443 (https) ports to reduce the noise\n // TODO: Use new URL global if it exists\n .replace(/(:80)$/, '')\n .replace(/(:443)$/, '') || '';\n\n // `parseUrl` returns `{}` for an empty or unparseable URL, and interpolating a missing path\n // would render the string 'undefined'.\n return `${protocol ? `${protocol}://` : ''}${filteredHost}${path || ''}`;\n}\n\n/**\n * Strips the content from a data URL, returning a placeholder with the MIME type.\n *\n * Data URLs can be very long (e.g. base64 encoded scripts for Web Workers),\n * with little valuable information, often leading to envelopes getting dropped due\n * to size limit violations. Therefore, we strip data URLs and replace them with a\n * placeholder.\n *\n * @param url - The URL to process\n * @param includeDataPrefix - If true, includes the first 10 characters of the data stream\n * for debugging (e.g., to identify magic bytes like WASM's AGFzbQ).\n * Defaults to true.\n * @returns For data URLs, returns a short format like `data:text/javascript;base64,SGVsbG8gV2... [truncated]`.\n * For non-data URLs, returns the original URL unchanged.\n */\nexport function stripDataUrlContent(url: string, includeDataPrefix: boolean = true): string {\n if (url.startsWith('data:')) {\n // Match the MIME type (everything after 'data:' until the first ';' or ',')\n const match = url.match(/^data:([^;,]+)/);\n const mimeType = match ? match[1] : 'text/plain';\n const isBase64 = url.includes(';base64,');\n\n // Find where the actual data starts (after the comma)\n const dataStart = url.indexOf(',');\n let dataPrefix = '';\n if (includeDataPrefix && dataStart !== -1) {\n const data = url.slice(dataStart + 1);\n // Include first 10 chars of data to help identify content (e.g., magic bytes)\n dataPrefix = data.length > 10 ? `${data.slice(0, 10)}... [truncated]` : data;\n }\n\n return `data:${mimeType}${isBase64 ? ',base64' : ''}${dataPrefix ? `,${dataPrefix}` : ''}`;\n }\n return url;\n}\n", "/**\n * 32-bit FNV-1a. Keep this algorithm stable: tunnel paths must match across SDK versions.\n */\nexport function fnv1a32(input: string): string {\n let hash = 0x811c9dc5;\n for (let i = 0; i < input.length; i++) {\n // eslint-disable-next-line no-bitwise\n hash ^= input.charCodeAt(i);\n hash = Math.imul(hash, 0x01000193);\n }\n\n // eslint-disable-next-line no-bitwise\n return (hash >>> 0).toString(36);\n}\n", "import type { Client } from '../client';\nimport { getClient } from '../currentScopes';\nimport { URL_PATH } from '@sentry/conventions/attributes';\nimport type { DsnComponents, DsnLike } from '../types/dsn';\nimport type { IgnoreSpanFilter, ServerTunnelOptions, TunnelInit, TunnelOptions } from '../types/options';\nimport { DEBUG_BUILD } from '../debug-build';\nimport { escapeStringForRegex } from '../vendor/escapeStringForRegex';\nimport { debug } from './debug-logger';\nimport { dsnToString, makeDsn } from './dsn';\nimport { fnv1a32 } from './hash';\nimport { getClientTunnel, setClientTunnel } from './tunnelStore';\nimport { parseUrl } from './url';\n\n/**\n * Forwards a tunnel request to Sentry. Only `serveTunnelIntegration` brings it in, so apps without a tunnel don't bundle it.\n */\nexport type TunnelForwarder = (request: Request, allowedDsns: Array) => Promise;\n\n/**\n * A server client's tunnel paths, base path, allowed DSNs and forwarder, computed once per client.\n */\nexport interface ServedTunnel extends TunnelMatch {\n forward: TunnelForwarder;\n /** Whether the SDK answers tunnel requests itself, see `ServerTunnelOptions.intercept`. */\n intercept: boolean;\n}\n\n/**\n * Computes a server client's served tunnel from its resolved options, and stores it.\n */\nexport function setServedTunnel(\n client: Client,\n tunnelOptions: ServerTunnelOptions,\n forward: TunnelForwarder,\n): ServedTunnel {\n const allowedDsns = resolveAllowedDsns(tunnelOptions.allowedDsns, client.getDsn());\n const servedTunnel = {\n paths: resolveTunnelPaths(tunnelOptions, allowedDsns),\n basePath: tunnelOptions.basePath,\n allowedDsns,\n forward,\n intercept: tunnelOptions.intercept !== false,\n };\n setClientTunnel(client, { served: servedTunnel });\n\n return servedTunnel;\n}\n\n/**\n * The active client's served tunnel. It lives in the tunnel store, so a copy of this module that didn't set it up,\n * like the one a bundler gives Next.js's middleware next to its `instrumentation`, still finds it.\n */\nexport function getServedTunnel(client = getClient()): ServedTunnel | undefined {\n return client && getClientTunnel(client)?.served;\n}\n\n/**\n * Fills in framework defaults (like the base path) for a managed tunnel on the DSN-derived path. User options win.\n * A path the user wrote, as a string or `path`, is used as written, so a tunnel served outside the app keeps working.\n * The base path is normalized, and a root one is no default at all.\n */\nexport function applyBrowserTunnelDefaults(\n tunnel: TunnelInit | undefined,\n defaults: TunnelOptions | undefined,\n): TunnelInit | undefined {\n if (!tunnel || typeof tunnel === 'string' || (tunnel !== true && tunnel.path)) {\n return tunnel;\n }\n\n const { basePath, ...rest } = defaults ?? {};\n const normalizedBasePath = normalizeTunnelBasePath(basePath);\n const resolvedDefaults: TunnelOptions = normalizedBasePath ? { ...rest, basePath: normalizedBasePath } : rest;\n if (!Object.keys(resolvedDefaults).length) {\n return tunnel;\n }\n\n return { ...resolvedDefaults, ...(tunnel === true ? {} : tunnel) };\n}\n\n/**\n * Returns the same-origin tunnel path for a DSN, e.g. `/k3x9q2a`, by default the active client's. Browser and server\n * derive it independently, and as a hash it gives ad-blocker filter lists nothing to match.\n */\nexport function getTunnelPath(dsn?: DsnLike): string | undefined {\n const components = dsn ? makeDsn(dsn) : getClient()?.getDsn();\n\n return components ? `/${fnv1a32(dsnToString(components))}` : undefined;\n}\n\n/**\n * The parts of a request the tunnel match reads. Satisfied by a fetch `Request` and Node's `IncomingMessage`.\n */\nexport interface TunnelRequestLike {\n method?: string;\n /** Absolute URL or path with query, e.g. Node's `IncomingMessage.url`. */\n url?: string;\n}\n\n/**\n * Returns the active server client's tunnel paths, relative to its base path. For frameworks that can only register\n * routes; everything else uses {@link handleTunnelRequestIfMatched}.\n */\nexport function getTunnelPaths(): string[] {\n return getServedTunnel()?.paths ?? [];\n}\n\n/**\n * The paths a managed tunnel is served at: the fixed `path`, or else one per allowed DSN.\n */\nexport function resolveTunnelPaths(tunnelOptions: ServerTunnelOptions, allowedDsns: Array): string[] {\n // A root path would take over every POST to the app's root, so it falls back to the DSN-derived ones.\n const fixedPath = tunnelOptions.path?.replace(/\\/$/, '');\n if (fixedPath) {\n return [fixedPath];\n }\n\n // Differently written DSNs can hash to the same path.\n const paths = allowedDsns.map(dsn => getTunnelPath(dsn));\n\n return [...new Set(paths.filter((path): path is string => !!path))];\n}\n\n/**\n * `ignoreSpans` filters for the server spans of tunnel requests. They match `url.path` and the legacy `http.url`,\n * which some framework spans start with (SvelteKit's `sveltekit.handle.root`).\n */\nexport function getTunnelIgnoreSpanFilters(tunnelOptions: TunnelOptions, paths: string[]): IgnoreSpanFilter[] {\n if (!paths.length) {\n return [];\n }\n\n const basePath = escapeStringForRegex(normalizeTunnelBasePath(tunnelOptions.basePath));\n const pathPattern = `${basePath}(?:${paths.map(escapeStringForRegex).join('|')})/?`;\n\n return [\n // oxlint-disable-next-line sdk/no-regexp-constructor -- built from escaped config values, not end user input\n { attributes: { [URL_PATH]: new RegExp(`^${pathPattern}$`) } },\n // oxlint-disable-next-line sdk/no-regexp-constructor -- built from escaped config values, not end user input\n { attributes: { 'http.url': new RegExp(`^[a-z][a-z\\\\d+.-]*://[^/]+${pathPattern}(?:[?#].*)?$`) } },\n ];\n}\n\n/**\n * Normalizes a base path to `/app`, or `''` for the root.\n */\nexport function normalizeTunnelBasePath(basePath: string | undefined): string {\n const path = (basePath?.startsWith('./') ? basePath.slice(1) : (basePath ?? '')).replace(/\\/$/, '');\n\n return !path || path.startsWith('/') ? path : `/${path}`;\n}\n\n/**\n * The paths, base path and allowed DSNs of a tunnel to match requests against.\n */\ninterface TunnelMatch {\n paths: string[];\n basePath?: string;\n allowedDsns: string[];\n}\n\n/**\n * Resolves the tunnel the public helpers match: `options`, else the one `serveTunnelIntegration` serves, else the\n * path of the active client's own DSN.\n */\nexport function resolveTunnelMatch(options?: ServerTunnelOptions): TunnelMatch {\n const servedTunnel = !options && getServedTunnel();\n if (servedTunnel) {\n return servedTunnel;\n }\n\n const allowedDsns = resolveAllowedDsns(options?.allowedDsns, getClient()?.getDsn());\n\n return { paths: resolveTunnelPaths(options ?? {}, allowedDsns), basePath: options?.basePath, allowedDsns };\n}\n\n/**\n * Returns true if the request is a POST to one of the tunnel's paths.\n */\nexport function matchesTunnel(request: TunnelRequestLike, tunnel: Omit): boolean {\n if (request.method !== 'POST' || !request.url) {\n return false;\n }\n\n const path = stripBasePath(parseUrl(request.url).path || '/', tunnel.basePath);\n\n return path !== undefined && tunnel.paths.includes(path.replace(/\\/$/, ''));\n}\n\n/**\n * Returns true if the request is a POST to the managed tunnel. The tunnel comes from `options`, else from\n * `serveTunnelIntegration`, else it's the path of the active client's own DSN.\n */\nexport function isTunnelRequest(request: TunnelRequestLike, options?: ServerTunnelOptions): boolean {\n return matchesTunnel(request, resolveTunnelMatch(options));\n}\n\n/**\n * Returns true if the request targets the tunnel `serveTunnelIntegration` serves, whether the SDK answers it or the\n * app does with `intercept: false`. The server SDKs record no session or span for these. Unlike\n * {@link isTunnelRequest}, there's no fallback, so the framework SDKs serve nothing without the integration. `client`\n * defaults to the active one.\n */\nexport function isServedTunnelRequest(request: TunnelRequestLike, client?: Client): boolean {\n try {\n return !!matchServedTunnel(request, client);\n } catch (error) {\n DEBUG_BUILD && debug.error('Sentry tunnel: failed to match a request', error);\n\n return false;\n }\n}\n\n/**\n * The served tunnel, if the SDK answers this request on it. `client` defaults to the active one.\n */\nexport function getServedTunnelMatch(request: TunnelRequestLike, client?: Client): ServedTunnel | undefined {\n const servedTunnel = matchServedTunnel(request, client);\n\n return servedTunnel?.intercept ? servedTunnel : undefined;\n}\n\n/**\n * The served tunnel, if this request targets it.\n */\nfunction matchServedTunnel(request: TunnelRequestLike, client?: Client): ServedTunnel | undefined {\n const servedTunnel = getServedTunnel(client);\n\n return servedTunnel?.allowedDsns.length && matchesTunnel(request, servedTunnel) ? servedTunnel : undefined;\n}\n\n/**\n * Forwards the request if it targets the tunnel `serveTunnelIntegration` serves, otherwise returns `undefined`. The\n * runtime and framework SDKs answer tunnel requests with it, ahead of the app.\n *\n * It never throws, since a throw here would break the app's own requests. Until a request is claimed, a failure hands\n * it to the app. Once claimed, its body may be read already, so a failure ends in a 502 instead. `client` defaults to\n * the active one.\n */\nexport function handleServedTunnelRequest(request: Request, client?: Client): Promise | undefined {\n let servedTunnel: ServedTunnel | undefined | null;\n try {\n // An envelope always has a body, so a request without one is never a tunnel request.\n servedTunnel = request.body && getServedTunnelMatch(request, client);\n if (!servedTunnel) {\n return undefined;\n }\n } catch (error) {\n DEBUG_BUILD && debug.error('Sentry tunnel: failed to match a request', error);\n\n return undefined;\n }\n\n // Claimed from here on, so even a `forward` that throws right away ends in a 502.\n const { forward, allowedDsns } = servedTunnel;\n\n return Promise.resolve()\n .then(() => forward(request, allowedDsns))\n .catch(error => {\n DEBUG_BUILD && debug.error('Sentry tunnel: failed to forward a request', error);\n\n return new Response(null, { status: 502 });\n });\n}\n\n/**\n * `allowedDsns` plus the server's own DSN, which is always allowed.\n */\nexport function resolveAllowedDsns(\n allowedDsns: Array | undefined,\n ownDsn: DsnComponents | undefined,\n): Array {\n // Normalized like the envelope header's DSN, which has no secret key.\n const dsns = new Set();\n for (const components of [...(allowedDsns ?? []).map(dsn => makeDsn(dsn)), ownDsn]) {\n if (components) {\n dsns.add(dsnToString(components));\n }\n }\n\n return [...dsns];\n}\n\n/**\n * Returns the path below `basePath`, or `undefined` outside it.\n */\nfunction stripBasePath(pathname: string, basePath: string | undefined): string | undefined {\n const base = normalizeTunnelBasePath(basePath);\n if (!base) {\n return pathname;\n }\n\n return pathname === base || pathname.startsWith(`${base}/`) ? pathname.slice(base.length) : undefined;\n}\n", "import type { Session, SessionAggregates } from '../types/session';\n\n// By default, we want to infer the IP address, unless this is explicitly set to `null`\n// We do this after all other processing is done\n// If `ip_address` is explicitly set to `null` or a value, we leave it as is\n\n/**\n * @internal\n */\nexport function addAutoIpAddressToSession(session: Session | SessionAggregates): void {\n if ('aggregates' in session) {\n if (session.attrs?.['ip_address'] === undefined) {\n session.attrs = {\n ...session.attrs,\n ip_address: '{{auto}}',\n };\n }\n } else {\n if (session.ipAddress === undefined) {\n session.ipAddress = '{{auto}}';\n }\n }\n}\n", "import type { CoreOptions } from '../types/options';\nimport { SDK_VERSION } from '../utils/version';\n\n/**\n * Preserve user-provided option keys before SDK wrappers add defaults.\n * @internal\n */\nexport function captureOptionsSetByUser>(options: T): T {\n if (options._metadata?.optionsSetByUser) {\n return options;\n }\n\n return {\n ...options,\n _metadata: {\n ...options._metadata,\n optionsSetByUser: Object.keys(options)\n .filter(key => key !== '_metadata')\n .sort(),\n },\n };\n}\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 type { SerializedTraceData } from '../types/tracing';\nimport { getTraceData } from './traceData';\n\n/**\n * Returns a string of meta tags that represent the current trace data.\n *\n * You can use this to propagate a trace from your server-side rendered Html to the browser.\n * This function returns up to two meta tags, `sentry-trace` and `baggage`, depending on the\n * current trace data state.\n *\n * @example\n * Usage example:\n *\n * ```js\n * function renderHtml() {\n * return `\n * \n * ${getTraceMetaTags()}\n * \n * `;\n * }\n * ```\n *\n */\nexport function getTraceMetaTags(traceData?: SerializedTraceData): string {\n return (\n Object.entries(traceData || getTraceData())\n .map(([key, value]) => ``)\n // Joined without whitespace on purpose: a separator between the tags becomes a text node when\n // injected into ``, which breaks React 19 whole-document hydration (#21915).\n .join('')\n );\n}\n\n/**\n * The name of the meta tag that gives the release to the browser SDK. Framework SDKs write it into each page\n * instead of injecting the release into the client chunks, where it would change their content hashes on every\n * release.\n */\nexport const RELEASE_META_TAG_NAME = 'sentry-release';\n\n/**\n * Returns the meta tag that gives `release` to the browser SDK.\n */\nexport function getReleaseMetaTag(release: string): string {\n return ``;\n}\n\nfunction escapeHtmlAttribute(value: string): string {\n return value.replace(/&/g, '&').replace(/\"/g, '"').replace(//g, '>');\n}\n", "import { getClient, getIsolationScope } from './currentScopes';\nimport { DEBUG_BUILD } from './debug-build';\nimport type { Breadcrumb, BreadcrumbHint } from './types/breadcrumb';\nimport { consoleSandbox } from './utils/debug-logger';\nimport { safeCallback } from './utils/safeCallback';\nimport { dateTimestampInSeconds } from './utils/time';\n\n/**\n * Default maximum number of breadcrumbs added to an event. Can be overwritten\n * with {@link Options.maxBreadcrumbs}.\n */\nconst DEFAULT_BREADCRUMBS = 100;\n\n/**\n * Records a new breadcrumb which will be attached to future events.\n *\n * Breadcrumbs will be added to subsequent events to provide more context on\n * user's actions prior to an error or crash.\n */\nexport function addBreadcrumb(breadcrumb: Breadcrumb, hint?: BreadcrumbHint): void {\n const client = getClient();\n const isolationScope = getIsolationScope();\n\n if (!client) return;\n\n const { beforeBreadcrumb = null, maxBreadcrumbs = DEFAULT_BREADCRUMBS } = client.getOptions();\n\n if (maxBreadcrumbs <= 0) return;\n\n const timestamp = dateTimestampInSeconds();\n const mergedBreadcrumb = { timestamp, ...breadcrumb };\n const finalBreadcrumb = beforeBreadcrumb\n ? safeCallback(\n DEBUG_BUILD ? 'The `beforeBreadcrumb` callback threw an error, dropping the breadcrumb:' : '',\n () => consoleSandbox(() => beforeBreadcrumb(mergedBreadcrumb, hint)),\n () => null,\n )\n : mergedBreadcrumb;\n\n if (finalBreadcrumb === null) return;\n\n if (client.emit) {\n client.emit('beforeAddBreadcrumb', finalBreadcrumb, hint);\n }\n\n isolationScope.addBreadcrumb(finalBreadcrumb, maxBreadcrumbs);\n}\n", "import type { 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 // Bound once so calls neither look up a page-replaceable `apply` nor copy arguments, which native toString ignores\n const callOriginalFunctionToString = Function.prototype.call.bind(originalFunctionToString) as (\n thisArg: unknown,\n ) => string;\n // eslint-disable-next-line @typescript-eslint/unbound-method\n const hasOwnProperty = Function.prototype.call.bind(Object.prototype.hasOwnProperty) as (\n obj: unknown,\n key: PropertyKey,\n ) => boolean;\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): string {\n let unwrappedFunction: WrappedFunction | undefined;\n\n try {\n // `markFunctionWrapped` sets the original as an own property. An inherited lookup could walk a\n // prototype chain that loops through a Proxy and overflow the stack, which native `toString` never does.\n if (SETUP_CLIENTS.has(getClient() as Client) && hasOwnProperty(this, '__sentry_original__')) {\n unwrappedFunction = getOriginalFunction(this);\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, and Proxy traps on\n // `this` can throw too. The native `toString` never throws here, so fall back to it to avoid turning\n // harmless introspection into noise.\n }\n\n return callOriginalFunctionToString(unwrappedFunction ?? this);\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 { 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\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 (newExceptions.length < limit + 1 && 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 // SuppressedError (explicit resource management) wraps two errors: `error` (the new one thrown during disposal)\n // and `suppressed` (the original one it replaced).\n // https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/SuppressedError\n\n if (isSuppressedError(error)) {\n ['error', 'suppressed'].forEach(property => {\n const childError = error[property];\n if (newExceptions.length < limit + 1 && isError(childError)) {\n applyExceptionGroupFieldsForParentException(exception, exceptionId, error);\n const newException = exceptionFromErrorImplementation(parser, childError);\n const newExceptionId = newExceptions.length;\n applyExceptionGroupFieldsForChildException(newException, property, 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 isSuppressedError(error: ExtendedError): boolean {\n return 'error' in error && 'suppressed' in error;\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, isPrimitive } from './is';\nimport { addExceptionMechanism, addExceptionTypeValue } from './misc';\nimport { normalizeToSize, stringifyValue } from './normalize';\nimport { extractExceptionKeysForMessage } from './object';\nimport { stringify } from './string';\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 const message = errorMessageToString(error.message);\n\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 `${message} (${error.__sentry_fetch_url_host__})`;\n }\n\n return message;\n}\n\n// `message` is typed as a string, but user code can assign anything to it, and event processors\n// call string methods on `exception.value`.\nfunction errorMessageToString(message: unknown): string {\n if (typeof message === 'string') {\n return message;\n }\n\n if (message == null) {\n return '';\n }\n\n if (isPrimitive(message)) {\n return String(message);\n }\n\n if (isPlainObject(message) || Array.isArray(message)) {\n const json = stringify(message, '');\n if (json) {\n return json;\n }\n }\n\n return stringifyValue(undefined, 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 });\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 { debug } from '../utils/debug-logger';\nimport { getFramesFromEvent } from '../utils/stacktrace';\n\nconst INTEGRATION_NAME = 'Dedupe' as const;\n\nconst _dedupeIntegration = (() => {\n let previousEvent: Event | undefined;\n\n return {\n name: INTEGRATION_NAME,\n processEvent(currentEvent) {\n // We want to ignore any non-error type events, e.g. transactions or replays\n // These should never be deduped, and also not be compared against as _previousEvent.\n if (currentEvent.type) {\n return currentEvent;\n }\n\n // Juuust in case something goes wrong\n try {\n if (_shouldDropEvent(currentEvent, previousEvent)) {\n DEBUG_BUILD && debug.warn('Event dropped due to being a duplicate of previously captured event.');\n return null;\n }\n } catch {} // eslint-disable-line no-empty\n\n return (previousEvent = currentEvent);\n },\n };\n}) satisfies IntegrationFn;\n\n/**\n * Drops an error or message event if it is equal to the previous error or message event.\n * Two events are equal if they have the same message (or the same exception type and value),\n * the same stack trace and the same fingerprint.\n *\n * A repeated `captureException` of the same error object is dropped by the client, also without\n * this integration (see `checkOrSetAlreadyCaught`).\n */\nexport const dedupeIntegration = defineIntegration(_dedupeIntegration);\n\n/** only exported for tests. */\nexport function _shouldDropEvent(currentEvent: Event, previousEvent?: Event): boolean {\n if (!previousEvent) {\n return false;\n }\n\n if (_isSameMessageEvent(currentEvent, previousEvent)) {\n return true;\n }\n\n if (_isSameExceptionEvent(currentEvent, previousEvent)) {\n return true;\n }\n\n return false;\n}\n\nfunction _isSameMessageEvent(currentEvent: Event, previousEvent: Event): boolean {\n const currentMessage = currentEvent.message;\n const previousMessage = previousEvent.message;\n\n // If neither event has a message property, they were both exceptions, so bail out\n if (!currentMessage && !previousMessage) {\n return false;\n }\n\n // If only one event has a stacktrace, but not the other one, they are not the same\n if ((currentMessage && !previousMessage) || (!currentMessage && previousMessage)) {\n return false;\n }\n\n if (currentMessage !== previousMessage) {\n return false;\n }\n\n if (!_isSameFingerprint(currentEvent, previousEvent)) {\n return false;\n }\n\n if (!_isSameStacktrace(currentEvent, previousEvent)) {\n return false;\n }\n\n return true;\n}\n\nfunction _isSameExceptionEvent(currentEvent: Event, previousEvent: Event): boolean {\n const previousException = _getExceptionFromEvent(previousEvent);\n const currentException = _getExceptionFromEvent(currentEvent);\n\n if (!previousException || !currentException) {\n return false;\n }\n\n if (previousException.type !== currentException.type || previousException.value !== currentException.value) {\n return false;\n }\n\n if (!_isSameFingerprint(currentEvent, previousEvent)) {\n return false;\n }\n\n if (!_isSameStacktrace(currentEvent, previousEvent)) {\n return false;\n }\n\n return true;\n}\n\nfunction _isSameStacktrace(currentEvent: Event, previousEvent: Event): boolean {\n const currentFrames = getFramesFromEvent(currentEvent);\n const previousFrames = getFramesFromEvent(previousEvent);\n\n // If either event is missing a stacktrace, they are the same only if neither has one\n if (!currentFrames || !previousFrames) {\n return !currentFrames && !previousFrames;\n }\n\n // If number of frames differ, they are not the same\n if (previousFrames.length !== currentFrames.length) {\n return false;\n }\n\n // Otherwise, compare the two\n for (let i = 0; i < previousFrames.length; i++) {\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n const frameA = previousFrames[i]!;\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n const frameB = currentFrames[i]!;\n\n if (\n frameA.filename !== frameB.filename ||\n frameA.lineno !== frameB.lineno ||\n frameA.colno !== frameB.colno ||\n frameA.function !== frameB.function\n ) {\n return false;\n }\n }\n\n return true;\n}\n\nfunction _isSameFingerprint(currentEvent: Event, previousEvent: Event): boolean {\n const currentFingerprint = currentEvent.fingerprint;\n const previousFingerprint = previousEvent.fingerprint;\n\n // If either event is missing a fingerprint, they are the same only if neither has one\n if (!currentFingerprint || !previousFingerprint) {\n return !currentFingerprint && !previousFingerprint;\n }\n\n // Otherwise, compare the two\n try {\n return !!(currentFingerprint.join('') === previousFingerprint.join(''));\n } catch {\n return false;\n }\n}\n\nfunction _getExceptionFromEvent(event: Event): Exception | undefined {\n return event.exception?.values?.[0];\n}\n", "import { addBreadcrumb } from '../breadcrumbs';\nimport { getClient } from '../currentScopes';\nimport { addConsoleInstrumentationFilter, addConsoleInstrumentationHandler } from '../instrument/console';\nimport { defineIntegration } from '../integration';\nimport type { ConsoleLevel } from '../types/instrument';\nimport { CONSOLE_LEVELS } from '../utils/debug-logger';\nimport { severityLevelFromString } from '../utils/severity';\nimport { safeJoin } from '../utils/string';\nimport { GLOBAL_OBJ } from '../utils/worldwide';\n\ninterface ConsoleIntegrationOptions {\n levels: ConsoleLevel[];\n /**\n * Filter out console messages that match the given strings or regular expressions.\n * These will neither be passed to the handler, and they will also not be logged to the user, unless they have debug enabled.\n */\n filter?: (string | RegExp)[];\n}\n\ntype GlobalObjectWithUtil = typeof GLOBAL_OBJ & {\n util: {\n format: (...args: unknown[]) => string;\n };\n};\n\nconst INTEGRATION_NAME = 'Console' as const;\n\n/**\n * Captures calls to the `console` API as breadcrumbs in Sentry.\n *\n * By default the integration instruments `console.debug`, `console.info`, `console.warn`, `console.error`,\n * `console.log`, `console.trace`, and `console.assert`. You can use the `levels` option to customize which\n * levels are captured.\n *\n * @example\n *\n * ```js\n * Sentry.init({\n * integrations: [Sentry.consoleIntegration({ levels: ['error', 'warn'] })],\n * });\n * ```\n */\nexport const consoleIntegration = defineIntegration((options: Partial = {}) => {\n const levels = new Set(options.levels || CONSOLE_LEVELS);\n\n return {\n name: INTEGRATION_NAME,\n setup(client) {\n const unsubscribe = addConsoleInstrumentationHandler(({ args, level }) => {\n if (getClient() !== client || !levels.has(level)) {\n return;\n }\n\n addConsoleBreadcrumb(level, args);\n });\n client.registerCleanup(unsubscribe);\n\n if (options.filter) {\n const unsubscribe = addConsoleInstrumentationFilter(options.filter);\n client.registerCleanup(unsubscribe);\n }\n },\n };\n});\n\n/**\n * Capture a console breadcrumb.\n *\n * Exported just for tests.\n */\nexport function addConsoleBreadcrumb(level: ConsoleLevel, args: unknown[]): void {\n const breadcrumb = {\n category: 'console',\n data: {\n arguments: args,\n logger: 'console',\n },\n level: severityLevelFromString(level),\n message: formatConsoleArgs(args),\n };\n\n if (level === 'assert') {\n if (args[0] === false) {\n const assertionArgs = args.slice(1);\n breadcrumb.message =\n assertionArgs.length > 0 ? `Assertion failed: ${formatConsoleArgs(assertionArgs)}` : 'Assertion failed';\n breadcrumb.data.arguments = assertionArgs;\n } else {\n // Don't capture a breadcrumb for passed assertions\n return;\n }\n }\n\n addBreadcrumb(breadcrumb, {\n input: args,\n level,\n });\n}\n\nfunction formatConsoleArgs(values: unknown[]): string {\n return 'util' in GLOBAL_OBJ && typeof (GLOBAL_OBJ as GlobalObjectWithUtil).util.format === 'function'\n ? (GLOBAL_OBJ as GlobalObjectWithUtil).util.format(...values)\n : safeJoin(values, ' ');\n}\n", "import { GEN_AI_CONVERSATION_ID } from '@sentry/conventions/attributes';\nimport type { Client } from '../client';\nimport { getCurrentScope, getIsolationScope } from '../currentScopes';\nimport { defineIntegration } from '../integration';\nimport type { IntegrationFn } from '../types/integration';\nimport type { Span } from '../types/span';\nimport { spanToStaticSpanJSON } from '../utils/spanUtils';\n\nconst INTEGRATION_NAME = 'ConversationId' as const;\n\nconst _conversationIdIntegration = (() => {\n return {\n name: INTEGRATION_NAME,\n setup(client: Client) {\n client.on('spanStart', (span: Span) => {\n const scopeData = getCurrentScope().getScopeData();\n const isolationScopeData = getIsolationScope().getScopeData();\n\n const conversationId = scopeData.conversationId || isolationScopeData.conversationId;\n\n if (conversationId) {\n const { op, data: attributes, description: name } = spanToStaticSpanJSON(span);\n\n // Only apply conversation ID to gen_ai spans.\n // We also check for Vercel AI spans (ai.operationId attribute or ai.* span name)\n // because the Vercel AI integration sets the gen_ai.* op in its own spanStart handler\n // which fires after this, so the op is not yet available at this point.\n if (!op?.startsWith('gen_ai.') && !attributes['ai.operationId'] && !name?.startsWith('ai.')) {\n return;\n }\n\n span.setAttribute(GEN_AI_CONVERSATION_ID, conversationId);\n }\n });\n },\n };\n}) satisfies IntegrationFn;\n\n/**\n * Automatically applies conversation ID from scope to spans.\n *\n * This integration reads the conversation ID from the current or isolation scope\n * and applies it to spans when they start. This ensures the conversation ID is\n * available for all AI-related operations.\n */\nexport const conversationIdIntegration = defineIntegration(_conversationIdIntegration);\n", "import { DEBUG_BUILD } from '../debug-build';\nimport { debug } from './debug-logger';\nimport { GLOBAL_OBJ } from './worldwide';\n\nconst WINDOW = GLOBAL_OBJ as unknown as Window;\n\ndeclare const EdgeRuntime: string | undefined;\n\n/**\n * Tells whether current environment supports ErrorEvent objects\n * {@link supportsErrorEvent}.\n *\n * @returns Answer to the given question.\n */\nexport function supportsErrorEvent(): boolean {\n try {\n new ErrorEvent('');\n return true;\n } catch {\n return false;\n }\n}\n\n/**\n * Tells whether current environment supports DOMException objects\n * {@link supportsDOMException}.\n *\n * @returns Answer to the given question.\n */\nexport function supportsDOMException(): boolean {\n try {\n new DOMException('');\n return true;\n } catch {\n return false;\n }\n}\n\n/**\n * Tells whether current environment supports Fetch API\n * {@link supportsFetch}.\n *\n * @returns Answer to the given question.\n * @deprecated This is no longer used and will be removed in a future major version.\n */\nexport const supportsFetch = _isFetchSupported;\n\nfunction _isFetchSupported(): boolean {\n if (!('fetch' in WINDOW)) {\n return false;\n }\n\n try {\n new Headers();\n // Deno requires a valid URL so '' cannot be used as an argument\n new Request('data:,');\n new Response();\n return true;\n } catch {\n return false;\n }\n}\n\n/**\n * isNative checks if the given function is a native implementation\n */\n// eslint-disable-next-line @typescript-eslint/ban-types\nexport function isNativeFunction(func: Function): boolean {\n return func && /^function\\s+\\w+\\(\\)\\s+\\{\\s+\\[native code\\]\\s+\\}$/.test(func.toString());\n}\n\n/**\n * Tells whether current environment supports Fetch API natively\n * {@link supportsNativeFetch}.\n *\n * @returns true if `window.fetch` is natively implemented, false otherwise\n */\nexport function supportsNativeFetch(): boolean {\n if (typeof EdgeRuntime === 'string') {\n return true;\n }\n\n if (!_isFetchSupported()) {\n return false;\n }\n\n // Fast path to avoid DOM I/O\n // eslint-disable-next-line @typescript-eslint/unbound-method\n if (isNativeFunction(WINDOW.fetch)) {\n return true;\n }\n\n // window.fetch is implemented, but is polyfilled or already wrapped (e.g: by a chrome extension)\n // so create a \"pure\" iframe to see if that has native fetch\n let result = false;\n const doc = WINDOW.document;\n // eslint-disable-next-line typescript/no-deprecated\n if (doc && typeof (doc.createElement as unknown) === 'function') {\n try {\n const sandbox = doc.createElement('iframe');\n sandbox.hidden = true;\n doc.head.appendChild(sandbox);\n if (sandbox.contentWindow?.fetch) {\n // eslint-disable-next-line @typescript-eslint/unbound-method\n result = isNativeFunction(sandbox.contentWindow.fetch);\n }\n doc.head.removeChild(sandbox);\n } catch (err) {\n DEBUG_BUILD && debug.warn('Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ', err);\n }\n }\n\n return result;\n}\n\n/**\n * Tells whether current environment supports Referrer Policy API\n * {@link supportsReferrerPolicy}.\n *\n * @returns Answer to the given question.\n * @deprecated This is no longer used and will be removed in a future major version.\n */\nexport function supportsReferrerPolicy(): boolean {\n // Despite all stars in the sky saying that Edge supports old draft syntax, aka 'never', 'always', 'origin' and 'default'\n // (see https://caniuse.com/#feat=referrer-policy),\n // it doesn't. And it throws an exception instead of ignoring this parameter...\n // REF: https://github.com/getsentry/raven-js/issues/1233\n\n if (!_isFetchSupported()) {\n return false;\n }\n\n try {\n new Request('_', {\n referrerPolicy: 'origin' as ReferrerPolicy,\n });\n return true;\n } catch {\n return false;\n }\n}\n", "/* eslint-disable @typescript-eslint/no-explicit-any */\nimport { getClient } from '../currentScopes';\nimport type { HandlerDataFetch } from '../types/instrument';\nimport type { WebFetchHeaders } from '../types/webfetchapi';\nimport { isError, isObjectLike, isRequest } from '../utils/is';\nimport { isBrowser } from '../utils/isBrowser';\nimport { addNonEnumerableProperty, fill } from '../utils/object';\nimport { supportsNativeFetch } from '../utils/supports';\nimport { timestampInSeconds } from '../utils/time';\nimport { GLOBAL_OBJ } from '../utils/worldwide';\nimport { addHandler, maybeInstrument, triggerHandlers } from './handlers';\n\ntype FetchResource = string | { toString(): string } | { url: string };\n\n/**\n * Add an instrumentation handler for when a fetch request happens.\n * The handler function is called once when the request starts and once when it ends,\n * which can be identified by checking if it has an `endTimestamp`.\n * Returns a function to remove the handler.\n *\n * Use at your own risk, this might break without changelog notice, only used internally.\n * @hidden\n */\nexport function addFetchInstrumentationHandler(handler: (data: HandlerDataFetch) => void): () => void {\n const type = 'fetch';\n const removeHandler = addHandler(type, handler);\n maybeInstrument(type, () => instrumentFetch());\n return removeHandler;\n}\n\n/**\n * Add an instrumentation handler for long-lived fetch requests, like consuming server-sent events (SSE) via fetch.\n * The handler will resolve the request body and emit the actual `endTimestamp`, so that the\n * span can be updated accordingly.\n * Returns a function to remove the handler.\n *\n * Only used internally\n * @hidden\n */\nexport function addFetchEndInstrumentationHandler(handler: (data: HandlerDataFetch) => void): () => void {\n const type = 'fetch-body-resolved';\n const removeHandler = addHandler(type, handler);\n maybeInstrument(type, () => instrumentFetch(streamHandler));\n return removeHandler;\n}\n\nfunction instrumentFetch(onFetchResolved?: (response: Response) => void): void {\n // The native-fetch check is only meaningful in the browser: it probes for `[native code]` and\n // falls back to an iframe DOM check to detect a polyfilled/wrapped `fetch` (which we don't want to\n // double-instrument alongside XHR). Outside the browser there is no DOM, and `fetch` may be\n // legitimately wrapped by the host (e.g. Next.js on Bun), so we always patch the global there.\n if (isBrowser() && !supportsNativeFetch()) {\n return;\n }\n\n // We wrap `fetch` in a `Proxy` rather than a plain closure so that non-standard own properties some\n // runtimes hang off the global `fetch` (e.g. Bun's `fetch.preconnect`) keep working - property access\n // and `toString()` transparently forward to the native implementation.\n fill(GLOBAL_OBJ, 'fetch', function (originalFetch: (...args: any[]) => Promise): unknown {\n return new Proxy(originalFetch, {\n apply(target, _thisArg, args: any[]): Promise {\n // We capture the error right here and not in the Promise error callback because Safari (and probably other\n // browsers too) will wipe the stack trace up to this point, only leaving us with this file which is useless.\n\n // NOTE: If you are a Sentry user, and you are seeing this stack frame,\n // it means the error, that was caused by your fetch call did not\n // have a stack trace, so the SDK backfilled the stack trace so\n // you can see which fetch call failed.\n const virtualError = new Error();\n\n const { method, url } = parseFetchArgs(args);\n const handlerData: HandlerDataFetch = {\n args,\n fetchData: {\n method,\n url,\n },\n startTimestamp: timestampInSeconds() * 1000,\n // // Adding the error to be able to fingerprint the failed fetch event in HttpClient instrumentation\n virtualError,\n headers: getHeadersFromFetchArgs(args),\n };\n\n // if there is no callback, fetch is instrumented directly\n if (!onFetchResolved) {\n triggerHandlers('fetch', {\n ...handlerData,\n });\n }\n\n return Reflect.apply(target, GLOBAL_OBJ, args).then(\n async (response: Response) => {\n if (onFetchResolved) {\n onFetchResolved(response);\n } else {\n triggerHandlers('fetch', {\n ...handlerData,\n endTimestamp: timestampInSeconds() * 1000,\n response,\n });\n }\n\n return response;\n },\n (error: Error) => {\n triggerHandlers('fetch', {\n ...handlerData,\n endTimestamp: timestampInSeconds() * 1000,\n error,\n });\n\n if (isError(error) && error.stack === undefined) {\n // NOTE: If you are a Sentry user, and you are seeing this stack frame,\n // it means the error, that was caused by your fetch call did not\n // have a stack trace, so the SDK backfilled the stack trace so\n // you can see which fetch call failed.\n error.stack = virtualError.stack;\n addNonEnumerableProperty(error, 'framesToPop', 1);\n }\n\n // We enhance fetch error messages with hostname information based on the configuration.\n // Possible messages we handle here:\n // * \"Failed to fetch\" (chromium)\n // * \"Load failed\" (webkit)\n // * \"NetworkError when attempting to fetch resource.\" (firefox)\n const client = getClient();\n const enhanceOption = client?.getOptions().enhanceFetchErrorMessages ?? 'always';\n const shouldEnhance = enhanceOption !== false;\n\n if (\n shouldEnhance &&\n isError(error) &&\n error.name === 'TypeError' &&\n (error.message === 'Failed to fetch' ||\n error.message === 'Load failed' ||\n error.message === 'NetworkError when attempting to fetch resource.')\n ) {\n try {\n const url = new URL(handlerData.fetchData.url, GLOBAL_OBJ.location?.href);\n const hostname = url.host;\n\n if (hostname) {\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 }\n } catch {\n // ignore it if errors happen here\n }\n }\n\n // NOTE: If you are a Sentry user, and you are seeing this stack frame,\n // it means the sentry.javascript SDK caught an error invoking your application code.\n // This is expected behavior and NOT indicative of a bug with sentry.javascript.\n throw error;\n },\n );\n },\n });\n });\n}\n\nasync function resolveResponse(res: Response | undefined, onFinishedResolving: () => void): Promise {\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 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", "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 { FetchBreadcrumbHint, HandlerDataFetch } from '@sentry/core';\nimport type { XhrBreadcrumbHint } from '@sentry/core/browser';\nimport { GLOBAL_OBJ } from '@sentry/core';\n\nexport const WINDOW = GLOBAL_OBJ as typeof GLOBAL_OBJ &\n // document is not available in all browser environments (webworkers). We make it optional so you have to explicitly check for it\n Omit &\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// This should be: null | Blob | BufferSource | FormData | URLSearchParams | string\n// But since not all of those are available in node, we just use `unknown` here for now\ntype XHRSendInput = unknown;\n\nexport interface SentryWrappedXMLHttpRequest {\n __sentry_xhr_v3__?: SentryXhrData;\n __sentry_own_request__?: boolean;\n // span id for the xhr request\n __sentry_xhr_span_id__?: string;\n setRequestHeader?: (key: string, val: string) => void;\n getResponseHeader?: (key: string) => string | null;\n}\n\n// WARNING: When the shape of this type is changed bump the version in `SentryWrappedXMLHttpRequest`\nexport interface SentryXhrData {\n method: string;\n url: string;\n status_code?: number;\n body?: XHRSendInput;\n request_body_size?: number;\n response_body_size?: number;\n request_headers: Record;\n}\n\nexport interface HandlerDataXhr {\n xhr: SentryWrappedXMLHttpRequest;\n startTimestamp?: number;\n endTimestamp?: number;\n error?: unknown;\n // This is to be consumed by the HttpClient integration\n virtualError?: unknown;\n}\n\nexport interface HandlerDataDom {\n // TODO: Replace `object` here with a vendored type for browser Events. We can't depend on the `DOM` or `react` TS types package here.\n event: object | { target: object };\n name: string;\n global?: boolean;\n}\n\nexport interface HandlerDataHistory {\n /** The full URL of the previous page */\n from: string | undefined;\n /** The full URL of the new page */\n to: string;\n}\n", "import { isString } from '@sentry/core';\n\nconst DEFAULT_MAX_STRING_LENGTH = 80;\n\ntype MaskAttributeFn = (key: string, value: string, el: HTMLElement) => string;\n\ntype SimpleNode = {\n parentNode: SimpleNode;\n} | null;\n\n// Native DOM accessors cached at module load. Calling these instead of reading\n// instance properties bypasses user-defined getters that shadow the prototypes.\n// Stored unbound and rebound via .call(el) — the unbound-method lint is expected.\n// See https://github.com/getsentry/sentry-javascript/issues/21353\ntype AccessorKey = 'parentNode' | 'tagName' | 'id' | 'className' | 'getAttribute' | 'dataset';\nconst accessors: Partial> = {};\n\n// oxlint-disable typescript/unbound-method\ntry {\n if (typeof Node !== 'undefined') {\n accessors.parentNode = Object.getOwnPropertyDescriptor(Node.prototype, 'parentNode')!.get!;\n }\n if (typeof Element !== 'undefined') {\n accessors.tagName = Object.getOwnPropertyDescriptor(Element.prototype, 'tagName')!.get!;\n accessors.id = Object.getOwnPropertyDescriptor(Element.prototype, 'id')!.get!;\n accessors.className = Object.getOwnPropertyDescriptor(Element.prototype, 'className')!.get!;\n accessors.getAttribute = Element.prototype.getAttribute;\n }\n if (typeof HTMLElement !== 'undefined') {\n accessors.dataset = Object.getOwnPropertyDescriptor(HTMLElement.prototype, 'dataset')!.get!;\n }\n} catch {\n // Polyfilled or stubbed prototypes may not have the expected descriptors.\n // _safeRead falls back to direct property access.\n}\n// oxlint-enable typescript/unbound-method\n\nfunction _safeRead(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; maskAttributeFn?: MaskAttributeFn } = {},\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 maskAttributeFn = Array.isArray(options) ? undefined : options.maskAttributeFn;\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, maskAttributeFn);\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[], maskAttributeFn?: MaskAttributeFn): 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 maskAttributeFn\n ? maskAttributeFn('data-sentry-component', dataset['sentryComponent'], el)\n : dataset['sentryComponent'];\n }\n if (dataset['sentryElement']) {\n return maskAttributeFn\n ? maskAttributeFn('data-sentry-element', dataset['sentryElement'], el)\n : 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)] as const)\n : null;\n\n if (keyAttrPairs?.length) {\n keyAttrPairs.forEach(([key, value]) => {\n out.push(`[${key}=\"${maskAttributeFn && value ? maskAttributeFn(key, value, el as HTMLElement) : value}\"]`);\n });\n } else {\n const id = _safeRead(el, 'id');\n if (id) {\n out.push(`#${maskAttributeFn ? maskAttributeFn('id', id, el as HTMLElement) : id}`);\n }\n\n const className = _safeRead(el, 'className');\n if (className && isString(className)) {\n const classes = (maskAttributeFn ? maskAttributeFn('class', className, el as HTMLElement) : className).split(\n /\\s+/,\n );\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}=\"${maskAttributeFn ? maskAttributeFn(k, attr, el as HTMLElement) : attr}\"]`);\n }\n }\n\n return out.join('');\n}\n", "/*\n * Portions of this file are derived from Google's web-vitals library.\n *\n * Copyright 2020-2024 Google LLC\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * https://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport { WINDOW } from '../types';\n\n/**\n * web-vitals 5.1.0 switched listeners to be added on the window rather than the document.\n * Instead of having to check for window/document every time we add a listener, we can use this function.\n */\nexport function addPageListener(type: string, listener: EventListener, options?: boolean | AddEventListenerOptions) {\n if (WINDOW.document) {\n WINDOW.addEventListener(type, listener, options);\n }\n}\n\n/**\n * web-vitals 5.1.0 switched listeners to be removed from the window rather than the document.\n * Instead of having to check for window/document every time we remove a listener, we can use this function.\n */\nexport function removePageListener(type: string, listener: EventListener, options?: boolean | AddEventListenerOptions) {\n if (WINDOW.document) {\n WINDOW.removeEventListener(type, listener, options);\n }\n}\n\n// sentry-specific change:\n// add optional param to not check for responseStart (see comment below)\nexport const getNavigationEntry = (checkResponseStart = true): PerformanceNavigationTiming | void => {\n const navigationEntry = WINDOW.performance?.getEntriesByType?.('navigation')[0];\n // Check to ensure the `responseStart` property is present and valid.\n // In some cases a zero value is reported by the browser (for\n // privacy/security reasons), and in other cases (bugs) the value is\n // negative or is larger than the current page time. Ignore these cases:\n // - https://github.com/GoogleChrome/web-vitals/issues/137\n // - https://github.com/GoogleChrome/web-vitals/issues/162\n // - https://github.com/GoogleChrome/web-vitals/issues/275\n if (\n // sentry-specific change:\n // We don't want to check for responseStart for our own use of `getNavigationEntry`\n !checkResponseStart ||\n (navigationEntry && navigationEntry.responseStart > 0 && navigationEntry.responseStart < performance.now())\n ) {\n return navigationEntry;\n }\n};\n\nexport const getActivationStart = (): number => {\n const navEntry = getNavigationEntry();\n return navEntry?.activationStart ?? 0;\n};\n\nexport interface OnHiddenCallback {\n (event: Event): void;\n}\n\nexport const onHidden = (cb: OnHiddenCallback) => {\n const onHiddenCallback = (event: Event) => {\n if (WINDOW.document?.visibilityState === 'hidden') {\n cb(event);\n }\n };\n\n addPageListener('visibilitychange', onHiddenCallback, { capture: true });\n};\n\nlet firstHiddenTime = -1;\nconst onHiddenFunctions: Set<() => void> = new Set();\n\nconst initHiddenTime = () => {\n // If the document is hidden when this code runs, assume it was always\n // hidden and the page was loaded in the background, with the one exception\n // that visibility state is always 'hidden' during prerendering, so we have\n // to ignore that case until prerendering finishes (see: `prerenderingchange`\n // event logic below).\n return WINDOW.document?.visibilityState === 'hidden' && !WINDOW.document?.prerendering ? 0 : Infinity;\n};\n\nconst onVisibilityUpdate = (event: Event) => {\n // Handle changes to hidden state\n if (WINDOW.document?.visibilityState === 'hidden' && firstHiddenTime > -1) {\n // Call onHidden callbacks when the page becomes hidden\n if (event.type === 'visibilitychange') {\n for (const onHiddenFunction of onHiddenFunctions) {\n onHiddenFunction();\n }\n }\n\n // If the document is 'hidden' and no previous hidden timestamp has been\n // set (so is infinity), update it based on the current event data.\n if (!isFinite(firstHiddenTime)) {\n // If the event is a 'visibilitychange' event, it means the page was\n // visible prior to this change, so the event timestamp is the first\n // hidden time.\n // However, if the event is not a 'visibilitychange' event, then it must\n // be a 'prerenderingchange' event, and the fact that the document is\n // still 'hidden' from the above check means the tab was activated\n // in a background state and so has always been hidden.\n firstHiddenTime = event.type === 'visibilitychange' ? event.timeStamp : 0;\n\n // We no longer need the `prerenderingchange` event listener now we've\n // set an initial init time so remove that\n // (we'll keep the visibilitychange one for onHiddenFunction above)\n removePageListener('prerenderingchange', onVisibilityUpdate, true);\n }\n }\n};\n\nexport const getVisibilityWatcher = () => {\n if (WINDOW.document && firstHiddenTime < 0) {\n // Check if we have a previous hidden `visibility-state` performance entry.\n const activationStart = getActivationStart();\n const firstVisibilityStateHiddenTime = !WINDOW.document.prerendering\n ? globalThis.performance\n .getEntriesByType('visibility-state')\n .filter(e => e.name === 'hidden' && e.startTime > activationStart)[0]?.startTime\n : undefined;\n\n // Prefer that, but if it's not available and the document is hidden when\n // this code runs, assume it was hidden since navigation start. This isn't\n // a perfect heuristic, but it's the best we can do until the\n // `visibility-state` performance entry becomes available in all browsers.\n firstHiddenTime = firstVisibilityStateHiddenTime ?? initHiddenTime();\n // Listen for visibility changes so we can handle things like bfcache\n // restores and/or prerender without having to examine individual\n // timestamps in detail and also for onHidden function calls.\n addPageListener('visibilitychange', onVisibilityUpdate, true);\n\n // IMPORTANT: when a page is prerendering, its `visibilityState` is\n // 'hidden', so in order to account for cases where this module checks for\n // visibility during prerendering, an additional check after prerendering\n // completes is also required.\n addPageListener('prerenderingchange', onVisibilityUpdate, true);\n }\n\n return {\n get firstHiddenTime() {\n return firstHiddenTime;\n },\n onHidden(cb: () => void) {\n onHiddenFunctions.add(cb);\n },\n };\n};\n\n/**\n * Runs the passed callback during the next idle period, or immediately\n * if the browser's visibility state is (or becomes) hidden.\n */\nexport const whenIdleOrHidden = (cb: () => void) => {\n const rIC = WINDOW.requestIdleCallback || WINDOW.setTimeout;\n\n // If the document is hidden, run the callback immediately, otherwise\n // race an idle callback with the next `visibilitychange` event.\n if (WINDOW.document?.visibilityState === 'hidden') {\n cb();\n } else {\n // Ensure the callback only runs once, whichever of the two racers wins.\n let called = false;\n const runOnce = () => {\n if (!called) {\n cb();\n called = true;\n }\n };\n addPageListener('visibilitychange', runOnce, { once: true, capture: true });\n rIC(() => {\n runOnce();\n // Remove the above event listener since no longer required.\n // See: https://github.com/GoogleChrome/web-vitals/issues/622\n removePageListener('visibilitychange', runOnce, { capture: true });\n });\n }\n};\n", "import { GLOBAL_OBJ } from '@sentry/core';\n\ntype SimpleNode = {\n parentNode: SimpleNode;\n} | null;\n\n/**\n * Given a DOM element, traverses up the tree until it finds the first ancestor node\n * that has the `data-sentry-component` or `data-sentry-element` attribute with `data-sentry-component` taking\n * precedence. This attribute is added at build-time by projects that have the component name annotation plugin installed.\n *\n * @returns a string representation of the component for the provided DOM element, or `null` if not found\n */\nexport function getComponentName(elem: unknown, maxTraverseHeight: number = 5): string | null {\n // @ts-expect-error WINDOW has HTMLElement\n if (!GLOBAL_OBJ.HTMLElement) {\n return null;\n }\n\n let currentElem = elem as SimpleNode;\n for (let i = 0; i < maxTraverseHeight; i++) {\n if (!currentElem) {\n return null;\n }\n\n if (currentElem instanceof HTMLElement) {\n if (currentElem.dataset['sentryComponent']) {\n return currentElem.dataset['sentryComponent'];\n }\n if (currentElem.dataset['sentryElement']) {\n return currentElem.dataset['sentryElement'];\n }\n }\n\n currentElem = currentElem.parentNode;\n }\n\n return null;\n}\n", "import { WINDOW } from './types';\n\n/**\n * A safe form of location.href.\n */\nexport function getLocationHref(): string {\n try {\n return WINDOW.document?.location.href ?? '';\n } catch {\n return '';\n }\n}\n", "import type { Client } from '@sentry/core';\nimport { debug, getClient, LRUMap, parseStringToURLObject, safeCallback } from '@sentry/core';\nimport { DEBUG_BUILD } from './debug-build';\nimport { getLocationHref } from './getLocationHref';\n\n/** The parts of a URL a route depends on. A `URL` satisfies it. */\ntype RouteUrl = Pick;\n\n/**\n * Resolves URLs to low-cardinality route names.\n *\n * Framework SDKs register one so that everything the SDK names after a route (span names, the scope's\n * transaction name, metric and span segment attributes) gets the parameterized route instead of the raw\n * URL, without each integration having to reach into the framework's router itself.\n */\nexport interface RouteProvider {\n /**\n * Resolves a URL path template for a specific URL, e.g. `/users/42` -> `/users/:id`.\n *\n * Must return a path template, never a route identifier. Routers that name routes independently of\n * their path (Vue Router's `route.name`, Ember's `posts.show`) have to return the matched path\n * instead: callers set `url.template` from this, and an identifier is not a template. An SDK that\n * wants to name its span after the identifier still can, on the span itself.\n *\n * Returns `undefined` when the URL matches no known route. Must answer for the URL it is given rather\n * than for wherever the router currently is, so that callers can resolve a URL they captured earlier\n * (a web vital reported after a soft navigation, for example).\n */\n resolveRoute(url: RouteUrl): string | undefined;\n\n /**\n * Resolves the route the app is currently on.\n *\n * Routers whose location lives in the address bar can delegate to `resolveRoute`, which is what\n * {@link createUrlRouteProvider} does. Routers that keep their own location (memory and hash routers)\n * have to answer from that location instead: for those, `location.href` is the unchanging shell URL\n * and would bucket every route together.\n */\n resolveCurrentRoute(): string | undefined;\n}\n\nconst CLIENT_ROUTE_PROVIDERS = new WeakMap();\n\n/**\n * Registers the route provider for a client, replacing any previously registered one. `BrowserClient`\n * calls this with its `routeProvider` option.\n *\n * Prefer the `routeProvider` option where the provider is known at `init`: the pageload span is named\n * while `browserTracingIntegration` sets up, so a provider registered after `init` can only rename it\n * after the fact.\n *\n * A client holds one provider. An app running two routers (a framework migration, or a shell plus an\n * island) registers twice and the last one wins, so the first router's routes stop resolving.\n */\nexport function setRouteProvider(provider: RouteProvider, client: Client | undefined = getClient()): void {\n if (!client) {\n DEBUG_BUILD && debug.warn('Cannot set a route provider without a client.');\n return;\n }\n\n if (DEBUG_BUILD && getRouteProvider(client)) {\n debug.warn(\n 'A route provider is already registered for this client and will be replaced. Routes only the previous provider knows about will no longer resolve.',\n );\n }\n\n CLIENT_ROUTE_PROVIDERS.set(client, provider);\n}\n\n/**\n * Returns the route provider registered for a client.\n */\nexport function getRouteProvider(client: Client | undefined = getClient()): RouteProvider | undefined {\n return client && CLIENT_ROUTE_PROVIDERS.get(client);\n}\n\n/**\n * Resolves a URL to a low-cardinality route name, e.g. `/users/42` -> `/users/:id`.\n *\n * Returns `undefined` when no route provider is registered or the URL matches no route. Callers pick\n * their own fallback, because the right one differs: a span name falls back to a low-cardinality\n * constant, the scope's transaction name to the raw path.\n */\nexport function resolveRoute(url: string | URL, client: Client | undefined = getClient()): string | undefined {\n const provider = getRouteProvider(client);\n if (!provider) {\n return undefined;\n }\n\n const urlObject = typeof url === 'string' ? parseLocation(url) : url;\n if (!urlObject) {\n return undefined;\n }\n\n return safeCallback(\n DEBUG_BUILD ? 'Route provider threw while resolving a route:' : '',\n () => provider.resolveRoute(urlObject) || undefined,\n () => undefined,\n );\n}\n\n/**\n * Resolves the route the app is currently on.\n *\n * Returns `undefined` when no route provider is registered or the current location matches no route.\n */\nexport function resolveCurrentRoute(client: Client | undefined = getClient()): string | undefined {\n const provider = getRouteProvider(client);\n\n return safeCallback(\n DEBUG_BUILD ? 'Route provider threw while resolving a route:' : '',\n () => provider?.resolveCurrentRoute() || undefined,\n () => undefined,\n );\n}\n\n/**\n * Builds a {@link RouteProvider} for a router whose location is the browser's, which covers every\n * router except memory and hash routers.\n */\nexport function createUrlRouteProvider(resolveRouteFromUrl: (url: RouteUrl) => string | undefined): RouteProvider {\n return {\n resolveRoute: resolveRouteFromUrl,\n resolveCurrentRoute: () => {\n const urlObject = parseLocation(getLocationHref());\n\n return urlObject && resolveRouteFromUrl(urlObject);\n },\n };\n}\n\n/**\n * A {@link RouteProvider} that answers from routes it has been told about, rather than by matching.\n */\nexport interface CachedRouteProvider extends RouteProvider {\n /** Records the route name a router reported for a path. Ignores empty values. */\n record(pathname: string | undefined, routeName: string | null | undefined): void;\n}\n\n/**\n * Builds a route provider for a router with no usable matcher, which can only report the route it is\n * on as it gets there (SvelteKit's `page.route.id`, Solid Router's current matches).\n *\n * A URL the app has not visited resolves to `undefined`, which includes the first pageload until the\n * router reports. Backed by an LRU so a long-lived app visiting many URLs can't grow it without end,\n * and so routes that keep being resolved outlive ones passed through once.\n */\nexport function createCachedRouteProvider(maxEntries: number = 50): CachedRouteProvider {\n const routeNames = new LRUMap(maxEntries);\n\n return {\n ...createUrlRouteProvider(url => routeNames.get(url.pathname)),\n record(pathname, routeName) {\n if (pathname && routeName) {\n routeNames.set(pathname, routeName);\n }\n },\n };\n}\n\n/**\n * Parses up front so providers never have to, and resolves relative locations (which memory routers\n * hand around) against the document.\n */\nfunction parseLocation(url: string): RouteUrl | undefined {\n // Without a document `getLocationHref()` is empty, which would otherwise parse as `/`.\n return url ? parseStringToURLObject(url, getLocationHref() || undefined) : undefined;\n}\n", "import { addHandler, addNonEnumerableProperty, fill, maybeInstrument, triggerHandlers, uuid4 } from '@sentry/core';\nimport type { HandlerDataDom } from '../types';\nimport { WINDOW } from '../types';\n\ntype SentryWrappedTarget = HTMLElement & { _sentryId?: string };\n\ntype AddEventListener = (\n type: string,\n listener: EventListenerOrEventListenerObject,\n options?: boolean | AddEventListenerOptions,\n) => void;\ntype RemoveEventListener = (\n type: string,\n listener: EventListenerOrEventListenerObject,\n options?: boolean | EventListenerOptions,\n) => void;\n\ntype InstrumentedElement = Element & {\n __sentry_instrumentation_handlers__?: {\n [key in 'click' | 'keypress']?: {\n handler?: unknown;\n capture?: boolean;\n // listeners added with `capture: true`, meaning the listener is invoked before other\n // listeners inside the element's hierarchy.\n captureListeners: WeakSet;\n // listeners added with `capture: false` (default), meaning the listener is invoked\n // after other listeners inside the element's hierarchy (i.e. the event bubbles up)\n bubbleListeners: WeakSet;\n // Total number of listeners in `captureListeners` and `bubbleListeners`. WeakSets have no `size`, but we use them\n // so listeners removed without going through our `removeEventListener` patch aren't retained by us.\n listenerCount: number;\n // Set once a `once` or `signal` listener was added. The browser removes those without going\n // through `removeEventListener`, so we can't tell when they're gone and must keep our handler attached.\n sticky?: boolean;\n };\n };\n};\n\nconst DEBOUNCE_DURATION = 1000;\n\nlet debounceTimerID: number | undefined;\nlet lastCapturedEventType: string | undefined;\nlet lastCapturedEventTargetId: string | undefined;\n\nfunction getCapture(options: boolean | EventListenerOptions | undefined): boolean {\n return typeof options === 'boolean' ? options : !!options?.capture;\n}\n\n/**\n * Add an instrumentation handler for when a click or a keypress happens.\n *\n * Use at your own risk, this might break without changelog notice, only used internally.\n * @hidden\n */\nexport function addClickKeypressInstrumentationHandler(handler: (data: HandlerDataDom) => void): void {\n const type = 'dom';\n addHandler(type, handler);\n maybeInstrument(type, instrumentDOM);\n}\n\n/** Exported for tests only. */\nexport function instrumentDOM(): void {\n if (!WINDOW.document) {\n return;\n }\n\n // Make it so that any click or keypress that is unhandled / bubbled up all the way to the document triggers our dom\n // handlers. (Normally we have only one, which captures a breadcrumb for each click or keypress.) Do this before\n // we instrument `addEventListener` so that we don't end up attaching this handler twice.\n const triggerDOMHandler = triggerHandlers.bind(null, 'dom');\n const globalDOMEventHandler = makeDOMEventHandler(triggerDOMHandler, true);\n WINDOW.document.addEventListener('click', globalDOMEventHandler, false);\n WINDOW.document.addEventListener('keypress', globalDOMEventHandler, false);\n\n // After hooking into click and keypress events bubbled up to `document`, we also hook into user-handled\n // clicks & keypresses, by adding an event listener of our own to any element to which they add a listener. That\n // way, whenever one of their handlers is triggered, ours will be, too. (This is needed because their handler\n // could potentially prevent the event from bubbling up to our global listeners. This way, our handler are still\n // guaranteed to fire at least once.)\n ['EventTarget', 'Node'].forEach((target: string) => {\n const globalObject = WINDOW as unknown as Record;\n const proto = globalObject[target]?.prototype;\n\n // eslint-disable-next-line no-prototype-builtins\n if (!proto?.hasOwnProperty?.('addEventListener')) {\n return;\n }\n\n fill(proto, 'addEventListener', function (originalAddEventListener: AddEventListener): AddEventListener {\n return function (this: InstrumentedElement, type, listener, options): AddEventListener {\n // The browser ignores `null` listeners, so there's nothing for our handler to accompany.\n if ((type === 'click' || type == 'keypress') && listener) {\n try {\n const handlers = (this.__sentry_instrumentation_handlers__ =\n this.__sentry_instrumentation_handlers__ || {});\n\n const handlerForType = (handlers[type] = handlers[type] || {\n captureListeners: new WeakSet(),\n bubbleListeners: new WeakSet(),\n listenerCount: 0,\n });\n\n const capture = getCapture(options);\n\n if (!handlerForType.handler) {\n const handler = makeDOMEventHandler(triggerDOMHandler);\n handlerForType.handler = handler;\n // Track the user-set `capture` option because it changes the identity of the registration of the\n // event listener callback function (addEL(fn, true) vs addEL(fn, false) are two different registrations).\n // Our listener needs to have the same capture setting, so that subsequent calls or removeEventListener\n // calls correspond to the correct handler function.\n handlerForType.capture = capture;\n originalAddEventListener.call(this, type, handler, handlerForType.capture);\n }\n\n const listeners = handlerForType[capture ? 'captureListeners' : 'bubbleListeners'];\n // Adding the same listener twice in the same phase is a no-op in the browser.\n if (!listeners.has(listener)) {\n if (typeof options === 'object' && (options?.once || options?.signal)) {\n // Not tracked to avoid retaining listeners the browser auto-removes.\n handlerForType.sticky = true;\n } else {\n listeners.add(listener);\n handlerForType.listenerCount++;\n }\n }\n } catch {\n // Accessing dom properties is always fragile.\n // Also allows us to skip `addEventListeners` calls with no proper `this` context.\n }\n }\n\n return originalAddEventListener.call(this, type, listener, options);\n };\n });\n\n fill(\n proto,\n 'removeEventListener',\n function (originalRemoveEventListener: RemoveEventListener): RemoveEventListener {\n return function (this: InstrumentedElement, type, listener, options): () => void {\n if ((type === 'click' || type == 'keypress') && listener) {\n try {\n const handlers = this.__sentry_instrumentation_handlers__ || {};\n const handlerForType = handlers[type];\n\n // Removing a listener that was never added is a no-op in the browser, so it mustn't count for ours either.\n if (handlerForType?.[getCapture(options) ? 'captureListeners' : 'bubbleListeners'].delete(listener)) {\n // If there are no longer any custom handlers of the current type on this element, we can remove ours, too.\n if (!--handlerForType.listenerCount && !handlerForType.sticky) {\n originalRemoveEventListener.call(this, type, handlerForType.handler, handlerForType.capture);\n handlerForType.handler = undefined;\n delete handlers[type]; // eslint-disable-line @typescript-eslint/no-dynamic-delete\n }\n\n // If there are no longer any custom handlers of any type on this element, cleanup everything.\n if (Object.keys(handlers).length === 0) {\n delete this.__sentry_instrumentation_handlers__;\n }\n }\n } catch {\n // Accessing dom properties is always fragile.\n // Also allows us to skip `addEventListeners` calls with no proper `this` context.\n }\n }\n\n return originalRemoveEventListener.call(this, type, listener, options);\n };\n },\n );\n });\n}\n\n/**\n * Check whether the event is similar to the last captured one. For example, two click events on the same button.\n */\nfunction isSimilarToLastCapturedEvent(event: Event): boolean {\n // If both events have different type, then user definitely performed two separate actions. e.g. click + keypress.\n if (event.type !== lastCapturedEventType) {\n return false;\n }\n\n try {\n // If both events have the same type, it's still possible that actions were performed on different targets.\n // e.g. 2 clicks on different buttons.\n if (!event.target || (event.target as SentryWrappedTarget)._sentryId !== lastCapturedEventTargetId) {\n return false;\n }\n } catch {\n // just accessing `target` property can throw an exception in some rare circumstances\n // see: https://github.com/getsentry/sentry-javascript/issues/838\n }\n\n // If both events have the same type _and_ same `target` (an element which triggered an event, _not necessarily_\n // to which an event listener was attached), we treat them as the same action, as we want to capture\n // only one breadcrumb. e.g. multiple clicks on the same button, or typing inside a user input box.\n return true;\n}\n\n/**\n * Decide whether an event should be captured.\n * @param event event to be captured\n */\nfunction shouldSkipDOMEvent(eventType: string, target: SentryWrappedTarget | null): boolean {\n // We are only interested in filtering `keypress` events for now.\n if (eventType !== 'keypress') {\n return false;\n }\n\n if (!target?.tagName) {\n return true;\n }\n\n // Only consider keypress events on actual input elements. This will disregard keypresses targeting body\n // e.g.tabbing through elements, hotkeys, etc.\n if (target.tagName === 'INPUT' || target.tagName === 'TEXTAREA' || target.isContentEditable) {\n return false;\n }\n\n return true;\n}\n\n/**\n * Wraps addEventListener to capture UI breadcrumbs\n */\nfunction makeDOMEventHandler(\n handler: (data: HandlerDataDom) => void,\n globalListener: boolean = false,\n): (event: Event) => void {\n return (event: Event & { _sentryCaptured?: true }): void => {\n // It's possible this handler might trigger multiple times for the same\n // event (e.g. event propagation through node ancestors).\n // Ignore if we've already captured that event.\n if (!event || event['_sentryCaptured']) {\n return;\n }\n\n const target = getEventTarget(event);\n\n // We always want to skip _some_ events.\n if (shouldSkipDOMEvent(event.type, target)) {\n return;\n }\n\n // Mark event as \"seen\"\n addNonEnumerableProperty(event, '_sentryCaptured', true);\n\n if (target && !target._sentryId) {\n // Add UUID to event target so we can identify if\n addNonEnumerableProperty(target, '_sentryId', uuid4());\n }\n\n const name = event.type === 'keypress' ? 'input' : event.type;\n\n // If there is no last captured event, it means that we can safely capture the new event and store it for future comparisons.\n // If there is a last captured event, see if the new event is different enough to treat it as a unique one.\n // If that's the case, emit the previous event and store locally the newly-captured DOM event.\n if (!isSimilarToLastCapturedEvent(event)) {\n const handlerData: HandlerDataDom = { event, name, global: globalListener };\n handler(handlerData);\n lastCapturedEventType = event.type;\n lastCapturedEventTargetId = target ? target._sentryId : undefined;\n }\n\n // Start a new debounce timer that will prevent us from capturing multiple events that should be grouped together.\n clearTimeout(debounceTimerID);\n debounceTimerID = WINDOW.setTimeout(() => {\n lastCapturedEventTargetId = undefined;\n lastCapturedEventType = undefined;\n }, DEBOUNCE_DURATION);\n };\n}\n\nfunction getEventTarget(event: Event): SentryWrappedTarget | null {\n try {\n return event.target as SentryWrappedTarget | null;\n } catch {\n // just accessing `target` property can throw an exception in some rare circumstances\n // see: https://github.com/getsentry/sentry-javascript/issues/838\n return null;\n }\n}\n", "import { addHandler, fill, maybeInstrument, triggerHandlers } from '@sentry/core';\nimport type { HandlerDataHistory } from '../types';\nimport { WINDOW } from '../types';\n\nlet lastHref: string | undefined;\n\n/**\n * Tells whether current environment supports History API\n * {@link supportsHistory}.\n *\n * @returns Answer to the given question.\n */\nexport function supportsHistory(): boolean {\n return 'history' in WINDOW && !!WINDOW.history;\n}\n\n/**\n * Add an instrumentation handler for when a fetch request happens.\n * The handler function is called once when the request starts and once when it ends,\n * which can be identified by checking if it has an `endTimestamp`.\n *\n * Use at your own risk, this might break without changelog notice, only used internally.\n * @hidden\n */\nexport function addHistoryInstrumentationHandler(handler: (data: HandlerDataHistory) => void): void {\n const type = 'history';\n addHandler(type, handler);\n maybeInstrument(type, instrumentHistory);\n}\n\n/**\n * Exported just for testing\n */\nexport function instrumentHistory(): void {\n // The `popstate` event may also be triggered on `pushState`, but it may not always reliably be emitted by the browser\n // Which is why we also monkey-patch methods below, in addition to this\n WINDOW.addEventListener('popstate', () => {\n const to = WINDOW.location.href;\n // keep track of the current URL state, as we always receive only the updated state\n const from = lastHref;\n lastHref = to;\n\n if (from === to) {\n return;\n }\n\n const handlerData = { from, to } satisfies HandlerDataHistory;\n triggerHandlers('history', handlerData);\n });\n\n // Just guard against this not being available, in weird environments\n if (!supportsHistory()) {\n return;\n }\n\n function historyReplacementFunction(originalHistoryFunction: () => void): () => void {\n return function (this: History, ...args: unknown[]): void {\n const url = args.length > 2 ? args[2] : undefined;\n if (url) {\n const from = lastHref;\n\n // Ensure the URL is absolute\n // this can be either a path, then it is relative to the current origin\n // or a full URL of the current origin - other origins are not allowed\n // See: https://developer.mozilla.org/en-US/docs/Web/API/History/pushState#url\n // coerce to string (this is what pushState does)\n const to = getAbsoluteUrl(String(url));\n\n // keep track of the current URL state, as we always receive only the updated state\n lastHref = to;\n\n if (from === to) {\n return originalHistoryFunction.apply(this, args);\n }\n\n const handlerData = { from, to } satisfies HandlerDataHistory;\n triggerHandlers('history', handlerData);\n }\n return originalHistoryFunction.apply(this, args);\n };\n }\n\n fill(WINDOW.history, 'pushState', historyReplacementFunction);\n fill(WINDOW.history, 'replaceState', historyReplacementFunction);\n}\n\nfunction getAbsoluteUrl(urlOrPath: string): string {\n try {\n const url = new URL(urlOrPath, WINDOW.location.origin);\n return url.toString();\n } catch {\n // fallback, just do nothing\n return urlOrPath;\n }\n}\n", "import { 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 try {\n return getNativeImplementation('setTimeout')(...rest);\n } catch (e) {\n // The implementation retrieved from the (since removed) sandbox iframe may throw when invoked,\n // e.g. Firefox throws `NS_ERROR_NOT_INITIALIZED` for timers of a detached window.\n // In this case, fall back to (and cache) the window's own setTimeout.\n DEBUG_BUILD && debug.warn('Could not use native setTimeout implementation, falling back to window.setTimeout: ', e);\n const fallback = WINDOW.setTimeout.bind(WINDOW) as typeof WINDOW.setTimeout;\n cachedImplementations.setTimeout = fallback;\n return fallback(...rest);\n }\n}\n", "import { addHandler, isString, maybeInstrument, timestampInSeconds, triggerHandlers } from '@sentry/core';\nimport type { HandlerDataXhr, SentryWrappedXMLHttpRequest } from '../types';\nimport { WINDOW } from '../types';\n\nexport const SENTRY_XHR_DATA_KEY = '__sentry_xhr_v3__';\n\ntype WindowWithXhr = Window & { XMLHttpRequest?: typeof XMLHttpRequest };\n\n/**\n * Add an instrumentation handler for when an XHR request happens.\n * The handler function is called once when the request starts and once when it ends,\n * which can be identified by checking if it has an `endTimestamp`.\n *\n * Use at your own risk, this might break without changelog notice, only used internally.\n * @hidden\n */\nexport function addXhrInstrumentationHandler(handler: (data: HandlerDataXhr) => void): void {\n const type = 'xhr';\n addHandler(type, handler);\n maybeInstrument(type, instrumentXHR);\n}\n\n/** Exported only for tests. */\nexport function instrumentXHR(): void {\n if (!(WINDOW as WindowWithXhr).XMLHttpRequest) {\n return;\n }\n\n const xhrproto = XMLHttpRequest.prototype;\n\n // eslint-disable-next-line @typescript-eslint/unbound-method\n xhrproto.open = new Proxy(xhrproto.open, {\n apply(\n originalOpen,\n xhrOpenThisArg: XMLHttpRequest & SentryWrappedXMLHttpRequest,\n xhrOpenArgArray:\n | [method: string, url: string | URL]\n | [method: string, url: string | URL, async: boolean, username?: string | null, password?: string | null],\n ) {\n // NOTE: If you are a Sentry user, and you are seeing this stack frame,\n // it means the error, that was caused by your XHR call did not\n // have a stack trace. If you are using HttpClient integration,\n // this is the expected behavior, as we are using this virtual error to capture\n // the location of your XHR call, and group your HttpClient events accordingly.\n let virtualError: Error | undefined = new Error();\n\n const startTimestamp = timestampInSeconds() * 1000;\n\n // open() should always be called with two or more arguments\n // But to be on the safe side, we actually validate this and bail out if we don't have a method & url\n const method = isString(xhrOpenArgArray[0]) ? xhrOpenArgArray[0].toUpperCase() : undefined;\n const url = parseXhrUrlArg(xhrOpenArgArray[1]);\n\n if (!method || url === undefined) {\n return originalOpen.apply(xhrOpenThisArg, xhrOpenArgArray);\n }\n\n xhrOpenThisArg[SENTRY_XHR_DATA_KEY] = {\n method,\n url,\n request_headers: {},\n };\n\n // if Sentry key appears in URL, don't capture it as a request\n if (method === 'POST' && url.match(/sentry_key/)) {\n xhrOpenThisArg.__sentry_own_request__ = true;\n }\n\n const onreadystatechangeHandler: () => void = () => {\n // For whatever reason, this is not the same instance here as from the outer method\n const xhrInfo = xhrOpenThisArg[SENTRY_XHR_DATA_KEY];\n\n if (!xhrInfo) {\n return;\n }\n\n if (xhrOpenThisArg.readyState === 4) {\n try {\n // touching statusCode in some platforms throws\n // an exception\n xhrInfo.status_code = xhrOpenThisArg.status;\n } catch {\n /* do nothing */\n }\n\n const handlerData: HandlerDataXhr = {\n endTimestamp: timestampInSeconds() * 1000,\n startTimestamp,\n xhr: xhrOpenThisArg,\n virtualError,\n };\n triggerHandlers('xhr', handlerData);\n\n // An unformatted stack keeps its raw frames, and each frame keeps its receiver alive. For a request\n // opened from the previous one's `readystatechange` callback that receiver is the previous\n // XMLHttpRequest, so holding on would chain every completed request to the one still in flight.\n virtualError = undefined;\n\n // In the `addEventListener` branch below this is the only `readystatechange` listener we add, so\n // detach it once the request is done. It's a no-op in the `onreadystatechange` proxy branch.\n xhrOpenThisArg.removeEventListener('readystatechange', onreadystatechangeHandler);\n }\n };\n\n if ('onreadystatechange' in xhrOpenThisArg && typeof xhrOpenThisArg.onreadystatechange === 'function') {\n xhrOpenThisArg.onreadystatechange = new Proxy(xhrOpenThisArg.onreadystatechange, {\n apply(originalOnreadystatechange, onreadystatechangeThisArg, onreadystatechangeArgArray: unknown[]) {\n onreadystatechangeHandler();\n return originalOnreadystatechange.apply(onreadystatechangeThisArg, onreadystatechangeArgArray);\n },\n });\n } else {\n xhrOpenThisArg.addEventListener('readystatechange', onreadystatechangeHandler);\n }\n\n // Intercepting `setRequestHeader` to access the request headers of XHR instance.\n // This will only work for user/library defined headers, not for the default/browser-assigned headers.\n // Request cookies are also unavailable for XHR, as `Cookie` header can't be defined by `setRequestHeader`.\n xhrOpenThisArg.setRequestHeader = new Proxy(xhrOpenThisArg.setRequestHeader, {\n apply(\n originalSetRequestHeader,\n setRequestHeaderThisArg: SentryWrappedXMLHttpRequest,\n setRequestHeaderArgArray: unknown[],\n ) {\n const [header, value] = setRequestHeaderArgArray;\n\n const xhrInfo = setRequestHeaderThisArg[SENTRY_XHR_DATA_KEY];\n\n if (xhrInfo && isString(header) && isString(value)) {\n xhrInfo.request_headers[header.toLowerCase()] = value;\n }\n\n return originalSetRequestHeader.apply(setRequestHeaderThisArg, setRequestHeaderArgArray);\n },\n });\n\n return originalOpen.apply(xhrOpenThisArg, xhrOpenArgArray);\n },\n });\n\n // eslint-disable-next-line @typescript-eslint/unbound-method\n xhrproto.send = new Proxy(xhrproto.send, {\n apply(originalSend, sendThisArg: XMLHttpRequest & SentryWrappedXMLHttpRequest, sendArgArray: unknown[]) {\n const sentryXhrData = sendThisArg[SENTRY_XHR_DATA_KEY];\n\n if (!sentryXhrData) {\n return originalSend.apply(sendThisArg, sendArgArray);\n }\n\n if (sendArgArray[0] !== undefined) {\n sentryXhrData.body = sendArgArray[0];\n }\n\n const handlerData: HandlerDataXhr = {\n startTimestamp: timestampInSeconds() * 1000,\n xhr: sendThisArg,\n };\n triggerHandlers('xhr', handlerData);\n\n return originalSend.apply(sendThisArg, sendArgArray);\n },\n });\n}\n\n/**\n * Parses the URL argument of a XHR method to a string.\n *\n * See: https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/open#url\n * url: A string or any other object with a stringifier — including a URL object — that provides the URL of the resource to send the request to.\n *\n * @param url - The URL argument of an XHR method\n * @returns The parsed URL string or undefined if the URL is invalid\n */\nfunction parseXhrUrlArg(url: unknown): string | undefined {\n if (isString(url)) {\n return url;\n }\n\n try {\n // If the passed in argument is not a string, it should have a `toString` method as a stringifier.\n // If that fails, we just return undefined (like in IE11 where URL is not available)\n return (url as URL).toString();\n } catch {} // eslint-disable-line no-empty\n\n return undefined;\n}\n", "/**\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 { Client, HandlerDataError, Mechanism, WrappedFunction } from '@sentry/core';\nimport {\n addExceptionMechanism,\n addExceptionTypeValue,\n addNonEnumerableProperty,\n captureException,\n filterCollectedUrl,\n getOriginalFunction,\n GLOBAL_OBJ,\n markFunctionWrapped,\n withScope,\n} from '@sentry/core';\nimport { getLocationHref } from '@sentry/browser-utils';\n\nexport const WINDOW = GLOBAL_OBJ as typeof GLOBAL_OBJ & Window;\n\nlet ignoreOnError: number = 0;\n\ntype ErrorReport = Pick;\n\nconst ignoredErrorReports: ErrorReport[] = [];\n\n/**\n * @hidden\n */\nexport function shouldIgnoreOnError(data?: HandlerDataError): boolean {\n if (ignoreOnError > 0) {\n return true;\n }\n\n const index = data ? ignoredErrorReports.findIndex(report => isSameErrorReport(report, data)) : -1;\n if (index === -1) {\n return false;\n }\n\n ignoredErrorReports.splice(index, 1);\n return true;\n}\n\n/**\n * Skips the next `onerror` report that matches `report`, once. A report that\n * never arrives is forgotten after the current task.\n *\n * @hidden\n */\nexport function ignoreNextOnErrorMatching(report: ErrorReport): void {\n ignoredErrorReports.push(report);\n setTimeout(() => {\n const index = ignoredErrorReports.indexOf(report);\n if (index !== -1) {\n ignoredErrorReports.splice(index, 1);\n }\n });\n}\n\nfunction isSameErrorReport(a: ErrorReport, b: ErrorReport): boolean {\n return a.msg === b.msg && a.url === b.url && a.line === b.line && a.column === b.column;\n}\n\n/**\n * @hidden\n */\nexport function ignoreNextOnError(): void {\n // onerror should trigger before setTimeout\n ignoreOnError++;\n setTimeout(() => {\n ignoreOnError--;\n });\n}\n\n// eslint-disable-next-line @typescript-eslint/ban-types\ntype WrappableFunction = Function;\n\nexport function wrap(\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 *\n * The `Referer` header has `dataCollection.urlQueryParams` of `client` applied. `url` is unfiltered, so\n * callers must pass it through `filterCollectedUrl`.\n */\nexport function getHttpRequestData(client: Client): { 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: filterCollectedUrl(referrer, client) }),\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';\nimport {\n _INTERNAL_enhanceErrorWithSentryInfo,\n addExceptionMechanism,\n addExceptionTypeValue,\n extractExceptionKeysForMessage,\n getClient,\n isDOMError,\n isDOMException,\n isError,\n isErrorEvent,\n isEvent,\n isParameterizedString,\n isPlainObject,\n normalizeToSize,\n resolvedSyncPromise,\n} from '@sentry/core';\n\ntype Prototype = { constructor: (...args: unknown[]) => unknown };\n\n/**\n * This function creates an exception from a JavaScript Error\n */\nexport function exceptionFromError(stackParser: StackParser, ex: Error): Exception {\n // Get the frames first since Opera can lose the stack if we touch anything else first\n const frames = parseStackFrames(stackParser, ex);\n\n const exception: Exception = {\n type: extractType(ex),\n value: extractMessage(ex),\n };\n\n if (frames.length) {\n exception.stacktrace = { frames };\n }\n\n if (exception.type === undefined && exception.value === '') {\n exception.value = 'Unrecoverable error caught';\n }\n\n return exception;\n}\n\nfunction eventFromPlainObject(\n stackParser: StackParser,\n exception: Record,\n syntheticException?: Error,\n isUnhandledRejection?: boolean,\n): Event {\n const client = getClient();\n const normalizeDepth = client?.getOptions().normalizeDepth;\n\n // If we can, we extract an exception from the object properties\n const errorFromProp = getErrorPropertyFromObject(exception);\n\n const extra = {\n __serialized__: normalizeToSize(exception, normalizeDepth),\n };\n\n if (errorFromProp) {\n return {\n exception: {\n values: [exceptionFromError(stackParser, errorFromProp)],\n },\n extra,\n };\n }\n\n const exceptionValue: Exception = {\n type: isEvent(exception) ? exception.constructor.name : isUnhandledRejection ? 'UnhandledRejection' : 'Error',\n value: getNonErrorObjectExceptionValue(exception, { isUnhandledRejection }),\n };\n\n const event = {\n exception: {\n values: [exceptionValue],\n },\n extra,\n } satisfies Event;\n\n if (syntheticException) {\n const frames = parseStackFrames(stackParser, syntheticException);\n if (frames.length) {\n // event.exception.values[0] has been set above\n // eslint-disable-next-line @typescript-eslint/no-non-null-assertion\n event.exception.values[0]!.stacktrace = { frames };\n }\n }\n\n return event;\n}\n\nfunction eventFromError(stackParser: StackParser, ex: Error): Event {\n return {\n exception: {\n values: [exceptionFromError(stackParser, ex)],\n },\n };\n}\n\n/** Parses stack frames from an error */\nfunction parseStackFrames(\n stackParser: StackParser,\n ex: Error & { framesToPop?: number; stacktrace?: string },\n): StackFrame[] {\n // Access and store the stacktrace property before doing ANYTHING\n // else to it because Opera is not very good at providing it\n // reliably in other circumstances.\n const stacktrace = ex.stacktrace || ex.stack || '';\n\n const skipLines = getSkipFirstStackStringLines(ex);\n const framesToPop = getPopFirstTopFrames(ex);\n\n try {\n return stackParser(stacktrace, skipLines, framesToPop);\n } catch {\n // no-empty\n }\n\n return [];\n}\n\n// Based on our own mapping pattern - https://github.com/getsentry/sentry/blob/9f08305e09866c8bd6d0c24f5b0aabdd7dd6c59c/src/sentry/lang/javascript/errormapping.py#L83-L108\nconst reactMinifiedRegexp = /Minified React error #\\d+;/i;\n\n/**\n * Certain known React errors contain links that would be falsely\n * parsed as frames. This function check for these errors and\n * returns number of the stack string lines to skip.\n */\nfunction getSkipFirstStackStringLines(ex: Error): number {\n if (ex && reactMinifiedRegexp.test(ex.message)) {\n return 1;\n }\n\n return 0;\n}\n\n/**\n * If error has `framesToPop` property, it means that the\n * creator tells us the first x frames will be useless\n * and should be discarded. Typically error from wrapper function\n * which don't point to the actual location in the developer's code.\n *\n * Example: https://github.com/zertosh/invariant/blob/master/invariant.js#L46\n */\nfunction getPopFirstTopFrames(ex: Error & { framesToPop?: unknown }): number {\n if (typeof ex.framesToPop === 'number') {\n return ex.framesToPop;\n }\n\n return 0;\n}\n\n// https://developer.mozilla.org/en-US/docs/WebAssembly/JavaScript_interface/Exception\nfunction isWebAssemblyException(exception: unknown): exception is WebAssembly.Exception {\n // Check for support\n // oxlint-disable-next-line typescript/prefer-optional-chain\n if (typeof WebAssembly !== 'undefined' && typeof WebAssembly.Exception !== 'undefined') {\n return exception instanceof WebAssembly.Exception;\n } else {\n return false;\n }\n}\n\n/**\n * Extracts from errors what we use as the exception `type` in error events.\n *\n * Usually, this is the `name` property on Error objects but WASM errors need to be treated differently.\n */\nexport function extractType(ex: Error & { message: { error?: Error } }): string | undefined {\n const name = ex?.name;\n\n // The name for WebAssembly.Exception Errors needs to be extracted differently.\n // Context: https://github.com/getsentry/sentry-javascript/issues/13787\n if (!name && isWebAssemblyException(ex)) {\n // Emscripten sets array[type, message] to the \"message\" property on the WebAssembly.Exception object\n const hasTypeInMessage = ex.message && Array.isArray(ex.message) && ex.message.length == 2;\n return hasTypeInMessage ? ex.message[0] : 'WebAssembly.Exception';\n }\n\n return name;\n}\n\n/**\n * There are cases where stacktrace.message is an Event object\n * https://github.com/getsentry/sentry-javascript/issues/1949\n * In this specific case we try to extract stacktrace.message.error.message\n */\nexport function extractMessage(ex: Error & { message: { error?: Error } }): string {\n const message = ex?.message;\n\n if (isWebAssemblyException(ex)) {\n // For Node 18, Emscripten sets array[type, message] to the \"message\" property on the WebAssembly.Exception object\n if (Array.isArray(ex.message) && ex.message.length == 2) {\n return ex.message[1];\n }\n return 'wasm exception';\n }\n\n if (!message) {\n return 'No error message';\n }\n\n if (message.error && typeof message.error.message === 'string') {\n return _INTERNAL_enhanceErrorWithSentryInfo(message.error);\n }\n\n return _INTERNAL_enhanceErrorWithSentryInfo(ex);\n}\n\n/**\n * Creates an {@link Event} from all inputs to `captureException` and non-primitive inputs to `captureMessage`.\n * @hidden\n */\nexport function eventFromException(\n stackParser: StackParser,\n exception: unknown,\n hint?: EventHint,\n attachStacktrace?: boolean,\n): PromiseLike {\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) && (exception as ErrorEvent).error) {\n // If it is an ErrorEvent with `error` property, extract it to get actual Error\n const errorEvent = exception as ErrorEvent;\n return eventFromError(stackParser, errorEvent.error as Error);\n }\n\n // If it is a `DOMError` (which is a legacy API, but still supported in some browsers) then we just extract the name\n // and message, as it doesn't provide anything else. According to the spec, all `DOMExceptions` should also be\n // `Error`s, but that's not the case in IE11, so in that case we treat it the same as we do a `DOMError`.\n //\n // https://developer.mozilla.org/en-US/docs/Web/API/DOMError\n // https://developer.mozilla.org/en-US/docs/Web/API/DOMException\n // https://webidl.spec.whatwg.org/#es-DOMException-specialness\n if (isDOMError(exception) || isDOMException(exception)) {\n const domException = exception as DOMException;\n\n if ('stack' in (exception as Error)) {\n event = eventFromError(stackParser, exception as Error);\n\n const firstException = event.exception?.values?.[0];\n if (attachStacktrace && syntheticException && firstException && !firstException.stacktrace) {\n const frames = parseStackFrames(stackParser, syntheticException);\n if (frames.length) {\n firstException.stacktrace = { frames };\n addExceptionMechanism(event, { synthetic: true });\n }\n }\n } else {\n const name = domException.name || (isDOMError(domException) ? 'DOMError' : 'DOMException');\n const message = domException.message ? `${name}: ${domException.message}` : name;\n event = eventFromString(stackParser, message, syntheticException, attachStacktrace);\n addExceptionTypeValue(event, message);\n }\n\n return event;\n }\n if (isError(exception)) {\n // we have a real Error object, do nothing\n return eventFromError(stackParser, exception);\n }\n if (isPlainObject(exception) || isEvent(exception)) {\n // If it's a plain object or an instance of `Event` (the built-in JS kind, not this SDK's `Event` type), serialize\n // it manually. This will allow us to group events based on top-level keys which is much better than creating a new\n // group on any key/value change.\n const objectException = exception;\n event = eventFromPlainObject(stackParser, objectException, syntheticException, isUnhandledRejection);\n addExceptionMechanism(event, {\n synthetic: true,\n });\n return event;\n }\n\n // If none of previous checks were valid, then it means that it's not:\n // - an instance of DOMError\n // - an instance of DOMException\n // - an instance of Event\n // - an instance of Error\n // - a valid ErrorEvent (one with an error property)\n // - a plain Object\n //\n // So bail out and capture it as a simple message:\n const stringifiedException = String(exception);\n event = eventFromString(stackParser, stringifiedException, syntheticException, attachStacktrace);\n addExceptionTypeValue(event, stringifiedException, undefined);\n addExceptionMechanism(event, {\n synthetic: true,\n });\n\n return event;\n}\n\nfunction eventFromString(\n stackParser: StackParser,\n message: ParameterizedString,\n syntheticException?: Error,\n attachStacktrace?: boolean,\n): Event {\n const event: Event = {};\n\n if (attachStacktrace && syntheticException) {\n const frames = parseStackFrames(stackParser, syntheticException);\n if (frames.length) {\n event.exception = {\n values: [{ value: message, stacktrace: { frames } }],\n };\n }\n addExceptionMechanism(event, { synthetic: true });\n }\n\n if (isParameterizedString(message)) {\n const { __sentry_template_string__, __sentry_template_values__ } = message;\n\n event.logentry = {\n message: __sentry_template_string__,\n params: __sentry_template_values__,\n };\n return event;\n }\n\n event.message = message;\n return event;\n}\n\nfunction getNonErrorObjectExceptionValue(\n exception: Record,\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", "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 { BrowserTunnelOptions } from '@sentry/core';\nimport {\n debug,\n getTunnelPath,\n isURLObjectRelative,\n makeDsn,\n _INTERNAL_normalizeTunnelBasePath as normalizeTunnelBasePath,\n parseStringToURLObject,\n} from '@sentry/core';\nimport { DEBUG_BUILD } from '../debug-build';\nimport type { BrowserOptions } from '../client';\nimport { WINDOW } from '../helpers';\n\n/**\n * Resolves `tunnel: true` or {@link BrowserTunnelOptions} to the managed tunnel's same-origin path. A string is left as\n * written, so a tunnel the app serves itself keeps its URL.\n */\nexport function resolveBrowserTunnelOption(\n options: Pick,\n): Pick & { tunnel: string | undefined } {\n const { tunnel, dsn, transportOptions } = options;\n if (!tunnel) {\n return { tunnel, transportOptions };\n }\n\n if (typeof tunnel === 'string') {\n return {\n tunnel,\n transportOptions: isSameOrigin(tunnel) ? withEnvelopeContentType(transportOptions) : transportOptions,\n };\n }\n\n const tunnelOptions: BrowserTunnelOptions = tunnel === true ? {} : tunnel;\n const dsnComponents = dsn && makeDsn(dsn);\n const tunnelPath = tunnelOptions.path ?? (dsnComponents && getTunnelPath(dsnComponents));\n if (!tunnelPath) {\n return { tunnel: undefined, transportOptions };\n }\n\n const basePath = normalizeTunnelBasePath(tunnelOptions.basePath);\n const resolvedTunnel = `${basePath}${tunnelPath}${tunnelOptions.trailingSlash ? '/' : ''}`;\n\n DEBUG_BUILD && debug.log(`Tunneling events to \"${resolvedTunnel}\"`);\n\n return { tunnel: resolvedTunnel, transportOptions: withEnvelopeContentType(transportOptions) };\n}\n\n/**\n * Sends envelopes as `application/x-sentry-envelope`. CSRF protection (SvelteKit, Astro) rejects the default\n * `text/plain` POST as a form submission, and the Next.js managed tunnel route on Vercel matches on this header.\n * Cross-origin it would trigger a CORS preflight, so only same-origin tunnels get it.\n */\nfunction withEnvelopeContentType(\n transportOptions: BrowserOptions['transportOptions'],\n): BrowserOptions['transportOptions'] {\n return {\n ...transportOptions,\n headers: { 'Content-Type': 'application/x-sentry-envelope', ...transportOptions?.headers },\n };\n}\n\n/**\n * Whether the tunnel URL is on the page's origin. Unknown counts as cross-origin.\n */\nfunction isSameOrigin(url: string): boolean {\n const urlObject = parseStringToURLObject(url, WINDOW.location?.href);\n if (!urlObject) {\n return false;\n }\n\n return isURLObjectRelative(urlObject) || urlObject.origin === WINDOW.location?.origin;\n}\n", "import type {\n BrowserTunnelOptions,\n ClientOptions,\n Event,\n EventHint,\n Options as CoreOptions,\n ParameterizedString,\n Scope,\n SeverityLevel,\n TunnelInit,\n} from '@sentry/core';\nimport type { BrowserClientReplayOptions } from '@sentry/core/browser';\nimport type { RouteProvider } from '@sentry/browser-utils';\nimport { setRouteProvider } from '@sentry/browser-utils';\nimport {\n _INTERNAL_RELEASE_META_TAG_NAME,\n addAutoIpAddressToSession,\n applySdkMetadata,\n Client,\n getSDKSource,\n timestampInSeconds,\n} from '@sentry/core';\nimport { eventFromException, eventFromMessage } from './eventbuilder';\nimport { WINDOW } from './helpers';\nimport type { BrowserTransportOptions } from './transports/types';\nimport { resolveBrowserTunnelOption } from './utils/managedTunnel';\n\n/**\n * A magic string that build tooling can leverage in order to inject a release value into the SDK.\n */\ndeclare const __SENTRY_RELEASE__: string | undefined;\n\nexport type BrowserClientProfilingOptions = {\n /**\n * Sets profiling session sample rate for the entire profiling session.\n *\n * A profiling session corresponds to a user session, meaning it is set once at integration initialization and\n * persisted until the next page reload. This rate determines what percentage of user sessions will have profiling enabled.\n * @default 0\n */\n profileSessionSampleRate?: number;\n\n /**\n * Set the lifecycle mode of the profiler.\n * - **manual**: The profiler will be manually started and stopped via `startProfiler`/`stopProfiler`.\n * If a session is sampled, is dependent on the `profileSessionSampleRate`.\n * - **trace**: The profiler will be automatically started when a root span exists and stopped when there are no\n * more sampled root spans. Whether a session is sampled, is dependent on the `profileSessionSampleRate` and the\n * existing sampling configuration for tracing (`tracesSampleRate`/`tracesSampler`).\n *\n * @default 'manual'\n */\n profileLifecycle?: 'manual' | 'trace';\n};\n\ntype BrowserSpecificOptions = BrowserClientReplayOptions &\n BrowserClientProfilingOptions & {\n /** If configured, this URL will be used as base URL for lazy loading integration. */\n cdnBaseUrl?: string;\n\n /**\n * Important: Only set this option if you know what you are doing!\n *\n * By default, the SDK will check if `Sentry.init` is called in a browser extension.\n * In case it is, it will stop initialization and log a warning\n * because browser extensions require a different Sentry initialization process:\n * https://docs.sentry.io/platforms/javascript/best-practices/shared-environments/\n *\n * Setting up the SDK in a browser extension with global error monitoring is not recommended\n * and will likely flood you with errors from other web sites or extensions. This can heavily\n * impact your quota and cause interference with your and other Sentry SDKs in shared environments.\n *\n * If this check wrongfully flags your setup as a browser extension, you can set this\n * option to `true` to skip the check.\n *\n * @default false\n */\n skipBrowserExtensionCheck?: boolean;\n\n /**\n * If you use Spotlight by Sentry during development, use\n * this option to forward captured Sentry events to Spotlight.\n *\n * Either set it to true, or provide a specific Spotlight Sidecar URL.\n *\n * More details: https://spotlightjs.com/\n *\n * IMPORTANT: Only set this option to `true` while developing, not in production!\n */\n spotlight?: boolean | string;\n\n /**\n * Resolves URLs to low-cardinality route names, e.g. `/users/42` -> `/users/:id`.\n *\n * Framework SDKs set this for you. Set it yourself to name routes for a router the SDK has no\n * integration for. `setRouteProvider` replaces it at runtime.\n */\n routeProvider?: RouteProvider;\n };\n/**\n * Configuration options for the Sentry Browser SDK.\n * @see @sentry/core Options for more information.\n */\nexport type BrowserOptions = CoreOptions &\n BrowserSpecificOptions & {\n /**\n * Where to send envelopes instead of the Sentry ingest URL, see {@link TunnelInit}.\n *\n * @default undefined\n */\n tunnel?: TunnelInit;\n };\n\n/**\n * Configuration options for the Sentry Browser SDK Client class\n * @see BrowserClient for more information.\n */\nexport type BrowserClientOptions = Omit & Pick;\n\n/**\n * {@link BrowserClientOptions} after the client resolved the tunnel to a URL.\n */\nexport type ResolvedBrowserClientOptions = 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 // `init()` already resolves the tunnel, but a client constructed by hand doesn't go through it.\n const opts = applyDefaultOptions({ ...options, ...resolveBrowserTunnelOption(options) });\n const sdkSource = WINDOW.SENTRY_SDK_SOURCE || getSDKSource();\n applySdkMetadata(opts, 'browser', ['browser'], sdkSource);\n\n super(opts);\n\n if (opts.routeProvider) {\n setRouteProvider(opts.routeProvider, this);\n }\n\n // Unhandled errors don't actually crash the browser, so we report `unhandled` rather than `crashed`.\n this._unhandledSessionStatus = 'unhandled';\n\n const { userInfo } = this.getDataCollectionOptions();\n\n if (opts._metadata?.sdk) {\n opts._metadata.sdk.settings = {\n // Only allow IP inferral by Relay if the user opted in via dataCollection\n infer_ip: userInfo ? 'auto' : 'never',\n // purposefully allowing already passed settings to override the default\n ...opts._metadata.sdk.settings,\n };\n }\n\n const { sendClientReports } = this._options;\n\n // Devices usually hide the page before they sleep and show it again after they wake up. Checking for drift\n // at both points makes the time origin correction happen at the sleep, rather than at the next regular timestamp call.\n const checkDrift = (): void => {\n timestampInSeconds();\n };\n\n // Most bundle-size-efficient way to add and remove listeners: Create a table to avoid repeated\n // addeventlistener and removeeventlistener calls. The alternative, using an AbortController, can\n // lead to app breakage on old Angular<>Zone.js < 0.14.3 versions.\n const listeners: [EventTarget | undefined, string, () => void][] = [\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 [\n WINDOW.document,\n 'visibilitychange',\n () => {\n // Devices usually hide the page before they sleep and show it again after they wake up. Checking for drift\n // at both points makes the time origin correction happen at the sleep, rather than at the next regular timestamp call.\n checkDrift();\n\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 // `freeze` and `resume` are only fired by Chromium browsers. Other browsers never fire them, so these listeners\n // are no-ops there.\n [WINDOW.document, 'freeze', checkDrift],\n [WINDOW.document, 'resume', checkDrift],\n // Pages restored from the back/forward cache were paused while they were cached.\n [WINDOW, 'pagehide', checkDrift],\n [WINDOW, 'pageshow', checkDrift],\n ];\n\n listeners.forEach(([target, name, listener]) => target?.addEventListener?.(name, listener));\n this.on('close', () =>\n listeners.forEach(([target, name, listener]) => target?.removeEventListener?.(name, listener)),\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 sendClientReports: true,\n // We default this to true, as it is the safer scenario\n parentSpanIsAlwaysRootSpan: true,\n ...optionsArg,\n release: optionsArg.release ?? getDefaultRelease(),\n };\n}\n\nfunction getDefaultRelease(): string | undefined {\n return typeof __SENTRY_RELEASE__ === 'string' // This allows build tooling to find-and-replace __SENTRY_RELEASE__ to inject a release value\n ? __SENTRY_RELEASE__\n : (getReleaseFromMetaTag() ?? WINDOW.SENTRY_RELEASE?.id); // This supports the variable that sentry-webpack-plugin injects\n}\n\n/**\n * Framework SDKs render the release into each page, so the content-hashed client chunks don't change on every\n * release. The page comes from the server on every request, so it wins over `WINDOW.SENTRY_RELEASE`, which a cached\n * chunk can set. It loses to `__SENTRY_RELEASE__`, which belongs to the one bundle that defined it, so a script\n * embedded in another app's page keeps its own release.\n */\nfunction getReleaseFromMetaTag(): string | undefined {\n return (\n WINDOW.document?.querySelector?.(`meta[name=\"${_INTERNAL_RELEASE_META_TAG_NAME}\"]`)?.getAttribute('content') ||\n undefined\n );\n}\n", "import type { Transport, TransportMakeRequestResponse, TransportRequest } from '@sentry/core';\nimport { createTransport, makePromiseBuffer } from '@sentry/core';\nimport { clearCachedImplementation, getNativeImplementation } from '@sentry/browser-utils';\nimport type { WINDOW } from '../helpers';\nimport type { BrowserTransportOptions } from './types';\n\nconst DEFAULT_BROWSER_TRANSPORT_BUFFER_SIZE = 40;\n\n/**\n * Creates a Transport that uses the Fetch API to send events to Sentry.\n */\nexport function makeFetchTransport(\n options: BrowserTransportOptions,\n nativeFetch: typeof WINDOW.fetch = getNativeImplementation('fetch'),\n): Transport {\n let pendingBodySize = 0;\n let pendingCount = 0;\n\n async function makeRequest(request: TransportRequest): Promise {\n const requestSize = request.body.length;\n pendingBodySize += requestSize;\n pendingCount++;\n\n const requestOptions: RequestInit = {\n body: request.body as BodyInit,\n method: 'POST',\n referrerPolicy: 'strict-origin',\n headers: options.headers,\n // Outgoing requests are usually cancelled when navigating to a different page, causing a \"TypeError: Failed to\n // fetch\" error and sending a \"network_error\" client-outcome - in Chrome, the request status shows \"(cancelled)\".\n // The `keepalive` flag keeps outgoing requests alive, even when switching pages. We want this since we're\n // frequently sending events right before the user is switching pages (eg. when finishing navigation transactions).\n // Gotchas:\n // - `keepalive` isn't supported by Firefox\n // - As per spec (https://fetch.spec.whatwg.org/#http-network-or-cache-fetch):\n // If the sum of contentLength and inflightKeepaliveBytes is greater than 64 kibibytes, then return a network error.\n // We will therefore only activate the flag when we're below that limit.\n // There is also a limit of requests that can be open at the same time, so we also limit this to 15\n // See https://github.com/getsentry/sentry-javascript/pull/7553 for details\n keepalive: pendingBodySize <= 60_000 && pendingCount < 15,\n ...options.fetchOptions,\n };\n\n try {\n // Note: We do not need to suppress tracing here, because we are using the native fetch, instead of our wrapped one.\n const response = await nativeFetch(options.url, requestOptions);\n\n return {\n statusCode: response.status,\n headers: {\n 'x-sentry-rate-limits': response.headers.get('X-Sentry-Rate-Limits'),\n 'retry-after': response.headers.get('Retry-After'),\n },\n };\n } catch (e) {\n clearCachedImplementation('fetch');\n throw e;\n } finally {\n pendingBodySize -= requestSize;\n pendingCount--;\n }\n }\n\n return createTransport(\n options,\n makeRequest,\n makePromiseBuffer(options.bufferSize || DEFAULT_BROWSER_TRANSPORT_BUFFER_SIZE),\n );\n}\n", "// This was originally forked from https://github.com/csnover/TraceKit, and was largely\n// re - written as part of raven - js.\n//\n// This code was later copied to the JavaScript mono - repo and further modified and\n// refactored over the years.\n\n// Copyright (c) 2013 Onur Can Cakmak onur.cakmak@gmail.com and all TraceKit contributors.\n//\n// Permission is hereby granted, free of charge, to any person obtaining a copy of this\n// software and associated documentation files(the 'Software'), to deal in the Software\n// without restriction, including without limitation the rights to use, copy, modify,\n// merge, publish, distribute, sublicense, and / or sell copies of the Software, and to\n// permit persons to whom the Software is furnished to do so, subject to the following\n// conditions:\n//\n// The above copyright notice and this permission notice shall be included in all copies\n// or substantial portions of the Software.\n//\n// THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,\n// INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A\n// PARTICULAR PURPOSE AND NONINFRINGEMENT.IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT\n// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF\n// CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE\n// OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\nimport type { StackFrame, StackLineParser, StackLineParserFn } from '@sentry/core';\nimport { createStackParser, UNKNOWN_FUNCTION } from '@sentry/core';\n\nconst OPERA10_PRIORITY = 10;\nconst OPERA11_PRIORITY = 20;\nconst CHROME_PRIORITY = 30;\nconst WINJS_PRIORITY = 40;\nconst GECKO_PRIORITY = 50;\n\nfunction createFrame(filename: string, func: string, lineno?: number, colno?: number): StackFrame {\n const frame: StackFrame = {\n filename,\n function: func === '' ? 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.\n// The negative lookahead skips a `(` that belongs to the function name rather than the location,\n// e.g. `methodCaller< (emscripten::val) => void>`: there, a `) ` follows before the next `(` opens.\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 HandlerDataFetch,\n IntegrationFn,\n} from '@sentry/core';\nimport {\n addBreadcrumb,\n addFetchInstrumentationHandler,\n debug,\n defineIntegration,\n filterCollectedUrl,\n getBreadcrumbLogLevelFromHttpStatusCode,\n getClient,\n getEventDescription,\n parseUrl,\n} from '@sentry/core';\nimport type { FetchHint, HandlerDataDom, HandlerDataHistory, HandlerDataXhr } from '@sentry/browser-utils';\nimport {\n addClickKeypressInstrumentationHandler,\n addHistoryInstrumentationHandler,\n addXhrInstrumentationHandler,\n htmlTreeAsString,\n getComponentName,\n SENTRY_XHR_DATA_KEY,\n} from '@sentry/browser-utils';\nimport type { XhrBreadcrumbData, XhrBreadcrumbHint } from '@sentry/core/browser';\nimport { DEBUG_BUILD } from '../debug-build';\nimport { WINDOW } from '../helpers';\n\ninterface BreadcrumbsOptions {\n dom:\n | boolean\n | {\n serializeAttribute?: string | string[];\n maxStringLength?: number;\n };\n fetch: boolean;\n history: boolean;\n sentry: boolean;\n xhr: boolean;\n}\n\n/** maxStringLength gets capped to prevent 100 breadcrumbs exceeding 1MB event payload size */\nconst MAX_ALLOWED_STRING_LENGTH = 1024;\n\nconst INTEGRATION_NAME = 'Breadcrumbs' as const;\n\nconst _breadcrumbsIntegration = ((options: Partial = {}) => {\n const _options = {\n dom: true,\n fetch: true,\n history: true,\n sentry: true,\n xhr: true,\n ...options,\n };\n\n return {\n name: INTEGRATION_NAME,\n setup(client) {\n if (_options.dom) {\n addClickKeypressInstrumentationHandler(_getDomBreadcrumbHandler(client, _options.dom));\n }\n if (_options.xhr) {\n addXhrInstrumentationHandler(_getXhrBreadcrumbHandler(client));\n }\n if (_options.fetch) {\n addFetchInstrumentationHandler(_getFetchBreadcrumbHandler(client));\n }\n if (_options.history) {\n addHistoryInstrumentationHandler(_getHistoryBreadcrumbHandler(client));\n }\n if (_options.sentry) {\n client.on('beforeSendEvent', _getSentryBreadcrumbHandler(client));\n }\n },\n };\n}) satisfies IntegrationFn;\n\nexport const breadcrumbsIntegration = defineIntegration(_breadcrumbsIntegration);\n\n/**\n * Adds a breadcrumb for Sentry events or transactions if this option is enabled.\n */\nfunction _getSentryBreadcrumbHandler(client: Client): (event: SentryEvent) => void {\n return function addSentryBreadcrumb(event: SentryEvent): void {\n if (getClient() !== client) {\n return;\n }\n\n addBreadcrumb(\n {\n category: `sentry.${event.type === 'transaction' ? 'transaction' : 'event'}`,\n event_id: event.event_id,\n level: event.level,\n message: getEventDescription(event),\n },\n {\n event,\n },\n );\n };\n}\n\n/**\n * A HOC that creates a function that creates breadcrumbs from DOM API calls.\n * This is a HOC so that we get access to dom options in the closure.\n */\nfunction _getDomBreadcrumbHandler(\n client: Client,\n dom: BreadcrumbsOptions['dom'],\n): (handlerData: HandlerDataDom) => void {\n return function _innerDomBreadcrumb(handlerData: HandlerDataDom): void {\n if (getClient() !== client) {\n return;\n }\n\n let target;\n let componentName;\n let keyAttrs = typeof dom === 'object' ? dom.serializeAttribute : undefined;\n\n let maxStringLength =\n typeof dom === 'object' && typeof dom.maxStringLength === 'number' ? dom.maxStringLength : undefined;\n if (maxStringLength && maxStringLength > MAX_ALLOWED_STRING_LENGTH) {\n DEBUG_BUILD &&\n debug.warn(\n `\\`dom.maxStringLength\\` cannot exceed ${MAX_ALLOWED_STRING_LENGTH}, but a value of ${maxStringLength} was configured. Sentry will use ${MAX_ALLOWED_STRING_LENGTH} instead.`,\n );\n maxStringLength = MAX_ALLOWED_STRING_LENGTH;\n }\n\n if (typeof keyAttrs === 'string') {\n keyAttrs = [keyAttrs];\n }\n\n // Accessing event.target can throw (see getsentry/raven-js#838, #768)\n try {\n const event = handlerData.event as Event | Node;\n const element = _isEvent(event) ? event.target : event;\n\n target = htmlTreeAsString(element, { keyAttrs, maxStringLength });\n componentName = getComponentName(element);\n } catch {\n target = '';\n }\n\n if (target.length === 0) {\n return;\n }\n\n const breadcrumb: Breadcrumb = {\n category: `ui.${handlerData.name}`,\n message: target,\n };\n\n if (componentName) {\n breadcrumb.data = { 'ui.component_name': componentName };\n }\n\n addBreadcrumb(breadcrumb, {\n event: handlerData.event,\n name: handlerData.name,\n global: handlerData.global,\n });\n };\n}\n\n/**\n * Creates breadcrumbs from XHR API calls\n */\nfunction _getXhrBreadcrumbHandler(client: Client): (handlerData: HandlerDataXhr) => void {\n return function _xhrBreadcrumb(handlerData: HandlerDataXhr): void {\n if (getClient() !== client) {\n return;\n }\n\n const { startTimestamp, endTimestamp } = handlerData;\n\n const sentryXhrData = handlerData.xhr[SENTRY_XHR_DATA_KEY];\n\n // We only capture complete, non-sentry requests\n if (!startTimestamp || !endTimestamp || !sentryXhrData) {\n return;\n }\n\n const { method, url, status_code, body } = sentryXhrData;\n\n const data: XhrBreadcrumbData = {\n method,\n url: getBreadcrumbUrl(url, client),\n status_code,\n };\n\n const hint: XhrBreadcrumbHint = {\n xhr: handlerData.xhr,\n input: body,\n startTimestamp,\n endTimestamp,\n };\n\n const breadcrumb = {\n category: 'xhr',\n data,\n type: 'http',\n level: getBreadcrumbLogLevelFromHttpStatusCode(status_code),\n };\n\n client.emit('beforeOutgoingRequestBreadcrumb', breadcrumb, hint);\n\n addBreadcrumb(breadcrumb, hint);\n };\n}\n\n/**\n * Creates breadcrumbs from fetch API calls\n */\nfunction _getFetchBreadcrumbHandler(client: Client): (handlerData: HandlerDataFetch) => void {\n return function _fetchBreadcrumb(handlerData: HandlerDataFetch): void {\n if (getClient() !== client) {\n return;\n }\n\n const { startTimestamp, endTimestamp } = handlerData;\n\n // We only capture complete fetch requests\n if (!endTimestamp) {\n return;\n }\n\n if (handlerData.fetchData.url.match(/sentry_key/) && handlerData.fetchData.method === 'POST') {\n // We will not create breadcrumbs for fetch requests that contain `sentry_key` (internal sentry requests)\n return;\n }\n\n if (handlerData.error) {\n const hint: FetchBreadcrumbHint = {\n data: handlerData.error,\n input: handlerData.args,\n startTimestamp,\n endTimestamp,\n };\n\n const breadcrumb = {\n category: 'fetch',\n data: { ...handlerData.fetchData, url: getBreadcrumbUrl(handlerData.fetchData.url, client) },\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 url: getBreadcrumbUrl(handlerData.fetchData.url, client),\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: filterCollectedUrl(from),\n to: filterCollectedUrl(to),\n },\n });\n };\n}\n\nfunction getBreadcrumbUrl(url: string, client?: Client): string {\n const pageUrl = url === '' ? WINDOW.location?.href : undefined;\n return filterCollectedUrl(pageUrl ? (pageUrl.split('#')[0] ?? '') : url, client);\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';\nimport { defineIntegration, fill, getFunctionName, getOriginalFunction } from '@sentry/core';\nimport { WINDOW, wrap } from '../helpers';\n\n// Using a comma-separated string and split for smaller bundle size vs an array literal\nconst DEFAULT_EVENT_TARGET =\n 'EventTarget,Window,Node,ApplicationCache,AudioTrackList,BroadcastChannel,ChannelMergerNode,CryptoOperation,EventSource,FileReader,HTMLUnknownElement,IDBDatabase,IDBRequest,IDBTransaction,KeyOperation,MediaController,MessagePort,ModalWindow,Notification,SVGElementInstance,Screen,SharedWorker,TextTrack,TextTrackCue,TextTrackList,WebSocket,WebSocketWorker,Worker,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload'.split(\n ',',\n );\n\nconst INTEGRATION_NAME = 'BrowserApiErrors' as const;\n\ntype XMLHttpRequestProp = 'onload' | 'onerror' | 'onprogress' | 'onreadystatechange';\n\ninterface BrowserApiErrorsOptions {\n setTimeout: boolean;\n setInterval: boolean;\n requestAnimationFrame: boolean;\n XMLHttpRequest: boolean;\n eventTarget: boolean | string[];\n\n /**\n * If you experience issues with this integration causing double-invocations of event listeners,\n * try setting this option to `true`. It will unregister the original callbacks from the event targets\n * before adding the instrumented callback.\n *\n * @default false\n */\n unregisterOriginalCallbacks: boolean;\n}\n\nconst _browserApiErrorsIntegration = ((options: Partial = {}) => {\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';\nimport { addHistoryInstrumentationHandler, whenIdleOrHidden } from '@sentry/browser-utils';\nimport { DEBUG_BUILD } from '../debug-build';\nimport { WINDOW } from '../helpers';\n\ninterface BrowserSessionOptions {\n /**\n * Controls the session lifecycle - when new sessions are created.\n *\n * - `'page'`: A session is created once when the page is loaded. Session is not\n * updated on navigation. This is the default behavior.\n * - `'route'`: A session is created on page load and on every navigation.\n *\n * @default 'page'\n */\n lifecycle?: 'route' | 'page';\n}\n\n/**\n * When added, automatically creates sessions which allow you to track adoption and crashes (crash free rate) in your Releases in Sentry.\n * More information: https://docs.sentry.io/product/releases/health/\n *\n * Note: In order for session tracking to work, you need to set up Releases: https://docs.sentry.io/product/releases/\n */\nexport const browserSessionIntegration = defineIntegration((options: BrowserSessionOptions = {}) => {\n const lifecycle = options.lifecycle ?? 'page';\n\n return {\n name: 'BrowserSession' as const,\n setupOnce() {\n if (typeof WINDOW.document === 'undefined') {\n DEBUG_BUILD &&\n debug.warn('Using the `browserSessionIntegration` in non-browser environments is not supported.');\n return;\n }\n\n // The session duration for browser sessions does not track a meaningful\n // concept that can be used as a metric.\n // Automatically captured sessions are akin to page views, and thus we\n // discard their duration.\n startSession({ ignoreDuration: true });\n\n // Sending the session envelope synchronously in `init()` runs the full send\n // pipeline during page load, competing with critical resources for the network and\n // adding overhead that measurably hurts LCP. We defer the initial send until the\n // browser is idle; `whenIdleOrHidden` flushes it on page-hide so we don't lose short\n // (page-view-like) sessions.\n let initialSessionSent = false;\n whenIdleOrHidden(() => {\n // A navigation (in `'route'` lifecycle) may start and send a new session before this\n // deferred callback fires. In that case the current session was already sent, so\n // re-capturing here would send it a second time - guard against that.\n if (!initialSessionSent) {\n captureSession();\n initialSessionSent = true;\n }\n });\n\n // User data can be set at any time, for example async after Sentry.init has run and the initial session\n // envelope was already sent, but still on the initial page.\n // Therefore, we have to update the ongoing session with the new user data if it exists, to send the `did`.\n // In theory, sessions, as well as user data is always put onto the isolation scope. So we listen to the\n // isolation scope for changes and update the session with the new user data if it exists.\n // This will not catch users set onto other scopes, like the current scope. For now, we'll accept this limitation.\n // The alternative is to update and capture the session from within the scope. This could be too costly or would not\n // play well with session aggregates on the server side. Since this happens in the scope class, we'd need change\n // scope behaviour in the browser.\n const isolationScope = getIsolationScope();\n let previousUser = isolationScope.getUser();\n isolationScope.addScopeListener(scope => {\n const maybeNewUser = scope.getUser();\n // sessions only care about user id and ip address, so we only need to capture the session if the user has changed\n if (previousUser?.id !== maybeNewUser?.id || previousUser?.ip_address !== maybeNewUser?.ip_address) {\n previousUser = maybeNewUser;\n // Only emit a dedicated update envelope for user data that arrives _after_ the\n // deferred initial session was sent. User data set during page load is already\n // reflected in that session (the scope writes it onto the session), so capturing\n // here would send a redundant envelope - and do so during page load, which is\n // exactly the overhead we're deferring away from.\n if (initialSessionSent) {\n captureSession();\n }\n }\n });\n\n if (lifecycle === 'route') {\n // We want to create a session for every navigation as well\n addHistoryInstrumentationHandler(({ from, to }) => {\n // Don't create an additional session for the initial route or if the location did not change\n if (from !== to) {\n startSession({ ignoreDuration: true });\n captureSession();\n // A session has now been sent, so the deferred initial capture (if still pending)\n // must not re-send this navigation session.\n initialSessionSent = true;\n }\n });\n }\n },\n };\n});\n", "import { CULTURE_CALENDAR, CULTURE_LOCALE, CULTURE_TIMEZONE } from '@sentry/conventions/attributes';\nimport type { CultureContext, IntegrationFn } from '@sentry/core';\nimport { defineIntegration, safeSetSpanJSONAttributes } from '@sentry/core';\nimport { WINDOW } from '../helpers';\n\nconst INTEGRATION_NAME = 'CultureContext' as const;\n\nconst _cultureContextIntegration = (() => {\n return {\n name: INTEGRATION_NAME,\n preprocessEvent(event) {\n const culture = getCultureContext();\n\n if (culture) {\n event.contexts = {\n ...event.contexts,\n culture: { ...culture, ...event.contexts?.culture },\n };\n }\n },\n processSegmentSpan(span) {\n const culture = getCultureContext();\n\n if (culture) {\n safeSetSpanJSONAttributes(span, {\n [CULTURE_LOCALE]: culture.locale,\n [CULTURE_TIMEZONE]: culture.timezone,\n [CULTURE_CALENDAR]: culture.calendar,\n });\n }\n },\n };\n}) satisfies IntegrationFn;\n\n/**\n * Captures culture context from the browser.\n *\n * Enabled by default.\n *\n * @example\n * ```js\n * import * as Sentry from '@sentry/browser';\n *\n * Sentry.init({\n * integrations: [Sentry.cultureContextIntegration()],\n * });\n * ```\n */\nexport const cultureContextIntegration = defineIntegration(_cultureContextIntegration);\n\n/**\n * Returns the culture context from the browser's Intl API.\n */\nfunction getCultureContext(): CultureContext | undefined {\n try {\n const intl = (WINDOW as { Intl?: typeof Intl }).Intl;\n if (!intl) {\n return undefined;\n }\n\n const options = intl.DateTimeFormat().resolvedOptions();\n\n return {\n locale: options.locale,\n timezone: options.timeZone,\n calendar: options.calendar,\n };\n } catch {\n // Ignore errors\n return undefined;\n }\n}\n", "import type { Client, Event, IntegrationFn, Primitive, StackParser } from '@sentry/core';\nimport {\n addGlobalErrorInstrumentationHandler,\n addGlobalUnhandledRejectionInstrumentationHandler,\n captureEvent,\n debug,\n defineIntegration,\n getClient,\n isPrimitive,\n isString,\n stripDataUrlContent,\n UNKNOWN_FUNCTION,\n} from '@sentry/core';\nimport type { BrowserClient } from '../client';\nimport { DEBUG_BUILD } from '../debug-build';\nimport { getLocationHref } from '@sentry/browser-utils';\nimport { eventFromUnknownInput } from '../eventbuilder';\nimport { shouldIgnoreOnError } from '../helpers';\n\ntype GlobalHandlersIntegrationsOptionKeys = 'onerror' | 'onunhandledrejection';\n\ntype GlobalHandlersIntegrations = Record;\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(data)) {\n return;\n }\n\n const { msg, url, line, column, error } = data;\n\n const event = _enhanceEventWithInitialFrame(\n eventFromUnknownInput(stackParser, error || msg, undefined, attachStacktrace, false),\n url,\n line,\n column,\n );\n\n event.level = 'error';\n\n captureEvent(event, {\n originalException: error,\n mechanism: {\n handled: false,\n type: 'auto.browser.global_handlers.onerror',\n },\n });\n });\n}\n\nfunction _installGlobalOnUnhandledRejectionHandler(client: Client): void {\n addGlobalUnhandledRejectionInstrumentationHandler(e => {\n const { stackParser, attachStacktrace } = getOptions();\n\n if (getClient() !== client || shouldIgnoreOnError()) {\n return;\n }\n\n const error = _getUnhandledRejectionError(e);\n\n const event = isPrimitive(error)\n ? _eventFromRejectionWithPrimitive(error)\n : eventFromUnknownInput(stackParser, error, undefined, attachStacktrace, true);\n\n event.level = 'error';\n\n captureEvent(event, {\n originalException: error,\n mechanism: {\n handled: false,\n type: 'auto.browser.global_handlers.onunhandledrejection',\n },\n });\n });\n}\n\n/**\n *\n */\nexport function _getUnhandledRejectionError(error: unknown): unknown {\n if (isPrimitive(error)) {\n return error;\n }\n\n // dig the object of the rejection out of known event types\n try {\n type ErrorWithReason = { reason: unknown };\n // PromiseRejectionEvents store the object of the rejection under 'reason'\n // see https://developer.mozilla.org/en-US/docs/Web/API/PromiseRejectionEvent\n if ('reason' in (error as ErrorWithReason)) {\n return (error as ErrorWithReason).reason;\n }\n\n type CustomEventWithDetail = { detail: { reason: unknown } };\n // something, somewhere, (likely a browser extension) effectively casts PromiseRejectionEvents\n // to CustomEvents, moving the `promise` and `reason` attributes of the PRE into\n // the CustomEvent's `detail` attribute, since they're not part of CustomEvent's spec\n // see https://developer.mozilla.org/en-US/docs/Web/API/CustomEvent and\n // https://github.com/getsentry/sentry-javascript/issues/2380\n if ('detail' in (error as CustomEventWithDetail) && 'reason' in (error as CustomEventWithDetail).detail) {\n return (error as CustomEventWithDetail).detail.reason;\n }\n } catch {} // eslint-disable-line no-empty\n\n return error;\n}\n\n/**\n * Create an event from a promise rejection where the `reason` is a primitive.\n *\n * @param reason: The `reason` property of the promise rejection\n * @returns An Event object with an appropriate `exception` value\n */\nexport function _eventFromRejectionWithPrimitive(reason: Primitive): Event {\n return {\n exception: {\n values: [\n {\n type: 'UnhandledRejection',\n // String() is needed because the Primitive type includes symbols (which can't be automatically stringified)\n value: `Non-Error promise rejection captured with value: ${String(reason)}`,\n },\n ],\n },\n };\n}\n\n/**\n * Adds a frame built from the error location when the event has none.\n */\nexport function _enhanceEventWithInitialFrame(\n event: Event,\n url: string | undefined,\n lineno: number | undefined,\n colno: number | undefined,\n): Event {\n // event.exception\n const e = (event.exception = event.exception || {});\n // event.exception.values\n const ev = (e.values = e.values || []);\n // event.exception.values[0]\n const ev0 = (ev[0] = ev[0] || {});\n // event.exception.values[0].stacktrace\n const ev0s = (ev0.stacktrace = ev0.stacktrace || {});\n // event.exception.values[0].stacktrace.frames\n const ev0sf = (ev0s.frames = ev0s.frames || []);\n\n if (ev0sf.length === 0) {\n ev0sf.push({\n colno,\n lineno,\n filename: getFilenameFromUrl(url) ?? getLocationHref(),\n function: UNKNOWN_FUNCTION,\n in_app: true,\n });\n }\n\n return event;\n}\n\nfunction globalHandlerLog(type: string): void {\n DEBUG_BUILD && debug.log(`Global Handler attached: ${type}`);\n}\n\nfunction getOptions(): { stackParser: StackParser; attachStacktrace?: boolean } {\n const client = getClient();\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 { _INTERNAL_filterKeyValueData, defineIntegration, safeSetSpanJSONAttributes } from '@sentry/core';\nimport { getHttpRequestData, WINDOW } from '../helpers';\nimport { filterCollectedUrl } from '@sentry/core';\nimport {\n HTTP_REQUEST_HEADER_KEY_BASE,\n SENTRY_IS_LOCALHOST,\n SENTRY_OP,\n URL_FULL,\n USER_AGENT_ORIGINAL,\n} from '@sentry/conventions/attributes';\n\n/**\n * Collects information about HTTP request headers and\n * attaches them to the event.\n */\nexport const httpContextIntegration = defineIntegration(() => {\n return {\n name: 'HttpContext' as const,\n preprocessEvent(event, _hint, client) {\n // if none of the information we want exists, don't bother\n if (!WINDOW.navigator && !WINDOW.location && !WINDOW.document) {\n return;\n }\n\n const { url, headers: collectedHeaders } = getHttpRequestData(client);\n\n // We only filter the headers we collected ourselves, so headers the user set are left alone. Going by key\n // means we also catch these headers when `browserTracingIntegration` already put them on the event.\n const behavior = client.getDataCollectionOptions().httpHeaders.request;\n const userHeaders = Object.entries(event.request?.headers ?? {}).filter(([key]) => !(key in collectedHeaders));\n\n const headers = {\n ..._INTERNAL_filterKeyValueData(collectedHeaders, behavior),\n ...Object.fromEntries(userHeaders),\n };\n\n event.request = {\n url: filterCollectedUrl(url, client),\n ...event.request,\n ...(Object.keys(headers).length > 0 ? { headers } : { headers: undefined }),\n };\n },\n\n processSpan(span, client) {\n // if none of the information we want exists, don't bother\n if (!WINDOW.navigator && !WINDOW.location && !WINDOW.document) {\n return;\n }\n\n const reqData = getHttpRequestData(client);\n\n // `httpHeadersToSpanAttributes` would also work here, but its cookie and array handling never runs for these\n // two headers and costs every browser bundle ~400B gzip.\n const headers = _INTERNAL_filterKeyValueData(\n reqData.headers,\n client.getDataCollectionOptions().httpHeaders.request,\n );\n const referer = headers['Referer'];\n const { hostname, protocol } = WINDOW.location || {};\n\n safeSetSpanJSONAttributes(span, {\n // This attribute is used by the \"Filter out events from legacy browsers and crawlers\" features on the Sentry backend.\n // Therefore, it's set on every span.\n [USER_AGENT_ORIGINAL]: headers['User-Agent'],\n\n // Likewise for the \"Filter out localhost events\" feature. Deliberately inlined rather than\n // sharing the server-side helper, which costs bundle size for request headers and IPs that\n // don't exist here. Mirrors Relay's localhost filter (relay-filter/src/localhost.rs).\n [SENTRY_IS_LOCALHOST]:\n protocol === 'file:' ||\n hostname === 'localhost' ||\n hostname === '127.0.0.1' ||\n // `location.hostname` keeps the brackets for IPv6 hosts, so this is `[::1]`, not `::1`.\n hostname === '[::1]' ||\n !!hostname?.endsWith('.localhost'),\n\n // These attributes, we only need on the segment span (analogous to the `request` context for events)\n ...(span.is_segment && {\n // Coerce empty string to undefined so the helper's nullish check drops it,\n // rather than writing an empty `url.full` attribute onto the span.\n [URL_FULL]: span.attributes?.[SENTRY_OP] !== 'http.client' ? filterCollectedUrl(reqData.url) : undefined,\n [`${HTTP_REQUEST_HEADER_KEY_BASE}.referer`]: referer ? [referer] : undefined,\n }),\n });\n },\n };\n});\n", "import type { IntegrationFn } from '@sentry/core';\nimport { applyAggregateErrorsToEvent, defineIntegration } from '@sentry/core';\nimport { exceptionFromError } from '../eventbuilder';\n\ninterface LinkedErrorsOptions {\n key?: string;\n limit?: number;\n}\n\nconst DEFAULT_KEY = 'cause';\nconst DEFAULT_LIMIT = 5;\n\nconst INTEGRATION_NAME = 'LinkedErrors' as const;\n\nconst _linkedErrorsIntegration = ((options: LinkedErrorsOptions = {}) => {\n const limit = options.limit || DEFAULT_LIMIT;\n const key = options.key || DEFAULT_KEY;\n\n return {\n name: INTEGRATION_NAME,\n preprocessEvent(event, hint, client) {\n const options = client.getOptions();\n\n applyAggregateErrorsToEvent(\n // This differs from the LinkedErrors integration in core by using a different exceptionFromError function\n exceptionFromError,\n options.stackParser,\n key,\n limit,\n event,\n hint,\n );\n },\n };\n}) satisfies IntegrationFn;\n\n/**\n * Aggregrate linked errors in an event.\n */\nexport const linkedErrorsIntegration = defineIntegration(_linkedErrorsIntegration);\n", "import { htmlTreeAsString, isElement } from '@sentry/browser-utils';\n\ntype Prototype = { constructor?: (...args: unknown[]) => unknown };\n\nconst HTML_ELEMENT_CONSTRUCTOR_NAME_REGEX = /^HTML(\\w*)Element$/;\n\n/**\n * Browser-specific contributions to `normalize()`'s `stringifyValue`. Plug into\n * `setNormalizeStringifier` from the browser SDK so DOM values get a useful string\n * representation without forcing core to carry the DOM-specific code.\n *\n * Handles:\n * - `window` → `[Window]`\n * - `document` → `[Document]`\n * - `HTMLElement` subclasses → `[HTMLElement: ]` (via `htmlTreeAsString`)\n *\n * Vue ViewModels and React SyntheticEvents are not handled here — the Vue and React\n * SDKs wrap this function in their `init` and add their own checks on top.\n */\nexport function normalizeStringifyValue(value: Exclude): 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 { getLocationHref } from '@sentry/browser-utils';\nimport { consoleSandbox } from '@sentry/core';\nimport { DEBUG_BUILD } from '../debug-build';\nimport { WINDOW } from '../helpers';\n\ntype ExtensionRuntime = {\n runtime?: {\n id?: string;\n };\n};\ntype ExtensionProperties = {\n chrome?: ExtensionRuntime;\n browser?: ExtensionRuntime;\n nw?: unknown;\n};\n\n/**\n * Returns true if the SDK is running in an embedded browser extension.\n * Stand-alone browser extensions (which do not share the same data as the main browser page) are fine.\n */\nexport function checkAndWarnIfIsEmbeddedBrowserExtension(): boolean {\n if (_isEmbeddedBrowserExtension()) {\n if (DEBUG_BUILD) {\n consoleSandbox(() => {\n // eslint-disable-next-line no-console\n console.error(\n '[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/',\n );\n });\n }\n\n return true;\n }\n\n return false;\n}\n\nfunction _isEmbeddedBrowserExtension(): boolean {\n if (typeof WINDOW.window === 'undefined') {\n // No need to show the error if we're not in a browser window environment (e.g. service workers)\n return false;\n }\n\n const _window = WINDOW as typeof WINDOW & ExtensionProperties;\n\n // Running the SDK in NW.js, which appears like a browser extension but isn't, is also fine\n // see: https://github.com/getsentry/sentry-javascript/issues/12668\n if (_window.nw) {\n return false;\n }\n\n const extensionObject = _window['chrome'] || _window['browser'];\n\n if (!extensionObject?.runtime?.id) {\n return false;\n }\n\n const href = getLocationHref();\n\n // Running the SDK in a dedicated extension page and calling Sentry.init is fine; no risk of data leakage\n const isDedicatedExtensionPage =\n WINDOW === WINDOW.top &&\n /^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\\/\\//.test(href);\n\n return !isDedicatedExtensionPage;\n}\n", "import type { Client, Integration, Options } from '@sentry/core';\nimport {\n _INTERNAL_captureOptionsSetByUser,\n consoleIntegration,\n conversationIdIntegration,\n dedupeIntegration,\n eventFiltersIntegration,\n functionToStringIntegration,\n getIntegrationsToSetup,\n initAndBind,\n setNormalizeStringifier,\n stackParserFromStackParserOptions,\n} from '@sentry/core';\nimport type { BrowserOptions, ResolvedBrowserClientOptions } 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';\nimport { resolveBrowserTunnelOption } from './utils/managedTunnel';\n\n/** Get the default integrations for the browser SDK. */\nexport function getDefaultIntegrations(_options: Options): Integration[] {\n /**\n * Note: Please make sure this stays in sync with Angular SDK, which re-exports\n * `getDefaultIntegrations` but with an adjusted set of integrations.\n */\n return [\n eventFiltersIntegration(),\n functionToStringIntegration(),\n conversationIdIntegration(),\n browserApiErrorsIntegration(),\n breadcrumbsIntegration(),\n consoleIntegration(),\n globalHandlersIntegration(),\n linkedErrorsIntegration(),\n dedupeIntegration(),\n httpContextIntegration(),\n cultureContextIntegration(),\n browserSessionIntegration(),\n ];\n}\n\n/**\n * The Sentry Browser SDK Client.\n *\n * To use this SDK, call the {@link init} function as early as possible when\n * loading the web page. To set context information or send manual events, use\n * the provided methods.\n *\n * @example\n *\n * ```\n *\n * import { init } from '@sentry/browser';\n *\n * init({\n * dsn: '__DSN__',\n * // ...\n * });\n * ```\n *\n * @example\n * ```\n *\n * import { addBreadcrumb } from '@sentry/browser';\n * addBreadcrumb({\n * message: 'My Breadcrumb',\n * // ...\n * });\n * ```\n *\n * @example\n *\n * ```\n *\n * import * as Sentry from '@sentry/browser';\n * Sentry.captureMessage('Hello, world!');\n * Sentry.captureException(new Error('Good bye'));\n * Sentry.captureEvent({\n * message: 'Manual',\n * stacktrace: [\n * // ...\n * ],\n * });\n * ```\n *\n * @see {@link BrowserOptions} for documentation on configuration options.\n */\nexport function init(userOptions: BrowserOptions = {}): Client | undefined {\n const options = _INTERNAL_captureOptionsSetByUser(userOptions);\n\n const shouldDisableBecauseIsBrowserExtenstion =\n !options.skipBrowserExtensionCheck && checkAndWarnIfIsEmbeddedBrowserExtension();\n\n let defaultIntegrations =\n options.defaultIntegrations == null ? getDefaultIntegrations(options) : options.defaultIntegrations;\n\n /*! rollup-include-development-only */\n if (options.spotlight) {\n if (!defaultIntegrations) {\n defaultIntegrations = [];\n }\n const args = typeof options.spotlight === 'string' ? { sidecarUrl: options.spotlight } : undefined;\n defaultIntegrations.push(spotlightBrowserIntegration(args));\n }\n /*! rollup-include-development-only-end */\n\n const integrations = getIntegrationsToSetup({\n integrations: options.integrations,\n defaultIntegrations,\n });\n\n const clientOptions: ResolvedBrowserClientOptions = {\n ...options,\n ...resolveBrowserTunnelOption(options),\n enabled: shouldDisableBecauseIsBrowserExtenstion ? false : options.enabled,\n stackParser: stackParserFromStackParserOptions(options.stackParser || defaultStackParser),\n integrations,\n transport: options.transport || makeFetchTransport,\n };\n\n setNormalizeStringifier(normalizeStringifyValue);\n\n return initAndBind(BrowserClient, clientOptions);\n}\n\n/**\n * This function is here to be API compatible with the loader.\n * @hidden\n */\nexport function forceLoad(): void {\n // Noop\n}\n\n/**\n * This function is here to be API compatible with the loader.\n * @hidden\n */\nexport function onLoad(callback: () => void): void {\n callback();\n}\n", "/*\nUnobtrusive JavaScript\nhttps://github.com/rails/rails/blob/main/actionview/app/javascript\nReleased under the MIT license\n */\nconst linkClickSelector = \"a[data-confirm], a[data-method], a[data-remote]:not([disabled]), a[data-disable-with], a[data-disable]\";\n\nconst buttonClickSelector = {\n selector: \"button[data-remote]:not([form]), button[data-confirm]:not([form])\",\n exclude: \"form button\"\n};\n\nconst inputChangeSelector = \"select[data-remote], input[data-remote], textarea[data-remote]\";\n\nconst formSubmitSelector = \"form:not([data-turbo=true])\";\n\nconst formInputClickSelector = \"form:not([data-turbo=true]) input[type=submit], form:not([data-turbo=true]) input[type=image], form:not([data-turbo=true]) button[type=submit], form:not([data-turbo=true]) button:not([type]), input[type=submit][form], input[type=image][form], button[type=submit][form], button[form]:not([type])\";\n\nconst formDisableSelector = \"input[data-disable-with]:enabled, button[data-disable-with]:enabled, textarea[data-disable-with]:enabled, input[data-disable]:enabled, button[data-disable]:enabled, textarea[data-disable]:enabled\";\n\nconst formEnableSelector = \"input[data-disable-with]:disabled, button[data-disable-with]:disabled, textarea[data-disable-with]:disabled, input[data-disable]:disabled, button[data-disable]:disabled, textarea[data-disable]:disabled\";\n\nconst fileInputSelector = \"input[name][type=file]:not([disabled])\";\n\nconst linkDisableSelector = \"a[data-disable-with], a[data-disable]\";\n\nconst buttonDisableSelector = \"button[data-remote][data-disable-with], button[data-remote][data-disable]\";\n\nlet nonce = null;\n\nconst loadCSPNonce = () => {\n const metaTag = document.querySelector(\"meta[name=csp-nonce]\");\n return nonce = metaTag && metaTag.content;\n};\n\nconst cspNonce = () => nonce || loadCSPNonce();\n\nconst m = Element.prototype.matches || Element.prototype.matchesSelector || Element.prototype.mozMatchesSelector || Element.prototype.msMatchesSelector || Element.prototype.oMatchesSelector || Element.prototype.webkitMatchesSelector;\n\nconst matches = function(element, selector) {\n if (selector.exclude) {\n return m.call(element, selector.selector) && !m.call(element, selector.exclude);\n } else {\n return m.call(element, selector);\n }\n};\n\nconst EXPANDO = \"_ujsData\";\n\nconst getData = (element, key) => element[EXPANDO] ? element[EXPANDO][key] : undefined;\n\nconst setData = function(element, key, value) {\n if (!element[EXPANDO]) {\n element[EXPANDO] = {};\n }\n return element[EXPANDO][key] = value;\n};\n\nconst $ = selector => Array.prototype.slice.call(document.querySelectorAll(selector));\n\nconst isContentEditable = function(element) {\n var isEditable = false;\n do {\n if (element.isContentEditable) {\n isEditable = true;\n break;\n }\n element = element.parentElement;\n } while (element);\n return isEditable;\n};\n\nconst csrfToken = () => {\n const meta = document.querySelector(\"meta[name=csrf-token]\");\n return meta && meta.content;\n};\n\nconst csrfParam = () => {\n const meta = document.querySelector(\"meta[name=csrf-param]\");\n return meta && meta.content;\n};\n\nconst CSRFProtection = xhr => {\n const token = csrfToken();\n if (token) {\n return xhr.setRequestHeader(\"X-CSRF-Token\", token);\n }\n};\n\nconst refreshCSRFTokens = () => {\n const token = csrfToken();\n const param = csrfParam();\n if (token && param) {\n return $('form input[name=\"' + param + '\"]').forEach((input => input.value = token));\n }\n};\n\nconst AcceptHeaders = {\n \"*\": \"*/*\",\n text: \"text/plain\",\n html: \"text/html\",\n xml: \"application/xml, text/xml\",\n json: \"application/json, text/javascript\",\n script: \"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript\"\n};\n\nconst ajax = options => {\n options = prepareOptions(options);\n var xhr = createXHR(options, (function() {\n const response = processResponse(xhr.response != null ? xhr.response : xhr.responseText, xhr.getResponseHeader(\"Content-Type\"));\n if (Math.floor(xhr.status / 100) === 2) {\n if (typeof options.success === \"function\") {\n options.success(response, xhr.statusText, xhr);\n }\n } else {\n if (typeof options.error === \"function\") {\n options.error(response, xhr.statusText, xhr);\n }\n }\n return typeof options.complete === \"function\" ? options.complete(xhr, xhr.statusText) : undefined;\n }));\n if (options.beforeSend && !options.beforeSend(xhr, options)) {\n return false;\n }\n if (xhr.readyState === XMLHttpRequest.OPENED) {\n return xhr.send(options.data);\n }\n};\n\nvar prepareOptions = function(options) {\n options.url = options.url || location.href;\n options.type = options.type.toUpperCase();\n if (options.type === \"GET\" && options.data) {\n if (options.url.indexOf(\"?\") < 0) {\n options.url += \"?\" + options.data;\n } else {\n options.url += \"&\" + options.data;\n }\n }\n if (!(options.dataType in AcceptHeaders)) {\n options.dataType = \"*\";\n }\n options.accept = AcceptHeaders[options.dataType];\n if (options.dataType !== \"*\") {\n options.accept += \", */*; q=0.01\";\n }\n return options;\n};\n\nvar createXHR = function(options, done) {\n const xhr = new XMLHttpRequest;\n xhr.open(options.type, options.url, true);\n xhr.setRequestHeader(\"Accept\", options.accept);\n if (typeof options.data === \"string\") {\n xhr.setRequestHeader(\"Content-Type\", \"application/x-www-form-urlencoded; charset=UTF-8\");\n }\n if (!options.crossDomain) {\n xhr.setRequestHeader(\"X-Requested-With\", \"XMLHttpRequest\");\n CSRFProtection(xhr);\n }\n xhr.withCredentials = !!options.withCredentials;\n xhr.onreadystatechange = function() {\n if (xhr.readyState === XMLHttpRequest.DONE) {\n return done(xhr);\n }\n };\n return xhr;\n};\n\nvar processResponse = function(response, type) {\n if (typeof response === \"string\" && typeof type === \"string\") {\n if (type.match(/\\bjson\\b/)) {\n try {\n response = JSON.parse(response);\n } catch (error) {}\n } else if (type.match(/\\b(?:java|ecma)script\\b/)) {\n const script = document.createElement(\"script\");\n script.setAttribute(\"nonce\", cspNonce());\n script.text = response;\n document.head.appendChild(script).parentNode.removeChild(script);\n } else if (type.match(/\\b(xml|html|svg)\\b/)) {\n const parser = new DOMParser;\n type = type.replace(/;.+/, \"\");\n try {\n response = parser.parseFromString(response, type);\n } catch (error1) {}\n }\n }\n return response;\n};\n\nconst href = element => element.href;\n\nconst isCrossDomain = function(url) {\n const originAnchor = document.createElement(\"a\");\n originAnchor.href = location.href;\n const urlAnchor = document.createElement(\"a\");\n try {\n urlAnchor.href = url;\n return !((!urlAnchor.protocol || urlAnchor.protocol === \":\") && !urlAnchor.host || originAnchor.protocol + \"//\" + originAnchor.host === urlAnchor.protocol + \"//\" + urlAnchor.host);\n } catch (e) {\n return true;\n }\n};\n\nlet preventDefault;\n\nlet {CustomEvent: CustomEvent} = window;\n\nif (typeof CustomEvent !== \"function\") {\n CustomEvent = function(event, params) {\n const evt = document.createEvent(\"CustomEvent\");\n evt.initCustomEvent(event, params.bubbles, params.cancelable, params.detail);\n return evt;\n };\n CustomEvent.prototype = window.Event.prototype;\n ({preventDefault: preventDefault} = CustomEvent.prototype);\n CustomEvent.prototype.preventDefault = function() {\n const result = preventDefault.call(this);\n if (this.cancelable && !this.defaultPrevented) {\n Object.defineProperty(this, \"defaultPrevented\", {\n get() {\n return true;\n }\n });\n }\n return result;\n };\n}\n\nconst fire = (obj, name, data) => {\n const event = new CustomEvent(name, {\n bubbles: true,\n cancelable: true,\n detail: data\n });\n obj.dispatchEvent(event);\n return !event.defaultPrevented;\n};\n\nconst stopEverything = e => {\n fire(e.target, \"ujs:everythingStopped\");\n e.preventDefault();\n e.stopPropagation();\n e.stopImmediatePropagation();\n};\n\nconst delegate = (element, selector, eventType, handler) => element.addEventListener(eventType, (function(e) {\n let {target: target} = e;\n while (!!(target instanceof Element) && !matches(target, selector)) {\n target = target.parentNode;\n }\n if (target instanceof Element && handler.call(target, e) === false) {\n e.preventDefault();\n e.stopPropagation();\n }\n}));\n\nconst toArray = e => Array.prototype.slice.call(e);\n\nconst serializeElement = (element, additionalParam) => {\n let inputs = [ element ];\n if (matches(element, \"form\")) {\n inputs = toArray(element.elements);\n }\n const params = [];\n inputs.forEach((function(input) {\n if (!input.name || input.disabled) {\n return;\n }\n if (matches(input, \"fieldset[disabled] *\")) {\n return;\n }\n if (matches(input, \"select\")) {\n toArray(input.options).forEach((function(option) {\n if (option.selected) {\n params.push({\n name: input.name,\n value: option.value\n });\n }\n }));\n } else if (input.checked || [ \"radio\", \"checkbox\", \"submit\" ].indexOf(input.type) === -1) {\n params.push({\n name: input.name,\n value: input.value\n });\n }\n }));\n if (additionalParam) {\n params.push(additionalParam);\n }\n return params.map((function(param) {\n if (param.name) {\n return `${encodeURIComponent(param.name)}=${encodeURIComponent(param.value)}`;\n } else {\n return param;\n }\n })).join(\"&\");\n};\n\nconst formElements = (form, selector) => {\n if (matches(form, \"form\")) {\n return toArray(form.elements).filter((el => matches(el, selector)));\n } else {\n return toArray(form.querySelectorAll(selector));\n }\n};\n\nconst handleConfirmWithRails = rails => function(e) {\n if (!allowAction(this, rails)) {\n stopEverything(e);\n }\n};\n\nconst confirm = (message, element) => window.confirm(message);\n\nvar allowAction = function(element, rails) {\n let callback;\n const message = element.getAttribute(\"data-confirm\");\n if (!message) {\n return true;\n }\n let answer = false;\n if (fire(element, \"confirm\")) {\n try {\n answer = rails.confirm(message, element);\n } catch (error) {}\n callback = fire(element, \"confirm:complete\", [ answer ]);\n }\n return answer && callback;\n};\n\nconst handleDisabledElement = function(e) {\n const element = this;\n if (element.disabled) {\n stopEverything(e);\n }\n};\n\nconst enableElement = e => {\n let element;\n if (e instanceof Event) {\n if (isXhrRedirect(e)) {\n return;\n }\n element = e.target;\n } else {\n element = e;\n }\n if (isContentEditable(element)) {\n return;\n }\n if (matches(element, linkDisableSelector)) {\n return enableLinkElement(element);\n } else if (matches(element, buttonDisableSelector) || matches(element, formEnableSelector)) {\n return enableFormElement(element);\n } else if (matches(element, formSubmitSelector)) {\n return enableFormElements(element);\n }\n};\n\nconst disableElement = e => {\n const element = e instanceof Event ? e.target : e;\n if (isContentEditable(element)) {\n return;\n }\n if (matches(element, linkDisableSelector)) {\n return disableLinkElement(element);\n } else if (matches(element, buttonDisableSelector) || matches(element, formDisableSelector)) {\n return disableFormElement(element);\n } else if (matches(element, formSubmitSelector)) {\n return disableFormElements(element);\n }\n};\n\nvar disableLinkElement = function(element) {\n if (getData(element, \"ujs:disabled\")) {\n return;\n }\n const replacement = element.getAttribute(\"data-disable-with\");\n if (replacement != null) {\n setData(element, \"ujs:enable-with\", element.innerHTML);\n element.innerHTML = replacement;\n }\n element.addEventListener(\"click\", stopEverything);\n return setData(element, \"ujs:disabled\", true);\n};\n\nvar enableLinkElement = function(element) {\n const originalText = getData(element, \"ujs:enable-with\");\n if (originalText != null) {\n element.innerHTML = originalText;\n setData(element, \"ujs:enable-with\", null);\n }\n element.removeEventListener(\"click\", stopEverything);\n return setData(element, \"ujs:disabled\", null);\n};\n\nvar disableFormElements = form => formElements(form, formDisableSelector).forEach(disableFormElement);\n\nvar disableFormElement = function(element) {\n if (getData(element, \"ujs:disabled\")) {\n return;\n }\n const replacement = element.getAttribute(\"data-disable-with\");\n if (replacement != null) {\n if (matches(element, \"button\")) {\n setData(element, \"ujs:enable-with\", element.innerHTML);\n element.innerHTML = replacement;\n } else {\n setData(element, \"ujs:enable-with\", element.value);\n element.value = replacement;\n }\n }\n element.disabled = true;\n return setData(element, \"ujs:disabled\", true);\n};\n\nvar enableFormElements = form => formElements(form, formEnableSelector).forEach((element => enableFormElement(element)));\n\nvar enableFormElement = function(element) {\n const originalText = getData(element, \"ujs:enable-with\");\n if (originalText != null) {\n if (matches(element, \"button\")) {\n element.innerHTML = originalText;\n } else {\n element.value = originalText;\n }\n setData(element, \"ujs:enable-with\", null);\n }\n element.disabled = false;\n return setData(element, \"ujs:disabled\", null);\n};\n\nvar isXhrRedirect = function(event) {\n const xhr = event.detail ? event.detail[0] : undefined;\n return xhr && xhr.getResponseHeader(\"X-Xhr-Redirect\");\n};\n\nconst handleMethodWithRails = rails => function(e) {\n const link = this;\n const method = link.getAttribute(\"data-method\");\n if (!method) {\n return;\n }\n if (isContentEditable(this)) {\n return;\n }\n const href = rails.href(link);\n const csrfToken$1 = csrfToken();\n const csrfParam$1 = csrfParam();\n const form = document.createElement(\"form\");\n let formContent = ``;\n if (csrfParam$1 && csrfToken$1 && !isCrossDomain(href)) {\n formContent += ``;\n }\n formContent += '';\n form.method = \"post\";\n form.action = href;\n form.target = link.target;\n form.innerHTML = formContent;\n form.style.display = \"none\";\n document.body.appendChild(form);\n form.querySelector('[type=\"submit\"]').click();\n stopEverything(e);\n};\n\nconst isRemote = function(element) {\n const value = element.getAttribute(\"data-remote\");\n return value != null && value !== \"false\";\n};\n\nconst handleRemoteWithRails = rails => function(e) {\n let data, method, url;\n const element = this;\n if (!isRemote(element)) {\n return true;\n }\n if (!fire(element, \"ajax:before\")) {\n fire(element, \"ajax:stopped\");\n return false;\n }\n if (isContentEditable(element)) {\n fire(element, \"ajax:stopped\");\n return false;\n }\n const withCredentials = element.getAttribute(\"data-with-credentials\");\n const dataType = element.getAttribute(\"data-type\") || \"script\";\n if (matches(element, formSubmitSelector)) {\n const button = getData(element, \"ujs:submit-button\");\n method = getData(element, \"ujs:submit-button-formmethod\") || element.getAttribute(\"method\") || \"get\";\n url = getData(element, \"ujs:submit-button-formaction\") || element.getAttribute(\"action\") || location.href;\n if (method.toUpperCase() === \"GET\") {\n url = url.replace(/\\?.*$/, \"\");\n }\n if (element.enctype === \"multipart/form-data\") {\n data = new FormData(element);\n if (button != null) {\n data.append(button.name, button.value);\n }\n } else {\n data = serializeElement(element, button);\n }\n setData(element, \"ujs:submit-button\", null);\n setData(element, \"ujs:submit-button-formmethod\", null);\n setData(element, \"ujs:submit-button-formaction\", null);\n } else if (matches(element, buttonClickSelector) || matches(element, inputChangeSelector)) {\n method = element.getAttribute(\"data-method\");\n url = element.getAttribute(\"data-url\");\n data = serializeElement(element, element.getAttribute(\"data-params\"));\n } else {\n method = element.getAttribute(\"data-method\");\n url = rails.href(element);\n data = element.getAttribute(\"data-params\");\n }\n ajax({\n type: method || \"GET\",\n url: url,\n data: data,\n dataType: dataType,\n beforeSend(xhr, options) {\n if (fire(element, \"ajax:beforeSend\", [ xhr, options ])) {\n return fire(element, \"ajax:send\", [ xhr ]);\n } else {\n fire(element, \"ajax:stopped\");\n return false;\n }\n },\n success(...args) {\n return fire(element, \"ajax:success\", args);\n },\n error(...args) {\n return fire(element, \"ajax:error\", args);\n },\n complete(...args) {\n return fire(element, \"ajax:complete\", args);\n },\n crossDomain: isCrossDomain(url),\n withCredentials: withCredentials != null && withCredentials !== \"false\"\n });\n stopEverything(e);\n};\n\nconst formSubmitButtonClick = function(e) {\n const button = this;\n const {form: form} = button;\n if (!form) {\n return;\n }\n if (button.name) {\n setData(form, \"ujs:submit-button\", {\n name: button.name,\n value: button.value\n });\n }\n setData(form, \"ujs:formnovalidate-button\", button.formNoValidate);\n setData(form, \"ujs:submit-button-formaction\", button.getAttribute(\"formaction\"));\n return setData(form, \"ujs:submit-button-formmethod\", button.getAttribute(\"formmethod\"));\n};\n\nconst preventInsignificantClick = function(e) {\n const link = this;\n const method = (link.getAttribute(\"data-method\") || \"GET\").toUpperCase();\n const data = link.getAttribute(\"data-params\");\n const metaClick = e.metaKey || e.ctrlKey;\n const insignificantMetaClick = metaClick && method === \"GET\" && !data;\n const nonPrimaryMouseClick = e.button != null && e.button !== 0;\n if (nonPrimaryMouseClick || insignificantMetaClick) {\n e.stopImmediatePropagation();\n }\n};\n\nconst Rails = {\n $: $,\n ajax: ajax,\n buttonClickSelector: buttonClickSelector,\n buttonDisableSelector: buttonDisableSelector,\n confirm: confirm,\n cspNonce: cspNonce,\n csrfToken: csrfToken,\n csrfParam: csrfParam,\n CSRFProtection: CSRFProtection,\n delegate: delegate,\n disableElement: disableElement,\n enableElement: enableElement,\n fileInputSelector: fileInputSelector,\n fire: fire,\n formElements: formElements,\n formEnableSelector: formEnableSelector,\n formDisableSelector: formDisableSelector,\n formInputClickSelector: formInputClickSelector,\n formSubmitButtonClick: formSubmitButtonClick,\n formSubmitSelector: formSubmitSelector,\n getData: getData,\n handleDisabledElement: handleDisabledElement,\n href: href,\n inputChangeSelector: inputChangeSelector,\n isCrossDomain: isCrossDomain,\n linkClickSelector: linkClickSelector,\n linkDisableSelector: linkDisableSelector,\n loadCSPNonce: loadCSPNonce,\n matches: matches,\n preventInsignificantClick: preventInsignificantClick,\n refreshCSRFTokens: refreshCSRFTokens,\n serializeElement: serializeElement,\n setData: setData,\n stopEverything: stopEverything\n};\n\nconst handleConfirm = handleConfirmWithRails(Rails);\n\nRails.handleConfirm = handleConfirm;\n\nconst handleMethod = handleMethodWithRails(Rails);\n\nRails.handleMethod = handleMethod;\n\nconst handleRemote = handleRemoteWithRails(Rails);\n\nRails.handleRemote = handleRemote;\n\nconst start = function() {\n if (window._rails_loaded) {\n throw new Error(\"rails-ujs has already been loaded!\");\n }\n window.addEventListener(\"pageshow\", (function() {\n $(formEnableSelector).forEach((function(el) {\n if (getData(el, \"ujs:disabled\")) {\n enableElement(el);\n }\n }));\n $(linkDisableSelector).forEach((function(el) {\n if (getData(el, \"ujs:disabled\")) {\n enableElement(el);\n }\n }));\n }));\n delegate(document, linkDisableSelector, \"ajax:complete\", enableElement);\n delegate(document, linkDisableSelector, \"ajax:stopped\", enableElement);\n delegate(document, buttonDisableSelector, \"ajax:complete\", enableElement);\n delegate(document, buttonDisableSelector, \"ajax:stopped\", enableElement);\n delegate(document, linkClickSelector, \"click\", preventInsignificantClick);\n delegate(document, linkClickSelector, \"click\", handleDisabledElement);\n delegate(document, linkClickSelector, \"click\", handleConfirm);\n delegate(document, linkClickSelector, \"click\", disableElement);\n delegate(document, linkClickSelector, \"click\", handleRemote);\n delegate(document, linkClickSelector, \"click\", handleMethod);\n delegate(document, buttonClickSelector, \"click\", preventInsignificantClick);\n delegate(document, buttonClickSelector, \"click\", handleDisabledElement);\n delegate(document, buttonClickSelector, \"click\", handleConfirm);\n delegate(document, buttonClickSelector, \"click\", disableElement);\n delegate(document, buttonClickSelector, \"click\", handleRemote);\n delegate(document, inputChangeSelector, \"change\", handleDisabledElement);\n delegate(document, inputChangeSelector, \"change\", handleConfirm);\n delegate(document, inputChangeSelector, \"change\", handleRemote);\n delegate(document, formSubmitSelector, \"submit\", handleDisabledElement);\n delegate(document, formSubmitSelector, \"submit\", handleConfirm);\n delegate(document, formSubmitSelector, \"submit\", handleRemote);\n delegate(document, formSubmitSelector, \"submit\", (e => setTimeout((() => disableElement(e)), 13)));\n delegate(document, formSubmitSelector, \"ajax:send\", disableElement);\n delegate(document, formSubmitSelector, \"ajax:complete\", enableElement);\n delegate(document, formInputClickSelector, \"click\", preventInsignificantClick);\n delegate(document, formInputClickSelector, \"click\", handleDisabledElement);\n delegate(document, formInputClickSelector, \"click\", handleConfirm);\n delegate(document, formInputClickSelector, \"click\", formSubmitButtonClick);\n document.addEventListener(\"DOMContentLoaded\", refreshCSRFTokens);\n document.addEventListener(\"DOMContentLoaded\", loadCSPNonce);\n return window._rails_loaded = true;\n};\n\nRails.start = start;\n\nif (typeof jQuery !== \"undefined\" && jQuery && jQuery.ajax) {\n if (jQuery.rails) {\n throw new Error(\"If you load both jquery_ujs and rails-ujs, use rails-ujs only.\");\n }\n jQuery.rails = Rails;\n jQuery.ajaxPrefilter((function(options, originalOptions, xhr) {\n if (!options.crossDomain) {\n return CSRFProtection(xhr);\n }\n }));\n}\n\nexport { Rails as default };\n", "/*!\nTurbo 8.0.23\nCopyright \u00A9 2026 37signals LLC\n */\nconst FrameLoadingStyle = {\n eager: \"eager\",\n lazy: \"lazy\"\n};\n\n/**\n * Contains a fragment of HTML which is updated based on navigation within\n * it (e.g. via links or form submissions).\n *\n * @customElement turbo-frame\n * @example\n * \n * \n * Show all expanded messages in this frame.\n * \n *\n *
\n * Show response from this form within this frame.\n *
\n * \n */\nclass FrameElement extends HTMLElement {\n static delegateConstructor = undefined\n\n loaded = Promise.resolve()\n\n static get observedAttributes() {\n return [\"disabled\", \"loading\", \"src\"]\n }\n\n constructor() {\n super();\n this.delegate = new FrameElement.delegateConstructor(this);\n }\n\n connectedCallback() {\n this.delegate.connect();\n }\n\n disconnectedCallback() {\n this.delegate.disconnect();\n }\n\n reload() {\n return this.delegate.sourceURLReloaded()\n }\n\n attributeChangedCallback(name) {\n if (name == \"loading\") {\n this.delegate.loadingStyleChanged();\n } else if (name == \"src\") {\n this.delegate.sourceURLChanged();\n } else if (name == \"disabled\") {\n this.delegate.disabledChanged();\n }\n }\n\n /**\n * Gets the URL to lazily load source HTML from\n */\n get src() {\n return this.getAttribute(\"src\")\n }\n\n /**\n * Sets the URL to lazily load source HTML from\n */\n set src(value) {\n if (value) {\n this.setAttribute(\"src\", value);\n } else {\n this.removeAttribute(\"src\");\n }\n }\n\n /**\n * Gets the refresh mode for the frame.\n */\n get refresh() {\n return this.getAttribute(\"refresh\")\n }\n\n /**\n * Sets the refresh mode for the frame.\n */\n set refresh(value) {\n if (value) {\n this.setAttribute(\"refresh\", value);\n } else {\n this.removeAttribute(\"refresh\");\n }\n }\n\n get shouldReloadWithMorph() {\n return this.src && this.refresh === \"morph\"\n }\n\n /**\n * Determines if the element is loading\n */\n get loading() {\n return frameLoadingStyleFromString(this.getAttribute(\"loading\") || \"\")\n }\n\n /**\n * Sets the value of if the element is loading\n */\n set loading(value) {\n if (value) {\n this.setAttribute(\"loading\", value);\n } else {\n this.removeAttribute(\"loading\");\n }\n }\n\n /**\n * Gets the disabled state of the frame.\n *\n * If disabled, no requests will be intercepted by the frame.\n */\n get disabled() {\n return this.hasAttribute(\"disabled\")\n }\n\n /**\n * Sets the disabled state of the frame.\n *\n * If disabled, no requests will be intercepted by the frame.\n */\n set disabled(value) {\n if (value) {\n this.setAttribute(\"disabled\", \"\");\n } else {\n this.removeAttribute(\"disabled\");\n }\n }\n\n /**\n * Gets the autoscroll state of the frame.\n *\n * If true, the frame will be scrolled into view automatically on update.\n */\n get autoscroll() {\n return this.hasAttribute(\"autoscroll\")\n }\n\n /**\n * Sets the autoscroll state of the frame.\n *\n * If true, the frame will be scrolled into view automatically on update.\n */\n set autoscroll(value) {\n if (value) {\n this.setAttribute(\"autoscroll\", \"\");\n } else {\n this.removeAttribute(\"autoscroll\");\n }\n }\n\n /**\n * Determines if the element has finished loading\n */\n get complete() {\n return !this.delegate.isLoading\n }\n\n /**\n * Gets the active state of the frame.\n *\n * If inactive, source changes will not be observed.\n */\n get isActive() {\n return this.ownerDocument === document && !this.isPreview\n }\n\n /**\n * Sets the active state of the frame.\n *\n * If inactive, source changes will not be observed.\n */\n get isPreview() {\n return this.ownerDocument?.documentElement?.hasAttribute(\"data-turbo-preview\")\n }\n}\n\nfunction frameLoadingStyleFromString(style) {\n switch (style.toLowerCase()) {\n case \"lazy\":\n return FrameLoadingStyle.lazy\n default:\n return FrameLoadingStyle.eager\n }\n}\n\nconst drive = {\n enabled: true,\n progressBarDelay: 500,\n unvisitableExtensions: new Set(\n [\n \".7z\", \".aac\", \".apk\", \".avi\", \".bmp\", \".bz2\", \".css\", \".csv\", \".deb\", \".dmg\", \".doc\",\n \".docx\", \".exe\", \".gif\", \".gz\", \".heic\", \".heif\", \".ico\", \".iso\", \".jpeg\", \".jpg\",\n \".js\", \".json\", \".m4a\", \".mkv\", \".mov\", \".mp3\", \".mp4\", \".mpeg\", \".mpg\", \".msi\",\n \".ogg\", \".ogv\", \".pdf\", \".pkg\", \".png\", \".ppt\", \".pptx\", \".rar\", \".rtf\",\n \".svg\", \".tar\", \".tif\", \".tiff\", \".txt\", \".wav\", \".webm\", \".webp\", \".wma\", \".wmv\",\n \".xls\", \".xlsx\", \".xml\", \".zip\"\n ]\n )\n};\n\nfunction activateScriptElement(element) {\n if (element.getAttribute(\"data-turbo-eval\") == \"false\") {\n return element\n } else {\n const createdScriptElement = document.createElement(\"script\");\n const cspNonce = getCspNonce();\n if (cspNonce) {\n createdScriptElement.nonce = cspNonce;\n }\n createdScriptElement.textContent = element.textContent;\n createdScriptElement.async = false;\n copyElementAttributes(createdScriptElement, element);\n return createdScriptElement\n }\n}\n\nfunction copyElementAttributes(destinationElement, sourceElement) {\n for (const { name, value } of sourceElement.attributes) {\n destinationElement.setAttribute(name, value);\n }\n}\n\nfunction createDocumentFragment(html) {\n const template = document.createElement(\"template\");\n template.innerHTML = html;\n return template.content\n}\n\nfunction dispatch(eventName, { target, cancelable, detail } = {}) {\n const event = new CustomEvent(eventName, {\n cancelable,\n bubbles: true,\n composed: true,\n detail\n });\n\n if (target && target.isConnected) {\n target.dispatchEvent(event);\n } else {\n document.documentElement.dispatchEvent(event);\n }\n\n return event\n}\n\nfunction cancelEvent(event) {\n event.preventDefault();\n event.stopImmediatePropagation();\n}\n\nfunction nextRepaint() {\n if (document.visibilityState === \"hidden\") {\n return nextEventLoopTick()\n } else {\n return nextAnimationFrame()\n }\n}\n\nfunction nextAnimationFrame() {\n return new Promise((resolve) => requestAnimationFrame(() => resolve()))\n}\n\nfunction nextEventLoopTick() {\n return new Promise((resolve) => setTimeout(() => resolve(), 0))\n}\n\nfunction parseHTMLDocument(html = \"\") {\n return new DOMParser().parseFromString(html, \"text/html\")\n}\n\nfunction unindent(strings, ...values) {\n const lines = interpolate(strings, values).replace(/^\\n/, \"\").split(\"\\n\");\n const match = lines[0].match(/^\\s+/);\n const indent = match ? match[0].length : 0;\n return lines.map((line) => line.slice(indent)).join(\"\\n\")\n}\n\nfunction interpolate(strings, values) {\n return strings.reduce((result, string, i) => {\n const value = values[i] == undefined ? \"\" : values[i];\n return result + string + value\n }, \"\")\n}\n\nfunction uuid() {\n return Array.from({ length: 36 })\n .map((_, i) => {\n if (i == 8 || i == 13 || i == 18 || i == 23) {\n return \"-\"\n } else if (i == 14) {\n return \"4\"\n } else if (i == 19) {\n return (Math.floor(Math.random() * 4) + 8).toString(16)\n } else {\n return Math.floor(Math.random() * 16).toString(16)\n }\n })\n .join(\"\")\n}\n\nfunction getAttribute(attributeName, ...elements) {\n for (const value of elements.map((element) => element?.getAttribute(attributeName))) {\n if (typeof value == \"string\") return value\n }\n\n return null\n}\n\nfunction hasAttribute(attributeName, ...elements) {\n return elements.some((element) => element && element.hasAttribute(attributeName))\n}\n\nfunction markAsBusy(...elements) {\n for (const element of elements) {\n if (element.localName == \"turbo-frame\") {\n element.setAttribute(\"busy\", \"\");\n }\n element.setAttribute(\"aria-busy\", \"true\");\n }\n}\n\nfunction clearBusyState(...elements) {\n for (const element of elements) {\n if (element.localName == \"turbo-frame\") {\n element.removeAttribute(\"busy\");\n }\n\n element.removeAttribute(\"aria-busy\");\n }\n}\n\nfunction waitForLoad(element, timeoutInMilliseconds = 2000) {\n return new Promise((resolve) => {\n const onComplete = () => {\n element.removeEventListener(\"error\", onComplete);\n element.removeEventListener(\"load\", onComplete);\n resolve();\n };\n\n element.addEventListener(\"load\", onComplete, { once: true });\n element.addEventListener(\"error\", onComplete, { once: true });\n setTimeout(resolve, timeoutInMilliseconds);\n })\n}\n\nfunction getHistoryMethodForAction(action) {\n switch (action) {\n case \"replace\":\n return history.replaceState\n case \"advance\":\n case \"restore\":\n return history.pushState\n }\n}\n\nfunction isAction(action) {\n return action == \"advance\" || action == \"replace\" || action == \"restore\"\n}\n\nfunction getVisitAction(...elements) {\n const action = getAttribute(\"data-turbo-action\", ...elements);\n\n return isAction(action) ? action : null\n}\n\nfunction getMetaElement(name) {\n return document.querySelector(`meta[name=\"${name}\"]`)\n}\n\nfunction getMetaContent(name) {\n const element = getMetaElement(name);\n return element && element.content\n}\n\nfunction getCspNonce() {\n const element = getMetaElement(\"csp-nonce\");\n\n if (element) {\n const { nonce, content } = element;\n return nonce == \"\" ? content : nonce\n }\n}\n\nfunction setMetaContent(name, content) {\n let element = getMetaElement(name);\n\n if (!element) {\n element = document.createElement(\"meta\");\n element.setAttribute(\"name\", name);\n\n document.head.appendChild(element);\n }\n\n element.setAttribute(\"content\", content);\n\n return element\n}\n\nfunction findClosestRecursively(element, selector) {\n if (element instanceof Element) {\n return (\n element.closest(selector) || findClosestRecursively(element.assignedSlot || element.getRootNode()?.host, selector)\n )\n }\n}\n\nfunction elementIsFocusable(element) {\n const inertDisabledOrHidden = \"[inert], :disabled, [hidden], details:not([open]), dialog:not([open])\";\n\n return !!element && element.closest(inertDisabledOrHidden) == null && typeof element.focus == \"function\"\n}\n\nfunction queryAutofocusableElement(elementOrDocumentFragment) {\n return Array.from(elementOrDocumentFragment.querySelectorAll(\"[autofocus]\")).find(elementIsFocusable)\n}\n\nasync function around(callback, reader) {\n const before = reader();\n\n callback();\n\n await nextAnimationFrame();\n\n const after = reader();\n\n return [before, after]\n}\n\nfunction doesNotTargetIFrame(name) {\n if (name === \"_blank\") {\n return false\n } else if (name) {\n for (const element of document.getElementsByName(name)) {\n if (element instanceof HTMLIFrameElement) return false\n }\n\n return true\n } else {\n return true\n }\n}\n\nfunction findLinkFromClickTarget(target) {\n const link = findClosestRecursively(target, \"a[href], a[xlink\\\\:href]\");\n\n if (!link) return null\n if (link.href.startsWith(\"#\")) return null\n if (link.hasAttribute(\"download\")) return null\n\n const linkTarget = link.getAttribute(\"target\");\n if (linkTarget && linkTarget !== \"_self\") return null\n\n return link\n}\n\nfunction debounce(fn, delay) {\n let timeoutId = null;\n\n return (...args) => {\n const callback = () => fn.apply(this, args);\n clearTimeout(timeoutId);\n timeoutId = setTimeout(callback, delay);\n }\n}\n\nconst submitter = {\n \"aria-disabled\": {\n beforeSubmit: submitter => {\n submitter.setAttribute(\"aria-disabled\", \"true\");\n submitter.addEventListener(\"click\", cancelEvent);\n },\n\n afterSubmit: submitter => {\n submitter.removeAttribute(\"aria-disabled\");\n submitter.removeEventListener(\"click\", cancelEvent);\n }\n },\n\n \"disabled\": {\n beforeSubmit: submitter => submitter.disabled = true,\n afterSubmit: submitter => submitter.disabled = false\n }\n};\n\nclass Config {\n #submitter = null\n\n constructor(config) {\n Object.assign(this, config);\n }\n\n get submitter() {\n return this.#submitter\n }\n\n set submitter(value) {\n this.#submitter = submitter[value] || value;\n }\n}\n\nconst forms = new Config({\n mode: \"on\",\n submitter: \"disabled\"\n});\n\nconst config = {\n drive,\n forms\n};\n\nfunction expandURL(locatable) {\n return new URL(locatable.toString(), document.baseURI)\n}\n\nfunction getAnchor(url) {\n let anchorMatch;\n if (url.hash) {\n return url.hash.slice(1)\n // eslint-disable-next-line no-cond-assign\n } else if ((anchorMatch = url.href.match(/#(.*)$/))) {\n return anchorMatch[1]\n }\n}\n\nfunction getAction$1(form, submitter) {\n const action = submitter?.getAttribute(\"formaction\") || form.getAttribute(\"action\") || form.action;\n\n return expandURL(action)\n}\n\nfunction getExtension(url) {\n return (getLastPathComponent(url).match(/\\.[^.]*$/) || [])[0] || \"\"\n}\n\nfunction isPrefixedBy(baseURL, url) {\n const prefix = addTrailingSlash(url.origin + url.pathname);\n return addTrailingSlash(baseURL.href) === prefix || baseURL.href.startsWith(prefix)\n}\n\nfunction locationIsVisitable(location, rootLocation) {\n return isPrefixedBy(location, rootLocation) && !config.drive.unvisitableExtensions.has(getExtension(location))\n}\n\nfunction getLocationForLink(link) {\n return expandURL(link.getAttribute(\"href\") || \"\")\n}\n\nfunction getRequestURL(url) {\n const anchor = getAnchor(url);\n return anchor != null ? url.href.slice(0, -(anchor.length + 1)) : url.href\n}\n\nfunction toCacheKey(url) {\n return getRequestURL(url)\n}\n\nfunction urlsAreEqual(left, right) {\n return expandURL(left).href == expandURL(right).href\n}\n\nfunction getPathComponents(url) {\n return url.pathname.split(\"/\").slice(1)\n}\n\nfunction getLastPathComponent(url) {\n return getPathComponents(url).slice(-1)[0]\n}\n\nfunction addTrailingSlash(value) {\n return value.endsWith(\"/\") ? value : value + \"/\"\n}\n\nclass FetchResponse {\n constructor(response) {\n this.response = response;\n }\n\n get succeeded() {\n return this.response.ok\n }\n\n get failed() {\n return !this.succeeded\n }\n\n get clientError() {\n return this.statusCode >= 400 && this.statusCode <= 499\n }\n\n get serverError() {\n return this.statusCode >= 500 && this.statusCode <= 599\n }\n\n get redirected() {\n return this.response.redirected\n }\n\n get location() {\n return expandURL(this.response.url)\n }\n\n get isHTML() {\n return this.contentType && this.contentType.match(/^(?:text\\/([^\\s;,]+\\b)?html|application\\/xhtml\\+xml)\\b/)\n }\n\n get statusCode() {\n return this.response.status\n }\n\n get contentType() {\n return this.header(\"Content-Type\")\n }\n\n get responseText() {\n return this.response.clone().text()\n }\n\n get responseHTML() {\n if (this.isHTML) {\n return this.response.clone().text()\n } else {\n return Promise.resolve(undefined)\n }\n }\n\n header(name) {\n return this.response.headers.get(name)\n }\n}\n\nclass LimitedSet extends Set {\n constructor(maxSize) {\n super();\n this.maxSize = maxSize;\n }\n\n add(value) {\n if (this.size >= this.maxSize) {\n const iterator = this.values();\n const oldestValue = iterator.next().value;\n this.delete(oldestValue);\n }\n super.add(value);\n }\n}\n\nconst recentRequests = new LimitedSet(20);\n\nfunction fetchWithTurboHeaders(url, options = {}) {\n const modifiedHeaders = new Headers(options.headers || {});\n const requestUID = uuid();\n recentRequests.add(requestUID);\n modifiedHeaders.append(\"X-Turbo-Request-Id\", requestUID);\n\n return window.fetch(url, {\n ...options,\n headers: modifiedHeaders\n })\n}\n\nfunction fetchMethodFromString(method) {\n switch (method.toLowerCase()) {\n case \"get\":\n return FetchMethod.get\n case \"post\":\n return FetchMethod.post\n case \"put\":\n return FetchMethod.put\n case \"patch\":\n return FetchMethod.patch\n case \"delete\":\n return FetchMethod.delete\n }\n}\n\nconst FetchMethod = {\n get: \"get\",\n post: \"post\",\n put: \"put\",\n patch: \"patch\",\n delete: \"delete\"\n};\n\nfunction fetchEnctypeFromString(encoding) {\n switch (encoding.toLowerCase()) {\n case FetchEnctype.multipart:\n return FetchEnctype.multipart\n case FetchEnctype.plain:\n return FetchEnctype.plain\n default:\n return FetchEnctype.urlEncoded\n }\n}\n\nconst FetchEnctype = {\n urlEncoded: \"application/x-www-form-urlencoded\",\n multipart: \"multipart/form-data\",\n plain: \"text/plain\"\n};\n\nclass FetchRequest {\n abortController = new AbortController()\n #resolveRequestPromise = (_value) => {}\n\n constructor(delegate, method, location, requestBody = new URLSearchParams(), target = null, enctype = FetchEnctype.urlEncoded) {\n const [url, body] = buildResourceAndBody(expandURL(location), method, requestBody, enctype);\n\n this.delegate = delegate;\n this.url = url;\n this.target = target;\n this.fetchOptions = {\n credentials: \"same-origin\",\n redirect: \"follow\",\n method: method.toUpperCase(),\n headers: { ...this.defaultHeaders },\n body: body,\n signal: this.abortSignal,\n referrer: this.delegate.referrer?.href\n };\n this.enctype = enctype;\n }\n\n get method() {\n return this.fetchOptions.method\n }\n\n set method(value) {\n const fetchBody = this.isSafe ? this.url.searchParams : this.fetchOptions.body || new FormData();\n const fetchMethod = fetchMethodFromString(value) || FetchMethod.get;\n\n this.url.search = \"\";\n\n const [url, body] = buildResourceAndBody(this.url, fetchMethod, fetchBody, this.enctype);\n\n this.url = url;\n this.fetchOptions.body = body;\n this.fetchOptions.method = fetchMethod.toUpperCase();\n }\n\n get headers() {\n return this.fetchOptions.headers\n }\n\n set headers(value) {\n this.fetchOptions.headers = value;\n }\n\n get body() {\n if (this.isSafe) {\n return this.url.searchParams\n } else {\n return this.fetchOptions.body\n }\n }\n\n set body(value) {\n this.fetchOptions.body = value;\n }\n\n get location() {\n return this.url\n }\n\n get params() {\n return this.url.searchParams\n }\n\n get entries() {\n return this.body ? Array.from(this.body.entries()) : []\n }\n\n cancel() {\n this.abortController.abort();\n }\n\n async perform() {\n const { fetchOptions } = this;\n this.delegate.prepareRequest(this);\n const event = await this.#allowRequestToBeIntercepted(fetchOptions);\n try {\n this.delegate.requestStarted(this);\n\n if (event.detail.fetchRequest) {\n this.response = event.detail.fetchRequest.response;\n } else {\n this.response = fetchWithTurboHeaders(this.url.href, fetchOptions);\n }\n\n const response = await this.response;\n return await this.receive(response)\n } catch (error) {\n if (error.name !== \"AbortError\") {\n if (this.#willDelegateErrorHandling(error)) {\n this.delegate.requestErrored(this, error);\n }\n throw error\n }\n } finally {\n this.delegate.requestFinished(this);\n }\n }\n\n async receive(response) {\n const fetchResponse = new FetchResponse(response);\n const event = dispatch(\"turbo:before-fetch-response\", {\n cancelable: true,\n detail: { fetchResponse },\n target: this.target\n });\n if (event.defaultPrevented) {\n this.delegate.requestPreventedHandlingResponse(this, fetchResponse);\n } else if (fetchResponse.succeeded) {\n this.delegate.requestSucceededWithResponse(this, fetchResponse);\n } else {\n this.delegate.requestFailedWithResponse(this, fetchResponse);\n }\n return fetchResponse\n }\n\n get defaultHeaders() {\n return {\n Accept: \"text/html, application/xhtml+xml\"\n }\n }\n\n get isSafe() {\n return isSafe(this.method)\n }\n\n get abortSignal() {\n return this.abortController.signal\n }\n\n acceptResponseType(mimeType) {\n this.headers[\"Accept\"] = [mimeType, this.headers[\"Accept\"]].join(\", \");\n }\n\n async #allowRequestToBeIntercepted(fetchOptions) {\n const requestInterception = new Promise((resolve) => (this.#resolveRequestPromise = resolve));\n const event = dispatch(\"turbo:before-fetch-request\", {\n cancelable: true,\n detail: {\n fetchOptions,\n url: this.url,\n resume: this.#resolveRequestPromise\n },\n target: this.target\n });\n this.url = event.detail.url;\n if (event.defaultPrevented) await requestInterception;\n\n return event\n }\n\n #willDelegateErrorHandling(error) {\n const event = dispatch(\"turbo:fetch-request-error\", {\n target: this.target,\n cancelable: true,\n detail: { request: this, error: error }\n });\n\n return !event.defaultPrevented\n }\n}\n\nfunction isSafe(fetchMethod) {\n return fetchMethodFromString(fetchMethod) == FetchMethod.get\n}\n\nfunction buildResourceAndBody(resource, method, requestBody, enctype) {\n const searchParams =\n Array.from(requestBody).length > 0 ? new URLSearchParams(entriesExcludingFiles(requestBody)) : resource.searchParams;\n\n if (isSafe(method)) {\n return [mergeIntoURLSearchParams(resource, searchParams), null]\n } else if (enctype == FetchEnctype.urlEncoded) {\n return [resource, searchParams]\n } else {\n return [resource, requestBody]\n }\n}\n\nfunction entriesExcludingFiles(requestBody) {\n const entries = [];\n\n for (const [name, value] of requestBody) {\n if (value instanceof File) continue\n else entries.push([name, value]);\n }\n\n return entries\n}\n\nfunction mergeIntoURLSearchParams(url, requestBody) {\n const searchParams = new URLSearchParams(entriesExcludingFiles(requestBody));\n\n url.search = searchParams.toString();\n\n return url\n}\n\nclass AppearanceObserver {\n started = false\n\n constructor(delegate, element) {\n this.delegate = delegate;\n this.element = element;\n this.intersectionObserver = new IntersectionObserver(this.intersect);\n }\n\n start() {\n if (!this.started) {\n this.started = true;\n this.intersectionObserver.observe(this.element);\n }\n }\n\n stop() {\n if (this.started) {\n this.started = false;\n this.intersectionObserver.unobserve(this.element);\n }\n }\n\n intersect = (entries) => {\n const lastEntry = entries.slice(-1)[0];\n if (lastEntry?.isIntersecting) {\n this.delegate.elementAppearedInViewport(this.element);\n }\n }\n}\n\nclass StreamMessage {\n static contentType = \"text/vnd.turbo-stream.html\"\n\n static wrap(message) {\n if (typeof message == \"string\") {\n return new this(createDocumentFragment(message))\n } else {\n return message\n }\n }\n\n constructor(fragment) {\n this.fragment = importStreamElements(fragment);\n }\n}\n\nfunction importStreamElements(fragment) {\n for (const element of fragment.querySelectorAll(\"turbo-stream\")) {\n const streamElement = document.importNode(element, true);\n\n for (const inertScriptElement of streamElement.templateElement.content.querySelectorAll(\"script\")) {\n inertScriptElement.replaceWith(activateScriptElement(inertScriptElement));\n }\n\n element.replaceWith(streamElement);\n }\n\n return fragment\n}\n\nconst identity = key => key;\n\nclass LRUCache {\n keys = []\n entries = {}\n #toCacheKey\n\n constructor(size, toCacheKey = identity) {\n this.size = size;\n this.#toCacheKey = toCacheKey;\n }\n\n has(key) {\n return this.#toCacheKey(key) in this.entries\n }\n\n get(key) {\n if (this.has(key)) {\n const entry = this.read(key);\n this.touch(key);\n return entry\n }\n }\n\n put(key, entry) {\n this.write(key, entry);\n this.touch(key);\n return entry\n }\n\n clear() {\n for (const key of Object.keys(this.entries)) {\n this.evict(key);\n }\n }\n\n // Private\n\n read(key) {\n return this.entries[this.#toCacheKey(key)]\n }\n\n write(key, entry) {\n this.entries[this.#toCacheKey(key)] = entry;\n }\n\n touch(key) {\n key = this.#toCacheKey(key);\n const index = this.keys.indexOf(key);\n if (index > -1) this.keys.splice(index, 1);\n this.keys.unshift(key);\n this.trim();\n }\n\n trim() {\n for (const key of this.keys.splice(this.size)) {\n this.evict(key);\n }\n }\n\n evict(key) {\n delete this.entries[key];\n }\n}\n\nconst PREFETCH_DELAY = 100;\n\nclass PrefetchCache extends LRUCache {\n #prefetchTimeout = null\n #maxAges = {}\n\n constructor(size = 1, prefetchDelay = PREFETCH_DELAY) {\n super(size, toCacheKey);\n this.prefetchDelay = prefetchDelay;\n }\n\n putLater(url, request, ttl) {\n this.#prefetchTimeout = setTimeout(() => {\n request.perform();\n this.put(url, request, ttl);\n this.#prefetchTimeout = null;\n }, this.prefetchDelay);\n }\n\n put(url, request, ttl = cacheTtl) {\n super.put(url, request);\n this.#maxAges[toCacheKey(url)] = new Date(new Date().getTime() + ttl);\n }\n\n clear() {\n super.clear();\n if (this.#prefetchTimeout) clearTimeout(this.#prefetchTimeout);\n }\n\n evict(key) {\n super.evict(key);\n delete this.#maxAges[key];\n }\n\n has(key) {\n if (super.has(key)) {\n const maxAge = this.#maxAges[toCacheKey(key)];\n\n return maxAge && maxAge > Date.now()\n } else {\n return false\n }\n }\n}\n\nconst cacheTtl = 10 * 1000;\nconst prefetchCache = new PrefetchCache();\n\nconst FormSubmissionState = {\n initialized: \"initialized\",\n requesting: \"requesting\",\n waiting: \"waiting\",\n receiving: \"receiving\",\n stopping: \"stopping\",\n stopped: \"stopped\"\n};\n\nclass FormSubmission {\n state = FormSubmissionState.initialized\n\n static confirmMethod(message) {\n return Promise.resolve(confirm(message))\n }\n\n constructor(delegate, formElement, submitter, mustRedirect = false) {\n const method = getMethod(formElement, submitter);\n const action = getAction(getFormAction(formElement, submitter), method);\n const body = buildFormData(formElement, submitter);\n const enctype = getEnctype(formElement, submitter);\n\n this.delegate = delegate;\n this.formElement = formElement;\n this.submitter = submitter;\n this.fetchRequest = new FetchRequest(this, method, action, body, formElement, enctype);\n this.mustRedirect = mustRedirect;\n }\n\n get method() {\n return this.fetchRequest.method\n }\n\n set method(value) {\n this.fetchRequest.method = value;\n }\n\n get action() {\n return this.fetchRequest.url.toString()\n }\n\n set action(value) {\n this.fetchRequest.url = expandURL(value);\n }\n\n get body() {\n return this.fetchRequest.body\n }\n\n get enctype() {\n return this.fetchRequest.enctype\n }\n\n get isSafe() {\n return this.fetchRequest.isSafe\n }\n\n get location() {\n return this.fetchRequest.url\n }\n\n // The submission process\n\n async start() {\n const { initialized, requesting } = FormSubmissionState;\n const confirmationMessage = getAttribute(\"data-turbo-confirm\", this.submitter, this.formElement);\n\n if (typeof confirmationMessage === \"string\") {\n const confirmMethod = typeof config.forms.confirm === \"function\" ?\n config.forms.confirm :\n FormSubmission.confirmMethod;\n\n const answer = await confirmMethod(confirmationMessage, this.formElement, this.submitter);\n if (!answer) {\n return\n }\n }\n\n if (this.state == initialized) {\n this.state = requesting;\n return this.fetchRequest.perform()\n }\n }\n\n stop() {\n const { stopping, stopped } = FormSubmissionState;\n if (this.state != stopping && this.state != stopped) {\n this.state = stopping;\n this.fetchRequest.cancel();\n return true\n }\n }\n\n // Fetch request delegate\n\n prepareRequest(request) {\n if (!request.isSafe) {\n const token = getCookieValue(getMetaContent(\"csrf-param\")) || getMetaContent(\"csrf-token\");\n if (token) {\n request.headers[\"X-CSRF-Token\"] = token;\n }\n }\n\n if (this.requestAcceptsTurboStreamResponse(request)) {\n request.acceptResponseType(StreamMessage.contentType);\n }\n }\n\n requestStarted(_request) {\n this.state = FormSubmissionState.waiting;\n if (this.submitter) config.forms.submitter.beforeSubmit(this.submitter);\n this.setSubmitsWith();\n markAsBusy(this.formElement);\n dispatch(\"turbo:submit-start\", {\n target: this.formElement,\n detail: { formSubmission: this }\n });\n this.delegate.formSubmissionStarted(this);\n }\n\n requestPreventedHandlingResponse(request, response) {\n prefetchCache.clear();\n\n this.result = { success: response.succeeded, fetchResponse: response };\n }\n\n requestSucceededWithResponse(request, response) {\n if (response.clientError || response.serverError) {\n this.delegate.formSubmissionFailedWithResponse(this, response);\n return\n }\n\n prefetchCache.clear();\n\n if (this.requestMustRedirect(request) && responseSucceededWithoutRedirect(response)) {\n const error = new Error(\"Form responses must redirect to another location\");\n this.delegate.formSubmissionErrored(this, error);\n } else {\n this.state = FormSubmissionState.receiving;\n this.result = { success: true, fetchResponse: response };\n this.delegate.formSubmissionSucceededWithResponse(this, response);\n }\n }\n\n requestFailedWithResponse(request, response) {\n this.result = { success: false, fetchResponse: response };\n this.delegate.formSubmissionFailedWithResponse(this, response);\n }\n\n requestErrored(request, error) {\n this.result = { success: false, error };\n this.delegate.formSubmissionErrored(this, error);\n }\n\n requestFinished(_request) {\n this.state = FormSubmissionState.stopped;\n if (this.submitter) config.forms.submitter.afterSubmit(this.submitter);\n this.resetSubmitterText();\n clearBusyState(this.formElement);\n dispatch(\"turbo:submit-end\", {\n target: this.formElement,\n detail: { formSubmission: this, ...this.result }\n });\n this.delegate.formSubmissionFinished(this);\n }\n\n // Private\n\n setSubmitsWith() {\n if (!this.submitter || !this.submitsWith) return\n\n if (this.submitter.matches(\"button\")) {\n this.originalSubmitText = this.submitter.innerHTML;\n this.submitter.innerHTML = this.submitsWith;\n } else if (this.submitter.matches(\"input\")) {\n const input = this.submitter;\n this.originalSubmitText = input.value;\n input.value = this.submitsWith;\n }\n }\n\n resetSubmitterText() {\n if (!this.submitter || !this.originalSubmitText) return\n\n if (this.submitter.matches(\"button\")) {\n this.submitter.innerHTML = this.originalSubmitText;\n } else if (this.submitter.matches(\"input\")) {\n const input = this.submitter;\n input.value = this.originalSubmitText;\n }\n }\n\n requestMustRedirect(request) {\n return !request.isSafe && this.mustRedirect\n }\n\n requestAcceptsTurboStreamResponse(request) {\n return !request.isSafe || hasAttribute(\"data-turbo-stream\", this.submitter, this.formElement)\n }\n\n get submitsWith() {\n return this.submitter?.getAttribute(\"data-turbo-submits-with\")\n }\n}\n\nfunction buildFormData(formElement, submitter) {\n const formData = new FormData(formElement);\n const name = submitter?.getAttribute(\"name\");\n const value = submitter?.getAttribute(\"value\");\n\n if (name) {\n formData.append(name, value || \"\");\n }\n\n return formData\n}\n\nfunction getCookieValue(cookieName) {\n if (cookieName != null) {\n const cookies = document.cookie ? document.cookie.split(\"; \") : [];\n const cookie = cookies.find((cookie) => cookie.startsWith(cookieName));\n if (cookie) {\n const value = cookie.split(\"=\").slice(1).join(\"=\");\n return value ? decodeURIComponent(value) : undefined\n }\n }\n}\n\nfunction responseSucceededWithoutRedirect(response) {\n return response.statusCode == 200 && !response.redirected\n}\n\nfunction getFormAction(formElement, submitter) {\n const formElementAction = typeof formElement.action === \"string\" ? formElement.action : null;\n\n if (submitter?.hasAttribute(\"formaction\")) {\n return submitter.getAttribute(\"formaction\") || \"\"\n } else {\n return formElement.getAttribute(\"action\") || formElementAction || \"\"\n }\n}\n\nfunction getAction(formAction, fetchMethod) {\n const action = expandURL(formAction);\n\n if (isSafe(fetchMethod)) {\n action.search = \"\";\n }\n\n return action\n}\n\nfunction getMethod(formElement, submitter) {\n const method = submitter?.getAttribute(\"formmethod\") || formElement.getAttribute(\"method\") || \"\";\n return fetchMethodFromString(method.toLowerCase()) || FetchMethod.get\n}\n\nfunction getEnctype(formElement, submitter) {\n return fetchEnctypeFromString(submitter?.getAttribute(\"formenctype\") || formElement.enctype)\n}\n\nclass Snapshot {\n constructor(element) {\n this.element = element;\n }\n\n get activeElement() {\n return this.element.ownerDocument.activeElement\n }\n\n get children() {\n return [...this.element.children]\n }\n\n hasAnchor(anchor) {\n return this.getElementForAnchor(anchor) != null\n }\n\n getElementForAnchor(anchor) {\n return anchor ? this.element.querySelector(`[id='${anchor}'], a[name='${anchor}']`) : null\n }\n\n get isConnected() {\n return this.element.isConnected\n }\n\n get firstAutofocusableElement() {\n return queryAutofocusableElement(this.element)\n }\n\n get permanentElements() {\n return queryPermanentElementsAll(this.element)\n }\n\n getPermanentElementById(id) {\n return getPermanentElementById(this.element, id)\n }\n\n getPermanentElementMapForSnapshot(snapshot) {\n const permanentElementMap = {};\n\n for (const currentPermanentElement of this.permanentElements) {\n const { id } = currentPermanentElement;\n const newPermanentElement = snapshot.getPermanentElementById(id);\n if (newPermanentElement) {\n permanentElementMap[id] = [currentPermanentElement, newPermanentElement];\n }\n }\n\n return permanentElementMap\n }\n}\n\nfunction getPermanentElementById(node, id) {\n return node.querySelector(`#${id}[data-turbo-permanent]`)\n}\n\nfunction queryPermanentElementsAll(node) {\n return node.querySelectorAll(\"[id][data-turbo-permanent]\")\n}\n\nclass FormSubmitObserver {\n started = false\n\n constructor(delegate, eventTarget) {\n this.delegate = delegate;\n this.eventTarget = eventTarget;\n }\n\n start() {\n if (!this.started) {\n this.eventTarget.addEventListener(\"submit\", this.submitCaptured, true);\n this.started = true;\n }\n }\n\n stop() {\n if (this.started) {\n this.eventTarget.removeEventListener(\"submit\", this.submitCaptured, true);\n this.started = false;\n }\n }\n\n submitCaptured = () => {\n this.eventTarget.removeEventListener(\"submit\", this.submitBubbled, false);\n this.eventTarget.addEventListener(\"submit\", this.submitBubbled, false);\n }\n\n submitBubbled = (event) => {\n if (!event.defaultPrevented) {\n const form = event.target instanceof HTMLFormElement ? event.target : undefined;\n const submitter = event.submitter || undefined;\n\n if (\n form &&\n submissionDoesNotDismissDialog(form, submitter) &&\n submissionDoesNotTargetIFrame(form, submitter) &&\n this.delegate.willSubmitForm(form, submitter)\n ) {\n event.preventDefault();\n event.stopImmediatePropagation();\n this.delegate.formSubmitted(form, submitter);\n }\n }\n }\n}\n\nfunction submissionDoesNotDismissDialog(form, submitter) {\n const method = submitter?.getAttribute(\"formmethod\") || form.getAttribute(\"method\");\n\n return method != \"dialog\"\n}\n\nfunction submissionDoesNotTargetIFrame(form, submitter) {\n const target = submitter?.getAttribute(\"formtarget\") || form.getAttribute(\"target\");\n\n return doesNotTargetIFrame(target)\n}\n\nclass View {\n #resolveRenderPromise = (_value) => {}\n #resolveInterceptionPromise = (_value) => {}\n\n constructor(delegate, element) {\n this.delegate = delegate;\n this.element = element;\n }\n\n // Scrolling\n\n scrollToAnchor(anchor) {\n const element = this.snapshot.getElementForAnchor(anchor);\n if (element) {\n this.focusElement(element);\n this.scrollToElement(element);\n } else {\n this.scrollToPosition({ x: 0, y: 0 });\n }\n }\n\n scrollToAnchorFromLocation(location) {\n this.scrollToAnchor(getAnchor(location));\n }\n\n scrollToElement(element) {\n element.scrollIntoView();\n }\n\n focusElement(element) {\n if (element instanceof HTMLElement) {\n if (element.hasAttribute(\"tabindex\")) {\n element.focus();\n } else {\n element.setAttribute(\"tabindex\", \"-1\");\n element.focus();\n element.removeAttribute(\"tabindex\");\n }\n }\n }\n\n scrollToPosition({ x, y }) {\n this.scrollRoot.scrollTo(x, y);\n }\n\n scrollToTop() {\n this.scrollToPosition({ x: 0, y: 0 });\n }\n\n get scrollRoot() {\n return window\n }\n\n // Rendering\n\n async render(renderer) {\n const { isPreview, shouldRender, willRender, newSnapshot: snapshot } = renderer;\n\n // A workaround to ignore tracked element mismatch reloads when performing\n // a promoted Visit from a frame navigation\n const shouldInvalidate = willRender;\n\n if (shouldRender) {\n try {\n this.renderPromise = new Promise((resolve) => (this.#resolveRenderPromise = resolve));\n this.renderer = renderer;\n await this.prepareToRenderSnapshot(renderer);\n\n const renderInterception = new Promise((resolve) => (this.#resolveInterceptionPromise = resolve));\n const options = { resume: this.#resolveInterceptionPromise, render: this.renderer.renderElement, renderMethod: this.renderer.renderMethod };\n const immediateRender = this.delegate.allowsImmediateRender(snapshot, options);\n if (!immediateRender) await renderInterception;\n\n await this.renderSnapshot(renderer);\n this.delegate.viewRenderedSnapshot(snapshot, isPreview, this.renderer.renderMethod);\n this.delegate.preloadOnLoadLinksForView(this.element);\n this.finishRenderingSnapshot(renderer);\n } finally {\n delete this.renderer;\n this.#resolveRenderPromise(undefined);\n delete this.renderPromise;\n }\n } else if (shouldInvalidate) {\n this.invalidate(renderer.reloadReason);\n }\n }\n\n invalidate(reason) {\n this.delegate.viewInvalidated(reason);\n }\n\n async prepareToRenderSnapshot(renderer) {\n this.markAsPreview(renderer.isPreview);\n await renderer.prepareToRender();\n }\n\n markAsPreview(isPreview) {\n if (isPreview) {\n this.element.setAttribute(\"data-turbo-preview\", \"\");\n } else {\n this.element.removeAttribute(\"data-turbo-preview\");\n }\n }\n\n markVisitDirection(direction) {\n this.element.setAttribute(\"data-turbo-visit-direction\", direction);\n }\n\n unmarkVisitDirection() {\n this.element.removeAttribute(\"data-turbo-visit-direction\");\n }\n\n async renderSnapshot(renderer) {\n await renderer.render();\n }\n\n finishRenderingSnapshot(renderer) {\n renderer.finishRendering();\n }\n}\n\nclass FrameView extends View {\n missing() {\n this.element.innerHTML = `Content missing`;\n }\n\n get snapshot() {\n return new Snapshot(this.element)\n }\n}\n\nclass LinkInterceptor {\n constructor(delegate, element) {\n this.delegate = delegate;\n this.element = element;\n }\n\n start() {\n this.element.addEventListener(\"click\", this.clickBubbled);\n document.addEventListener(\"turbo:click\", this.linkClicked);\n document.addEventListener(\"turbo:before-visit\", this.willVisit);\n }\n\n stop() {\n this.element.removeEventListener(\"click\", this.clickBubbled);\n document.removeEventListener(\"turbo:click\", this.linkClicked);\n document.removeEventListener(\"turbo:before-visit\", this.willVisit);\n }\n\n clickBubbled = (event) => {\n if (this.clickEventIsSignificant(event)) {\n this.clickEvent = event;\n } else {\n delete this.clickEvent;\n }\n }\n\n linkClicked = (event) => {\n if (this.clickEvent && this.clickEventIsSignificant(event)) {\n if (this.delegate.shouldInterceptLinkClick(event.target, event.detail.url, event.detail.originalEvent)) {\n this.clickEvent.preventDefault();\n event.preventDefault();\n this.delegate.linkClickIntercepted(event.target, event.detail.url, event.detail.originalEvent);\n }\n }\n delete this.clickEvent;\n }\n\n willVisit = (_event) => {\n delete this.clickEvent;\n }\n\n clickEventIsSignificant(event) {\n const target = event.composed ? event.target?.parentElement : event.target;\n const element = findLinkFromClickTarget(target) || target;\n\n return element instanceof Element && element.closest(\"turbo-frame, html\") == this.element\n }\n}\n\nclass LinkClickObserver {\n started = false\n\n constructor(delegate, eventTarget) {\n this.delegate = delegate;\n this.eventTarget = eventTarget;\n }\n\n start() {\n if (!this.started) {\n this.eventTarget.addEventListener(\"click\", this.clickCaptured, true);\n this.started = true;\n }\n }\n\n stop() {\n if (this.started) {\n this.eventTarget.removeEventListener(\"click\", this.clickCaptured, true);\n this.started = false;\n }\n }\n\n clickCaptured = () => {\n this.eventTarget.removeEventListener(\"click\", this.clickBubbled, false);\n this.eventTarget.addEventListener(\"click\", this.clickBubbled, false);\n }\n\n clickBubbled = (event) => {\n if (event instanceof MouseEvent && this.clickEventIsSignificant(event)) {\n const target = (event.composedPath && event.composedPath()[0]) || event.target;\n const link = findLinkFromClickTarget(target);\n if (link && doesNotTargetIFrame(link.target)) {\n const location = getLocationForLink(link);\n if (this.delegate.willFollowLinkToLocation(link, location, event)) {\n event.preventDefault();\n this.delegate.followedLinkToLocation(link, location);\n }\n }\n }\n }\n\n clickEventIsSignificant(event) {\n return !(\n (event.target && event.target.isContentEditable) ||\n event.defaultPrevented ||\n event.which > 1 ||\n event.altKey ||\n event.ctrlKey ||\n event.metaKey ||\n event.shiftKey\n )\n }\n}\n\nclass FormLinkClickObserver {\n constructor(delegate, element) {\n this.delegate = delegate;\n this.linkInterceptor = new LinkClickObserver(this, element);\n }\n\n start() {\n this.linkInterceptor.start();\n }\n\n stop() {\n this.linkInterceptor.stop();\n }\n\n // Link hover observer delegate\n\n canPrefetchRequestToLocation(link, location) {\n return false\n }\n\n prefetchAndCacheRequestToLocation(link, location) {\n return\n }\n\n // Link click observer delegate\n\n willFollowLinkToLocation(link, location, originalEvent) {\n return (\n this.delegate.willSubmitFormLinkToLocation(link, location, originalEvent) &&\n (link.hasAttribute(\"data-turbo-method\") || link.hasAttribute(\"data-turbo-stream\"))\n )\n }\n\n followedLinkToLocation(link, location) {\n const form = document.createElement(\"form\");\n\n const type = \"hidden\";\n for (const [name, value] of location.searchParams) {\n form.append(Object.assign(document.createElement(\"input\"), { type, name, value }));\n }\n\n const action = Object.assign(location, { search: \"\" });\n form.setAttribute(\"data-turbo\", \"true\");\n form.setAttribute(\"action\", action.href);\n form.setAttribute(\"hidden\", \"\");\n\n const method = link.getAttribute(\"data-turbo-method\");\n if (method) form.setAttribute(\"method\", method);\n\n const turboFrame = link.getAttribute(\"data-turbo-frame\");\n if (turboFrame) form.setAttribute(\"data-turbo-frame\", turboFrame);\n\n const turboAction = getVisitAction(link);\n if (turboAction) form.setAttribute(\"data-turbo-action\", turboAction);\n\n const turboConfirm = link.getAttribute(\"data-turbo-confirm\");\n if (turboConfirm) form.setAttribute(\"data-turbo-confirm\", turboConfirm);\n\n const turboStream = link.hasAttribute(\"data-turbo-stream\");\n if (turboStream) form.setAttribute(\"data-turbo-stream\", \"\");\n\n this.delegate.submittedFormLinkToLocation(link, location, form);\n\n document.body.appendChild(form);\n form.addEventListener(\"turbo:submit-end\", () => form.remove(), { once: true });\n requestAnimationFrame(() => form.requestSubmit());\n }\n}\n\nclass Bardo {\n static async preservingPermanentElements(delegate, permanentElementMap, callback) {\n const bardo = new this(delegate, permanentElementMap);\n bardo.enter();\n await callback();\n bardo.leave();\n }\n\n constructor(delegate, permanentElementMap) {\n this.delegate = delegate;\n this.permanentElementMap = permanentElementMap;\n }\n\n enter() {\n for (const id in this.permanentElementMap) {\n const [currentPermanentElement, newPermanentElement] = this.permanentElementMap[id];\n this.delegate.enteringBardo(currentPermanentElement, newPermanentElement);\n this.replaceNewPermanentElementWithPlaceholder(newPermanentElement);\n }\n }\n\n leave() {\n for (const id in this.permanentElementMap) {\n const [currentPermanentElement] = this.permanentElementMap[id];\n this.replaceCurrentPermanentElementWithClone(currentPermanentElement);\n this.replacePlaceholderWithPermanentElement(currentPermanentElement);\n this.delegate.leavingBardo(currentPermanentElement);\n }\n }\n\n replaceNewPermanentElementWithPlaceholder(permanentElement) {\n const placeholder = createPlaceholderForPermanentElement(permanentElement);\n permanentElement.replaceWith(placeholder);\n }\n\n replaceCurrentPermanentElementWithClone(permanentElement) {\n const clone = permanentElement.cloneNode(true);\n permanentElement.replaceWith(clone);\n }\n\n replacePlaceholderWithPermanentElement(permanentElement) {\n const placeholder = this.getPlaceholderById(permanentElement.id);\n placeholder?.replaceWith(permanentElement);\n }\n\n getPlaceholderById(id) {\n return this.placeholders.find((element) => element.content == id)\n }\n\n get placeholders() {\n return [...document.querySelectorAll(\"meta[name=turbo-permanent-placeholder][content]\")]\n }\n}\n\nfunction createPlaceholderForPermanentElement(permanentElement) {\n const element = document.createElement(\"meta\");\n element.setAttribute(\"name\", \"turbo-permanent-placeholder\");\n element.setAttribute(\"content\", permanentElement.id);\n return element\n}\n\nclass Renderer {\n #activeElement = null\n\n static renderElement(currentElement, newElement) {\n // Abstract method\n }\n\n constructor(currentSnapshot, newSnapshot, isPreview, willRender = true) {\n this.currentSnapshot = currentSnapshot;\n this.newSnapshot = newSnapshot;\n this.isPreview = isPreview;\n this.willRender = willRender;\n this.renderElement = this.constructor.renderElement;\n this.promise = new Promise((resolve, reject) => (this.resolvingFunctions = { resolve, reject }));\n }\n\n get shouldRender() {\n return true\n }\n\n get shouldAutofocus() {\n return true\n }\n\n get reloadReason() {\n return\n }\n\n prepareToRender() {\n return\n }\n\n render() {\n // Abstract method\n }\n\n finishRendering() {\n if (this.resolvingFunctions) {\n this.resolvingFunctions.resolve();\n delete this.resolvingFunctions;\n }\n }\n\n async preservingPermanentElements(callback) {\n await Bardo.preservingPermanentElements(this, this.permanentElementMap, callback);\n }\n\n focusFirstAutofocusableElement() {\n if (this.shouldAutofocus) {\n const element = this.connectedSnapshot.firstAutofocusableElement;\n if (element) {\n element.focus();\n }\n }\n }\n\n // Bardo delegate\n\n enteringBardo(currentPermanentElement) {\n if (this.#activeElement) return\n\n if (currentPermanentElement.contains(this.currentSnapshot.activeElement)) {\n this.#activeElement = this.currentSnapshot.activeElement;\n }\n }\n\n leavingBardo(currentPermanentElement) {\n if (currentPermanentElement.contains(this.#activeElement) && this.#activeElement instanceof HTMLElement) {\n this.#activeElement.focus();\n\n this.#activeElement = null;\n }\n }\n\n get connectedSnapshot() {\n return this.newSnapshot.isConnected ? this.newSnapshot : this.currentSnapshot\n }\n\n get currentElement() {\n return this.currentSnapshot.element\n }\n\n get newElement() {\n return this.newSnapshot.element\n }\n\n get permanentElementMap() {\n return this.currentSnapshot.getPermanentElementMapForSnapshot(this.newSnapshot)\n }\n\n get renderMethod() {\n return \"replace\"\n }\n}\n\nclass FrameRenderer extends Renderer {\n static renderElement(currentElement, newElement) {\n const destinationRange = document.createRange();\n destinationRange.selectNodeContents(currentElement);\n destinationRange.deleteContents();\n\n const frameElement = newElement;\n const sourceRange = frameElement.ownerDocument?.createRange();\n if (sourceRange) {\n sourceRange.selectNodeContents(frameElement);\n currentElement.appendChild(sourceRange.extractContents());\n }\n }\n\n constructor(delegate, currentSnapshot, newSnapshot, renderElement, isPreview, willRender = true) {\n super(currentSnapshot, newSnapshot, renderElement, isPreview, willRender);\n this.delegate = delegate;\n }\n\n get shouldRender() {\n return true\n }\n\n async render() {\n await nextRepaint();\n this.preservingPermanentElements(() => {\n this.loadFrameElement();\n });\n this.scrollFrameIntoView();\n await nextRepaint();\n this.focusFirstAutofocusableElement();\n await nextRepaint();\n this.activateScriptElements();\n }\n\n loadFrameElement() {\n this.delegate.willRenderFrame(this.currentElement, this.newElement);\n this.renderElement(this.currentElement, this.newElement);\n }\n\n scrollFrameIntoView() {\n if (this.currentElement.autoscroll || this.newElement.autoscroll) {\n const element = this.currentElement.firstElementChild;\n const block = readScrollLogicalPosition(this.currentElement.getAttribute(\"data-autoscroll-block\"), \"end\");\n const behavior = readScrollBehavior(this.currentElement.getAttribute(\"data-autoscroll-behavior\"), \"auto\");\n\n if (element) {\n element.scrollIntoView({ block, behavior });\n return true\n }\n }\n return false\n }\n\n activateScriptElements() {\n for (const inertScriptElement of this.newScriptElements) {\n const activatedScriptElement = activateScriptElement(inertScriptElement);\n inertScriptElement.replaceWith(activatedScriptElement);\n }\n }\n\n get newScriptElements() {\n return this.currentElement.querySelectorAll(\"script\")\n }\n}\n\nfunction readScrollLogicalPosition(value, defaultValue) {\n if (value == \"end\" || value == \"start\" || value == \"center\" || value == \"nearest\") {\n return value\n } else {\n return defaultValue\n }\n}\n\nfunction readScrollBehavior(value, defaultValue) {\n if (value == \"auto\" || value == \"smooth\") {\n return value\n } else {\n return defaultValue\n }\n}\n\n/**\n * @typedef {object} ConfigHead\n *\n * @property {'merge' | 'append' | 'morph' | 'none'} [style]\n * @property {boolean} [block]\n * @property {boolean} [ignore]\n * @property {function(Element): boolean} [shouldPreserve]\n * @property {function(Element): boolean} [shouldReAppend]\n * @property {function(Element): boolean} [shouldRemove]\n * @property {function(Element, {added: Node[], kept: Element[], removed: Element[]}): void} [afterHeadMorphed]\n */\n\n/**\n * @typedef {object} ConfigCallbacks\n *\n * @property {function(Node): boolean} [beforeNodeAdded]\n * @property {function(Node): void} [afterNodeAdded]\n * @property {function(Element, Node): boolean} [beforeNodeMorphed]\n * @property {function(Element, Node): void} [afterNodeMorphed]\n * @property {function(Element): boolean} [beforeNodeRemoved]\n * @property {function(Element): void} [afterNodeRemoved]\n * @property {function(string, Element, \"update\" | \"remove\"): boolean} [beforeAttributeUpdated]\n */\n\n/**\n * @typedef {object} Config\n *\n * @property {'outerHTML' | 'innerHTML'} [morphStyle]\n * @property {boolean} [ignoreActive]\n * @property {boolean} [ignoreActiveValue]\n * @property {boolean} [restoreFocus]\n * @property {ConfigCallbacks} [callbacks]\n * @property {ConfigHead} [head]\n */\n\n/**\n * @typedef {function} NoOp\n *\n * @returns {void}\n */\n\n/**\n * @typedef {object} ConfigHeadInternal\n *\n * @property {'merge' | 'append' | 'morph' | 'none'} style\n * @property {boolean} [block]\n * @property {boolean} [ignore]\n * @property {(function(Element): boolean) | NoOp} shouldPreserve\n * @property {(function(Element): boolean) | NoOp} shouldReAppend\n * @property {(function(Element): boolean) | NoOp} shouldRemove\n * @property {(function(Element, {added: Node[], kept: Element[], removed: Element[]}): void) | NoOp} afterHeadMorphed\n */\n\n/**\n * @typedef {object} ConfigCallbacksInternal\n *\n * @property {(function(Node): boolean) | NoOp} beforeNodeAdded\n * @property {(function(Node): void) | NoOp} afterNodeAdded\n * @property {(function(Node, Node): boolean) | NoOp} beforeNodeMorphed\n * @property {(function(Node, Node): void) | NoOp} afterNodeMorphed\n * @property {(function(Node): boolean) | NoOp} beforeNodeRemoved\n * @property {(function(Node): void) | NoOp} afterNodeRemoved\n * @property {(function(string, Element, \"update\" | \"remove\"): boolean) | NoOp} beforeAttributeUpdated\n */\n\n/**\n * @typedef {object} ConfigInternal\n *\n * @property {'outerHTML' | 'innerHTML'} morphStyle\n * @property {boolean} [ignoreActive]\n * @property {boolean} [ignoreActiveValue]\n * @property {boolean} [restoreFocus]\n * @property {ConfigCallbacksInternal} callbacks\n * @property {ConfigHeadInternal} head\n */\n\n/**\n * @typedef {Object} IdSets\n * @property {Set} persistentIds\n * @property {Map>} idMap\n */\n\n/**\n * @typedef {Function} Morph\n *\n * @param {Element | Document} oldNode\n * @param {Element | Node | HTMLCollection | Node[] | string | null} newContent\n * @param {Config} [config]\n * @returns {undefined | Node[]}\n */\n\n// base IIFE to define idiomorph\n/**\n *\n * @type {{defaults: ConfigInternal, morph: Morph}}\n */\nvar Idiomorph = (function () {\n\n /**\n * @typedef {object} MorphContext\n *\n * @property {Element} target\n * @property {Element} newContent\n * @property {ConfigInternal} config\n * @property {ConfigInternal['morphStyle']} morphStyle\n * @property {ConfigInternal['ignoreActive']} ignoreActive\n * @property {ConfigInternal['ignoreActiveValue']} ignoreActiveValue\n * @property {ConfigInternal['restoreFocus']} restoreFocus\n * @property {Map>} idMap\n * @property {Set} persistentIds\n * @property {ConfigInternal['callbacks']} callbacks\n * @property {ConfigInternal['head']} head\n * @property {HTMLDivElement} pantry\n * @property {Element[]} activeElementAndParents\n */\n\n //=============================================================================\n // AND NOW IT BEGINS...\n //=============================================================================\n\n const noOp = () => {};\n /**\n * Default configuration values, updatable by users now\n * @type {ConfigInternal}\n */\n const defaults = {\n morphStyle: \"outerHTML\",\n callbacks: {\n beforeNodeAdded: noOp,\n afterNodeAdded: noOp,\n beforeNodeMorphed: noOp,\n afterNodeMorphed: noOp,\n beforeNodeRemoved: noOp,\n afterNodeRemoved: noOp,\n beforeAttributeUpdated: noOp,\n },\n head: {\n style: \"merge\",\n shouldPreserve: (elt) => elt.getAttribute(\"im-preserve\") === \"true\",\n shouldReAppend: (elt) => elt.getAttribute(\"im-re-append\") === \"true\",\n shouldRemove: noOp,\n afterHeadMorphed: noOp,\n },\n restoreFocus: true,\n };\n\n /**\n * Core idiomorph function for morphing one DOM tree to another\n *\n * @param {Element | Document} oldNode\n * @param {Element | Node | HTMLCollection | Node[] | string | null} newContent\n * @param {Config} [config]\n * @returns {Promise | Node[]}\n */\n function morph(oldNode, newContent, config = {}) {\n oldNode = normalizeElement(oldNode);\n const newNode = normalizeParent(newContent);\n const ctx = createMorphContext(oldNode, newNode, config);\n\n const morphedNodes = saveAndRestoreFocus(ctx, () => {\n return withHeadBlocking(\n ctx,\n oldNode,\n newNode,\n /** @param {MorphContext} ctx */ (ctx) => {\n if (ctx.morphStyle === \"innerHTML\") {\n morphChildren(ctx, oldNode, newNode);\n return Array.from(oldNode.childNodes);\n } else {\n return morphOuterHTML(ctx, oldNode, newNode);\n }\n },\n );\n });\n\n ctx.pantry.remove();\n return morphedNodes;\n }\n\n /**\n * Morph just the outerHTML of the oldNode to the newContent\n * We have to be careful because the oldNode could have siblings which need to be untouched\n * @param {MorphContext} ctx\n * @param {Element} oldNode\n * @param {Element} newNode\n * @returns {Node[]}\n */\n function morphOuterHTML(ctx, oldNode, newNode) {\n const oldParent = normalizeParent(oldNode);\n morphChildren(\n ctx,\n oldParent,\n newNode,\n // these two optional params are the secret sauce\n oldNode, // start point for iteration\n oldNode.nextSibling, // end point for iteration\n );\n // this is safe even with siblings, because normalizeParent returns a SlicedParentNode if needed.\n return Array.from(oldParent.childNodes);\n }\n\n /**\n * @param {MorphContext} ctx\n * @param {Function} fn\n * @returns {Promise | Node[]}\n */\n function saveAndRestoreFocus(ctx, fn) {\n if (!ctx.config.restoreFocus) return fn();\n let activeElement =\n /** @type {HTMLInputElement|HTMLTextAreaElement|null} */ (\n document.activeElement\n );\n\n // don't bother if the active element is not an input or textarea\n if (\n !(\n activeElement instanceof HTMLInputElement ||\n activeElement instanceof HTMLTextAreaElement\n )\n ) {\n return fn();\n }\n\n const { id: activeElementId, selectionStart, selectionEnd } = activeElement;\n\n const results = fn();\n\n if (\n activeElementId &&\n activeElementId !== document.activeElement?.getAttribute(\"id\")\n ) {\n activeElement = ctx.target.querySelector(`[id=\"${activeElementId}\"]`);\n activeElement?.focus();\n }\n if (activeElement && !activeElement.selectionEnd && selectionEnd) {\n activeElement.setSelectionRange(selectionStart, selectionEnd);\n }\n\n return results;\n }\n\n const morphChildren = (function () {\n /**\n * This is the core algorithm for matching up children. The idea is to use id sets to try to match up\n * nodes as faithfully as possible. We greedily match, which allows us to keep the algorithm fast, but\n * by using id sets, we are able to better match up with content deeper in the DOM.\n *\n * Basic algorithm:\n * - for each node in the new content:\n * - search self and siblings for an id set match, falling back to a soft match\n * - if match found\n * - remove any nodes up to the match:\n * - pantry persistent nodes\n * - delete the rest\n * - morph the match\n * - elsif no match found, and node is persistent\n * - find its match by querying the old root (future) and pantry (past)\n * - move it and its children here\n * - morph it\n * - else\n * - create a new node from scratch as a last result\n *\n * @param {MorphContext} ctx the merge context\n * @param {Element} oldParent the old content that we are merging the new content into\n * @param {Element} newParent the parent element of the new content\n * @param {Node|null} [insertionPoint] the point in the DOM we start morphing at (defaults to first child)\n * @param {Node|null} [endPoint] the point in the DOM we stop morphing at (defaults to after last child)\n */\n function morphChildren(\n ctx,\n oldParent,\n newParent,\n insertionPoint = null,\n endPoint = null,\n ) {\n // normalize\n if (\n oldParent instanceof HTMLTemplateElement &&\n newParent instanceof HTMLTemplateElement\n ) {\n // @ts-ignore we can pretend the DocumentFragment is an Element\n oldParent = oldParent.content;\n // @ts-ignore ditto\n newParent = newParent.content;\n }\n insertionPoint ||= oldParent.firstChild;\n\n // run through all the new content\n for (const newChild of newParent.childNodes) {\n // once we reach the end of the old parent content skip to the end and insert the rest\n if (insertionPoint && insertionPoint != endPoint) {\n const bestMatch = findBestMatch(\n ctx,\n newChild,\n insertionPoint,\n endPoint,\n );\n if (bestMatch) {\n // if the node to morph is not at the insertion point then remove/move up to it\n if (bestMatch !== insertionPoint) {\n removeNodesBetween(ctx, insertionPoint, bestMatch);\n }\n morphNode(bestMatch, newChild, ctx);\n insertionPoint = bestMatch.nextSibling;\n continue;\n }\n }\n\n // if the matching node is elsewhere in the original content\n if (newChild instanceof Element) {\n // we can pretend the id is non-null because the next `.has` line will reject it if not\n const newChildId = /** @type {String} */ (\n newChild.getAttribute(\"id\")\n );\n if (ctx.persistentIds.has(newChildId)) {\n // move it and all its children here and morph\n const movedChild = moveBeforeById(\n oldParent,\n newChildId,\n insertionPoint,\n ctx,\n );\n morphNode(movedChild, newChild, ctx);\n insertionPoint = movedChild.nextSibling;\n continue;\n }\n }\n\n // last resort: insert the new node from scratch\n const insertedNode = createNode(\n oldParent,\n newChild,\n insertionPoint,\n ctx,\n );\n // could be null if beforeNodeAdded prevented insertion\n if (insertedNode) {\n insertionPoint = insertedNode.nextSibling;\n }\n }\n\n // remove any remaining old nodes that didn't match up with new content\n while (insertionPoint && insertionPoint != endPoint) {\n const tempNode = insertionPoint;\n insertionPoint = insertionPoint.nextSibling;\n removeNode(ctx, tempNode);\n }\n }\n\n /**\n * This performs the action of inserting a new node while handling situations where the node contains\n * elements with persistent ids and possible state info we can still preserve by moving in and then morphing\n *\n * @param {Element} oldParent\n * @param {Node} newChild\n * @param {Node|null} insertionPoint\n * @param {MorphContext} ctx\n * @returns {Node|null}\n */\n function createNode(oldParent, newChild, insertionPoint, ctx) {\n if (ctx.callbacks.beforeNodeAdded(newChild) === false) return null;\n if (ctx.idMap.has(newChild)) {\n // node has children with ids with possible state so create a dummy elt of same type and apply full morph algorithm\n const newEmptyChild = document.createElement(\n /** @type {Element} */ (newChild).tagName,\n );\n oldParent.insertBefore(newEmptyChild, insertionPoint);\n morphNode(newEmptyChild, newChild, ctx);\n ctx.callbacks.afterNodeAdded(newEmptyChild);\n return newEmptyChild;\n } else {\n // optimisation: no id state to preserve so we can just insert a clone of the newChild and its descendants\n const newClonedChild = document.importNode(newChild, true); // importNode to not mutate newParent\n oldParent.insertBefore(newClonedChild, insertionPoint);\n ctx.callbacks.afterNodeAdded(newClonedChild);\n return newClonedChild;\n }\n }\n\n //=============================================================================\n // Matching Functions\n //=============================================================================\n const findBestMatch = (function () {\n /**\n * Scans forward from the startPoint to the endPoint looking for a match\n * for the node. It looks for an id set match first, then a soft match.\n * We abort softmatching if we find two future soft matches, to reduce churn.\n * @param {Node} node\n * @param {MorphContext} ctx\n * @param {Node | null} startPoint\n * @param {Node | null} endPoint\n * @returns {Node | null}\n */\n function findBestMatch(ctx, node, startPoint, endPoint) {\n let softMatch = null;\n let nextSibling = node.nextSibling;\n let siblingSoftMatchCount = 0;\n\n let cursor = startPoint;\n while (cursor && cursor != endPoint) {\n // soft matching is a prerequisite for id set matching\n if (isSoftMatch(cursor, node)) {\n if (isIdSetMatch(ctx, cursor, node)) {\n return cursor; // found an id set match, we're done!\n }\n\n // we haven't yet saved a soft match fallback\n if (softMatch === null) {\n // the current soft match will hard match something else in the future, leave it\n if (!ctx.idMap.has(cursor)) {\n // save this as the fallback if we get through the loop without finding a hard match\n softMatch = cursor;\n }\n }\n }\n if (\n softMatch === null &&\n nextSibling &&\n isSoftMatch(cursor, nextSibling)\n ) {\n // The next new node has a soft match with this node, so\n // increment the count of future soft matches\n siblingSoftMatchCount++;\n nextSibling = nextSibling.nextSibling;\n\n // If there are two future soft matches, block soft matching for this node to allow\n // future siblings to soft match. This is to reduce churn in the DOM when an element\n // is prepended.\n if (siblingSoftMatchCount >= 2) {\n softMatch = undefined;\n }\n }\n\n // if the current node contains active element, stop looking for better future matches,\n // because if one is found, this node will be moved to the pantry, reparenting it and thus losing focus\n // @ts-ignore pretend cursor is Element rather than Node, we're just testing for array inclusion\n if (ctx.activeElementAndParents.includes(cursor)) break;\n\n cursor = cursor.nextSibling;\n }\n\n return softMatch || null;\n }\n\n /**\n *\n * @param {MorphContext} ctx\n * @param {Node} oldNode\n * @param {Node} newNode\n * @returns {boolean}\n */\n function isIdSetMatch(ctx, oldNode, newNode) {\n let oldSet = ctx.idMap.get(oldNode);\n let newSet = ctx.idMap.get(newNode);\n\n if (!newSet || !oldSet) return false;\n\n for (const id of oldSet) {\n // a potential match is an id in the new and old nodes that\n // has not already been merged into the DOM\n // But the newNode content we call this on has not been\n // merged yet and we don't allow duplicate IDs so it is simple\n if (newSet.has(id)) {\n return true;\n }\n }\n return false;\n }\n\n /**\n *\n * @param {Node} oldNode\n * @param {Node} newNode\n * @returns {boolean}\n */\n function isSoftMatch(oldNode, newNode) {\n // ok to cast: if one is not element, `id` and `tagName` will be undefined and we'll just compare that.\n const oldElt = /** @type {Element} */ (oldNode);\n const newElt = /** @type {Element} */ (newNode);\n\n return (\n oldElt.nodeType === newElt.nodeType &&\n oldElt.tagName === newElt.tagName &&\n // If oldElt has an `id` with possible state and it doesn't match newElt.id then avoid morphing.\n // We'll still match an anonymous node with an IDed newElt, though, because if it got this far,\n // its not persistent, and new nodes can't have any hidden state.\n // We can't use .id because of form input shadowing, and we can't count on .getAttribute's presence because it could be a document-fragment\n (!oldElt.getAttribute?.(\"id\") ||\n oldElt.getAttribute?.(\"id\") === newElt.getAttribute?.(\"id\"))\n );\n }\n\n return findBestMatch;\n })();\n\n //=============================================================================\n // DOM Manipulation Functions\n //=============================================================================\n\n /**\n * Gets rid of an unwanted DOM node; strategy depends on nature of its reuse:\n * - Persistent nodes will be moved to the pantry for later reuse\n * - Other nodes will have their hooks called, and then are removed\n * @param {MorphContext} ctx\n * @param {Node} node\n */\n function removeNode(ctx, node) {\n // are we going to id set match this later?\n if (ctx.idMap.has(node)) {\n // skip callbacks and move to pantry\n moveBefore(ctx.pantry, node, null);\n } else {\n // remove for realsies\n if (ctx.callbacks.beforeNodeRemoved(node) === false) return;\n node.parentNode?.removeChild(node);\n ctx.callbacks.afterNodeRemoved(node);\n }\n }\n\n /**\n * Remove nodes between the start and end nodes\n * @param {MorphContext} ctx\n * @param {Node} startInclusive\n * @param {Node} endExclusive\n * @returns {Node|null}\n */\n function removeNodesBetween(ctx, startInclusive, endExclusive) {\n /** @type {Node | null} */\n let cursor = startInclusive;\n // remove nodes until the endExclusive node\n while (cursor && cursor !== endExclusive) {\n let tempNode = /** @type {Node} */ (cursor);\n cursor = cursor.nextSibling;\n removeNode(ctx, tempNode);\n }\n return cursor;\n }\n\n /**\n * Search for an element by id within the document and pantry, and move it using moveBefore.\n *\n * @param {Element} parentNode - The parent node to which the element will be moved.\n * @param {string} id - The ID of the element to be moved.\n * @param {Node | null} after - The reference node to insert the element before.\n * If `null`, the element is appended as the last child.\n * @param {MorphContext} ctx\n * @returns {Element} The found element\n */\n function moveBeforeById(parentNode, id, after, ctx) {\n const target =\n /** @type {Element} - will always be found */\n (\n // ctx.target.id unsafe because of form input shadowing\n // ctx.target could be a document fragment which doesn't have `getAttribute`\n (ctx.target.getAttribute?.(\"id\") === id && ctx.target) ||\n ctx.target.querySelector(`[id=\"${id}\"]`) ||\n ctx.pantry.querySelector(`[id=\"${id}\"]`)\n );\n removeElementFromAncestorsIdMaps(target, ctx);\n moveBefore(parentNode, target, after);\n return target;\n }\n\n /**\n * Removes an element from its ancestors' id maps. This is needed when an element is moved from the\n * \"future\" via `moveBeforeId`. Otherwise, its erstwhile ancestors could be mistakenly moved to the\n * pantry rather than being deleted, preventing their removal hooks from being called.\n *\n * @param {Element} element - element to remove from its ancestors' id maps\n * @param {MorphContext} ctx\n */\n function removeElementFromAncestorsIdMaps(element, ctx) {\n // we know id is non-null String, because this function is only called on elements with ids\n const id = /** @type {String} */ (element.getAttribute(\"id\"));\n /** @ts-ignore - safe to loop in this way **/\n while ((element = element.parentNode)) {\n let idSet = ctx.idMap.get(element);\n if (idSet) {\n idSet.delete(id);\n if (!idSet.size) {\n ctx.idMap.delete(element);\n }\n }\n }\n }\n\n /**\n * Moves an element before another element within the same parent.\n * Uses the proposed `moveBefore` API if available (and working), otherwise falls back to `insertBefore`.\n * This is essentialy a forward-compat wrapper.\n *\n * @param {Element} parentNode - The parent node containing the after element.\n * @param {Node} element - The element to be moved.\n * @param {Node | null} after - The reference node to insert `element` before.\n * If `null`, `element` is appended as the last child.\n */\n function moveBefore(parentNode, element, after) {\n // @ts-ignore - use proposed moveBefore feature\n if (parentNode.moveBefore) {\n try {\n // @ts-ignore - use proposed moveBefore feature\n parentNode.moveBefore(element, after);\n } catch (e) {\n // fall back to insertBefore as some browsers may fail on moveBefore when trying to move Dom disconnected nodes to pantry\n parentNode.insertBefore(element, after);\n }\n } else {\n parentNode.insertBefore(element, after);\n }\n }\n\n return morphChildren;\n })();\n\n //=============================================================================\n // Single Node Morphing Code\n //=============================================================================\n const morphNode = (function () {\n /**\n * @param {Node} oldNode root node to merge content into\n * @param {Node} newContent new content to merge\n * @param {MorphContext} ctx the merge context\n * @returns {Node | null} the element that ended up in the DOM\n */\n function morphNode(oldNode, newContent, ctx) {\n if (ctx.ignoreActive && oldNode === document.activeElement) {\n // don't morph focused element\n return null;\n }\n\n if (ctx.callbacks.beforeNodeMorphed(oldNode, newContent) === false) {\n return oldNode;\n }\n\n if (oldNode instanceof HTMLHeadElement && ctx.head.ignore) ; else if (\n oldNode instanceof HTMLHeadElement &&\n ctx.head.style !== \"morph\"\n ) {\n // ok to cast: if newContent wasn't also a , it would've got caught in the `!isSoftMatch` branch above\n handleHeadElement(\n oldNode,\n /** @type {HTMLHeadElement} */ (newContent),\n ctx,\n );\n } else {\n morphAttributes(oldNode, newContent, ctx);\n if (!ignoreValueOfActiveElement(oldNode, ctx)) {\n // @ts-ignore newContent can be a node here because .firstChild will be null\n morphChildren(ctx, oldNode, newContent);\n }\n }\n ctx.callbacks.afterNodeMorphed(oldNode, newContent);\n return oldNode;\n }\n\n /**\n * syncs the oldNode to the newNode, copying over all attributes and\n * inner element state from the newNode to the oldNode\n *\n * @param {Node} oldNode the node to copy attributes & state to\n * @param {Node} newNode the node to copy attributes & state from\n * @param {MorphContext} ctx the merge context\n */\n function morphAttributes(oldNode, newNode, ctx) {\n let type = newNode.nodeType;\n\n // if is an element type, sync the attributes from the\n // new node into the new node\n if (type === 1 /* element type */) {\n const oldElt = /** @type {Element} */ (oldNode);\n const newElt = /** @type {Element} */ (newNode);\n\n const oldAttributes = oldElt.attributes;\n const newAttributes = newElt.attributes;\n for (const newAttribute of newAttributes) {\n if (ignoreAttribute(newAttribute.name, oldElt, \"update\", ctx)) {\n continue;\n }\n if (oldElt.getAttribute(newAttribute.name) !== newAttribute.value) {\n oldElt.setAttribute(newAttribute.name, newAttribute.value);\n }\n }\n // iterate backwards to avoid skipping over items when a delete occurs\n for (let i = oldAttributes.length - 1; 0 <= i; i--) {\n const oldAttribute = oldAttributes[i];\n\n // toAttributes is a live NamedNodeMap, so iteration+mutation is unsafe\n // e.g. custom element attribute callbacks can remove other attributes\n if (!oldAttribute) continue;\n\n if (!newElt.hasAttribute(oldAttribute.name)) {\n if (ignoreAttribute(oldAttribute.name, oldElt, \"remove\", ctx)) {\n continue;\n }\n oldElt.removeAttribute(oldAttribute.name);\n }\n }\n\n if (!ignoreValueOfActiveElement(oldElt, ctx)) {\n syncInputValue(oldElt, newElt, ctx);\n }\n }\n\n // sync text nodes\n if (type === 8 /* comment */ || type === 3 /* text */) {\n if (oldNode.nodeValue !== newNode.nodeValue) {\n oldNode.nodeValue = newNode.nodeValue;\n }\n }\n }\n\n /**\n * NB: many bothans died to bring us information:\n *\n * https://github.com/patrick-steele-idem/morphdom/blob/master/src/specialElHandlers.js\n * https://github.com/choojs/nanomorph/blob/master/lib/morph.jsL113\n *\n * @param {Element} oldElement the element to sync the input value to\n * @param {Element} newElement the element to sync the input value from\n * @param {MorphContext} ctx the merge context\n */\n function syncInputValue(oldElement, newElement, ctx) {\n if (\n oldElement instanceof HTMLInputElement &&\n newElement instanceof HTMLInputElement &&\n newElement.type !== \"file\"\n ) {\n let newValue = newElement.value;\n let oldValue = oldElement.value;\n\n // sync boolean attributes\n syncBooleanAttribute(oldElement, newElement, \"checked\", ctx);\n syncBooleanAttribute(oldElement, newElement, \"disabled\", ctx);\n\n if (!newElement.hasAttribute(\"value\")) {\n if (!ignoreAttribute(\"value\", oldElement, \"remove\", ctx)) {\n oldElement.value = \"\";\n oldElement.removeAttribute(\"value\");\n }\n } else if (oldValue !== newValue) {\n if (!ignoreAttribute(\"value\", oldElement, \"update\", ctx)) {\n oldElement.setAttribute(\"value\", newValue);\n oldElement.value = newValue;\n }\n }\n // TODO: QUESTION(1cg): this used to only check `newElement` unlike the other branches -- why?\n // did I break something?\n } else if (\n oldElement instanceof HTMLOptionElement &&\n newElement instanceof HTMLOptionElement\n ) {\n syncBooleanAttribute(oldElement, newElement, \"selected\", ctx);\n } else if (\n oldElement instanceof HTMLTextAreaElement &&\n newElement instanceof HTMLTextAreaElement\n ) {\n let newValue = newElement.value;\n let oldValue = oldElement.value;\n if (ignoreAttribute(\"value\", oldElement, \"update\", ctx)) {\n return;\n }\n if (newValue !== oldValue) {\n oldElement.value = newValue;\n }\n if (\n oldElement.firstChild &&\n oldElement.firstChild.nodeValue !== newValue\n ) {\n oldElement.firstChild.nodeValue = newValue;\n }\n }\n }\n\n /**\n * @param {Element} oldElement element to write the value to\n * @param {Element} newElement element to read the value from\n * @param {string} attributeName the attribute name\n * @param {MorphContext} ctx the merge context\n */\n function syncBooleanAttribute(oldElement, newElement, attributeName, ctx) {\n // @ts-ignore this function is only used on boolean attrs that are reflected as dom properties\n const newLiveValue = newElement[attributeName],\n // @ts-ignore ditto\n oldLiveValue = oldElement[attributeName];\n if (newLiveValue !== oldLiveValue) {\n const ignoreUpdate = ignoreAttribute(\n attributeName,\n oldElement,\n \"update\",\n ctx,\n );\n if (!ignoreUpdate) {\n // update attribute's associated DOM property\n // @ts-ignore this function is only used on boolean attrs that are reflected as dom properties\n oldElement[attributeName] = newElement[attributeName];\n }\n if (newLiveValue) {\n if (!ignoreUpdate) {\n // https://developer.mozilla.org/en-US/docs/Glossary/Boolean/HTML\n // this is the correct way to set a boolean attribute to \"true\"\n oldElement.setAttribute(attributeName, \"\");\n }\n } else {\n if (!ignoreAttribute(attributeName, oldElement, \"remove\", ctx)) {\n oldElement.removeAttribute(attributeName);\n }\n }\n }\n }\n\n /**\n * @param {string} attr the attribute to be mutated\n * @param {Element} element the element that is going to be updated\n * @param {\"update\" | \"remove\"} updateType\n * @param {MorphContext} ctx the merge context\n * @returns {boolean} true if the attribute should be ignored, false otherwise\n */\n function ignoreAttribute(attr, element, updateType, ctx) {\n if (\n attr === \"value\" &&\n ctx.ignoreActiveValue &&\n element === document.activeElement\n ) {\n return true;\n }\n return (\n ctx.callbacks.beforeAttributeUpdated(attr, element, updateType) ===\n false\n );\n }\n\n /**\n * @param {Node} possibleActiveElement\n * @param {MorphContext} ctx\n * @returns {boolean}\n */\n function ignoreValueOfActiveElement(possibleActiveElement, ctx) {\n return (\n !!ctx.ignoreActiveValue &&\n possibleActiveElement === document.activeElement &&\n possibleActiveElement !== document.body\n );\n }\n\n return morphNode;\n })();\n\n //=============================================================================\n // Head Management Functions\n //=============================================================================\n /**\n * @param {MorphContext} ctx\n * @param {Element} oldNode\n * @param {Element} newNode\n * @param {function} callback\n * @returns {Node[] | Promise}\n */\n function withHeadBlocking(ctx, oldNode, newNode, callback) {\n if (ctx.head.block) {\n const oldHead = oldNode.querySelector(\"head\");\n const newHead = newNode.querySelector(\"head\");\n if (oldHead && newHead) {\n const promises = handleHeadElement(oldHead, newHead, ctx);\n // when head promises resolve, proceed ignoring the head tag\n return Promise.all(promises).then(() => {\n const newCtx = Object.assign(ctx, {\n head: {\n block: false,\n ignore: true,\n },\n });\n return callback(newCtx);\n });\n }\n }\n // just proceed if we not head blocking\n return callback(ctx);\n }\n\n /**\n * The HEAD tag can be handled specially, either w/ a 'merge' or 'append' style\n *\n * @param {Element} oldHead\n * @param {Element} newHead\n * @param {MorphContext} ctx\n * @returns {Promise[]}\n */\n function handleHeadElement(oldHead, newHead, ctx) {\n let added = [];\n let removed = [];\n let preserved = [];\n let nodesToAppend = [];\n\n // put all new head elements into a Map, by their outerHTML\n let srcToNewHeadNodes = new Map();\n for (const newHeadChild of newHead.children) {\n srcToNewHeadNodes.set(newHeadChild.outerHTML, newHeadChild);\n }\n\n // for each elt in the current head\n for (const currentHeadElt of oldHead.children) {\n // If the current head element is in the map\n let inNewContent = srcToNewHeadNodes.has(currentHeadElt.outerHTML);\n let isReAppended = ctx.head.shouldReAppend(currentHeadElt);\n let isPreserved = ctx.head.shouldPreserve(currentHeadElt);\n if (inNewContent || isPreserved) {\n if (isReAppended) {\n // remove the current version and let the new version replace it and re-execute\n removed.push(currentHeadElt);\n } else {\n // this element already exists and should not be re-appended, so remove it from\n // the new content map, preserving it in the DOM\n srcToNewHeadNodes.delete(currentHeadElt.outerHTML);\n preserved.push(currentHeadElt);\n }\n } else {\n if (ctx.head.style === \"append\") {\n // we are appending and this existing element is not new content\n // so if and only if it is marked for re-append do we do anything\n if (isReAppended) {\n removed.push(currentHeadElt);\n nodesToAppend.push(currentHeadElt);\n }\n } else {\n // if this is a merge, we remove this content since it is not in the new head\n if (ctx.head.shouldRemove(currentHeadElt) !== false) {\n removed.push(currentHeadElt);\n }\n }\n }\n }\n\n // Push the remaining new head elements in the Map into the\n // nodes to append to the head tag\n nodesToAppend.push(...srcToNewHeadNodes.values());\n\n let promises = [];\n for (const newNode of nodesToAppend) {\n // TODO: This could theoretically be null, based on type\n let newElt = /** @type {ChildNode} */ (\n document.createRange().createContextualFragment(newNode.outerHTML)\n .firstChild\n );\n if (ctx.callbacks.beforeNodeAdded(newElt) !== false) {\n if (\n (\"href\" in newElt && newElt.href) ||\n (\"src\" in newElt && newElt.src)\n ) {\n /** @type {(result?: any) => void} */ let resolve;\n let promise = new Promise(function (_resolve) {\n resolve = _resolve;\n });\n newElt.addEventListener(\"load\", function () {\n resolve();\n });\n promises.push(promise);\n }\n oldHead.appendChild(newElt);\n ctx.callbacks.afterNodeAdded(newElt);\n added.push(newElt);\n }\n }\n\n // remove all removed elements, after we have appended the new elements to avoid\n // additional network requests for things like style sheets\n for (const removedElement of removed) {\n if (ctx.callbacks.beforeNodeRemoved(removedElement) !== false) {\n oldHead.removeChild(removedElement);\n ctx.callbacks.afterNodeRemoved(removedElement);\n }\n }\n\n ctx.head.afterHeadMorphed(oldHead, {\n added: added,\n kept: preserved,\n removed: removed,\n });\n return promises;\n }\n\n //=============================================================================\n // Create Morph Context Functions\n //=============================================================================\n const createMorphContext = (function () {\n /**\n *\n * @param {Element} oldNode\n * @param {Element} newContent\n * @param {Config} config\n * @returns {MorphContext}\n */\n function createMorphContext(oldNode, newContent, config) {\n const { persistentIds, idMap } = createIdMaps(oldNode, newContent);\n\n const mergedConfig = mergeDefaults(config);\n const morphStyle = mergedConfig.morphStyle || \"outerHTML\";\n if (![\"innerHTML\", \"outerHTML\"].includes(morphStyle)) {\n throw `Do not understand how to morph style ${morphStyle}`;\n }\n\n return {\n target: oldNode,\n newContent: newContent,\n config: mergedConfig,\n morphStyle: morphStyle,\n ignoreActive: mergedConfig.ignoreActive,\n ignoreActiveValue: mergedConfig.ignoreActiveValue,\n restoreFocus: mergedConfig.restoreFocus,\n idMap: idMap,\n persistentIds: persistentIds,\n pantry: createPantry(),\n activeElementAndParents: createActiveElementAndParents(oldNode),\n callbacks: mergedConfig.callbacks,\n head: mergedConfig.head,\n };\n }\n\n /**\n * Deep merges the config object and the Idiomorph.defaults object to\n * produce a final configuration object\n * @param {Config} config\n * @returns {ConfigInternal}\n */\n function mergeDefaults(config) {\n let finalConfig = Object.assign({}, defaults);\n\n // copy top level stuff into final config\n Object.assign(finalConfig, config);\n\n // copy callbacks into final config (do this to deep merge the callbacks)\n finalConfig.callbacks = Object.assign(\n {},\n defaults.callbacks,\n config.callbacks,\n );\n\n // copy head config into final config (do this to deep merge the head)\n finalConfig.head = Object.assign({}, defaults.head, config.head);\n\n return finalConfig;\n }\n\n /**\n * @returns {HTMLDivElement}\n */\n function createPantry() {\n const pantry = document.createElement(\"div\");\n pantry.hidden = true;\n document.body.insertAdjacentElement(\"afterend\", pantry);\n return pantry;\n }\n\n /**\n * @param {Element} oldNode\n * @returns {Element[]}\n */\n function createActiveElementAndParents(oldNode) {\n /** @type {Element[]} */\n let activeElementAndParents = [];\n let elt = document.activeElement;\n if (elt?.tagName !== \"BODY\" && oldNode.contains(elt)) {\n while (elt) {\n activeElementAndParents.push(elt);\n if (elt === oldNode) break;\n elt = elt.parentElement;\n }\n }\n return activeElementAndParents;\n }\n\n /**\n * Returns all elements with an ID contained within the root element and its descendants\n *\n * @param {Element} root\n * @returns {Element[]}\n */\n function findIdElements(root) {\n let elements = Array.from(root.querySelectorAll(\"[id]\"));\n // root could be a document fragment which doesn't have `getAttribute`\n if (root.getAttribute?.(\"id\")) {\n elements.push(root);\n }\n return elements;\n }\n\n /**\n * A bottom-up algorithm that populates a map of Element -> IdSet.\n * The idSet for a given element is the set of all IDs contained within its subtree.\n * As an optimzation, we filter these IDs through the given list of persistent IDs,\n * because we don't need to bother considering IDed elements that won't be in the new content.\n *\n * @param {Map>} idMap\n * @param {Set} persistentIds\n * @param {Element} root\n * @param {Element[]} elements\n */\n function populateIdMapWithTree(idMap, persistentIds, root, elements) {\n for (const elt of elements) {\n // we can pretend id is non-null String, because the .has line will reject it immediately if not\n const id = /** @type {String} */ (elt.getAttribute(\"id\"));\n if (persistentIds.has(id)) {\n /** @type {Element|null} */\n let current = elt;\n // walk up the parent hierarchy of that element, adding the id\n // of element to the parent's id set\n while (current) {\n let idSet = idMap.get(current);\n // if the id set doesn't exist, create it and insert it in the map\n if (idSet == null) {\n idSet = new Set();\n idMap.set(current, idSet);\n }\n idSet.add(id);\n\n if (current === root) break;\n current = current.parentElement;\n }\n }\n }\n }\n\n /**\n * This function computes a map of nodes to all ids contained within that node (inclusive of the\n * node). This map can be used to ask if two nodes have intersecting sets of ids, which allows\n * for a looser definition of \"matching\" than tradition id matching, and allows child nodes\n * to contribute to a parent nodes matching.\n *\n * @param {Element} oldContent the old content that will be morphed\n * @param {Element} newContent the new content to morph to\n * @returns {IdSets}\n */\n function createIdMaps(oldContent, newContent) {\n const oldIdElements = findIdElements(oldContent);\n const newIdElements = findIdElements(newContent);\n\n const persistentIds = createPersistentIds(oldIdElements, newIdElements);\n\n /** @type {Map>} */\n let idMap = new Map();\n populateIdMapWithTree(idMap, persistentIds, oldContent, oldIdElements);\n\n /** @ts-ignore - if newContent is a duck-typed parent, pass its single child node as the root to halt upwards iteration */\n const newRoot = newContent.__idiomorphRoot || newContent;\n populateIdMapWithTree(idMap, persistentIds, newRoot, newIdElements);\n\n return { persistentIds, idMap };\n }\n\n /**\n * This function computes the set of ids that persist between the two contents excluding duplicates\n *\n * @param {Element[]} oldIdElements\n * @param {Element[]} newIdElements\n * @returns {Set}\n */\n function createPersistentIds(oldIdElements, newIdElements) {\n let duplicateIds = new Set();\n\n /** @type {Map} */\n let oldIdTagNameMap = new Map();\n for (const { id, tagName } of oldIdElements) {\n if (oldIdTagNameMap.has(id)) {\n duplicateIds.add(id);\n } else {\n oldIdTagNameMap.set(id, tagName);\n }\n }\n\n let persistentIds = new Set();\n for (const { id, tagName } of newIdElements) {\n if (persistentIds.has(id)) {\n duplicateIds.add(id);\n } else if (oldIdTagNameMap.get(id) === tagName) {\n persistentIds.add(id);\n }\n // skip if tag types mismatch because its not possible to morph one tag into another\n }\n\n for (const id of duplicateIds) {\n persistentIds.delete(id);\n }\n return persistentIds;\n }\n\n return createMorphContext;\n })();\n\n //=============================================================================\n // HTML Normalization Functions\n //=============================================================================\n const { normalizeElement, normalizeParent } = (function () {\n /** @type {WeakSet} */\n const generatedByIdiomorph = new WeakSet();\n\n /**\n *\n * @param {Element | Document} content\n * @returns {Element}\n */\n function normalizeElement(content) {\n if (content instanceof Document) {\n return content.documentElement;\n } else {\n return content;\n }\n }\n\n /**\n *\n * @param {null | string | Node | HTMLCollection | Node[] | Document & {generatedByIdiomorph:boolean}} newContent\n * @returns {Element}\n */\n function normalizeParent(newContent) {\n if (newContent == null) {\n return document.createElement(\"div\"); // dummy parent element\n } else if (typeof newContent === \"string\") {\n return normalizeParent(parseContent(newContent));\n } else if (\n generatedByIdiomorph.has(/** @type {Element} */ (newContent))\n ) {\n // the template tag created by idiomorph parsing can serve as a dummy parent\n return /** @type {Element} */ (newContent);\n } else if (newContent instanceof Node) {\n if (newContent.parentNode) {\n // we can't use the parent directly because newContent may have siblings\n // that we don't want in the morph, and reparenting might be expensive (TODO is it?),\n // so instead we create a fake parent node that only sees a slice of its children.\n /** @type {Element} */\n return /** @type {any} */ (new SlicedParentNode(newContent));\n } else {\n // a single node is added as a child to a dummy parent\n const dummyParent = document.createElement(\"div\");\n dummyParent.append(newContent);\n return dummyParent;\n }\n } else {\n // all nodes in the array or HTMLElement collection are consolidated under\n // a single dummy parent element\n const dummyParent = document.createElement(\"div\");\n for (const elt of [...newContent]) {\n dummyParent.append(elt);\n }\n return dummyParent;\n }\n }\n\n /**\n * A fake duck-typed parent element to wrap a single node, without actually reparenting it.\n * This is useful because the node may have siblings that we don't want in the morph, and it may also be moved\n * or replaced with one or more elements during the morph. This class effectively allows us a window into\n * a slice of a node's children.\n * \"If it walks like a duck, and quacks like a duck, then it must be a duck!\" -- James Whitcomb Riley (1849\u20131916)\n */\n class SlicedParentNode {\n /** @param {Node} node */\n constructor(node) {\n this.originalNode = node;\n this.realParentNode = /** @type {Element} */ (node.parentNode);\n this.previousSibling = node.previousSibling;\n this.nextSibling = node.nextSibling;\n }\n\n /** @returns {Node[]} */\n get childNodes() {\n // return slice of realParent's current childNodes, based on previousSibling and nextSibling\n const nodes = [];\n let cursor = this.previousSibling\n ? this.previousSibling.nextSibling\n : this.realParentNode.firstChild;\n while (cursor && cursor != this.nextSibling) {\n nodes.push(cursor);\n cursor = cursor.nextSibling;\n }\n return nodes;\n }\n\n /**\n * @param {string} selector\n * @returns {Element[]}\n */\n querySelectorAll(selector) {\n return this.childNodes.reduce((results, node) => {\n if (node instanceof Element) {\n if (node.matches(selector)) results.push(node);\n const nodeList = node.querySelectorAll(selector);\n for (let i = 0; i < nodeList.length; i++) {\n results.push(nodeList[i]);\n }\n }\n return results;\n }, /** @type {Element[]} */ ([]));\n }\n\n /**\n * @param {Node} node\n * @param {Node} referenceNode\n * @returns {Node}\n */\n insertBefore(node, referenceNode) {\n return this.realParentNode.insertBefore(node, referenceNode);\n }\n\n /**\n * @param {Node} node\n * @param {Node} referenceNode\n * @returns {Node}\n */\n moveBefore(node, referenceNode) {\n // @ts-ignore - use new moveBefore feature\n return this.realParentNode.moveBefore(node, referenceNode);\n }\n\n /**\n * for later use with populateIdMapWithTree to halt upwards iteration\n * @returns {Node}\n */\n get __idiomorphRoot() {\n return this.originalNode;\n }\n }\n\n /**\n *\n * @param {string} newContent\n * @returns {Node | null | DocumentFragment}\n */\n function parseContent(newContent) {\n let parser = new DOMParser();\n\n // remove svgs to avoid false-positive matches on head, etc.\n let contentWithSvgsRemoved = newContent.replace(\n /]*>|>)([\\s\\S]*?)<\\/svg>/gim,\n \"\",\n );\n\n // if the newContent contains a html, head or body tag, we can simply parse it w/o wrapping\n if (\n contentWithSvgsRemoved.match(/<\\/html>/) ||\n contentWithSvgsRemoved.match(/<\\/head>/) ||\n contentWithSvgsRemoved.match(/<\\/body>/)\n ) {\n let content = parser.parseFromString(newContent, \"text/html\");\n // if it is a full HTML document, return the document itself as the parent container\n if (contentWithSvgsRemoved.match(/<\\/html>/)) {\n generatedByIdiomorph.add(content);\n return content;\n } else {\n // otherwise return the html element as the parent container\n let htmlElement = content.firstChild;\n if (htmlElement) {\n generatedByIdiomorph.add(htmlElement);\n }\n return htmlElement;\n }\n } else {\n // if it is partial HTML, wrap it in a template tag to provide a parent element and also to help\n // deal with touchy tags like tr, tbody, etc.\n let responseDoc = parser.parseFromString(\n \"\",\n \"text/html\",\n );\n let content = /** @type {HTMLTemplateElement} */ (\n responseDoc.body.querySelector(\"template\")\n ).content;\n generatedByIdiomorph.add(content);\n return content;\n }\n }\n\n return { normalizeElement, normalizeParent };\n })();\n\n //=============================================================================\n // This is what ends up becoming the Idiomorph global object\n //=============================================================================\n return {\n morph,\n defaults,\n };\n})();\n\n/**\n * Morph the state of the currentElement based on the attributes and contents of\n * the newElement. Morphing may dispatch turbo:before-morph-element,\n * turbo:before-morph-attribute, and turbo:morph-element events.\n *\n * @param currentElement Element destination of morphing changes\n * @param newElement Element source of morphing changes\n */\nfunction morphElements(currentElement, newElement, { callbacks, ...options } = {}) {\n Idiomorph.morph(currentElement, newElement, {\n ...options,\n callbacks: new DefaultIdiomorphCallbacks(callbacks)\n });\n}\n\n/**\n * Morph the child elements of the currentElement based on the child elements of\n * the newElement. Morphing children may dispatch turbo:before-morph-element,\n * turbo:before-morph-attribute, and turbo:morph-element events.\n *\n * @param currentElement Element destination of morphing children changes\n * @param newElement Element source of morphing children changes\n */\nfunction morphChildren(currentElement, newElement, options = {}) {\n morphElements(currentElement, newElement.childNodes, {\n ...options,\n morphStyle: \"innerHTML\"\n });\n}\n\nfunction shouldRefreshFrameWithMorphing(currentFrame, newFrame) {\n return currentFrame instanceof FrameElement &&\n currentFrame.shouldReloadWithMorph && (!newFrame || areFramesCompatibleForRefreshing(currentFrame, newFrame)) &&\n !currentFrame.closest(\"[data-turbo-permanent]\")\n}\n\nfunction areFramesCompatibleForRefreshing(currentFrame, newFrame) {\n // newFrame cannot yet be an instance of FrameElement because custom\n // elements don't get initialized until they're attached to the DOM, so\n // test its Element#nodeName instead\n return newFrame instanceof Element && newFrame.nodeName === \"TURBO-FRAME\" && currentFrame.id === newFrame.id &&\n (!newFrame.getAttribute(\"src\") || urlsAreEqual(currentFrame.src, newFrame.getAttribute(\"src\")))\n}\n\nfunction closestFrameReloadableWithMorphing(node) {\n return node.parentElement.closest(\"turbo-frame[src][refresh=morph]\")\n}\n\nclass DefaultIdiomorphCallbacks {\n #beforeNodeMorphed\n\n constructor({ beforeNodeMorphed } = {}) {\n this.#beforeNodeMorphed = beforeNodeMorphed || (() => true);\n }\n\n beforeNodeAdded = (node) => {\n return !(node.id && node.hasAttribute(\"data-turbo-permanent\") && document.getElementById(node.id))\n }\n\n beforeNodeMorphed = (currentElement, newElement) => {\n if (currentElement instanceof Element) {\n if (!currentElement.hasAttribute(\"data-turbo-permanent\") && this.#beforeNodeMorphed(currentElement, newElement)) {\n const event = dispatch(\"turbo:before-morph-element\", {\n cancelable: true,\n target: currentElement,\n detail: { currentElement, newElement }\n });\n\n return !event.defaultPrevented\n } else {\n return false\n }\n }\n }\n\n beforeAttributeUpdated = (attributeName, target, mutationType) => {\n const event = dispatch(\"turbo:before-morph-attribute\", {\n cancelable: true,\n target,\n detail: { attributeName, mutationType }\n });\n\n return !event.defaultPrevented\n }\n\n beforeNodeRemoved = (node) => {\n return this.beforeNodeMorphed(node)\n }\n\n afterNodeMorphed = (currentElement, newElement) => {\n if (currentElement instanceof Element) {\n dispatch(\"turbo:morph-element\", {\n target: currentElement,\n detail: { currentElement, newElement }\n });\n }\n }\n}\n\nclass MorphingFrameRenderer extends FrameRenderer {\n static renderElement(currentElement, newElement) {\n dispatch(\"turbo:before-frame-morph\", {\n target: currentElement,\n detail: { currentElement, newElement }\n });\n\n morphChildren(currentElement, newElement, {\n callbacks: {\n beforeNodeMorphed: (node, newNode) => {\n if (\n shouldRefreshFrameWithMorphing(node, newNode) &&\n closestFrameReloadableWithMorphing(node) === currentElement\n ) {\n node.reload();\n return false\n }\n return true\n }\n }\n });\n }\n\n async preservingPermanentElements(callback) {\n return await callback()\n }\n}\n\nclass ProgressBar {\n static animationDuration = 300 /*ms*/\n\n static get defaultCSS() {\n return unindent`\n .turbo-progress-bar {\n position: fixed;\n display: block;\n top: 0;\n left: 0;\n height: 3px;\n background: #0076ff;\n z-index: 2147483647;\n transition:\n width ${ProgressBar.animationDuration}ms ease-out,\n opacity ${ProgressBar.animationDuration / 2}ms ${ProgressBar.animationDuration / 2}ms ease-in;\n transform: translate3d(0, 0, 0);\n }\n `\n }\n\n hiding = false\n value = 0\n visible = false\n\n constructor() {\n this.stylesheetElement = this.createStylesheetElement();\n this.progressElement = this.createProgressElement();\n this.installStylesheetElement();\n this.setValue(0);\n }\n\n show() {\n if (!this.visible) {\n this.visible = true;\n this.installProgressElement();\n this.startTrickling();\n }\n }\n\n hide() {\n if (this.visible && !this.hiding) {\n this.hiding = true;\n this.fadeProgressElement(() => {\n this.uninstallProgressElement();\n this.stopTrickling();\n this.visible = false;\n this.hiding = false;\n });\n }\n }\n\n setValue(value) {\n this.value = value;\n this.refresh();\n }\n\n // Private\n\n installStylesheetElement() {\n document.head.insertBefore(this.stylesheetElement, document.head.firstChild);\n }\n\n installProgressElement() {\n this.progressElement.style.width = \"0\";\n this.progressElement.style.opacity = \"1\";\n document.documentElement.insertBefore(this.progressElement, document.body);\n this.refresh();\n }\n\n fadeProgressElement(callback) {\n this.progressElement.style.opacity = \"0\";\n setTimeout(callback, ProgressBar.animationDuration * 1.5);\n }\n\n uninstallProgressElement() {\n if (this.progressElement.parentNode) {\n document.documentElement.removeChild(this.progressElement);\n }\n }\n\n startTrickling() {\n if (!this.trickleInterval) {\n this.trickleInterval = window.setInterval(this.trickle, ProgressBar.animationDuration);\n }\n }\n\n stopTrickling() {\n window.clearInterval(this.trickleInterval);\n delete this.trickleInterval;\n }\n\n trickle = () => {\n this.setValue(this.value + Math.random() / 100);\n }\n\n refresh() {\n requestAnimationFrame(() => {\n this.progressElement.style.width = `${10 + this.value * 90}%`;\n });\n }\n\n createStylesheetElement() {\n const element = document.createElement(\"style\");\n element.type = \"text/css\";\n element.textContent = ProgressBar.defaultCSS;\n const cspNonce = getCspNonce();\n if (cspNonce) {\n element.nonce = cspNonce;\n }\n return element\n }\n\n createProgressElement() {\n const element = document.createElement(\"div\");\n element.className = \"turbo-progress-bar\";\n return element\n }\n}\n\nclass HeadSnapshot extends Snapshot {\n detailsByOuterHTML = this.children\n .filter((element) => !elementIsNoscript(element))\n .map((element) => elementWithoutNonce(element))\n .reduce((result, element) => {\n const { outerHTML } = element;\n const details =\n outerHTML in result\n ? result[outerHTML]\n : {\n type: elementType(element),\n tracked: elementIsTracked(element),\n elements: []\n };\n return {\n ...result,\n [outerHTML]: {\n ...details,\n elements: [...details.elements, element]\n }\n }\n }, {})\n\n get trackedElementSignature() {\n return Object.keys(this.detailsByOuterHTML)\n .filter((outerHTML) => this.detailsByOuterHTML[outerHTML].tracked)\n .join(\"\")\n }\n\n getScriptElementsNotInSnapshot(snapshot) {\n return this.getElementsMatchingTypeNotInSnapshot(\"script\", snapshot)\n }\n\n getStylesheetElementsNotInSnapshot(snapshot) {\n return this.getElementsMatchingTypeNotInSnapshot(\"stylesheet\", snapshot)\n }\n\n getElementsMatchingTypeNotInSnapshot(matchedType, snapshot) {\n return Object.keys(this.detailsByOuterHTML)\n .filter((outerHTML) => !(outerHTML in snapshot.detailsByOuterHTML))\n .map((outerHTML) => this.detailsByOuterHTML[outerHTML])\n .filter(({ type }) => type == matchedType)\n .map(({ elements: [element] }) => element)\n }\n\n get provisionalElements() {\n return Object.keys(this.detailsByOuterHTML).reduce((result, outerHTML) => {\n const { type, tracked, elements } = this.detailsByOuterHTML[outerHTML];\n if (type == null && !tracked) {\n return [...result, ...elements]\n } else if (elements.length > 1) {\n return [...result, ...elements.slice(1)]\n } else {\n return result\n }\n }, [])\n }\n\n getMetaValue(name) {\n const element = this.findMetaElementByName(name);\n return element ? element.getAttribute(\"content\") : null\n }\n\n findMetaElementByName(name) {\n return Object.keys(this.detailsByOuterHTML).reduce((result, outerHTML) => {\n const {\n elements: [element]\n } = this.detailsByOuterHTML[outerHTML];\n return elementIsMetaElementWithName(element, name) ? element : result\n }, undefined | undefined)\n }\n}\n\nfunction elementType(element) {\n if (elementIsScript(element)) {\n return \"script\"\n } else if (elementIsStylesheet(element)) {\n return \"stylesheet\"\n }\n}\n\nfunction elementIsTracked(element) {\n return element.getAttribute(\"data-turbo-track\") == \"reload\"\n}\n\nfunction elementIsScript(element) {\n const tagName = element.localName;\n return tagName == \"script\"\n}\n\nfunction elementIsNoscript(element) {\n const tagName = element.localName;\n return tagName == \"noscript\"\n}\n\nfunction elementIsStylesheet(element) {\n const tagName = element.localName;\n return tagName == \"style\" || (tagName == \"link\" && element.getAttribute(\"rel\") == \"stylesheet\")\n}\n\nfunction elementIsMetaElementWithName(element, name) {\n const tagName = element.localName;\n return tagName == \"meta\" && element.getAttribute(\"name\") == name\n}\n\nfunction elementWithoutNonce(element) {\n if (element.hasAttribute(\"nonce\")) {\n element.setAttribute(\"nonce\", \"\");\n }\n\n return element\n}\n\nclass PageSnapshot extends Snapshot {\n static fromHTMLString(html = \"\") {\n return this.fromDocument(parseHTMLDocument(html))\n }\n\n static fromElement(element) {\n return this.fromDocument(element.ownerDocument)\n }\n\n static fromDocument({ documentElement, body, head }) {\n return new this(documentElement, body, new HeadSnapshot(head))\n }\n\n constructor(documentElement, body, headSnapshot) {\n super(body);\n this.documentElement = documentElement;\n this.headSnapshot = headSnapshot;\n }\n\n clone() {\n const clonedElement = this.element.cloneNode(true);\n\n const selectElements = this.element.querySelectorAll(\"select\");\n const clonedSelectElements = clonedElement.querySelectorAll(\"select\");\n\n for (const [index, source] of selectElements.entries()) {\n const clone = clonedSelectElements[index];\n for (const option of clone.selectedOptions) option.selected = false;\n for (const option of source.selectedOptions) clone.options[option.index].selected = true;\n }\n\n for (const clonedPasswordInput of clonedElement.querySelectorAll('input[type=\"password\"]')) {\n clonedPasswordInput.value = \"\";\n }\n\n for (const clonedNoscriptElement of clonedElement.querySelectorAll(\"noscript\")) {\n clonedNoscriptElement.remove();\n }\n\n return new PageSnapshot(this.documentElement, clonedElement, this.headSnapshot)\n }\n\n get lang() {\n return this.documentElement.getAttribute(\"lang\")\n }\n\n get dir() {\n return this.documentElement.getAttribute(\"dir\")\n }\n\n get headElement() {\n return this.headSnapshot.element\n }\n\n get rootLocation() {\n const root = this.getSetting(\"root\") ?? \"/\";\n return expandURL(root)\n }\n\n get cacheControlValue() {\n return this.getSetting(\"cache-control\")\n }\n\n get isPreviewable() {\n return this.cacheControlValue != \"no-preview\"\n }\n\n get isCacheable() {\n return this.cacheControlValue != \"no-cache\"\n }\n\n get isVisitable() {\n return this.getSetting(\"visit-control\") != \"reload\"\n }\n\n get prefersViewTransitions() {\n const viewTransitionEnabled = this.getSetting(\"view-transition\") === \"true\" || this.headSnapshot.getMetaValue(\"view-transition\") === \"same-origin\";\n return viewTransitionEnabled && !window.matchMedia(\"(prefers-reduced-motion: reduce)\").matches\n }\n\n get refreshMethod() {\n return this.getSetting(\"refresh-method\")\n }\n\n get refreshScroll() {\n return this.getSetting(\"refresh-scroll\")\n }\n\n // Private\n\n getSetting(name) {\n return this.headSnapshot.getMetaValue(`turbo-${name}`)\n }\n}\n\nclass ViewTransitioner {\n #viewTransitionStarted = false\n #lastOperation = Promise.resolve()\n\n renderChange(useViewTransition, render) {\n if (useViewTransition && this.viewTransitionsAvailable && !this.#viewTransitionStarted) {\n this.#viewTransitionStarted = true;\n this.#lastOperation = this.#lastOperation.then(async () => {\n await document.startViewTransition(render).finished;\n });\n } else {\n this.#lastOperation = this.#lastOperation.then(render);\n }\n\n return this.#lastOperation\n }\n\n get viewTransitionsAvailable() {\n return document.startViewTransition\n }\n}\n\nconst defaultOptions = {\n action: \"advance\",\n historyChanged: false,\n visitCachedSnapshot: () => {},\n willRender: true,\n updateHistory: true,\n shouldCacheSnapshot: true,\n acceptsStreamResponse: false,\n refresh: {}\n};\n\nconst TimingMetric = {\n visitStart: \"visitStart\",\n requestStart: \"requestStart\",\n requestEnd: \"requestEnd\",\n visitEnd: \"visitEnd\"\n};\n\nconst VisitState = {\n initialized: \"initialized\",\n started: \"started\",\n canceled: \"canceled\",\n failed: \"failed\",\n completed: \"completed\"\n};\n\nconst SystemStatusCode = {\n networkFailure: 0,\n timeoutFailure: -1,\n contentTypeMismatch: -2\n};\n\nconst Direction = {\n advance: \"forward\",\n restore: \"back\",\n replace: \"none\"\n};\n\nclass Visit {\n identifier = uuid() // Required by turbo-ios\n timingMetrics = {}\n\n followedRedirect = false\n historyChanged = false\n scrolled = false\n shouldCacheSnapshot = true\n acceptsStreamResponse = false\n snapshotCached = false\n state = VisitState.initialized\n viewTransitioner = new ViewTransitioner()\n\n constructor(delegate, location, restorationIdentifier, options = {}) {\n this.delegate = delegate;\n this.location = location;\n this.restorationIdentifier = restorationIdentifier || uuid();\n\n const {\n action,\n historyChanged,\n referrer,\n snapshot,\n snapshotHTML,\n response,\n visitCachedSnapshot,\n willRender,\n updateHistory,\n shouldCacheSnapshot,\n acceptsStreamResponse,\n direction,\n refresh\n } = {\n ...defaultOptions,\n ...options\n };\n this.action = action;\n this.historyChanged = historyChanged;\n this.referrer = referrer;\n this.snapshot = snapshot;\n this.snapshotHTML = snapshotHTML;\n this.response = response;\n this.isPageRefresh = this.view.isPageRefresh(this);\n this.visitCachedSnapshot = visitCachedSnapshot;\n this.willRender = willRender;\n this.updateHistory = updateHistory;\n this.scrolled = !willRender;\n this.shouldCacheSnapshot = shouldCacheSnapshot;\n this.acceptsStreamResponse = acceptsStreamResponse;\n this.direction = direction || Direction[action];\n this.refresh = refresh;\n }\n\n get adapter() {\n return this.delegate.adapter\n }\n\n get view() {\n return this.delegate.view\n }\n\n get history() {\n return this.delegate.history\n }\n\n get restorationData() {\n return this.history.getRestorationDataForIdentifier(this.restorationIdentifier)\n }\n\n start() {\n if (this.state == VisitState.initialized) {\n this.recordTimingMetric(TimingMetric.visitStart);\n this.state = VisitState.started;\n this.adapter.visitStarted(this);\n this.delegate.visitStarted(this);\n }\n }\n\n cancel() {\n if (this.state == VisitState.started) {\n if (this.request) {\n this.request.cancel();\n }\n this.cancelRender();\n this.state = VisitState.canceled;\n }\n }\n\n complete() {\n if (this.state == VisitState.started) {\n this.recordTimingMetric(TimingMetric.visitEnd);\n this.adapter.visitCompleted(this);\n this.state = VisitState.completed;\n this.followRedirect();\n\n if (!this.followedRedirect) {\n this.delegate.visitCompleted(this);\n }\n }\n }\n\n fail() {\n if (this.state == VisitState.started) {\n this.state = VisitState.failed;\n this.adapter.visitFailed(this);\n this.delegate.visitCompleted(this);\n }\n }\n\n changeHistory() {\n if (!this.historyChanged && this.updateHistory) {\n const actionForHistory = this.location.href === this.referrer?.href ? \"replace\" : this.action;\n const method = getHistoryMethodForAction(actionForHistory);\n this.history.update(method, this.location, this.restorationIdentifier);\n this.historyChanged = true;\n }\n }\n\n issueRequest() {\n if (this.hasPreloadedResponse()) {\n this.simulateRequest();\n } else if (this.shouldIssueRequest() && !this.request) {\n this.request = new FetchRequest(this, FetchMethod.get, this.location);\n this.request.perform();\n }\n }\n\n simulateRequest() {\n if (this.response) {\n this.startRequest();\n this.recordResponse();\n this.finishRequest();\n }\n }\n\n startRequest() {\n this.recordTimingMetric(TimingMetric.requestStart);\n this.adapter.visitRequestStarted(this);\n }\n\n recordResponse(response = this.response) {\n this.response = response;\n if (response) {\n const { statusCode } = response;\n if (isSuccessful(statusCode)) {\n this.adapter.visitRequestCompleted(this);\n } else {\n this.adapter.visitRequestFailedWithStatusCode(this, statusCode);\n }\n }\n }\n\n finishRequest() {\n this.recordTimingMetric(TimingMetric.requestEnd);\n this.adapter.visitRequestFinished(this);\n }\n\n loadResponse() {\n if (this.response) {\n const { statusCode, responseHTML } = this.response;\n this.render(async () => {\n if (this.shouldCacheSnapshot) this.cacheSnapshot();\n if (this.view.renderPromise) await this.view.renderPromise;\n\n if (isSuccessful(statusCode) && responseHTML != null) {\n const snapshot = PageSnapshot.fromHTMLString(responseHTML);\n await this.renderPageSnapshot(snapshot, false);\n\n this.adapter.visitRendered(this);\n this.complete();\n } else {\n await this.view.renderError(PageSnapshot.fromHTMLString(responseHTML), this);\n this.adapter.visitRendered(this);\n this.fail();\n }\n });\n }\n }\n\n getCachedSnapshot() {\n const snapshot = this.view.getCachedSnapshotForLocation(this.location) || this.getPreloadedSnapshot();\n\n if (snapshot && (!getAnchor(this.location) || snapshot.hasAnchor(getAnchor(this.location)))) {\n if (this.action == \"restore\" || snapshot.isPreviewable) {\n return snapshot\n }\n }\n }\n\n getPreloadedSnapshot() {\n if (this.snapshotHTML) {\n return PageSnapshot.fromHTMLString(this.snapshotHTML)\n }\n }\n\n hasCachedSnapshot() {\n return this.getCachedSnapshot() != null\n }\n\n loadCachedSnapshot() {\n const snapshot = this.getCachedSnapshot();\n if (snapshot) {\n const isPreview = this.shouldIssueRequest();\n this.render(async () => {\n this.cacheSnapshot();\n if (this.isPageRefresh) {\n this.adapter.visitRendered(this);\n } else {\n if (this.view.renderPromise) await this.view.renderPromise;\n\n await this.renderPageSnapshot(snapshot, isPreview);\n\n this.adapter.visitRendered(this);\n if (!isPreview) {\n this.complete();\n }\n }\n });\n }\n }\n\n followRedirect() {\n if (this.redirectedToLocation && !this.followedRedirect && this.response?.redirected) {\n this.adapter.visitProposedToLocation(this.redirectedToLocation, {\n action: \"replace\",\n response: this.response,\n shouldCacheSnapshot: false,\n willRender: false\n });\n this.followedRedirect = true;\n }\n }\n\n // Fetch request delegate\n\n prepareRequest(request) {\n if (this.acceptsStreamResponse) {\n request.acceptResponseType(StreamMessage.contentType);\n }\n }\n\n requestStarted() {\n this.startRequest();\n }\n\n requestPreventedHandlingResponse(_request, _response) {}\n\n async requestSucceededWithResponse(request, response) {\n const responseHTML = await response.responseHTML;\n const { redirected, statusCode } = response;\n if (responseHTML == undefined) {\n this.recordResponse({\n statusCode: SystemStatusCode.contentTypeMismatch,\n redirected\n });\n } else {\n this.redirectedToLocation = response.redirected ? response.location : undefined;\n this.recordResponse({ statusCode: statusCode, responseHTML, redirected });\n }\n }\n\n async requestFailedWithResponse(request, response) {\n const responseHTML = await response.responseHTML;\n const { redirected, statusCode } = response;\n if (responseHTML == undefined) {\n this.recordResponse({\n statusCode: SystemStatusCode.contentTypeMismatch,\n redirected\n });\n } else {\n this.recordResponse({ statusCode: statusCode, responseHTML, redirected });\n }\n }\n\n requestErrored(_request, _error) {\n this.recordResponse({\n statusCode: SystemStatusCode.networkFailure,\n redirected: false\n });\n }\n\n requestFinished() {\n this.finishRequest();\n }\n\n // Scrolling\n\n performScroll() {\n if (!this.scrolled && !this.view.forceReloaded && !this.view.shouldPreserveScrollPosition(this)) {\n if (this.action == \"restore\") {\n this.scrollToRestoredPosition() || this.scrollToAnchor() || this.view.scrollToTop();\n } else {\n this.scrollToAnchor() || this.view.scrollToTop();\n }\n\n this.scrolled = true;\n }\n }\n\n scrollToRestoredPosition() {\n const { scrollPosition } = this.restorationData;\n if (scrollPosition) {\n this.view.scrollToPosition(scrollPosition);\n return true\n }\n }\n\n scrollToAnchor() {\n const anchor = getAnchor(this.location);\n if (anchor != null) {\n this.view.scrollToAnchor(anchor);\n return true\n }\n }\n\n // Instrumentation\n\n recordTimingMetric(metric) {\n this.timingMetrics[metric] = new Date().getTime();\n }\n\n getTimingMetrics() {\n return { ...this.timingMetrics }\n }\n\n // Private\n\n hasPreloadedResponse() {\n return typeof this.response == \"object\"\n }\n\n shouldIssueRequest() {\n if (this.action == \"restore\") {\n return !this.hasCachedSnapshot()\n } else {\n return this.willRender\n }\n }\n\n cacheSnapshot() {\n if (!this.snapshotCached) {\n this.view.cacheSnapshot(this.snapshot).then((snapshot) => snapshot && this.visitCachedSnapshot(snapshot));\n this.snapshotCached = true;\n }\n }\n\n async render(callback) {\n this.cancelRender();\n await new Promise((resolve) => {\n this.frame =\n document.visibilityState === \"hidden\" ? setTimeout(() => resolve(), 0) : requestAnimationFrame(() => resolve());\n });\n await callback();\n delete this.frame;\n }\n\n async renderPageSnapshot(snapshot, isPreview) {\n await this.viewTransitioner.renderChange(this.view.shouldTransitionTo(snapshot), async () => {\n await this.view.renderPage(snapshot, isPreview, this.willRender, this);\n this.performScroll();\n });\n }\n\n cancelRender() {\n if (this.frame) {\n cancelAnimationFrame(this.frame);\n delete this.frame;\n }\n }\n}\n\nfunction isSuccessful(statusCode) {\n return statusCode >= 200 && statusCode < 300\n}\n\nclass BrowserAdapter {\n progressBar = new ProgressBar()\n\n constructor(session) {\n this.session = session;\n }\n\n visitProposedToLocation(location, options) {\n if (locationIsVisitable(location, this.navigator.rootLocation)) {\n this.navigator.startVisit(location, options?.restorationIdentifier || uuid(), options);\n } else {\n window.location.href = location.toString();\n }\n }\n\n visitStarted(visit) {\n this.location = visit.location;\n this.redirectedToLocation = null;\n\n visit.loadCachedSnapshot();\n visit.issueRequest();\n }\n\n visitRequestStarted(visit) {\n this.progressBar.setValue(0);\n if (visit.hasCachedSnapshot() || visit.action != \"restore\") {\n this.showVisitProgressBarAfterDelay();\n } else {\n this.showProgressBar();\n }\n }\n\n visitRequestCompleted(visit) {\n visit.loadResponse();\n\n if (visit.response.redirected) {\n this.redirectedToLocation = visit.redirectedToLocation;\n }\n }\n\n visitRequestFailedWithStatusCode(visit, statusCode) {\n switch (statusCode) {\n case SystemStatusCode.networkFailure:\n case SystemStatusCode.timeoutFailure:\n case SystemStatusCode.contentTypeMismatch:\n return this.reload({\n reason: \"request_failed\",\n context: {\n statusCode\n }\n })\n default:\n return visit.loadResponse()\n }\n }\n\n visitRequestFinished(_visit) {}\n\n visitCompleted(_visit) {\n this.progressBar.setValue(1);\n this.hideVisitProgressBar();\n }\n\n pageInvalidated(reason) {\n this.reload(reason);\n }\n\n visitFailed(_visit) {\n this.progressBar.setValue(1);\n this.hideVisitProgressBar();\n }\n\n visitRendered(_visit) {}\n\n // Link prefetching\n\n linkPrefetchingIsEnabledForLocation(location) {\n return true\n }\n\n // Form Submission Delegate\n\n formSubmissionStarted(_formSubmission) {\n this.progressBar.setValue(0);\n this.showFormProgressBarAfterDelay();\n }\n\n formSubmissionFinished(_formSubmission) {\n this.progressBar.setValue(1);\n this.hideFormProgressBar();\n }\n\n // Private\n\n showVisitProgressBarAfterDelay() {\n this.visitProgressBarTimeout = window.setTimeout(this.showProgressBar, this.session.progressBarDelay);\n }\n\n hideVisitProgressBar() {\n this.progressBar.hide();\n if (this.visitProgressBarTimeout != null) {\n window.clearTimeout(this.visitProgressBarTimeout);\n delete this.visitProgressBarTimeout;\n }\n }\n\n showFormProgressBarAfterDelay() {\n if (this.formProgressBarTimeout == null) {\n this.formProgressBarTimeout = window.setTimeout(this.showProgressBar, this.session.progressBarDelay);\n }\n }\n\n hideFormProgressBar() {\n this.progressBar.hide();\n if (this.formProgressBarTimeout != null) {\n window.clearTimeout(this.formProgressBarTimeout);\n delete this.formProgressBarTimeout;\n }\n }\n\n showProgressBar = () => {\n this.progressBar.show();\n }\n\n reload(reason) {\n dispatch(\"turbo:reload\", { detail: reason });\n\n window.location.href = (this.redirectedToLocation || this.location)?.toString() || window.location.href;\n }\n\n get navigator() {\n return this.session.navigator\n }\n}\n\nclass CacheObserver {\n selector = \"[data-turbo-temporary]\"\n\n started = false\n\n start() {\n if (!this.started) {\n this.started = true;\n addEventListener(\"turbo:before-cache\", this.removeTemporaryElements, false);\n }\n }\n\n stop() {\n if (this.started) {\n this.started = false;\n removeEventListener(\"turbo:before-cache\", this.removeTemporaryElements, false);\n }\n }\n\n removeTemporaryElements = (_event) => {\n for (const element of this.temporaryElements) {\n element.remove();\n }\n }\n\n get temporaryElements() {\n return [...document.querySelectorAll(this.selector)]\n }\n}\n\nclass FrameRedirector {\n constructor(session, element) {\n this.session = session;\n this.element = element;\n this.linkInterceptor = new LinkInterceptor(this, element);\n this.formSubmitObserver = new FormSubmitObserver(this, element);\n }\n\n start() {\n this.linkInterceptor.start();\n this.formSubmitObserver.start();\n }\n\n stop() {\n this.linkInterceptor.stop();\n this.formSubmitObserver.stop();\n }\n\n // Link interceptor delegate\n\n shouldInterceptLinkClick(element, _location, _event) {\n return this.#shouldRedirect(element)\n }\n\n linkClickIntercepted(element, url, event) {\n const frame = this.#findFrameElement(element);\n if (frame) {\n frame.delegate.linkClickIntercepted(element, url, event);\n }\n }\n\n // Form submit observer delegate\n\n willSubmitForm(element, submitter) {\n return (\n element.closest(\"turbo-frame\") == null &&\n this.#shouldSubmit(element, submitter) &&\n this.#shouldRedirect(element, submitter)\n )\n }\n\n formSubmitted(element, submitter) {\n const frame = this.#findFrameElement(element, submitter);\n if (frame) {\n frame.delegate.formSubmitted(element, submitter);\n }\n }\n\n #shouldSubmit(form, submitter) {\n const action = getAction$1(form, submitter);\n const meta = this.element.ownerDocument.querySelector(`meta[name=\"turbo-root\"]`);\n const rootLocation = expandURL(meta?.content ?? \"/\");\n\n return this.#shouldRedirect(form, submitter) && locationIsVisitable(action, rootLocation)\n }\n\n #shouldRedirect(element, submitter) {\n const isNavigatable =\n element instanceof HTMLFormElement\n ? this.session.submissionIsNavigatable(element, submitter)\n : this.session.elementIsNavigatable(element);\n\n if (isNavigatable) {\n const frame = this.#findFrameElement(element, submitter);\n return frame ? frame != element.closest(\"turbo-frame\") : false\n } else {\n return false\n }\n }\n\n #findFrameElement(element, submitter) {\n const id = submitter?.getAttribute(\"data-turbo-frame\") || element.getAttribute(\"data-turbo-frame\");\n if (id && id != \"_top\") {\n const frame = this.element.querySelector(`#${id}:not([disabled])`);\n if (frame instanceof FrameElement) {\n return frame\n }\n }\n }\n}\n\nclass History {\n location\n restorationIdentifier = uuid()\n restorationData = {}\n started = false\n currentIndex = 0\n\n constructor(delegate) {\n this.delegate = delegate;\n }\n\n start() {\n if (!this.started) {\n addEventListener(\"popstate\", this.onPopState, false);\n this.currentIndex = history.state?.turbo?.restorationIndex || 0;\n this.started = true;\n this.replace(new URL(window.location.href));\n }\n }\n\n stop() {\n if (this.started) {\n removeEventListener(\"popstate\", this.onPopState, false);\n this.started = false;\n }\n }\n\n push(location, restorationIdentifier) {\n this.update(history.pushState, location, restorationIdentifier);\n }\n\n replace(location, restorationIdentifier) {\n this.update(history.replaceState, location, restorationIdentifier);\n }\n\n update(method, location, restorationIdentifier = uuid()) {\n if (method === history.pushState) ++this.currentIndex;\n\n const state = { turbo: { restorationIdentifier, restorationIndex: this.currentIndex } };\n method.call(history, state, \"\", location.href);\n this.location = location;\n this.restorationIdentifier = restorationIdentifier;\n }\n\n // Restoration data\n\n getRestorationDataForIdentifier(restorationIdentifier) {\n return this.restorationData[restorationIdentifier] || {}\n }\n\n updateRestorationData(additionalData) {\n const { restorationIdentifier } = this;\n const restorationData = this.restorationData[restorationIdentifier];\n this.restorationData[restorationIdentifier] = {\n ...restorationData,\n ...additionalData\n };\n }\n\n // Scroll restoration\n\n assumeControlOfScrollRestoration() {\n if (!this.previousScrollRestoration) {\n this.previousScrollRestoration = history.scrollRestoration ?? \"auto\";\n history.scrollRestoration = \"manual\";\n }\n }\n\n relinquishControlOfScrollRestoration() {\n if (this.previousScrollRestoration) {\n history.scrollRestoration = this.previousScrollRestoration;\n delete this.previousScrollRestoration;\n }\n }\n\n // Event handlers\n\n onPopState = (event) => {\n const { turbo } = event.state || {};\n this.location = new URL(window.location.href);\n\n if (turbo) {\n const { restorationIdentifier, restorationIndex } = turbo;\n this.restorationIdentifier = restorationIdentifier;\n const direction = restorationIndex > this.currentIndex ? \"forward\" : \"back\";\n this.delegate.historyPoppedToLocationWithRestorationIdentifierAndDirection(this.location, restorationIdentifier, direction);\n this.currentIndex = restorationIndex;\n } else {\n this.currentIndex++;\n this.delegate.historyPoppedWithEmptyState(this.location);\n }\n }\n}\n\nclass LinkPrefetchObserver {\n started = false\n #prefetchedLink = null\n\n constructor(delegate, eventTarget) {\n this.delegate = delegate;\n this.eventTarget = eventTarget;\n }\n\n start() {\n if (this.started) return\n\n if (this.eventTarget.readyState === \"loading\") {\n this.eventTarget.addEventListener(\"DOMContentLoaded\", this.#enable, { once: true });\n } else {\n this.#enable();\n }\n }\n\n stop() {\n if (!this.started) return\n\n this.eventTarget.removeEventListener(\"mouseenter\", this.#tryToPrefetchRequest, {\n capture: true,\n passive: true\n });\n this.eventTarget.removeEventListener(\"mouseleave\", this.#cancelRequestIfObsolete, {\n capture: true,\n passive: true\n });\n\n this.eventTarget.removeEventListener(\"turbo:before-fetch-request\", this.#tryToUsePrefetchedRequest, true);\n this.started = false;\n }\n\n #enable = () => {\n this.eventTarget.addEventListener(\"mouseenter\", this.#tryToPrefetchRequest, {\n capture: true,\n passive: true\n });\n this.eventTarget.addEventListener(\"mouseleave\", this.#cancelRequestIfObsolete, {\n capture: true,\n passive: true\n });\n\n this.eventTarget.addEventListener(\"turbo:before-fetch-request\", this.#tryToUsePrefetchedRequest, true);\n this.started = true;\n }\n\n #tryToPrefetchRequest = (event) => {\n if (getMetaContent(\"turbo-prefetch\") === \"false\") return\n\n const target = event.target;\n const isLink = target.matches && target.matches(\"a[href]:not([target^=_]):not([download])\");\n\n if (isLink && this.#isPrefetchable(target)) {\n const link = target;\n const location = getLocationForLink(link);\n\n if (this.delegate.canPrefetchRequestToLocation(link, location)) {\n this.#prefetchedLink = link;\n\n const fetchRequest = new FetchRequest(\n this,\n FetchMethod.get,\n location,\n new URLSearchParams(),\n target\n );\n\n fetchRequest.fetchOptions.priority = \"low\";\n\n prefetchCache.putLater(location, fetchRequest, this.#cacheTtl);\n }\n }\n }\n\n #cancelRequestIfObsolete = (event) => {\n if (event.target === this.#prefetchedLink) this.#cancelPrefetchRequest();\n }\n\n #cancelPrefetchRequest = () => {\n prefetchCache.clear();\n this.#prefetchedLink = null;\n }\n\n #tryToUsePrefetchedRequest = (event) => {\n if (event.target.tagName !== \"FORM\" && event.detail.fetchOptions.method === \"GET\") {\n const cached = prefetchCache.get(event.detail.url);\n\n if (cached) {\n // User clicked link, use cache response\n event.detail.fetchRequest = cached;\n }\n\n prefetchCache.clear();\n }\n }\n\n prepareRequest(request) {\n const link = request.target;\n\n request.headers[\"X-Sec-Purpose\"] = \"prefetch\";\n\n const turboFrame = link.closest(\"turbo-frame\");\n const turboFrameTarget = link.getAttribute(\"data-turbo-frame\") || turboFrame?.getAttribute(\"target\") || turboFrame?.id;\n\n if (turboFrameTarget && turboFrameTarget !== \"_top\") {\n request.headers[\"Turbo-Frame\"] = turboFrameTarget;\n }\n }\n\n // Fetch request interface\n\n requestSucceededWithResponse() {}\n\n requestStarted(fetchRequest) {}\n\n requestErrored(fetchRequest) {}\n\n requestFinished(fetchRequest) {}\n\n requestPreventedHandlingResponse(fetchRequest, fetchResponse) {}\n\n requestFailedWithResponse(fetchRequest, fetchResponse) {}\n\n get #cacheTtl() {\n return Number(getMetaContent(\"turbo-prefetch-cache-time\")) || cacheTtl\n }\n\n #isPrefetchable(link) {\n const href = link.getAttribute(\"href\");\n\n if (!href) return false\n\n if (unfetchableLink(link)) return false\n if (linkToTheSamePage(link)) return false\n if (linkOptsOut(link)) return false\n if (nonSafeLink(link)) return false\n if (eventPrevented(link)) return false\n\n return true\n }\n}\n\nconst unfetchableLink = (link) => {\n return link.origin !== document.location.origin || ![\"http:\", \"https:\"].includes(link.protocol) || link.hasAttribute(\"target\")\n};\n\nconst linkToTheSamePage = (link) => {\n return (link.pathname + link.search === document.location.pathname + document.location.search) || link.href.startsWith(\"#\")\n};\n\nconst linkOptsOut = (link) => {\n if (link.getAttribute(\"data-turbo-prefetch\") === \"false\") return true\n if (link.getAttribute(\"data-turbo\") === \"false\") return true\n\n const turboPrefetchParent = findClosestRecursively(link, \"[data-turbo-prefetch]\");\n if (turboPrefetchParent && turboPrefetchParent.getAttribute(\"data-turbo-prefetch\") === \"false\") return true\n\n return false\n};\n\nconst nonSafeLink = (link) => {\n const turboMethod = link.getAttribute(\"data-turbo-method\");\n if (turboMethod && turboMethod.toLowerCase() !== \"get\") return true\n\n if (isUJS(link)) return true\n if (link.hasAttribute(\"data-turbo-confirm\")) return true\n if (link.hasAttribute(\"data-turbo-stream\")) return true\n\n return false\n};\n\nconst isUJS = (link) => {\n return link.hasAttribute(\"data-remote\") || link.hasAttribute(\"data-behavior\") || link.hasAttribute(\"data-confirm\") || link.hasAttribute(\"data-method\")\n};\n\nconst eventPrevented = (link) => {\n const event = dispatch(\"turbo:before-prefetch\", { target: link, cancelable: true });\n return event.defaultPrevented\n};\n\nclass Navigator {\n constructor(delegate) {\n this.delegate = delegate;\n }\n\n proposeVisit(location, options = {}) {\n if (this.delegate.allowsVisitingLocationWithAction(location, options.action)) {\n this.delegate.visitProposedToLocation(location, options);\n }\n }\n\n startVisit(locatable, restorationIdentifier, options = {}) {\n this.stop();\n this.currentVisit = new Visit(this, expandURL(locatable), restorationIdentifier, {\n referrer: this.location,\n ...options\n });\n this.currentVisit.start();\n }\n\n submitForm(form, submitter) {\n this.stop();\n this.formSubmission = new FormSubmission(this, form, submitter, true);\n\n this.formSubmission.start();\n }\n\n stop() {\n if (this.formSubmission) {\n this.formSubmission.stop();\n delete this.formSubmission;\n }\n\n if (this.currentVisit) {\n this.currentVisit.cancel();\n delete this.currentVisit;\n }\n }\n\n get adapter() {\n return this.delegate.adapter\n }\n\n get view() {\n return this.delegate.view\n }\n\n get rootLocation() {\n return this.view.snapshot.rootLocation\n }\n\n get history() {\n return this.delegate.history\n }\n\n // Form submission delegate\n\n formSubmissionStarted(formSubmission) {\n // Not all adapters implement formSubmissionStarted\n if (typeof this.adapter.formSubmissionStarted === \"function\") {\n this.adapter.formSubmissionStarted(formSubmission);\n }\n }\n\n async formSubmissionSucceededWithResponse(formSubmission, fetchResponse) {\n if (formSubmission == this.formSubmission) {\n const responseHTML = await fetchResponse.responseHTML;\n if (responseHTML) {\n const shouldCacheSnapshot = formSubmission.isSafe;\n if (!shouldCacheSnapshot) {\n this.view.clearSnapshotCache();\n }\n\n const { statusCode, redirected } = fetchResponse;\n const action = this.#getActionForFormSubmission(formSubmission, fetchResponse);\n const visitOptions = {\n action,\n shouldCacheSnapshot,\n response: { statusCode, responseHTML, redirected }\n };\n this.proposeVisit(fetchResponse.location, visitOptions);\n }\n }\n }\n\n async formSubmissionFailedWithResponse(formSubmission, fetchResponse) {\n const responseHTML = await fetchResponse.responseHTML;\n\n if (responseHTML) {\n const snapshot = PageSnapshot.fromHTMLString(responseHTML);\n if (fetchResponse.serverError) {\n await this.view.renderError(snapshot, this.currentVisit);\n } else {\n await this.view.renderPage(snapshot, false, true, this.currentVisit);\n }\n if (snapshot.refreshScroll !== \"preserve\") {\n this.view.scrollToTop();\n }\n this.view.clearSnapshotCache();\n }\n }\n\n formSubmissionErrored(formSubmission, error) {\n console.error(error);\n }\n\n formSubmissionFinished(formSubmission) {\n // Not all adapters implement formSubmissionFinished\n if (typeof this.adapter.formSubmissionFinished === \"function\") {\n this.adapter.formSubmissionFinished(formSubmission);\n }\n }\n\n // Link prefetching\n\n linkPrefetchingIsEnabledForLocation(location) {\n // Not all adapters implement linkPrefetchingIsEnabledForLocation\n if (typeof this.adapter.linkPrefetchingIsEnabledForLocation === \"function\") {\n return this.adapter.linkPrefetchingIsEnabledForLocation(location)\n }\n\n return true\n }\n\n // Visit delegate\n\n visitStarted(visit) {\n this.delegate.visitStarted(visit);\n }\n\n visitCompleted(visit) {\n this.delegate.visitCompleted(visit);\n delete this.currentVisit;\n }\n\n // Same-page links are no longer handled with a Visit.\n // This method is still needed for Turbo Native adapters.\n locationWithActionIsSamePage(location, action) {\n return false\n }\n\n // Visits\n\n get location() {\n return this.history.location\n }\n\n get restorationIdentifier() {\n return this.history.restorationIdentifier\n }\n\n #getActionForFormSubmission(formSubmission, fetchResponse) {\n const { submitter, formElement } = formSubmission;\n return getVisitAction(submitter, formElement) || this.#getDefaultAction(fetchResponse)\n }\n\n #getDefaultAction(fetchResponse) {\n const sameLocationRedirect = fetchResponse.redirected && fetchResponse.location.href === this.location?.href;\n return sameLocationRedirect ? \"replace\" : \"advance\"\n }\n}\n\nconst PageStage = {\n initial: 0,\n loading: 1,\n interactive: 2,\n complete: 3\n};\n\nclass PageObserver {\n stage = PageStage.initial\n started = false\n\n constructor(delegate) {\n this.delegate = delegate;\n }\n\n start() {\n if (!this.started) {\n if (this.stage == PageStage.initial) {\n this.stage = PageStage.loading;\n }\n document.addEventListener(\"readystatechange\", this.interpretReadyState, false);\n addEventListener(\"pagehide\", this.pageWillUnload, false);\n this.started = true;\n }\n }\n\n stop() {\n if (this.started) {\n document.removeEventListener(\"readystatechange\", this.interpretReadyState, false);\n removeEventListener(\"pagehide\", this.pageWillUnload, false);\n this.started = false;\n }\n }\n\n interpretReadyState = () => {\n const { readyState } = this;\n if (readyState == \"interactive\") {\n this.pageIsInteractive();\n } else if (readyState == \"complete\") {\n this.pageIsComplete();\n }\n }\n\n pageIsInteractive() {\n if (this.stage == PageStage.loading) {\n this.stage = PageStage.interactive;\n this.delegate.pageBecameInteractive();\n }\n }\n\n pageIsComplete() {\n this.pageIsInteractive();\n if (this.stage == PageStage.interactive) {\n this.stage = PageStage.complete;\n this.delegate.pageLoaded();\n }\n }\n\n pageWillUnload = () => {\n this.delegate.pageWillUnload();\n }\n\n get readyState() {\n return document.readyState\n }\n}\n\nclass ScrollObserver {\n started = false\n\n constructor(delegate) {\n this.delegate = delegate;\n }\n\n start() {\n if (!this.started) {\n addEventListener(\"scroll\", this.onScroll, false);\n this.onScroll();\n this.started = true;\n }\n }\n\n stop() {\n if (this.started) {\n removeEventListener(\"scroll\", this.onScroll, false);\n this.started = false;\n }\n }\n\n onScroll = () => {\n this.updatePosition({ x: window.pageXOffset, y: window.pageYOffset });\n }\n\n // Private\n\n updatePosition(position) {\n this.delegate.scrollPositionChanged(position);\n }\n}\n\nclass StreamMessageRenderer {\n render({ fragment }) {\n Bardo.preservingPermanentElements(this, getPermanentElementMapForFragment(fragment), () => {\n withAutofocusFromFragment(fragment, () => {\n withPreservedFocus(() => {\n document.documentElement.appendChild(fragment);\n });\n });\n });\n }\n\n // Bardo delegate\n\n enteringBardo(currentPermanentElement, newPermanentElement) {\n newPermanentElement.replaceWith(currentPermanentElement.cloneNode(true));\n }\n\n leavingBardo() {}\n}\n\nfunction getPermanentElementMapForFragment(fragment) {\n const permanentElementsInDocument = queryPermanentElementsAll(document.documentElement);\n const permanentElementMap = {};\n for (const permanentElementInDocument of permanentElementsInDocument) {\n const { id } = permanentElementInDocument;\n\n for (const streamElement of fragment.querySelectorAll(\"turbo-stream\")) {\n const elementInStream = getPermanentElementById(streamElement.templateElement.content, id);\n\n if (elementInStream) {\n permanentElementMap[id] = [permanentElementInDocument, elementInStream];\n }\n }\n }\n\n return permanentElementMap\n}\n\nasync function withAutofocusFromFragment(fragment, callback) {\n const generatedID = `turbo-stream-autofocus-${uuid()}`;\n const turboStreams = fragment.querySelectorAll(\"turbo-stream\");\n const elementWithAutofocus = firstAutofocusableElementInStreams(turboStreams);\n let willAutofocusId = null;\n\n if (elementWithAutofocus) {\n if (elementWithAutofocus.id) {\n willAutofocusId = elementWithAutofocus.id;\n } else {\n willAutofocusId = generatedID;\n }\n\n elementWithAutofocus.id = willAutofocusId;\n }\n\n callback();\n await nextRepaint();\n\n const hasNoActiveElement = document.activeElement == null || document.activeElement == document.body;\n\n if (hasNoActiveElement && willAutofocusId) {\n const elementToAutofocus = document.getElementById(willAutofocusId);\n\n if (elementIsFocusable(elementToAutofocus)) {\n elementToAutofocus.focus();\n }\n if (elementToAutofocus && elementToAutofocus.id == generatedID) {\n elementToAutofocus.removeAttribute(\"id\");\n }\n }\n}\n\nasync function withPreservedFocus(callback) {\n const [activeElementBeforeRender, activeElementAfterRender] = await around(callback, () => document.activeElement);\n\n const restoreFocusTo = activeElementBeforeRender && activeElementBeforeRender.id;\n\n if (restoreFocusTo) {\n const elementToFocus = document.getElementById(restoreFocusTo);\n\n if (elementIsFocusable(elementToFocus) && elementToFocus != activeElementAfterRender) {\n elementToFocus.focus();\n }\n }\n}\n\nfunction firstAutofocusableElementInStreams(nodeListOfStreamElements) {\n for (const streamElement of nodeListOfStreamElements) {\n const elementWithAutofocus = queryAutofocusableElement(streamElement.templateElement.content);\n\n if (elementWithAutofocus) return elementWithAutofocus\n }\n\n return null\n}\n\nclass StreamObserver {\n sources = new Set()\n #started = false\n\n constructor(delegate) {\n this.delegate = delegate;\n }\n\n start() {\n if (!this.#started) {\n this.#started = true;\n addEventListener(\"turbo:before-fetch-response\", this.inspectFetchResponse, false);\n }\n }\n\n stop() {\n if (this.#started) {\n this.#started = false;\n removeEventListener(\"turbo:before-fetch-response\", this.inspectFetchResponse, false);\n }\n }\n\n connectStreamSource(source) {\n if (!this.streamSourceIsConnected(source)) {\n this.sources.add(source);\n source.addEventListener(\"message\", this.receiveMessageEvent, false);\n }\n }\n\n disconnectStreamSource(source) {\n if (this.streamSourceIsConnected(source)) {\n this.sources.delete(source);\n source.removeEventListener(\"message\", this.receiveMessageEvent, false);\n }\n }\n\n streamSourceIsConnected(source) {\n return this.sources.has(source)\n }\n\n inspectFetchResponse = (event) => {\n const response = fetchResponseFromEvent(event);\n if (response && fetchResponseIsStream(response)) {\n event.preventDefault();\n this.receiveMessageResponse(response);\n }\n }\n\n receiveMessageEvent = (event) => {\n if (this.#started && typeof event.data == \"string\") {\n this.receiveMessageHTML(event.data);\n }\n }\n\n async receiveMessageResponse(response) {\n const html = await response.responseHTML;\n if (html) {\n this.receiveMessageHTML(html);\n }\n }\n\n receiveMessageHTML(html) {\n this.delegate.receivedMessageFromStream(StreamMessage.wrap(html));\n }\n}\n\nfunction fetchResponseFromEvent(event) {\n const fetchResponse = event.detail?.fetchResponse;\n if (fetchResponse instanceof FetchResponse) {\n return fetchResponse\n }\n}\n\nfunction fetchResponseIsStream(response) {\n const contentType = response.contentType ?? \"\";\n return contentType.startsWith(StreamMessage.contentType)\n}\n\nclass ErrorRenderer extends Renderer {\n static renderElement(currentElement, newElement) {\n const { documentElement, body } = document;\n\n documentElement.replaceChild(newElement, body);\n }\n\n async render() {\n this.replaceHeadAndBody();\n this.activateScriptElements();\n }\n\n replaceHeadAndBody() {\n const { documentElement, head } = document;\n documentElement.replaceChild(this.newHead, head);\n this.renderElement(this.currentElement, this.newElement);\n }\n\n activateScriptElements() {\n for (const replaceableElement of this.scriptElements) {\n const parentNode = replaceableElement.parentNode;\n if (parentNode) {\n const element = activateScriptElement(replaceableElement);\n parentNode.replaceChild(element, replaceableElement);\n }\n }\n }\n\n get newHead() {\n return this.newSnapshot.headSnapshot.element\n }\n\n get scriptElements() {\n return document.documentElement.querySelectorAll(\"script\")\n }\n}\n\nclass PageRenderer extends Renderer {\n static renderElement(currentElement, newElement) {\n if (document.body && newElement instanceof HTMLBodyElement) {\n document.body.replaceWith(newElement);\n } else {\n document.documentElement.appendChild(newElement);\n }\n }\n\n get shouldRender() {\n return this.newSnapshot.isVisitable && this.trackedElementsAreIdentical\n }\n\n get reloadReason() {\n if (!this.newSnapshot.isVisitable) {\n return {\n reason: \"turbo_visit_control_is_reload\"\n }\n }\n\n if (!this.trackedElementsAreIdentical) {\n return {\n reason: \"tracked_element_mismatch\"\n }\n }\n }\n\n async prepareToRender() {\n this.#setLanguage();\n await this.mergeHead();\n }\n\n async render() {\n if (this.willRender) {\n await this.replaceBody();\n }\n }\n\n finishRendering() {\n super.finishRendering();\n if (!this.isPreview) {\n this.focusFirstAutofocusableElement();\n }\n }\n\n get currentHeadSnapshot() {\n return this.currentSnapshot.headSnapshot\n }\n\n get newHeadSnapshot() {\n return this.newSnapshot.headSnapshot\n }\n\n get newElement() {\n return this.newSnapshot.element\n }\n\n #setLanguage() {\n const { documentElement } = this.currentSnapshot;\n const { dir, lang } = this.newSnapshot;\n\n if (lang) {\n documentElement.setAttribute(\"lang\", lang);\n } else {\n documentElement.removeAttribute(\"lang\");\n }\n if (dir) {\n documentElement.setAttribute(\"dir\", dir);\n } else {\n documentElement.removeAttribute(\"dir\");\n }\n }\n\n async mergeHead() {\n const mergedHeadElements = this.mergeProvisionalElements();\n const newStylesheetElements = this.copyNewHeadStylesheetElements();\n this.copyNewHeadScriptElements();\n\n await mergedHeadElements;\n await newStylesheetElements;\n\n if (this.willRender) {\n this.removeUnusedDynamicStylesheetElements();\n }\n }\n\n async replaceBody() {\n await this.preservingPermanentElements(async () => {\n this.activateNewBody();\n await this.assignNewBody();\n });\n }\n\n get trackedElementsAreIdentical() {\n return this.currentHeadSnapshot.trackedElementSignature == this.newHeadSnapshot.trackedElementSignature\n }\n\n async copyNewHeadStylesheetElements() {\n const loadingElements = [];\n\n for (const element of this.newHeadStylesheetElements) {\n loadingElements.push(waitForLoad(element));\n\n document.head.appendChild(element);\n }\n\n await Promise.all(loadingElements);\n }\n\n copyNewHeadScriptElements() {\n for (const element of this.newHeadScriptElements) {\n document.head.appendChild(activateScriptElement(element));\n }\n }\n\n removeUnusedDynamicStylesheetElements() {\n for (const element of this.unusedDynamicStylesheetElements) {\n document.head.removeChild(element);\n }\n }\n\n async mergeProvisionalElements() {\n const newHeadElements = [...this.newHeadProvisionalElements];\n\n for (const element of this.currentHeadProvisionalElements) {\n if (!this.isCurrentElementInElementList(element, newHeadElements)) {\n document.head.removeChild(element);\n }\n }\n\n for (const element of newHeadElements) {\n document.head.appendChild(element);\n }\n }\n\n isCurrentElementInElementList(element, elementList) {\n for (const [index, newElement] of elementList.entries()) {\n // if title element...\n if (element.tagName == \"TITLE\") {\n if (newElement.tagName != \"TITLE\") {\n continue\n }\n if (element.innerHTML == newElement.innerHTML) {\n elementList.splice(index, 1);\n return true\n }\n }\n\n // if any other element...\n if (newElement.isEqualNode(element)) {\n elementList.splice(index, 1);\n return true\n }\n }\n\n return false\n }\n\n removeCurrentHeadProvisionalElements() {\n for (const element of this.currentHeadProvisionalElements) {\n document.head.removeChild(element);\n }\n }\n\n copyNewHeadProvisionalElements() {\n for (const element of this.newHeadProvisionalElements) {\n document.head.appendChild(element);\n }\n }\n\n activateNewBody() {\n document.adoptNode(this.newElement);\n this.removeNoscriptElements();\n this.activateNewBodyScriptElements();\n }\n\n removeNoscriptElements() {\n for (const noscriptElement of this.newElement.querySelectorAll(\"noscript\")) {\n noscriptElement.remove();\n }\n }\n\n activateNewBodyScriptElements() {\n for (const inertScriptElement of this.newBodyScriptElements) {\n const activatedScriptElement = activateScriptElement(inertScriptElement);\n inertScriptElement.replaceWith(activatedScriptElement);\n }\n }\n\n async assignNewBody() {\n await this.renderElement(this.currentElement, this.newElement);\n }\n\n get unusedDynamicStylesheetElements() {\n return this.oldHeadStylesheetElements.filter((element) => {\n return element.getAttribute(\"data-turbo-track\") === \"dynamic\"\n })\n }\n\n get oldHeadStylesheetElements() {\n return this.currentHeadSnapshot.getStylesheetElementsNotInSnapshot(this.newHeadSnapshot)\n }\n\n get newHeadStylesheetElements() {\n return this.newHeadSnapshot.getStylesheetElementsNotInSnapshot(this.currentHeadSnapshot)\n }\n\n get newHeadScriptElements() {\n return this.newHeadSnapshot.getScriptElementsNotInSnapshot(this.currentHeadSnapshot)\n }\n\n get currentHeadProvisionalElements() {\n return this.currentHeadSnapshot.provisionalElements\n }\n\n get newHeadProvisionalElements() {\n return this.newHeadSnapshot.provisionalElements\n }\n\n get newBodyScriptElements() {\n return this.newElement.querySelectorAll(\"script\")\n }\n}\n\nclass MorphingPageRenderer extends PageRenderer {\n static renderElement(currentElement, newElement) {\n morphElements(currentElement, newElement, {\n callbacks: {\n beforeNodeMorphed: (node, newNode) => {\n if (\n shouldRefreshFrameWithMorphing(node, newNode) &&\n !closestFrameReloadableWithMorphing(node)\n ) {\n node.reload();\n return false\n }\n return true\n }\n }\n });\n\n dispatch(\"turbo:morph\", { detail: { currentElement, newElement } });\n }\n\n async preservingPermanentElements(callback) {\n return await callback()\n }\n\n get renderMethod() {\n return \"morph\"\n }\n\n get shouldAutofocus() {\n return false\n }\n}\n\nclass SnapshotCache extends LRUCache {\n constructor(size) {\n super(size, toCacheKey);\n }\n\n get snapshots() {\n return this.entries\n }\n}\n\nclass PageView extends View {\n snapshotCache = new SnapshotCache(10)\n lastRenderedLocation = new URL(location.href)\n forceReloaded = false\n\n shouldTransitionTo(newSnapshot) {\n return this.snapshot.prefersViewTransitions && newSnapshot.prefersViewTransitions\n }\n\n renderPage(snapshot, isPreview = false, willRender = true, visit) {\n const shouldMorphPage = this.isPageRefresh(visit) && (visit?.refresh?.method || this.snapshot.refreshMethod) === \"morph\";\n const rendererClass = shouldMorphPage ? MorphingPageRenderer : PageRenderer;\n\n const renderer = new rendererClass(this.snapshot, snapshot, isPreview, willRender);\n\n if (!renderer.shouldRender) {\n this.forceReloaded = true;\n } else {\n visit?.changeHistory();\n }\n\n return this.render(renderer)\n }\n\n renderError(snapshot, visit) {\n visit?.changeHistory();\n const renderer = new ErrorRenderer(this.snapshot, snapshot, false);\n return this.render(renderer)\n }\n\n clearSnapshotCache() {\n this.snapshotCache.clear();\n }\n\n async cacheSnapshot(snapshot = this.snapshot) {\n if (snapshot.isCacheable) {\n this.delegate.viewWillCacheSnapshot();\n const { lastRenderedLocation: location } = this;\n await nextEventLoopTick();\n const cachedSnapshot = snapshot.clone();\n this.snapshotCache.put(location, cachedSnapshot);\n return cachedSnapshot\n }\n }\n\n getCachedSnapshotForLocation(location) {\n return this.snapshotCache.get(location)\n }\n\n isPageRefresh(visit) {\n return !visit || (this.lastRenderedLocation.pathname === visit.location.pathname && visit.action === \"replace\")\n }\n\n shouldPreserveScrollPosition(visit) {\n return this.isPageRefresh(visit) && (visit?.refresh?.scroll || this.snapshot.refreshScroll) === \"preserve\"\n }\n\n get snapshot() {\n return PageSnapshot.fromElement(this.element)\n }\n}\n\nclass Preloader {\n selector = \"a[data-turbo-preload]\"\n\n constructor(delegate, snapshotCache) {\n this.delegate = delegate;\n this.snapshotCache = snapshotCache;\n }\n\n start() {\n if (document.readyState === \"loading\") {\n document.addEventListener(\"DOMContentLoaded\", this.#preloadAll);\n } else {\n this.preloadOnLoadLinksForView(document.body);\n }\n }\n\n stop() {\n document.removeEventListener(\"DOMContentLoaded\", this.#preloadAll);\n }\n\n preloadOnLoadLinksForView(element) {\n for (const link of element.querySelectorAll(this.selector)) {\n if (this.delegate.shouldPreloadLink(link)) {\n this.preloadURL(link);\n }\n }\n }\n\n async preloadURL(link) {\n const location = new URL(link.href);\n\n if (this.snapshotCache.has(location)) {\n return\n }\n\n const fetchRequest = new FetchRequest(this, FetchMethod.get, location, new URLSearchParams(), link);\n await fetchRequest.perform();\n }\n\n // Fetch request delegate\n\n prepareRequest(fetchRequest) {\n fetchRequest.headers[\"X-Sec-Purpose\"] = \"prefetch\";\n }\n\n async requestSucceededWithResponse(fetchRequest, fetchResponse) {\n try {\n const responseHTML = await fetchResponse.responseHTML;\n const snapshot = PageSnapshot.fromHTMLString(responseHTML);\n\n this.snapshotCache.put(fetchRequest.url, snapshot);\n } catch (_) {\n // If we cannot preload that is ok!\n }\n }\n\n requestStarted(fetchRequest) {}\n\n requestErrored(fetchRequest) {}\n\n requestFinished(fetchRequest) {}\n\n requestPreventedHandlingResponse(fetchRequest, fetchResponse) {}\n\n requestFailedWithResponse(fetchRequest, fetchResponse) {}\n\n #preloadAll = () => {\n this.preloadOnLoadLinksForView(document.body);\n }\n}\n\nclass Cache {\n constructor(session) {\n this.session = session;\n }\n\n clear() {\n this.session.clearCache();\n }\n\n resetCacheControl() {\n this.#setCacheControl(\"\");\n }\n\n exemptPageFromCache() {\n this.#setCacheControl(\"no-cache\");\n }\n\n exemptPageFromPreview() {\n this.#setCacheControl(\"no-preview\");\n }\n\n #setCacheControl(value) {\n setMetaContent(\"turbo-cache-control\", value);\n }\n}\n\nclass Session {\n navigator = new Navigator(this)\n history = new History(this)\n view = new PageView(this, document.documentElement)\n adapter = new BrowserAdapter(this)\n\n pageObserver = new PageObserver(this)\n cacheObserver = new CacheObserver()\n linkPrefetchObserver = new LinkPrefetchObserver(this, document)\n linkClickObserver = new LinkClickObserver(this, window)\n formSubmitObserver = new FormSubmitObserver(this, document)\n scrollObserver = new ScrollObserver(this)\n streamObserver = new StreamObserver(this)\n formLinkClickObserver = new FormLinkClickObserver(this, document.documentElement)\n frameRedirector = new FrameRedirector(this, document.documentElement)\n streamMessageRenderer = new StreamMessageRenderer()\n cache = new Cache(this)\n\n enabled = true\n started = false\n #pageRefreshDebouncePeriod = 150\n\n constructor(recentRequests) {\n this.recentRequests = recentRequests;\n this.preloader = new Preloader(this, this.view.snapshotCache);\n this.debouncedRefresh = this.refresh;\n this.pageRefreshDebouncePeriod = this.pageRefreshDebouncePeriod;\n }\n\n start() {\n if (!this.started) {\n this.pageObserver.start();\n this.cacheObserver.start();\n this.linkPrefetchObserver.start();\n this.formLinkClickObserver.start();\n this.linkClickObserver.start();\n this.formSubmitObserver.start();\n this.scrollObserver.start();\n this.streamObserver.start();\n this.frameRedirector.start();\n this.history.start();\n this.preloader.start();\n this.started = true;\n this.enabled = true;\n }\n }\n\n disable() {\n this.enabled = false;\n }\n\n stop() {\n if (this.started) {\n this.pageObserver.stop();\n this.cacheObserver.stop();\n this.linkPrefetchObserver.stop();\n this.formLinkClickObserver.stop();\n this.linkClickObserver.stop();\n this.formSubmitObserver.stop();\n this.scrollObserver.stop();\n this.streamObserver.stop();\n this.frameRedirector.stop();\n this.history.stop();\n this.preloader.stop();\n this.started = false;\n }\n }\n\n registerAdapter(adapter) {\n this.adapter = adapter;\n }\n\n visit(location, options = {}) {\n const frameElement = options.frame ? document.getElementById(options.frame) : null;\n\n if (frameElement instanceof FrameElement) {\n const action = options.action || getVisitAction(frameElement);\n\n frameElement.delegate.proposeVisitIfNavigatedWithAction(frameElement, action);\n frameElement.src = location.toString();\n } else {\n this.navigator.proposeVisit(expandURL(location), options);\n }\n }\n\n refresh(url, options = {}) {\n options = typeof options === \"string\" ? { requestId: options } : options;\n\n const { method, requestId, scroll } = options;\n const isRecentRequest = requestId && this.recentRequests.has(requestId);\n const isCurrentUrl = url === document.baseURI;\n if (!isRecentRequest && !this.navigator.currentVisit && isCurrentUrl) {\n this.visit(url, { action: \"replace\", shouldCacheSnapshot: false, refresh: { method, scroll } });\n }\n }\n\n connectStreamSource(source) {\n this.streamObserver.connectStreamSource(source);\n }\n\n disconnectStreamSource(source) {\n this.streamObserver.disconnectStreamSource(source);\n }\n\n renderStreamMessage(message) {\n this.streamMessageRenderer.render(StreamMessage.wrap(message));\n }\n\n clearCache() {\n this.view.clearSnapshotCache();\n }\n\n setProgressBarDelay(delay) {\n console.warn(\n \"Please replace `session.setProgressBarDelay(delay)` with `session.progressBarDelay = delay`. The function is deprecated and will be removed in a future version of Turbo.`\"\n );\n\n this.progressBarDelay = delay;\n }\n\n set progressBarDelay(delay) {\n config.drive.progressBarDelay = delay;\n }\n\n get progressBarDelay() {\n return config.drive.progressBarDelay\n }\n\n set drive(value) {\n config.drive.enabled = value;\n }\n\n get drive() {\n return config.drive.enabled\n }\n\n set formMode(value) {\n config.forms.mode = value;\n }\n\n get formMode() {\n return config.forms.mode\n }\n\n get location() {\n return this.history.location\n }\n\n get restorationIdentifier() {\n return this.history.restorationIdentifier\n }\n\n get pageRefreshDebouncePeriod() {\n return this.#pageRefreshDebouncePeriod\n }\n\n set pageRefreshDebouncePeriod(value) {\n this.refresh = debounce(this.debouncedRefresh.bind(this), value);\n this.#pageRefreshDebouncePeriod = value;\n }\n\n // Preloader delegate\n\n shouldPreloadLink(element) {\n const isUnsafe = element.hasAttribute(\"data-turbo-method\");\n const isStream = element.hasAttribute(\"data-turbo-stream\");\n const frameTarget = element.getAttribute(\"data-turbo-frame\");\n const frame = frameTarget == \"_top\" ?\n null :\n document.getElementById(frameTarget) || findClosestRecursively(element, \"turbo-frame:not([disabled])\");\n\n if (isUnsafe || isStream || frame instanceof FrameElement) {\n return false\n } else {\n const location = new URL(element.href);\n\n return this.elementIsNavigatable(element) && locationIsVisitable(location, this.snapshot.rootLocation)\n }\n }\n\n // History delegate\n\n historyPoppedToLocationWithRestorationIdentifierAndDirection(location, restorationIdentifier, direction) {\n if (this.enabled) {\n this.navigator.startVisit(location, restorationIdentifier, {\n action: \"restore\",\n historyChanged: true,\n direction\n });\n } else {\n this.adapter.pageInvalidated({\n reason: \"turbo_disabled\"\n });\n }\n }\n\n historyPoppedWithEmptyState(location) {\n this.history.replace(location);\n this.view.lastRenderedLocation = location;\n this.view.cacheSnapshot();\n }\n\n // Scroll observer delegate\n\n scrollPositionChanged(position) {\n this.history.updateRestorationData({ scrollPosition: position });\n }\n\n // Form click observer delegate\n\n willSubmitFormLinkToLocation(link, location) {\n return this.elementIsNavigatable(link) && locationIsVisitable(location, this.snapshot.rootLocation)\n }\n\n submittedFormLinkToLocation() {}\n\n // Link hover observer delegate\n\n canPrefetchRequestToLocation(link, location) {\n return (\n this.elementIsNavigatable(link) &&\n locationIsVisitable(location, this.snapshot.rootLocation) &&\n this.navigator.linkPrefetchingIsEnabledForLocation(location)\n )\n }\n\n // Link click observer delegate\n\n willFollowLinkToLocation(link, location, event) {\n return (\n this.elementIsNavigatable(link) &&\n locationIsVisitable(location, this.snapshot.rootLocation) &&\n this.applicationAllowsFollowingLinkToLocation(link, location, event)\n )\n }\n\n followedLinkToLocation(link, location) {\n const action = this.getActionForLink(link);\n const acceptsStreamResponse = link.hasAttribute(\"data-turbo-stream\");\n\n this.visit(location.href, { action, acceptsStreamResponse });\n }\n\n // Navigator delegate\n\n allowsVisitingLocationWithAction(location, action) {\n return this.applicationAllowsVisitingLocation(location)\n }\n\n visitProposedToLocation(location, options) {\n extendURLWithDeprecatedProperties(location);\n this.adapter.visitProposedToLocation(location, options);\n }\n\n // Visit delegate\n\n visitStarted(visit) {\n if (!visit.acceptsStreamResponse) {\n markAsBusy(document.documentElement);\n this.view.markVisitDirection(visit.direction);\n }\n extendURLWithDeprecatedProperties(visit.location);\n this.notifyApplicationAfterVisitingLocation(visit.location, visit.action);\n }\n\n visitCompleted(visit) {\n this.view.unmarkVisitDirection();\n clearBusyState(document.documentElement);\n this.notifyApplicationAfterPageLoad(visit.getTimingMetrics());\n }\n\n // Form submit observer delegate\n\n willSubmitForm(form, submitter) {\n const action = getAction$1(form, submitter);\n\n return (\n this.submissionIsNavigatable(form, submitter) &&\n locationIsVisitable(expandURL(action), this.snapshot.rootLocation)\n )\n }\n\n formSubmitted(form, submitter) {\n this.navigator.submitForm(form, submitter);\n }\n\n // Page observer delegate\n\n pageBecameInteractive() {\n this.view.lastRenderedLocation = this.location;\n this.notifyApplicationAfterPageLoad();\n }\n\n pageLoaded() {\n this.history.assumeControlOfScrollRestoration();\n }\n\n pageWillUnload() {\n this.history.relinquishControlOfScrollRestoration();\n }\n\n // Stream observer delegate\n\n receivedMessageFromStream(message) {\n this.renderStreamMessage(message);\n }\n\n // Page view delegate\n\n viewWillCacheSnapshot() {\n this.notifyApplicationBeforeCachingSnapshot();\n }\n\n allowsImmediateRender({ element }, options) {\n const event = this.notifyApplicationBeforeRender(element, options);\n const {\n defaultPrevented,\n detail: { render }\n } = event;\n\n if (this.view.renderer && render) {\n this.view.renderer.renderElement = render;\n }\n\n return !defaultPrevented\n }\n\n viewRenderedSnapshot(_snapshot, _isPreview, renderMethod) {\n this.view.lastRenderedLocation = this.history.location;\n this.notifyApplicationAfterRender(renderMethod);\n }\n\n preloadOnLoadLinksForView(element) {\n this.preloader.preloadOnLoadLinksForView(element);\n }\n\n viewInvalidated(reason) {\n this.adapter.pageInvalidated(reason);\n }\n\n // Frame element\n\n frameLoaded(frame) {\n this.notifyApplicationAfterFrameLoad(frame);\n }\n\n frameRendered(fetchResponse, frame) {\n this.notifyApplicationAfterFrameRender(fetchResponse, frame);\n }\n\n // Application events\n\n applicationAllowsFollowingLinkToLocation(link, location, ev) {\n const event = this.notifyApplicationAfterClickingLinkToLocation(link, location, ev);\n return !event.defaultPrevented\n }\n\n applicationAllowsVisitingLocation(location) {\n const event = this.notifyApplicationBeforeVisitingLocation(location);\n return !event.defaultPrevented\n }\n\n notifyApplicationAfterClickingLinkToLocation(link, location, event) {\n return dispatch(\"turbo:click\", {\n target: link,\n detail: { url: location.href, originalEvent: event },\n cancelable: true\n })\n }\n\n notifyApplicationBeforeVisitingLocation(location) {\n return dispatch(\"turbo:before-visit\", {\n detail: { url: location.href },\n cancelable: true\n })\n }\n\n notifyApplicationAfterVisitingLocation(location, action) {\n return dispatch(\"turbo:visit\", { detail: { url: location.href, action } })\n }\n\n notifyApplicationBeforeCachingSnapshot() {\n return dispatch(\"turbo:before-cache\")\n }\n\n notifyApplicationBeforeRender(newBody, options) {\n return dispatch(\"turbo:before-render\", {\n detail: { newBody, ...options },\n cancelable: true\n })\n }\n\n notifyApplicationAfterRender(renderMethod) {\n return dispatch(\"turbo:render\", { detail: { renderMethod } })\n }\n\n notifyApplicationAfterPageLoad(timing = {}) {\n return dispatch(\"turbo:load\", {\n detail: { url: this.location.href, timing }\n })\n }\n\n notifyApplicationAfterFrameLoad(frame) {\n return dispatch(\"turbo:frame-load\", { target: frame })\n }\n\n notifyApplicationAfterFrameRender(fetchResponse, frame) {\n return dispatch(\"turbo:frame-render\", {\n detail: { fetchResponse },\n target: frame,\n cancelable: true\n })\n }\n\n // Helpers\n\n submissionIsNavigatable(form, submitter) {\n if (config.forms.mode == \"off\") {\n return false\n } else {\n const submitterIsNavigatable = submitter ? this.elementIsNavigatable(submitter) : true;\n\n if (config.forms.mode == \"optin\") {\n return submitterIsNavigatable && form.closest('[data-turbo=\"true\"]') != null\n } else {\n return submitterIsNavigatable && this.elementIsNavigatable(form)\n }\n }\n }\n\n elementIsNavigatable(element) {\n const container = findClosestRecursively(element, \"[data-turbo]\");\n const withinFrame = findClosestRecursively(element, \"turbo-frame\");\n\n // Check if Drive is enabled on the session or we're within a Frame.\n if (config.drive.enabled || withinFrame) {\n // Element is navigatable by default, unless `data-turbo=\"false\"`.\n if (container) {\n return container.getAttribute(\"data-turbo\") != \"false\"\n } else {\n return true\n }\n } else {\n // Element isn't navigatable by default, unless `data-turbo=\"true\"`.\n if (container) {\n return container.getAttribute(\"data-turbo\") == \"true\"\n } else {\n return false\n }\n }\n }\n\n // Private\n\n getActionForLink(link) {\n return getVisitAction(link) || \"advance\"\n }\n\n get snapshot() {\n return this.view.snapshot\n }\n}\n\n// Older versions of the Turbo Native adapters referenced the\n// `Location#absoluteURL` property in their implementations of\n// the `Adapter#visitProposedToLocation()` and `#visitStarted()`\n// methods. The Location class has since been removed in favor\n// of the DOM URL API, and accordingly all Adapter methods now\n// receive URL objects.\n//\n// We alias #absoluteURL to #toString() here to avoid crashing\n// older adapters which do not expect URL objects. We should\n// consider removing this support at some point in the future.\n\nfunction extendURLWithDeprecatedProperties(url) {\n Object.defineProperties(url, deprecatedLocationPropertyDescriptors);\n}\n\nconst deprecatedLocationPropertyDescriptors = {\n absoluteURL: {\n get() {\n return this.toString()\n }\n }\n};\n\nconst session = new Session(recentRequests);\n\n// Rename `navigator` to avoid shadowing `window.navigator`\nconst { cache, navigator: sessionNavigator } = session;\n\n/**\n * Starts the main session.\n * This initialises any necessary observers such as those to monitor\n * link interactions.\n */\nfunction start() {\n session.start();\n}\n\n/**\n * Registers an adapter for the main session.\n *\n * @param adapter Adapter to register\n */\nfunction registerAdapter(adapter) {\n session.registerAdapter(adapter);\n}\n\n/**\n * Performs an application visit to the given location.\n *\n * @param location Location to visit (a URL or path)\n * @param options Options to apply\n * @param options.action Type of history navigation to apply (\"restore\",\n * \"replace\" or \"advance\")\n * @param options.historyChanged Specifies whether the browser history has\n * already been changed for this visit or not\n * @param options.referrer Specifies the referrer of this visit such that\n * navigations to the same page will not result in a new history entry.\n * @param options.snapshotHTML Cached snapshot to render\n * @param options.response Response of the specified location\n */\nfunction visit(location, options) {\n session.visit(location, options);\n}\n\n/**\n * Connects a stream source to the main session.\n *\n * @param source Stream source to connect\n */\nfunction connectStreamSource(source) {\n session.connectStreamSource(source);\n}\n\n/**\n * Disconnects a stream source from the main session.\n *\n * @param source Stream source to disconnect\n */\nfunction disconnectStreamSource(source) {\n session.disconnectStreamSource(source);\n}\n\n/**\n * Renders a stream message to the main session by appending it to the\n * current document.\n *\n * @param message Message to render\n */\nfunction renderStreamMessage(message) {\n session.renderStreamMessage(message);\n}\n\n/**\n * Sets the delay after which the progress bar will appear during navigation.\n *\n * The progress bar appears after 500ms by default.\n *\n * Note that this method has no effect when used with the iOS or Android\n * adapters.\n *\n * @param delay Time to delay in milliseconds\n */\nfunction setProgressBarDelay(delay) {\n console.warn(\n \"Please replace `Turbo.setProgressBarDelay(delay)` with `Turbo.config.drive.progressBarDelay = delay`. The top-level function is deprecated and will be removed in a future version of Turbo.`\"\n );\n config.drive.progressBarDelay = delay;\n}\n\nfunction setConfirmMethod(confirmMethod) {\n console.warn(\n \"Please replace `Turbo.setConfirmMethod(confirmMethod)` with `Turbo.config.forms.confirm = confirmMethod`. The top-level function is deprecated and will be removed in a future version of Turbo.`\"\n );\n config.forms.confirm = confirmMethod;\n}\n\nfunction setFormMode(mode) {\n console.warn(\n \"Please replace `Turbo.setFormMode(mode)` with `Turbo.config.forms.mode = mode`. The top-level function is deprecated and will be removed in a future version of Turbo.`\"\n );\n config.forms.mode = mode;\n}\n\n/**\n * Morph the state of the currentBody based on the attributes and contents of\n * the newBody. Morphing body elements may dispatch turbo:morph,\n * turbo:before-morph-element, turbo:before-morph-attribute, and\n * turbo:morph-element events.\n *\n * @param currentBody HTMLBodyElement destination of morphing changes\n * @param newBody HTMLBodyElement source of morphing changes\n */\nfunction morphBodyElements(currentBody, newBody) {\n MorphingPageRenderer.renderElement(currentBody, newBody);\n}\n\n/**\n * Morph the child elements of the currentFrame based on the child elements of\n * the newFrame. Morphing turbo-frame elements may dispatch turbo:before-frame-morph,\n * turbo:before-morph-element, turbo:before-morph-attribute, and\n * turbo:morph-element events.\n *\n * @param currentFrame FrameElement destination of morphing children changes\n * @param newFrame FrameElement source of morphing children changes\n */\nfunction morphTurboFrameElements(currentFrame, newFrame) {\n MorphingFrameRenderer.renderElement(currentFrame, newFrame);\n}\n\nvar Turbo = /*#__PURE__*/Object.freeze({\n __proto__: null,\n PageRenderer: PageRenderer,\n PageSnapshot: PageSnapshot,\n FrameRenderer: FrameRenderer,\n fetch: fetchWithTurboHeaders,\n config: config,\n session: session,\n cache: cache,\n navigator: sessionNavigator,\n start: start,\n registerAdapter: registerAdapter,\n visit: visit,\n connectStreamSource: connectStreamSource,\n disconnectStreamSource: disconnectStreamSource,\n renderStreamMessage: renderStreamMessage,\n setProgressBarDelay: setProgressBarDelay,\n setConfirmMethod: setConfirmMethod,\n setFormMode: setFormMode,\n morphBodyElements: morphBodyElements,\n morphTurboFrameElements: morphTurboFrameElements,\n morphChildren: morphChildren,\n morphElements: morphElements\n});\n\nclass TurboFrameMissingError extends Error {}\n\nclass FrameController {\n fetchResponseLoaded = (_fetchResponse) => Promise.resolve()\n #currentFetchRequest = null\n #resolveVisitPromise = () => {}\n #connected = false\n #hasBeenLoaded = false\n #ignoredAttributes = new Set()\n #shouldMorphFrame = false\n action = null\n\n constructor(element) {\n this.element = element;\n this.view = new FrameView(this, this.element);\n this.appearanceObserver = new AppearanceObserver(this, this.element);\n this.formLinkClickObserver = new FormLinkClickObserver(this, this.element);\n this.linkInterceptor = new LinkInterceptor(this, this.element);\n this.restorationIdentifier = uuid();\n this.formSubmitObserver = new FormSubmitObserver(this, this.element);\n }\n\n // Frame delegate\n\n connect() {\n if (!this.#connected) {\n this.#connected = true;\n if (this.loadingStyle == FrameLoadingStyle.lazy) {\n this.appearanceObserver.start();\n } else {\n this.#loadSourceURL();\n }\n this.formLinkClickObserver.start();\n this.linkInterceptor.start();\n this.formSubmitObserver.start();\n }\n }\n\n disconnect() {\n if (this.#connected) {\n this.#connected = false;\n this.appearanceObserver.stop();\n this.formLinkClickObserver.stop();\n this.linkInterceptor.stop();\n this.formSubmitObserver.stop();\n\n if (!this.element.hasAttribute(\"recurse\")) {\n this.#currentFetchRequest?.cancel();\n }\n }\n }\n\n disabledChanged() {\n if (this.disabled) {\n this.#currentFetchRequest?.cancel();\n } else if (this.loadingStyle == FrameLoadingStyle.eager) {\n this.#loadSourceURL();\n }\n }\n\n sourceURLChanged() {\n if (this.#isIgnoringChangesTo(\"src\")) return\n\n if (!this.sourceURL) {\n this.#currentFetchRequest?.cancel();\n }\n\n if (this.element.isConnected) {\n this.complete = false;\n }\n\n if (this.loadingStyle == FrameLoadingStyle.eager || this.#hasBeenLoaded) {\n this.#loadSourceURL();\n }\n }\n\n sourceURLReloaded() {\n const { refresh, src } = this.element;\n\n this.#shouldMorphFrame = src && refresh === \"morph\";\n\n this.element.removeAttribute(\"complete\");\n this.element.src = null;\n this.element.src = src;\n return this.element.loaded\n }\n\n loadingStyleChanged() {\n if (this.loadingStyle == FrameLoadingStyle.lazy) {\n this.appearanceObserver.start();\n } else {\n this.appearanceObserver.stop();\n this.#loadSourceURL();\n }\n }\n\n async #loadSourceURL() {\n if (this.enabled && this.isActive && !this.complete && this.sourceURL) {\n this.element.loaded = this.#visit(expandURL(this.sourceURL));\n this.appearanceObserver.stop();\n await this.element.loaded;\n this.#hasBeenLoaded = true;\n }\n }\n\n async loadResponse(fetchResponse) {\n if (fetchResponse.redirected || (fetchResponse.succeeded && fetchResponse.isHTML)) {\n this.sourceURL = fetchResponse.response.url;\n }\n\n try {\n const html = await fetchResponse.responseHTML;\n if (html) {\n const document = parseHTMLDocument(html);\n const pageSnapshot = PageSnapshot.fromDocument(document);\n\n if (pageSnapshot.isVisitable) {\n await this.#loadFrameResponse(fetchResponse, document);\n } else {\n await this.#handleUnvisitableFrameResponse(fetchResponse);\n }\n }\n } finally {\n this.#shouldMorphFrame = false;\n this.fetchResponseLoaded = () => Promise.resolve();\n }\n }\n\n // Appearance observer delegate\n\n elementAppearedInViewport(element) {\n this.proposeVisitIfNavigatedWithAction(element, getVisitAction(element));\n this.#loadSourceURL();\n }\n\n // Form link click observer delegate\n\n willSubmitFormLinkToLocation(link) {\n return this.#shouldInterceptNavigation(link)\n }\n\n submittedFormLinkToLocation(link, _location, form) {\n const frame = this.#findFrameElement(link);\n if (frame) form.setAttribute(\"data-turbo-frame\", frame.id);\n }\n\n // Link interceptor delegate\n\n shouldInterceptLinkClick(element, _location, _event) {\n return this.#shouldInterceptNavigation(element)\n }\n\n linkClickIntercepted(element, location) {\n this.#navigateFrame(element, location);\n }\n\n // Form submit observer delegate\n\n willSubmitForm(element, submitter) {\n return element.closest(\"turbo-frame\") == this.element && this.#shouldInterceptNavigation(element, submitter)\n }\n\n formSubmitted(element, submitter) {\n if (this.formSubmission) {\n this.formSubmission.stop();\n }\n\n this.formSubmission = new FormSubmission(this, element, submitter);\n\n const { fetchRequest } = this.formSubmission;\n const frame = this.#findFrameElement(element, submitter);\n\n this.prepareRequest(fetchRequest, frame);\n this.formSubmission.start();\n }\n\n // Fetch request delegate\n\n prepareRequest(request, frame = this) {\n request.headers[\"Turbo-Frame\"] = frame.id;\n\n if (this.currentNavigationElement?.hasAttribute(\"data-turbo-stream\")) {\n request.acceptResponseType(StreamMessage.contentType);\n }\n }\n\n requestStarted(_request) {\n markAsBusy(this.element);\n }\n\n requestPreventedHandlingResponse(_request, _response) {\n this.#resolveVisitPromise();\n }\n\n async requestSucceededWithResponse(request, response) {\n await this.loadResponse(response);\n this.#resolveVisitPromise();\n }\n\n async requestFailedWithResponse(request, response) {\n await this.loadResponse(response);\n this.#resolveVisitPromise();\n }\n\n requestErrored(request, error) {\n console.error(error);\n this.#resolveVisitPromise();\n }\n\n requestFinished(_request) {\n clearBusyState(this.element);\n }\n\n // Form submission delegate\n\n formSubmissionStarted({ formElement }) {\n markAsBusy(formElement, this.#findFrameElement(formElement));\n }\n\n formSubmissionSucceededWithResponse(formSubmission, response) {\n const frame = this.#findFrameElement(formSubmission.formElement, formSubmission.submitter);\n\n frame.delegate.proposeVisitIfNavigatedWithAction(frame, getVisitAction(formSubmission.submitter, formSubmission.formElement, frame));\n frame.delegate.loadResponse(response);\n\n if (!formSubmission.isSafe) {\n session.clearCache();\n }\n }\n\n formSubmissionFailedWithResponse(formSubmission, fetchResponse) {\n this.element.delegate.loadResponse(fetchResponse);\n session.clearCache();\n }\n\n formSubmissionErrored(formSubmission, error) {\n console.error(error);\n }\n\n formSubmissionFinished({ formElement }) {\n clearBusyState(formElement, this.#findFrameElement(formElement));\n }\n\n // View delegate\n\n allowsImmediateRender({ element: newFrame }, options) {\n const event = dispatch(\"turbo:before-frame-render\", {\n target: this.element,\n detail: { newFrame, ...options },\n cancelable: true\n });\n\n const {\n defaultPrevented,\n detail: { render }\n } = event;\n\n if (this.view.renderer && render) {\n this.view.renderer.renderElement = render;\n }\n\n return !defaultPrevented\n }\n\n viewRenderedSnapshot(_snapshot, _isPreview, _renderMethod) {}\n\n preloadOnLoadLinksForView(element) {\n session.preloadOnLoadLinksForView(element);\n }\n\n viewInvalidated() {}\n\n // Frame renderer delegate\n\n willRenderFrame(currentElement, _newElement) {\n this.previousFrameElement = currentElement.cloneNode(true);\n }\n\n visitCachedSnapshot = ({ element }) => {\n const frame = element.querySelector(\"#\" + this.element.id);\n\n if (frame && this.previousFrameElement) {\n frame.replaceChildren(...this.previousFrameElement.children);\n }\n\n delete this.previousFrameElement;\n }\n\n // Private\n\n async #loadFrameResponse(fetchResponse, document) {\n const newFrameElement = await this.extractForeignFrameElement(document.body);\n const rendererClass = this.#shouldMorphFrame ? MorphingFrameRenderer : FrameRenderer;\n\n if (newFrameElement) {\n const snapshot = new Snapshot(newFrameElement);\n const renderer = new rendererClass(this, this.view.snapshot, snapshot, false, false);\n if (this.view.renderPromise) await this.view.renderPromise;\n this.changeHistory();\n\n await this.view.render(renderer);\n this.complete = true;\n session.frameRendered(fetchResponse, this.element);\n session.frameLoaded(this.element);\n await this.fetchResponseLoaded(fetchResponse);\n } else if (this.#willHandleFrameMissingFromResponse(fetchResponse)) {\n this.#handleFrameMissingFromResponse(fetchResponse);\n }\n }\n\n async #visit(url) {\n const request = new FetchRequest(this, FetchMethod.get, url, new URLSearchParams(), this.element);\n\n this.#currentFetchRequest?.cancel();\n this.#currentFetchRequest = request;\n\n return new Promise((resolve) => {\n this.#resolveVisitPromise = () => {\n this.#resolveVisitPromise = () => {};\n this.#currentFetchRequest = null;\n resolve();\n };\n request.perform();\n })\n }\n\n #navigateFrame(element, url, submitter) {\n const frame = this.#findFrameElement(element, submitter);\n\n frame.delegate.proposeVisitIfNavigatedWithAction(frame, getVisitAction(submitter, element, frame));\n\n this.#withCurrentNavigationElement(element, () => {\n frame.src = url;\n });\n }\n\n proposeVisitIfNavigatedWithAction(frame, action = null) {\n this.action = action;\n\n if (this.action) {\n const pageSnapshot = PageSnapshot.fromElement(frame).clone();\n const { visitCachedSnapshot } = frame.delegate;\n\n frame.delegate.fetchResponseLoaded = async (fetchResponse) => {\n if (frame.src) {\n const { statusCode, redirected } = fetchResponse;\n const responseHTML = await fetchResponse.responseHTML;\n const response = { statusCode, redirected, responseHTML };\n const options = {\n response,\n visitCachedSnapshot,\n willRender: false,\n updateHistory: false,\n restorationIdentifier: this.restorationIdentifier,\n snapshot: pageSnapshot\n };\n\n if (this.action) options.action = this.action;\n\n session.visit(frame.src, options);\n }\n };\n }\n }\n\n changeHistory() {\n if (this.action) {\n const method = getHistoryMethodForAction(this.action);\n session.history.update(method, expandURL(this.element.src || \"\"), this.restorationIdentifier);\n }\n }\n\n async #handleUnvisitableFrameResponse(fetchResponse) {\n console.warn(\n `The response (${fetchResponse.statusCode}) from is performing a full page visit due to turbo-visit-control.`\n );\n\n await this.#visitResponse(fetchResponse.response);\n }\n\n #willHandleFrameMissingFromResponse(fetchResponse) {\n this.element.setAttribute(\"complete\", \"\");\n\n const response = fetchResponse.response;\n const visit = async (url, options) => {\n if (url instanceof Response) {\n this.#visitResponse(url);\n } else {\n session.visit(url, options);\n }\n };\n\n const event = dispatch(\"turbo:frame-missing\", {\n target: this.element,\n detail: { response, visit },\n cancelable: true\n });\n\n return !event.defaultPrevented\n }\n\n #handleFrameMissingFromResponse(fetchResponse) {\n this.view.missing();\n this.#throwFrameMissingError(fetchResponse);\n }\n\n #throwFrameMissingError(fetchResponse) {\n const message = `The response (${fetchResponse.statusCode}) did not contain the expected and will be ignored. To perform a full page visit instead, set turbo-visit-control to reload.`;\n throw new TurboFrameMissingError(message)\n }\n\n async #visitResponse(response) {\n const wrapped = new FetchResponse(response);\n const responseHTML = await wrapped.responseHTML;\n const { location, redirected, statusCode } = wrapped;\n\n return session.visit(location, { response: { redirected, statusCode, responseHTML } })\n }\n\n #findFrameElement(element, submitter) {\n const id = getAttribute(\"data-turbo-frame\", submitter, element) || this.element.getAttribute(\"target\");\n const target = this.#getFrameElementById(id);\n\n return target instanceof FrameElement ? target : this.element\n }\n\n async extractForeignFrameElement(container) {\n let element;\n const id = CSS.escape(this.id);\n\n try {\n element = activateElement(container.querySelector(`turbo-frame#${id}`), this.sourceURL);\n if (element) {\n return element\n }\n\n element = activateElement(container.querySelector(`turbo-frame[src][recurse~=${id}]`), this.sourceURL);\n if (element) {\n await element.loaded;\n return await this.extractForeignFrameElement(element)\n }\n } catch (error) {\n console.error(error);\n return new FrameElement()\n }\n\n return null\n }\n\n #formActionIsVisitable(form, submitter) {\n const action = getAction$1(form, submitter);\n\n return locationIsVisitable(expandURL(action), this.rootLocation)\n }\n\n #shouldInterceptNavigation(element, submitter) {\n const id = getAttribute(\"data-turbo-frame\", submitter, element) || this.element.getAttribute(\"target\");\n\n if (element instanceof HTMLFormElement && !this.#formActionIsVisitable(element, submitter)) {\n return false\n }\n\n if (!this.enabled || id == \"_top\") {\n return false\n }\n\n if (id) {\n const frameElement = this.#getFrameElementById(id);\n if (frameElement) {\n return !frameElement.disabled\n } else if (id == \"_parent\") {\n return false\n }\n }\n\n if (!session.elementIsNavigatable(element)) {\n return false\n }\n\n if (submitter && !session.elementIsNavigatable(submitter)) {\n return false\n }\n\n return true\n }\n\n // Computed properties\n\n get id() {\n return this.element.id\n }\n\n get disabled() {\n return this.element.disabled\n }\n\n get enabled() {\n return !this.disabled\n }\n\n get sourceURL() {\n if (this.element.src) {\n return this.element.src\n }\n }\n\n set sourceURL(sourceURL) {\n this.#ignoringChangesToAttribute(\"src\", () => {\n this.element.src = sourceURL ?? null;\n });\n }\n\n get loadingStyle() {\n return this.element.loading\n }\n\n get isLoading() {\n return this.formSubmission !== undefined || this.#resolveVisitPromise() !== undefined\n }\n\n get complete() {\n return this.element.hasAttribute(\"complete\")\n }\n\n set complete(value) {\n if (value) {\n this.element.setAttribute(\"complete\", \"\");\n } else {\n this.element.removeAttribute(\"complete\");\n }\n }\n\n get isActive() {\n return this.element.isActive && this.#connected\n }\n\n get rootLocation() {\n const meta = this.element.ownerDocument.querySelector(`meta[name=\"turbo-root\"]`);\n const root = meta?.content ?? \"/\";\n return expandURL(root)\n }\n\n #isIgnoringChangesTo(attributeName) {\n return this.#ignoredAttributes.has(attributeName)\n }\n\n #ignoringChangesToAttribute(attributeName, callback) {\n this.#ignoredAttributes.add(attributeName);\n callback();\n this.#ignoredAttributes.delete(attributeName);\n }\n\n #withCurrentNavigationElement(element, callback) {\n this.currentNavigationElement = element;\n callback();\n delete this.currentNavigationElement;\n }\n\n #getFrameElementById(id) {\n if (id != null) {\n const element = id === \"_parent\" ?\n this.element.parentElement.closest(\"turbo-frame\") :\n document.getElementById(id);\n if (element instanceof FrameElement) {\n return element\n }\n }\n }\n}\n\nfunction activateElement(element, currentURL) {\n if (element) {\n const src = element.getAttribute(\"src\");\n if (src != null && currentURL != null && urlsAreEqual(src, currentURL)) {\n throw new Error(`Matching element has a source URL which references itself`)\n }\n if (element.ownerDocument !== document) {\n element = document.importNode(element, true);\n }\n\n if (element instanceof FrameElement) {\n element.connectedCallback();\n element.disconnectedCallback();\n return element\n }\n }\n}\n\nconst StreamActions = {\n after() {\n this.removeDuplicateTargetSiblings();\n this.targetElements.forEach((e) => e.parentElement?.insertBefore(this.templateContent, e.nextSibling));\n },\n\n append() {\n this.removeDuplicateTargetChildren();\n this.targetElements.forEach((e) => e.append(this.templateContent));\n },\n\n before() {\n this.removeDuplicateTargetSiblings();\n this.targetElements.forEach((e) => e.parentElement?.insertBefore(this.templateContent, e));\n },\n\n prepend() {\n this.removeDuplicateTargetChildren();\n this.targetElements.forEach((e) => e.prepend(this.templateContent));\n },\n\n remove() {\n this.targetElements.forEach((e) => e.remove());\n },\n\n replace() {\n const method = this.getAttribute(\"method\");\n\n this.targetElements.forEach((targetElement) => {\n if (method === \"morph\") {\n morphElements(targetElement, this.templateContent);\n } else {\n targetElement.replaceWith(this.templateContent);\n }\n });\n },\n\n update() {\n const method = this.getAttribute(\"method\");\n\n this.targetElements.forEach((targetElement) => {\n if (method === \"morph\") {\n morphChildren(targetElement, this.templateContent);\n } else {\n targetElement.innerHTML = \"\";\n targetElement.append(this.templateContent);\n }\n });\n },\n\n refresh() {\n const method = this.getAttribute(\"method\");\n const requestId = this.requestId;\n const scroll = this.getAttribute(\"scroll\");\n\n session.refresh(this.baseURI, { method, requestId, scroll });\n }\n};\n\n//