Socket
Socket
Sign inDemoInstall

@sentry-internal/tracing

Package Overview
Dependencies
Maintainers
9
Versions
121
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sentry-internal/tracing - npm Package Compare versions

Comparing version 7.82.0 to 7.83.0

cjs/common/debug-build.js

6

cjs/browser/backgroundtab.js

@@ -5,2 +5,3 @@ Object.defineProperty(exports, '__esModule', { value: true });

const utils = require('@sentry/utils');
const debugBuild = require('../common/debug-build.js');
const types = require('./types.js');

@@ -19,3 +20,3 @@

(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) &&
debugBuild.DEBUG_BUILD &&
utils.logger.log(

@@ -34,4 +35,3 @@ `[Tracing] Transaction: ${statusType} -> since tab moved to the background, op: ${activeTransaction.op}`,

} else {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) &&
utils.logger.warn('[Tracing] Could not set up background tab detection due to lack of global document');
debugBuild.DEBUG_BUILD && utils.logger.warn('[Tracing] Could not set up background tab detection due to lack of global document');
}

@@ -38,0 +38,0 @@ }

@@ -5,2 +5,3 @@ Object.defineProperty(exports, '__esModule', { value: true });

const utils = require('@sentry/utils');
const debugBuild = require('../common/debug-build.js');
const backgroundtab = require('./backgroundtab.js');

@@ -52,3 +53,3 @@ const index = require('./metrics/index.js');

