@sentry/opentelemetry 10.35.0 → 10.37.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.
@@ -215,10 +215,6 @@ const SENTRY_TRACE_STATE_URL = 'sentry.url';
215
215
  const SENTRY_TRACE_STATE_SAMPLE_RAND = 'sentry.sample_rand';
216
216
  const SENTRY_TRACE_STATE_SAMPLE_RATE = 'sentry.sample_rate';
217
217
 
218
- // NOTE: `@sentry/nextjs` has a local copy of this context key for Edge bundles:
219
- // - `packages/nextjs/src/edge/index.ts` (`SENTRY_SCOPES_CONTEXT_KEY`)
220
- //
221
- // If you change the key name passed to `createContextKey(...)`, update that file too.
222
218
  const SENTRY_SCOPES_CONTEXT_KEY = api.createContextKey('sentry_scopes');
223
219
 
224
220
  const SENTRY_FORK_ISOLATION_SCOPE_CONTEXT_KEY = api.createContextKey('sentry_fork_isolation_scope');
@@ -234,10 +230,6 @@ const SCOPE_CONTEXT_FIELD = '_scopeContext';
234
230
  * This requires a Context Manager that was wrapped with getWrappedContextManager.
235
231
  */
236
232
  function getScopesFromContext(context) {
237
- // NOTE: `@sentry/nextjs` has a local copy of this helper for Edge bundles:
238
- // - `packages/nextjs/src/edge/index.ts` (`getScopesFromContext`)
239
- //
240
- // If you change how scopes are stored/read (key or retrieval), update that file too.
241
233
  return context.getValue(SENTRY_SCOPES_CONTEXT_KEY) ;
242
234
  }
243
235
 
@@ -270,10 +262,6 @@ function getContextFromScope(scope) {
270
262
  * @returns boolean
271
263
  */
272
264
  function isSentryRequestSpan(span) {
273
- // NOTE: `@sentry/nextjs` has a local copy of this helper for Edge bundles:
274
- // - `packages/nextjs/src/common/utils/dropMiddlewareTunnelRequests.ts` (`isSentryRequestSpan`)
275
- //
276
- // If you change supported OTEL attribute keys or request detection logic, update that file too.
277
265
  if (!spanHasAttributes(span)) {
278
266
  return false;
279
267
  }
@@ -341,7 +329,7 @@ function inferSpanData(spanName, attributes, kind) {
341
329
  }
342
330
 
343
331
  // eslint-disable-next-line deprecation/deprecation
344
- const dbSystem = attributes[semanticConventions.SEMATTRS_DB_SYSTEM];
332
+ const dbSystem = attributes[semanticConventions.ATTR_DB_SYSTEM_NAME] || attributes[semanticConventions.SEMATTRS_DB_SYSTEM];
345
333
  const opIsCache =
346
334
  typeof attributes[core.SEMANTIC_ATTRIBUTE_SENTRY_OP] === 'string' &&
347
335
  attributes[core.SEMANTIC_ATTRIBUTE_SENTRY_OP].startsWith('cache.');