Skip to content

Commit

Permalink
remove todo
Browse files Browse the repository at this point in the history
  • Loading branch information
Lms24 committed Aug 9, 2024
1 parent 75624ea commit 5d79974
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions packages/browser-utils/src/metrics/cls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,6 @@ function sendStandaloneClsSpan(clsValue: number, entry: LayoutShift | undefined,
const duration = msToSec(entry?.duration || 0);
const routeName = getCurrentScope().getScopeData().transactionName;

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

const attributes: SpanAttributes = dropUndefinedKeys({
Expand Down

0 comments on commit 5d79974

Please sign in to comment.