Added telemetry for import and export
Summary: Adding telemetry for import and export feature Reviewed By: jknoxville Differential Revision: D14267533 fbshipit-source-id: 1a5e041d0dc8c59c325e7d80dc83f6135f479161
This commit is contained in:
committed by
Facebook Github Bot
parent
7d39c33fc4
commit
c098269533
@@ -10,7 +10,13 @@ import type {Store} from '../reducers/index.js';
|
||||
import type {Logger} from '../fb-interfaces/Logger.js';
|
||||
import {toggleAction} from '../reducers/application';
|
||||
import {parseFlipperPorts} from '../utils/environmentVariables';
|
||||
import {importDataToStore, importFileToStore} from '../utils/exportData';
|
||||
import {
|
||||
importDataToStore,
|
||||
importFileToStore,
|
||||
IMPORT_FLIPPER_TRACE_EVENT,
|
||||
} from '../utils/exportData';
|
||||
import {tryCatchReportPlatformFailures} from '../utils/metrics';
|
||||
|
||||
import {selectPlugin} from '../reducers/connections';
|
||||
import qs from 'query-string';
|
||||
|
||||
@@ -78,7 +84,9 @@ export default (store: Store, logger: Logger) => {
|
||||
});
|
||||
|
||||
ipcRenderer.on('open-flipper-file', (event, url) => {
|
||||
importFileToStore(url, store);
|
||||
tryCatchReportPlatformFailures(() => {
|
||||
return importFileToStore(url, store);
|
||||
}, `${IMPORT_FLIPPER_TRACE_EVENT}:Deeplink`);
|
||||
});
|
||||
|
||||
if (process.env.FLIPPER_PORTS) {
|
||||
|
||||
Reference in New Issue
Block a user