Skip to content

Conversation

@michaelherold
Copy link
Contributor

This change extends the request_options functionality for request tags and query priority to queries issued against snapshots. This allows for the use of read-only transactions with staleness semantics but still bucketing queries via tags for analysis purposes.

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea.
  • Follow the instructions in CONTRIBUTING. Most importantly, ensure the tests and linter pass by running bundle exec rake ci in the gem subdirectory.
    • rake ci is broken even without this change so I'm not sure how to proceed.
  • Update code documentation if necessary.

Closes #197

@michaelherold michaelherold requested review from a team as code owners November 3, 2025 17:30
@google-cla
Copy link

google-cla bot commented Nov 3, 2025

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

This change extends the `request_options` functionality for request tags
and query priority to queries issued against snapshots. This allows for
the use of read-only transactions with staleness semantics but still
bucketing queries via tags for analysis purposes.
@michaelherold michaelherold force-pushed the michaelherold/request-tags-on-snapshots branch from 4a0601f to bbac05a Compare November 3, 2025 17:32
@viacheslav-rostovtsev
Copy link
Member

Can you please add the same for the Snapshot#read as well?

Copy link
Member

@viacheslav-rostovtsev viacheslav-rostovtsev left a comment

Choose a reason for hiding this comment

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

^

@viacheslav-rostovtsev
Copy link
Member

obsolete by #200

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.

Allow setting request tags on queries issued to read-only snapshots

2 participants