Skip to content

feat(o11y): regenerate client libraries with consolidated LroRecorder#5804

Draft
haphungw wants to merge 2 commits into
googleapis:mainfrom
haphungw:lro-regenerate-consolidated
Draft

feat(o11y): regenerate client libraries with consolidated LroRecorder#5804
haphungw wants to merge 2 commits into
googleapis:mainfrom
haphungw:lro-regenerate-consolidated

Conversation

@haphungw

@haphungw haphungw commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

Regenerate using the updated librarian template (googleapis/librarian#6259). Telemetry decorator stubs now propagate and query the consolidated LroRecorder context directly.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request refactors the long-running operation (LRO) tracing implementation by removing the task-local POLL_ATTEMPT_COUNT and consolidating the polling attempt count directly into an immutable, thread-safe LroRecorder struct. The LroRecorder now supports copy-on-write context propagation via with_attempt_count, and all generated service tracing files have been updated to retrieve the attempt count from the current LroRecorder context. I have no further feedback to provide.

@codecov

codecov Bot commented Jun 2, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.89%. Comparing base (0f5f771) to head (49f5484).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5804   +/-   ##
=======================================
  Coverage   97.89%   97.89%           
=======================================
  Files         226      226           
  Lines       57514    57514           
=======================================
+ Hits        56302    56303    +1     
+ Misses       1212     1211    -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

haphungw added a commit to googleapis/librarian that referenced this pull request Jun 4, 2026
…tor (#6259)

Update the template to generate code using our new consolidated
`LroRecorder` API
(googleapis/google-cloud-rust#5803).

Instead of querying the separated `POLL_ATTEMPT_COUNT` task-local
directly, the telemetry stubs will now query the active recorder.

Staged @ googleapis/google-cloud-rust#5804

Follow up 2 for
googleapis/google-cloud-rust#5695
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