Skip to content

Commit 9726052

Browse files
committed
fix span
1 parent 8cc3706 commit 9726052

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

src/setup/telemetry/index.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,8 @@ export default function (): void {
5454
});
5555
}
5656
if (entry.name === 'runJsBundleEnd') {
57-
const durationMs = jsParseStartMs !== undefined ? Math.round(entry.startTime - jsParseStartMs) : 'n/a';
58-
if (jsParseStartMs !== undefined && durationMs !== 'n/a') {
59-
endSpan(CONST.TELEMETRY.SPAN_JS_PARSE_TIME, durationMs);
57+
if (jsParseStartMs !== undefined) {
58+
endSpan(CONST.TELEMETRY.SPAN_JS_PARSE_TIME, entry.startTime / 1000);
6059
}
6160
observer.disconnect();
6261
}

0 commit comments

Comments
 (0)