question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

spanner: set the google-cloud-resource-prefix header in clients

See original GitHub issue

The google-cloud-resource-prefix header is expected to be set for the data and two admin clients of Cloud Spanner. I found that the header is set in Firestore and Datastore.

So I can follow that example to set it for the Spanner clients.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
jskeetcommented, Aug 27, 2020

In vacation until Tuesday - will look then.

1reaction
jskeetcommented, Jul 15, 2020

Great, thank you. Let me know if anything is unclear. (It’s somewhat annoying that we have to do this via manual code, admittedly.)

Read more comments on GitHub >

github_iconTop Results From Across the Web

Use google-cloud-resource-prefix Header · Issue #1237
Google Cloud Spanner should send the project name, instance name, or database name in the google-cloud-resource-prefix header.
Read more >
Cloud::Spanner (v2.17.0) | Ruby client library
The OAuth 2.0 scopes controlling the set of resources and operations that ... as a prefix to the API call tracking header x-goog-api-client...
Read more >
Cloud::Spanner::Admin::Instance (v2.17.0) - Ruby
Configure the Google Cloud Spanner Instance Admin library. ... a prefix to the API call tracking header x-goog-api-client with provided lib ...
Read more >
google_cloud_run_service | Resources | hashicorp/google
To set Cloud SQL connections for the revision, use the "run.googleapis.com/cloudsql-instances" annotation key. Structure is documented below. spec - (Required) ...
Read more >
Cloud Spanner Go Reference
Package spanner provides a client for reading and writing to Cloud Spanner databases. See the packages under admin for clients that operate ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found