ddtrace 0.39.0 → 0.40.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +56 -0
- data/.gitlab-ci.yml +1 -0
- data/.simplecov +38 -0
- data/Appraisals +87 -1
- data/CHANGELOG.md +63 -1
- data/Rakefile +500 -465
- data/ddtrace.gemspec +1 -0
- data/docs/DevelopmentGuide.md +16 -0
- data/docs/GettingStarted.md +49 -32
- data/lib/ddtrace.rb +1 -0
- data/lib/ddtrace/configuration.rb +36 -5
- data/lib/ddtrace/configuration/components.rb +4 -7
- data/lib/ddtrace/contrib/action_pack/action_controller/instrumentation.rb +0 -7
- data/lib/ddtrace/contrib/que/configuration/settings.rb +42 -0
- data/lib/ddtrace/contrib/que/ext.rb +30 -0
- data/lib/ddtrace/contrib/que/integration.rb +42 -0
- data/lib/ddtrace/contrib/que/patcher.rb +24 -0
- data/lib/ddtrace/contrib/que/tracer.rb +56 -0
- data/lib/ddtrace/contrib/racecar/events.rb +2 -0
- data/lib/ddtrace/contrib/racecar/events/consume.rb +27 -0
- data/lib/ddtrace/contrib/racecar/ext.rb +1 -0
- data/lib/ddtrace/contrib/rack/middlewares.rb +2 -0
- data/lib/ddtrace/contrib/rails/configuration/settings.rb +5 -0
- data/lib/ddtrace/contrib/rails/ext.rb +1 -0
- data/lib/ddtrace/contrib/rails/log_injection.rb +81 -0
- data/lib/ddtrace/contrib/rails/middlewares.rb +7 -2
- data/lib/ddtrace/contrib/rails/patcher.rb +15 -0
- data/lib/ddtrace/contrib/sinatra/env.rb +5 -4
- data/lib/ddtrace/contrib/sinatra/tracer.rb +21 -42
- data/lib/ddtrace/contrib/sinatra/tracer_middleware.rb +50 -23
- data/lib/ddtrace/version.rb +1 -1
- data/lib/ddtrace/workers/async.rb +2 -2
- data/lib/ddtrace/workers/loop.rb +1 -1
- data/lib/ddtrace/workers/polling.rb +1 -1
- metadata +67 -31
data/lib/ddtrace/version.rb
CHANGED
@@ -42,7 +42,7 @@ module Datadog
|
|
42
42
|
end
|
43
43
|
|
44
44
|
def run_async?
|
45
|
-
|
45
|
+
return false unless instance_variable_defined?(:@run_async)
|
46
46
|
@run_async == true
|
47
47
|
end
|
48
48
|
|
@@ -55,7 +55,7 @@ module Datadog
|
|
55
55
|
end
|
56
56
|
|
57
57
|
def error?
|
58
|
-
|
58
|
+
return false unless instance_variable_defined?(:@error)
|
59
59
|
!@error.nil?
|
60
60
|
end
|
61
61
|
|
data/lib/ddtrace/workers/loop.rb
CHANGED
metadata
CHANGED
@@ -1,22 +1,22 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ddtrace
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.40.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Datadog, Inc.
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-08
|
11
|
+
date: 2020-09-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
+
name: msgpack
|
14
15
|
requirement: !ruby/object:Gem::Requirement
|
15
16
|
requirements:
|
16
17
|
- - ">="
|
17
18
|
- !ruby/object:Gem::Version
|
18
19
|
version: '0'
|
19
|
-
name: msgpack
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -25,12 +25,12 @@ dependencies:
|
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
+
name: dogstatsd-ruby
|
28
29
|
requirement: !ruby/object:Gem::Requirement
|
29
30
|
requirements:
|
30
31
|
- - ">="
|
31
32
|
- !ruby/object:Gem::Version
|
32
33
|
version: 3.3.0
|
33
|
-
name: dogstatsd-ruby
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -39,12 +39,12 @@ dependencies:
|
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 3.3.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
+
name: opentracing
|
42
43
|
requirement: !ruby/object:Gem::Requirement
|
43
44
|
requirements:
|
44
45
|
- - ">="
|
45
46
|
- !ruby/object:Gem::Version
|
46
47
|
version: 0.4.1
|
47
|
-
name: opentracing
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -53,12 +53,12 @@ dependencies:
|
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: 0.4.1
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
+
name: rake
|
56
57
|
requirement: !ruby/object:Gem::Requirement
|
57
58
|
requirements:
|
58
59
|
- - ">="
|
59
60
|
- !ruby/object:Gem::Version
|
60
61
|
version: '10.5'
|
61
|
-
name: rake
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -67,12 +67,12 @@ dependencies:
|
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '10.5'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
+
name: rubocop
|
70
71
|
requirement: !ruby/object:Gem::Requirement
|
71
72
|
requirements:
|
72
73
|
- - '='
|
73
74
|
- !ruby/object:Gem::Version
|
74
75
|
version: 0.49.1
|
75
|
-
name: rubocop
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -81,12 +81,12 @@ dependencies:
|
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: 0.49.1
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
|
+
name: rspec
|
84
85
|
requirement: !ruby/object:Gem::Requirement
|
85
86
|
requirements:
|
86
87
|
- - "~>"
|
87
88
|
- !ruby/object:Gem::Version
|
88
89
|
version: '3.0'
|
89
|
-
name: rspec
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -95,12 +95,12 @@ dependencies:
|
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '3.0'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
|
+
name: rspec-collection_matchers
|
98
99
|
requirement: !ruby/object:Gem::Requirement
|
99
100
|
requirements:
|
100
101
|
- - "~>"
|
101
102
|
- !ruby/object:Gem::Version
|
102
103
|
version: '1.1'
|
103
|
-
name: rspec-collection_matchers
|
104
104
|
type: :development
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -109,12 +109,12 @@ dependencies:
|
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '1.1'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
|
+
name: minitest
|
112
113
|
requirement: !ruby/object:Gem::Requirement
|
113
114
|
requirements:
|
114
115
|
- - '='
|
115
116
|
- !ruby/object:Gem::Version
|
116
117
|
version: 5.10.1
|
117
|
-
name: minitest
|
118
118
|
type: :development
|
119
119
|
prerelease: false
|
120
120
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -123,12 +123,12 @@ dependencies:
|
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: 5.10.1
|
125
125
|
- !ruby/object:Gem::Dependency
|
126
|
+
name: minitest-around
|
126
127
|
requirement: !ruby/object:Gem::Requirement
|
127
128
|
requirements:
|
128
129
|
- - '='
|
129
130
|
- !ruby/object:Gem::Version
|
130
131
|
version: 0.5.0
|
131
|
-
name: minitest-around
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -137,12 +137,12 @@ dependencies:
|
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: 0.5.0
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
|
+
name: minitest-stub_any_instance
|
140
141
|
requirement: !ruby/object:Gem::Requirement
|
141
142
|
requirements:
|
142
143
|
- - '='
|
143
144
|
- !ruby/object:Gem::Version
|
144
145
|
version: 1.0.2
|
145
|
-
name: minitest-stub_any_instance
|
146
146
|
type: :development
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -151,12 +151,12 @@ dependencies:
|
|
151
151
|
- !ruby/object:Gem::Version
|
152
152
|
version: 1.0.2
|
153
153
|
- !ruby/object:Gem::Dependency
|
154
|
+
name: appraisal
|
154
155
|
requirement: !ruby/object:Gem::Requirement
|
155
156
|
requirements:
|
156
157
|
- - "~>"
|
157
158
|
- !ruby/object:Gem::Version
|
158
159
|
version: '2.2'
|
159
|
-
name: appraisal
|
160
160
|
type: :development
|
161
161
|
prerelease: false
|
162
162
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -165,12 +165,12 @@ dependencies:
|
|
165
165
|
- !ruby/object:Gem::Version
|
166
166
|
version: '2.2'
|
167
167
|
- !ruby/object:Gem::Dependency
|
168
|
+
name: yard
|
168
169
|
requirement: !ruby/object:Gem::Requirement
|
169
170
|
requirements:
|
170
171
|
- - "~>"
|
171
172
|
- !ruby/object:Gem::Version
|
172
173
|
version: '0.9'
|
173
|
-
name: yard
|
174
174
|
type: :development
|
175
175
|
prerelease: false
|
176
176
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -179,12 +179,12 @@ dependencies:
|
|
179
179
|
- !ruby/object:Gem::Version
|
180
180
|
version: '0.9'
|
181
181
|
- !ruby/object:Gem::Dependency
|
182
|
+
name: webmock
|
182
183
|
requirement: !ruby/object:Gem::Requirement
|
183
184
|
requirements:
|
184
185
|
- - "~>"
|
185
186
|
- !ruby/object:Gem::Version
|
186
187
|
version: '2.0'
|
187
|
-
name: webmock
|
188
188
|
type: :development
|
189
189
|
prerelease: false
|
190
190
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -193,12 +193,12 @@ dependencies:
|
|
193
193
|
- !ruby/object:Gem::Version
|
194
194
|
version: '2.0'
|
195
195
|
- !ruby/object:Gem::Dependency
|
196
|
+
name: builder
|
196
197
|
requirement: !ruby/object:Gem::Requirement
|
197
198
|
requirements:
|
198
199
|
- - ">="
|
199
200
|
- !ruby/object:Gem::Version
|
200
201
|
version: '0'
|
201
|
-
name: builder
|
202
202
|
type: :development
|
203
203
|
prerelease: false
|
204
204
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -207,26 +207,26 @@ dependencies:
|
|
207
207
|
- !ruby/object:Gem::Version
|
208
208
|
version: '0'
|
209
209
|
- !ruby/object:Gem::Dependency
|
210
|
+
name: sqlite3
|
210
211
|
requirement: !ruby/object:Gem::Requirement
|
211
212
|
requirements:
|
212
213
|
- - "~>"
|
213
214
|
- !ruby/object:Gem::Version
|
214
|
-
version:
|
215
|
-
name: jdbc-sqlite3
|
215
|
+
version: 1.3.6
|
216
216
|
type: :development
|
217
217
|
prerelease: false
|
218
218
|
version_requirements: !ruby/object:Gem::Requirement
|
219
219
|
requirements:
|
220
220
|
- - "~>"
|
221
221
|
- !ruby/object:Gem::Version
|
222
|
-
version:
|
222
|
+
version: 1.3.6
|
223
223
|
- !ruby/object:Gem::Dependency
|
224
|
+
name: climate_control
|
224
225
|
requirement: !ruby/object:Gem::Requirement
|
225
226
|
requirements:
|
226
227
|
- - "~>"
|
227
228
|
- !ruby/object:Gem::Version
|
228
229
|
version: 0.2.0
|
229
|
-
name: climate_control
|
230
230
|
type: :development
|
231
231
|
prerelease: false
|
232
232
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -235,12 +235,12 @@ dependencies:
|
|
235
235
|
- !ruby/object:Gem::Version
|
236
236
|
version: 0.2.0
|
237
237
|
- !ruby/object:Gem::Dependency
|
238
|
+
name: addressable
|
238
239
|
requirement: !ruby/object:Gem::Requirement
|
239
240
|
requirements:
|
240
241
|
- - "~>"
|
241
242
|
- !ruby/object:Gem::Version
|
242
243
|
version: 2.4.0
|
243
|
-
name: addressable
|
244
244
|
type: :development
|
245
245
|
prerelease: false
|
246
246
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -249,12 +249,12 @@ dependencies:
|
|
249
249
|
- !ruby/object:Gem::Version
|
250
250
|
version: 2.4.0
|
251
251
|
- !ruby/object:Gem::Dependency
|
252
|
+
name: benchmark-ips
|
252
253
|
requirement: !ruby/object:Gem::Requirement
|
253
254
|
requirements:
|
254
255
|
- - "~>"
|
255
256
|
- !ruby/object:Gem::Version
|
256
257
|
version: '2.8'
|
257
|
-
name: benchmark-ips
|
258
258
|
type: :development
|
259
259
|
prerelease: false
|
260
260
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -263,12 +263,12 @@ dependencies:
|
|
263
263
|
- !ruby/object:Gem::Version
|
264
264
|
version: '2.8'
|
265
265
|
- !ruby/object:Gem::Dependency
|
266
|
+
name: benchmark-memory
|
266
267
|
requirement: !ruby/object:Gem::Requirement
|
267
268
|
requirements:
|
268
269
|
- - "~>"
|
269
270
|
- !ruby/object:Gem::Version
|
270
271
|
version: '0.1'
|
271
|
-
name: benchmark-memory
|
272
272
|
type: :development
|
273
273
|
prerelease: false
|
274
274
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -277,12 +277,12 @@ dependencies:
|
|
277
277
|
- !ruby/object:Gem::Version
|
278
278
|
version: '0.1'
|
279
279
|
- !ruby/object:Gem::Dependency
|
280
|
+
name: memory_profiler
|
280
281
|
requirement: !ruby/object:Gem::Requirement
|
281
282
|
requirements:
|
282
283
|
- - "~>"
|
283
284
|
- !ruby/object:Gem::Version
|
284
285
|
version: '0.9'
|
285
|
-
name: memory_profiler
|
286
286
|
type: :development
|
287
287
|
prerelease: false
|
288
288
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -291,12 +291,26 @@ dependencies:
|
|
291
291
|
- !ruby/object:Gem::Version
|
292
292
|
version: '0.9'
|
293
293
|
- !ruby/object:Gem::Dependency
|
294
|
+
name: redcarpet
|
294
295
|
requirement: !ruby/object:Gem::Requirement
|
295
296
|
requirements:
|
296
297
|
- - "~>"
|
297
298
|
- !ruby/object:Gem::Version
|
298
|
-
version:
|
299
|
+
version: '3.4'
|
300
|
+
type: :development
|
301
|
+
prerelease: false
|
302
|
+
version_requirements: !ruby/object:Gem::Requirement
|
303
|
+
requirements:
|
304
|
+
- - "~>"
|
305
|
+
- !ruby/object:Gem::Version
|
306
|
+
version: '3.4'
|
307
|
+
- !ruby/object:Gem::Dependency
|
299
308
|
name: pry
|
309
|
+
requirement: !ruby/object:Gem::Requirement
|
310
|
+
requirements:
|
311
|
+
- - "~>"
|
312
|
+
- !ruby/object:Gem::Version
|
313
|
+
version: 0.10.4
|
300
314
|
type: :development
|
301
315
|
prerelease: false
|
302
316
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -305,12 +319,12 @@ dependencies:
|
|
305
319
|
- !ruby/object:Gem::Version
|
306
320
|
version: 0.10.4
|
307
321
|
- !ruby/object:Gem::Dependency
|
322
|
+
name: pry-stack_explorer
|
308
323
|
requirement: !ruby/object:Gem::Requirement
|
309
324
|
requirements:
|
310
325
|
- - "~>"
|
311
326
|
- !ruby/object:Gem::Version
|
312
327
|
version: 0.4.9.2
|
313
|
-
name: pry-stack_explorer
|
314
328
|
type: :development
|
315
329
|
prerelease: false
|
316
330
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -319,12 +333,26 @@ dependencies:
|
|
319
333
|
- !ruby/object:Gem::Version
|
320
334
|
version: 0.4.9.2
|
321
335
|
- !ruby/object:Gem::Dependency
|
336
|
+
name: simplecov
|
322
337
|
requirement: !ruby/object:Gem::Requirement
|
323
338
|
requirements:
|
324
339
|
- - "~>"
|
325
340
|
- !ruby/object:Gem::Version
|
326
|
-
version: '
|
341
|
+
version: '0.17'
|
342
|
+
type: :development
|
343
|
+
prerelease: false
|
344
|
+
version_requirements: !ruby/object:Gem::Requirement
|
345
|
+
requirements:
|
346
|
+
- - "~>"
|
347
|
+
- !ruby/object:Gem::Version
|
348
|
+
version: '0.17'
|
349
|
+
- !ruby/object:Gem::Dependency
|
327
350
|
name: warning
|
351
|
+
requirement: !ruby/object:Gem::Requirement
|
352
|
+
requirements:
|
353
|
+
- - "~>"
|
354
|
+
- !ruby/object:Gem::Version
|
355
|
+
version: '1'
|
328
356
|
type: :development
|
329
357
|
prerelease: false
|
330
358
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -359,6 +387,7 @@ files:
|
|
359
387
|
- ".gitlab-ci.yml"
|
360
388
|
- ".rspec"
|
361
389
|
- ".rubocop.yml"
|
390
|
+
- ".simplecov"
|
362
391
|
- ".yardopts"
|
363
392
|
- Appraisals
|
364
393
|
- CHANGELOG.md
|
@@ -574,10 +603,16 @@ files:
|
|
574
603
|
- lib/ddtrace/contrib/presto/instrumentation.rb
|
575
604
|
- lib/ddtrace/contrib/presto/integration.rb
|
576
605
|
- lib/ddtrace/contrib/presto/patcher.rb
|
606
|
+
- lib/ddtrace/contrib/que/configuration/settings.rb
|
607
|
+
- lib/ddtrace/contrib/que/ext.rb
|
608
|
+
- lib/ddtrace/contrib/que/integration.rb
|
609
|
+
- lib/ddtrace/contrib/que/patcher.rb
|
610
|
+
- lib/ddtrace/contrib/que/tracer.rb
|
577
611
|
- lib/ddtrace/contrib/racecar/configuration/settings.rb
|
578
612
|
- lib/ddtrace/contrib/racecar/event.rb
|
579
613
|
- lib/ddtrace/contrib/racecar/events.rb
|
580
614
|
- lib/ddtrace/contrib/racecar/events/batch.rb
|
615
|
+
- lib/ddtrace/contrib/racecar/events/consume.rb
|
581
616
|
- lib/ddtrace/contrib/racecar/events/message.rb
|
582
617
|
- lib/ddtrace/contrib/racecar/ext.rb
|
583
618
|
- lib/ddtrace/contrib/racecar/integration.rb
|
@@ -592,6 +627,7 @@ files:
|
|
592
627
|
- lib/ddtrace/contrib/rails/ext.rb
|
593
628
|
- lib/ddtrace/contrib/rails/framework.rb
|
594
629
|
- lib/ddtrace/contrib/rails/integration.rb
|
630
|
+
- lib/ddtrace/contrib/rails/log_injection.rb
|
595
631
|
- lib/ddtrace/contrib/rails/middlewares.rb
|
596
632
|
- lib/ddtrace/contrib/rails/patcher.rb
|
597
633
|
- lib/ddtrace/contrib/rails/railtie.rb
|
@@ -783,7 +819,7 @@ licenses:
|
|
783
819
|
- BSD-3-Clause
|
784
820
|
metadata:
|
785
821
|
allowed_push_host: https://rubygems.org
|
786
|
-
post_install_message:
|
822
|
+
post_install_message:
|
787
823
|
rdoc_options: []
|
788
824
|
require_paths:
|
789
825
|
- lib
|
@@ -798,8 +834,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
798
834
|
- !ruby/object:Gem::Version
|
799
835
|
version: 2.0.0
|
800
836
|
requirements: []
|
801
|
-
rubygems_version: 3.0.
|
802
|
-
signing_key:
|
837
|
+
rubygems_version: 3.0.3
|
838
|
+
signing_key:
|
803
839
|
specification_version: 4
|
804
840
|
summary: Datadog tracing code for your Ruby applications
|
805
841
|
test_files: []
|