@slicemachine/manager 0.26.3-beta.1 → 0.26.3-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (116) hide show
  1. package/dist/_node_modules/@amplitude/analytics-node/lib/esm/transports/http.cjs +6 -6
  2. package/dist/_node_modules/@amplitude/analytics-node/lib/esm/transports/http.js +4 -4
  3. package/dist/_node_modules/@amplitude/analytics-node/lib/esm/transports/http.js.map +1 -1
  4. package/dist/_node_modules/@amplitude/experiment-node-server/dist/src/transport/http.cjs +4 -4
  5. package/dist/_node_modules/@amplitude/experiment-node-server/dist/src/transport/http.cjs.map +1 -1
  6. package/dist/_node_modules/@amplitude/experiment-node-server/dist/src/transport/http.js +4 -4
  7. package/dist/_node_modules/@amplitude/experiment-node-server/dist/src/transport/http.js.map +1 -1
  8. package/dist/errors.cjs +7 -0
  9. package/dist/errors.cjs.map +1 -1
  10. package/dist/errors.d.ts +5 -1
  11. package/dist/errors.js +7 -0
  12. package/dist/errors.js.map +1 -1
  13. package/dist/index.cjs +1 -0
  14. package/dist/index.cjs.map +1 -1
  15. package/dist/index.d.ts +1 -1
  16. package/dist/index.js +2 -1
  17. package/dist/managers/customTypes/CustomTypesManager.cjs +17 -7
  18. package/dist/managers/customTypes/CustomTypesManager.cjs.map +1 -1
  19. package/dist/managers/customTypes/CustomTypesManager.js +19 -9
  20. package/dist/managers/customTypes/CustomTypesManager.js.map +1 -1
  21. package/package.json +2 -2
  22. package/src/errors.ts +12 -1
  23. package/src/index.ts +1 -0
  24. package/src/managers/customTypes/CustomTypesManager.ts +29 -18
  25. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/constants.cjs +0 -5
  26. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/constants.cjs.map +0 -1
  27. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/constants.js +0 -5
  28. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/constants.js.map +0 -1
  29. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/debug-build.cjs +0 -5
  30. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/debug-build.cjs.map +0 -1
  31. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/debug-build.js +0 -5
  32. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/debug-build.js.map +0 -1
  33. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/eventProcessors.cjs +0 -29
  34. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/eventProcessors.cjs.map +0 -1
  35. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/eventProcessors.js +0 -29
  36. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/eventProcessors.js.map +0 -1
  37. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/exports.cjs +0 -17
  38. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/exports.cjs.map +0 -1
  39. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/exports.js +0 -17
  40. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/exports.js.map +0 -1
  41. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/hub.cjs +0 -535
  42. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/hub.cjs.map +0 -1
  43. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/hub.js +0 -535
  44. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/hub.js.map +0 -1
  45. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/scope.cjs +0 -545
  46. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/scope.cjs.map +0 -1
  47. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/scope.js +0 -545
  48. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/scope.js.map +0 -1
  49. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/session.cjs +0 -109
  50. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/session.cjs.map +0 -1
  51. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/session.js +0 -109
  52. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/session.js.map +0 -1
  53. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/tracing/dynamicSamplingContext.cjs +0 -50
  54. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/tracing/dynamicSamplingContext.cjs.map +0 -1
  55. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/tracing/dynamicSamplingContext.js +0 -50
  56. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/tracing/dynamicSamplingContext.js.map +0 -1
  57. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/utils/applyScopeDataToEvent.cjs +0 -85
  58. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/utils/applyScopeDataToEvent.cjs.map +0 -1
  59. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/utils/applyScopeDataToEvent.js +0 -85
  60. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/utils/applyScopeDataToEvent.js.map +0 -1
  61. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/utils/getRootSpan.cjs +0 -7
  62. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/utils/getRootSpan.cjs.map +0 -1
  63. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/utils/getRootSpan.js +0 -7
  64. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/utils/getRootSpan.js.map +0 -1
  65. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/utils/prepareEvent.cjs +0 -35
  66. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/utils/prepareEvent.cjs.map +0 -1
  67. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/utils/prepareEvent.js +0 -35
  68. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/utils/prepareEvent.js.map +0 -1
  69. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/utils/spanUtils.cjs +0 -39
  70. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/utils/spanUtils.cjs.map +0 -1
  71. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/utils/spanUtils.js +0 -39
  72. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/utils/spanUtils.js.map +0 -1
  73. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/version.cjs +0 -5
  74. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/version.cjs.map +0 -1
  75. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/version.js +0 -5
  76. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/core/esm/version.js.map +0 -1
  77. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/debug-build.cjs +0 -5
  78. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/debug-build.cjs.map +0 -1
  79. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/debug-build.js +0 -5
  80. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/debug-build.js.map +0 -1
  81. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/is.cjs +0 -15
  82. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/is.cjs.map +0 -1
  83. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/is.js +0 -15
  84. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/is.js.map +0 -1
  85. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/logger.cjs +0 -69
  86. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/logger.cjs.map +0 -1
  87. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/logger.js +0 -69
  88. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/logger.js.map +0 -1
  89. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/misc.cjs +0 -34
  90. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/misc.cjs.map +0 -1
  91. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/misc.js +0 -34
  92. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/misc.js.map +0 -1
  93. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/object.cjs +0 -49
  94. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/object.cjs.map +0 -1
  95. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/object.js +0 -49
  96. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/object.js.map +0 -1
  97. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/syncpromise.cjs +0 -142
  98. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/syncpromise.cjs.map +0 -1
  99. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/syncpromise.js +0 -142
  100. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/syncpromise.js.map +0 -1
  101. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/time.cjs +0 -45
  102. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/time.cjs.map +0 -1
  103. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/time.js +0 -45
  104. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/time.js.map +0 -1
  105. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/worldwide.cjs +0 -18
  106. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/worldwide.cjs.map +0 -1
  107. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/worldwide.js +0 -18
  108. package/dist/_node_modules/@sentry/node/_node_modules/@sentry/utils/esm/worldwide.js.map +0 -1
  109. package/dist/lib/checkIsSentryEnabled.d.ts +0 -9
  110. package/dist/lib/sentryErrorHandlers.cjs +0 -10
  111. package/dist/lib/sentryErrorHandlers.cjs.map +0 -1
  112. package/dist/lib/sentryErrorHandlers.d.ts +0 -1
  113. package/dist/lib/sentryErrorHandlers.js +0 -10
  114. package/dist/lib/sentryErrorHandlers.js.map +0 -1
  115. package/src/lib/checkIsSentryEnabled.ts +0 -12
  116. package/src/lib/sentryErrorHandlers.ts +0 -13
