We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5026ce0 commit f214c72Copy full SHA for f214c72
packages/tracing/src/browser/metrics.ts
@@ -160,6 +160,17 @@ export class MetricsInstrumentation {
160
this._measurements[name] = { value: normalizedValue };
161
});
162
163
+ if (this._measurements['mark.fid'] && this._measurements['fid']) {
164
+ // create span for FID
165
+
166
+ _startChild(transaction, {
167
+ description: 'first input delay',
168
+ endTimestamp: this._measurements['mark.fid'].value + msToSec(this._measurements['fid'].value),
169
+ op: 'web vitals',
170
+ startTimestamp: this._measurements['mark.fid'].value,
171
+ });
172
+ }
173
174
transaction.setMeasurements(this._measurements);
175
}
176
0 commit comments