if ((typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__)) {
if (debugBuild.DEBUG_BUILD) {
this._hasSetTracePropagationTargets = !!(

@@ -124,3 +125,3 @@ _options &&

const tracePropagationTargets = clientOptionsTracePropagationTargets || this.options.tracePropagationTargets;
if ((typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && this._hasSetTracePropagationTargets && clientOptionsTracePropagationTargets) {
if (debugBuild.DEBUG_BUILD && this._hasSetTracePropagationTargets && clientOptionsTracePropagationTargets) {
utils.logger.warn(

@@ -164,3 +165,3 @@ '[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used.',

if (!this._getCurrentHub) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) &&
debugBuild.DEBUG_BUILD &&
utils.logger.warn(`[Tracing] Did not create ${context.op} transaction because _getCurrentHub is invalid.`);

@@ -209,7 +210,6 @@ return undefined;

if (finalContext.sampled === false) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) &&
utils.logger.log(`[Tracing] Will not send ${finalContext.op} transaction because of beforeNavigate.`);
debugBuild.DEBUG_BUILD && utils.logger.log(`[Tracing] Will not send ${finalContext.op} transaction because of beforeNavigate.`);
}
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && utils.logger.log(`[Tracing] Starting ${finalContext.op} transaction on scope`);
debugBuild.DEBUG_BUILD && utils.logger.log(`[Tracing] Starting ${finalContext.op} transaction on scope`);

@@ -262,3 +262,3 @@ const { location } = types.WINDOW;

if (currentTransaction && currentTransaction.op && ['navigation', 'pageload'].includes(currentTransaction.op)) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) &&
debugBuild.DEBUG_BUILD &&
utils.logger.warn(

@@ -277,3 +277,3 @@ `[Tracing] Did not create ${op} transaction because a pageload or navigation transaction is in progress.`,

if (!this._getCurrentHub) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && utils.logger.warn(`[Tracing] Did not create ${op} transaction because _getCurrentHub is invalid.`);
debugBuild.DEBUG_BUILD && utils.logger.warn(`[Tracing] Did not create ${op} transaction because _getCurrentHub is invalid.`);
return undefined;

@@ -283,4 +283,3 @@ }

if (!this._latestRouteName) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) &&
utils.logger.warn(`[Tracing] Did not create ${op} transaction because _latestRouteName is missing.`);
debugBuild.DEBUG_BUILD && utils.logger.warn(`[Tracing] Did not create ${op} transaction because _latestRouteName is missing.`);
return undefined;

@@ -287,0 +286,0 @@ }

Object.defineProperty(exports, '__esModule', { value: true });
const utils = require('@sentry/utils');
const debugBuild = require('../common/debug-build.js');
const getCLS = require('./web-vitals/getCLS.js');

@@ -71,3 +72,3 @@ const getFID = require('./web-vitals/getFID.js');

} catch (e) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) &&
debugBuild.DEBUG_BUILD &&
utils.logger.error(

@@ -74,0 +75,0 @@ `Error while triggering instrumentation handler.\nType: ${type}\nName: ${utils.getFunctionName(handler)}\nError:`,

@@ -5,2 +5,3 @@ Object.defineProperty(exports, '__esModule', { value: true });

const utils = require('@sentry/utils');
const debugBuild = require('../../common/debug-build.js');
const instrument = require('../instrument.js');

@@ -117,3 +118,3 @@ const types = require('../types.js');

(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && utils.logger.log('[Measurements] Adding CLS');
debugBuild.DEBUG_BUILD && utils.logger.log('[Measurements] Adding CLS');
_measurements['cls'] = { value: metric.value, unit: '' };

@@ -132,3 +133,3 @@ _clsEntry = entry ;

(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && utils.logger.log('[Measurements] Adding LCP');
debugBuild.DEBUG_BUILD && utils.logger.log('[Measurements] Adding LCP');
_measurements['lcp'] = { value: metric.value, unit: 'millisecond' };

@@ -149,3 +150,3 @@ _lcpEntry = entry ;

const startTime = msToSec(entry.startTime);
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && utils.logger.log('[Measurements] Adding FID');
debugBuild.DEBUG_BUILD && utils.logger.log('[Measurements] Adding FID');
_measurements['fid'] = { value: metric.value, unit: 'millisecond' };

@@ -164,3 +165,3 @@ _measurements['mark.fid'] = { value: timeOrigin + startTime, unit: 'second' };

(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && utils.logger.log('[Tracing] Adding & adjusting spans using Performance API');
debugBuild.DEBUG_BUILD && utils.logger.log('[Tracing] Adding & adjusting spans using Performance API');
const timeOrigin = msToSec(utils.browserPerformanceTimeOrigin);

@@ -200,7 +201,7 @@

if (entry.name === 'first-paint' && shouldRecord) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && utils.logger.log('[Measurements] Adding FP');
debugBuild.DEBUG_BUILD && utils.logger.log('[Measurements] Adding FP');
_measurements['fp'] = { value: entry.startTime, unit: 'millisecond' };
}
if (entry.name === 'first-contentful-paint' && shouldRecord) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && utils.logger.log('[Measurements] Adding FCP');
debugBuild.DEBUG_BUILD && utils.logger.log('[Measurements] Adding FCP');
_measurements['fcp'] = { value: entry.startTime, unit: 'millisecond' };

@@ -228,3 +229,3 @@ }

if (typeof responseStartTimestamp === 'number') {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && utils.logger.log('[Measurements] Adding TTFB');
debugBuild.DEBUG_BUILD && utils.logger.log('[Measurements] Adding TTFB');
_measurements['ttfb'] = {

@@ -259,4 +260,3 @@ value: (responseStartTimestamp - transaction.startTimestamp) * 1000,

(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) &&
utils.logger.log(`[Measurements] Normalized ${name} from ${oldValue} to ${normalizedValue} (${delta})`);
debugBuild.DEBUG_BUILD && utils.logger.log(`[Measurements] Normalized ${name} from ${oldValue} to ${normalizedValue} (${delta})`);
_measurements[name].value = normalizedValue;

@@ -455,3 +455,3 @@ });

if (_lcpEntry) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && utils.logger.log('[Measurements] Adding LCP Data');
debugBuild.DEBUG_BUILD && utils.logger.log('[Measurements] Adding LCP Data');

@@ -478,3 +478,3 @@ // Capture Properties of the LCP element that contributes to the LCP.

if (_clsEntry && _clsEntry.sources) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && utils.logger.log('[Measurements] Adding CLS Data');
debugBuild.DEBUG_BUILD && utils.logger.log('[Measurements] Adding CLS Data');
_clsEntry.sources.forEach((source, index) =>

@@ -481,0 +481,0 @@ transaction.setTag(`cls.source.${index + 1}`, utils.htmlTreeAsString(source.node)),

Object.defineProperty(exports, '__esModule', { value: true });
const utils = require('@sentry/utils');
const debugBuild = require('../common/debug-build.js');
const types = require('./types.js');

@@ -15,3 +16,3 @@

if (!types.WINDOW || !types.WINDOW.location) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && utils.logger.warn('Could not initialize routing instrumentation due to invalid location');
debugBuild.DEBUG_BUILD && utils.logger.warn('Could not initialize routing instrumentation due to invalid location');
return;

@@ -53,3 +54,3 @@ }

if (activeTransaction) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && utils.logger.log(`[Tracing] Finishing current transaction with op: ${activeTransaction.op}`);
debugBuild.DEBUG_BUILD && utils.logger.log(`[Tracing] Finishing current transaction with op: ${activeTransaction.op}`);
// If there's an open transaction on the scope, we need to finish it before creating an new one.

@@ -56,0 +57,0 @@ activeTransaction.finish();

@@ -8,2 +8,3 @@ var {

const utils = require('@sentry/utils');
const debugBuild = require('../../common/debug-build.js');
const nodeUtils = require('./utils/node-utils.js');

@@ -50,3 +51,3 @@

if (nodeUtils.shouldDisableAutoInstrumentation(getCurrentHub)) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && utils.logger.log('Apollo Integration is skipped because of instrumenter configuration.');
debugBuild.DEBUG_BUILD && utils.logger.log('Apollo Integration is skipped because of instrumenter configuration.');
return;

@@ -59,3 +60,3 @@ }

if (!pkg) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && utils.logger.error('Apollo-NestJS Integration was unable to require @nestjs/graphql package.');
debugBuild.DEBUG_BUILD && utils.logger.error('Apollo-NestJS Integration was unable to require @nestjs/graphql package.');
return;

@@ -93,3 +94,3 @@ }

if (!pkg) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && utils.logger.error('Apollo Integration was unable to require apollo-server-core package.');
debugBuild.DEBUG_BUILD && utils.logger.error('Apollo Integration was unable to require apollo-server-core package.');
return;

@@ -106,3 +107,3 @@ }

