@sentry-internal/browser-utils
Advanced tools
Comparing version
@@ -96,2 +96,10 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); | ||
// Add CLS sources as span attributes to help with debugging layout shifts | ||
// See: https://developer.mozilla.org/en-US/docs/Web/API/LayoutShift/sources | ||
if (entry?.sources) { | ||
entry.sources.forEach((source, index) => { | ||
attributes[`cls.source.${index + 1}`] = core.htmlTreeAsString(source.node); | ||
}); | ||
} | ||
const span = utils.startStandaloneWebVitalSpan({ | ||
@@ -98,0 +106,0 @@ name, |
@@ -94,2 +94,10 @@ import { getClient, getActiveSpan, getRootSpan, spanToJSON, logger, browserPerformanceTimeOrigin, getCurrentScope, htmlTreeAsString, SEMANTIC_ATTRIBUTE_EXCLUSIVE_TIME, SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_VALUE, SEMANTIC_ATTRIBUTE_SENTRY_MEASUREMENT_UNIT, SEMANTIC_ATTRIBUTE_SENTRY_OP, SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN } from '@sentry/core'; | ||
// Add CLS sources as span attributes to help with debugging layout shifts | ||
// See: https://developer.mozilla.org/en-US/docs/Web/API/LayoutShift/sources | ||
if (entry?.sources) { | ||
entry.sources.forEach((source, index) => { | ||
attributes[`cls.source.${index + 1}`] = htmlTreeAsString(source.node); | ||
}); | ||
} | ||
const span = startStandaloneWebVitalSpan({ | ||
@@ -96,0 +104,0 @@ name, |
@@ -1,1 +0,1 @@ | ||
{"type":"module","version":"9.31.0","sideEffects":false} | ||
{"type":"module","version":"9.32.0","sideEffects":false} |
{ | ||
"name": "@sentry-internal/browser-utils", | ||
"version": "9.31.0", | ||
"version": "9.32.0", | ||
"description": "Browser Utilities for all Sentry JavaScript SDKs", | ||
@@ -42,3 +42,3 @@ "repository": "git://github.com/getsentry/sentry-javascript.git", | ||
"dependencies": { | ||
"@sentry/core": "9.31.0" | ||
"@sentry/core": "9.32.0" | ||
}, | ||
@@ -45,0 +45,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
814175
0.21%8884
0.16%136
-0.73%21
-4.55%2
-33.33%+ Added
- Removed
Updated