Skip to content
This repository was archived by the owner on Mar 4, 2026. It is now read-only.
This repository was archived by the owner on Mar 4, 2026. It is now read-only.

Undocumented ability to set RequestOptions or CallOptions on many APIs #1378

@nielm

Description

@nielm

It is possible to set a Request Priority or a deadline/timeout on some of the RPC calls by passing an Options Object wich contains a Gax CallOptions, and/or a RequestOptions object for example:

But it is not possible to set Priorities or deadlines on any of the APIs which read or Execute SQL queries or DML on the database.

It is however not documented that it is poissible to set these options on the following APIs. The JSDoc does not mention the parameters.

(and probably many others that I couldn't find)

It is often much more important to set deadlines and priorities on queries so that a response is either returned in a reasonable time, or the query fails, or that a long running DML operation occurs at a low priority.

~This is possible by accessing the gRPC API directly, but not though the client libraries. ~

Environment details

OS: Debian Rodete (20210511.01.04RD)
node: v12.21.0
npm: 7.5.2
google-gax@2.13.0
grpc/grpc-js@1.3.2
grpc-gcp@0.3.3

Metadata

Metadata

Labels

api: spannerIssues related to the googleapis/nodejs-spanner API.priority: p2Moderately-important priority. Fix may not be included in next release.type: docsImprovement to the documentation for an API.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions