Remove CSR from trusted-request-handler event tracker

Summary: ^

Reviewed By: nikoant

Differential Revision: D32695273

fbshipit-source-id: 9c9c3e9da83f864f512d66a208fa87f0ded392d3
This commit is contained in:
Lorenzo Blasa
2021-11-29 08:54:46 -08:00
committed by Facebook GitHub Bot
parent 39841292d1
commit c18207afaf

View File

@@ -217,7 +217,11 @@ class ServerController extends EventEmitter implements ServerEventsListener {
}
onSecureConnectionAttempt(clientQuery: SecureClientQuery): void {
this.logger.track('usage', 'trusted-request-handler-called', clientQuery);
this.logger.track(
'usage',
'trusted-request-handler-called',
(({csr, ...o}) => o)(clientQuery),
);
const {os, app, device_id} = clientQuery;
// without these checks, the user might see a connection timeout error instead, which would be much harder to track down