@sentry/opentelemetry 8.3.0 → 8.5.0

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.
package/cjs/index.js CHANGED
@@ -1223,7 +1223,7 @@ function setOpenTelemetryContextAsyncContextStrategy() {
1223
1223
  function _optionalChain$2(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
1224
1224
 
1225
1225
  /**
1226
- * Wrap an OpenTelemetry ContextManager in a way that ensures the context is kept in sync with the Sentry Hub.
1226
+ * Wrap an OpenTelemetry ContextManager in a way that ensures the context is kept in sync with the Sentry Scope.
1227
1227
  *
1228
1228
  * Usage:
1229
1229
  * import { AsyncLocalStorageContextManager } from '@opentelemetry/context-async-hooks';
@@ -1235,7 +1235,7 @@ function wrapContextManagerClass(
1235
1235
  ) {
1236
1236
  /**
1237
1237
  * This is a custom ContextManager for OpenTelemetry, which extends the default AsyncLocalStorageContextManager.
1238
- * It ensures that we create a new hub per context, so that the OTEL Context & the Sentry Hub are always in sync.
1238
+ * It ensures that we create new scopes per context, so that the OTEL Context & the Sentry Scope are always in sync.
1239
1239
  *
1240
1240
  * Note that we currently only support AsyncHooks with this,
1241
1241
  * but since this should work for Node 14+ anyhow that should be good enough.
@@ -1249,7 +1249,7 @@ function wrapContextManagerClass(
1249
1249
  }
1250
1250
  /**
1251
1251
  * Overwrite with() of the original AsyncLocalStorageContextManager
1252
- * to ensure we also create a new hub per context.
1252
+ * to ensure we also create new scopes per context.
1253
1253
  */
1254
1254
  with(
1255
1255
  context,