Skip to content

Add OpenCensus sample code#1173

Merged
fhinkel merged 4 commits into
GoogleCloudPlatform:masterfrom
mayurkale22:opencensus-samples
Feb 26, 2019
Merged

Add OpenCensus sample code#1173
fhinkel merged 4 commits into
GoogleCloudPlatform:masterfrom
mayurkale22:opencensus-samples

Conversation

@mayurkale22

@mayurkale22 mayurkale22 commented Feb 20, 2019

Copy link
Copy Markdown
Contributor

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Feb 20, 2019

@fhinkel fhinkel left a comment

Copy link
Copy Markdown
Contributor

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

@mayurkale22

Copy link
Copy Markdown
Contributor Author

Hi, can you provide tests please. Thanks

Done, can you please take a look again. Thanks

@fhinkel

fhinkel commented Feb 26, 2019

Copy link
Copy Markdown
Contributor

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,

Copy link
Copy Markdown
Contributor

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.

Copy link
Copy Markdown
Contributor Author

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?

@fhinkel fhinkel merged commit c42a61d into GoogleCloudPlatform:master Feb 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants