@sentry/opentelemetry
Advanced tools
Comparing version 7.109.0 to 7.110.0
@@ -16,2 +16,3 @@ var { | ||
function setOpenTelemetryContextAsyncContextStrategy() { | ||
// eslint-disable-next-line deprecation/deprecation | ||
function getCurrentHub() { | ||
@@ -22,2 +23,3 @@ const ctx = api.context.active(); | ||
// Need to cast from @sentry/type's `Hub` to @sentry/core's `Hub` | ||
// eslint-disable-next-line deprecation/deprecation | ||
return contextData.getHubFromContext(ctx) ; | ||
@@ -24,0 +26,0 @@ } |
@@ -7,2 +7,3 @@ Object.defineProperty(exports, '__esModule', { value: true }); | ||
// eslint-disable-next-line deprecation/deprecation | ||
function createNewHub(parent) { | ||
@@ -9,0 +10,0 @@ const carrier = {}; |
@@ -11,2 +11,3 @@ Object.defineProperty(exports, '__esModule', { value: true }); | ||
*/ | ||
// eslint-disable-next-line deprecation/deprecation | ||
class OpenTelemetryHub extends core.Hub { | ||
@@ -52,2 +53,3 @@ constructor(client, scope$1 = new scope.OpenTelemetryScope()) { | ||
*/ | ||
// eslint-disable-next-line deprecation/deprecation | ||
function getCurrentHub() { | ||
@@ -89,6 +91,9 @@ // Get main carrier (global for every environment) | ||
*/ | ||
// eslint-disable-next-line deprecation/deprecation | ||
function getHubFromCarrier(carrier) { | ||
// eslint-disable-next-line deprecation/deprecation | ||
return utils.getGlobalSingleton('hub', () => new OpenTelemetryHub(), carrier); | ||
} | ||
// eslint-disable-next-line deprecation/deprecation | ||
function getGlobalHub(registry = getMainCarrier()) { | ||
@@ -137,2 +142,3 @@ // If there's no hub, or its an old API, assign a new one | ||
*/ | ||
// eslint-disable-next-line deprecation/deprecation | ||
function setHubOnCarrier(carrier, hub) { | ||
@@ -139,0 +145,0 @@ if (!carrier) return false; |
@@ -10,2 +10,3 @@ Object.defineProperty(exports, '__esModule', { value: true }); | ||
*/ | ||
// eslint-disable-next-line deprecation/deprecation | ||
function startTransaction(hub, transactionContext) { | ||
@@ -12,0 +13,0 @@ // eslint-disable-next-line deprecation/deprecation |
@@ -10,2 +10,3 @@ Object.defineProperty(exports, '__esModule', { value: true }); | ||
*/ | ||
// eslint-disable-next-line deprecation/deprecation | ||
function maybeCaptureExceptionForTimedEvent(hub, event, otelSpan) { | ||
@@ -12,0 +13,0 @@ if (event.name !== 'exception') { |
@@ -25,3 +25,5 @@ Object.defineProperty(exports, '__esModule', { value: true }); | ||
*/ | ||
// eslint-disable-next-line deprecation/deprecation | ||
function getHubFromContext(context) { | ||
// eslint-disable-next-line deprecation/deprecation | ||
return context.getValue(constants.SENTRY_HUB_CONTEXT_KEY) ; | ||
@@ -34,2 +36,3 @@ } | ||
*/ | ||
// eslint-disable-next-line deprecation/deprecation | ||
function setHubOnContext(context, hub) { | ||
@@ -36,0 +39,0 @@ return context.setValue(constants.SENTRY_HUB_CONTEXT_KEY, hub); |
@@ -8,2 +8,3 @@ Object.defineProperty(exports, '__esModule', { value: true }); | ||
const SpanFinishScope = new WeakMap(); | ||
// eslint-disable-next-line deprecation/deprecation | ||
const SpanHub = new WeakMap(); | ||
@@ -24,2 +25,3 @@ const SpanParent = new WeakMap(); | ||
/** Set the Sentry hub on an OTEL span. */ | ||
// eslint-disable-next-line deprecation/deprecation | ||
function setSpanHub(span, hub) { | ||
@@ -30,2 +32,3 @@ SpanHub.set(span, hub); | ||
/** Get the Sentry hub of an OTEL span. */ | ||
// eslint-disable-next-line deprecation/deprecation | ||
function getSpanHub(span) { | ||
@@ -32,0 +35,0 @@ return SpanHub.get(span); |
@@ -11,2 +11,3 @@ import { _optionalChain } from '@sentry/utils'; | ||
function setOpenTelemetryContextAsyncContextStrategy() { | ||
// eslint-disable-next-line deprecation/deprecation | ||
function getCurrentHub() { | ||
@@ -17,2 +18,3 @@ const ctx = api.context.active(); | ||
// Need to cast from @sentry/type's `Hub` to @sentry/core's `Hub` | ||
// eslint-disable-next-line deprecation/deprecation | ||
return getHubFromContext(ctx) ; | ||
@@ -19,0 +21,0 @@ } |
@@ -5,2 +5,3 @@ import { ensureHubOnCarrier } from '@sentry/core'; | ||
// eslint-disable-next-line deprecation/deprecation | ||
function createNewHub(parent) { | ||
@@ -7,0 +8,0 @@ const carrier = {}; |
@@ -9,2 +9,3 @@ import { Hub } from '@sentry/core'; | ||
*/ | ||
// eslint-disable-next-line deprecation/deprecation | ||
class OpenTelemetryHub extends Hub { | ||
@@ -50,2 +51,3 @@ constructor(client, scope = new OpenTelemetryScope()) { | ||
*/ | ||
// eslint-disable-next-line deprecation/deprecation | ||
function getCurrentHub() { | ||
@@ -87,6 +89,9 @@ // Get main carrier (global for every environment) | ||
*/ | ||
// eslint-disable-next-line deprecation/deprecation | ||
function getHubFromCarrier(carrier) { | ||
// eslint-disable-next-line deprecation/deprecation | ||
return getGlobalSingleton('hub', () => new OpenTelemetryHub(), carrier); | ||
} | ||
// eslint-disable-next-line deprecation/deprecation | ||
function getGlobalHub(registry = getMainCarrier()) { | ||
@@ -135,2 +140,3 @@ // If there's no hub, or its an old API, assign a new one | ||
*/ | ||
// eslint-disable-next-line deprecation/deprecation | ||
function setHubOnCarrier(carrier, hub) { | ||
@@ -137,0 +143,0 @@ if (!carrier) return false; |
@@ -8,2 +8,3 @@ import { Transaction } from '@sentry/core'; | ||
*/ | ||
// eslint-disable-next-line deprecation/deprecation | ||
function startTransaction(hub, transactionContext) { | ||
@@ -10,0 +11,0 @@ // eslint-disable-next-line deprecation/deprecation |
@@ -8,2 +8,3 @@ import { SemanticAttributes } from '@opentelemetry/semantic-conventions'; | ||
*/ | ||
// eslint-disable-next-line deprecation/deprecation | ||
function maybeCaptureExceptionForTimedEvent(hub, event, otelSpan) { | ||
@@ -10,0 +11,0 @@ if (event.name !== 'exception') { |
@@ -23,3 +23,5 @@ import { SENTRY_PROPAGATION_CONTEXT_CONTEXT_KEY, SENTRY_HUB_CONTEXT_KEY } from '../constants.js'; | ||
*/ | ||
// eslint-disable-next-line deprecation/deprecation | ||
function getHubFromContext(context) { | ||
// eslint-disable-next-line deprecation/deprecation | ||
return context.getValue(SENTRY_HUB_CONTEXT_KEY) ; | ||
@@ -32,2 +34,3 @@ } | ||
*/ | ||
// eslint-disable-next-line deprecation/deprecation | ||
function setHubOnContext(context, hub) { | ||
@@ -34,0 +37,0 @@ return context.setValue(SENTRY_HUB_CONTEXT_KEY, hub); |
@@ -6,2 +6,3 @@ // We store the parent span, scope & metadata in separate weakmaps, so we can access them for a given span | ||
const SpanFinishScope = new WeakMap(); | ||
// eslint-disable-next-line deprecation/deprecation | ||
const SpanHub = new WeakMap(); | ||
@@ -22,2 +23,3 @@ const SpanParent = new WeakMap(); | ||
/** Set the Sentry hub on an OTEL span. */ | ||
// eslint-disable-next-line deprecation/deprecation | ||
function setSpanHub(span, hub) { | ||
@@ -28,2 +30,3 @@ SpanHub.set(span, hub); | ||
/** Get the Sentry hub of an OTEL span. */ | ||
// eslint-disable-next-line deprecation/deprecation | ||
function getSpanHub(span) { | ||
@@ -30,0 +33,0 @@ return SpanHub.get(span); |
{ | ||
"name": "@sentry/opentelemetry", | ||
"version": "7.109.0", | ||
"version": "7.110.0", | ||
"description": "Official Sentry utilities for OpenTelemetry", | ||
@@ -32,5 +32,5 @@ "repository": "git://github.com/getsentry/sentry-javascript.git", | ||
"dependencies": { | ||
"@sentry/core": "7.109.0", | ||
"@sentry/types": "7.109.0", | ||
"@sentry/utils": "7.109.0" | ||
"@sentry/core": "7.110.0", | ||
"@sentry/types": "7.110.0", | ||
"@sentry/utils": "7.110.0" | ||
}, | ||
@@ -37,0 +37,0 @@ "peerDependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
529365
4886
+ Added@sentry/core@7.110.0(transitive)
+ Added@sentry/types@7.110.0(transitive)
+ Added@sentry/utils@7.110.0(transitive)
- Removed@sentry/core@7.109.0(transitive)
- Removed@sentry/types@7.109.0(transitive)
- Removed@sentry/utils@7.109.0(transitive)
Updated@sentry/core@7.110.0
Updated@sentry/types@7.110.0
Updated@sentry/utils@7.110.0