nodejs-spanner icon indicating copy to clipboard operation
nodejs-spanner copied to clipboard

SpannerOptions: document how to pass in client gRPC options like client interceptors

Open odeke-em opened this issue 1 year ago • 1 comments

Please make sure you have searched for information in the following guides.

  • [X] Search the issues already opened: https://github.com/GoogleCloudPlatform/google-cloud-node/issues
  • [X] Check our Troubleshooting guide: https://googlecloudplatform.github.io/google-cloud-node/#/docs/guides/troubleshooting
  • [X] Check our FAQ: https://googlecloudplatform.github.io/google-cloud-node/#/docs/guides/faq
  • [X] Check our libraries HOW-TO: https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md
  • [X] Check out our authentication guide: https://github.com/googleapis/google-auth-library-nodejs
  • [X] Check out handwritten samples for many of our APIs: https://github.com/GoogleCloudPlatform/nodejs-docs-samples

Documentation Request

Kindly please document how to pass in gRPC options and for example interceptors to the Spanner Client as they are very important to inject and assert on expectations like certain headers. I am rolling out x-goog-spanner-request-id support for all the major Cloud Spanner client libraries and for this client I have a PR started https://github.com/googleapis/nodejs-spanner/pull/2205 but it is quite a hairy situation to try to add client interceptors so for starters I am using the server interceptor with MockSpanner to verify expectations.

Kindly cc-ing @olavloite @surbhigarg92

odeke-em avatar Dec 22 '24 21:12 odeke-em

@odeke-em Would you please elaborate your request, Maybe share an example of how are you able to achieve this in other languages ?

surbhigarg92 avatar Dec 27 '24 11:12 surbhigarg92