-
Notifications
You must be signed in to change notification settings - Fork 2k
Add OpenCensus sample code #1173
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
Add OpenCensus sample code #1173
Conversation
fhinkel
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, can you provide tests please. Thanks
Done, can you please take a look again. Thanks |
|
Thanks, we also need the .kokoro config files so the tests will be run. |
|
|
||
| // The minimum reporting period for Stackdriver is 1 minute. | ||
| const exporter = new StackdriverStatsExporter({ | ||
| projectId: projectId, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the projectId needed? Our client libraries hat the convention to use the GOOGLE_APPLICATION_CREDENTIALS implicitly and users should not be required to provide the project id.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it is required. Will open an issue and modify example later. Is that ok?
Node version of https://github.com/GoogleCloudPlatform/golang-samples/pull/646/files.