Skip to content

feat: observability phase 1 task 5 auth spans - #9583

Open
cy-yun wants to merge 4 commits into
googleapis:mainfrom
cy-yun:feat/observability-t5-auth-spans
Open

feat: observability phase 1 task 5 auth spans#9583
cy-yun wants to merge 4 commits into
googleapis:mainfrom
cy-yun:feat/observability-t5-auth-spans

Conversation

@cy-yun

@cy-yun cy-yun commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

Description

This PR implements Phase 1 Task 5 (T5 Auth Spans) of the Client Libraries Observability v1 design.

Depends on #9582.

Changes

  • Introduces a PSR-18 compliant AuthTracingMiddleware within Core.
  • Automatically instruments google-auth-library-php HTTP requests by emitting an AuthRequest span whenever a token is fetched or refreshed.
  • Accurately captures authentication-related delays and failures directly under the active parent client API span.
  • Handles both synchronous responses and asynchronous PromiseInterface resolutions.

@cy-yun
cy-yun requested a review from a team as a code owner August 25, 2026 21:31
@cy-yun
cy-yun force-pushed the feat/observability-t5-auth-spans branch from ee568d7 to 0190af2 Compare August 25, 2026 22:14
@cy-yun
cy-yun force-pushed the feat/observability-t5-auth-spans branch from 0190af2 to fae3eb8 Compare August 25, 2026 22:25
@cy-yun
cy-yun marked this pull request as draft August 25, 2026 22:28
@cy-yun
cy-yun force-pushed the feat/observability-t5-auth-spans branch from fae3eb8 to 3a7f533 Compare August 25, 2026 23:26
@cy-yun
cy-yun force-pushed the feat/observability-t5-auth-spans branch from 3a7f533 to c6877eb Compare August 26, 2026 06:34
@cy-yun
cy-yun marked this pull request as ready for review August 26, 2026 08:16
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.

1 participant