Skip to content

Commit 0f06193

Browse files
committed
Measurements are only available for pageload transactions
1 parent 242a71d commit 0f06193

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

packages/tracing/src/browser/metrics.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,10 @@ export class MetricsInstrumentation {
135135

136136
this._performanceCursor = Math.max(performance.getEntries().length - 1, 0);
137137

138-
transaction.setMeasurements(this._measurements);
138+
// Measurements are only available for pageload transactions
139+
if (transaction.op === 'pageload') {
140+
transaction.setMeasurements(this._measurements);
141+
}
139142
}
140143

141144
private _forceLCP: () => void = () => {

0 commit comments

Comments
 (0)