google-cloud-trace 0.21.0 → 0.22.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
  SHA1:
3
- metadata.gz: 5c1a9cb5d58e30bc4fba83ba6c1e5e3086b7334d
4
- data.tar.gz: cfe2ae3c6deff51e73be893b811a24143e8ecc11
3
+ metadata.gz: 9b02901f4b5021563987d598b85ebe7db54d93cb
4
+ data.tar.gz: 6c07eddb95e4c1964705b344e1142eefe04468c4
5
5
  SHA512:
6
- metadata.gz: ef0e5a93830a6bca11771fda5d855ed0c3e1ed2c7e9b559fb8036ecff6c98396b86fccd868e9f02358278331e50b95b64fe62834abf95fed45389b8f3b184f4a
7
- data.tar.gz: e40003165b0f933489545d65d98a9e29a976731be8f35d0cee300a8d0c686e0bb151119ed94e91fbc8fe6dcbc8772c52ad0317d16c094dc79a2d8ed8495aec92
6
+ metadata.gz: 9bfbf88634534caf120ebea23f189fd7e70114aebe76985fdde377d607a570e43f7e2aafe8081defe5ee5d3076903369095a0cdf5d8e86a0bb2c561d652a5a17
7
+ data.tar.gz: b2511c1797b9da68d1cdf7c14beb855ad706ba38cbe1ee1f65ce43cdc9593d6244f9415c3bc3dca2e272fbde02a57176b6c9f29595a7ebe0810b7a7807f31ea3
data/.yardopts CHANGED
@@ -1,5 +1,6 @@
1
1
  --no-private
2
2
  --title=Stackdriver Trace
3
+ --exclude lib/google/devtools/cloudtrace/v1
3
4
  --markup markdown
4
5
 
5
6
  ./lib/**/*.rb
data/README.md CHANGED
@@ -5,7 +5,7 @@ google-cloud-trace uses [Google API extensions][google-gax] to provide an
5
5
  easy-to-use client library for the [Stackdriver Trace API][] (v1) defined in the [googleapis][] git repository
6
6
 
7
7
 
8
- [googleapis]: https://github.com/googleapis/googleapis/tree/master/google/google/devtools/cloudtrace/v1
8
+ [googleapis]: https://github.com/googleapis/googleapis/tree/master/google/devtools/cloudtrace/v1
9
9
  [google-gax]: https://github.com/googleapis/gax-ruby
10
10
  [Stackdriver Trace API]: https://developers.google.com/apis-explorer/#p/cloudtrace/v1/
11
11
 
@@ -53,7 +53,7 @@ module Google
53
53
  client_config: nil
54
54
  @project = project
55
55
  @credentials = credentials
56
- @host = host || V1::TraceServiceApi::SERVICE_ADDRESS
56
+ @host = host || V1::TraceServiceClient::SERVICE_ADDRESS
57
57
  @timeout = timeout
58
58
  @client_config = client_config || {}
59
59
  end
@@ -77,7 +77,7 @@ module Google
77
77
  def lowlevel_client
78
78
  return mocked_lowlevel_client if mocked_lowlevel_client
79
79
  @lowlevel_client ||= \
80
- V1::TraceServiceApi.new(
80
+ V1::TraceServiceClient.new(
81
81
  service_path: host,
82
82
  channel: channel,
83
83
  timeout: timeout,
@@ -13,4 +13,4 @@
13
13
  # limitations under the License.
14
14
 
15
15
 
16
- require "google/cloud/trace/v1/trace_service_api"
16
+ require "google/cloud/trace/v1/trace_service_client"
@@ -15,6 +15,18 @@
15
15
  module Google
16
16
  module Devtools
17
17
  module Cloudtrace
18
+ ##
19
+ # The `Google::Devtools::Cloudtrace::V1` module provides the following types:
20
+ #
21
+ # Class | Description
22
+ # ----- | -----------
23
+ # {Google::Devtools::Cloudtrace::V1::GetTraceRequest} | The request message for the GetTrace method.
24
+ # {Google::Devtools::Cloudtrace::V1::ListTracesRequest} | The request message for the ListTraces method.
25
+ # {Google::Devtools::Cloudtrace::V1::ListTracesResponse} | The response message for the ListTraces method.
26
+ # {Google::Devtools::Cloudtrace::V1::PatchTracesRequest} | The request message for the PatchTraces method.
27
+ # {Google::Devtools::Cloudtrace::V1::Trace} | A trace describes how long it takes for an application to perform an operation.
28
+ # {Google::Devtools::Cloudtrace::V1::Traces} | List of new or updated traces.
29
+ # {Google::Devtools::Cloudtrace::V1::TraceSpan} | A span represents a single timed event within a trace.
18
30
  module V1
19
31
  # A trace describes how long it takes for an application to perform an
20
32
  # operation. It consists of a set of spans, each of which represent a single
@@ -40,7 +40,7 @@ module Google
40
40
  #
41
41
  # @!attribute [r] trace_service_stub
42
42
  # @return [Google::Devtools::Cloudtrace::V1::TraceService::Stub]
43
- class TraceServiceApi
43
+ class TraceServiceClient
44
44
  attr_reader :trace_service_stub
45
45
 
46
46
  # The default address of the service.
@@ -105,6 +105,7 @@ module Google
105
105
  require "google/gax/grpc"
106
106
  require "google/devtools/cloudtrace/v1/trace_services_pb"
107
107
 
108
+
108
109
  google_api_client = "#{app_name}/#{app_version} " \
109
110
  "#{CODE_GEN_NAME_VERSION} gax/#{Google::Gax::VERSION} " \
110
111
  "ruby/#{RUBY_VERSION}".freeze
@@ -164,15 +165,15 @@ module Google
164
165
  # retries, etc.
165
166
  # @raise [Google::Gax::GaxError] if the RPC is aborted.
166
167
  # @example
167
- # require "google/cloud/trace/v1/trace_service_api"
168
+ # require "google/cloud/trace/v1/trace_service_client"
168
169
  #
169
- # TraceServiceApi = Google::Cloud::Trace::V1::TraceServiceApi
170
+ # TraceServiceClient = Google::Cloud::Trace::V1::TraceServiceClient
170
171
  # Traces = Google::Devtools::Cloudtrace::V1::Traces
171
172
  #
172
- # trace_service_api = TraceServiceApi.new
173
+ # trace_service_client = TraceServiceClient.new
173
174
  # project_id = ''
174
175
  # traces = Traces.new
175
- # trace_service_api.patch_traces(project_id, traces)
176
+ # trace_service_client.patch_traces(project_id, traces)
176
177
 
177
178
  def patch_traces \
178
179
  project_id,
@@ -183,6 +184,7 @@ module Google
183
184
  traces: traces
184
185
  }.delete_if { |_, v| v.nil? })
