Skip to content

google-auth: add x-goog-api-client metric headers across async before_request implementations #19281

Backlog

Description

@parthea

Summary

Unlike the synchronous google.auth.credentials.Credentials.before_request, which calls metrics.add_metric_header(headers, self._metric_header_for_usage()) before applying credentials, the native async credential before_request implementations do not emit x-goog-api-client credential-type metric headers:

Proposed Work

Wire up metrics.add_metric_header(headers, ...) consistently across the async before_request paths so async credentials report credential-type telemetry (such as cred-type/u, cred-type/sa, and cred-type/jwt) matching their synchronous counterparts.

Follow-up from #19280 (comment).

Activity

  1. added
    type: feature request
    on Nov 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    authtype: feature request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions