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:
committed by
Facebook GitHub Bot
parent
5f292bcc08
commit
0db4e99aff
@@ -9,6 +9,7 @@
|
||||
|
||||
export {FlipperServerImpl} from './FlipperServerImpl';
|
||||
export {loadSettings} from './utils/settings';
|
||||
export * from './utils/tracker';
|
||||
export {loadLauncherSettings} from './utils/launcherSettings';
|
||||
export {loadProcessConfig} from './utils/processConfig';
|
||||
export {getEnvironmentInfo} from './utils/environmentInfo';
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user