185
186
  @patch_traces.call(req, options)
187
+ nil
186
188
  end
187
189
 
188
190
  # Gets a single trace by its ID.
@@ -197,14 +199,14 @@ module Google
197
199
  # @return [Google::Devtools::Cloudtrace::V1::Trace]
198
200
  # @raise [Google::Gax::GaxError] if the RPC is aborted.
199
201
  # @example
200
- # require "google/cloud/trace/v1/trace_service_api"
202
+ # require "google/cloud/trace/v1/trace_service_client"
201
203
  #
202
- # TraceServiceApi = Google::Cloud::Trace::V1::TraceServiceApi
204
+ # TraceServiceClient = Google::Cloud::Trace::V1::TraceServiceClient
203
205
  #
204
- # trace_service_api = TraceServiceApi.new
206
+ # trace_service_client = TraceServiceClient.new
205
207
  # project_id = ''
206
208
  # trace_id = ''
207
- # response = trace_service_api.get_trace(project_id, trace_id)
209
+ # response = trace_service_client.get_trace(project_id, trace_id)
208
210
 
209
211
  def get_trace \
210
212
  project_id,
@@ -260,20 +262,20 @@ module Google
260
262
  # object.
261
263
  # @raise [Google::Gax::GaxError] if the RPC is aborted.
262
264
  # @example
263
- # require "google/cloud/trace/v1/trace_service_api"
265
+ # require "google/cloud/trace/v1/trace_service_client"
264
266
  #
265
- # TraceServiceApi = Google::Cloud::Trace::V1::TraceServiceApi
267
+ # TraceServiceClient = Google::Cloud::Trace::V1::TraceServiceClient
266
268
  #
267
- # trace_service_api = TraceServiceApi.new
269
+ # trace_service_client = TraceServiceClient.new
268
270
  # project_id = ''
269
271
  #
270
272
  # # Iterate over all results.
271
- # trace_service_api.list_traces(project_id).each do |element|
273
+ # trace_service_client.list_traces(project_id).each do |element|
272
274
  # # Process element.
273
275
  # end
274
276
  #
275
277
  # # Or iterate over results one page at a time.
276
- # trace_service_api.list_traces(project_id).each_page do |page|
278
+ # trace_service_client.list_traces(project_id).each_page do |page|
277
279
  # # Process each page at a time.
278
280
  # page.each do |element|
279
281
  # # Process element.
@@ -16,7 +16,7 @@
16
16
  module Google
17
17
  module Cloud
18
18
  module Trace
19
- VERSION = "0.21.0".freeze
19
+ VERSION = "0.22.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.21.0
4
+ version: 0.22.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: 2016-12-22 00:00:00.000000000 Z
11
+ date: 2017-01-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: grpc
@@ -262,7 +262,7 @@ files:
262
262
  - lib/google/cloud/trace/v1.rb
263
263
  - lib/google/cloud/trace/v1/doc/google/devtools/cloudtrace/v1/trace.rb
264
264
  - lib/google/cloud/trace/v1/doc/google/protobuf/timestamp.rb
265
- - lib/google/cloud/trace/v1/trace_service_api.rb
265
+ - lib/google/cloud/trace/v1/trace_service_client.rb
266
266
  - lib/google/cloud/trace/v1/trace_service_client_config.json
267
267
  - lib/google/cloud/trace/version.rb
268
268
  - lib/google/devtools/cloudtrace/v1/trace_pb.rb
@@ -287,7 +287,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
287
287
  version: '0'
288
288
  requirements: []
289
289
  rubyforge_project:
290
- rubygems_version: 2.6.8
290
+ rubygems_version: 2.6.10
291
291
  signing_key:
292
292
  specification_version: 4
293
293
  summary: Application Instrumentation and API Client library for Stackdriver Trace