@@ -1 +0,0 @@
1
- {"version":3,"file":"hub.cjs","sources":["../../../../../../../../../../node_modules/@sentry/node/node_modules/@sentry/core/esm/hub.js"],"sourcesContent":["import { isThenable, uuid4, dateTimestampInSeconds, consoleSandbox, logger, GLOBAL_OBJ, getGlobalSingleton } from '@sentry/utils';\nimport { DEFAULT_ENVIRONMENT } from './constants.js';\nimport { DEBUG_BUILD } from './debug-build.js';\nimport { Scope } from './scope.js';\nimport { closeSession, makeSession, updateSession } from './session.js';\nimport { SDK_VERSION } from './version.js';\n\n/**\n * API compatibility version of this hub.\n *\n * WARNING: This number should only be increased when the global interface\n * changes and new methods are introduced.\n *\n * @hidden\n */\nconst API_VERSION = parseFloat(SDK_VERSION);\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 * @deprecated The `Hub` class will be removed in version 8 of the SDK in favour of `Scope` and `Client` objects.\n *\n * If you previously used the `Hub` class directly, replace it with `Scope` and `Client` objects. More information:\n * - [Multiple Sentry Instances](https://docs.sentry.io/platforms/javascript/best-practices/multiple-sentry-instances/)\n * - [Browser Extensions](https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/)\n *\n * Some of our APIs are typed with the Hub class instead of the interface (e.g. `getCurrentHub`). Most of them are deprecated\n * themselves and will also be removed in version 8. More information:\n * - [Migration Guide](https://github.com/getsentry/sentry-javascript/blob/develop/MIGRATION.md#deprecate-hub)\n */\n// eslint-disable-next-line deprecation/deprecation\nclass Hub {\n /** Is a {@link Layer}[] containing the client and scope */\n\n /** Contains the last event id of a captured event. */\n\n /**\n * Creates a new instance of the hub, will push one {@link Layer} into the\n * internal stack on creation.\n *\n * @param client bound to the hub.\n * @param scope bound to the hub.\n * @param version number, higher number means higher priority.\n *\n * @deprecated Instantiation of Hub objects is deprecated and the constructor will be removed in version 8 of the SDK.\n *\n * If you are currently using the Hub for multi-client use like so:\n *\n * ```\n * // OLD\n * const hub = new Hub();\n * hub.bindClient(client);\n * makeMain(hub)\n * ```\n *\n * instead initialize the client as follows:\n *\n * ```\n * // NEW\n * Sentry.withIsolationScope(() => {\n * Sentry.setCurrentClient(client);\n * client.init();\n * });\n * ```\n *\n * If you are using the Hub to capture events like so:\n *\n * ```\n * // OLD\n * const client = new Client();\n * const hub = new Hub(client);\n * hub.captureException()\n * ```\n *\n * instead capture isolated events as follows:\n *\n * ```\n * // NEW\n * const client = new Client();\n * const scope = new Scope();\n * scope.setClient(client);\n * scope.captureException();\n * ```\n */\n constructor(\n client,\n scope,\n isolationScope,\n _version = API_VERSION,\n ) {this._version = _version;\n let assignedScope;\n if (!scope) {\n assignedScope = new Scope();\n assignedScope.setClient(client);\n } else {\n assignedScope = scope;\n }\n\n let assignedIsolationScope;\n if (!isolationScope) {\n assignedIsolationScope = new Scope();\n assignedIsolationScope.setClient(client);\n } else {\n assignedIsolationScope = isolationScope;\n }\n\n this._stack = [{ scope: assignedScope }];\n\n if (client) {\n // eslint-disable-next-line deprecation/deprecation\n this.bindClient(client);\n }\n\n this._isolationScope = assignedIsolationScope;\n }\n\n /**\n * Checks if this hub's version is older than the given version.\n *\n * @param version A version number to compare to.\n * @return True if the given version is newer; otherwise false.\n *\n * @deprecated This will be removed in v8.\n */\n isOlderThan(version) {\n return this._version < version;\n }\n\n /**\n * This binds the given client to the current scope.\n * @param client An SDK client (client) instance.\n *\n * @deprecated Use `initAndBind()` directly, or `setCurrentClient()` and/or `client.init()` instead.\n */\n bindClient(client) {\n // eslint-disable-next-line deprecation/deprecation\n const top = this.getStackTop();\n top.client = client;\n top.scope.setClient(client);\n // eslint-disable-next-line deprecation/deprecation\n if (client && client.setupIntegrations) {\n // eslint-disable-next-line deprecation/deprecation\n client.setupIntegrations();\n }\n }\n\n /**\n * @inheritDoc\n *\n * @deprecated Use `withScope` instead.\n */\n pushScope() {\n // We want to clone the content of prev scope\n // eslint-disable-next-line deprecation/deprecation\n const scope = this.getScope().clone();\n // eslint-disable-next-line deprecation/deprecation\n this.getStack().push({\n // eslint-disable-next-line deprecation/deprecation\n client: this.getClient(),\n scope,\n });\n return scope;\n }\n\n /**\n * @inheritDoc\n *\n * @deprecated Use `withScope` instead.\n */\n popScope() {\n // eslint-disable-next-line deprecation/deprecation\n if (this.getStack().length <= 1) return false;\n // eslint-disable-next-line deprecation/deprecation\n return !!this.getStack().pop();\n }\n\n /**\n * @inheritDoc\n *\n * @deprecated Use `Sentry.withScope()` instead.\n */\n withScope(callback) {\n // eslint-disable-next-line deprecation/deprecation\n const scope = this.pushScope();\n\n let maybePromiseResult;\n try {\n maybePromiseResult = callback(scope);\n } catch (e) {\n // eslint-disable-next-line deprecation/deprecation\n this.popScope();\n throw e;\n }\n\n if (isThenable(maybePromiseResult)) {\n // @ts-expect-error - isThenable returns the wrong type\n return maybePromiseResult.then(\n res => {\n // eslint-disable-next-line deprecation/deprecation\n this.popScope();\n return res;\n },\n e => {\n // eslint-disable-next-line deprecation/deprecation\n this.popScope();\n throw e;\n },\n );\n }\n\n // eslint-disable-next-line deprecation/deprecation\n this.popScope();\n return maybePromiseResult;\n }\n\n /**\n * @inheritDoc\n *\n * @deprecated Use `Sentry.getClient()` instead.\n */\n getClient() {\n // eslint-disable-next-line deprecation/deprecation\n return this.getStackTop().client ;\n }\n\n /**\n * Returns the scope of the top stack.\n *\n * @deprecated Use `Sentry.getCurrentScope()` instead.\n */\n getScope() {\n // eslint-disable-next-line deprecation/deprecation\n return this.getStackTop().scope;\n }\n\n /**\n * @deprecated Use `Sentry.getIsolationScope()` instead.\n */\n getIsolationScope() {\n return this._isolationScope;\n }\n\n /**\n * Returns the scope stack for domains or the process.\n * @deprecated This will be removed in v8.\n */\n getStack() {\n return this._stack;\n }\n\n /**\n * Returns the topmost scope layer in the order domain > local > process.\n * @deprecated This will be removed in v8.\n */\n getStackTop() {\n return this._stack[this._stack.length - 1];\n }\n\n /**\n * @inheritDoc\n *\n * @deprecated Use `Sentry.captureException()` instead.\n */\n captureException(exception, hint) {\n const eventId = (this._lastEventId = hint && hint.event_id ? hint.event_id : uuid4());\n const syntheticException = new Error('Sentry syntheticException');\n // eslint-disable-next-line deprecation/deprecation\n this.getScope().captureException(exception, {\n originalException: exception,\n syntheticException,\n ...hint,\n event_id: eventId,\n });\n\n return eventId;\n }\n\n /**\n * @inheritDoc\n *\n * @deprecated Use `Sentry.captureMessage()` instead.\n */\n captureMessage(\n message,\n // eslint-disable-next-line deprecation/deprecation\n level,\n hint,\n ) {\n const eventId = (this._lastEventId = hint && hint.event_id ? hint.event_id : uuid4());\n const syntheticException = new Error(message);\n // eslint-disable-next-line deprecation/deprecation\n this.getScope().captureMessage(message, level, {\n originalException: message,\n syntheticException,\n ...hint,\n event_id: eventId,\n });\n\n return eventId;\n }\n\n /**\n * @inheritDoc\n *\n * @deprecated Use `Sentry.captureEvent()` instead.\n */\n captureEvent(event, hint) {\n const eventId = hint && hint.event_id ? hint.event_id : uuid4();\n if (!event.type) {\n this._lastEventId = eventId;\n }\n // eslint-disable-next-line deprecation/deprecation\n this.getScope().captureEvent(event, { ...hint, event_id: eventId });\n return eventId;\n }\n\n /**\n * @inheritDoc\n *\n * @deprecated This will be removed in v8.\n */\n lastEventId() {\n return this._lastEventId;\n }\n\n /**\n * @inheritDoc\n *\n * @deprecated Use `Sentry.addBreadcrumb()` instead.\n */\n addBreadcrumb(breadcrumb, hint) {\n // eslint-disable-next-line deprecation/deprecation\n const { scope, client } = this.getStackTop();\n\n if (!client) return;\n\n const { beforeBreadcrumb = null, maxBreadcrumbs = DEFAULT_BREADCRUMBS } =\n (client.getOptions && client.getOptions()) || {};\n\n if (maxBreadcrumbs <= 0) return;\n\n const timestamp = dateTimestampInSeconds();\n const mergedBreadcrumb = { timestamp, ...breadcrumb };\n const finalBreadcrumb = beforeBreadcrumb\n ? (consoleSandbox(() => beforeBreadcrumb(mergedBreadcrumb, hint)) )\n : mergedBreadcrumb;\n\n if (finalBreadcrumb === null) return;\n\n if (client.emit) {\n client.emit('beforeAddBreadcrumb', finalBreadcrumb, hint);\n }\n\n // TODO(v8): I know this comment doesn't make much sense because the hub will be deprecated but I still wanted to\n // write it down. In theory, we would have to add the breadcrumbs to the isolation scope here, however, that would\n // duplicate all of the breadcrumbs. There was the possibility of adding breadcrumbs to both, the isolation scope\n // and the normal scope, and deduplicating it down the line in the event processing pipeline. However, that would\n // have been very fragile, because the breadcrumb objects would have needed to keep their identity all throughout\n // the event processing pipeline.\n // In the new implementation, the top level `Sentry.addBreadcrumb()` should ONLY write to the isolation scope.\n\n scope.addBreadcrumb(finalBreadcrumb, maxBreadcrumbs);\n }\n\n /**\n * @inheritDoc\n * @deprecated Use `Sentry.setUser()` instead.\n */\n setUser(user) {\n // TODO(v8): The top level `Sentry.setUser()` function should write ONLY to the isolation scope.\n // eslint-disable-next-line deprecation/deprecation\n this.getScope().setUser(user);\n // eslint-disable-next-line deprecation/deprecation\n this.getIsolationScope().setUser(user);\n }\n\n /**\n * @inheritDoc\n * @deprecated Use `Sentry.setTags()` instead.\n */\n setTags(tags) {\n // TODO(v8): The top level `Sentry.setTags()` function should write ONLY to the isolation scope.\n // eslint-disable-next-line deprecation/deprecation\n this.getScope().setTags(tags);\n // eslint-disable-next-line deprecation/deprecation\n this.getIsolationScope().setTags(tags);\n }\n\n /**\n * @inheritDoc\n * @deprecated Use `Sentry.setExtras()` instead.\n */\n setExtras(extras) {\n // TODO(v8): The top level `Sentry.setExtras()` function should write ONLY to the isolation scope.\n // eslint-disable-next-line deprecation/deprecation\n this.getScope().setExtras(extras);\n // eslint-disable-next-line deprecation/deprecation\n this.getIsolationScope().setExtras(extras);\n }\n\n /**\n * @inheritDoc\n * @deprecated Use `Sentry.setTag()` instead.\n */\n setTag(key, value) {\n // TODO(v8): The top level `Sentry.setTag()` function should write ONLY to the isolation scope.\n // eslint-disable-next-line deprecation/deprecation\n this.getScope().setTag(key, value);\n // eslint-disable-next-line deprecation/deprecation\n this.getIsolationScope().setTag(key, value);\n }\n\n /**\n * @inheritDoc\n * @deprecated Use `Sentry.setExtra()` instead.\n */\n setExtra(key, extra) {\n // TODO(v8): The top level `Sentry.setExtra()` function should write ONLY to the isolation scope.\n // eslint-disable-next-line deprecation/deprecation\n this.getScope().setExtra(key, extra);\n // eslint-disable-next-line deprecation/deprecation\n this.getIsolationScope().setExtra(key, extra);\n }\n\n /**\n * @inheritDoc\n * @deprecated Use `Sentry.setContext()` instead.\n */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n setContext(name, context) {\n // TODO(v8): The top level `Sentry.setContext()` function should write ONLY to the isolation scope.\n // eslint-disable-next-line deprecation/deprecation\n this.getScope().setContext(name, context);\n // eslint-disable-next-line deprecation/deprecation\n this.getIsolationScope().setContext(name, context);\n }\n\n /**\n * @inheritDoc\n *\n * @deprecated Use `getScope()` directly.\n */\n configureScope(callback) {\n // eslint-disable-next-line deprecation/deprecation\n const { scope, client } = this.getStackTop();\n if (client) {\n callback(scope);\n }\n }\n\n /**\n * @inheritDoc\n */\n // eslint-disable-next-line deprecation/deprecation\n run(callback) {\n // eslint-disable-next-line deprecation/deprecation\n const oldHub = makeMain(this);\n try {\n callback(this);\n } finally {\n // eslint-disable-next-line deprecation/deprecation\n makeMain(oldHub);\n }\n }\n\n /**\n * @inheritDoc\n * @deprecated Use `Sentry.getClient().getIntegrationByName()` instead.\n */\n getIntegration(integration) {\n // eslint-disable-next-line deprecation/deprecation\n const client = this.getClient();\n if (!client) return null;\n try {\n // eslint-disable-next-line deprecation/deprecation\n return client.getIntegration(integration);\n } catch (_oO) {\n DEBUG_BUILD && logger.warn(`Cannot retrieve integration ${integration.id} from the current Hub`);\n return null;\n }\n }\n\n /**\n * Starts a new `Transaction` and returns it. This is the entry point to manual tracing instrumentation.\n *\n * A tree structure can be built by adding child spans to the transaction, and child spans to other spans. To start a\n * new child span within the transaction or any span, call the respective `.startChild()` method.\n *\n * Every child span must be finished before the transaction is finished, otherwise the unfinished spans are discarded.\n *\n * The transaction must be finished with a call to its `.end()` method, at which point the transaction with all its\n * finished child spans will be sent to Sentry.\n *\n * @param context Properties of the new `Transaction`.\n * @param customSamplingContext Information given to the transaction sampling function (along with context-dependent\n * default values). See {@link Options.tracesSampler}.\n *\n * @returns The transaction which was just started\n *\n * @deprecated Use `startSpan()`, `startSpanManual()` or `startInactiveSpan()` instead.\n */\n startTransaction(context, customSamplingContext) {\n const result = this._callExtensionMethod('startTransaction', context, customSamplingContext);\n\n if (DEBUG_BUILD && !result) {\n // eslint-disable-next-line deprecation/deprecation\n const client = this.getClient();\n if (!client) {\n logger.warn(\n \"Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'\",\n );\n } else {\n logger.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':\nSentry.addTracingExtensions();\nSentry.init({...});\n`);\n }\n }\n\n return result;\n }\n\n /**\n * @inheritDoc\n * @deprecated Use `spanToTraceHeader()` instead.\n */\n traceHeaders() {\n return this._callExtensionMethod('traceHeaders');\n }\n\n /**\n * @inheritDoc\n *\n * @deprecated Use top level `captureSession` instead.\n */\n captureSession(endSession = false) {\n // both send the update and pull the session from the scope\n if (endSession) {\n // eslint-disable-next-line deprecation/deprecation\n return this.endSession();\n }\n\n // only send the update\n this._sendSessionUpdate();\n }\n\n /**\n * @inheritDoc\n * @deprecated Use top level `endSession` instead.\n */\n endSession() {\n // eslint-disable-next-line deprecation/deprecation\n const layer = this.getStackTop();\n const scope = layer.scope;\n const session = scope.getSession();\n if (session) {\n closeSession(session);\n }\n this._sendSessionUpdate();\n\n // the session is over; take it off of the scope\n scope.setSession();\n }\n\n /**\n * @inheritDoc\n * @deprecated Use top level `startSession` instead.\n */\n startSession(context) {\n // eslint-disable-next-line deprecation/deprecation\n const { scope, client } = this.getStackTop();\n const { release, environment = DEFAULT_ENVIRONMENT } = (client && client.getOptions()) || {};\n\n // Will fetch userAgent if called from browser sdk\n const { userAgent } = GLOBAL_OBJ.navigator || {};\n\n const session = makeSession({\n release,\n environment,\n user: scope.getUser(),\n ...(userAgent && { userAgent }),\n ...context,\n });\n\n // End existing session if there's one\n const currentSession = scope.getSession && scope.getSession();\n if (currentSession && currentSession.status === 'ok') {\n updateSession(currentSession, { status: 'exited' });\n }\n // eslint-disable-next-line deprecation/deprecation\n this.endSession();\n\n // Afterwards we set the new session on the scope\n scope.setSession(session);\n\n return session;\n }\n\n /**\n * Returns if default PII should be sent to Sentry and propagated in ourgoing requests\n * when Tracing is used.\n *\n * @deprecated Use top-level `getClient().getOptions().sendDefaultPii` instead. This function\n * only unnecessarily increased API surface but only wrapped accessing the option.\n */\n shouldSendDefaultPii() {\n // eslint-disable-next-line deprecation/deprecation\n const client = this.getClient();\n const options = client && client.getOptions();\n return Boolean(options && options.sendDefaultPii);\n }\n\n /**\n * Sends the current Session on the scope\n */\n _sendSessionUpdate() {\n // eslint-disable-next-line deprecation/deprecation\n const { scope, client } = this.getStackTop();\n\n const session = scope.getSession();\n if (session && client && client.captureSession) {\n client.captureSession(session);\n }\n }\n\n /**\n * Calls global extension method and binding current instance to the function call\n */\n // @ts-expect-error Function lacks ending return statement and return type does not include 'undefined'. ts(2366)\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n _callExtensionMethod(method, ...args) {\n const carrier = getMainCarrier();\n const sentry = carrier.__SENTRY__;\n if (sentry && sentry.extensions && typeof sentry.extensions[method] === 'function') {\n return sentry.extensions[method].apply(this, args);\n }\n DEBUG_BUILD && logger.warn(`Extension method ${method} couldn't be found, doing nothing.`);\n }\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 **/\nfunction getMainCarrier() {\n GLOBAL_OBJ.__SENTRY__ = GLOBAL_OBJ.__SENTRY__ || {\n extensions: {},\n hub: undefined,\n };\n return GLOBAL_OBJ;\n}\n\n/**\n * Replaces the current main hub with the passed one on the global object\n *\n * @returns The old replaced hub\n *\n * @deprecated Use `setCurrentClient()` instead.\n */\n// eslint-disable-next-line deprecation/deprecation\nfunction makeMain(hub) {\n const registry = getMainCarrier();\n const oldHub = getHubFromCarrier(registry);\n setHubOnCarrier(registry, hub);\n return oldHub;\n}\n\n/**\n * Returns the default hub instance.\n *\n * If a hub is already registered in the global carrier but this module\n * contains a more recent version, it replaces the registered version.\n * Otherwise, the currently registered hub will be returned.\n *\n * @deprecated Use the respective replacement method directly instead.\n */\n// eslint-disable-next-line deprecation/deprecation\nfunction getCurrentHub() {\n // Get main carrier (global for every environment)\n const registry = getMainCarrier();\n\n if (registry.__SENTRY__ && registry.__SENTRY__.acs) {\n const hub = registry.__SENTRY__.acs.getCurrentHub();\n\n if (hub) {\n return hub;\n }\n }\n\n // Return hub that lives on a global object\n return getGlobalHub(registry);\n}\n\n/**\n * Get the currently active isolation scope.\n * The isolation scope is active for the current exection context,\n * meaning that it will remain stable for the same Hub.\n */\nfunction getIsolationScope() {\n // eslint-disable-next-line deprecation/deprecation\n return getCurrentHub().getIsolationScope();\n}\n\n// eslint-disable-next-line deprecation/deprecation\nfunction getGlobalHub(registry = getMainCarrier()) {\n // If there's no hub, or its an old API, assign a new one\n\n if (\n !hasHubOnCarrier(registry) ||\n // eslint-disable-next-line deprecation/deprecation\n getHubFromCarrier(registry).isOlderThan(API_VERSION)\n ) {\n // eslint-disable-next-line deprecation/deprecation\n setHubOnCarrier(registry, new Hub());\n }\n\n // Return hub that lives on a global object\n return getHubFromCarrier(registry);\n}\n\n/**\n * @private Private API with no semver guarantees!\n *\n * If the carrier does not contain a hub, a new hub is created with the global hub client and scope.\n */\n// eslint-disable-next-line deprecation/deprecation\nfunction ensureHubOnCarrier(carrier, parent = getGlobalHub()) {\n // If there's no hub on current domain, or it's an old API, assign a new one\n if (\n !hasHubOnCarrier(carrier) ||\n // eslint-disable-next-line deprecation/deprecation\n getHubFromCarrier(carrier).isOlderThan(API_VERSION)\n ) {\n // eslint-disable-next-line deprecation/deprecation\n const client = parent.getClient();\n // eslint-disable-next-line deprecation/deprecation\n const scope = parent.getScope();\n // eslint-disable-next-line deprecation/deprecation\n const isolationScope = parent.getIsolationScope();\n // eslint-disable-next-line deprecation/deprecation\n setHubOnCarrier(carrier, new Hub(client, scope.clone(), isolationScope.clone()));\n }\n}\n\n/**\n * @private Private API with no semver guarantees!\n *\n * Sets the global async context strategy\n */\nfunction setAsyncContextStrategy(strategy) {\n // Get main carrier (global for every environment)\n const registry = getMainCarrier();\n registry.__SENTRY__ = registry.__SENTRY__ || {};\n registry.__SENTRY__.acs = strategy;\n}\n\n/**\n * Runs the supplied callback in its own async context. Async Context strategies are defined per SDK.\n *\n * @param callback The callback to run in its own async context\n * @param options Options to pass to the async context strategy\n * @returns The result of the callback\n */\nfunction runWithAsyncContext(callback, options = {}) {\n const registry = getMainCarrier();\n\n if (registry.__SENTRY__ && registry.__SENTRY__.acs) {\n return registry.__SENTRY__.acs.runWithAsyncContext(callback, options);\n }\n\n // if there was no strategy, fallback to just calling the callback\n return callback();\n}\n\n/**\n * This will tell whether a carrier has a hub on it or not\n * @param carrier object\n */\nfunction hasHubOnCarrier(carrier) {\n return !!(carrier && carrier.__SENTRY__ && carrier.__SENTRY__.hub);\n}\n\n/**\n * This will create a new {@link Hub} and add to the passed object on\n * __SENTRY__.hub.\n * @param carrier object\n * @hidden\n */\n// eslint-disable-next-line deprecation/deprecation\nfunction getHubFromCarrier(carrier) {\n // eslint-disable-next-line deprecation/deprecation\n return getGlobalSingleton('hub', () => new Hub(), carrier);\n}\n\n/**\n * This will set passed {@link Hub} on the passed object's __SENTRY__.hub attribute\n * @param carrier object\n * @param hub Hub\n * @returns A boolean indicating success or failure\n */\n// eslint-disable-next-line deprecation/deprecation\nfunction setHubOnCarrier(carrier, hub) {\n if (!carrier) return false;\n const __SENTRY__ = (carrier.__SENTRY__ = carrier.__SENTRY__ || {});\n __SENTRY__.hub = hub;\n return true;\n}\n\nexport { API_VERSION, Hub, ensureHubOnCarrier, getCurrentHub, getHubFromCarrier, getIsolationScope, getMainCarrier, makeMain, runWithAsyncContext, setAsyncContextStrategy, setHubOnCarrier };\n//# sourceMappingURL=hub.js.map\n"],"names":["SDK_VERSION","scope","Scope","version","isThenable","uuid4","dateTimestampInSeconds","consoleSandbox","DEBUG_BUILD","logger","session","closeSession","DEFAULT_ENVIRONMENT","GLOBAL_OBJ","makeSession","updateSession","getGlobalSingleton"],"mappings":";;;;;;;;;;;;AAeK,MAAC,cAAc,WAAWA,QAAAA,WAAW;AAM1C,MAAM,sBAAsB;AAc5B,MAAM,IAAK;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAqDR,YACC,QACAC,SACA,gBACE,WAAW,aACb;AAAC,SAAK,WAAW;AACjB,QAAI;AACJ,QAAI,CAACA,SAAO;AACV,sBAAgB,IAAIC,MAAAA,MAAK;AACzB,oBAAc,UAAU,MAAM;AAAA,IAChC,O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AUA,SAAS,SAAS,KAAK;AACrB,QAAM,WAAW,eAAc;AAC/B,QAAM,SAAS,kBAAkB,QAAQ;AACzC,kBAAgB,UAAU,GAAG;AAC7B,SAAO;AACT;AAYA,SAAS,gBAAgB;AAEvB,QAAM,WAAW,eAAc;AAE/B,MAAI,SAAS,cAAc,SAAS,WAAW,KAAK;AAClD,UAAM,MAAM,SAAS,WAAW,IAAI,cAAa;AAEjD,QAAI,KAAK;AACP,aAAO;AAAA,IACT;AAAA,EACF;AAGA,SAAO,aAAa,QAAQ;AAC9B;AAaA,SAAS,aAAa,WAAW,kBAAkB;AAGjD,MACE,CAAC,gBAAgB,QAAQ;AAAA,EAEzB,kBAAkB,QAAQ,EAAE,YAAY,WAAW,GACnD;AAEA,oBAAgB,UAAU,IAAI,KAAK;AAAA,EACrC;AAGA,SAAO,kBAAkB,QAAQ;AACnC;AA4DA,SAAS,gBAAgB,SAAS;AAChC,SAAO,CAAC,EAAE,WAAW,QAAQ,cAAc,QAAQ,WAAW;AAChE;AASA,SAAS,kBAAkB,SAAS;AAElC,SAAOG,UAAAA,mBAAmB,OAAO,MAAM,IAAI,IAAG,GAAI,OAAO;AAC3D;AASA,SAAS,gBAAgB,SAAS,KAAK;AACrC,MAAI,CAAC,QAAS,QAAO;AACrB,QAAM,aAAc,QAAQ,aAAa,QAAQ,cAAc,CAAA;AAC/D,aAAW,MAAM;AACjB,SAAO;AACT;;;;;;;;","x_google_ignoreList":[0]}
@@ -1,535 +0,0 @@
1
- import { DEFAULT_ENVIRONMENT } from "./constants.js";
2
- import { DEBUG_BUILD } from "./debug-build.js";
3
- import { Scope } from "./scope.js";
4
- import { closeSession, makeSession, updateSession } from "./session.js";
5
- import { SDK_VERSION } from "./version.js";
6
- import { GLOBAL_OBJ, getGlobalSingleton } from "../../utils/esm/worldwide.js";
7
- import { isThenable } from "../../utils/esm/is.js";
8
- import { uuid4 } from "../../utils/esm/misc.js";
9
- import { consoleSandbox, logger } from "../../utils/esm/logger.js";
10
- import { dateTimestampInSeconds } from "../../utils/esm/time.js";
11
- const API_VERSION = parseFloat(SDK_VERSION);
12
- const DEFAULT_BREADCRUMBS = 100;
13
- class Hub {
14
- /** Is a {@link Layer}[] containing the client and scope */
15
- /** Contains the last event id of a captured event. */
16
- /**
17
- * Creates a new instance of the hub, will push one {@link Layer} into the
18
- * internal stack on creation.
19
- *
20
- * @param client bound to the hub.
21
- * @param scope bound to the hub.
22
- * @param version number, higher number means higher priority.
23
- *
24
- * @deprecated Instantiation of Hub objects is deprecated and the constructor will be removed in version 8 of the SDK.
25
- *
26
- * If you are currently using the Hub for multi-client use like so:
27
- *
28
- * ```
29
- * // OLD
30
- * const hub = new Hub();
31
- * hub.bindClient(client);
32
- * makeMain(hub)
33
- * ```
34
- *
35
- * instead initialize the client as follows:
36
- *
37
- * ```
38
- * // NEW
39
- * Sentry.withIsolationScope(() => {
40
- * Sentry.setCurrentClient(client);
41
- * client.init();
42
- * });
43
- * ```
44
- *
45
- * If you are using the Hub to capture events like so:
46
- *
47
- * ```
48
- * // OLD
49
- * const client = new Client();
50
- * const hub = new Hub(client);
51
- * hub.captureException()
52
- * ```
53
- *
54
- * instead capture isolated events as follows:
55
- *
56
- * ```
57
- * // NEW
58
- * const client = new Client();
59
- * const scope = new Scope();
60
- * scope.setClient(client);
61
- * scope.captureException();
62
- * ```
63
- */
64
- constructor(client, scope, isolationScope, _version = API_VERSION) {
65
- this._version = _version;
66
- let assignedScope;
67
- if (!scope) {
68
- assignedScope = new Scope();
69
- assignedScope.setClient(client);
70
- } else {
71
- assignedScope = scope;
72
- }
73
- let assignedIsolationScope;
74
- if (!isolationScope) {
75
- assignedIsolationScope = new Scope();
76
- assignedIsolationScope.setClient(client);
77
- } else {
78
- assignedIsolationScope = isolationScope;
79
- }
80
- this._stack = [{ scope: assignedScope }];
81
- if (client) {
82
- this.bindClient(client);
83
- }
84
- this._isolationScope = assignedIsolationScope;
85
- }
86
- /**
87
- * Checks if this hub's version is older than the given version.
88
- *
89
- * @param version A version number to compare to.
90
- * @return True if the given version is newer; otherwise false.
91
- *
92
- * @deprecated This will be removed in v8.
93
- */
94
- isOlderThan(version) {
95
- return this._version < version;
96
- }
97
- /**
98
- * This binds the given client to the current scope.
99
- * @param client An SDK client (client) instance.
100
- *
101
- * @deprecated Use `initAndBind()` directly, or `setCurrentClient()` and/or `client.init()` instead.
102
- */
103
- bindClient(client) {
104
- const top = this.getStackTop();
105
- top.client = client;
106
- top.scope.setClient(client);
107
- if (client && client.setupIntegrations) {
108
- client.setupIntegrations();
109
- }
110
- }
111
- /**
112
- * @inheritDoc
113
- *
114
- * @deprecated Use `withScope` instead.
115
- */
116
- pushScope() {
117
- const scope = this.getScope().clone();
118
- this.getStack().push({
119
- // eslint-disable-next-line deprecation/deprecation
120
- client: this.getClient(),
121
- scope
122
- });
123
- return scope;
124
- }
125
- /**
126
- * @inheritDoc
127
- *
128
- * @deprecated Use `withScope` instead.
129
- */
130
- popScope() {
131
- if (this.getStack().length <= 1) return false;
132
- return !!this.getStack().pop();
133
- }
134
- /**
135
- * @inheritDoc
136
- *
137
- * @deprecated Use `Sentry.withScope()` instead.
138
- */
139
- withScope(callback) {
140
- const scope = this.pushScope();
141
- let maybePromiseResult;
142
- try {
143
- maybePromiseResult = callback(scope);
144
- } catch (e) {
145
- this.popScope();
146
- throw e;
147
- }
148
- if (isThenable(maybePromiseResult)) {
149
- return maybePromiseResult.then(
150
- (res) => {
151
- this.popScope();
152
- return res;
153
- },
154
- (e) => {
155
- this.popScope();
156
- throw e;
157
- }
158
- );
159
- }
160
- this.popScope();
161
- return maybePromiseResult;
162
- }
163
- /**
164
- * @inheritDoc
165
- *
166
- * @deprecated Use `Sentry.getClient()` instead.
167
- */
168
- getClient() {
169
- return this.getStackTop().client;
170
- }
171
- /**
172
- * Returns the scope of the top stack.
173
- *
174
- * @deprecated Use `Sentry.getCurrentScope()` instead.
175
- */
176
- getScope() {
177
- return this.getStackTop().scope;
178
- }
179
- /**
180
- * @deprecated Use `Sentry.getIsolationScope()` instead.
181
- */
182
- getIsolationScope() {
183
- return this._isolationScope;
184
- }
185
- /**
186
- * Returns the scope stack for domains or the process.
187
- * @deprecated This will be removed in v8.
188
- */
189
- getStack() {
190
- return this._stack;
191
- }
192
- /**
193
- * Returns the topmost scope layer in the order domain > local > process.
194
- * @deprecated This will be removed in v8.
195
- */
196
- getStackTop() {
197
- return this._stack[this._stack.length - 1];
198
- }
199
- /**
200
- * @inheritDoc
201
- *
202
- * @deprecated Use `Sentry.captureException()` instead.
203
- */
204
- captureException(exception, hint) {
205
- const eventId = this._lastEventId = hint && hint.event_id ? hint.event_id : uuid4();
206
- const syntheticException = new Error("Sentry syntheticException");
207
- this.getScope().captureException(exception, {
208
- originalException: exception,
209
- syntheticException,
210
- ...hint,
211
- event_id: eventId
212
- });
213
- return eventId;
214
- }
215
- /**
216
- * @inheritDoc
217
- *
218
- * @deprecated Use `Sentry.captureMessage()` instead.
219
- */
220
- captureMessage(message, level, hint) {
221
- const eventId = this._lastEventId = hint && hint.event_id ? hint.event_id : uuid4();
222
- const syntheticException = new Error(message);
223
- this.getScope().captureMessage(message, level, {
224
- originalException: message,
225
- syntheticException,
226
- ...hint,
227
- event_id: eventId
228
- });
229
- return eventId;
230
- }
231
- /**
232
- * @inheritDoc
233
- *
234
- * @deprecated Use `Sentry.captureEvent()` instead.
235
- */
236
- captureEvent(event, hint) {
237
- const eventId = hint && hint.event_id ? hint.event_id : uuid4();
238
- if (!event.type) {
239
- this._lastEventId = eventId;
240
- }
241
- this.getScope().captureEvent(event, { ...hint, event_id: eventId });
242
- return eventId;
243
- }
244
- /**
245
- * @inheritDoc
246
- *
247
- * @deprecated This will be removed in v8.
248
- */
249
- lastEventId() {
250
- return this._lastEventId;
251
- }
252
- /**
253
- * @inheritDoc
254
- *
255
- * @deprecated Use `Sentry.addBreadcrumb()` instead.
256
- */
257
- addBreadcrumb(breadcrumb, hint) {
258
- const { scope, client } = this.getStackTop();
259
- if (!client) return;
260
- const { beforeBreadcrumb = null, maxBreadcrumbs = DEFAULT_BREADCRUMBS } = client.getOptions && client.getOptions() || {};
261
- if (maxBreadcrumbs <= 0) return;
262
- const timestamp = dateTimestampInSeconds();
263
- const mergedBreadcrumb = { timestamp, ...breadcrumb };
264
- const finalBreadcrumb = beforeBreadcrumb ? consoleSandbox(() => beforeBreadcrumb(mergedBreadcrumb, hint)) : mergedBreadcrumb;
265
- if (finalBreadcrumb === null) return;
266
- if (client.emit) {
267
- client.emit("beforeAddBreadcrumb", finalBreadcrumb, hint);
268
- }
269
- scope.addBreadcrumb(finalBreadcrumb, maxBreadcrumbs);
270
- }
271
- /**
272
- * @inheritDoc
273
- * @deprecated Use `Sentry.setUser()` instead.
274
- */
275
- setUser(user) {
276
- this.getScope().setUser(user);
277
- this.getIsolationScope().setUser(user);
278
- }
279
- /**
280
- * @inheritDoc
281
- * @deprecated Use `Sentry.setTags()` instead.
282
- */
283
- setTags(tags) {
284
- this.getScope().setTags(tags);
285
- this.getIsolationScope().setTags(tags);
286
- }
287
- /**
288
- * @inheritDoc
289
- * @deprecated Use `Sentry.setExtras()` instead.
290
- */
291
- setExtras(extras) {
292
- this.getScope().setExtras(extras);
293
- this.getIsolationScope().setExtras(extras);
294
- }
295
- /**
296
- * @inheritDoc
297
- * @deprecated Use `Sentry.setTag()` instead.
298
- */
299
- setTag(key, value) {
300
- this.getScope().setTag(key, value);
301
- this.getIsolationScope().setTag(key, value);
302
- }
303
- /**
304
- * @inheritDoc
305
- * @deprecated Use `Sentry.setExtra()` instead.
306
- */
307
- setExtra(key, extra) {
308
- this.getScope().setExtra(key, extra);
309
- this.getIsolationScope().setExtra(key, extra);
310
- }
311
- /**
312
- * @inheritDoc
313
- * @deprecated Use `Sentry.setContext()` instead.
314
- */
315
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
316
- setContext(name, context) {
317
- this.getScope().setContext(name, context);
318
- this.getIsolationScope().setContext(name, context);
319
- }
320
- /**
321
- * @inheritDoc
322
- *
323
- * @deprecated Use `getScope()` directly.
324
- */
325
- configureScope(callback) {
326
- const { scope, client } = this.getStackTop();
327
- if (client) {
328
- callback(scope);
329
- }
330
- }
331
- /**
332
- * @inheritDoc
333
- */
334
- // eslint-disable-next-line deprecation/deprecation
335
- run(callback) {
336
- const oldHub = makeMain(this);
337
- try {
338
- callback(this);
339
- } finally {
340
- makeMain(oldHub);
341
- }
342
- }
343
- /**
344
- * @inheritDoc
345
- * @deprecated Use `Sentry.getClient().getIntegrationByName()` instead.
346
- */
347
- getIntegration(integration) {
348
- const client = this.getClient();
349
- if (!client) return null;
350
- try {
351
- return client.getIntegration(integration);
352
- } catch (_oO) {
353
- DEBUG_BUILD && logger.warn(`Cannot retrieve integration ${integration.id} from the current Hub`);
354
- return null;
355
- }
356
- }
357
- /**
358
- * Starts a new `Transaction` and returns it. This is the entry point to manual tracing instrumentation.
359
- *
360
- * A tree structure can be built by adding child spans to the transaction, and child spans to other spans. To start a
361
- * new child span within the transaction or any span, call the respective `.startChild()` method.
362
- *
363
- * Every child span must be finished before the transaction is finished, otherwise the unfinished spans are discarded.
364
- *
365
- * The transaction must be finished with a call to its `.end()` method, at which point the transaction with all its
366
- * finished child spans will be sent to Sentry.
367
- *
368
- * @param context Properties of the new `Transaction`.
369
- * @param customSamplingContext Information given to the transaction sampling function (along with context-dependent
370
- * default values). See {@link Options.tracesSampler}.
371
- *
372
- * @returns The transaction which was just started
373
- *
374
- * @deprecated Use `startSpan()`, `startSpanManual()` or `startInactiveSpan()` instead.
375
- */
376
- startTransaction(context, customSamplingContext) {
377
- const result = this._callExtensionMethod("startTransaction", context, customSamplingContext);
378
- if (DEBUG_BUILD && !result) {
379
- const client = this.getClient();
380
- if (!client) {
381
- logger.warn(
382
- "Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'"
383
- );
384
- } else {
385
- logger.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init':
386
- Sentry.addTracingExtensions();
387
- Sentry.init({...});
388
- `);
389
- }
390
- }
391
- return result;
392
- }
393
- /**
394
- * @inheritDoc
395
- * @deprecated Use `spanToTraceHeader()` instead.
396
- */
397
- traceHeaders() {
398
- return this._callExtensionMethod("traceHeaders");
399
- }
400
- /**
401
- * @inheritDoc
402
- *
403
- * @deprecated Use top level `captureSession` instead.
404
- */
405
- captureSession(endSession = false) {
406
- if (endSession) {
407
- return this.endSession();
408
- }
409
- this._sendSessionUpdate();
410
- }
411
- /**
412
- * @inheritDoc
413
- * @deprecated Use top level `endSession` instead.
414
- */
415
- endSession() {
416
- const layer = this.getStackTop();
417
- const scope = layer.scope;
418
- const session = scope.getSession();
419
- if (session) {
420
- closeSession(session);
421
- }
422
- this._sendSessionUpdate();
423
- scope.setSession();
424
- }
425
- /**
426
- * @inheritDoc
427
- * @deprecated Use top level `startSession` instead.
428
- */
429
- startSession(context) {
430
- const { scope, client } = this.getStackTop();
431
- const { release, environment = DEFAULT_ENVIRONMENT } = client && client.getOptions() || {};
432
- const { userAgent } = GLOBAL_OBJ.navigator || {};
433
- const session = makeSession({
434
- release,
435
- environment,
436
- user: scope.getUser(),
437
- ...userAgent && { userAgent },
438
- ...context
439
- });
440
- const currentSession = scope.getSession && scope.getSession();
441
- if (currentSession && currentSession.status === "ok") {
442
- updateSession(currentSession, { status: "exited" });
443
- }
444
- this.endSession();
445
- scope.setSession(session);
446
- return session;
447
- }
448
- /**
449
- * Returns if default PII should be sent to Sentry and propagated in ourgoing requests
450
- * when Tracing is used.
451
- *
452
- * @deprecated Use top-level `getClient().getOptions().sendDefaultPii` instead. This function
453
- * only unnecessarily increased API surface but only wrapped accessing the option.
454
- */
455
- shouldSendDefaultPii() {
456
- const client = this.getClient();
457
- const options = client && client.getOptions();
458
- return Boolean(options && options.sendDefaultPii);
459
- }
460
- /**
461
- * Sends the current Session on the scope
462
- */
463
- _sendSessionUpdate() {
464
- const { scope, client } = this.getStackTop();
465
- const session = scope.getSession();
466
- if (session && client && client.captureSession) {
467
- client.captureSession(session);
468
- }
469
- }
470
- /**
471
- * Calls global extension method and binding current instance to the function call
472
- */
473
- // @ts-expect-error Function lacks ending return statement and return type does not include 'undefined'. ts(2366)
474
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
475
- _callExtensionMethod(method, ...args) {
476
- const carrier = getMainCarrier();
477
- const sentry = carrier.__SENTRY__;
478
- if (sentry && sentry.extensions && typeof sentry.extensions[method] === "function") {
479
- return sentry.extensions[method].apply(this, args);
480
- }
481
- DEBUG_BUILD && logger.warn(`Extension method ${method} couldn't be found, doing nothing.`);
482
- }
483
- }
484
- function getMainCarrier() {
485
- GLOBAL_OBJ.__SENTRY__ = GLOBAL_OBJ.__SENTRY__ || {
486
- extensions: {},
487
- hub: void 0
488
- };
489
- return GLOBAL_OBJ;
490
- }
491
- function makeMain(hub) {
492
- const registry = getMainCarrier();
493
- const oldHub = getHubFromCarrier(registry);
494
- setHubOnCarrier(registry, hub);
495
- return oldHub;
496
- }
497
- function getCurrentHub() {
498
- const registry = getMainCarrier();
499
- if (registry.__SENTRY__ && registry.__SENTRY__.acs) {
500
- const hub = registry.__SENTRY__.acs.getCurrentHub();
501
- if (hub) {
502
- return hub;
503
- }
504
- }
505
- return getGlobalHub(registry);
506
- }
507
- function getGlobalHub(registry = getMainCarrier()) {
508
- if (!hasHubOnCarrier(registry) || // eslint-disable-next-line deprecation/deprecation
509
- getHubFromCarrier(registry).isOlderThan(API_VERSION)) {
510
- setHubOnCarrier(registry, new Hub());
511
- }
512
- return getHubFromCarrier(registry);
513
- }
514
- function hasHubOnCarrier(carrier) {
515
- return !!(carrier && carrier.__SENTRY__ && carrier.__SENTRY__.hub);
516
- }
517
- function getHubFromCarrier(carrier) {
518
- return getGlobalSingleton("hub", () => new Hub(), carrier);
519
- }
520
- function setHubOnCarrier(carrier, hub) {
521
- if (!carrier) return false;
522
- const __SENTRY__ = carrier.__SENTRY__ = carrier.__SENTRY__ || {};
523
- __SENTRY__.hub = hub;
524
- return true;
525
- }
526
- export {
527
- API_VERSION,
528
- Hub,
529
- getCurrentHub,
530
- getHubFromCarrier,
531
- getMainCarrier,
532
- makeMain,
533
- setHubOnCarrier
534
- };
535
- //# sourceMappingURL=hub.js.map