Skip to content

Conversation

@arithmetic1728
Copy link
Contributor

This PR adds _metric_header_for_usage() method to compute engine/service account/user/impersonated access token credentials. This method returns cred-type/<the credential type> string, and this string will be added to API service request's x-goog-api-client headers.

previous PR: #1298

@arithmetic1728 arithmetic1728 requested review from a team as code owners May 23, 2023 21:33
@arithmetic1728 arithmetic1728 merged commit ebd5af7 into main May 24, 2023
@arithmetic1728 arithmetic1728 deleted the metric2 branch May 24, 2023 20:30
gcf-merge-on-green bot pushed a commit that referenced this pull request May 25, 2023
This PR adds `x-goog-api-client` header to
- access token and id token refresh requests, for compute engine credentials / user credentials / service account credentials / impersonated credentials
- reauth start and continue requests
- metadata server ping requests

Previous PRs:
Part 1: #1298 
Part 2: #1303
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants