Track bootstrap diagnostics

Summary:
^

In addition to logging to the console bootstrap performance metrics, track these events to scuba as well.

Reviewed By: aigoncharov

Differential Revision: D46648876

fbshipit-source-id: 191704c13158884bb8cfbca614a23f2a64f1fd93
This commit is contained in:
Lorenzo Blasa
2023-06-13 02:45:57 -07:00
committed by Facebook GitHub Bot
parent 5f292bcc08
commit 0db4e99aff
3 changed files with 49 additions and 15 deletions

View File

@@ -22,7 +22,20 @@ type AppConnectionCertificateExchangePayload = AppConnectionPayload & {
error?: string;
};
type ServerBootstrapPerformancePayload = {
loggerInitializedMS: number;
keytarLoadedMS: number;
runningInstanceShutdownMS: number;
httpServerStartedMS: number;
serverCreatedMS: number;
companionEnvironmentInitializedMS: number;
appServerStartedMS: number;
developmentServerAttachedMS: number;
serverStartedMS: number;
};
type TrackerEvents = {
'server-bootstrap-performance': ServerBootstrapPerformancePayload;
'server-started': {port: number; tcp: boolean};
'server-auth-token-verification': {
successful: boolean;