Skip to content

Files

Latest commit

author
Ace Nassri
Aug 31, 2017
4495be7 · Aug 31, 2017

History

History
This branch is 5866 commits behind GoogleCloudPlatform/nodejs-docs-samples:main.

error-reporting

README.md

Google Cloud Platform logo

Stackdriver Error Reporting Node.js Samples

Build

Stackdriver Error Reporting aggregates and displays errors produced in your running cloud services.

Table of Contents

Setup

  1. Read Prerequisites and How to run a sample first.

  2. Install dependencies:

    With npm:

    npm install
    

    With yarn:

    yarn install
    

Samples

Examples

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

Running the tests

  1. Set the GCLOUD_PROJECT and GOOGLE_APPLICATION_CREDENTIALS environment variables.

  2. Run the tests:

    With npm:

    npm test
    

    With yarn:

    yarn test