Repository navigation
feat(sidekick/rust): track recording error info for discovery LROs - #6304
Merged
Merged
Conversation
Contributor
There was a problem hiding this comment.
Code Review
This pull request simplifies tracing logic in tracing.rs.mustache by replacing manual tracing blocks with the macros record_polling_attributes! and record_discovery_polling_result!. However, removing the #[cfg(google_cloud_unstable_tracing)] attribute from the first macro call may cause compilation errors when that configuration is disabled. It is recommended to restore this attribute.
haphungw
force-pushed
the
fix-discovery-lro-error
branch
from
June 4, 2026 20:01
68478fe to
9679b0b
Compare
haphungw
marked this pull request as ready for review
June 4, 2026 20:07
westarle
approved these changes
Jun 10, 2026
haphungw
added a commit
to googleapis/google-cloud-rust
that referenced
this pull request
Jun 10, 2026
…o compatibility (#5843) Introduce telemetry injections for Discovery LROs. This ensures Discovery LROs can record rich error details upon completion, matching the behavior of standard LROs, and provides a cleaner interface for code generation. Used at googleapis/librarian#6304.
haphungw
force-pushed
the
fix-discovery-lro-error
branch
3 times, most recently
from
June 26, 2026 21:16
d778525 to
18d446a
Compare
…scovery LROs Update the generator template to generate a record_discovery_polling_result! macro call for Discovery-based LROs. This delegates trace recording to the google-cloud-lro macro, matching standard LRO patterns while keeping generated code clean.
haphungw
force-pushed
the
fix-discovery-lro-error
branch
from
June 26, 2026 21:25
18d446a to
a2876b0
Compare
JoeWang1127
pushed a commit
that referenced
this pull request
Jun 29, 2026
🤖 I have created a release *beep* *boop* --- ## [0.23.0](v0.22.0...v0.23.0) (2026-06-29) ### Features * **internal/librarian/java:** add decamelize utility for README generation ([#6538](#6538)) ([a6d950a](a6d950a)), closes [#6515](#6515) * **internal/librarian/java:** Add JSpecify dep to proto module template ([#6564](#6564)) ([660ab2b](660ab2b)) * **internal/librarian/java:** add production sample filter ([#6545](#6545)) ([df213ec](df213ec)), closes [#6515](#6515) * **internal/librarian/java:** add README sample extraction helpers ([#6574](#6574)) ([500ba22](500ba22)), closes [#6515](#6515) * **internal/librarian/java:** add title override extractor ([#6546](#6546)) ([0986d6a](0986d6a)), closes [#6515](#6515) * **internal/librarian/python:** update gapic-generator to 1.36.0 ([#6548](#6548)) ([a0930f4](a0930f4)) * **nodejs:** bump pnpm version to 11.7.0 and support v11+ global bin layout ([#6494](#6494)) ([1373628](1373628)), closes [#6480](#6480) * **sidekick/rust:** track recording error info for discovery LROs ([#6304](#6304)) ([feb2ef2](feb2ef2)), closes [#6286](#6286) * **sidekick/swift:** generate synthetic messages ([#6530](#6530)) ([7303648](7303648)) * **sidekick/swift:** handle clashing names ([#6543](#6543)) ([56bf365](56bf365)) * **sidekick/swift:** swap client vs. protocol ([#6566](#6566)) ([14e186c](14e186c)) ### Bug Fixes * **internal/librarian:** gracefully handle nil defaults in applyDefaults ([#6571](#6571)) ([3ee938a](3ee938a)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add error telemetry for Discovery LROs so that their traces contain the same error information as standard LROs.
Staged @ googleapis/google-cloud-rust#5861
Fixes #6286