Skip to content

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

@michaelherold

Description

@michaelherold

Is your feature request related to a problem? Please describe.

Due to #196, we tried switching to use Client#snapshot and issuing the query against the snapshot. However, Snapshot#execute_query does not accept request_options so we cannot tag our query in the way that we expect in order to trace performance in the Cloud Spanner dashboard.

Describe the solution you'd like

I've tested having Snapshot#execute_query accept and pass request_options to the session's #execute_query method and it works as expected. This is the solution I would like as it enables behavior that already works.

Describe alternatives you've considered

The alternative was to use single-use read-only transactions, but #196 prevents that.

Additional context
Add any other context or screenshots about the feature request here.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions