Move metrics / tracking / error analysis to flipper-common package

Summary:
what else can I say

move_complexity

Reviewed By: passy

Differential Revision: D31483414

fbshipit-source-id: 1692c792121a3aae0843eb238040cae0445cdf54
This commit is contained in:
Michel Weststrate
2021-10-12 15:59:44 -07:00
committed by Facebook GitHub Bot
parent 51bfc8f05d
commit 3e7a6b1b4b
35 changed files with 102 additions and 40 deletions

View File

@@ -20,3 +20,24 @@ export * from './server-types';
export {sleep} from './utils/sleep';
export {timeout} from './utils/timeout';
export {isTest} from './utils/isTest';
export {
logPlatformSuccessRate,
reportPlatformFailures,
reportUsage,
reportPluginFailures,
tryCatchReportPlatformFailures,
tryCatchReportPluginFailures,
UnsupportedError,
} from './utils/metrics';
export {
ConnectivityError,
CancelledPromiseError,
UserUnauthorizedError,
UserNotSignedInError,
isConnectivityOrAuthError,
isError,
isAuthError,
getStringFromErrorLike,
getErrorFromErrorLike,
} from './utils/errors';
export * from './user-session';