@sentry/tracing
Advanced tools
Comparing version 6.15.0 to 6.16.0
@@ -1,12 +0,5 @@ | ||
import { BrowserTracing } from './browser'; | ||
import { addExtensionMethods } from './hubextensions'; | ||
import * as TracingIntegrations from './integrations'; | ||
declare const Integrations: { | ||
BrowserTracing: typeof BrowserTracing; | ||
Express: typeof TracingIntegrations.Express; | ||
Postgres: typeof TracingIntegrations.Postgres; | ||
Mysql: typeof TracingIntegrations.Mysql; | ||
Mongo: typeof TracingIntegrations.Mongo; | ||
}; | ||
import * as Integrations from './integrations'; | ||
export { Integrations }; | ||
export { BrowserTracing } from './browser'; | ||
export { Span } from './span'; | ||
@@ -13,0 +6,0 @@ export { Transaction } from './transaction'; |
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var tslib_1 = require("tslib"); | ||
var browser_1 = require("./browser"); | ||
var hubextensions_1 = require("./hubextensions"); | ||
exports.addExtensionMethods = hubextensions_1.addExtensionMethods; | ||
var TracingIntegrations = require("./integrations"); | ||
var Integrations = tslib_1.__assign(tslib_1.__assign({}, TracingIntegrations), { BrowserTracing: browser_1.BrowserTracing }); | ||
var Integrations = require("./integrations"); | ||
exports.Integrations = Integrations; | ||
// This is already exported as part of `Integrations` above (and for the moment will remain so for | ||
// backwards compatibility), but that interferes with treeshaking, so we also export it separately | ||
// here. | ||
// | ||
// Previously we expected users to import tracing integrations like | ||
// | ||
// import { Integrations } from '@sentry/tracing'; | ||
// const instance = new Integrations.BrowserTracing(); | ||
// | ||
// This makes the integrations unable to be treeshaken though. To address this, we now have | ||
// this individual export. We now expect users to consume BrowserTracing like so: | ||
// | ||
// import { BrowserTracing } from '@sentry/tracing'; | ||
// const instance = new BrowserTracing(); | ||
// | ||
// For an example of of the new usage of BrowserTracing, see @sentry/nextjs index.client.ts | ||
var browser_1 = require("./browser"); | ||
exports.BrowserTracing = browser_1.BrowserTracing; | ||
var span_1 = require("./span"); | ||
@@ -10,0 +25,0 @@ exports.Span = span_1.Span; |
@@ -5,2 +5,3 @@ export { Express } from './node/express'; | ||
export { Mongo } from './node/mongo'; | ||
export { BrowserTracing } from '../browser'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -10,2 +10,6 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Mongo = mongo_1.Mongo; | ||
// TODO(v7): Remove this export | ||
// Please see `src/index.ts` for more details. | ||
var browser_1 = require("../browser"); | ||
exports.BrowserTracing = browser_1.BrowserTracing; | ||
//# sourceMappingURL=index.js.map |
@@ -63,3 +63,3 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
description: fn.name, | ||
op: "middleware." + method, | ||
op: "express.middleware." + method, | ||
}); | ||
@@ -79,3 +79,3 @@ res.once('finish', function () { | ||
description: fn.name, | ||
op: "middleware." + method, | ||
op: "express.middleware." + method, | ||
}); | ||
@@ -99,3 +99,3 @@ fn.call(this, req, res, function () { | ||
description: fn.name, | ||
op: "middleware." + method, | ||
op: "express.middleware." + method, | ||
}); | ||
@@ -102,0 +102,0 @@ fn.call(this, err, req, res, function () { |
@@ -50,3 +50,3 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
function fromHttpCode(httpStatus) { | ||
if (httpStatus < 400) { | ||
if (httpStatus < 400 && httpStatus >= 100) { | ||
return SpanStatus.Ok; | ||
@@ -53,0 +53,0 @@ } |
@@ -17,6 +17,3 @@ Object.defineProperty(exports, "__esModule", { value: true }); | ||
var _a; | ||
if (!options) { | ||
return false; | ||
} | ||
return 'tracesSampleRate' in options || 'tracesSampler' in options; | ||
return !!options && ('tracesSampleRate' in options || 'tracesSampler' in options); | ||
} | ||
@@ -23,0 +20,0 @@ exports.hasTracingEnabled = hasTracingEnabled; |
@@ -1,12 +0,5 @@ | ||
import { BrowserTracing } from './browser'; | ||
import { addExtensionMethods } from './hubextensions'; | ||
import * as TracingIntegrations from './integrations'; | ||
declare const Integrations: { | ||
BrowserTracing: typeof BrowserTracing; | ||
Express: typeof TracingIntegrations.Express; | ||
Postgres: typeof TracingIntegrations.Postgres; | ||
Mysql: typeof TracingIntegrations.Mysql; | ||
Mongo: typeof TracingIntegrations.Mongo; | ||
}; | ||
import * as Integrations from './integrations'; | ||
export { Integrations }; | ||
export { BrowserTracing } from './browser'; | ||
export { Span } from './span'; | ||
@@ -13,0 +6,0 @@ export { Transaction } from './transaction'; |
@@ -1,7 +0,21 @@ | ||
import { __assign } from "tslib"; | ||
import { BrowserTracing } from './browser'; | ||
import { addExtensionMethods } from './hubextensions'; | ||
import * as TracingIntegrations from './integrations'; | ||
var Integrations = __assign(__assign({}, TracingIntegrations), { BrowserTracing: BrowserTracing }); | ||
import * as Integrations from './integrations'; | ||
export { Integrations }; | ||
// This is already exported as part of `Integrations` above (and for the moment will remain so for | ||
// backwards compatibility), but that interferes with treeshaking, so we also export it separately | ||
// here. | ||
// | ||
// Previously we expected users to import tracing integrations like | ||
// | ||
// import { Integrations } from '@sentry/tracing'; | ||
// const instance = new Integrations.BrowserTracing(); | ||
// | ||
// This makes the integrations unable to be treeshaken though. To address this, we now have | ||
// this individual export. We now expect users to consume BrowserTracing like so: | ||
// | ||
// import { BrowserTracing } from '@sentry/tracing'; | ||
// const instance = new BrowserTracing(); | ||
// | ||
// For an example of of the new usage of BrowserTracing, see @sentry/nextjs index.client.ts | ||
export { BrowserTracing } from './browser'; | ||
export { Span } from './span'; | ||
@@ -8,0 +22,0 @@ export { Transaction } from './transaction'; |
@@ -5,2 +5,3 @@ export { Express } from './node/express'; | ||
export { Mongo } from './node/mongo'; | ||
export { BrowserTracing } from '../browser'; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -5,2 +5,5 @@ export { Express } from './node/express'; | ||
export { Mongo } from './node/mongo'; | ||
// TODO(v7): Remove this export | ||
// Please see `src/index.ts` for more details. | ||
export { BrowserTracing } from '../browser'; | ||
//# sourceMappingURL=index.js.map |
@@ -62,3 +62,3 @@ import { __read, __spread } from "tslib"; | ||
description: fn.name, | ||
op: "middleware." + method, | ||
op: "express.middleware." + method, | ||
}); | ||
@@ -78,3 +78,3 @@ res.once('finish', function () { | ||
description: fn.name, | ||
op: "middleware." + method, | ||
op: "express.middleware." + method, | ||
}); | ||
@@ -98,3 +98,3 @@ fn.call(this, req, res, function () { | ||
description: fn.name, | ||
op: "middleware." + method, | ||
op: "express.middleware." + method, | ||
}); | ||
@@ -101,0 +101,0 @@ fn.call(this, err, req, res, function () { |
@@ -49,3 +49,3 @@ /** The status of an Span. */ | ||
function fromHttpCode(httpStatus) { | ||
if (httpStatus < 400) { | ||
if (httpStatus < 400 && httpStatus >= 100) { | ||
return SpanStatus.Ok; | ||
@@ -52,0 +52,0 @@ } |
@@ -16,6 +16,3 @@ import { getCurrentHub } from '@sentry/hub'; | ||
var _a; | ||
if (!options) { | ||
return false; | ||
} | ||
return 'tracesSampleRate' in options || 'tracesSampler' in options; | ||
return !!options && ('tracesSampleRate' in options || 'tracesSampler' in options); | ||
} | ||
@@ -22,0 +19,0 @@ /** |
{ | ||
"name": "@sentry/tracing", | ||
"version": "6.15.0", | ||
"version": "6.16.0", | ||
"description": "Extensions for Sentry AM", | ||
@@ -19,17 +19,13 @@ "repository": "git://github.com/getsentry/sentry-javascript.git", | ||
"dependencies": { | ||
"@sentry/hub": "6.15.0", | ||
"@sentry/minimal": "6.15.0", | ||
"@sentry/types": "6.15.0", | ||
"@sentry/utils": "6.15.0", | ||
"@sentry/hub": "6.16.0", | ||
"@sentry/minimal": "6.16.0", | ||
"@sentry/types": "6.16.0", | ||
"@sentry/utils": "6.16.0", | ||
"tslib": "^1.9.3" | ||
}, | ||
"devDependencies": { | ||
"@sentry/browser": "6.15.0", | ||
"@sentry/browser": "6.16.0", | ||
"@types/express": "^4.17.1", | ||
"@types/jsdom": "^16.2.3", | ||
"jest": "^24.7.1", | ||
"jsdom": "^16.2.2", | ||
"npm-run-all": "^4.1.2", | ||
"prettier": "1.19.0", | ||
"rimraf": "^2.6.3", | ||
"rollup": "^1.10.1", | ||
@@ -44,11 +40,13 @@ "rollup-plugin-commonjs": "^9.3.4", | ||
"scripts": { | ||
"build": "run-p build:es5 build:esm build:bundle", | ||
"build": "run-p build:cjs build:esm build:bundle", | ||
"build:bundle": "rollup --config", | ||
"build:dev": "run-s build:es5 build:esm", | ||
"build:es5": "tsc -p tsconfig.build.json", | ||
"build:cjs": "tsc -p tsconfig.cjs.json", | ||
"build:dev": "run-s build:cjs build:esm", | ||
"build:es5": "yarn build:cjs # *** backwards compatibility - remove in v7 ***", | ||
"build:esm": "tsc -p tsconfig.esm.json", | ||
"build:watch": "run-p build:es5:watch build:esm:watch", | ||
"build:watch": "run-p build:cjs:watch build:esm:watch build:bundle:watch", | ||
"build:bundle:watch": "rollup --config --watch", | ||
"build:dev:watch": "run-p build:es5:watch build:esm:watch", | ||
"build:es5:watch": "tsc -p tsconfig.build.json -w --preserveWatchOutput", | ||
"build:cjs:watch": "tsc -p tsconfig.cjs.json -w --preserveWatchOutput", | ||
"build:dev:watch": "run-s build:watch", | ||
"build:es5:watch": "yarn build:cjs:watch # *** backwards compatibility - remove in v7 ***", | ||
"build:esm:watch": "tsc -p tsconfig.esm.json -w --preserveWatchOutput", | ||
@@ -55,0 +53,0 @@ "clean": "rimraf dist esm build coverage", |
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
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
2336526
11
16885
+ Added@sentry/hub@6.16.0(transitive)
+ Added@sentry/minimal@6.16.0(transitive)
+ Added@sentry/types@6.16.0(transitive)
+ Added@sentry/utils@6.16.0(transitive)
- Removed@sentry/hub@6.15.0(transitive)
- Removed@sentry/minimal@6.15.0(transitive)
- Removed@sentry/types@6.15.0(transitive)
- Removed@sentry/utils@6.15.0(transitive)
Updated@sentry/hub@6.16.0
Updated@sentry/minimal@6.16.0
Updated@sentry/types@6.16.0
Updated@sentry/utils@6.16.0