Skip to content

Commit

Permalink
Update docs to configure credentials with gcloud
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Loring committed Mar 15, 2016
1 parent 6ced33e commit 9746b40
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,9 @@ If your application is running outside of Google Cloud Platform, such as locally

require('@google/cloud-trace').start({projectId: 'your-project-id'});

2. You will need to provide service account credentials to your application. The recommended way is via [Application Default Credentials](https://developers.google.com/identity/protocols/application-default-credentials).
2. You will need to provide service account credentials to your application. The recommended way is via [Application Default Credentials](https://developers.google.com/identity/protocols/application-default-credentials). These can be provisioned by executing the following command:

1. [Create a new JSON service account key](https://console.cloud.google.com/apis/credentials/serviceaccountkey).
2. Copy the key somewhere your application can access it. Be sure not to expose the key publicly.
3. Set the environment variable `GOOGLE_APPLICATION_CREDENTIALS` to the full path to the key. The trace agent will automatically look for this environment variable.
gcloud beta auth application-default login

## Viewing your traces

Expand Down

0 comments on commit 9746b40

Please sign in to comment.