Enable to receive credentials object in creating Stackdriver exporter#541
Conversation
Codecov Report
@@ Coverage Diff @@
## master #541 +/- ##
==========================================
- Coverage 95.26% 95.09% -0.17%
==========================================
Files 147 147
Lines 9969 9686 -283
Branches 543 530 -13
==========================================
- Hits 9497 9211 -286
- Misses 472 475 +3
Continue to review full report at Codecov.
|
| prefix?: string; | ||
| /** | ||
| * Create a JWT instance using the given credentials input containing | ||
| * client_email and private_key properties. Optional |
There was a problem hiding this comment.
Can you update this field comment with: "If this field is set, its contents will be used for authentication instead of your application default credentials."?
There was a problem hiding this comment.
OK! Thanks for your suggestion.
mayurkale22
left a comment
There was a problem hiding this comment.
Thanks for the PR! Overall LGTM, Please update the CHANGELOG.md with this feat.
|
@yamadayuki As we don't have system tests, did you verified these changes against the actual stackdriver instance? |
Yes. I released the |
Awesome! Thanks for the work again! |
To fix #537
This PR enables us to set the Stackdriver's credentials from the environment variables instead of ADC. c.f. https://cloud.google.com/docs/authentication/production
It's ok to use
GOOGLE_APPLICATION_CREDENTIALSas before or use thecredentialsoption passing to theStackdriverTraceExporter / StackdriverStatsExporterconstructor.