Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update region tags for trace #915

Merged
merged 2 commits into from
Nov 15, 2018
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions trace/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,12 @@
'use strict';

// [START trace_app]
// [START trace_setup_nodejs_app]
if (process.env.NODE_ENV === 'production') {
// [START trace_setup_implicit]
// [START trace_setup_nodejs_implicit]
require('@google-cloud/trace-agent').start();
// [END trace_setup_nodejs_implicit]
// [END trace_setup_implicit]
}

Expand Down Expand Up @@ -52,4 +55,5 @@ app.listen(PORT, () => {
console.log(`App listening on port ${PORT}`);
console.log('Press Ctrl+C to quit.');
});
// [END trace_setup_nodejs_app]
// [END trace_app]
2 changes: 2 additions & 0 deletions trace/snippets.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@
'use strict';

// [START trace_setup_explicit]
// [START trace_setup_nodejs_explicit]
require('@google-cloud/trace-agent').start({
projectId: 'your-project-id',
keyFilename: '/path/to/key.json',
});
// [END trace_setup_nodejs_explicit]
// [END trace_setup_explicit]