Track CSR processing

Summary:
Need to answer:

- Certificate exchange success rate, fails and errors a day per OS and device type.

Reviewed By: antonk52

Differential Revision: D46221301

fbshipit-source-id: 03c6993aa15f56fdf98a7abd57d00b2af0e9ce1a
This commit is contained in:
Lorenzo Blasa
2023-05-26 08:02:12 -07:00
committed by Facebook GitHub Bot
parent f25591580c
commit 27909e8296
2 changed files with 18 additions and 3 deletions

View File

@@ -17,6 +17,11 @@ type AppConnectionPayload = {
medium?: number | undefined;
};
type AppConnectionCertificateExchangePayload = AppConnectionPayload & {
successful: boolean;
error?: string;
};
type TrackerEvents = {
'server-started': {port: number; tcp: boolean};
'server-auth-token-verification': {
@@ -29,6 +34,7 @@ type TrackerEvents = {
'app-connection-created': AppConnectionPayload;
'app-connection-secure-attempt': AppConnectionPayload;
'app-connection-insecure-attempt': AppConnectionPayload;
'app-connection-certificate-exchange': AppConnectionCertificateExchangePayload;
};
class ServerCoreTracker {