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 7e3207d commit 02ef34eCopy full SHA for 02ef34e
packages/tracing-internal/src/browser/metrics/index.ts
@@ -245,7 +245,7 @@ export function addPerformanceEntries(transaction: Transaction): void {
245
if (typeof responseStartTimestamp === 'number' && transactionStartTime) {
246
DEBUG_BUILD && logger.log('[Measurements] Adding TTFB');
247
_measurements['ttfb'] = {
248
- value: (responseStartTimestamp - transactionStartTime) * 1000,
+ value: Math.max(responseStartTimestamp - transactionStartTime, 0) * 1000,
249
unit: 'millisecond',
250
};
251
0 commit comments