Stackdriver Error Reporting aggregates and displays errors produced in your running cloud services.
-
Read Prerequisites and How to run a sample first.
-
Install dependencies:
With npm:
npm install
With yarn:
yarn install
View the documentation or the source code.
Usage: node snippets.js --help
Commands:
manual Manually reports errors.
Options:
--help Show help [boolean]
Examples:
node snippets.js manual Manually report some errors.
For more information, see https://cloud.google.com/error-reporting/docs
-
Set the GCLOUD_PROJECT and GOOGLE_APPLICATION_CREDENTIALS environment variables.
-
Run the tests:
With npm:
npm test
With yarn:
yarn test