Cloud Trace API requires a quota project. This change passes through GOOGLE_CLOUD_QUOTA_PROJECT environment variable, which Cloud Shell has automatically set. This is better than doing the resource project override and works better off Cloud Shell. I also renamed the file to reflect that it works with any credentials file, including SA keys.
Cloud Trace API requires a quota project. This change passes through
GOOGLE_CLOUD_QUOTA_PROJECT
environment variable, which Cloud Shell has automatically set. This is better than doing the resource project override and works better off Cloud Shell. I also renamed the file to reflect that it works with any credentials file, including SA keys.Equivalent of https://github.com/GoogleCloudPlatform/golang-samples/pull/3760 from the Go repo