@sentry/opentelemetry 10.36.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.
- package/build/cjs/index.js +0 -12
- package/build/cjs/index.js.map +1 -1
- package/build/esm/index.js +0 -12
- package/build/esm/index.js.map +1 -1
- package/build/esm/package.json +1 -1
- package/build/types/constants.d.ts.map +1 -1
- package/build/types/utils/contextData.d.ts.map +1 -1
- package/build/types/utils/isSentryRequest.d.ts.map +1 -1
- package/package.json +7 -7
package/build/cjs/index.js
CHANGED
|
@@ -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
|
}
|