google-cloud-trace 0.23.0 → 0.23.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
  SHA1:
3
- metadata.gz: 456f2eab3082b1bea5f110f3099af6f4c3224b8a
4
- data.tar.gz: 0364c97a648139147315ac281d6dfe80e04b9173
3
+ metadata.gz: aaf405ed09685f9a111f68ed743c0b0e2cac2de4
4
+ data.tar.gz: ae6f22a0aecf7254af4c5a10223f194fb7a50fc6
5
5
  SHA512:
6
- metadata.gz: 0a45fdd947d1210bffb5257057e484b7908e0a00ccf43cd0c863cd02d675683aea96693a937a4de93d54f0aed002ccaf83e75cf10c99ca78b04a680e122da44a
7
- data.tar.gz: e3809d53831e7fa522f5fd7644f154177ef61adc5d7b146e914f2543b115ea84a6b8a524bd37953774da50aebb83c09db1ad4f5aadff294177b9881ede09ceb4
6
+ metadata.gz: 1f3bf509e60de09d22398e4f45d149a87c4634b6fa4ca19a12d0c3cbd257345f233f173f8ad60886aaf12139d7e5ea9cdf1fa1dd49c75cdeda9e19015a33db3b
7
+ data.tar.gz: d3b6333b148b0c08767a9a2a941a7f8368d12c1bdc23ed195fcba9b5c407de5ad09efcb531b41a9b749482d8723d96098c3ab71d8cf3a4383d4ed2add74d74d7
@@ -82,8 +82,8 @@ module Google
82
82
  channel: channel,
83
83
  timeout: timeout,
84
84
  client_config: client_config,
85
- app_name: "gcloud-ruby",
86
- app_version: Google::Cloud::Trace::VERSION)
85
+ lib_name: "gccl",
86
+ lib_version: Google::Cloud::Trace::VERSION)
87
87
  end
88
88
  attr_accessor :mocked_lowlevel_client
89
89
 
@@ -1,10 +1,10 @@
1
- # Copyright 2016 Google Inc. All rights reserved.
1
+ # Copyright 2017, Google Inc. All rights reserved.
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
5
5
  # You may obtain a copy of the License at
6
6
  #
7
- # http://www.apache.org/licenses/LICENSE-2.0
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
8
  #
9
9
  # Unless required by applicable law or agreed to in writing, software
10
10
  # distributed under the License is distributed on an "AS IS" BASIS,
@@ -184,4 +184,4 @@ module Google
184
184
  end
185
185
  end
186
186
  end
187
- end
187
+ end
@@ -1,10 +1,10 @@
1
- # Copyright 2016 Google Inc. All rights reserved.
1
+ # Copyright 2017, Google Inc. All rights reserved.
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
5
5
  # You may obtain a copy of the License at
6
6
  #
7
- # http://www.apache.org/licenses/LICENSE-2.0
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
8
  #
9
9
  # Unless required by applicable law or agreed to in writing, software
10
10
  # distributed under the License is distributed on an "AS IS" BASIS,
@@ -80,4 +80,4 @@ module Google
80
80
  # inclusive.
81
81
  class Timestamp; end
82
82
  end
83
- end
83
+ end
@@ -49,8 +49,6 @@ module Google
49
49
  # The default port of the service.
50
50
  DEFAULT_SERVICE_PORT = 443
51
51
 
52
- CODE_GEN_NAME_VERSION = "gapic/0.1.0".freeze
53
-
54
52
  DEFAULT_TIMEOUT = 30
55
53
 
56
54
  PAGE_DESCRIPTORS = {
@@ -85,10 +83,6 @@ module Google
85
83
  # or the specified config is missing data points.
86
84
  # @param timeout [Numeric]
87
85
  # The default timeout, in seconds, for calls made through this client.
88
- # @param app_name [String]
89
- # The codename of the calling service.
90
- # @param app_version [String]
91
- # The version of the calling service.
92
86
  def initialize \
93
87
  service_path: SERVICE_ADDRESS,
94
88
  port: DEFAULT_SERVICE_PORT,
@@ -97,8 +91,10 @@ module Google
97
91
  scopes: ALL_SCOPES,
98
92
  client_config: {},
99
93
  timeout: DEFAULT_TIMEOUT,
100
- app_name: "gax",
101
- app_version: Google::Gax::VERSION
94
+ app_name: nil,
95
+ app_version: nil,
96
+ lib_name: nil,
97
+ lib_version: ""
102
98
  # These require statements are intentionally placed here to initialize
103
99
  # the gRPC module only when it's required.
104
100
  # See https://github.com/googleapis/toolkit/issues/446
@@ -106,9 +102,16 @@ module Google
106
102
  require "google/devtools/cloudtrace/v1/trace_services_pb"
107
103
 
108
104
 
109
- google_api_client = "#{app_name}/#{app_version} " \
110
- "#{CODE_GEN_NAME_VERSION} gax/#{Google::Gax::VERSION} " \
111
- "ruby/#{RUBY_VERSION}".freeze
105
+ if app_name || app_version
106
+ warn "`app_name` and `app_version` are no longer being used in the request headers."
107
+ end
108
+
109
+ google_api_client = "gl-ruby/#{RUBY_VERSION}"
110
+ google_api_client << " #{lib_name}/#{lib_version}" if lib_name
111
+ google_api_client << " gapic/ gax/#{Google::Gax::VERSION}"
112
+ google_api_client << " grpc/#{GRPC::VERSION}"
113
+ google_api_client.freeze
114
+
112
115
  headers = { :"x-goog-api-client" => google_api_client }
113
116
  client_config_file = Pathname.new(__dir__).join(
114
117
  "trace_service_client_config.json"
@@ -2,11 +2,11 @@
2
2
  "interfaces": {
3
3
  "google.devtools.cloudtrace.v1.TraceService": {
4
4
  "retry_codes": {
5
- "idempotent": [
6
- "DEADLINE_EXCEEDED",
7
- "UNAVAILABLE"
8
- ],
9
- "non_idempotent": []
5
+ "idempotent": [
6
+ "DEADLINE_EXCEEDED",
7
+ "UNAVAILABLE"
8
+ ],
9
+ "non_idempotent": []
10
10
  },
11
11
  "retry_params": {
12
12
  "default": {
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Trace
19
- VERSION = "0.23.0".freeze
19
+ VERSION = "0.23.1".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.23.0
4
+ version: 0.23.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Azuma
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-02-21 00:00:00.000000000 Z
11
+ date: 2017-03-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-cloud-core