ddtrace 0.17.3 → 0.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.env +2 -2
- data/Appraisals +4 -0
- data/CHANGELOG.md +21 -2
- data/Rakefile +31 -29
- data/docker-compose.yml +7 -7
- data/docs/GettingStarted.md +26 -2
- data/lib/ddtrace.rb +4 -0
- data/lib/ddtrace/augmentation.rb +13 -0
- data/lib/ddtrace/augmentation/method_wrapper.rb +20 -0
- data/lib/ddtrace/augmentation/method_wrapping.rb +38 -0
- data/lib/ddtrace/augmentation/shim.rb +102 -0
- data/lib/ddtrace/contrib/active_record/events/sql.rb +6 -2
- data/lib/ddtrace/contrib/active_record/patcher.rb +2 -0
- data/lib/ddtrace/contrib/active_record/patches/abstract_adapter.rb +72 -0
- data/lib/ddtrace/contrib/active_record/utils.rb +8 -18
- data/lib/ddtrace/contrib/aws/instrumentation.rb +15 -11
- data/lib/ddtrace/contrib/aws/patcher.rb +0 -11
- data/lib/ddtrace/contrib/configurable.rb +13 -9
- data/lib/ddtrace/contrib/rack/request_queue.rb +5 -1
- data/lib/ddtrace/contrib/shoryuken/configuration/settings.rb +14 -0
- data/lib/ddtrace/contrib/shoryuken/ext.rb +18 -0
- data/lib/ddtrace/contrib/shoryuken/integration.rb +35 -0
- data/lib/ddtrace/contrib/shoryuken/patcher.rb +30 -0
- data/lib/ddtrace/contrib/shoryuken/tracer.rb +37 -0
- data/lib/ddtrace/contrib/sidekiq/client_tracer.rb +35 -0
- data/lib/ddtrace/contrib/sidekiq/configuration/settings.rb +1 -0
- data/lib/ddtrace/contrib/sidekiq/ext.rb +2 -0
- data/lib/ddtrace/contrib/sidekiq/patcher.rb +9 -2
- data/lib/ddtrace/contrib/sidekiq/server_tracer.rb +50 -0
- data/lib/ddtrace/contrib/sidekiq/tracing.rb +38 -0
- data/lib/ddtrace/sync_writer.rb +2 -1
- data/lib/ddtrace/transport.rb +6 -3
- data/lib/ddtrace/utils/database.rb +7 -3
- data/lib/ddtrace/version.rb +2 -2
- data/lib/ddtrace/writer.rb +1 -4
- metadata +15 -3
- data/lib/ddtrace/contrib/sidekiq/tracer.rb +0 -72
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6c4e552c5952c4dfa4cd7889db389bf87c06e400
|
4
|
+
data.tar.gz: 635dc26f996a8cf9c424dacf85a3e48ae6ca7517
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 16d01f87e058e4d0d77936c39d9115075dfdcff3cfdc1a2ba74c668c5b27e6d8376d2b5327b18ae0f2d2fe6587254d5328d409b8e7ea0b82430b63d3e7a36cb7
|
7
|
+
data.tar.gz: e5897d2d6756d99465d8bcbbd2169997d6e5f30f791eece446c8b56c112f3f22ef3c5f5d7b38621fde1bd1cdc2d65c3746f147dfba78f8497cdaf803423e616f
|
data/.env
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
+
DD_AGENT_HOST=localhost
|
2
|
+
DD_TRACE_AGENT_PORT=8126
|
1
3
|
TEST_DDAGENT_API_KEY=invalid_key_but_this_is_fine
|
2
|
-
TEST_DDAGENT_HOST=localhost
|
3
|
-
TEST_DDAGENT_PORT=8126
|
4
4
|
TEST_ELASTICSEARCH_HOST=127.0.0.1
|
5
5
|
TEST_ELASTICSEARCH_NATIVE_PORT=9300
|
6
6
|
TEST_ELASTICSEARCH_REST_PORT=9200
|
data/Appraisals
CHANGED
@@ -274,6 +274,7 @@ elsif Gem::Version.new('2.1.0') <= Gem::Version.new(RUBY_VERSION) \
|
|
274
274
|
gem 'rest-client'
|
275
275
|
gem 'resque', '< 2.0'
|
276
276
|
gem 'sequel', '~> 4.0', '< 4.37'
|
277
|
+
gem 'shoryuken'
|
277
278
|
gem 'sidekiq', '~> 3.5.4'
|
278
279
|
gem 'sinatra', '1.4.5'
|
279
280
|
gem 'sqlite3'
|
@@ -413,6 +414,7 @@ elsif Gem::Version.new('2.2.0') <= Gem::Version.new(RUBY_VERSION) \
|
|
413
414
|
gem 'rest-client'
|
414
415
|
gem 'resque', '< 2.0'
|
415
416
|
gem 'sequel'
|
417
|
+
gem 'shoryuken'
|
416
418
|
gem 'sidekiq'
|
417
419
|
gem 'sinatra'
|
418
420
|
gem 'sqlite3'
|
@@ -551,6 +553,7 @@ elsif Gem::Version.new('2.3.0') <= Gem::Version.new(RUBY_VERSION) \
|
|
551
553
|
gem 'rest-client'
|
552
554
|
gem 'resque', '< 2.0'
|
553
555
|
gem 'sequel'
|
556
|
+
gem 'shoryuken'
|
554
557
|
gem 'sidekiq'
|
555
558
|
gem 'sinatra'
|
556
559
|
gem 'sqlite3'
|
@@ -583,6 +586,7 @@ elsif Gem::Version.new('2.4.0') <= Gem::Version.new(RUBY_VERSION)
|
|
583
586
|
gem 'rest-client'
|
584
587
|
gem 'resque', '< 2.0'
|
585
588
|
gem 'sequel'
|
589
|
+
gem 'shoryuken'
|
586
590
|
gem 'sidekiq'
|
587
591
|
gem 'sinatra'
|
588
592
|
gem 'sqlite3'
|
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,24 @@
|
|
4
4
|
|
5
5
|
## [Unreleased (beta)]
|
6
6
|
|
7
|
+
## [0.18.0] - 2018-12-18
|
8
|
+
|
9
|
+
Release notes: https://github.com/DataDog/dd-trace-rb/releases/tag/v0.18.0
|
10
|
+
|
11
|
+
Git diff: https://github.com/DataDog/dd-trace-rb/compare/v0.17.3...v0.18.0
|
12
|
+
|
13
|
+
### Added
|
14
|
+
|
15
|
+
- Shoryuken integration (#538, #626, #655) (@steveh, @JustSnow)
|
16
|
+
- Sidekiq client integration (#602, #650) (@dirk)
|
17
|
+
- Datadog::Shim for adding instrumentation (#648)
|
18
|
+
|
19
|
+
### Changed
|
20
|
+
|
21
|
+
- Use `DD_AGENT_HOST` and `DD_TRACE_AGENT_PORT` env vars if available (#631)
|
22
|
+
- Inject `:connection` into `sql.active_record` event (#640, #649, #656) (@guizmaii)
|
23
|
+
- Return default configuration instead of `nil` on miss (#651)
|
24
|
+
|
7
25
|
## [0.17.3] - 2018-11-29
|
8
26
|
|
9
27
|
Release notes: https://github.com/DataDog/dd-trace-rb/releases/tag/v0.17.3
|
@@ -576,8 +594,9 @@ Release notes: https://github.com/DataDog/dd-trace-rb/releases/tag/v0.3.1
|
|
576
594
|
|
577
595
|
Git diff: https://github.com/DataDog/dd-trace-rb/compare/v0.3.0...v0.3.1
|
578
596
|
|
579
|
-
[Unreleased (stable)]: https://github.com/DataDog/dd-trace-rb/compare/v0.
|
580
|
-
[Unreleased (beta)]: https://github.com/DataDog/dd-trace-rb/compare/v0.
|
597
|
+
[Unreleased (stable)]: https://github.com/DataDog/dd-trace-rb/compare/v0.18.0...master
|
598
|
+
[Unreleased (beta)]: https://github.com/DataDog/dd-trace-rb/compare/v0.18.0...0.19-dev
|
599
|
+
[0.18.0]: https://github.com/DataDog/dd-trace-rb/compare/v0.17.3...v0.18.0
|
581
600
|
[0.17.3]: https://github.com/DataDog/dd-trace-rb/compare/v0.17.2...v0.17.3
|
582
601
|
[0.17.2]: https://github.com/DataDog/dd-trace-rb/compare/v0.17.1...v0.17.2
|
583
602
|
[0.17.1]: https://github.com/DataDog/dd-trace-rb/compare/v0.17.0...v0.17.1
|
data/Rakefile
CHANGED
@@ -52,11 +52,11 @@ namespace :spec do
|
|
52
52
|
[
|
53
53
|
:active_model_serializers,
|
54
54
|
:active_record,
|
55
|
-
:delayed_job,
|
56
55
|
:active_support,
|
57
56
|
:aws,
|
58
57
|
:concurrent_ruby,
|
59
58
|
:dalli,
|
59
|
+
:delayed_job,
|
60
60
|
:elasticsearch,
|
61
61
|
:excon,
|
62
62
|
:faraday,
|
@@ -71,11 +71,13 @@ namespace :spec do
|
|
71
71
|
:rake,
|
72
72
|
:redis,
|
73
73
|
:resque,
|
74
|
+
:rest_client,
|
74
75
|
:sequel,
|
75
76
|
:sidekiq,
|
76
77
|
:sinatra,
|
77
78
|
:sucker_punch,
|
78
|
-
:rest_client
|
79
|
+
:rest_client,
|
80
|
+
:shoryuken
|
79
81
|
].each do |contrib|
|
80
82
|
RSpec::Core::RakeTask.new(contrib) do |t|
|
81
83
|
t.pattern = "spec/ddtrace/contrib/#{contrib}/**/*_spec.rb"
|
@@ -86,7 +88,7 @@ end
|
|
86
88
|
namespace :test do
|
87
89
|
task all: [:main,
|
88
90
|
:rails, :railsredis, :railssidekiq, :railsactivejob,
|
89
|
-
:sidekiq, :
|
91
|
+
:sidekiq, :monkey]
|
90
92
|
|
91
93
|
Rake::TestTask.new(:main) do |t|
|
92
94
|
t.libs << %w[test lib]
|
@@ -129,11 +131,8 @@ namespace :test do
|
|
129
131
|
end
|
130
132
|
|
131
133
|
[
|
132
|
-
:aws,
|
133
134
|
:grape,
|
134
|
-
:rack,
|
135
135
|
:sidekiq,
|
136
|
-
:sinatra,
|
137
136
|
:sucker_punch
|
138
137
|
].each do |contrib|
|
139
138
|
Rake::TestTask.new(contrib) do |t|
|
@@ -189,15 +188,13 @@ task :ci do
|
|
189
188
|
|
190
189
|
if RUBY_PLATFORM != 'java'
|
191
190
|
# Contrib minitests
|
192
|
-
sh 'bundle exec appraisal contrib-old rake test:aws'
|
193
191
|
sh 'bundle exec appraisal contrib-old rake test:monkey'
|
194
|
-
sh 'bundle exec appraisal contrib-old rake test:rack'
|
195
|
-
sh 'bundle exec appraisal contrib-old rake test:sinatra'
|
196
192
|
sh 'bundle exec appraisal contrib-old rake test:sucker_punch'
|
197
193
|
# Contrib specs
|
198
194
|
sh 'bundle exec appraisal contrib-old rake spec:active_model_serializers'
|
199
195
|
sh 'bundle exec appraisal contrib-old rake spec:active_record'
|
200
196
|
sh 'bundle exec appraisal contrib-old rake spec:active_support'
|
197
|
+
sh 'bundle exec appraisal contrib-old rake spec:aws'
|
201
198
|
sh 'bundle exec appraisal contrib-old rake spec:concurrent_ruby'
|
202
199
|
sh 'bundle exec appraisal contrib-old rake spec:dalli'
|
203
200
|
sh 'bundle exec appraisal contrib-old rake spec:delayed_job'
|
@@ -207,11 +204,13 @@ task :ci do
|
|
207
204
|
sh 'bundle exec appraisal contrib-old rake spec:http'
|
208
205
|
sh 'bundle exec appraisal contrib-old rake spec:mongodb'
|
209
206
|
sh 'bundle exec appraisal contrib-old rake spec:mysql2'
|
207
|
+
sh 'bundle exec appraisal contrib-old rake spec:rack'
|
210
208
|
sh 'bundle exec appraisal contrib-old rake spec:rake'
|
211
209
|
sh 'bundle exec appraisal contrib-old rake spec:redis'
|
212
210
|
sh 'bundle exec appraisal contrib-old rake spec:resque'
|
213
211
|
sh 'bundle exec appraisal contrib-old rake spec:rest_client'
|
214
212
|
sh 'bundle exec appraisal contrib-old rake spec:sequel'
|
213
|
+
sh 'bundle exec appraisal contrib-old rake spec:sinatra'
|
215
214
|
# Rails minitests
|
216
215
|
sh 'bundle exec appraisal rails30-postgres rake test:rails'
|
217
216
|
sh 'bundle exec appraisal rails30-postgres rake test:railsdisableenv'
|
@@ -233,15 +232,14 @@ task :ci do
|
|
233
232
|
|
234
233
|
if RUBY_PLATFORM != 'java'
|
235
234
|
# Contrib minitests
|
236
|
-
sh 'bundle exec appraisal contrib-old rake test:aws'
|
237
235
|
sh 'bundle exec appraisal contrib-old rake test:monkey'
|
238
|
-
sh 'bundle exec appraisal contrib-old rake test:
|
239
|
-
sh 'bundle exec appraisal contrib-old rake test:sinatra'
|
236
|
+
sh 'bundle exec appraisal contrib-old rake test:sidekiq'
|
240
237
|
sh 'bundle exec appraisal contrib-old rake test:sucker_punch'
|
241
238
|
# Contrib specs
|
242
239
|
sh 'bundle exec appraisal contrib-old rake spec:active_model_serializers'
|
243
240
|
sh 'bundle exec appraisal contrib-old rake spec:active_record'
|
244
241
|
sh 'bundle exec appraisal contrib-old rake spec:active_support'
|
242
|
+
sh 'bundle exec appraisal contrib-old rake spec:aws'
|
245
243
|
sh 'bundle exec appraisal contrib-old rake spec:concurrent_ruby'
|
246
244
|
sh 'bundle exec appraisal contrib-old rake spec:dalli'
|
247
245
|
sh 'bundle exec appraisal contrib-old rake spec:delayed_job'
|
@@ -251,13 +249,14 @@ task :ci do
|
|
251
249
|
sh 'bundle exec appraisal contrib-old rake spec:http'
|
252
250
|
sh 'bundle exec appraisal contrib-old rake spec:mongodb'
|
253
251
|
sh 'bundle exec appraisal contrib-old rake spec:mysql2'
|
252
|
+
sh 'bundle exec appraisal contrib-old rake spec:rack'
|
254
253
|
sh 'bundle exec appraisal contrib-old rake spec:rake'
|
255
254
|
sh 'bundle exec appraisal contrib-old rake spec:redis'
|
256
255
|
sh 'bundle exec appraisal contrib-old rake spec:resque'
|
257
256
|
sh 'bundle exec appraisal contrib-old rake spec:rest_client'
|
258
257
|
sh 'bundle exec appraisal contrib-old rake spec:sequel'
|
258
|
+
sh 'bundle exec appraisal contrib-old rake spec:sinatra'
|
259
259
|
# Rails minitests
|
260
|
-
sh 'bundle exec appraisal contrib-old rake test:sidekiq'
|
261
260
|
sh 'bundle exec appraisal rails30-postgres rake test:rails'
|
262
261
|
sh 'bundle exec appraisal rails30-postgres rake test:railsdisableenv'
|
263
262
|
sh 'bundle exec appraisal rails32-mysql2 rake test:rails'
|
@@ -281,15 +280,14 @@ task :ci do
|
|
281
280
|
|
282
281
|
if RUBY_PLATFORM != 'java'
|
283
282
|
# Contrib minitests
|
284
|
-
sh 'bundle exec appraisal contrib-old rake test:aws'
|
285
283
|
sh 'bundle exec appraisal contrib-old rake test:monkey'
|
286
|
-
sh 'bundle exec appraisal contrib-old rake test:
|
287
|
-
sh 'bundle exec appraisal contrib-old rake test:sinatra'
|
284
|
+
sh 'bundle exec appraisal contrib-old rake test:sidekiq'
|
288
285
|
sh 'bundle exec appraisal contrib-old rake test:sucker_punch'
|
289
286
|
# Contrib specs
|
290
287
|
sh 'bundle exec appraisal contrib-old rake spec:active_model_serializers'
|
291
288
|
sh 'bundle exec appraisal contrib-old rake spec:active_record'
|
292
289
|
sh 'bundle exec appraisal contrib-old rake spec:active_support'
|
290
|
+
sh 'bundle exec appraisal contrib-old rake spec:aws'
|
293
291
|
sh 'bundle exec appraisal contrib-old rake spec:concurrent_ruby'
|
294
292
|
sh 'bundle exec appraisal contrib-old rake spec:dalli'
|
295
293
|
sh 'bundle exec appraisal contrib-old rake spec:delayed_job'
|
@@ -299,13 +297,14 @@ task :ci do
|
|
299
297
|
sh 'bundle exec appraisal contrib-old rake spec:http'
|
300
298
|
sh 'bundle exec appraisal contrib-old rake spec:mongodb'
|
301
299
|
sh 'bundle exec appraisal contrib-old rake spec:mysql2'
|
300
|
+
sh 'bundle exec appraisal contrib-old rake spec:rack'
|
302
301
|
sh 'bundle exec appraisal contrib-old rake spec:rake'
|
303
302
|
sh 'bundle exec appraisal contrib-old rake spec:redis'
|
304
303
|
sh 'bundle exec appraisal contrib-old rake spec:resque'
|
305
304
|
sh 'bundle exec appraisal contrib-old rake spec:rest_client'
|
306
305
|
sh 'bundle exec appraisal contrib-old rake spec:sequel'
|
306
|
+
sh 'bundle exec appraisal contrib-old rake spec:sinatra'
|
307
307
|
# Rails minitests
|
308
|
-
sh 'bundle exec appraisal contrib-old rake test:sidekiq'
|
309
308
|
sh 'bundle exec appraisal rails30-postgres rake test:rails'
|
310
309
|
sh 'bundle exec appraisal rails30-postgres rake test:railsdisableenv'
|
311
310
|
sh 'bundle exec appraisal rails32-mysql2 rake test:rails'
|
@@ -335,15 +334,14 @@ task :ci do
|
|
335
334
|
|
336
335
|
if RUBY_PLATFORM != 'java'
|
337
336
|
# Contrib minitests
|
338
|
-
sh 'bundle exec appraisal contrib rake test:aws'
|
339
337
|
sh 'bundle exec appraisal contrib rake test:grape'
|
340
|
-
sh 'bundle exec appraisal contrib rake test:
|
341
|
-
sh 'bundle exec appraisal contrib rake test:sinatra'
|
338
|
+
sh 'bundle exec appraisal contrib rake test:sidekiq'
|
342
339
|
sh 'bundle exec appraisal contrib rake test:sucker_punch'
|
343
340
|
# Contrib specs
|
344
341
|
sh 'bundle exec appraisal contrib rake spec:active_model_serializers'
|
345
342
|
sh 'bundle exec appraisal contrib rake spec:active_record'
|
346
343
|
sh 'bundle exec appraisal contrib rake spec:active_support'
|
344
|
+
sh 'bundle exec appraisal contrib rake spec:aws'
|
347
345
|
sh 'bundle exec appraisal contrib rake spec:concurrent_ruby'
|
348
346
|
sh 'bundle exec appraisal contrib rake spec:dalli'
|
349
347
|
sh 'bundle exec appraisal contrib rake spec:delayed_job'
|
@@ -356,13 +354,15 @@ task :ci do
|
|
356
354
|
sh 'bundle exec appraisal contrib rake spec:mongodb'
|
357
355
|
sh 'bundle exec appraisal contrib rake spec:mysql2'
|
358
356
|
sh 'bundle exec appraisal contrib rake spec:racecar'
|
357
|
+
sh 'bundle exec appraisal contrib rake spec:rack'
|
359
358
|
sh 'bundle exec appraisal contrib rake spec:rake'
|
360
359
|
sh 'bundle exec appraisal contrib rake spec:redis'
|
361
360
|
sh 'bundle exec appraisal contrib rake spec:resque'
|
362
361
|
sh 'bundle exec appraisal contrib rake spec:rest_client'
|
363
362
|
sh 'bundle exec appraisal contrib rake spec:sequel'
|
363
|
+
sh 'bundle exec appraisal contrib rake spec:shoryuken'
|
364
|
+
sh 'bundle exec appraisal contrib rake spec:sinatra'
|
364
365
|
# Rails minitests
|
365
|
-
sh 'bundle exec appraisal contrib rake test:sidekiq'
|
366
366
|
sh 'bundle exec appraisal rails30-postgres rake test:rails'
|
367
367
|
sh 'bundle exec appraisal rails30-postgres rake test:railsdisableenv'
|
368
368
|
sh 'bundle exec appraisal rails32-mysql2 rake test:rails'
|
@@ -400,15 +400,14 @@ task :ci do
|
|
400
400
|
|
401
401
|
if RUBY_PLATFORM != 'java'
|
402
402
|
# Contrib minitests
|
403
|
-
sh 'bundle exec appraisal contrib rake test:aws'
|
404
403
|
sh 'bundle exec appraisal contrib rake test:grape'
|
405
|
-
sh 'bundle exec appraisal contrib rake test:
|
406
|
-
sh 'bundle exec appraisal contrib rake test:sinatra'
|
404
|
+
sh 'bundle exec appraisal contrib rake test:sidekiq'
|
407
405
|
sh 'bundle exec appraisal contrib rake test:sucker_punch'
|
408
406
|
# Contrib specs
|
409
407
|
sh 'bundle exec appraisal contrib rake spec:active_model_serializers'
|
410
408
|
sh 'bundle exec appraisal contrib rake spec:active_record'
|
411
409
|
sh 'bundle exec appraisal contrib rake spec:active_support'
|
410
|
+
sh 'bundle exec appraisal contrib rake spec:aws'
|
412
411
|
sh 'bundle exec appraisal contrib rake spec:concurrent_ruby'
|
413
412
|
sh 'bundle exec appraisal contrib rake spec:dalli'
|
414
413
|
sh 'bundle exec appraisal contrib rake spec:delayed_job'
|
@@ -421,13 +420,15 @@ task :ci do
|
|
421
420
|
sh 'bundle exec appraisal contrib rake spec:mongodb'
|
422
421
|
sh 'bundle exec appraisal contrib rake spec:mysql2'
|
423
422
|
sh 'bundle exec appraisal contrib rake spec:racecar'
|
423
|
+
sh 'bundle exec appraisal contrib rake spec:rack'
|
424
424
|
sh 'bundle exec appraisal contrib rake spec:rake'
|
425
425
|
sh 'bundle exec appraisal contrib rake spec:redis'
|
426
426
|
sh 'bundle exec appraisal contrib rake spec:resque'
|
427
427
|
sh 'bundle exec appraisal contrib rake spec:rest_client'
|
428
428
|
sh 'bundle exec appraisal contrib rake spec:sequel'
|
429
|
+
sh 'bundle exec appraisal contrib rake spec:shoryuken'
|
430
|
+
sh 'bundle exec appraisal contrib rake spec:sinatra'
|
429
431
|
# Rails minitests
|
430
|
-
sh 'bundle exec appraisal contrib rake test:sidekiq'
|
431
432
|
sh 'bundle exec appraisal rails30-postgres rake test:rails'
|
432
433
|
sh 'bundle exec appraisal rails30-postgres rake test:railsdisableenv'
|
433
434
|
sh 'bundle exec appraisal rails32-mysql2 rake test:rails'
|
@@ -464,15 +465,14 @@ task :ci do
|
|
464
465
|
|
465
466
|
if RUBY_PLATFORM != 'java'
|
466
467
|
# Contrib minitests
|
467
|
-
sh 'bundle exec appraisal contrib rake test:aws'
|
468
468
|
sh 'bundle exec appraisal contrib rake test:grape'
|
469
|
-
sh 'bundle exec appraisal contrib rake test:
|
470
|
-
sh 'bundle exec appraisal contrib rake test:sinatra'
|
469
|
+
sh 'bundle exec appraisal contrib rake test:sidekiq'
|
471
470
|
sh 'bundle exec appraisal contrib rake test:sucker_punch'
|
472
471
|
# Contrib specs
|
473
472
|
sh 'bundle exec appraisal contrib rake spec:active_model_serializers'
|
474
473
|
sh 'bundle exec appraisal contrib rake spec:active_record'
|
475
474
|
sh 'bundle exec appraisal contrib rake spec:active_support'
|
475
|
+
sh 'bundle exec appraisal contrib rake spec:aws'
|
476
476
|
sh 'bundle exec appraisal contrib rake spec:concurrent_ruby'
|
477
477
|
sh 'bundle exec appraisal contrib rake spec:dalli'
|
478
478
|
sh 'bundle exec appraisal contrib rake spec:delayed_job'
|
@@ -485,13 +485,15 @@ task :ci do
|
|
485
485
|
sh 'bundle exec appraisal contrib rake spec:mongodb'
|
486
486
|
sh 'bundle exec appraisal contrib rake spec:mysql2'
|
487
487
|
sh 'bundle exec appraisal contrib rake spec:racecar'
|
488
|
+
sh 'bundle exec appraisal contrib rake spec:rack'
|
488
489
|
sh 'bundle exec appraisal contrib rake spec:rake'
|
489
490
|
sh 'bundle exec appraisal contrib rake spec:redis'
|
490
491
|
sh 'bundle exec appraisal contrib rake spec:resque'
|
491
492
|
sh 'bundle exec appraisal contrib rake spec:rest_client'
|
492
493
|
sh 'bundle exec appraisal contrib rake spec:sequel'
|
494
|
+
sh 'bundle exec appraisal contrib rake spec:shoryuken'
|
495
|
+
sh 'bundle exec appraisal contrib rake spec:sinatra'
|
493
496
|
# Rails minitests
|
494
|
-
sh 'bundle exec appraisal contrib rake test:sidekiq'
|
495
497
|
sh 'bundle exec rake benchmark'
|
496
498
|
end
|
497
499
|
end
|
data/docker-compose.yml
CHANGED
@@ -16,8 +16,8 @@ services:
|
|
16
16
|
env_file: ./.env
|
17
17
|
environment:
|
18
18
|
- BUNDLE_GEMFILE=/app/Gemfile
|
19
|
+
- DD_AGENT_HOST=ddagent
|
19
20
|
- TEST_DATADOG_INTEGRATION=1
|
20
|
-
- TEST_DDAGENT_HOST=ddagent
|
21
21
|
- TEST_ELASTICSEARCH_HOST=elasticsearch
|
22
22
|
- TEST_MEMCACHED_HOST=memcached
|
23
23
|
- TEST_MONGODB_HOST=mongodb
|
@@ -46,8 +46,8 @@ services:
|
|
46
46
|
env_file: ./.env
|
47
47
|
environment:
|
48
48
|
- BUNDLE_GEMFILE=/app/Gemfile
|
49
|
+
- DD_AGENT_HOST=ddagent
|
49
50
|
- TEST_DATADOG_INTEGRATION=1
|
50
|
-
- TEST_DDAGENT_HOST=ddagent
|
51
51
|
- TEST_ELASTICSEARCH_HOST=elasticsearch
|
52
52
|
- TEST_MEMCACHED_HOST=memcached
|
53
53
|
- TEST_MONGODB_HOST=mongodb
|
@@ -76,8 +76,8 @@ services:
|
|
76
76
|
env_file: ./.env
|
77
77
|
environment:
|
78
78
|
- BUNDLE_GEMFILE=/app/Gemfile
|
79
|
+
- DD_AGENT_HOST=ddagent
|
79
80
|
- TEST_DATADOG_INTEGRATION=1
|
80
|
-
- TEST_DDAGENT_HOST=ddagent
|
81
81
|
- TEST_ELASTICSEARCH_HOST=elasticsearch
|
82
82
|
- TEST_MEMCACHED_HOST=memcached
|
83
83
|
- TEST_MONGODB_HOST=mongodb
|
@@ -106,8 +106,8 @@ services:
|
|
106
106
|
env_file: ./.env
|
107
107
|
environment:
|
108
108
|
- BUNDLE_GEMFILE=/app/Gemfile
|
109
|
+
- DD_AGENT_HOST=ddagent
|
109
110
|
- TEST_DATADOG_INTEGRATION=1
|
110
|
-
- TEST_DDAGENT_HOST=ddagent
|
111
111
|
- TEST_ELASTICSEARCH_HOST=elasticsearch
|
112
112
|
- TEST_MEMCACHED_HOST=memcached
|
113
113
|
- TEST_MONGODB_HOST=mongodb
|
@@ -136,8 +136,8 @@ services:
|
|
136
136
|
env_file: ./.env
|
137
137
|
environment:
|
138
138
|
- BUNDLE_GEMFILE=/app/Gemfile
|
139
|
+
- DD_AGENT_HOST=ddagent
|
139
140
|
- TEST_DATADOG_INTEGRATION=1
|
140
|
-
- TEST_DDAGENT_HOST=ddagent
|
141
141
|
- TEST_ELASTICSEARCH_HOST=elasticsearch
|
142
142
|
- TEST_MEMCACHED_HOST=memcached
|
143
143
|
- TEST_MONGODB_HOST=mongodb
|
@@ -166,8 +166,8 @@ services:
|
|
166
166
|
env_file: ./.env
|
167
167
|
environment:
|
168
168
|
- BUNDLE_GEMFILE=/app/Gemfile
|
169
|
+
- DD_AGENT_HOST=ddagent
|
169
170
|
- TEST_DATADOG_INTEGRATION=1
|
170
|
-
- TEST_DDAGENT_HOST=ddagent
|
171
171
|
- TEST_ELASTICSEARCH_HOST=elasticsearch
|
172
172
|
- TEST_MEMCACHED_HOST=memcached
|
173
173
|
- TEST_MONGODB_HOST=mongodb
|
@@ -189,7 +189,7 @@ services:
|
|
189
189
|
expose:
|
190
190
|
- "8126"
|
191
191
|
ports:
|
192
|
-
- "${
|
192
|
+
- "${DD_TRACE_AGENT_PORT}:8126"
|
193
193
|
elasticsearch:
|
194
194
|
# Note: ES 5.0 dies with error:
|
195
195
|
# max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
|
data/docs/GettingStarted.md
CHANGED
@@ -46,6 +46,7 @@ For descriptions of terminology used in APM, take a look at the [official docume
|
|
46
46
|
- [Redis](#redis)
|
47
47
|
- [Rest Client](#rest-client)
|
48
48
|
- [Resque](#resque)
|
49
|
+
- [Shoryuken](#shoryuken)
|
49
50
|
- [Sequel](#sequel)
|
50
51
|
- [Sidekiq](#sidekiq)
|
51
52
|
- [Sinatra](#sinatra)
|
@@ -330,6 +331,7 @@ For a list of available integrations, and their configuration options, please re
|
|
330
331
|
| Resque | `resque` | `>= 1.0, < 2.0` | *[Link](#resque)* | *[Link](https://github.com/resque/resque)* |
|
331
332
|
| Rest Client | `rest-client` | `>= 1.8` | *[Link](#rest-client)* | *[Link](https://github.com/rest-client/rest-client)* |
|
332
333
|
| Sequel | `sequel` | `>= 3.41` | *[Link](#sequel)* | *[Link](https://github.com/jeremyevans/sequel)* |
|
334
|
+
| Shoryuken | `shoryuken` | `>= 4.0.2` | *[Link](#shoryuken)* | *[Link](https://github.com/phstc/shoryuken)*
|
333
335
|
| Sidekiq | `sidekiq` | `>= 3.5.4` | *[Link](#sidekiq)* | *[Link](https://github.com/mperham/sidekiq)* |
|
334
336
|
| Sinatra | `sinatra` | `>= 1.4.5` | *[Link](#sinatra)* | *[Link](https://github.com/sinatra/sinatra)* |
|
335
337
|
| Sucker Punch | `sucker_punch` | `>= 2.0` | *[Link](#sucker-punch)* | *[Link](https://github.com/brandonhilkert/sucker_punch)* |
|
@@ -1178,9 +1180,30 @@ Datadog.configure(sqlite_database, service_name: 'my-sqlite-db')
|
|
1178
1180
|
Datadog.configure(postgres_database, service_name: 'my-postgres-db')
|
1179
1181
|
```
|
1180
1182
|
|
1183
|
+
### Shoryuken
|
1184
|
+
|
1185
|
+
The Shoryuken integration is a server-side middleware which will trace job executions.
|
1186
|
+
|
1187
|
+
You can enable it through `Datadog.configure`:
|
1188
|
+
|
1189
|
+
```ruby
|
1190
|
+
require 'ddtrace'
|
1191
|
+
|
1192
|
+
Datadog.configure do |c|
|
1193
|
+
c.use :shoryuken, options
|
1194
|
+
end
|
1195
|
+
```
|
1196
|
+
|
1197
|
+
Where `options` is an optional `Hash` that accepts the following parameters:
|
1198
|
+
|
1199
|
+
| Key | Description | Default |
|
1200
|
+
| --- | ----------- | ------- |
|
1201
|
+
| `service_name` | Service name used for `shoryuken` instrumentation | `'shoryuken'` |
|
1202
|
+
| `tracer` | `Datadog::Tracer` used to perform instrumentation. Usually you don't need to set this. | `Datadog.tracer` |
|
1203
|
+
|
1181
1204
|
### Sidekiq
|
1182
1205
|
|
1183
|
-
The Sidekiq integration is a server-side middleware which will trace job executions.
|
1206
|
+
The Sidekiq integration is a client-side & server-side middleware which will trace job queuing and executions respectively.
|
1184
1207
|
|
1185
1208
|
You can enable it through `Datadog.configure`:
|
1186
1209
|
|
@@ -1196,7 +1219,8 @@ Where `options` is an optional `Hash` that accepts the following parameters:
|
|
1196
1219
|
|
1197
1220
|
| Key | Description | Default |
|
1198
1221
|
| --- | ----------- | ------- |
|
1199
|
-
| `
|
1222
|
+
| `client_service_name` | Service name used for client-side `sidekiq` instrumentation | `'sidekiq-client'` |
|
1223
|
+
| `service_name` | Service name used for server-side `sidekiq` instrumentation | `'sidekiq'` |
|
1200
1224
|
| `tracer` | `Datadog::Tracer` used to perform instrumentation. Usually you don't need to set this. | `Datadog.tracer` |
|
1201
1225
|
|
1202
1226
|
### Sinatra
|