@sentry/tracing
Advanced tools
Comparing version 7.31.0 to 7.31.1
@@ -1,6 +0,1 @@ | ||
var { | ||
_nullishCoalesce, | ||
_optionalChain | ||
} = require('@sentry/utils/cjs/buildPolyfills'); | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
@@ -70,3 +65,3 @@ | ||
index.startTrackingWebVitals(); | ||
if (_optionalChain([this, 'access', _2 => _2.options, 'access', _3 => _3._experiments, 'optionalAccess', _4 => _4.enableLongTask])) { | ||
if (this.options._experiments.enableLongTask) { | ||
index.startTrackingLongTasks(); | ||
@@ -104,3 +99,3 @@ } | ||
if (_optionalChain([_experiments, 'optionalAccess', _5 => _5.enableInteractions])) { | ||
if (_experiments.enableInteractions) { | ||
this._registerInteractionListener(); | ||
@@ -160,3 +155,3 @@ } | ||
this._latestRouteName = finalContext.name; | ||
this._latestRouteSource = _optionalChain([finalContext, 'access', _6 => _6.metadata, 'optionalAccess', _7 => _7.source]); | ||
this._latestRouteSource = finalContext.metadata && finalContext.metadata.source; | ||
@@ -220,3 +215,3 @@ if (finalContext.sampled === false) { | ||
metadata: { | ||
source: _nullishCoalesce(this._latestRouteSource, () => ( 'url')), | ||
source: this._latestRouteSource || 'url', | ||
}, | ||
@@ -223,0 +218,0 @@ }; |
@@ -1,5 +0,1 @@ | ||
var { | ||
_nullishCoalesce | ||
} = require('@sentry/utils/cjs/buildPolyfills'); | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
@@ -307,3 +303,3 @@ | ||
op: 'browser', | ||
description: _nullishCoalesce(description, () => ( event)), | ||
description: description || event, | ||
startTimestamp: timeOrigin + utils$1.msToSec(start), | ||
@@ -310,0 +306,0 @@ endTimestamp: timeOrigin + utils$1.msToSec(end), |
@@ -1,5 +0,1 @@ | ||
var { | ||
_nullishCoalesce | ||
} = require('@sentry/utils/cjs/buildPolyfills'); | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
@@ -284,3 +280,3 @@ | ||
updateWithContext(spanContext) { | ||
this.data = _nullishCoalesce(spanContext.data, () => ( {})); | ||
this.data = spanContext.data || {}; | ||
this.description = spanContext.description; | ||
@@ -291,7 +287,7 @@ this.endTimestamp = spanContext.endTimestamp; | ||
this.sampled = spanContext.sampled; | ||
this.spanId = _nullishCoalesce(spanContext.spanId, () => ( this.spanId)); | ||
this.startTimestamp = _nullishCoalesce(spanContext.startTimestamp, () => ( this.startTimestamp)); | ||
this.spanId = spanContext.spanId || this.spanId; | ||
this.startTimestamp = spanContext.startTimestamp || this.startTimestamp; | ||
this.status = spanContext.status; | ||
this.tags = _nullishCoalesce(spanContext.tags, () => ( {})); | ||
this.traceId = _nullishCoalesce(spanContext.traceId, () => ( this.traceId)); | ||
this.tags = spanContext.tags || {}; | ||
this.traceId = spanContext.traceId || this.traceId; | ||
@@ -298,0 +294,0 @@ return this; |
@@ -1,5 +0,1 @@ | ||
var { | ||
_nullishCoalesce | ||
} = require('@sentry/utils/cjs/buildPolyfills'); | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
@@ -228,3 +224,3 @@ | ||
this.name = _nullishCoalesce(transactionContext.name, () => ( '')); | ||
this.name = transactionContext.name || ''; | ||
@@ -231,0 +227,0 @@ this._trimEnd = transactionContext.trimEnd; |
@@ -1,2 +0,1 @@ | ||
import { _nullishCoalesce, _optionalChain } from '@sentry/utils/esm/buildPolyfills'; | ||
import { logger, extractTraceparentData, baggageHeaderToDynamicSamplingContext, getDomElement } from '@sentry/utils'; | ||
@@ -64,3 +63,3 @@ import { startIdleTransaction } from '../hubextensions.js'; | ||
startTrackingWebVitals(); | ||
if (_optionalChain([this, 'access', _2 => _2.options, 'access', _3 => _3._experiments, 'optionalAccess', _4 => _4.enableLongTask])) { | ||
if (this.options._experiments.enableLongTask) { | ||
startTrackingLongTasks(); | ||
@@ -98,3 +97,3 @@ } | ||
if (_optionalChain([_experiments, 'optionalAccess', _5 => _5.enableInteractions])) { | ||
if (_experiments.enableInteractions) { | ||
this._registerInteractionListener(); | ||
@@ -154,3 +153,3 @@ } | ||
this._latestRouteName = finalContext.name; | ||
this._latestRouteSource = _optionalChain([finalContext, 'access', _6 => _6.metadata, 'optionalAccess', _7 => _7.source]); | ||
this._latestRouteSource = finalContext.metadata && finalContext.metadata.source; | ||
@@ -214,3 +213,3 @@ if (finalContext.sampled === false) { | ||
metadata: { | ||
source: _nullishCoalesce(this._latestRouteSource, () => ( 'url')), | ||
source: this._latestRouteSource || 'url', | ||
}, | ||
@@ -217,0 +216,0 @@ }; |
@@ -1,2 +0,1 @@ | ||
import { _nullishCoalesce } from '@sentry/utils/esm/buildPolyfills'; | ||
import { browserPerformanceTimeOrigin, logger, htmlTreeAsString } from '@sentry/utils'; | ||
@@ -302,3 +301,3 @@ import { getActiveTransaction, msToSec } from '../../utils.js'; | ||
op: 'browser', | ||
description: _nullishCoalesce(description, () => ( event)), | ||
description: description || event, | ||
startTimestamp: timeOrigin + msToSec(start), | ||
@@ -305,0 +304,0 @@ endTimestamp: timeOrigin + msToSec(end), |
@@ -1,2 +0,1 @@ | ||
import { _nullishCoalesce } from '@sentry/utils/esm/buildPolyfills'; | ||
import { uuid4, timestampWithMs, logger, dropUndefinedKeys } from '@sentry/utils'; | ||
@@ -279,3 +278,3 @@ | ||
updateWithContext(spanContext) { | ||
this.data = _nullishCoalesce(spanContext.data, () => ( {})); | ||
this.data = spanContext.data || {}; | ||
this.description = spanContext.description; | ||
@@ -286,7 +285,7 @@ this.endTimestamp = spanContext.endTimestamp; | ||
this.sampled = spanContext.sampled; | ||
this.spanId = _nullishCoalesce(spanContext.spanId, () => ( this.spanId)); | ||
this.startTimestamp = _nullishCoalesce(spanContext.startTimestamp, () => ( this.startTimestamp)); | ||
this.spanId = spanContext.spanId || this.spanId; | ||
this.startTimestamp = spanContext.startTimestamp || this.startTimestamp; | ||
this.status = spanContext.status; | ||
this.tags = _nullishCoalesce(spanContext.tags, () => ( {})); | ||
this.traceId = _nullishCoalesce(spanContext.traceId, () => ( this.traceId)); | ||
this.tags = spanContext.tags || {}; | ||
this.traceId = spanContext.traceId || this.traceId; | ||
@@ -293,0 +292,0 @@ return this; |
@@ -1,2 +0,1 @@ | ||
import { _nullishCoalesce } from '@sentry/utils/esm/buildPolyfills'; | ||
import { getCurrentHub } from '@sentry/core'; | ||
@@ -223,3 +222,3 @@ import { timestampInSeconds, logger, dropUndefinedKeys } from '@sentry/utils'; | ||
this.name = _nullishCoalesce(transactionContext.name, () => ( '')); | ||
this.name = transactionContext.name || ''; | ||
@@ -226,0 +225,0 @@ this._trimEnd = transactionContext.trimEnd; |
{ | ||
"name": "@sentry/tracing", | ||
"version": "7.31.0", | ||
"version": "7.31.1", | ||
"description": "Extensions for Sentry AM", | ||
@@ -19,9 +19,9 @@ "repository": "git://github.com/getsentry/sentry-javascript.git", | ||
"dependencies": { | ||
"@sentry/core": "7.31.0", | ||
"@sentry/types": "7.31.0", | ||
"@sentry/utils": "7.31.0", | ||
"@sentry/core": "7.31.1", | ||
"@sentry/types": "7.31.1", | ||
"@sentry/utils": "7.31.1", | ||
"tslib": "^1.9.3" | ||
}, | ||
"devDependencies": { | ||
"@sentry/browser": "7.31.0", | ||
"@sentry/browser": "7.31.1", | ||
"@types/express": "^4.17.14" | ||
@@ -28,0 +28,0 @@ }, |
@@ -72,3 +72,3 @@ import type { Hub } from '@sentry/core'; | ||
*/ | ||
_experiments?: Partial<{ | ||
_experiments: Partial<{ | ||
enableLongTask: boolean; | ||
@@ -75,0 +75,0 @@ enableInteractions: boolean; |
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
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
33
1054642
8473
+ Added@sentry/core@7.31.1(transitive)
+ Added@sentry/types@7.31.1(transitive)
+ Added@sentry/utils@7.31.1(transitive)
- Removed@sentry/core@7.31.0(transitive)
- Removed@sentry/types@7.31.0(transitive)
- Removed@sentry/utils@7.31.0(transitive)
Updated@sentry/core@7.31.1
Updated@sentry/types@7.31.1
Updated@sentry/utils@7.31.1