@sentry-internal/tracing
Advanced tools
Comparing version 7.68.0 to 7.69.0
@@ -22,3 +22,3 @@ Object.defineProperty(exports, '__esModule', { value: true }); | ||
function getBrowserPerformanceAPI() { | ||
// @ts-ignore we want to make sure all of these are available, even if TS is sure they are | ||
// @ts-expect-error we want to make sure all of these are available, even if TS is sure they are | ||
return types.WINDOW && types.WINDOW.addEventListener && types.WINDOW.performance; | ||
@@ -41,3 +41,3 @@ } | ||
if (performance && utils.browserPerformanceTimeOrigin) { | ||
// @ts-ignore we want to make sure all of these are available, even if TS is sure they are | ||
// @ts-expect-error we want to make sure all of these are available, even if TS is sure they are | ||
if (performance.mark) { | ||
@@ -44,0 +44,0 @@ types.WINDOW.performance.mark('sentry-tracing-init'); |
@@ -160,4 +160,4 @@ var { | ||
const scope = getCurrentHub().getScope(); | ||
const parentSpan = _optionalChain([scope, 'optionalAccess', _2 => _2.getSpan, 'call', _3 => _3()]); | ||
const span = _optionalChain([parentSpan, 'optionalAccess', _4 => _4.startChild, 'call', _5 => _5({ | ||
const parentSpan = scope.getSpan(); | ||
const span = _optionalChain([parentSpan, 'optionalAccess', _2 => _2.startChild, 'call', _3 => _3({ | ||
description: `${resolverGroupName}.${resolverName}`, | ||
@@ -172,3 +172,3 @@ op: 'graphql.resolve', | ||
return rv.then((res) => { | ||
_optionalChain([span, 'optionalAccess', _6 => _6.finish, 'call', _7 => _7()]); | ||
_optionalChain([span, 'optionalAccess', _4 => _4.finish, 'call', _5 => _5()]); | ||
return res; | ||
@@ -178,3 +178,3 @@ }); | ||
_optionalChain([span, 'optionalAccess', _8 => _8.finish, 'call', _9 => _9()]); | ||
_optionalChain([span, 'optionalAccess', _6 => _6.finish, 'call', _7 => _7()]); | ||
@@ -181,0 +181,0 @@ return rv; |
@@ -49,5 +49,5 @@ var { | ||
const scope = getCurrentHub().getScope(); | ||
const parentSpan = _optionalChain([scope, 'optionalAccess', _2 => _2.getSpan, 'call', _3 => _3()]); | ||
const parentSpan = scope.getSpan(); | ||
const span = _optionalChain([parentSpan, 'optionalAccess', _4 => _4.startChild, 'call', _5 => _5({ | ||
const span = _optionalChain([parentSpan, 'optionalAccess', _2 => _2.startChild, 'call', _3 => _3({ | ||
description: 'execute', | ||
@@ -58,3 +58,3 @@ op: 'graphql.execute', | ||
_optionalChain([scope, 'optionalAccess', _6 => _6.setSpan, 'call', _7 => _7(span)]); | ||
_optionalChain([scope, 'optionalAccess', _4 => _4.setSpan, 'call', _5 => _5(span)]); | ||
@@ -65,4 +65,4 @@ const rv = orig.call(this, ...args); | ||
return rv.then((res) => { | ||
_optionalChain([span, 'optionalAccess', _8 => _8.finish, 'call', _9 => _9()]); | ||
_optionalChain([scope, 'optionalAccess', _10 => _10.setSpan, 'call', _11 => _11(parentSpan)]); | ||
_optionalChain([span, 'optionalAccess', _6 => _6.finish, 'call', _7 => _7()]); | ||
_optionalChain([scope, 'optionalAccess', _8 => _8.setSpan, 'call', _9 => _9(parentSpan)]); | ||
@@ -73,4 +73,4 @@ return res; | ||
_optionalChain([span, 'optionalAccess', _12 => _12.finish, 'call', _13 => _13()]); | ||
_optionalChain([scope, 'optionalAccess', _14 => _14.setSpan, 'call', _15 => _15(parentSpan)]); | ||
_optionalChain([span, 'optionalAccess', _10 => _10.finish, 'call', _11 => _11()]); | ||
_optionalChain([scope, 'optionalAccess', _12 => _12.setSpan, 'call', _13 => _13(parentSpan)]); | ||
return rv; | ||
@@ -77,0 +77,0 @@ }; |
@@ -151,3 +151,3 @@ var { | ||
const scope = getCurrentHub().getScope(); | ||
const parentSpan = _optionalChain([scope, 'optionalAccess', _2 => _2.getSpan, 'call', _3 => _3()]); | ||
const parentSpan = scope.getSpan(); | ||
@@ -157,3 +157,3 @@ // Check if the operation was passed a callback. (mapReduce requires a different check, as | ||
if (typeof lastArg !== 'function' || (operation === 'mapReduce' && args.length === 2)) { | ||
const span = _optionalChain([parentSpan, 'optionalAccess', _4 => _4.startChild, 'call', _5 => _5(getSpanContext(this, operation, args))]); | ||
const span = _optionalChain([parentSpan, 'optionalAccess', _2 => _2.startChild, 'call', _3 => _3(getSpanContext(this, operation, args))]); | ||
const maybePromiseOrCursor = orig.call(this, ...args); | ||
@@ -163,3 +163,3 @@ | ||
return maybePromiseOrCursor.then((res) => { | ||
_optionalChain([span, 'optionalAccess', _6 => _6.finish, 'call', _7 => _7()]); | ||
_optionalChain([span, 'optionalAccess', _4 => _4.finish, 'call', _5 => _5()]); | ||
return res; | ||
@@ -175,3 +175,3 @@ }); | ||
cursor.once('close', () => { | ||
_optionalChain([span, 'optionalAccess', _8 => _8.finish, 'call', _9 => _9()]); | ||
_optionalChain([span, 'optionalAccess', _6 => _6.finish, 'call', _7 => _7()]); | ||
}); | ||
@@ -181,3 +181,3 @@ } catch (e) { | ||
// finish the span immediately. | ||
_optionalChain([span, 'optionalAccess', _10 => _10.finish, 'call', _11 => _11()]); | ||
_optionalChain([span, 'optionalAccess', _8 => _8.finish, 'call', _9 => _9()]); | ||
} | ||
@@ -187,3 +187,3 @@ | ||
} else { | ||
_optionalChain([span, 'optionalAccess', _12 => _12.finish, 'call', _13 => _13()]); | ||
_optionalChain([span, 'optionalAccess', _10 => _10.finish, 'call', _11 => _11()]); | ||
return maybePromiseOrCursor; | ||
@@ -193,6 +193,6 @@ } | ||
const span = _optionalChain([parentSpan, 'optionalAccess', _14 => _14.startChild, 'call', _15 => _15(getSpanContext(this, operation, args.slice(0, -1)))]); | ||
const span = _optionalChain([parentSpan, 'optionalAccess', _12 => _12.startChild, 'call', _13 => _13(getSpanContext(this, operation, args.slice(0, -1)))]); | ||
return orig.call(this, ...args.slice(0, -1), function (err, result) { | ||
_optionalChain([span, 'optionalAccess', _16 => _16.finish, 'call', _17 => _17()]); | ||
_optionalChain([span, 'optionalAccess', _14 => _14.finish, 'call', _15 => _15()]); | ||
lastArg(err, result); | ||
@@ -199,0 +199,0 @@ }); |
@@ -92,5 +92,5 @@ var { | ||
const scope = getCurrentHub().getScope(); | ||
const parentSpan = _optionalChain([scope, 'optionalAccess', _2 => _2.getSpan, 'call', _3 => _3()]); | ||
const parentSpan = scope.getSpan(); | ||
const span = _optionalChain([parentSpan, 'optionalAccess', _4 => _4.startChild, 'call', _5 => _5({ | ||
const span = _optionalChain([parentSpan, 'optionalAccess', _2 => _2.startChild, 'call', _3 => _3({ | ||
description: typeof options === 'string' ? options : (options ).sql, | ||
@@ -97,0 +97,0 @@ op: 'db', |
@@ -64,3 +64,3 @@ var { | ||
const scope = getCurrentHub().getScope(); | ||
const parentSpan = _optionalChain([scope, 'optionalAccess', _4 => _4.getSpan, 'call', _5 => _5()]); | ||
const parentSpan = scope.getSpan(); | ||
@@ -88,3 +88,3 @@ const data = { | ||
const span = _optionalChain([parentSpan, 'optionalAccess', _6 => _6.startChild, 'call', _7 => _7({ | ||
const span = _optionalChain([parentSpan, 'optionalAccess', _4 => _4.startChild, 'call', _5 => _5({ | ||
description: typeof config === 'string' ? config : (config ).text, | ||
@@ -98,3 +98,3 @@ op: 'db', | ||
return orig.call(this, config, values, function (err, result) { | ||
_optionalChain([span, 'optionalAccess', _8 => _8.finish, 'call', _9 => _9()]); | ||
_optionalChain([span, 'optionalAccess', _6 => _6.finish, 'call', _7 => _7()]); | ||
callback(err, result); | ||
@@ -106,3 +106,3 @@ }); | ||
return orig.call(this, config, function (err, result) { | ||
_optionalChain([span, 'optionalAccess', _10 => _10.finish, 'call', _11 => _11()]); | ||
_optionalChain([span, 'optionalAccess', _8 => _8.finish, 'call', _9 => _9()]); | ||
values(err, result); | ||
@@ -116,3 +116,3 @@ }); | ||
return rv.then((res) => { | ||
_optionalChain([span, 'optionalAccess', _12 => _12.finish, 'call', _13 => _13()]); | ||
_optionalChain([span, 'optionalAccess', _10 => _10.finish, 'call', _11 => _11()]); | ||
return res; | ||
@@ -122,3 +122,3 @@ }); | ||
_optionalChain([span, 'optionalAccess', _14 => _14.finish, 'call', _15 => _15()]); | ||
_optionalChain([span, 'optionalAccess', _12 => _12.finish, 'call', _13 => _13()]); | ||
return rv; | ||
@@ -125,0 +125,0 @@ }; |
@@ -20,3 +20,3 @@ import { getActiveTransaction } from '@sentry/core'; | ||
function getBrowserPerformanceAPI() { | ||
// @ts-ignore we want to make sure all of these are available, even if TS is sure they are | ||
// @ts-expect-error we want to make sure all of these are available, even if TS is sure they are | ||
return WINDOW && WINDOW.addEventListener && WINDOW.performance; | ||
@@ -39,3 +39,3 @@ } | ||
if (performance && browserPerformanceTimeOrigin) { | ||
// @ts-ignore we want to make sure all of these are available, even if TS is sure they are | ||
// @ts-expect-error we want to make sure all of these are available, even if TS is sure they are | ||
if (performance.mark) { | ||
@@ -42,0 +42,0 @@ WINDOW.performance.mark('sentry-tracing-init'); |
@@ -155,4 +155,4 @@ import { _optionalChain } from '@sentry/utils/esm/buildPolyfills'; | ||
const scope = getCurrentHub().getScope(); | ||
const parentSpan = _optionalChain([scope, 'optionalAccess', _2 => _2.getSpan, 'call', _3 => _3()]); | ||
const span = _optionalChain([parentSpan, 'optionalAccess', _4 => _4.startChild, 'call', _5 => _5({ | ||
const parentSpan = scope.getSpan(); | ||
const span = _optionalChain([parentSpan, 'optionalAccess', _2 => _2.startChild, 'call', _3 => _3({ | ||
description: `${resolverGroupName}.${resolverName}`, | ||
@@ -167,3 +167,3 @@ op: 'graphql.resolve', | ||
return rv.then((res) => { | ||
_optionalChain([span, 'optionalAccess', _6 => _6.finish, 'call', _7 => _7()]); | ||
_optionalChain([span, 'optionalAccess', _4 => _4.finish, 'call', _5 => _5()]); | ||
return res; | ||
@@ -173,3 +173,3 @@ }); | ||
_optionalChain([span, 'optionalAccess', _8 => _8.finish, 'call', _9 => _9()]); | ||
_optionalChain([span, 'optionalAccess', _6 => _6.finish, 'call', _7 => _7()]); | ||
@@ -176,0 +176,0 @@ return rv; |
@@ -44,5 +44,5 @@ import { _optionalChain } from '@sentry/utils/esm/buildPolyfills'; | ||
const scope = getCurrentHub().getScope(); | ||
const parentSpan = _optionalChain([scope, 'optionalAccess', _2 => _2.getSpan, 'call', _3 => _3()]); | ||
const parentSpan = scope.getSpan(); | ||
const span = _optionalChain([parentSpan, 'optionalAccess', _4 => _4.startChild, 'call', _5 => _5({ | ||
const span = _optionalChain([parentSpan, 'optionalAccess', _2 => _2.startChild, 'call', _3 => _3({ | ||
description: 'execute', | ||
@@ -53,3 +53,3 @@ op: 'graphql.execute', | ||
_optionalChain([scope, 'optionalAccess', _6 => _6.setSpan, 'call', _7 => _7(span)]); | ||
_optionalChain([scope, 'optionalAccess', _4 => _4.setSpan, 'call', _5 => _5(span)]); | ||
@@ -60,4 +60,4 @@ const rv = orig.call(this, ...args); | ||
return rv.then((res) => { | ||
_optionalChain([span, 'optionalAccess', _8 => _8.finish, 'call', _9 => _9()]); | ||
_optionalChain([scope, 'optionalAccess', _10 => _10.setSpan, 'call', _11 => _11(parentSpan)]); | ||
_optionalChain([span, 'optionalAccess', _6 => _6.finish, 'call', _7 => _7()]); | ||
_optionalChain([scope, 'optionalAccess', _8 => _8.setSpan, 'call', _9 => _9(parentSpan)]); | ||
@@ -68,4 +68,4 @@ return res; | ||
_optionalChain([span, 'optionalAccess', _12 => _12.finish, 'call', _13 => _13()]); | ||
_optionalChain([scope, 'optionalAccess', _14 => _14.setSpan, 'call', _15 => _15(parentSpan)]); | ||
_optionalChain([span, 'optionalAccess', _10 => _10.finish, 'call', _11 => _11()]); | ||
_optionalChain([scope, 'optionalAccess', _12 => _12.setSpan, 'call', _13 => _13(parentSpan)]); | ||
return rv; | ||
@@ -72,0 +72,0 @@ }; |
@@ -146,3 +146,3 @@ import { _optionalChain } from '@sentry/utils/esm/buildPolyfills'; | ||
const scope = getCurrentHub().getScope(); | ||
const parentSpan = _optionalChain([scope, 'optionalAccess', _2 => _2.getSpan, 'call', _3 => _3()]); | ||
const parentSpan = scope.getSpan(); | ||
@@ -152,3 +152,3 @@ // Check if the operation was passed a callback. (mapReduce requires a different check, as | ||
if (typeof lastArg !== 'function' || (operation === 'mapReduce' && args.length === 2)) { | ||
const span = _optionalChain([parentSpan, 'optionalAccess', _4 => _4.startChild, 'call', _5 => _5(getSpanContext(this, operation, args))]); | ||
const span = _optionalChain([parentSpan, 'optionalAccess', _2 => _2.startChild, 'call', _3 => _3(getSpanContext(this, operation, args))]); | ||
const maybePromiseOrCursor = orig.call(this, ...args); | ||
@@ -158,3 +158,3 @@ | ||
return maybePromiseOrCursor.then((res) => { | ||
_optionalChain([span, 'optionalAccess', _6 => _6.finish, 'call', _7 => _7()]); | ||
_optionalChain([span, 'optionalAccess', _4 => _4.finish, 'call', _5 => _5()]); | ||
return res; | ||
@@ -170,3 +170,3 @@ }); | ||
cursor.once('close', () => { | ||
_optionalChain([span, 'optionalAccess', _8 => _8.finish, 'call', _9 => _9()]); | ||
_optionalChain([span, 'optionalAccess', _6 => _6.finish, 'call', _7 => _7()]); | ||
}); | ||
@@ -176,3 +176,3 @@ } catch (e) { | ||
// finish the span immediately. | ||
_optionalChain([span, 'optionalAccess', _10 => _10.finish, 'call', _11 => _11()]); | ||
_optionalChain([span, 'optionalAccess', _8 => _8.finish, 'call', _9 => _9()]); | ||
} | ||
@@ -182,3 +182,3 @@ | ||
} else { | ||
_optionalChain([span, 'optionalAccess', _12 => _12.finish, 'call', _13 => _13()]); | ||
_optionalChain([span, 'optionalAccess', _10 => _10.finish, 'call', _11 => _11()]); | ||
return maybePromiseOrCursor; | ||
@@ -188,6 +188,6 @@ } | ||
const span = _optionalChain([parentSpan, 'optionalAccess', _14 => _14.startChild, 'call', _15 => _15(getSpanContext(this, operation, args.slice(0, -1)))]); | ||
const span = _optionalChain([parentSpan, 'optionalAccess', _12 => _12.startChild, 'call', _13 => _13(getSpanContext(this, operation, args.slice(0, -1)))]); | ||
return orig.call(this, ...args.slice(0, -1), function (err, result) { | ||
_optionalChain([span, 'optionalAccess', _16 => _16.finish, 'call', _17 => _17()]); | ||
_optionalChain([span, 'optionalAccess', _14 => _14.finish, 'call', _15 => _15()]); | ||
lastArg(err, result); | ||
@@ -194,0 +194,0 @@ }); |
@@ -87,5 +87,5 @@ import { _optionalChain } from '@sentry/utils/esm/buildPolyfills'; | ||
const scope = getCurrentHub().getScope(); | ||
const parentSpan = _optionalChain([scope, 'optionalAccess', _2 => _2.getSpan, 'call', _3 => _3()]); | ||
const parentSpan = scope.getSpan(); | ||
const span = _optionalChain([parentSpan, 'optionalAccess', _4 => _4.startChild, 'call', _5 => _5({ | ||
const span = _optionalChain([parentSpan, 'optionalAccess', _2 => _2.startChild, 'call', _3 => _3({ | ||
description: typeof options === 'string' ? options : (options ).sql, | ||
@@ -92,0 +92,0 @@ op: 'db', |
@@ -59,3 +59,3 @@ import { _optionalChain } from '@sentry/utils/esm/buildPolyfills'; | ||
const scope = getCurrentHub().getScope(); | ||
const parentSpan = _optionalChain([scope, 'optionalAccess', _4 => _4.getSpan, 'call', _5 => _5()]); | ||
const parentSpan = scope.getSpan(); | ||
@@ -83,3 +83,3 @@ const data = { | ||
const span = _optionalChain([parentSpan, 'optionalAccess', _6 => _6.startChild, 'call', _7 => _7({ | ||
const span = _optionalChain([parentSpan, 'optionalAccess', _4 => _4.startChild, 'call', _5 => _5({ | ||
description: typeof config === 'string' ? config : (config ).text, | ||
@@ -93,3 +93,3 @@ op: 'db', | ||
return orig.call(this, config, values, function (err, result) { | ||
_optionalChain([span, 'optionalAccess', _8 => _8.finish, 'call', _9 => _9()]); | ||
_optionalChain([span, 'optionalAccess', _6 => _6.finish, 'call', _7 => _7()]); | ||
callback(err, result); | ||
@@ -101,3 +101,3 @@ }); | ||
return orig.call(this, config, function (err, result) { | ||
_optionalChain([span, 'optionalAccess', _10 => _10.finish, 'call', _11 => _11()]); | ||
_optionalChain([span, 'optionalAccess', _8 => _8.finish, 'call', _9 => _9()]); | ||
values(err, result); | ||
@@ -111,3 +111,3 @@ }); | ||
return rv.then((res) => { | ||
_optionalChain([span, 'optionalAccess', _12 => _12.finish, 'call', _13 => _13()]); | ||
_optionalChain([span, 'optionalAccess', _10 => _10.finish, 'call', _11 => _11()]); | ||
return res; | ||
@@ -117,3 +117,3 @@ }); | ||
_optionalChain([span, 'optionalAccess', _14 => _14.finish, 'call', _15 => _15()]); | ||
_optionalChain([span, 'optionalAccess', _12 => _12.finish, 'call', _13 => _13()]); | ||
return rv; | ||
@@ -120,0 +120,0 @@ }; |
{ | ||
"name": "@sentry-internal/tracing", | ||
"version": "7.68.0", | ||
"version": "7.69.0", | ||
"description": "Sentry Internal Tracing Package", | ||
@@ -26,5 +26,5 @@ "repository": "git://github.com/getsentry/sentry-javascript.git", | ||
"dependencies": { | ||
"@sentry/core": "7.68.0", | ||
"@sentry/types": "7.68.0", | ||
"@sentry/utils": "7.68.0", | ||
"@sentry/core": "7.69.0", | ||
"@sentry/types": "7.69.0", | ||
"@sentry/utils": "7.69.0", | ||
"tslib": "^2.4.1 || ^1.9.3" | ||
@@ -31,0 +31,0 @@ }, |
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
944247
+ Added@sentry/core@7.69.0(transitive)
+ Added@sentry/types@7.69.0(transitive)
+ Added@sentry/utils@7.69.0(transitive)
- Removed@sentry/core@7.68.0(transitive)
- Removed@sentry/types@7.68.0(transitive)
- Removed@sentry/utils@7.68.0(transitive)
Updated@sentry/core@7.69.0
Updated@sentry/types@7.69.0
Updated@sentry/utils@7.69.0