@sentry/opentelemetry
Advanced tools
Comparing version 7.93.0 to 7.94.0
@@ -19,2 +19,3 @@ Object.defineProperty(exports, '__esModule', { value: true }); | ||
function getClient() { | ||
// eslint-disable-next-line deprecation/deprecation | ||
return getCurrentHub().getClient(); | ||
@@ -93,3 +94,7 @@ } | ||
// If there's no hub, or its an old API, assign a new one | ||
if (!hasHubOnCarrier(registry) || getHubFromCarrier(registry).isOlderThan(API_VERSION)) { | ||
if ( | ||
!hasHubOnCarrier(registry) || | ||
// eslint-disable-next-line deprecation/deprecation | ||
getHubFromCarrier(registry).isOlderThan(API_VERSION) | ||
) { | ||
setHubOnCarrier(registry, new OpenTelemetryHub()); | ||
@@ -96,0 +101,0 @@ } |
@@ -11,2 +11,3 @@ Object.defineProperty(exports, '__esModule', { value: true }); | ||
function startTransaction(hub, transactionContext) { | ||
// eslint-disable-next-line deprecation/deprecation | ||
const client = hub.getClient(); | ||
@@ -41,2 +42,3 @@ const options = (client && client.getOptions()) || {}; | ||
// eslint-disable-next-line deprecation/deprecation | ||
const client = this._hub.getClient(); | ||
@@ -43,0 +45,0 @@ |
@@ -271,4 +271,3 @@ Object.defineProperty(exports, '__esModule', { value: true }); | ||
const statusCode = attributes[semanticConventions.SemanticAttributes.HTTP_STATUS_CODE] ; | ||
tags['http.status_code'] = statusCode; | ||
tags['http.status_code'] = `${statusCode}`; | ||
} | ||
@@ -275,0 +274,0 @@ |
@@ -33,4 +33,5 @@ Object.defineProperty(exports, '__esModule', { value: true }); | ||
if (actualHub) { | ||
// eslint-disable-next-line deprecation/deprecation | ||
const scope = actualHub.getScope(); | ||
spanData.setSpanScope(span, actualHub.getScope()); | ||
spanData.setSpanScope(span, scope); | ||
spanData.setSpanHub(span, actualHub); | ||
@@ -37,0 +38,0 @@ |
@@ -38,2 +38,3 @@ Object.defineProperty(exports, '__esModule', { value: true }); | ||
// eslint-disable-next-line deprecation/deprecation | ||
hub.captureException(syntheticError, { | ||
@@ -40,0 +41,0 @@ captureContext: otelSpan |
@@ -17,2 +17,3 @@ import { Hub } from '@sentry/core'; | ||
function getClient() { | ||
// eslint-disable-next-line deprecation/deprecation | ||
return getCurrentHub().getClient(); | ||
@@ -91,3 +92,7 @@ } | ||
// If there's no hub, or its an old API, assign a new one | ||
if (!hasHubOnCarrier(registry) || getHubFromCarrier(registry).isOlderThan(API_VERSION)) { | ||
if ( | ||
!hasHubOnCarrier(registry) || | ||
// eslint-disable-next-line deprecation/deprecation | ||
getHubFromCarrier(registry).isOlderThan(API_VERSION) | ||
) { | ||
setHubOnCarrier(registry, new OpenTelemetryHub()); | ||
@@ -94,0 +99,0 @@ } |
@@ -9,2 +9,3 @@ import { Transaction } from '@sentry/core'; | ||
function startTransaction(hub, transactionContext) { | ||
// eslint-disable-next-line deprecation/deprecation | ||
const client = hub.getClient(); | ||
@@ -39,2 +40,3 @@ const options = (client && client.getOptions()) || {}; | ||
// eslint-disable-next-line deprecation/deprecation | ||
const client = this._hub.getClient(); | ||
@@ -41,0 +43,0 @@ |
@@ -269,4 +269,3 @@ import { SpanKind } from '@opentelemetry/api'; | ||
const statusCode = attributes[SemanticAttributes.HTTP_STATUS_CODE] ; | ||
tags['http.status_code'] = statusCode; | ||
tags['http.status_code'] = `${statusCode}`; | ||
} | ||
@@ -273,0 +272,0 @@ |
@@ -31,4 +31,5 @@ import { trace, ROOT_CONTEXT } from '@opentelemetry/api'; | ||
if (actualHub) { | ||
// eslint-disable-next-line deprecation/deprecation | ||
const scope = actualHub.getScope(); | ||
setSpanScope(span, actualHub.getScope()); | ||
setSpanScope(span, scope); | ||
setSpanHub(span, actualHub); | ||
@@ -35,0 +36,0 @@ |
@@ -36,2 +36,3 @@ import { SemanticAttributes } from '@opentelemetry/semantic-conventions'; | ||
// eslint-disable-next-line deprecation/deprecation | ||
hub.captureException(syntheticError, { | ||
@@ -38,0 +39,0 @@ captureContext: otelSpan |
{ | ||
"name": "@sentry/opentelemetry", | ||
"version": "7.93.0", | ||
"version": "7.94.0", | ||
"description": "Official Sentry utilities for OpenTelemetry", | ||
@@ -32,5 +32,5 @@ "repository": "git://github.com/getsentry/sentry-javascript.git", | ||
"dependencies": { | ||
"@sentry/core": "7.93.0", | ||
"@sentry/types": "7.93.0", | ||
"@sentry/utils": "7.93.0" | ||
"@sentry/core": "7.94.0", | ||
"@sentry/types": "7.94.0", | ||
"@sentry/utils": "7.94.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
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
520087
4830
+ Added@sentry/core@7.94.0(transitive)
+ Added@sentry/types@7.94.0(transitive)
+ Added@sentry/utils@7.94.0(transitive)
- Removed@sentry/core@7.93.0(transitive)
- Removed@sentry/types@7.93.0(transitive)
- Removed@sentry/utils@7.93.0(transitive)
Updated@sentry/core@7.94.0
Updated@sentry/types@7.94.0
Updated@sentry/utils@7.94.0