if (!this.config.resolvers) {
if ((typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__)) {
if (debugBuild.DEBUG_BUILD) {
if (this.config.schema) {

@@ -109,0 +110,0 @@ utils.logger.warn(

@@ -8,2 +8,3 @@ var {

const utils = require('@sentry/utils');
const debugBuild = require('../../common/debug-build.js');
const nodeUtils = require('./utils/node-utils.js');

@@ -44,3 +45,3 @@

if (!this._router) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && utils.logger.error('ExpressIntegration is missing an Express instance');
debugBuild.DEBUG_BUILD && utils.logger.error('ExpressIntegration is missing an Express instance');
return;

@@ -50,3 +51,3 @@ }

if (nodeUtils.shouldDisableAutoInstrumentation(getCurrentHub)) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && utils.logger.log('Express Integration is skipped because of instrumenter configuration.');
debugBuild.DEBUG_BUILD && utils.logger.log('Express Integration is skipped because of instrumenter configuration.');
return;

@@ -220,4 +221,4 @@ }

*/
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && utils.logger.debug('Cannot instrument router for URL Parameterization (did not find a valid router).');
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && utils.logger.debug('Routing instrumentation is currently only supported in Express 4.');
debugBuild.DEBUG_BUILD && utils.logger.debug('Cannot instrument router for URL Parameterization (did not find a valid router).');
debugBuild.DEBUG_BUILD && utils.logger.debug('Routing instrumentation is currently only supported in Express 4.');
return;

@@ -224,0 +225,0 @@ }

@@ -8,2 +8,3 @@ var {

const utils = require('@sentry/utils');
const debugBuild = require('../../common/debug-build.js');
const nodeUtils = require('./utils/node-utils.js');

@@ -36,3 +37,3 @@

if (nodeUtils.shouldDisableAutoInstrumentation(getCurrentHub)) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && utils.logger.log('GraphQL Integration is skipped because of instrumenter configuration.');
debugBuild.DEBUG_BUILD && utils.logger.log('GraphQL Integration is skipped because of instrumenter configuration.');
return;

@@ -44,3 +45,3 @@ }

if (!pkg) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && utils.logger.error('GraphQL Integration was unable to require graphql/execution package.');
debugBuild.DEBUG_BUILD && utils.logger.error('GraphQL Integration was unable to require graphql/execution package.');
return;

@@ -47,0 +48,0 @@ }

@@ -8,2 +8,3 @@ var {

const utils = require('@sentry/utils');
const debugBuild = require('../../common/debug-build.js');
const nodeUtils = require('./utils/node-utils.js');

@@ -118,3 +119,3 @@

if (nodeUtils.shouldDisableAutoInstrumentation(getCurrentHub)) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && utils.logger.log('Mongo Integration is skipped because of instrumenter configuration.');
debugBuild.DEBUG_BUILD && utils.logger.log('Mongo Integration is skipped because of instrumenter configuration.');
return;

@@ -127,3 +128,3 @@ }

const moduleName = this._useMongoose ? 'mongoose' : 'mongodb';
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && utils.logger.error(`Mongo Integration was unable to require \`${moduleName}\` package.`);
debugBuild.DEBUG_BUILD && utils.logger.error(`Mongo Integration was unable to require \`${moduleName}\` package.`);
return;

@@ -130,0 +131,0 @@ }

@@ -8,2 +8,3 @@ var {

const utils = require('@sentry/utils');
const debugBuild = require('../../common/debug-build.js');
const nodeUtils = require('./utils/node-utils.js');

@@ -36,3 +37,3 @@

if (nodeUtils.shouldDisableAutoInstrumentation(getCurrentHub)) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && utils.logger.log('Mysql Integration is skipped because of instrumenter configuration.');
debugBuild.DEBUG_BUILD && utils.logger.log('Mysql Integration is skipped because of instrumenter configuration.');
return;

@@ -44,3 +45,3 @@ }

if (!pkg) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && utils.logger.error('Mysql Integration was unable to require `mysql` package.');
debugBuild.DEBUG_BUILD && utils.logger.error('Mysql Integration was unable to require `mysql` package.');
return;

@@ -61,3 +62,3 @@ }

} catch (e) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && utils.logger.error('Mysql Integration was unable to instrument `mysql` config.');
debugBuild.DEBUG_BUILD && utils.logger.error('Mysql Integration was unable to instrument `mysql` config.');
}

