@sentry/browser
Advanced tools
Comparing version 8.17.0 to 8.18.0
@@ -21,2 +21,3 @@ Object.defineProperty(exports, '__esModule', { value: true }); | ||
enableLongTask: true, | ||
enableLongAnimationFrame: false, | ||
enableInp: true, | ||
@@ -42,2 +43,3 @@ _experiments: {}, | ||
enableLongTask, | ||
enableLongAnimationFrame, | ||
_experiments: { enableInteractions }, | ||
@@ -66,5 +68,8 @@ beforeStartSpan, | ||
if (enableLongTask) { | ||
if (enableLongAnimationFrame && PerformanceObserver.supportedEntryTypes.includes('long-animation-frame')) { | ||
browserUtils.startTrackingLongAnimationFrames(); | ||
} else if (enableLongTask) { | ||
browserUtils.startTrackingLongTasks(); | ||
} | ||
if (enableInteractions) { | ||
@@ -139,3 +144,3 @@ browserUtils.startTrackingInteractions(); | ||
if (activeSpan) { | ||
if (activeSpan && !core.spanToJSON(activeSpan).timestamp) { | ||
debugBuild.DEBUG_BUILD && utils.logger.log(`[Tracing] Finishing current root span with op: ${core.spanToJSON(activeSpan).op}`); | ||
@@ -156,3 +161,3 @@ // If there's an open transaction on the scope, we need to finish it before creating an new one. | ||
if (activeSpan) { | ||
if (activeSpan && !core.spanToJSON(activeSpan).timestamp) { | ||
debugBuild.DEBUG_BUILD && utils.logger.log(`[Tracing] Finishing current root span with op: ${core.spanToJSON(activeSpan).op}`); | ||
@@ -248,3 +253,3 @@ // If there's an open transaction on the scope, we need to finish it before creating an new one. | ||
if (enableInp) { | ||
browserUtils.registerInpInteractionListener(latestRoute); | ||
browserUtils.registerInpInteractionListener(); | ||
} | ||
@@ -251,0 +256,0 @@ |
@@ -1,2 +0,2 @@ | ||
import { startTrackingWebVitals, startTrackingINP, startTrackingLongTasks, startTrackingInteractions, addHistoryInstrumentationHandler, registerInpInteractionListener, addPerformanceEntries } from '@sentry-internal/browser-utils'; | ||
import { startTrackingWebVitals, startTrackingINP, startTrackingLongAnimationFrames, startTrackingLongTasks, startTrackingInteractions, addHistoryInstrumentationHandler, registerInpInteractionListener, addPerformanceEntries } from '@sentry-internal/browser-utils'; | ||
import { TRACING_DEFAULTS, registerSpanErrorInstrumentation, getClient, spanToJSON, getCurrentScope, getRootSpan, spanIsSampled, getDynamicSamplingContextFromSpan, SEMANTIC_ATTRIBUTE_SENTRY_SOURCE, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN, getActiveSpan, getIsolationScope, startIdleSpan, SEMANTIC_ATTRIBUTE_SENTRY_IDLE_SPAN_FINISH_REASON } from '@sentry/core'; | ||
@@ -19,2 +19,3 @@ import { logger, propagationContextFromHeaders, browserPerformanceTimeOrigin, generatePropagationContext, getDomElement } from '@sentry/utils'; | ||
enableLongTask: true, | ||
enableLongAnimationFrame: false, | ||
enableInp: true, | ||
@@ -40,2 +41,3 @@ _experiments: {}, | ||
enableLongTask, | ||
enableLongAnimationFrame, | ||
_experiments: { enableInteractions }, | ||
@@ -64,5 +66,8 @@ beforeStartSpan, | ||
if (enableLongTask) { | ||
if (enableLongAnimationFrame && PerformanceObserver.supportedEntryTypes.includes('long-animation-frame')) { | ||
startTrackingLongAnimationFrames(); | ||
} else if (enableLongTask) { | ||
startTrackingLongTasks(); | ||
} | ||
if (enableInteractions) { | ||
@@ -137,3 +142,3 @@ startTrackingInteractions(); | ||
if (activeSpan) { | ||
if (activeSpan && !spanToJSON(activeSpan).timestamp) { | ||
DEBUG_BUILD && logger.log(`[Tracing] Finishing current root span with op: ${spanToJSON(activeSpan).op}`); | ||
@@ -154,3 +159,3 @@ // If there's an open transaction on the scope, we need to finish it before creating an new one. | ||
if (activeSpan) { | ||
if (activeSpan && !spanToJSON(activeSpan).timestamp) { | ||
DEBUG_BUILD && logger.log(`[Tracing] Finishing current root span with op: ${spanToJSON(activeSpan).op}`); | ||
@@ -246,3 +251,3 @@ // If there's an open transaction on the scope, we need to finish it before creating an new one. | ||
if (enableInp) { | ||
registerInpInteractionListener(latestRoute); | ||
registerInpInteractionListener(); | ||
} | ||
@@ -249,0 +254,0 @@ |
@@ -54,2 +54,8 @@ import { Client, StartSpanOptions } from '@sentry/types'; | ||
/** | ||
* If true, Sentry will capture long animation frames and add them to the corresponding transaction. | ||
* | ||
* Default: false | ||
*/ | ||
enableLongAnimationFrame: boolean; | ||
/** | ||
* If true, Sentry will capture first input delay and add it to the corresponding transaction. | ||
@@ -56,0 +62,0 @@ * |
@@ -54,2 +54,8 @@ import type { Client, StartSpanOptions } from '@sentry/types'; | ||
/** | ||
* If true, Sentry will capture long animation frames and add them to the corresponding transaction. | ||
* | ||
* Default: false | ||
*/ | ||
enableLongAnimationFrame: boolean; | ||
/** | ||
* If true, Sentry will capture first input delay and add it to the corresponding transaction. | ||
@@ -56,0 +62,0 @@ * |
{ | ||
"name": "@sentry/browser", | ||
"version": "8.17.0", | ||
"version": "8.18.0", | ||
"description": "Official Sentry SDK for browsers", | ||
@@ -42,12 +42,12 @@ "repository": "git://github.com/getsentry/sentry-javascript.git", | ||
"dependencies": { | ||
"@sentry-internal/browser-utils": "8.17.0", | ||
"@sentry-internal/feedback": "8.17.0", | ||
"@sentry-internal/replay": "8.17.0", | ||
"@sentry-internal/replay-canvas": "8.17.0", | ||
"@sentry/core": "8.17.0", | ||
"@sentry/types": "8.17.0", | ||
"@sentry/utils": "8.17.0" | ||
"@sentry-internal/browser-utils": "8.18.0", | ||
"@sentry-internal/feedback": "8.18.0", | ||
"@sentry-internal/replay": "8.18.0", | ||
"@sentry-internal/replay-canvas": "8.18.0", | ||
"@sentry/core": "8.18.0", | ||
"@sentry/types": "8.18.0", | ||
"@sentry/utils": "8.18.0" | ||
}, | ||
"devDependencies": { | ||
"@sentry-internal/integration-shims": "8.17.0", | ||
"@sentry-internal/integration-shims": "8.18.0", | ||
"fake-indexeddb": "^4.0.1", | ||
@@ -54,0 +54,0 @@ "webpack": "^4.47.0" |
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
956213
9683
+ Added@sentry-internal/browser-utils@8.18.0(transitive)
+ Added@sentry-internal/feedback@8.18.0(transitive)
+ Added@sentry-internal/replay@8.18.0(transitive)
+ Added@sentry-internal/replay-canvas@8.18.0(transitive)
+ Added@sentry/core@8.18.0(transitive)
+ Added@sentry/types@8.18.0(transitive)
+ Added@sentry/utils@8.18.0(transitive)
- Removed@sentry-internal/browser-utils@8.17.0(transitive)
- Removed@sentry-internal/feedback@8.17.0(transitive)
- Removed@sentry-internal/replay@8.17.0(transitive)
- Removed@sentry-internal/replay-canvas@8.17.0(transitive)
- Removed@sentry/core@8.17.0(transitive)
- Removed@sentry/types@8.17.0(transitive)
- Removed@sentry/utils@8.17.0(transitive)
Updated@sentry/core@8.18.0
Updated@sentry/types@8.18.0
Updated@sentry/utils@8.18.0