You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I believe that PR #705 regressed the earlier fix to cache the auth client I contributed in #661. This means that a new cache client is created on each API request we make, adding an unnecessary performance overhead. Here's some Cloud Trace output I get:
Note the extra 141ms added to this request, and every other request.
The cause is that the function makeAuthorizedRequest now passes a brand new object to util.makeRequest each time. We cache the authClient on that object, which is temporary and not available the next time through.
Would it be possible add a test for this to make sure this doesn't get regressed?
Activity
stephenplusplus commentedon Aug 26, 2015
Good catch, sorry to introduce the regression. This is a good time to incorporate https://github.com/stephenplusplus/google-auto-auth into gcloud, which will cache the client for us.
ofrobots commentedon Aug 26, 2015
Ooh, google-auto-auth looks interesting. Let me see if we can use it in @google/cloud-trace.
meta: multiple commits (#823)
build(node): update client library version in samples metadata (#1356) (
build(node): update client library version in samples metadata (#1356) (
build(node): update client library version in samples metadata (#1356) (
build(node): update client library version in samples metadata (#1356) (
build(node): update client library version in samples metadata (#1356) (
build(node): update client library version in samples metadata (#1356) (
build(node): update client library version in samples metadata (#1356) (
build(node): update client library version in samples metadata (#1356) (
chore: add config files for cloud-rad for node.js, delete Node 8 temp…
fix(deps): update dependency @opencensus/propagation-stackdriver to v…
chore: release 1.1.6 (#822)
chore: release 1.1.6 (#822)