Skip to content

chore(secretmanager): include API action in tracing snippet filenames and remove step numbering - #14672

Merged
iennae merged 3 commits into
mainfrom
chore/secretmanager-trace-review-followup
Oct 23, 2026
Merged

iennae merged 3 commits into
mainfrom
chore/secretmanager-trace-review-followup

Conversation

@chalmerlowe

@chalmerlowe chalmerlowe commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Follow-up to #14647 to address post-merge review feedback:

  • Rename tracing sample and test files from secretmanager_trace*.py to get_secret_version_trace*.py to match the existing get_secret_version.py convention in secretmanager/snippets/ while preserving all existing region tags (secretmanager_enable_tracing, secretmanager_enable_tracing_async, secretmanager_trace_client_options, secretmanager_trace_cloud_trace).
  • Remove numbered prefixes (1., 2., etc.) from inline comments across the snippets and test files.

@product-auto-label product-auto-label Bot added api: secretmanager Issues related to the Secret Manager API. samples Issues that are directly related to samples. labels Oct 23, 2026

@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 renames several Secret Manager tracing snippet files and their tests to use more descriptive names, adds the opentelemetry-instrumentation-grpc dependency, and refactors mock transport initializations in the tests. A review comment identifies an issue in secretmanager_get_secret_version_trace_client_options_test.py where the fallback ClientOptions is not assigned back to kwargs, preventing the parent constructor from receiving the tracer provider.

Comment thread secretmanager/snippets/get_secret_version_trace_client_options_test.py Outdated
@chalmerlowe
chalmerlowe marked this pull request as ready for review October 23, 2026 12:49
@chalmerlowe
chalmerlowe requested review from a team as code owners October 23, 2026 12:49
@snippet-bot

snippet-bot Bot commented Oct 23, 2026

Copy link
Copy Markdown

Here is the summary of changes.

You are about to add 4 region tags.
You are about to delete 4 region tags.

This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:

  • Refresh this comment

@iennae
iennae merged commit 715914f into main Oct 23, 2026
14 of 22 checks passed
@iennae
iennae deleted the chore/secretmanager-trace-review-followup branch October 23, 2026 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: secretmanager Issues related to the Secret Manager API. samples Issues that are directly related to samples.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants