Skip to content

Commit 5d79974

Browse files
committed
remove todo
1 parent 75624ea commit 5d79974

File tree

1 file changed

+0
-3
lines changed
  • packages/browser-utils/src/metrics

1 file changed

+0
-3
lines changed

packages/browser-utils/src/metrics/cls.ts

-3
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,6 @@ function sendStandaloneClsSpan(clsValue: number, entry: LayoutShift | undefined,
8888
const duration = msToSec(entry?.duration || 0);
8989
const routeName = getCurrentScope().getScopeData().transactionName;
9090

91-
// TODO: Is this fine / does it provide any value? Alternatively, we can
92-
// - send the CLS source node as an attribute
93-
// - do nothing at all and ignore the source node
9491
const name = entry ? htmlTreeAsString(entry.sources[0]?.node) : 'Layout shift';
9592

9693
const attributes: SpanAttributes = dropUndefinedKeys({

0 commit comments

Comments
 (0)