diff --git a/packages/tracing/src/browser/metrics.ts b/packages/tracing/src/browser/metrics.ts index 0f137acc8b3a..64074ca25a84 100644 --- a/packages/tracing/src/browser/metrics.ts +++ b/packages/tracing/src/browser/metrics.ts @@ -211,9 +211,9 @@ export class MetricsInstrumentation { if (this._clsEntry) { logger.log('[Measurements] Adding CLS Data'); - transaction.setData('measurements.cls', { - sources: this._clsEntry.sources.map(source => htmlTreeAsString(source.node)), - }); + this._clsEntry.sources.map((source, index) => + transaction.setTag(`cls.source.${index + 1}`, htmlTreeAsString(source.node)), + ); } } }