google-cloud-trace-v2 0.9.0 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5d95f8df4f09ede5034b55621df6f904377d694c15cd0bd662496ec70835a58c
4
- data.tar.gz: ee51f4083bd72c60c1b8f08904edde5bec87bb1c6f2ae7b57cd53ed5580dfcc8
3
+ metadata.gz: 5b370f854b5142f837b36b971a1dff0be8c4b6488e6c87cb9f05e9c238f94c2d
4
+ data.tar.gz: 15e427ac170caecf75f9acc2e69da14d40d989b700119b6e32747552511a1d70
5
5
  SHA512:
6
- metadata.gz: a45ce9152f7f1554bc4a41e7786886759438fcf1c302547ca6c9437043e334adc0ecbe923e956fc5c085da40efe6973cee342b81dc5dbfcc2762b12a2d4db385
7
- data.tar.gz: d7b0932ad1058b7394881f32e49841395a6b1d8c4fbb8ac28ca3ddc8d875a704b53571e5b647b3daba9f51675bae853df437946de4c4ae7a2f4cb29bb695b3c8
6
+ metadata.gz: f0f927bf90c586470868e53fbbb7cf0dbc4b3c53e5d8da15cb36408433bfe50dcdce7db2332134690db8e5fe98ec827802aa5b05b61811fef439cd1e6bfaedbf
7
+ data.tar.gz: ba9f990175b5ca775c3eb5021f4623ab8058710a043b009e4a73517c21acae6fa1f716311e70eab302ed509c1e22c90a4b66c7e1bb349b19e076c8bd17502527
@@ -36,6 +36,9 @@ module Google
36
36
  # A single trace can contain spans from multiple services.
37
37
  #
38
38
  class Client
39
+ # @private
40
+ API_VERSION = ""
41
+
39
42
  # @private
40
43
  DEFAULT_ENDPOINT_TEMPLATE = "cloudtrace.$UNIVERSE_DOMAIN$"
41
44
 
@@ -236,10 +239,11 @@ module Google
236
239
  # Customize the options with defaults
237
240
  metadata = @config.rpcs.batch_write_spans.metadata.to_h
238
241
 
239
- # Set x-goog-api-client and x-goog-user-project headers
242
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
240
243
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
241
244
  lib_name: @config.lib_name, lib_version: @config.lib_version,
242
245
  gapic_version: ::Google::Cloud::Trace::V2::VERSION
246
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
243
247
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
244
248
 
245
249
  header_params = {}
@@ -377,10 +381,11 @@ module Google
377
381
  # Customize the options with defaults
378
382
  metadata = @config.rpcs.create_span.metadata.to_h
379
383
 
380
- # Set x-goog-api-client and x-goog-user-project headers
384
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
381
385
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
382
386
  lib_name: @config.lib_name, lib_version: @config.lib_version,
383
387
  gapic_version: ::Google::Cloud::Trace::V2::VERSION
388
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
384
389
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
385
390
 
386
391
  header_params = {}
@@ -38,6 +38,9 @@ module Google
38
38
  # A single trace can contain spans from multiple services.
39
39
  #
40
40
  class Client
41
+ # @private
42
+ API_VERSION = ""
43
+
41
44
  # @private
42
45
  DEFAULT_ENDPOINT_TEMPLATE = "cloudtrace.$UNIVERSE_DOMAIN$"
43
46
 
@@ -228,12 +231,13 @@ module Google
228
231
  # Customize the options with defaults
229
232
  call_metadata = @config.rpcs.batch_write_spans.metadata.to_h
230
233
 
231
- # Set x-goog-api-client and x-goog-user-project headers
234
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
232
235
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
233
236
  lib_name: @config.lib_name, lib_version: @config.lib_version,
234
237
  gapic_version: ::Google::Cloud::Trace::V2::VERSION,
235
238
  transports_version_send: [:rest]
236
239
 
240
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
237
241
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
238
242
 
239
243
  options.apply_defaults timeout: @config.rpcs.batch_write_spans.timeout,
@@ -362,12 +366,13 @@ module Google
362
366
  # Customize the options with defaults
363
367
  call_metadata = @config.rpcs.create_span.metadata.to_h
364
368
 
365
- # Set x-goog-api-client and x-goog-user-project headers
369
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
366
370
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
367
371
  lib_name: @config.lib_name, lib_version: @config.lib_version,
368
372
  gapic_version: ::Google::Cloud::Trace::V2::VERSION,
369
373
  transports_version_send: [:rest]
370
374
 
375
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
371
376
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
372
377
 
373
378
  options.apply_defaults timeout: @config.rpcs.create_span.timeout,
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Trace
23
23
  module V2
24
- VERSION = "0.9.0"
24
+ VERSION = "1.0.0"
25
25
  end
26
26
  end
27
27
  end
@@ -118,6 +118,10 @@ module Google
118
118
  # @return [::String]
119
119
  # Optional link to proto reference documentation. Example:
120
120
  # https://cloud.google.com/pubsub/lite/docs/reference/rpc
121
+ # @!attribute [rw] rest_reference_documentation_uri
122
+ # @return [::String]
123
+ # Optional link to REST reference documentation. Example:
124
+ # https://cloud.google.com/pubsub/lite/docs/reference/rest
121
125
  class Publishing
122
126
  include ::Google::Protobuf::MessageExts
123
127
  extend ::Google::Protobuf::MessageExts::ClassMethods
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-trace-v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-26 00:00:00.000000000 Z
11
+ date: 2024-07-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common