Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@sentry/tracing

Package Overview
Dependencies
Maintainers
12
Versions
317
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sentry/tracing - npm Package Compare versions

Comparing version 6.4.0 to 6.4.1

3

dist/browser/metrics.js

@@ -13,5 +13,6 @@ Object.defineProperty(exports, "__esModule", { value: true });

function MetricsInstrumentation() {
var _a;
this._measurements = {};
this._performanceCursor = 0;
if (global && global.performance) {
if (!utils_1.isNodeEnv() && ((_a = global) === null || _a === void 0 ? void 0 : _a.performance)) {
if (global.performance.mark) {

@@ -18,0 +19,0 @@ global.performance.mark('sentry-tracing-init');

@@ -25,6 +25,7 @@ Object.defineProperty(exports, "__esModule", { value: true });

* function (query, params) => Promise
* function (pg.Cursor) => pg.Cursor
*/
utils_1.fill(pkg.Client.prototype, 'query', function (orig) {
return function (config, values, callback) {
var _a, _b;
var _a, _b, _c;
var scope = getCurrentHub().getScope();

@@ -50,7 +51,12 @@ var parentSpan = (_a = scope) === null || _a === void 0 ? void 0 : _a.getSpan();

}
return orig.call(this, config, values).then(function (res) {
var _a;
(_a = span) === null || _a === void 0 ? void 0 : _a.finish();
return res;
});
var rv = typeof values !== 'undefined' ? orig.call(this, config, values) : orig.call(this, config);
if (utils_1.isThenable(rv)) {
return rv.then(function (res) {
var _a;
(_a = span) === null || _a === void 0 ? void 0 : _a.finish();
return res;
});
}
(_c = span) === null || _c === void 0 ? void 0 : _c.finish();
return rv;
};

@@ -57,0 +63,0 @@ });

import { __assign, __rest } from "tslib";
import { browserPerformanceTimeOrigin, getGlobalObject, htmlTreeAsString, logger } from '@sentry/utils';
import { browserPerformanceTimeOrigin, getGlobalObject, htmlTreeAsString, isNodeEnv, logger } from '@sentry/utils';
import { msToSec } from '../utils';

@@ -12,5 +12,6 @@ import { getCLS } from './web-vitals/getCLS';

function MetricsInstrumentation() {
var _a;
this._measurements = {};
this._performanceCursor = 0;
if (global && global.performance) {
if (!isNodeEnv() && ((_a = global) === null || _a === void 0 ? void 0 : _a.performance)) {
if (global.performance.mark) {

@@ -17,0 +18,0 @@ global.performance.mark('sentry-tracing-init');

@@ -1,2 +0,2 @@

import { fill, loadModule, logger } from '@sentry/utils';
import { fill, isThenable, loadModule, logger } from '@sentry/utils';
/** Tracing integration for node-postgres package */

@@ -24,6 +24,7 @@ var Postgres = /** @class */ (function () {

* function (query, params) => Promise
* function (pg.Cursor) => pg.Cursor
*/
fill(pkg.Client.prototype, 'query', function (orig) {
return function (config, values, callback) {
var _a, _b;
var _a, _b, _c;
var scope = getCurrentHub().getScope();

@@ -49,7 +50,12 @@ var parentSpan = (_a = scope) === null || _a === void 0 ? void 0 : _a.getSpan();

}
return orig.call(this, config, values).then(function (res) {
var _a;
(_a = span) === null || _a === void 0 ? void 0 : _a.finish();
return res;
});
var rv = typeof values !== 'undefined' ? orig.call(this, config, values) : orig.call(this, config);
if (isThenable(rv)) {
return rv.then(function (res) {
var _a;
(_a = span) === null || _a === void 0 ? void 0 : _a.finish();
return res;
});
}
(_c = span) === null || _c === void 0 ? void 0 : _c.finish();
return rv;
};

@@ -56,0 +62,0 @@ });

{
"name": "@sentry/tracing",
"version": "6.4.0",
"version": "6.4.1",
"description": "Extensions for Sentry AM",

@@ -19,11 +19,11 @@ "repository": "git://github.com/getsentry/sentry-javascript.git",

"dependencies": {
"@sentry/hub": "6.4.0",
"@sentry/minimal": "6.4.0",
"@sentry/types": "6.4.0",
"@sentry/utils": "6.4.0",
"@sentry/hub": "6.4.1",
"@sentry/minimal": "6.4.1",
"@sentry/types": "6.4.1",
"@sentry/utils": "6.4.1",
"tslib": "^1.9.3"
},
"devDependencies": {
"@sentry-internal/eslint-config-sdk": "6.4.0",
"@sentry/browser": "6.4.0",
"@sentry-internal/eslint-config-sdk": "6.4.1",
"@sentry/browser": "6.4.1",
"@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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc