google-cloud-trace 0.37.1 → 0.38.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fb504eda6827a2043808556ae16548e74e495428bd812e03978dcce06395458a
4
- data.tar.gz: 451e718b271274eb29e194dbcb0de641834f67e7d41d424cacecbe48de885b6f
3
+ metadata.gz: 1e31c458d4b71d3dcd19af41f37bce6f6a33f0b3777df26d1f68e0e3b1468ea4
4
+ data.tar.gz: c2abc7e1e34c2414635920b1130b66a416d8f7e4f349ef68a43c8cea1d04e746
5
5
  SHA512:
6
- metadata.gz: bb1bef8801444f3cda27c7a3882ec5efb10ddc7cb0ce5981278a710f505bc96b6c5808d6f4e7f6f4c3607fb2f2b04f9846a55495791862f618687e6d68b5c0e5
7
- data.tar.gz: 715289c04a4e7450c42c9d050688477272d690bd622c97a45c0e94b5d6c2bfac4294b20d43b15363fddd4791034572ba00dc3c81e2236d768ec52aca52e048a8
6
+ metadata.gz: 1e8b950eb0d71afc9600494cb27a81a985bf866950b4a6c561d051554e032dace60483f73b07705cbd5ac6eca458deea43278ad6014f508f74e8e729accc83cc
7
+ data.tar.gz: f9a769c22e03705190aaf5b0e7d90755b54ea0be9396442e0efb1f10b974631bd204fea70a286ea5f29afecdba8e486959f965b2e144977bac2b44158877e08d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Release History
2
2
 
3
+ ### 0.38.0 / 2020-03-11
4
+
5
+ #### Features
6
+
7
+ * Support separate project setting for quota/billing
8
+
3
9
  ### 0.37.1 / 2020-01-23
4
10
 
5
11
  #### Documentation
@@ -151,6 +151,9 @@ module Google
151
151
  google_api_client.freeze
152
152
 
153
153
  headers = { :"x-goog-api-client" => google_api_client }
154
+ if credentials.respond_to?(:quota_project_id) && credentials.quota_project_id
155
+ headers[:"x-goog-user-project"] = credentials.quota_project_id
156
+ end
154
157
  headers.merge!(metadata) unless metadata.nil?
155
158
  client_config_file = Pathname.new(__dir__).join(
156
159
  "trace_service_client_config.json"
@@ -20,7 +20,7 @@ module Google
20
20
  # rubocop:disable LineLength
21
21
 
22
22
  ##
23
- # # Ruby Client for Stackdriver Trace API ([Alpha](https://github.com/googleapis/google-cloud-ruby#versioning))
23
+ # # Ruby Client for Stackdriver Trace API
24
24
  #
25
25
  # [Stackdriver Trace API][Product Documentation]:
26
26
  # Sends application trace data to Stackdriver Trace for viewing. Trace data is
@@ -175,6 +175,9 @@ module Google
175
175
  google_api_client.freeze
176
176
 
177
177
  headers = { :"x-goog-api-client" => google_api_client }
178
+ if credentials.respond_to?(:quota_project_id) && credentials.quota_project_id
179
+ headers[:"x-goog-user-project"] = credentials.quota_project_id
180
+ end
178
181
  headers.merge!(metadata) unless metadata.nil?
179
182
  client_config_file = Pathname.new(__dir__).join(
180
183
  "trace_service_client_config.json"
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Trace
19
- VERSION = "0.37.1".freeze
19
+ VERSION = "0.38.0".freeze
20
20
  end
21
21
  end
22
22
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-trace
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.37.1
4
+ version: 0.38.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Azuma
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-23 00:00:00.000000000 Z
11
+ date: 2020-03-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-cloud-core