instrument_all_the_things 3.0.0.pre1 → 3.1.0.pre1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/test.yaml +1 -1
- data/.rubocop.yml +1 -0
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +20 -20
- data/instrument_all_the_things.gemspec +1 -1
- data/lib/instrument_all_the_things/thread.rb +25 -0
- data/lib/instrument_all_the_things/version.rb +1 -1
- data/lib/instrument_all_the_things.rb +1 -0
- data/vendor/cache/ddtrace-1.9.0.gem +0 -0
- data/vendor/cache/debase-ruby_core_source-3.2.0.gem +0 -0
- data/vendor/cache/libdatadog-1.0.1.1.0.gem +0 -0
- data/vendor/cache/libddwaf-1.5.1.0.1-x86_64-darwin.gem +0 -0
- data/vendor/cache/msgpack-1.6.0.gem +0 -0
- data/vendor/cache/parser-3.1.2.1.gem +0 -0
- data/vendor/cache/regexp_parser-2.6.0.gem +0 -0
- data/vendor/cache/rspec-expectations-3.11.1.gem +0 -0
- data/vendor/cache/rspec-support-3.11.1.gem +0 -0
- data/vendor/cache/rubocop-1.36.0.gem +0 -0
- data/vendor/cache/rubocop-ast-1.21.0.gem +0 -0
- data/vendor/cache/unicode-display_width-2.3.0.gem +0 -0
- metadata +17 -17
- data/vendor/cache/ddtrace-1.2.0.gem +0 -0
- data/vendor/cache/debase-ruby_core_source-0.10.16.gem +0 -0
- data/vendor/cache/libddprof-0.6.0.1.0.gem +0 -0
- data/vendor/cache/libddwaf-1.3.0.2.0-x86_64-darwin.gem +0 -0
- data/vendor/cache/libddwaf-1.3.0.2.0.gem +0 -0
- data/vendor/cache/msgpack-1.5.3.gem +0 -0
- data/vendor/cache/parser-3.1.2.0.gem +0 -0
- data/vendor/cache/regexp_parser-2.5.0.gem +0 -0
- data/vendor/cache/rspec-expectations-3.11.0.gem +0 -0
- data/vendor/cache/rspec-support-3.11.0.gem +0 -0
- data/vendor/cache/rubocop-1.31.2.gem +0 -0
- data/vendor/cache/rubocop-ast-1.19.1.gem +0 -0
- data/vendor/cache/unicode-display_width-2.2.0.gem +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '085158daef9e1f968527678c6344733b32c0600371ebe7ca6b7a3219964fb82d'
|
4
|
+
data.tar.gz: 9a4f9dc53daac3fdca206a511296495da4fbeff0a25257ae88ff7d7f594b7617
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b62187ac7b10e7303334d905f38452e00c49b0614098e91c2b8f3bc336211596a9e617a9c0aac5d854780338a41bb930b21f49a11159a3b4efed8fa2bbd11fa1
|
7
|
+
data.tar.gz: 954ab6833dc572619695139e41b954fcd7023f984846b2d7f90f770856a07f7bef31fea6b55babe4577f56a721f6440a2db9764cef778c08da6d817352a637f6
|
data/.github/workflows/test.yaml
CHANGED
data/.rubocop.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
instrument_all_the_things (
|
5
|
-
ddtrace (~> 1.
|
4
|
+
instrument_all_the_things (3.1.0.pre1)
|
5
|
+
ddtrace (~> 1.9.0)
|
6
6
|
dogstatsd-ruby (~> 5.5.0)
|
7
7
|
|
8
8
|
GEM
|
@@ -11,33 +11,33 @@ GEM
|
|
11
11
|
ast (2.4.2)
|
12
12
|
benchmark-ips (2.10.0)
|
13
13
|
coderay (1.1.3)
|
14
|
-
ddtrace (1.
|
15
|
-
debase-ruby_core_source (
|
16
|
-
|
17
|
-
libddwaf (~> 1.
|
14
|
+
ddtrace (1.9.0)
|
15
|
+
debase-ruby_core_source (>= 0.10.16, <= 3.2.0)
|
16
|
+
libdatadog (~> 1.0.1.1.0)
|
17
|
+
libddwaf (~> 1.5.1.0.0)
|
18
18
|
msgpack
|
19
|
-
debase-ruby_core_source (
|
19
|
+
debase-ruby_core_source (3.2.0)
|
20
20
|
diff-lcs (1.5.0)
|
21
21
|
docile (1.4.0)
|
22
22
|
dogstatsd-ruby (5.5.0)
|
23
23
|
ffi (1.15.5)
|
24
24
|
json (2.6.2)
|
25
|
-
|
26
|
-
libddwaf (1.
|
25
|
+
libdatadog (1.0.1.1.0)
|
26
|
+
libddwaf (1.5.1.0.1)
|
27
27
|
ffi (~> 1.0)
|
28
|
-
libddwaf (1.
|
28
|
+
libddwaf (1.5.1.0.1-x86_64-darwin)
|
29
29
|
ffi (~> 1.0)
|
30
30
|
method_source (1.0.0)
|
31
|
-
msgpack (1.
|
31
|
+
msgpack (1.6.0)
|
32
32
|
parallel (1.22.1)
|
33
|
-
parser (3.1.2.
|
33
|
+
parser (3.1.2.1)
|
34
34
|
ast (~> 2.4.1)
|
35
35
|
pry (0.14.1)
|
36
36
|
coderay (~> 1.1)
|
37
37
|
method_source (~> 1.0)
|
38
38
|
rainbow (3.1.1)
|
39
39
|
rake (10.5.0)
|
40
|
-
regexp_parser (2.
|
40
|
+
regexp_parser (2.6.0)
|
41
41
|
rexml (3.2.5)
|
42
42
|
rspec (3.11.0)
|
43
43
|
rspec-core (~> 3.11.0)
|
@@ -45,24 +45,24 @@ GEM
|
|
45
45
|
rspec-mocks (~> 3.11.0)
|
46
46
|
rspec-core (3.11.0)
|
47
47
|
rspec-support (~> 3.11.0)
|
48
|
-
rspec-expectations (3.11.
|
48
|
+
rspec-expectations (3.11.1)
|
49
49
|
diff-lcs (>= 1.2.0, < 2.0)
|
50
50
|
rspec-support (~> 3.11.0)
|
51
51
|
rspec-mocks (3.11.1)
|
52
52
|
diff-lcs (>= 1.2.0, < 2.0)
|
53
53
|
rspec-support (~> 3.11.0)
|
54
|
-
rspec-support (3.11.
|
55
|
-
rubocop (1.
|
54
|
+
rspec-support (3.11.1)
|
55
|
+
rubocop (1.36.0)
|
56
56
|
json (~> 2.3)
|
57
57
|
parallel (~> 1.10)
|
58
|
-
parser (>= 3.1.
|
58
|
+
parser (>= 3.1.2.1)
|
59
59
|
rainbow (>= 2.2.2, < 4.0)
|
60
60
|
regexp_parser (>= 1.8, < 3.0)
|
61
61
|
rexml (>= 3.2.5, < 4.0)
|
62
|
-
rubocop-ast (>= 1.
|
62
|
+
rubocop-ast (>= 1.20.1, < 2.0)
|
63
63
|
ruby-progressbar (~> 1.7)
|
64
64
|
unicode-display_width (>= 1.4.0, < 3.0)
|
65
|
-
rubocop-ast (1.
|
65
|
+
rubocop-ast (1.21.0)
|
66
66
|
parser (>= 3.1.1.0)
|
67
67
|
ruby-progressbar (1.11.0)
|
68
68
|
simplecov (0.21.2)
|
@@ -71,7 +71,7 @@ GEM
|
|
71
71
|
simplecov_json_formatter (~> 0.1)
|
72
72
|
simplecov-html (0.12.3)
|
73
73
|
simplecov_json_formatter (0.1.4)
|
74
|
-
unicode-display_width (2.
|
74
|
+
unicode-display_width (2.3.0)
|
75
75
|
|
76
76
|
PLATFORMS
|
77
77
|
ruby
|
@@ -30,7 +30,7 @@ Gem::Specification.new do |spec|
|
|
30
30
|
spec.require_paths = ['lib']
|
31
31
|
spec.required_ruby_version = Gem::Requirement.new('>= 2.7.0')
|
32
32
|
|
33
|
-
spec.add_dependency 'ddtrace', '~> 1.
|
33
|
+
spec.add_dependency 'ddtrace', '~> 1.9.0'
|
34
34
|
spec.add_dependency 'dogstatsd-ruby', '~> 5.5.0'
|
35
35
|
|
36
36
|
spec.add_development_dependency 'benchmark-ips'
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require 'ddtrace'
|
4
|
+
|
5
|
+
# https://github.com/DataDog/dd-trace-rb/blob/master/docs/UpgradeGuide.md#between-threads
|
6
|
+
class Thread
|
7
|
+
def self.new_traced
|
8
|
+
trace = Datadog::Tracing.active_trace
|
9
|
+
|
10
|
+
if trace
|
11
|
+
trace_digest = trace.to_digest
|
12
|
+
Thread.new do |*args|
|
13
|
+
# Inherits trace properties from the trace digest
|
14
|
+
Datadog::Tracing.trace(trace.name, continue_from: trace_digest) do |_span, trace|
|
15
|
+
trace.id == trace_digest.trace_id
|
16
|
+
yield(*args)
|
17
|
+
end
|
18
|
+
end
|
19
|
+
else
|
20
|
+
Thread.new do |*args|
|
21
|
+
yield(*args)
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
@@ -6,6 +6,7 @@ require 'instrument_all_the_things/version'
|
|
6
6
|
|
7
7
|
require_relative './instrument_all_the_things/helpers'
|
8
8
|
require_relative './instrument_all_the_things/clients/stat_reporter/datadog'
|
9
|
+
require_relative './instrument_all_the_things/thread'
|
9
10
|
|
10
11
|
module InstrumentAllTheThings
|
11
12
|
class Error < StandardError; end
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: instrument_all_the_things
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.1.0.pre1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Malinconico
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-02-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ddtrace
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.
|
19
|
+
version: 1.9.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 1.
|
26
|
+
version: 1.9.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: dogstatsd-ruby
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -174,42 +174,42 @@ files:
|
|
174
174
|
- lib/instrument_all_the_things/testing/rspec_matchers.rb
|
175
175
|
- lib/instrument_all_the_things/testing/stat_tracker.rb
|
176
176
|
- lib/instrument_all_the_things/testing/trace_tracker.rb
|
177
|
+
- lib/instrument_all_the_things/thread.rb
|
177
178
|
- lib/instrument_all_the_things/version.rb
|
178
179
|
- logo.jpg
|
179
180
|
- vendor/cache/ast-2.4.2.gem
|
180
181
|
- vendor/cache/benchmark-ips-2.10.0.gem
|
181
182
|
- vendor/cache/coderay-1.1.3.gem
|
182
|
-
- vendor/cache/ddtrace-1.
|
183
|
-
- vendor/cache/debase-ruby_core_source-
|
183
|
+
- vendor/cache/ddtrace-1.9.0.gem
|
184
|
+
- vendor/cache/debase-ruby_core_source-3.2.0.gem
|
184
185
|
- vendor/cache/diff-lcs-1.5.0.gem
|
185
186
|
- vendor/cache/docile-1.4.0.gem
|
186
187
|
- vendor/cache/dogstatsd-ruby-5.5.0.gem
|
187
188
|
- vendor/cache/ffi-1.15.5.gem
|
188
189
|
- vendor/cache/json-2.6.2.gem
|
189
|
-
- vendor/cache/
|
190
|
-
- vendor/cache/libddwaf-1.
|
191
|
-
- vendor/cache/libddwaf-1.3.0.2.0.gem
|
190
|
+
- vendor/cache/libdatadog-1.0.1.1.0.gem
|
191
|
+
- vendor/cache/libddwaf-1.5.1.0.1-x86_64-darwin.gem
|
192
192
|
- vendor/cache/method_source-1.0.0.gem
|
193
|
-
- vendor/cache/msgpack-1.
|
193
|
+
- vendor/cache/msgpack-1.6.0.gem
|
194
194
|
- vendor/cache/parallel-1.22.1.gem
|
195
|
-
- vendor/cache/parser-3.1.2.
|
195
|
+
- vendor/cache/parser-3.1.2.1.gem
|
196
196
|
- vendor/cache/pry-0.14.1.gem
|
197
197
|
- vendor/cache/rainbow-3.1.1.gem
|
198
198
|
- vendor/cache/rake-10.5.0.gem
|
199
|
-
- vendor/cache/regexp_parser-2.
|
199
|
+
- vendor/cache/regexp_parser-2.6.0.gem
|
200
200
|
- vendor/cache/rexml-3.2.5.gem
|
201
201
|
- vendor/cache/rspec-3.11.0.gem
|
202
202
|
- vendor/cache/rspec-core-3.11.0.gem
|
203
|
-
- vendor/cache/rspec-expectations-3.11.
|
203
|
+
- vendor/cache/rspec-expectations-3.11.1.gem
|
204
204
|
- vendor/cache/rspec-mocks-3.11.1.gem
|
205
|
-
- vendor/cache/rspec-support-3.11.
|
206
|
-
- vendor/cache/rubocop-1.
|
207
|
-
- vendor/cache/rubocop-ast-1.
|
205
|
+
- vendor/cache/rspec-support-3.11.1.gem
|
206
|
+
- vendor/cache/rubocop-1.36.0.gem
|
207
|
+
- vendor/cache/rubocop-ast-1.21.0.gem
|
208
208
|
- vendor/cache/ruby-progressbar-1.11.0.gem
|
209
209
|
- vendor/cache/simplecov-0.21.2.gem
|
210
210
|
- vendor/cache/simplecov-html-0.12.3.gem
|
211
211
|
- vendor/cache/simplecov_json_formatter-0.1.4.gem
|
212
|
-
- vendor/cache/unicode-display_width-2.
|
212
|
+
- vendor/cache/unicode-display_width-2.3.0.gem
|
213
213
|
homepage: https://github.com/GetTerminus/instrument-all-the-things
|
214
214
|
licenses: []
|
215
215
|
metadata:
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|