google-cloud-trace 0.21.0 → 0.22.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +1 -0
- data/README.md +1 -1
- data/lib/google/cloud/trace/service.rb +2 -2
- data/lib/google/cloud/trace/v1.rb +1 -1
- data/lib/google/cloud/trace/v1/doc/google/devtools/cloudtrace/v1/trace.rb +12 -0
- data/lib/google/cloud/trace/v1/{trace_service_api.rb → trace_service_client.rb} +16 -14
- data/lib/google/cloud/trace/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9b02901f4b5021563987d598b85ebe7db54d93cb
|
4
|
+
data.tar.gz: 6c07eddb95e4c1964705b344e1142eefe04468c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9bfbf88634534caf120ebea23f189fd7e70114aebe76985fdde377d607a570e43f7e2aafe8081defe5ee5d3076903369095a0cdf5d8e86a0bb2c561d652a5a17
|
7
|
+
data.tar.gz: b2511c1797b9da68d1cdf7c14beb855ad706ba38cbe1ee1f65ce43cdc9593d6244f9415c3bc3dca2e272fbde02a57176b6c9f29595a7ebe0810b7a7807f31ea3
|
data/.yardopts
CHANGED
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/
|
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::
|
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::
|
80
|
+
V1::TraceServiceClient.new(
|
81
81
|
service_path: host,
|
82
82
|
channel: channel,
|
83
83
|
timeout: timeout,
|
@@ -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
|
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/
|
168
|
+
# require "google/cloud/trace/v1/trace_service_client"
|
168
169
|
#
|
169
|
-
#
|
170
|
+
# TraceServiceClient = Google::Cloud::Trace::V1::TraceServiceClient
|
170
171
|
# Traces = Google::Devtools::Cloudtrace::V1::Traces
|
171
172
|
#
|
172
|
-
#
|
173
|
+
# trace_service_client = TraceServiceClient.new
|
173
174
|
# project_id = ''
|
174
175
|
# traces = Traces.new
|
175
|
-
#
|
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/
|
202
|
+
# require "google/cloud/trace/v1/trace_service_client"
|
201
203
|
#
|
202
|
-
#
|
204
|
+
# TraceServiceClient = Google::Cloud::Trace::V1::TraceServiceClient
|
203
205
|
#
|
204
|
-
#
|
206
|
+
# trace_service_client = TraceServiceClient.new
|
205
207
|
# project_id = ''
|
206
208
|
# trace_id = ''
|
207
|
-
# response =
|
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/
|
265
|
+
# require "google/cloud/trace/v1/trace_service_client"
|
264
266
|
#
|
265
|
-
#
|
267
|
+
# TraceServiceClient = Google::Cloud::Trace::V1::TraceServiceClient
|
266
268
|
#
|
267
|
-
#
|
269
|
+
# trace_service_client = TraceServiceClient.new
|
268
270
|
# project_id = ''
|
269
271
|
#
|
270
272
|
# # Iterate over all results.
|
271
|
-
#
|
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
|
-
#
|
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.
|
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.
|
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:
|
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/
|
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.
|
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
|