@sentry/tracing
Advanced tools
Comparing version 5.30.0 to 6.0.0
@@ -116,3 +116,3 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
} | ||
var _a, _b, _c; | ||
var _a, _b, _c, _d; | ||
var lastArg = args[args.length - 1]; | ||
@@ -125,9 +125,16 @@ var scope = getCurrentHub().getScope(); | ||
var span_1 = (_b = parentSpan) === null || _b === void 0 ? void 0 : _b.startChild(getSpanContext(this, operation, args)); | ||
return orig.call.apply(orig, tslib_1.__spread([this], args)).then(function (res) { | ||
var _a; | ||
(_a = span_1) === null || _a === void 0 ? void 0 : _a.finish(); | ||
return res; | ||
}); | ||
var maybePromise = orig.call.apply(orig, tslib_1.__spread([this], args)); | ||
if (utils_1.isThenable(maybePromise)) { | ||
return maybePromise.then(function (res) { | ||
var _a; | ||
(_a = span_1) === null || _a === void 0 ? void 0 : _a.finish(); | ||
return res; | ||
}); | ||
} | ||
else { | ||
(_c = span_1) === null || _c === void 0 ? void 0 : _c.finish(); | ||
return maybePromise; | ||
} | ||
} | ||
var span = (_c = parentSpan) === null || _c === void 0 ? void 0 : _c.startChild(getSpanContext(this, operation, args.slice(0, -1))); | ||
var span = (_d = parentSpan) === null || _d === void 0 ? void 0 : _d.startChild(getSpanContext(this, operation, args.slice(0, -1))); | ||
return orig.call.apply(orig, tslib_1.__spread([this], args.slice(0, -1), [function (err, result) { | ||
@@ -134,0 +141,0 @@ var _a; |
import { __read, __spread } from "tslib"; | ||
import { dynamicRequire, fill, logger } from '@sentry/utils'; | ||
import { dynamicRequire, fill, isThenable, logger } from '@sentry/utils'; | ||
var OPERATIONS = [ | ||
@@ -115,3 +115,3 @@ 'aggregate', | ||
} | ||
var _a, _b, _c; | ||
var _a, _b, _c, _d; | ||
var lastArg = args[args.length - 1]; | ||
@@ -124,9 +124,16 @@ var scope = getCurrentHub().getScope(); | ||
var span_1 = (_b = parentSpan) === null || _b === void 0 ? void 0 : _b.startChild(getSpanContext(this, operation, args)); | ||
return orig.call.apply(orig, __spread([this], args)).then(function (res) { | ||
var _a; | ||
(_a = span_1) === null || _a === void 0 ? void 0 : _a.finish(); | ||
return res; | ||
}); | ||
var maybePromise = orig.call.apply(orig, __spread([this], args)); | ||
if (isThenable(maybePromise)) { | ||
return maybePromise.then(function (res) { | ||
var _a; | ||
(_a = span_1) === null || _a === void 0 ? void 0 : _a.finish(); | ||
return res; | ||
}); | ||
} | ||
else { | ||
(_c = span_1) === null || _c === void 0 ? void 0 : _c.finish(); | ||
return maybePromise; | ||
} | ||
} | ||
var span = (_c = parentSpan) === null || _c === void 0 ? void 0 : _c.startChild(getSpanContext(this, operation, args.slice(0, -1))); | ||
var span = (_d = parentSpan) === null || _d === void 0 ? void 0 : _d.startChild(getSpanContext(this, operation, args.slice(0, -1))); | ||
return orig.call.apply(orig, __spread([this], args.slice(0, -1), [function (err, result) { | ||
@@ -133,0 +140,0 @@ var _a; |
{ | ||
"name": "@sentry/tracing", | ||
"version": "5.30.0", | ||
"version": "6.0.0", | ||
"description": "Extensions for Sentry AM", | ||
@@ -19,11 +19,11 @@ "repository": "git://github.com/getsentry/sentry-javascript.git", | ||
"dependencies": { | ||
"@sentry/hub": "5.30.0", | ||
"@sentry/minimal": "5.30.0", | ||
"@sentry/types": "5.30.0", | ||
"@sentry/utils": "5.30.0", | ||
"@sentry/hub": "6.0.0", | ||
"@sentry/minimal": "6.0.0", | ||
"@sentry/types": "6.0.0", | ||
"@sentry/utils": "6.0.0", | ||
"tslib": "^1.9.3" | ||
}, | ||
"devDependencies": { | ||
"@sentry-internal/eslint-config-sdk": "5.30.0", | ||
"@sentry/browser": "5.30.0", | ||
"@sentry-internal/eslint-config-sdk": "6.0.0", | ||
"@sentry/browser": "6.0.0", | ||
"@types/express": "^4.17.1", | ||
@@ -30,0 +30,0 @@ "@types/jsdom": "^16.2.3", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
2129872
15781
+ Added@sentry/hub@6.0.0(transitive)
+ Added@sentry/minimal@6.0.0(transitive)
+ Added@sentry/types@6.0.0(transitive)
+ Added@sentry/utils@6.0.0(transitive)
- Removed@sentry/hub@5.30.0(transitive)
- Removed@sentry/minimal@5.30.0(transitive)
- Removed@sentry/types@5.30.0(transitive)
- Removed@sentry/utils@5.30.0(transitive)
Updated@sentry/hub@6.0.0
Updated@sentry/minimal@6.0.0
Updated@sentry/types@6.0.0
Updated@sentry/utils@6.0.0