google-cloud-trace 0.27.0 → 0.27.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/trace/async_reporter.rb +1 -0
- data/lib/google/cloud/trace/label_key.rb +2 -2
- data/lib/google/cloud/trace/notifications.rb +5 -4
- data/lib/google/cloud/trace/span.rb +7 -7
- data/lib/google/cloud/trace/trace_record.rb +5 -5
- data/lib/google/cloud/trace/utils.rb +1 -0
- data/lib/google/cloud/trace/version.rb +1 -1
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 975ed7f4bb02a5e59ce4fca105d238f3ca7dbe1a
|
4
|
+
data.tar.gz: b4f90c3860ffc78f4629b33e09389acfeb97902e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 03b6604e0d41b91a6c407b21669132d01402e4efef40387b5dcb6d689439f60f99b2fd278ce0aa6e08bf42e1cce58832552edbb2810177ca0c92eb2263d6d5c1
|
7
|
+
data.tar.gz: '09aa20c57a10bbfffcf47023a7e764556ab6620bb0c68c2ab6fc03943be7bb25ef5028c8ee60222e3018e1a7b5b4037ba06eee346bdd38b096620cf1bf024920'
|
@@ -106,8 +106,8 @@ module Google
|
|
106
106
|
# @example
|
107
107
|
# require "google/cloud/trace"
|
108
108
|
#
|
109
|
-
#
|
110
|
-
# span =
|
109
|
+
# trace_record = Google::Cloud::Trace::TraceRecord.new "my-project-id"
|
110
|
+
# span = trace_record.create_span "root_span"
|
111
111
|
# Google::Cloud::Trace::LabelKey.set_stack_trace span.labels
|
112
112
|
#
|
113
113
|
def self.set_stack_trace labels,
|
@@ -57,13 +57,14 @@ module Google
|
|
57
57
|
# @example
|
58
58
|
#
|
59
59
|
# require "google/cloud/trace"
|
60
|
-
# require "
|
60
|
+
# require "active_record"
|
61
61
|
#
|
62
62
|
# Google::Cloud::Trace::Notifications.instrument "sql.activerecord"
|
63
63
|
#
|
64
|
-
#
|
65
|
-
# Google::Cloud::Trace.set
|
66
|
-
#
|
64
|
+
# trace_record = Google::Cloud::Trace::TraceRecord.new "my-project-id"
|
65
|
+
# Google::Cloud::Trace.set trace_record
|
66
|
+
#
|
67
|
+
# ActiveRecord::Base.connection.execute "SHOW TABLES"
|
67
68
|
#
|
68
69
|
def self.instrument type,
|
69
70
|
max_length: DEFAULT_MAX_DATA_LENGTH,
|
@@ -244,8 +244,8 @@ module Google
|
|
244
244
|
# @example
|
245
245
|
# require "google/cloud/trace"
|
246
246
|
#
|
247
|
-
#
|
248
|
-
# span =
|
247
|
+
# trace_record = Google::Cloud::Trace::TraceRecord.new "my-project-id"
|
248
|
+
# span = trace_record.create_span "root_span"
|
249
249
|
# subspan = span.create_span "subspan"
|
250
250
|
#
|
251
251
|
def create_span name, span_id: nil, kind: SpanKind::UNSPECIFIED,
|
@@ -272,8 +272,8 @@ module Google
|
|
272
272
|
# @example
|
273
273
|
# require "google/cloud/trace"
|
274
274
|
#
|
275
|
-
#
|
276
|
-
#
|
275
|
+
# trace_record = Google::Cloud::Trace::TraceRecord.new "my-project-id"
|
276
|
+
# trace_record.in_span "root_span" do |span|
|
277
277
|
# # Do stuff...
|
278
278
|
# span.in_span "subspan" do |subspan|
|
279
279
|
# # Do subspan stuff...
|
@@ -367,9 +367,9 @@ module Google
|
|
367
367
|
# @example
|
368
368
|
# require "google/cloud/trace"
|
369
369
|
#
|
370
|
-
#
|
371
|
-
# root1 =
|
372
|
-
# root2 =
|
370
|
+
# trace_record = Google::Cloud::Trace::TraceRecord.new "my-project-id"
|
371
|
+
# root1 = trace_record.create_span "root_span_1"
|
372
|
+
# root2 = trace_record.create_span "root_span_2"
|
373
373
|
# subspan = root1.create_span "subspan"
|
374
374
|
# subspan.move_under root2
|
375
375
|
#
|
@@ -29,7 +29,7 @@ module Google
|
|
29
29
|
# @example
|
30
30
|
# require "google/cloud/trace"
|
31
31
|
#
|
32
|
-
# env =
|
32
|
+
# env = {}
|
33
33
|
# trace_context = Stackdriver::Core::TraceContext.parse_rack_env env
|
34
34
|
#
|
35
35
|
# trace = Google::Cloud::Trace::TraceRecord.new "my-project",
|
@@ -182,8 +182,8 @@ module Google
|
|
182
182
|
# @example
|
183
183
|
# require "google/cloud/trace"
|
184
184
|
#
|
185
|
-
#
|
186
|
-
# span =
|
185
|
+
# trace_record = Google::Cloud::Trace::TraceRecord.new "my-project-id"
|
186
|
+
# span = trace_record.create_span "root_span"
|
187
187
|
#
|
188
188
|
def create_span name, span_id: nil, parent_span_id: 0,
|
189
189
|
kind: SpanKind::UNSPECIFIED,
|
@@ -219,8 +219,8 @@ module Google
|
|
219
219
|
# @example
|
220
220
|
# require "google/cloud/trace"
|
221
221
|
#
|
222
|
-
#
|
223
|
-
#
|
222
|
+
# trace_record = Google::Cloud::Trace::TraceRecord.new "my-project-id"
|
223
|
+
# trace_record.in_span "root_span" do |span|
|
224
224
|
# # Do stuff...
|
225
225
|
# end
|
226
226
|
#
|
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.27.
|
4
|
+
version: 0.27.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-
|
11
|
+
date: 2017-09-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-cloud-core
|
@@ -206,6 +206,20 @@ dependencies:
|
|
206
206
|
- - "~>"
|
207
207
|
- !ruby/object:Gem::Version
|
208
208
|
version: 0.1.6
|
209
|
+
- !ruby/object:Gem::Dependency
|
210
|
+
name: activerecord
|
211
|
+
requirement: !ruby/object:Gem::Requirement
|
212
|
+
requirements:
|
213
|
+
- - ">="
|
214
|
+
- !ruby/object:Gem::Version
|
215
|
+
version: '4.0'
|
216
|
+
type: :development
|
217
|
+
prerelease: false
|
218
|
+
version_requirements: !ruby/object:Gem::Requirement
|
219
|
+
requirements:
|
220
|
+
- - ">="
|
221
|
+
- !ruby/object:Gem::Version
|
222
|
+
version: '4.0'
|
209
223
|
description: google-cloud-trace is the official library for Stackdriver Trace.
|
210
224
|
email:
|
211
225
|
- dazuma@google.com
|
@@ -263,7 +277,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
263
277
|
version: '0'
|
264
278
|
requirements: []
|
265
279
|
rubyforge_project:
|
266
|
-
rubygems_version: 2.6.
|
280
|
+
rubygems_version: 2.6.13
|
267
281
|
signing_key:
|
268
282
|
specification_version: 4
|
269
283
|
summary: Application Instrumentation and API Client library for Stackdriver Trace
|