google-cloud-trace-v2 0.6.0 → 0.6.1

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: 65456a04388bb995452a37730e6298629f1a8254d2f557aff2d1866d8e5ad270
4
- data.tar.gz: 8b6b5bfbaa1a99e45c85e7c2f50489b15d5e2e9f6106b85dd48e1474b1669acc
3
+ metadata.gz: 714811deb8894588f2b925dd47334c62863fb41d58c7c77f8e010e4700670318
4
+ data.tar.gz: dea83f140f46f2bb223e4d8aa870cd524264c749e181b9e1d625a3b825c72a44
5
5
  SHA512:
6
- metadata.gz: d17f62eda956eef397dba508b116a0a67b0d7176a94198e765c0481143de53fb465320be721649066db7d68da48661491fe2eadaa5bc5698ace7664e70ebec55
7
- data.tar.gz: b440d55b18ed9266fe6efef4472a073ee7afc4e66e1ac214c18d6810adad3f74b5705290df1c6da2249646113c4d66f0a280bf6ff2a2093b2a08235559f098d8
6
+ metadata.gz: cdfc6412b27104d93a0737189cde36f4f0e3989f7fb636adaff210ed92dbfa903d2ee38343d2e69d95f27199826f0901acd151594c7cec53fc99fe94f96a0100
7
+ data.tar.gz: edc111c079364971776b23bdec89140c3c489875fb099b9bae690eaf529d90f3b1bf30c0135e0dd55f82c99a7bd53dc56c8b12f0bbba4eddc4943a7d75f1e02e
@@ -139,7 +139,7 @@ module Google
139
139
  credentials = @config.credentials
140
140
  # Use self-signed JWT if the endpoint is unchanged from default,
141
141
  # but only if the default endpoint does not have a region prefix.
142
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
142
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
143
143
  !@config.endpoint.split(".").first.include?("-")
144
144
  credentials ||= Credentials.default scope: @config.scope,
145
145
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -473,7 +473,9 @@ module Google
473
473
  class Configuration
474
474
  extend ::Gapic::Config
475
475
 
476
- config_attr :endpoint, "cloudtrace.googleapis.com", ::String
476
+ DEFAULT_ENDPOINT = "cloudtrace.googleapis.com"
477
+
478
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
477
479
  config_attr :credentials, nil do |value|
478
480
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
479
481
  allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
@@ -135,7 +135,7 @@ module Google
135
135
  credentials = @config.credentials
136
136
  # Use self-signed JWT if the endpoint is unchanged from default,
137
137
  # but only if the default endpoint does not have a region prefix.
138
- enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
138
+ enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
139
139
  !@config.endpoint.split(".").first.include?("-")
140
140
  credentials ||= Credentials.default scope: @config.scope,
141
141
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -409,7 +409,9 @@ module Google
409
409
  class Configuration
410
410
  extend ::Gapic::Config
411
411
 
412
- config_attr :endpoint, "cloudtrace.googleapis.com", ::String
412
+ DEFAULT_ENDPOINT = "cloudtrace.googleapis.com"
413
+
414
+ config_attr :endpoint, DEFAULT_ENDPOINT, ::String
413
415
  config_attr :credentials, nil do |value|
414
416
  allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
415
417
  allowed.any? { |klass| klass === value }
@@ -59,7 +59,7 @@ module Google
59
59
 
60
60
  verb, uri, query_string_params, body = ServiceStub.transcode_batch_write_spans_request request_pb
61
61
  query_string_params = if query_string_params.any?
62
- query_string_params.to_h { |p| p.split("=", 2) }
62
+ query_string_params.to_h { |p| p.split "=", 2 }
63
63
  else
64
64
  {}
65
65
  end
@@ -97,7 +97,7 @@ module Google
97
97
 
98
98
  verb, uri, query_string_params, body = ServiceStub.transcode_create_span_request request_pb
99
99
  query_string_params = if query_string_params.any?
100
- query_string_params.to_h { |p| p.split("=", 2) }
100
+ query_string_params.to_h { |p| p.split "=", 2 }
101
101
  else
102
102
  {}
103
103
  end
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Trace
23
23
  module V2
24
- VERSION = "0.6.0"
24
+ VERSION = "0.6.1"
25
25
  end
26
26
  end
27
27
  end
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.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-31 00:00:00.000000000 Z
11
+ date: 2023-06-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.19.0
19
+ version: 0.19.1
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: 0.19.0
29
+ version: 0.19.1
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a