@@ -64,0 +65,0 @@

@@ -8,2 +8,3 @@ var {

const utils = require('@sentry/utils');
const debugBuild = require('../../common/debug-build.js');
const nodeUtils = require('./utils/node-utils.js');

@@ -38,3 +39,3 @@

if (nodeUtils.shouldDisableAutoInstrumentation(getCurrentHub)) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && utils.logger.log('Postgres Integration is skipped because of instrumenter configuration.');
debugBuild.DEBUG_BUILD && utils.logger.log('Postgres Integration is skipped because of instrumenter configuration.');
return;

@@ -46,3 +47,3 @@ }

if (!pkg) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && utils.logger.error('Postgres Integration was unable to require `pg` package.');
debugBuild.DEBUG_BUILD && utils.logger.error('Postgres Integration was unable to require `pg` package.');
return;

@@ -54,3 +55,3 @@ }

if (!Client) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && utils.logger.error("Postgres Integration was unable to access 'pg-native' bindings.");
debugBuild.DEBUG_BUILD && utils.logger.error("Postgres Integration was unable to access 'pg-native' bindings.");
return;

@@ -57,0 +58,0 @@ }

@@ -5,2 +5,3 @@ Object.defineProperty(exports, '__esModule', { value: true });

const utils = require('@sentry/utils');
const debugBuild = require('../../common/debug-build.js');
const nodeUtils = require('./utils/node-utils.js');

@@ -73,3 +74,3 @@

} else {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) &&
debugBuild.DEBUG_BUILD &&
utils.logger.warn('Unsupported Prisma client provided to PrismaIntegration. Provided client:', options.client);

