Skip to content

Latest commit

 

History

History
 
 

trace

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Stackdriver Trace sample for Node.js

This sample demonstrates StackDriver Trace with Node.js.

Setup

Before you can run or deploy the sample, you need to do the following:

  1. Refer to the appengine/README.md file for instructions on running and deploying.

  2. [Create a Google Analytics Property and obtain the Tracking ID][tracking].

  3. Add your tracking ID to app.yaml.

  4. Install dependencies:

    With npm:

    npm install
    

    or with yarn:

    yarn install
    

Running locally

With npm:

npm start

or with yarn:

yarn start

Deploying to App Engine

With npm:

npm run deploy

or with yarn:

yarn run deploy

Use the Stackdriver Trace dashboard to inspect recorded traces.

Running the tests

See Contributing.