Skip to content

feat(sidekick/rust): track recording error info for discovery LROs#6304

Open
haphungw wants to merge 3 commits into
googleapis:mainfrom
haphungw:fix-discovery-lro-error
Open

feat(sidekick/rust): track recording error info for discovery LROs#6304
haphungw wants to merge 3 commits into
googleapis:mainfrom
haphungw:fix-discovery-lro-error

Conversation

@haphungw

@haphungw haphungw commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

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

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

Copy link
Copy Markdown
Contributor

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 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.

Comment thread internal/sidekick/rust/templates/crate/src/tracing.rs.mustache
@haphungw haphungw force-pushed the fix-discovery-lro-error branch from 68478fe to 9679b0b Compare June 4, 2026 20:01
@haphungw haphungw marked this pull request as ready for review June 4, 2026 20:07
@haphungw haphungw requested a review from a team as a code owner June 4, 2026 20:07
@haphungw haphungw requested a review from westarle June 8, 2026 17:15
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.
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.

rust: track recording error info for discovery LROs

2 participants