|
Download wp-calypso/desktop/app/lib/crash-tracker/README.md from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 927 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/desktop/app/lib/crash-tracker/README.md
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/wp-calypso/desktop/app/lib/crash-tracker/README.md
-
curl -L -o README.md https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/wp-calypso/desktop/app/lib/crash-tracker/README.md
927 Bytes
Crash Tracker
A general crash tracking library that can be passed data to store on a remote crash tracking server.
The tracker is only enabled when crash_reporter is defined in the config. This is then used as remote URL to POST a JSON object.
The following additional details are always logged:
platform- value fromprocess.platformrelease- value from `os.release()``version- version value frompackage.jsonbuild- build value fromconfig.jsontime- current time, in microseconds
Functions
crash.track( errorType, errorData, cb )
Where:
errorType- a crash group identifiererrorData- Any JS object or value to be stored in the crash logcb- Called when the crash been recorded. If you intend to quit the app then use this to ensure the crash is recorded before the app quits
Example
crash.track( 'exception', { code: errorCode, message: errorMessage } )