Skip to content

Latest commit

 

History

History
 
 

error-reporting

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

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