Socket
Socket
Sign inDemoInstall

@sentry/browser

Package Overview
Dependencies
Maintainers
11
Versions
523
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sentry/browser - npm Package Compare versions

Comparing version 8.17.0 to 8.18.0

13

build/npm/cjs/tracing/browserTracingIntegration.js

@@ -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

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