Fix Analytics

Summary: We were missing to log for those cases when we exported through sharable link. Also I changed logging a bit so that we can differentiate between Sharable Link and File exports

Reviewed By: jknoxville

Differential Revision: D15080292

fbshipit-source-id: 063e9f515e4f089ed3715e7b1ca0e66410e46541
This commit is contained in:
Pritesh Nandgaonkar
2019-04-25 10:36:18 -07:00
committed by Facebook Github Bot
parent afd729deb6
commit 2359d22b46
2 changed files with 13 additions and 5 deletions

View File

@@ -89,7 +89,7 @@ export default class ShareSheetExportFile extends Component<Props, State> {
try {
const {errorArray} = await reportPlatformFailures(
exportStoreToFile(this.props.file, this.context.store),
`${EXPORT_FLIPPER_TRACE_EVENT}:UI`,
`${EXPORT_FLIPPER_TRACE_EVENT}:UI_FILE`,
);
this.setState({errorArray, result: {success: true, error: null}});
} catch (err) {