@@ -76,0 +77,0 @@ }

import { getActiveTransaction } from '@sentry/core';
import { logger } from '@sentry/utils';
import { DEBUG_BUILD } from '../common/debug-build.js';
import { WINDOW } from './types.js';

@@ -16,3 +17,3 @@

(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) &&
DEBUG_BUILD &&
logger.log(

@@ -31,4 +32,3 @@ `[Tracing] Transaction: ${statusType} -> since tab moved to the background, op: ${activeTransaction.op}`,

} else {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) &&
logger.warn('[Tracing] Could not set up background tab detection due to lack of global document');
DEBUG_BUILD && logger.warn('[Tracing] Could not set up background tab detection due to lack of global document');
}

@@ -35,0 +35,0 @@ }

import { TRACING_DEFAULTS, addTracingExtensions, startIdleTransaction, getActiveTransaction } from '@sentry/core';
import { logger, tracingContextFromHeaders, getDomElement } from '@sentry/utils';
import { DEBUG_BUILD } from '../common/debug-build.js';
import { registerBackgroundTabDetection } from './backgroundtab.js';

@@ -49,3 +50,3 @@ import { startTrackingWebVitals, startTrackingLongTasks, startTrackingInteractions, addPerformanceEntries } from './metrics/index.js';

if ((typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__)) {
if (DEBUG_BUILD) {
this._hasSetTracePropagationTargets = !!(

@@ -121,3 +122,3 @@ _options &&

const tracePropagationTargets = clientOptionsTracePropagationTargets || this.options.tracePropagationTargets;
if ((typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && this._hasSetTracePropagationTargets && clientOptionsTracePropagationTargets) {
if (DEBUG_BUILD && this._hasSetTracePropagationTargets && clientOptionsTracePropagationTargets) {
logger.warn(

@@ -161,3 +162,3 @@ '[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used.',

if (!this._getCurrentHub) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) &&
DEBUG_BUILD &&
logger.warn(`[Tracing] Did not create ${context.op} transaction because _getCurrentHub is invalid.`);

@@ -206,7 +207,6 @@ return undefined;

if (finalContext.sampled === false) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) &&
logger.log(`[Tracing] Will not send ${finalContext.op} transaction because of beforeNavigate.`);
DEBUG_BUILD && logger.log(`[Tracing] Will not send ${finalContext.op} transaction because of beforeNavigate.`);
}
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.log(`[Tracing] Starting ${finalContext.op} transaction on scope`);
DEBUG_BUILD && logger.log(`[Tracing] Starting ${finalContext.op} transaction on scope`);

@@ -259,3 +259,3 @@ const { location } = WINDOW;

if (currentTransaction && currentTransaction.op && ['navigation', 'pageload'].includes(currentTransaction.op)) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) &&
DEBUG_BUILD &&
logger.warn(

@@ -274,3 +274,3 @@ `[Tracing] Did not create ${op} transaction because a pageload or navigation transaction is in progress.`,

if (!this._getCurrentHub) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.warn(`[Tracing] Did not create ${op} transaction because _getCurrentHub is invalid.`);
DEBUG_BUILD && logger.warn(`[Tracing] Did not create ${op} transaction because _getCurrentHub is invalid.`);
return undefined;

@@ -280,4 +280,3 @@ }

if (!this._latestRouteName) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) &&
logger.warn(`[Tracing] Did not create ${op} transaction because _latestRouteName is missing.`);
DEBUG_BUILD && logger.warn(`[Tracing] Did not create ${op} transaction because _latestRouteName is missing.`);
return undefined;

@@ -284,0 +283,0 @@ }

import { logger, getFunctionName } from '@sentry/utils';
import { DEBUG_BUILD } from '../common/debug-build.js';
import { onCLS } from './web-vitals/getCLS.js';

@@ -69,3 +70,3 @@ import { onFID } from './web-vitals/getFID.js';

} catch (e) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) &&
DEBUG_BUILD &&
logger.error(

@@ -72,0 +73,0 @@ `Error while triggering instrumentation handler.\nType: ${type}\nName: ${getFunctionName(handler)}\nError:`,

import { getActiveTransaction } from '@sentry/core';
import { browserPerformanceTimeOrigin, htmlTreeAsString, logger } from '@sentry/utils';
import { DEBUG_BUILD } from '../../common/debug-build.js';
import { addPerformanceInstrumentationHandler, addClsInstrumentationHandler, addLcpInstrumentationHandler, addFidInstrumentationHandler } from '../instrument.js';

@@ -114,3 +115,3 @@ import { WINDOW } from '../types.js';

(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.log('[Measurements] Adding CLS');
DEBUG_BUILD && logger.log('[Measurements] Adding CLS');
_measurements['cls'] = { value: metric.value, unit: '' };

@@ -129,3 +130,3 @@ _clsEntry = entry ;

(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.log('[Measurements] Adding LCP');
DEBUG_BUILD && logger.log('[Measurements] Adding LCP');
_measurements['lcp'] = { value: metric.value, unit: 'millisecond' };

@@ -146,3 +147,3 @@ _lcpEntry = entry ;

const startTime = msToSec(entry.startTime);
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.log('[Measurements] Adding FID');
DEBUG_BUILD && logger.log('[Measurements] Adding FID');
_measurements['fid'] = { value: metric.value, unit: 'millisecond' };

@@ -161,3 +162,3 @@ _measurements['mark.fid'] = { value: timeOrigin + startTime, unit: 'second' };

(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.log('[Tracing] Adding & adjusting spans using Performance API');
DEBUG_BUILD && logger.log('[Tracing] Adding & adjusting spans using Performance API');
const timeOrigin = msToSec(browserPerformanceTimeOrigin);

@@ -197,7 +198,7 @@

if (entry.name === 'first-paint' && shouldRecord) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.log('[Measurements] Adding FP');
DEBUG_BUILD && logger.log('[Measurements] Adding FP');
_measurements['fp'] = { value: entry.startTime, unit: 'millisecond' };
}
if (entry.name === 'first-contentful-paint' && shouldRecord) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.log('[Measurements] Adding FCP');
DEBUG_BUILD && logger.log('[Measurements] Adding FCP');
_measurements['fcp'] = { value: entry.startTime, unit: 'millisecond' };

@@ -225,3 +226,3 @@ }

if (typeof responseStartTimestamp === 'number') {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.log('[Measurements] Adding TTFB');
DEBUG_BUILD && logger.log('[Measurements] Adding TTFB');
_measurements['ttfb'] = {

@@ -256,4 +257,3 @@ value: (responseStartTimestamp - transaction.startTimestamp) * 1000,

(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) &&
logger.log(`[Measurements] Normalized ${name} from ${oldValue} to ${normalizedValue} (${delta})`);
DEBUG_BUILD && logger.log(`[Measurements] Normalized ${name} from ${oldValue} to ${normalizedValue} (${delta})`);
_measurements[name].value = normalizedValue;

@@ -452,3 +452,3 @@ });

if (_lcpEntry) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.log('[Measurements] Adding LCP Data');
DEBUG_BUILD && logger.log('[Measurements] Adding LCP Data');

@@ -475,3 +475,3 @@ // Capture Properties of the LCP element that contributes to the LCP.

if (_clsEntry && _clsEntry.sources) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.log('[Measurements] Adding CLS Data');
DEBUG_BUILD && logger.log('[Measurements] Adding CLS Data');
_clsEntry.sources.forEach((source, index) =>

@@ -478,0 +478,0 @@ transaction.setTag(`cls.source.${index + 1}`, htmlTreeAsString(source.node)),

import { logger, browserPerformanceTimeOrigin, addHistoryInstrumentationHandler } from '@sentry/utils';
import { DEBUG_BUILD } from '../common/debug-build.js';
import { WINDOW } from './types.js';

@@ -13,3 +14,3 @@

if (!WINDOW || !WINDOW.location) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.warn('Could not initialize routing instrumentation due to invalid location');
DEBUG_BUILD && logger.warn('Could not initialize routing instrumentation due to invalid location');
return;

@@ -51,3 +52,3 @@ }

if (activeTransaction) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.log(`[Tracing] Finishing current transaction with op: ${activeTransaction.op}`);
DEBUG_BUILD && logger.log(`[Tracing] Finishing current transaction with op: ${activeTransaction.op}`);
// If there's an open transaction on the scope, we need to finish it before creating an new one.

@@ -54,0 +55,0 @@ activeTransaction.finish();

import { _optionalChain } from '@sentry/utils';
import { loadModule, logger, fill, arrayify, isThenable } from '@sentry/utils';
import { DEBUG_BUILD } from '../../common/debug-build.js';
import { shouldDisableAutoInstrumentation } from './utils/node-utils.js';

@@ -44,3 +45,3 @@

if (shouldDisableAutoInstrumentation(getCurrentHub)) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.log('Apollo Integration is skipped because of instrumenter configuration.');
DEBUG_BUILD && logger.log('Apollo Integration is skipped because of instrumenter configuration.');
return;

@@ -53,3 +54,3 @@ }

if (!pkg) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.error('Apollo-NestJS Integration was unable to require @nestjs/graphql package.');
DEBUG_BUILD && logger.error('Apollo-NestJS Integration was unable to require @nestjs/graphql package.');
return;

@@ -87,3 +88,3 @@ }

