instrument_all_the_things 2.0.1 → 2.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 128ce1a0db87a3ae766c72e856519dcfa356c6dcb4b71ac0debbbff0d2026a1b
4
- data.tar.gz: 50845ff64582662567623779a5caa6cc6118c13b4e4cce520656f3c75dcce1a5
3
+ metadata.gz: b6df98cf25be523f87dd3ae0d11fad59e37eab0a5fac224cf75b8664fc73b81c
4
+ data.tar.gz: 1e6965131fbeb81556b87351706b10d0cb132ba8d118229bda0784a23c19cdc9
5
5
  SHA512:
6
- metadata.gz: 02a41d1ceb496c3ed1e2f62c278831fde669388d33214ae39abfff6d7ef52c93831c08610d7aa33456dbede44af846213e2a7deffdce8345685aae755012b525
7
- data.tar.gz: 517a4cd139e4af87dc76cb9daa409c1f097345671d5cb1656bb878fc6a3e81fbfafd58e40d7df85620194172558c8d82a965444905b9ee287d3ebd63239c8247
6
+ metadata.gz: 2cf0804505f78ffd3e396df33c0a842be74a4b4bf87a4a11a1deb48b4a6844c72372ab7fe5eb99ab4bd1a02c28ce4719df81a7f345ff3d9f58f050cd3f8357b2
7
+ data.tar.gz: 10df7e6362a6940ef8ec1e595b31572b91f0235ff2fd93cb99611d70002c0f462e7770cb597ff0f0f7e75ebb02507e40905a7f2b600d204388925a7b1b02469b
@@ -14,7 +14,7 @@ jobs:
14
14
  - 3.0.4
15
15
  - 2.7.6
16
16
  steps:
17
- - uses: actions/checkout@v2
17
+ - uses: actions/checkout@v3
18
18
  - uses: ruby/setup-ruby@v1
19
19
  with:
20
20
  ruby-version: ${{ matrix.ruby }}
@@ -39,7 +39,7 @@ Layout/LineLength:
39
39
  Enabled: true
40
40
  Max: 280
41
41
  IgnoreCopDirectives: true
42
- IgnoredPatterns: ['\A#', '\A\s*sig { .* }\Z']
42
+ AllowedPatterns: ['\A#', '\A\s*sig { .* }\Z']
43
43
  Exclude:
44
44
  - '**/*_pb.rb'
45
45
 
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 2.0.2
2
+
3
+ Fixed `Thread.new_traced` to return a normal thread if there is no active trace
4
+
1
5
  # 1.2.0
2
6
 
3
7
  Remove unneeded kwargs option to support Ruby 3.0
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- instrument_all_the_things (2.0.1)
4
+ instrument_all_the_things (2.0.2)
5
5
  ddtrace (~> 1.2.0)
6
6
  dogstatsd-ruby (~> 5.5.0)
7
7
 
@@ -28,16 +28,16 @@ GEM
28
28
  libddwaf (1.3.0.2.0-x86_64-darwin)
29
29
  ffi (~> 1.0)
30
30
  method_source (1.0.0)
31
- msgpack (1.5.4)
31
+ msgpack (1.6.0)
32
32
  parallel (1.22.1)
33
- parser (3.1.2.0)
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.5.0)
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.0)
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.0)
55
- rubocop (1.31.2)
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.0.0)
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.18.0, < 2.0)
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.19.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.2.0)
74
+ unicode-display_width (2.3.0)
75
75
 
76
76
  PLATFORMS
77
77
  ruby
@@ -6,12 +6,18 @@ require 'ddtrace'
6
6
  class Thread
7
7
  def self.new_traced
8
8
  trace = Datadog::Tracing.active_trace
9
- trace_digest = trace.to_digest
10
9
 
11
- Thread.new do |*args|
12
- # Inherits trace properties from the trace digest
13
- Datadog::Tracing.trace(trace.name, continue_from: trace_digest) do |_span, trace|
14
- trace.id == trace_digest.trace_id
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|
15
21
  yield(*args)
16
22
  end
17
23
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module InstrumentAllTheThings
4
- VERSION = '2.0.1'
4
+ VERSION = '2.0.2'
5
5
  end
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: 2.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Malinconico
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-07-29 00:00:00.000000000 Z
11
+ date: 2022-09-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ddtrace
@@ -191,26 +191,26 @@ files:
191
191
  - vendor/cache/libddwaf-1.3.0.2.0-x86_64-darwin.gem
192
192
  - vendor/cache/libddwaf-1.3.0.2.0.gem
193
193
  - vendor/cache/method_source-1.0.0.gem
194
- - vendor/cache/msgpack-1.5.4.gem
194
+ - vendor/cache/msgpack-1.6.0.gem
195
195
  - vendor/cache/parallel-1.22.1.gem
196
- - vendor/cache/parser-3.1.2.0.gem
196
+ - vendor/cache/parser-3.1.2.1.gem
197
197
  - vendor/cache/pry-0.14.1.gem
198
198
  - vendor/cache/rainbow-3.1.1.gem
199
199
  - vendor/cache/rake-10.5.0.gem
200
- - vendor/cache/regexp_parser-2.5.0.gem
200
+ - vendor/cache/regexp_parser-2.6.0.gem
201
201
  - vendor/cache/rexml-3.2.5.gem
202
202
  - vendor/cache/rspec-3.11.0.gem
203
203
  - vendor/cache/rspec-core-3.11.0.gem
204
- - vendor/cache/rspec-expectations-3.11.0.gem
204
+ - vendor/cache/rspec-expectations-3.11.1.gem
205
205
  - vendor/cache/rspec-mocks-3.11.1.gem
206
- - vendor/cache/rspec-support-3.11.0.gem
207
- - vendor/cache/rubocop-1.31.2.gem
208
- - vendor/cache/rubocop-ast-1.19.1.gem
206
+ - vendor/cache/rspec-support-3.11.1.gem
207
+ - vendor/cache/rubocop-1.36.0.gem
208
+ - vendor/cache/rubocop-ast-1.21.0.gem
209
209
  - vendor/cache/ruby-progressbar-1.11.0.gem
210
210
  - vendor/cache/simplecov-0.21.2.gem
211
211
  - vendor/cache/simplecov-html-0.12.3.gem
212
212
  - vendor/cache/simplecov_json_formatter-0.1.4.gem
213
- - vendor/cache/unicode-display_width-2.2.0.gem
213
+ - vendor/cache/unicode-display_width-2.3.0.gem
214
214
  homepage: https://github.com/GetTerminus/instrument-all-the-things
215
215
  licenses: []
216
216
  metadata:
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file