@sentry/opentelemetry-node
Advanced tools
Comparing version
@@ -105,3 +105,3 @@ var { | ||
const client = core.getCurrentHub().getClient(); | ||
const client = core.getClient(); | ||
@@ -147,3 +147,3 @@ const mutableOptions = { drop: false }; | ||
async forceFlush() { | ||
const client = core.getCurrentHub().getClient(); | ||
const client = core.getClient(); | ||
if (client) { | ||
@@ -150,0 +150,0 @@ return client.flush().then(); |
import { _optionalChain } from '@sentry/utils'; | ||
import { trace, context, SpanKind } from '@opentelemetry/api'; | ||
import { suppressTracing } from '@opentelemetry/core'; | ||
import { addTracingExtensions, addGlobalEventProcessor, getCurrentHub, Transaction } from '@sentry/core'; | ||
import { addTracingExtensions, addGlobalEventProcessor, getCurrentHub, getClient, Transaction } from '@sentry/core'; | ||
import { logger } from '@sentry/utils'; | ||
@@ -100,3 +100,3 @@ import { SENTRY_TRACE_PARENT_CONTEXT_KEY, SENTRY_DYNAMIC_SAMPLING_CONTEXT_KEY } from './constants.js'; | ||
const client = getCurrentHub().getClient(); | ||
const client = getClient(); | ||
@@ -142,3 +142,3 @@ const mutableOptions = { drop: false }; | ||
async forceFlush() { | ||
const client = getCurrentHub().getClient(); | ||
const client = getClient(); | ||
if (client) { | ||
@@ -145,0 +145,0 @@ return client.flush().then(); |
{ | ||
"name": "@sentry/opentelemetry-node", | ||
"version": "7.81.1", | ||
"version": "7.82.0", | ||
"description": "Official Sentry SDK for OpenTelemetry Node.js", | ||
@@ -26,5 +26,5 @@ "repository": "git://github.com/getsentry/sentry-javascript.git", | ||
"dependencies": { | ||
"@sentry/core": "7.81.1", | ||
"@sentry/types": "7.81.1", | ||
"@sentry/utils": "7.81.1" | ||
"@sentry/core": "7.82.0", | ||
"@sentry/types": "7.82.0", | ||
"@sentry/utils": "7.82.0" | ||
}, | ||
@@ -43,3 +43,3 @@ "peerDependencies": { | ||
"@opentelemetry/semantic-conventions": "^1.17.1", | ||
"@sentry/node": "7.81.1" | ||
"@sentry/node": "7.82.0" | ||
}, | ||
@@ -46,0 +46,0 @@ "sideEffects": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
202913
-0.14%+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
Updated
Updated
Updated