Skip to content

Commit

Permalink
This code is not needed.
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfgangcodes committed Oct 16, 2024
1 parent 06d05ad commit 67a0691
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ const main = () => {
webVitalsInstrumentationConfig: {
vitalsToTrack: ['CLS', 'FCP', 'FID', 'INP', 'LCP', 'TTFB'],
lcp: {
dataAttributes: ['hello', 'barBiz'],
reportAllChanges: true,
dataAttributes: ['foo'],
},
},
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -501,16 +501,6 @@ export class WebVitalsInstrumentation extends InstrumentationAbstract {
}
}
}
if (dataAttributes)
dataAttributes?.forEach((attrName) => {
const attrValue = el.dataset[attrName];
if (attrValue !== undefined) {
span.setAttribute(
`${attrPrefix}.element.data.${attrName}`,
attrValue,
);
}
});

if (applyCustomAttributes) {
applyCustomAttributes(lcp, span);
Expand Down

0 comments on commit 67a0691

Please sign in to comment.