if (!pkg) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.error('Apollo Integration was unable to require apollo-server-core package.');
DEBUG_BUILD && logger.error('Apollo Integration was unable to require apollo-server-core package.');
return;

@@ -100,3 +101,3 @@ }

if (!this.config.resolvers) {
if ((typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__)) {
if (DEBUG_BUILD) {
if (this.config.schema) {

@@ -103,0 +104,0 @@ logger.warn(

import { _optionalChain } from '@sentry/utils';
import { logger, getNumberOfUrlSegments, stripUrlQueryAndFragment, extractPathForTransaction, isRegExp, GLOBAL_OBJ } from '@sentry/utils';
import { DEBUG_BUILD } from '../../common/debug-build.js';
import { shouldDisableAutoInstrumentation } from './utils/node-utils.js';

@@ -38,3 +39,3 @@

if (!this._router) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.error('ExpressIntegration is missing an Express instance');
DEBUG_BUILD && logger.error('ExpressIntegration is missing an Express instance');
return;

@@ -44,3 +45,3 @@ }

if (shouldDisableAutoInstrumentation(getCurrentHub)) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.log('Express Integration is skipped because of instrumenter configuration.');
DEBUG_BUILD && logger.log('Express Integration is skipped because of instrumenter configuration.');
return;

@@ -214,4 +215,4 @@ }

*/
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.debug('Cannot instrument router for URL Parameterization (did not find a valid router).');
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.debug('Routing instrumentation is currently only supported in Express 4.');
DEBUG_BUILD && logger.debug('Cannot instrument router for URL Parameterization (did not find a valid router).');
DEBUG_BUILD && logger.debug('Routing instrumentation is currently only supported in Express 4.');
return;

@@ -218,0 +219,0 @@ }

import { _optionalChain } from '@sentry/utils';
import { loadModule, logger, fill, isThenable } from '@sentry/utils';
import { DEBUG_BUILD } from '../../common/debug-build.js';
import { shouldDisableAutoInstrumentation } from './utils/node-utils.js';

@@ -30,3 +31,3 @@

if (shouldDisableAutoInstrumentation(getCurrentHub)) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.log('GraphQL Integration is skipped because of instrumenter configuration.');
DEBUG_BUILD && logger.log('GraphQL Integration is skipped because of instrumenter configuration.');
return;

@@ -38,3 +39,3 @@ }

if (!pkg) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.error('GraphQL Integration was unable to require graphql/execution package.');
DEBUG_BUILD && logger.error('GraphQL Integration was unable to require graphql/execution package.');
return;

@@ -41,0 +42,0 @@ }

