Skip to content
This repository has been archived by the owner on Jul 8, 2020. It is now read-only.

Latest commit

 

History

History
 
 

samples

Google Cloud Platform logo

Open in Cloud Shell

Node.js idiomatic client for Error Reporting.

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

Table of Contents

Before you begin

Before running the samples, make sure you've followed the steps outlined in Using the client library.

cd samples

npm install

cd ..

Samples

Explicit setup

Reports a simple error using explicit credentials.

View the source code.

Open in Cloud Shell

Usage:

node explicitSetup.js


Express integration

Starts and Express service with integrated error reporting.

View the source code.

Open in Cloud Shell

Usage:

node express.js


Implicit setup

Reports a simple error using implicit credentials.

View the source code.

Open in Cloud Shell

Usage:

node implicitSetup.js


Manual reporting

Manually reports errors.

View the source code.

Open in Cloud Shell

Usage:

node manual.js


Quickstart

View the source code.

Open in Cloud Shell

Usage:

node samples/quickstart.js