Skip to content

Commit 014ced0

Browse files
thomasballingerConvex, Inc.
authored andcommitted
Log every transition when reportDebugInfoToConvex is true (#41594)
To get a better baseline, log the transition size and time for *every* transition rather than only transitions with a transit time greater than 2s. GitOrigin-RevId: 3b2e893d05070f038763dba6c9b9443807121726
1 parent b0cb08c commit 014ced0

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/browser/sync/web_socket_manager.ts

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -706,13 +706,11 @@ export class WebSocketManager {
706706

707707
if (this.debug) {
708708
// debug means "reportDebugInfoToConvex" is set so this can be aggressive.
709-
if (transitionTransitTime > 2_000) {
710-
this.sendMessage({
711-
type: "Event",
712-
eventType: "ClientReceivedTransition",
713-
event: { transitionTransitTime, messageLength },
714-
});
715-
}
709+
this.sendMessage({
710+
type: "Event",
711+
eventType: "ClientReceivedTransition",
712+
event: { transitionTransitTime, messageLength },
713+
});
716714
}
717715
}
718716
}

0 commit comments

Comments
 (0)