import { _optionalChain } from '@sentry/utils';
import { loadModule, logger, fill, isThenable } from '@sentry/utils';
import { DEBUG_BUILD } from '../../common/debug-build.js';
import { shouldDisableAutoInstrumentation } from './utils/node-utils.js';

@@ -112,3 +113,3 @@

if (shouldDisableAutoInstrumentation(getCurrentHub)) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.log('Mongo Integration is skipped because of instrumenter configuration.');
DEBUG_BUILD && logger.log('Mongo Integration is skipped because of instrumenter configuration.');
return;

@@ -121,3 +122,3 @@ }

const moduleName = this._useMongoose ? 'mongoose' : 'mongodb';
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.error(`Mongo Integration was unable to require \`${moduleName}\` package.`);
DEBUG_BUILD && logger.error(`Mongo Integration was unable to require \`${moduleName}\` package.`);
return;

@@ -124,0 +125,0 @@ }

import { _optionalChain } from '@sentry/utils';
import { loadModule, logger, fill } from '@sentry/utils';
import { DEBUG_BUILD } from '../../common/debug-build.js';
import { shouldDisableAutoInstrumentation } from './utils/node-utils.js';

@@ -30,3 +31,3 @@

if (shouldDisableAutoInstrumentation(getCurrentHub)) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.log('Mysql Integration is skipped because of instrumenter configuration.');
DEBUG_BUILD && logger.log('Mysql Integration is skipped because of instrumenter configuration.');
return;

@@ -38,3 +39,3 @@ }

if (!pkg) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.error('Mysql Integration was unable to require `mysql` package.');
DEBUG_BUILD && logger.error('Mysql Integration was unable to require `mysql` package.');
return;

@@ -55,3 +56,3 @@ }

} catch (e) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.error('Mysql Integration was unable to instrument `mysql` config.');
DEBUG_BUILD && logger.error('Mysql Integration was unable to instrument `mysql` config.');
}

@@ -58,0 +59,0 @@

import { _optionalChain } from '@sentry/utils';
import { loadModule, logger, fill, isThenable } from '@sentry/utils';
import { DEBUG_BUILD } from '../../common/debug-build.js';
import { shouldDisableAutoInstrumentation } from './utils/node-utils.js';

@@ -32,3 +33,3 @@

if (shouldDisableAutoInstrumentation(getCurrentHub)) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.log('Postgres Integration is skipped because of instrumenter configuration.');
DEBUG_BUILD && logger.log('Postgres Integration is skipped because of instrumenter configuration.');
return;

@@ -40,3 +41,3 @@ }

if (!pkg) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.error('Postgres Integration was unable to require `pg` package.');
DEBUG_BUILD && logger.error('Postgres Integration was unable to require `pg` package.');
return;

@@ -48,3 +49,3 @@ }

if (!Client) {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) && logger.error("Postgres Integration was unable to access 'pg-native' bindings.");
DEBUG_BUILD && logger.error("Postgres Integration was unable to access 'pg-native' bindings.");
return;

@@ -51,0 +52,0 @@ }

import { trace, getCurrentHub } from '@sentry/core';
import { addNonEnumerableProperty, logger } from '@sentry/utils';
import { DEBUG_BUILD } from '../../common/debug-build.js';
import { shouldDisableAutoInstrumentation } from './utils/node-utils.js';

@@ -70,3 +71,3 @@

} else {
(typeof __SENTRY_DEBUG__ === 'undefined' || __SENTRY_DEBUG__) &&
DEBUG_BUILD &&
logger.warn('Unsupported Prisma client provided to PrismaIntegration. Provided client:', options.client);

@@ -73,0 +74,0 @@ }

{
"name": "@sentry-internal/tracing",
"version": "7.82.0",
"version": "7.83.0",
"description": "Sentry Internal Tracing Package",

@@ -26,5 +26,5 @@ "repository": "git://github.com/getsentry/sentry-javascript.git",

"dependencies": {
"@sentry/core": "7.82.0",
"@sentry/types": "7.82.0",
"@sentry/utils": "7.82.0"
"@sentry/core": "7.83.0",
"@sentry/types": "7.83.0",
"@sentry/utils": "7.83.0"
},

@@ -31,0 +31,0 @@ "devDependencies": {

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

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

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