ddtrace 0.14.1 → 0.14.2.disableprotocolversion4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.circleci/config.yml +52 -1
- data/Appraisals +238 -556
- data/CHANGELOG.md +11 -0
- data/Rakefile +21 -3
- data/docs/GettingStarted.md +10 -0
- data/lib/ddtrace/sampler.rb +24 -6
- data/lib/ddtrace/version.rb +2 -2
- data/lib/ddtrace/writer.rb +3 -3
- data/tools/appraisal_helper.rb +36 -0
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 02a427d7e8055a2a9315d811ce0a7bf88073e4a2
|
4
|
+
data.tar.gz: 41e96cdfcad1fdd3ad5fc54f3d7f1d7dd297a3d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 57e16b76584aa0a7a7d831b5a82840b3e9228451ce09ef3726a6b80c8a9b276e9a8e3c61d1b4a00d0cece893ddab4c7147a094c659916fc16941b804a72202a5
|
7
|
+
data.tar.gz: cc67284cb5cd1f62e728d84390c0dd5f6d352840a048622b2208d5ef9523631b85e050e8ec6e3f3a958e7705753ee0b249c5427db7c5b09731298274d4cf4cf5
|
data/.circleci/config.yml
CHANGED
@@ -401,7 +401,6 @@ jobs:
|
|
401
401
|
- run:
|
402
402
|
name: Run Benchmark without ddtracer
|
403
403
|
command: rm -f lib/ddtrace.rb && bundle exec appraisal rails5-postgres-sidekiq ruby benchmarks/sidekiq_test.rb 2>&1 1> /dev/null | tee benchmark_results.csv
|
404
|
-
|
405
404
|
checkout-2.4:
|
406
405
|
<<: *job_defaults
|
407
406
|
docker:
|
@@ -458,6 +457,52 @@ jobs:
|
|
458
457
|
keys:
|
459
458
|
- '{{ .Environment.CIRCLE_CACHE_VERSION }}-bundle-2.4-{{ checksum ".circleci/bundle_checksum" }}'
|
460
459
|
- *step_run_all_tests
|
460
|
+
|
461
|
+
build-2.5:
|
462
|
+
<<: *job_defaults
|
463
|
+
working_directory: ~/app
|
464
|
+
docker:
|
465
|
+
- &container-2_5
|
466
|
+
image: circleci/ruby:2.5.1
|
467
|
+
steps:
|
468
|
+
- checkout
|
469
|
+
- restore_cache: &cache-2_5
|
470
|
+
key: 'b1-{{ .Environment.CIRCLE_CACHE_VERSION }}-cache-2.5-{{ checksum Appraisals }}-{{ checksum ddtrace.gemspec }}-{{ checksum Gemfile }}'
|
471
|
+
paths:
|
472
|
+
- vendor/bundle
|
473
|
+
- gemfiles/
|
474
|
+
- Gemfile.lock
|
475
|
+
- run: &bundler_init
|
476
|
+
name: Initializing Bundler vendor path
|
477
|
+
command: bundle --path vendor/bundle
|
478
|
+
- *step_bundle_install
|
479
|
+
- *step_appraisal_install
|
480
|
+
- save_cache: *cache-2_5
|
481
|
+
- *step_rubocop
|
482
|
+
- persist_to_workspace:
|
483
|
+
<<: *cache-2_5
|
484
|
+
root: '.'
|
485
|
+
test-2.5:
|
486
|
+
<<: *job_defaults
|
487
|
+
working_directory: ~/app
|
488
|
+
docker:
|
489
|
+
- <<: *container-2_5
|
490
|
+
environment:
|
491
|
+
- TEST_DATADOG_INTEGRATION: 1
|
492
|
+
- *container_postgres
|
493
|
+
- *container_mysql
|
494
|
+
- *container_elasticsearch
|
495
|
+
- *container_redis
|
496
|
+
- *container_mongo
|
497
|
+
- *container_memcached
|
498
|
+
- *container_agent
|
499
|
+
steps:
|
500
|
+
- checkout
|
501
|
+
- attach_workspace:
|
502
|
+
at: ~/app
|
503
|
+
- run: *bundler_init
|
504
|
+
- *step_run_all_tests
|
505
|
+
|
461
506
|
deploy-release:
|
462
507
|
<<: *job_defaults
|
463
508
|
docker:
|
@@ -539,6 +584,11 @@ workflows:
|
|
539
584
|
<<: *filters_all_branches_and_tags
|
540
585
|
requires:
|
541
586
|
- build-2.4
|
587
|
+
- build-2.5: *filters_all_branches_and_tags
|
588
|
+
- test-2.5:
|
589
|
+
<<: *filters_all_branches_and_tags
|
590
|
+
requires:
|
591
|
+
- build-2.5
|
542
592
|
- deploy-release:
|
543
593
|
<<: *filters_only_release_tags
|
544
594
|
requires:
|
@@ -548,3 +598,4 @@ workflows:
|
|
548
598
|
- test-2.2
|
549
599
|
- test-2.3
|
550
600
|
- test-2.4
|
601
|
+
- test-2.5
|
data/Appraisals
CHANGED
@@ -1,583 +1,265 @@
|
|
1
|
+
require File.expand_path('tools/appraisal_helper', Dir.pwd)
|
2
|
+
|
1
3
|
if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('1.9.3')
|
2
4
|
raise NotImplementedError, 'Ruby versions < 1.9.3 are not supported!'
|
3
|
-
|
4
|
-
&& Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.0.0')
|
5
|
-
if RUBY_PLATFORM != 'java'
|
6
|
-
appraise 'rails30-postgres' do
|
7
|
-
gem 'test-unit'
|
8
|
-
gem 'rails', '3.0.20'
|
9
|
-
gem 'pg', '0.15.1', platform: :ruby
|
10
|
-
gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
|
11
|
-
gem 'rack-cache', '1.7.1'
|
12
|
-
gem 'rake', '< 12.3'
|
13
|
-
end
|
14
|
-
|
15
|
-
appraise 'rails30-postgres-sidekiq' do
|
16
|
-
gem 'test-unit'
|
17
|
-
gem 'rails', '3.0.20'
|
18
|
-
gem 'pg', '0.15.1', platform: :ruby
|
19
|
-
gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
|
20
|
-
gem 'sidekiq', '4.0.0'
|
21
|
-
gem 'rack-cache', '1.7.1'
|
22
|
-
gem 'rake', '< 12.3'
|
23
|
-
end
|
24
|
-
|
25
|
-
appraise 'rails32-mysql2' do
|
26
|
-
gem 'test-unit'
|
27
|
-
gem 'rails', '3.2.22.5'
|
28
|
-
gem 'mysql2', '0.3.21', platform: :ruby
|
29
|
-
gem 'activerecord-mysql-adapter', platform: :ruby
|
30
|
-
gem 'activerecord-jdbcmysql-adapter', platform: :jruby
|
31
|
-
gem 'rack-cache', '1.7.1'
|
32
|
-
gem 'rake', '< 12.3'
|
33
|
-
end
|
34
|
-
|
35
|
-
appraise 'rails32-postgres' do
|
36
|
-
gem 'test-unit'
|
37
|
-
gem 'rails', '3.2.22.5'
|
38
|
-
gem 'pg', '0.15.1', platform: :ruby
|
39
|
-
gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
|
40
|
-
gem 'rack-cache', '1.7.1'
|
41
|
-
gem 'rake', '< 12.3'
|
42
|
-
end
|
43
|
-
|
44
|
-
appraise 'rails32-postgres-redis' do
|
45
|
-
gem 'test-unit'
|
46
|
-
gem 'rails', '3.2.22.5'
|
47
|
-
gem 'pg', '0.15.1', platform: :ruby
|
48
|
-
gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
|
49
|
-
gem 'redis-rails'
|
50
|
-
gem 'redis', '< 4.0'
|
51
|
-
gem 'rack-cache', '1.7.1'
|
52
|
-
gem 'rake', '< 12.3'
|
53
|
-
end
|
54
|
-
|
55
|
-
appraise 'rails32-postgres-sidekiq' do
|
56
|
-
gem 'test-unit'
|
57
|
-
gem 'rails', '3.2.22.5'
|
58
|
-
gem 'pg', '0.15.1', platform: :ruby
|
59
|
-
gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
|
60
|
-
gem 'sidekiq', '4.0.0'
|
61
|
-
gem 'rack-cache', '1.7.1'
|
62
|
-
gem 'rake', '< 12.3'
|
63
|
-
end
|
64
|
-
|
65
|
-
appraise 'contrib-old' do
|
66
|
-
gem 'active_model_serializers', '~> 0.9.0'
|
67
|
-
gem 'activerecord', '3.2.22.5'
|
68
|
-
gem 'activerecord-mysql-adapter', platform: :ruby
|
69
|
-
gem 'aws-sdk', '~> 2.0'
|
70
|
-
gem 'dalli'
|
71
|
-
gem 'delayed_job'
|
72
|
-
gem 'delayed_job_active_record'
|
73
|
-
gem 'elasticsearch-transport'
|
74
|
-
gem 'excon'
|
75
|
-
gem 'hiredis'
|
76
|
-
gem 'mongo', '< 2.5'
|
77
|
-
gem 'mysql2', '0.3.21', platform: :ruby
|
78
|
-
gem 'rack', '1.4.7'
|
79
|
-
gem 'rack-cache', '1.7.1'
|
80
|
-
gem 'rack-test', '0.7.0'
|
81
|
-
gem 'rake', '< 12.3'
|
82
|
-
gem 'redis', '< 4.0'
|
83
|
-
gem 'rest-client', '< 2.0'
|
84
|
-
gem 'resque', '< 2.0'
|
85
|
-
gem 'sequel', '~> 4.0', '< 4.37'
|
86
|
-
gem 'sidekiq', '4.0.0'
|
87
|
-
gem 'sinatra', '1.4.5'
|
88
|
-
gem 'sqlite3'
|
89
|
-
gem 'sucker_punch'
|
90
|
-
end
|
91
|
-
end
|
92
|
-
elsif Gem::Version.new('2.0.0') <= Gem::Version.new(RUBY_VERSION) \
|
93
|
-
&& Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.1.0')
|
94
|
-
if RUBY_PLATFORM != 'java'
|
95
|
-
appraise 'rails30-postgres' do
|
96
|
-
gem 'test-unit'
|
97
|
-
gem 'rails', '3.0.20'
|
98
|
-
gem 'pg', '0.15.1', platform: :ruby
|
99
|
-
gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
|
100
|
-
gem 'rack-cache', '1.7.1'
|
101
|
-
end
|
102
|
-
|
103
|
-
appraise 'rails30-postgres-sidekiq' do
|
104
|
-
gem 'test-unit'
|
105
|
-
gem 'rails', '3.0.20'
|
106
|
-
gem 'pg', '0.15.1', platform: :ruby
|
107
|
-
gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
|
108
|
-
gem 'sidekiq', '4.0.0'
|
109
|
-
gem 'rack-cache', '1.7.1'
|
110
|
-
end
|
111
|
-
|
112
|
-
appraise 'rails32-mysql2' do
|
113
|
-
gem 'test-unit'
|
114
|
-
gem 'rails', '3.2.22.5'
|
115
|
-
gem 'mysql2', '0.3.21', platform: :ruby
|
116
|
-
gem 'activerecord-mysql-adapter', platform: :ruby
|
117
|
-
gem 'activerecord-jdbcmysql-adapter', platform: :jruby
|
118
|
-
gem 'rack-cache', '1.7.1'
|
119
|
-
end
|
120
|
-
|
121
|
-
appraise 'rails32-postgres' do
|
122
|
-
gem 'test-unit'
|
123
|
-
gem 'rails', '3.2.22.5'
|
124
|
-
gem 'pg', '0.15.1', platform: :ruby
|
125
|
-
gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
|
126
|
-
gem 'rack-cache', '1.7.1'
|
127
|
-
end
|
128
|
-
|
129
|
-
appraise 'rails32-postgres-redis' do
|
130
|
-
gem 'test-unit'
|
131
|
-
gem 'rails', '3.2.22.5'
|
132
|
-
gem 'pg', '0.15.1', platform: :ruby
|
133
|
-
gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
|
134
|
-
gem 'redis-rails'
|
135
|
-
gem 'redis', '< 4.0'
|
136
|
-
gem 'rack-cache', '1.7.1'
|
137
|
-
end
|
138
|
-
|
139
|
-
appraise 'rails32-postgres-sidekiq' do
|
140
|
-
gem 'test-unit'
|
141
|
-
gem 'rails', '3.2.22.5'
|
142
|
-
gem 'pg', '0.15.1', platform: :ruby
|
143
|
-
gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
|
144
|
-
gem 'sidekiq', '4.0.0'
|
145
|
-
gem 'rack-cache', '1.7.1'
|
146
|
-
end
|
147
|
-
|
148
|
-
appraise 'contrib-old' do
|
149
|
-
gem 'active_model_serializers', '~> 0.9.0'
|
150
|
-
gem 'activerecord', '3.2.22.5'
|
151
|
-
gem 'activerecord-mysql-adapter', platform: :ruby
|
152
|
-
gem 'aws-sdk', '~> 2.0'
|
153
|
-
gem 'dalli'
|
154
|
-
gem 'delayed_job'
|
155
|
-
gem 'delayed_job_active_record'
|
156
|
-
gem 'elasticsearch-transport'
|
157
|
-
gem 'excon'
|
158
|
-
gem 'hiredis'
|
159
|
-
gem 'mongo', '< 2.5'
|
160
|
-
gem 'mysql2', '0.3.21', platform: :ruby
|
161
|
-
gem 'rack', '1.4.7'
|
162
|
-
gem 'rack-cache', '1.7.1'
|
163
|
-
gem 'rack-test', '0.7.0'
|
164
|
-
gem 'rake', '< 12.3'
|
165
|
-
gem 'redis', '< 4.0'
|
166
|
-
gem 'rest-client'
|
167
|
-
gem 'resque', '< 2.0'
|
168
|
-
gem 'sequel', '~> 4.0', '< 4.37'
|
169
|
-
gem 'sidekiq', '4.0.0'
|
170
|
-
gem 'sinatra', '1.4.5'
|
171
|
-
gem 'sqlite3'
|
172
|
-
gem 'sucker_punch'
|
173
|
-
end
|
174
|
-
end
|
175
|
-
elsif Gem::Version.new('2.1.0') <= Gem::Version.new(RUBY_VERSION) \
|
176
|
-
&& Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.2.0')
|
177
|
-
if RUBY_PLATFORM != 'java'
|
178
|
-
appraise 'rails30-postgres' do
|
179
|
-
gem 'test-unit'
|
180
|
-
gem 'rails', '3.0.20'
|
181
|
-
gem 'pg', '0.15.1', platform: :ruby
|
182
|
-
gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
|
183
|
-
gem 'rack-cache', '1.7.1'
|
184
|
-
end
|
185
|
-
|
186
|
-
appraise 'rails30-postgres-sidekiq' do
|
187
|
-
gem 'test-unit'
|
188
|
-
gem 'rails', '3.0.20'
|
189
|
-
gem 'pg', '0.15.1', platform: :ruby
|
190
|
-
gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
|
191
|
-
gem 'sidekiq', '4.0.0'
|
192
|
-
gem 'rack-cache', '1.7.1'
|
193
|
-
end
|
194
|
-
|
195
|
-
appraise 'rails32-mysql2' do
|
196
|
-
gem 'test-unit'
|
197
|
-
gem 'rails', '3.2.22.5'
|
198
|
-
gem 'mysql2', '0.3.21', platform: :ruby
|
199
|
-
gem 'activerecord-mysql-adapter', platform: :ruby
|
200
|
-
gem 'activerecord-jdbcmysql-adapter', platform: :jruby
|
201
|
-
gem 'rack-cache', '1.7.1'
|
202
|
-
end
|
203
|
-
|
204
|
-
appraise 'rails32-postgres' do
|
205
|
-
gem 'test-unit'
|
206
|
-
gem 'rails', '3.2.22.5'
|
207
|
-
gem 'pg', '0.15.1', platform: :ruby
|
208
|
-
gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
|
209
|
-
gem 'rack-cache', '1.7.1'
|
210
|
-
end
|
211
|
-
|
212
|
-
appraise 'rails32-postgres-redis' do
|
213
|
-
gem 'test-unit'
|
214
|
-
gem 'rails', '3.2.22.5'
|
215
|
-
gem 'pg', '0.15.1', platform: :ruby
|
216
|
-
gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
|
217
|
-
gem 'redis-rails'
|
218
|
-
gem 'redis', '< 4.0'
|
219
|
-
gem 'rack-cache', '1.7.1'
|
220
|
-
end
|
221
|
-
|
222
|
-
appraise 'rails32-postgres-sidekiq' do
|
223
|
-
gem 'test-unit'
|
224
|
-
gem 'rails', '3.2.22.5'
|
225
|
-
gem 'pg', '0.15.1', platform: :ruby
|
226
|
-
gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
|
227
|
-
gem 'sidekiq', '4.0.0'
|
228
|
-
gem 'rack-cache', '1.7.1'
|
229
|
-
end
|
230
|
-
|
231
|
-
appraise 'rails4-mysql2' do
|
232
|
-
gem 'rails', '4.2.7.1'
|
233
|
-
gem 'mysql2', '< 0.5', platform: :ruby
|
234
|
-
gem 'activerecord-jdbcmysql-adapter', platform: :jruby
|
235
|
-
end
|
236
|
-
|
237
|
-
appraise 'rails4-postgres' do
|
238
|
-
gem 'rails', '4.2.7.1'
|
239
|
-
gem 'pg', '< 1.0', platform: :ruby
|
240
|
-
gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
|
241
|
-
end
|
242
|
-
|
243
|
-
appraise 'rails4-postgres-redis' do
|
244
|
-
gem 'rails', '4.2.7.1'
|
245
|
-
gem 'pg', '< 1.0', platform: :ruby
|
246
|
-
gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
|
247
|
-
gem 'redis-rails'
|
248
|
-
gem 'redis', '< 4.0'
|
249
|
-
end
|
250
|
-
|
251
|
-
appraise 'contrib-old' do
|
252
|
-
gem 'active_model_serializers', '~> 0.9.0'
|
253
|
-
gem 'activerecord', '3.2.22.5'
|
254
|
-
gem 'activerecord-mysql-adapter', platform: :ruby
|
255
|
-
gem 'aws-sdk', '~> 2.0'
|
256
|
-
gem 'dalli'
|
257
|
-
gem 'delayed_job'
|
258
|
-
gem 'delayed_job_active_record'
|
259
|
-
gem 'elasticsearch-transport'
|
260
|
-
gem 'excon'
|
261
|
-
gem 'hiredis'
|
262
|
-
gem 'mongo', '< 2.5'
|
263
|
-
gem 'mysql2', '0.3.21', platform: :ruby
|
264
|
-
gem 'rack', '1.4.7'
|
265
|
-
gem 'rack-cache', '1.7.1'
|
266
|
-
gem 'rack-test', '0.7.0'
|
267
|
-
gem 'rake', '< 12.3'
|
268
|
-
gem 'redis', '< 4.0'
|
269
|
-
gem 'rest-client'
|
270
|
-
gem 'resque', '< 2.0'
|
271
|
-
gem 'sequel', '~> 4.0', '< 4.37'
|
272
|
-
gem 'sidekiq', '4.0.0'
|
273
|
-
gem 'sinatra', '1.4.5'
|
274
|
-
gem 'sqlite3'
|
275
|
-
gem 'sucker_punch'
|
276
|
-
end
|
277
|
-
end
|
278
|
-
elsif Gem::Version.new('2.2.0') <= Gem::Version.new(RUBY_VERSION) \
|
279
|
-
&& Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.3.0')
|
280
|
-
if RUBY_PLATFORM != 'java'
|
281
|
-
appraise 'rails30-postgres' do
|
282
|
-
gem 'test-unit'
|
283
|
-
gem 'rails', '3.0.20'
|
284
|
-
gem 'pg', '0.15.1', platform: :ruby
|
285
|
-
gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
|
286
|
-
gem 'rack-cache', '1.7.1'
|
287
|
-
end
|
288
|
-
|
289
|
-
appraise 'rails30-postgres-sidekiq' do
|
290
|
-
gem 'test-unit'
|
291
|
-
gem 'rails', '3.0.20'
|
292
|
-
gem 'pg', '0.15.1', platform: :ruby
|
293
|
-
gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
|
294
|
-
gem 'sidekiq', '4.0.0'
|
295
|
-
gem 'rack-cache', '1.7.1'
|
296
|
-
end
|
297
|
-
|
298
|
-
appraise 'rails32-mysql2' do
|
299
|
-
gem 'test-unit'
|
300
|
-
gem 'rails', '3.2.22.5'
|
301
|
-
gem 'mysql2', '0.3.21', platform: :ruby
|
302
|
-
gem 'activerecord-mysql-adapter', platform: :ruby
|
303
|
-
gem 'activerecord-jdbcmysql-adapter', platform: :jruby
|
304
|
-
gem 'rack-cache', '1.7.1'
|
305
|
-
end
|
306
|
-
|
307
|
-
appraise 'rails32-postgres' do
|
308
|
-
gem 'test-unit'
|
309
|
-
gem 'rails', '3.2.22.5'
|
310
|
-
gem 'pg', '0.15.1', platform: :ruby
|
311
|
-
gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
|
312
|
-
gem 'rack-cache', '1.7.1'
|
313
|
-
end
|
314
|
-
|
315
|
-
appraise 'rails32-postgres-redis' do
|
316
|
-
gem 'test-unit'
|
317
|
-
gem 'rails', '3.2.22.5'
|
318
|
-
gem 'pg', '0.15.1', platform: :ruby
|
319
|
-
gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
|
320
|
-
gem 'redis-rails'
|
321
|
-
gem 'redis', '< 4.0'
|
322
|
-
gem 'rack-cache', '1.7.1'
|
323
|
-
end
|
5
|
+
end
|
324
6
|
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
end
|
7
|
+
common_appraisal('rails30-postgres') do
|
8
|
+
gem 'test-unit'
|
9
|
+
gem 'rails', '3.0.20'
|
10
|
+
gem 'pg', '0.15.1', platform: :ruby
|
11
|
+
gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
|
12
|
+
gem 'rack-cache', '1.7.1'
|
13
|
+
end
|
333
14
|
|
334
|
-
|
335
|
-
|
336
|
-
|
337
|
-
|
338
|
-
|
15
|
+
common_appraisal 'rails30-postgres-sidekiq' do
|
16
|
+
gem 'test-unit'
|
17
|
+
gem 'rails', '3.0.20'
|
18
|
+
gem 'pg', '0.15.1', platform: :ruby
|
19
|
+
gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
|
20
|
+
gem 'sidekiq', '4.0.0'
|
21
|
+
gem 'rack-cache', '1.7.1'
|
22
|
+
end
|
339
23
|
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
24
|
+
common_appraisal('contrib-old') do
|
25
|
+
gem 'active_model_serializers', '~> 0.9.0'
|
26
|
+
gem 'activerecord', '3.2.22.5'
|
27
|
+
gem 'activerecord-mysql-adapter', platform: :ruby
|
28
|
+
gem 'aws-sdk', '~> 2.0'
|
29
|
+
gem 'dalli'
|
30
|
+
gem 'delayed_job'
|
31
|
+
gem 'delayed_job_active_record'
|
32
|
+
gem 'elasticsearch-transport'
|
33
|
+
gem 'excon'
|
34
|
+
gem 'hiredis'
|
35
|
+
gem 'mongo', '< 2.5'
|
36
|
+
gem 'mysql2', '0.3.21', platform: :ruby
|
37
|
+
gem 'rack', '1.4.7'
|
38
|
+
gem 'rack-cache', '1.7.1'
|
39
|
+
gem 'rack-test', '0.7.0'
|
40
|
+
gem 'rake', '< 12.3'
|
41
|
+
gem 'redis', '< 4.0'
|
42
|
+
gem 'rest-client', '< 2.0'
|
43
|
+
gem 'resque', '< 2.0'
|
44
|
+
gem 'sequel', '~> 4.0', '< 4.37'
|
45
|
+
gem 'sidekiq', '4.0.0'
|
46
|
+
gem 'sinatra', '1.4.5'
|
47
|
+
gem 'sqlite3'
|
48
|
+
gem 'sucker_punch'
|
49
|
+
end
|
345
50
|
|
346
|
-
|
347
|
-
|
348
|
-
|
349
|
-
|
350
|
-
|
351
|
-
|
352
|
-
|
51
|
+
common_appraisal('contrib') do
|
52
|
+
gem 'active_model_serializers', '>= 0.10.0'
|
53
|
+
gem 'activerecord', '< 5.1.5'
|
54
|
+
gem 'aws-sdk'
|
55
|
+
gem 'dalli'
|
56
|
+
gem 'delayed_job'
|
57
|
+
gem 'delayed_job_active_record'
|
58
|
+
gem 'elasticsearch-transport'
|
59
|
+
gem 'excon'
|
60
|
+
gem 'grape'
|
61
|
+
gem 'graphql'
|
62
|
+
gem 'grpc'
|
63
|
+
gem 'hiredis'
|
64
|
+
gem 'mongo', '< 2.5'
|
65
|
+
gem 'mysql2', '< 0.5', platform: :ruby
|
66
|
+
gem 'racecar', '>= 0.3.5'
|
67
|
+
gem 'rack'
|
68
|
+
gem 'rack-test'
|
69
|
+
gem 'rake', '>= 12.3'
|
70
|
+
gem 'redis', '< 4.0'
|
71
|
+
gem 'rest-client'
|
72
|
+
gem 'resque', '< 2.0'
|
73
|
+
gem 'sequel'
|
74
|
+
gem 'sidekiq'
|
75
|
+
gem 'sinatra'
|
76
|
+
gem 'sqlite3'
|
77
|
+
gem 'sucker_punch'
|
78
|
+
end
|
353
79
|
|
354
|
-
|
355
|
-
|
356
|
-
|
357
|
-
|
358
|
-
|
359
|
-
|
360
|
-
|
80
|
+
common_appraisal 'rails32-mysql2' do
|
81
|
+
gem 'test-unit'
|
82
|
+
gem 'rails', '3.2.22.5'
|
83
|
+
gem 'mysql2', '0.3.21', platform: :ruby
|
84
|
+
gem 'activerecord-mysql-adapter', platform: :ruby
|
85
|
+
gem 'activerecord-jdbcmysql-adapter', platform: :jruby
|
86
|
+
gem 'rack-cache', '1.7.1'
|
87
|
+
end
|
361
88
|
|
362
|
-
|
363
|
-
|
364
|
-
|
365
|
-
|
89
|
+
common_appraisal 'rails32-postgres' do
|
90
|
+
gem 'test-unit'
|
91
|
+
gem 'rails', '3.2.22.5'
|
92
|
+
gem 'pg', '0.15.1', platform: :ruby
|
93
|
+
gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
|
94
|
+
gem 'rack-cache', '1.7.1'
|
95
|
+
end
|
366
96
|
|
367
|
-
|
368
|
-
|
369
|
-
|
370
|
-
|
97
|
+
common_appraisal 'rails32-postgres-redis' do
|
98
|
+
gem 'test-unit'
|
99
|
+
gem 'rails', '3.2.22.5'
|
100
|
+
gem 'pg', '0.15.1', platform: :ruby
|
101
|
+
gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
|
102
|
+
gem 'redis-rails'
|
103
|
+
gem 'redis', '< 4.0'
|
104
|
+
gem 'rack-cache', '1.7.1'
|
105
|
+
end
|
371
106
|
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
|
107
|
+
common_appraisal 'rails32-postgres-sidekiq' do
|
108
|
+
gem 'test-unit'
|
109
|
+
gem 'rails', '3.2.22.5'
|
110
|
+
gem 'pg', '0.15.1', platform: :ruby
|
111
|
+
gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
|
112
|
+
gem 'sidekiq', '4.0.0'
|
113
|
+
gem 'rack-cache', '1.7.1'
|
114
|
+
end
|
378
115
|
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
|
383
|
-
|
384
|
-
end
|
116
|
+
common_appraisal 'rails4-mysql2' do |version|
|
117
|
+
gem 'rails', version.fetch(:rails, '4.2.7.1')
|
118
|
+
gem 'mysql2', '< 0.5', platform: :ruby
|
119
|
+
gem 'activerecord-jdbcmysql-adapter', platform: :jruby
|
120
|
+
end
|
385
121
|
|
386
|
-
|
387
|
-
|
388
|
-
|
389
|
-
|
390
|
-
|
391
|
-
gem 'delayed_job'
|
392
|
-
gem 'delayed_job_active_record'
|
393
|
-
gem 'elasticsearch-transport'
|
394
|
-
gem 'excon'
|
395
|
-
gem 'grape'
|
396
|
-
gem 'graphql'
|
397
|
-
gem 'grpc'
|
398
|
-
gem 'hiredis'
|
399
|
-
gem 'mongo', '< 2.5'
|
400
|
-
gem 'mysql2', '< 0.5', platform: :ruby
|
401
|
-
gem 'racecar', '>= 0.3.5'
|
402
|
-
gem 'rack'
|
403
|
-
gem 'rack-test'
|
404
|
-
gem 'rake', '>= 12.3'
|
405
|
-
gem 'redis', '< 4.0'
|
406
|
-
gem 'rest-client'
|
407
|
-
gem 'resque', '< 2.0'
|
408
|
-
gem 'sequel'
|
409
|
-
gem 'sidekiq'
|
410
|
-
gem 'sinatra'
|
411
|
-
gem 'sqlite3'
|
412
|
-
gem 'sucker_punch'
|
413
|
-
end
|
414
|
-
end
|
415
|
-
elsif Gem::Version.new('2.3.0') <= Gem::Version.new(RUBY_VERSION) \
|
416
|
-
&& Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.4.0')
|
417
|
-
if RUBY_PLATFORM != 'java'
|
418
|
-
appraise 'rails30-postgres' do
|
419
|
-
gem 'test-unit'
|
420
|
-
gem 'rails', '3.0.20'
|
421
|
-
gem 'pg', '0.15.1', platform: :ruby
|
422
|
-
gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
|
423
|
-
gem 'rack-cache', '1.7.1'
|
424
|
-
end
|
122
|
+
common_appraisal 'rails4-postgres' do |version|
|
123
|
+
gem 'rails', version.fetch(:rails, '4.2.7.1')
|
124
|
+
gem 'pg', '< 1.0', platform: :ruby
|
125
|
+
gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
|
126
|
+
end
|
425
127
|
|
426
|
-
|
427
|
-
|
428
|
-
|
429
|
-
|
430
|
-
|
431
|
-
|
432
|
-
|
433
|
-
end
|
128
|
+
common_appraisal 'rails4-postgres-redis' do |version|
|
129
|
+
gem 'rails', version.fetch(:rails, '4.2.7.1')
|
130
|
+
gem 'pg', '< 1.0', platform: :ruby
|
131
|
+
gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
|
132
|
+
gem 'redis-rails'
|
133
|
+
gem 'redis', '< 4.0'
|
134
|
+
end
|
434
135
|
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
|
441
|
-
|
442
|
-
end
|
136
|
+
common_appraisal 'rails4-postgres-sidekiq' do |version|
|
137
|
+
gem 'rails', version.fetch(:rails, '4.2.7.1')
|
138
|
+
gem 'pg', '< 1.0', platform: :ruby
|
139
|
+
gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
|
140
|
+
gem 'sidekiq'
|
141
|
+
gem 'activejob'
|
142
|
+
end
|
443
143
|
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
|
449
|
-
gem 'rack-cache', '1.7.1'
|
450
|
-
end
|
144
|
+
common_appraisal 'rails5-mysql2' do
|
145
|
+
gem 'rails', '~> 5.1.6'
|
146
|
+
gem 'mysql2', '< 0.5', platform: :ruby
|
147
|
+
end
|
451
148
|
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
|
457
|
-
gem 'redis-rails'
|
458
|
-
gem 'redis', '< 4.0'
|
459
|
-
gem 'rack-cache', '1.7.1'
|
460
|
-
end
|
149
|
+
common_appraisal 'rails5-postgres' do
|
150
|
+
gem 'rails', '~> 5.1.6'
|
151
|
+
gem 'pg', '< 1.0', platform: :ruby
|
152
|
+
end
|
461
153
|
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
466
|
-
|
467
|
-
|
468
|
-
gem 'rack-cache', '1.7.1'
|
469
|
-
end
|
154
|
+
common_appraisal 'rails5-postgres-redis' do
|
155
|
+
gem 'rails', '~> 5.1.6'
|
156
|
+
gem 'pg', '< 1.0', platform: :ruby
|
157
|
+
gem 'redis-rails'
|
158
|
+
gem 'redis'
|
159
|
+
end
|
470
160
|
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
|
475
|
-
|
161
|
+
common_appraisal 'rails5-postgres-sidekiq' do
|
162
|
+
gem 'rails', '~> 5.1.6'
|
163
|
+
gem 'pg', '< 1.0', platform: :ruby
|
164
|
+
gem 'sidekiq'
|
165
|
+
gem 'activejob'
|
166
|
+
end
|
476
167
|
|
477
|
-
|
478
|
-
|
479
|
-
gem 'pg', '< 1.0', platform: :ruby
|
480
|
-
gem 'activerecord-jdbcpostgresql-adapter', platform: :jruby
|
481
|
-
end
|
168
|
+
ruby_version('1.9.3') do
|
169
|
+
rake = proc { gem 'rake', '< 12.3' }
|
482
170
|
|
483
|
-
|
484
|
-
|
485
|
-
|
486
|
-
|
487
|
-
|
488
|
-
|
489
|
-
|
171
|
+
do_appraise 'rails30-postgres', rake
|
172
|
+
do_appraise 'rails30-postgres-sidekiq', rake
|
173
|
+
do_appraise 'rails32-mysql2', rake
|
174
|
+
do_appraise 'rails32-postgres', rake
|
175
|
+
do_appraise 'rails32-postgres-redis', rake
|
176
|
+
do_appraise 'rails32-postgres-sidekiq', rake
|
177
|
+
do_appraise 'contrib-old', rake
|
178
|
+
end
|
490
179
|
|
491
|
-
|
492
|
-
|
493
|
-
|
494
|
-
|
495
|
-
|
496
|
-
|
497
|
-
|
180
|
+
ruby_version('2.0.0') do
|
181
|
+
do_appraise 'rails30-postgres'
|
182
|
+
do_appraise 'rails30-postgres-sidekiq'
|
183
|
+
do_appraise 'rails32-mysql2'
|
184
|
+
do_appraise 'rails32-postgres'
|
185
|
+
do_appraise 'rails32-postgres-redis'
|
186
|
+
do_appraise 'rails32-postgres-sidekiq'
|
187
|
+
do_appraise 'contrib-old'
|
188
|
+
end
|
498
189
|
|
499
|
-
|
500
|
-
|
501
|
-
|
502
|
-
|
190
|
+
ruby_version('2.1.0') do
|
191
|
+
do_appraise 'rails30-postgres'
|
192
|
+
do_appraise 'rails30-postgres-sidekiq'
|
193
|
+
do_appraise 'rails32-mysql2'
|
194
|
+
do_appraise 'rails32-postgres'
|
195
|
+
do_appraise 'rails32-postgres-redis'
|
196
|
+
do_appraise 'rails32-postgres-sidekiq'
|
197
|
+
do_appraise 'rails4-mysql2'
|
198
|
+
do_appraise 'rails4-postgres'
|
199
|
+
do_appraise 'rails4-postgres-redis'
|
200
|
+
do_appraise 'contrib-old'
|
201
|
+
end
|
503
202
|
|
504
|
-
|
505
|
-
|
506
|
-
|
507
|
-
|
203
|
+
ruby_version('2.2.0') do
|
204
|
+
do_appraise 'rails30-postgres'
|
205
|
+
do_appraise 'rails30-postgres-sidekiq'
|
206
|
+
do_appraise 'rails32-mysql2'
|
207
|
+
do_appraise 'rails32-postgres'
|
208
|
+
do_appraise 'rails32-postgres-redis'
|
209
|
+
do_appraise 'rails32-postgres-sidekiq'
|
210
|
+
do_appraise 'rails4-mysql2'
|
211
|
+
do_appraise 'rails4-postgres'
|
212
|
+
do_appraise 'rails4-postgres-redis'
|
213
|
+
do_appraise 'rails4-postgres-sidekiq'
|
214
|
+
do_appraise 'rails5-mysql2'
|
215
|
+
do_appraise 'rails5-postgres'
|
216
|
+
do_appraise 'rails5-postgres-redis'
|
217
|
+
do_appraise 'rails5-postgres-sidekiq'
|
218
|
+
do_appraise 'contrib'
|
219
|
+
end
|
508
220
|
|
509
|
-
|
510
|
-
|
511
|
-
|
512
|
-
|
513
|
-
|
514
|
-
|
221
|
+
ruby_version('2.3.0') do
|
222
|
+
do_appraise 'rails30-postgres'
|
223
|
+
do_appraise 'rails30-postgres-sidekiq'
|
224
|
+
do_appraise 'rails32-mysql2'
|
225
|
+
do_appraise 'rails32-postgres'
|
226
|
+
do_appraise 'rails32-postgres-redis'
|
227
|
+
do_appraise 'rails32-postgres-sidekiq'
|
228
|
+
do_appraise 'rails4-mysql2'
|
229
|
+
do_appraise 'rails4-postgres'
|
230
|
+
do_appraise 'rails4-postgres-redis'
|
231
|
+
do_appraise 'rails4-postgres-sidekiq'
|
232
|
+
do_appraise 'rails5-mysql2'
|
233
|
+
do_appraise 'rails5-postgres'
|
234
|
+
do_appraise 'rails5-postgres-redis'
|
235
|
+
do_appraise 'rails5-postgres-sidekiq'
|
236
|
+
do_appraise 'contrib'
|
237
|
+
end
|
515
238
|
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
|
520
|
-
|
521
|
-
|
239
|
+
ruby_version('2.4.0') do
|
240
|
+
rails4_version = version(rails: '~> 4.2.8')
|
241
|
+
|
242
|
+
do_appraise 'rails4-mysql2', rails4_version
|
243
|
+
do_appraise 'rails4-postgres', rails4_version
|
244
|
+
do_appraise 'rails4-postgres-redis', rails4_version
|
245
|
+
do_appraise 'rails4-postgres-sidekiq', rails4_version
|
246
|
+
do_appraise 'rails5-mysql2'
|
247
|
+
do_appraise 'rails5-postgres'
|
248
|
+
do_appraise 'rails5-postgres-redis'
|
249
|
+
do_appraise 'rails5-postgres-sidekiq'
|
250
|
+
do_appraise 'contrib'
|
251
|
+
end
|
522
252
|
|
523
|
-
|
524
|
-
|
525
|
-
|
526
|
-
|
527
|
-
|
528
|
-
|
529
|
-
|
530
|
-
|
531
|
-
|
532
|
-
|
533
|
-
|
534
|
-
|
535
|
-
gem 'hiredis'
|
536
|
-
gem 'mongo', '< 2.5'
|
537
|
-
gem 'mysql2', '< 0.5', platform: :ruby
|
538
|
-
gem 'racecar', '>= 0.3.5'
|
539
|
-
gem 'rack'
|
540
|
-
gem 'rack-test'
|
541
|
-
gem 'rake', '>= 12.3'
|
542
|
-
gem 'redis', '< 4.0'
|
543
|
-
gem 'rest-client'
|
544
|
-
gem 'resque', '< 2.0'
|
545
|
-
gem 'sequel'
|
546
|
-
gem 'sidekiq'
|
547
|
-
gem 'sinatra'
|
548
|
-
gem 'sqlite3'
|
549
|
-
gem 'sucker_punch'
|
550
|
-
end
|
551
|
-
end
|
552
|
-
elsif Gem::Version.new('2.4.0') <= Gem::Version.new(RUBY_VERSION)
|
553
|
-
if RUBY_PLATFORM != 'java'
|
554
|
-
appraise 'contrib' do
|
555
|
-
gem 'active_model_serializers', '>= 0.10.0'
|
556
|
-
gem 'activerecord', '< 5.1.5'
|
557
|
-
gem 'aws-sdk'
|
558
|
-
gem 'dalli'
|
559
|
-
gem 'delayed_job'
|
560
|
-
gem 'delayed_job_active_record'
|
561
|
-
gem 'elasticsearch-transport'
|
562
|
-
gem 'excon'
|
563
|
-
gem 'grape'
|
564
|
-
gem 'graphql'
|
565
|
-
gem 'grpc'
|
566
|
-
gem 'hiredis'
|
567
|
-
gem 'mongo', '< 2.5'
|
568
|
-
gem 'mysql2', '< 0.5', platform: :ruby
|
569
|
-
gem 'racecar', '>= 0.3.5'
|
570
|
-
gem 'rack'
|
571
|
-
gem 'rack-test'
|
572
|
-
gem 'rake', '>= 12.3'
|
573
|
-
gem 'redis', '< 4.0'
|
574
|
-
gem 'rest-client'
|
575
|
-
gem 'resque', '< 2.0'
|
576
|
-
gem 'sequel'
|
577
|
-
gem 'sidekiq'
|
578
|
-
gem 'sinatra'
|
579
|
-
gem 'sqlite3'
|
580
|
-
gem 'sucker_punch'
|
581
|
-
end
|
582
|
-
end
|
253
|
+
ruby_version('2.5.0') do
|
254
|
+
rails4_version = version(rails: '~> 4.2.8')
|
255
|
+
|
256
|
+
do_appraise 'rails4-mysql2', rails4_version
|
257
|
+
do_appraise 'rails4-postgres', rails4_version
|
258
|
+
do_appraise 'rails4-postgres-redis', rails4_version
|
259
|
+
do_appraise 'rails4-postgres-sidekiq', rails4_version
|
260
|
+
do_appraise 'rails5-mysql2'
|
261
|
+
do_appraise 'rails5-postgres'
|
262
|
+
do_appraise 'rails5-postgres-redis'
|
263
|
+
do_appraise 'rails5-postgres-sidekiq'
|
264
|
+
do_appraise 'contrib'
|
583
265
|
end
|
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,17 @@
|
|
4
4
|
|
5
5
|
## [Unreleased (beta)]
|
6
6
|
|
7
|
+
## [0.14.2] - 2018-08-23
|
8
|
+
|
9
|
+
Release notes: https://github.com/DataDog/dd-trace-rb/releases/tag/v0.14.2
|
10
|
+
|
11
|
+
Git diff: https://github.com/DataDog/dd-trace-rb/compare/v0.14.1...v0.14.2
|
12
|
+
|
13
|
+
### Fixed
|
14
|
+
|
15
|
+
- Sampling priority from request headers not being used (#521)
|
16
|
+
|
17
|
+
|
7
18
|
## [0.14.1] - 2018-08-21
|
8
19
|
|
9
20
|
Release notes: https://github.com/DataDog/dd-trace-rb/releases/tag/v0.14.1
|
data/Rakefile
CHANGED
@@ -151,7 +151,7 @@ end
|
|
151
151
|
if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('2.1.0')
|
152
152
|
RuboCop::RakeTask.new(:rubocop) do |t|
|
153
153
|
t.options << ['-D', '--force-exclusion']
|
154
|
-
t.patterns = ['lib/**/*.rb', 'test/**/*.rb', 'spec/**/*.rb', 'Gemfile', 'Rakefile']
|
154
|
+
t.patterns = ['tools/**/*.rb', 'lib/**/*.rb', 'test/**/*.rb', 'spec/**/*.rb', 'Gemfile', 'Rakefile']
|
155
155
|
end
|
156
156
|
end
|
157
157
|
|
@@ -486,7 +486,7 @@ task :ci do
|
|
486
486
|
sh 'bundle exec appraisal rails5-mysql2 rake spec:rails'
|
487
487
|
sh 'bundle exec appraisal rails5-postgres rake spec:rails'
|
488
488
|
end
|
489
|
-
elsif Gem::Version.new('2.4.0') <= Gem::Version.new(RUBY_VERSION)
|
489
|
+
elsif Gem::Version.new('2.4.0') <= Gem::Version.new(RUBY_VERSION) # also covers 2.5
|
490
490
|
# Main library
|
491
491
|
sh 'bundle exec rake test:main'
|
492
492
|
sh 'bundle exec rake spec:main'
|
@@ -501,6 +501,8 @@ task :ci do
|
|
501
501
|
sh 'bundle exec appraisal contrib rake test:rack'
|
502
502
|
sh 'bundle exec appraisal contrib rake test:sinatra'
|
503
503
|
sh 'bundle exec appraisal contrib rake test:sucker_punch'
|
504
|
+
sh 'bundle exec appraisal contrib rake test:sidekiq'
|
505
|
+
sh 'bundle exec rake benchmark'
|
504
506
|
# Contrib specs
|
505
507
|
sh 'bundle exec appraisal contrib rake spec:active_model_serializers'
|
506
508
|
sh 'bundle exec appraisal contrib rake spec:active_record'
|
@@ -523,7 +525,23 @@ task :ci do
|
|
523
525
|
sh 'bundle exec appraisal contrib rake spec:rest_client'
|
524
526
|
# Rails minitests
|
525
527
|
sh 'bundle exec appraisal contrib rake test:sidekiq'
|
526
|
-
sh 'bundle exec rake
|
528
|
+
sh 'bundle exec appraisal rails4-mysql2 rake test:rails'
|
529
|
+
sh 'bundle exec appraisal rails4-postgres rake test:rails'
|
530
|
+
sh 'bundle exec appraisal rails4-postgres-redis rake test:railsredis'
|
531
|
+
sh 'bundle exec appraisal rails4-postgres rake test:railsdisableenv'
|
532
|
+
sh 'bundle exec appraisal rails4-postgres-sidekiq rake test:railssidekiq'
|
533
|
+
sh 'bundle exec appraisal rails4-postgres-sidekiq rake test:railsactivejob'
|
534
|
+
sh 'bundle exec appraisal rails5-mysql2 rake test:rails'
|
535
|
+
sh 'bundle exec appraisal rails5-postgres rake test:rails'
|
536
|
+
sh 'bundle exec appraisal rails5-postgres-redis rake test:railsredis'
|
537
|
+
sh 'bundle exec appraisal rails5-postgres-sidekiq rake test:railssidekiq'
|
538
|
+
sh 'bundle exec appraisal rails5-postgres-sidekiq rake test:railsactivejob'
|
539
|
+
sh 'bundle exec appraisal rails5-postgres rake test:railsdisableenv'
|
540
|
+
# Rails specs
|
541
|
+
sh 'bundle exec appraisal rails4-mysql2 rake spec:rails'
|
542
|
+
sh 'bundle exec appraisal rails4-postgres rake spec:rails'
|
543
|
+
sh 'bundle exec appraisal rails5-mysql2 rake spec:rails'
|
544
|
+
sh 'bundle exec appraisal rails5-postgres rake spec:rails'
|
527
545
|
end
|
528
546
|
end
|
529
547
|
end
|
data/docs/GettingStarted.md
CHANGED
@@ -72,6 +72,7 @@ For descriptions of terminology used in APM, take a look at the [official docume
|
|
72
72
|
| | | 2.2 | Full |
|
73
73
|
| | | 2.3 | Full |
|
74
74
|
| | | 2.4 | Full |
|
75
|
+
| | | 2.5 | Full |
|
75
76
|
| JRuby | http://jruby.org/ | 9.1.5 | Experimental |
|
76
77
|
|
77
78
|
*Full* support indicates all tracer features are available.
|
@@ -846,6 +847,15 @@ Where `options` is an optional `Hash` that accepts the following parameters:
|
|
846
847
|
| ``tracer`` | A ``Datadog::Tracer`` instance used to instrument the application. Usually you don't need to set that. | ``Datadog.tracer`` |
|
847
848
|
| ``databases`` | Hash of tracer settings to use for each database connection. See [ActiveRecord](#activerecord) for more details. | ``{}`` |
|
848
849
|
|
850
|
+
Supported versions
|
851
|
+
|
852
|
+
| Ruby Versions | Supported Rails Versions |
|
853
|
+
| ------------- | ------------------------ |
|
854
|
+
| 1.9.3 - 2.0 | 3.0 - 3.2 |
|
855
|
+
| 2.1 | 3.0 - 4.2 |
|
856
|
+
| 2.2 - 2.3 | 3.0 - 5.1 |
|
857
|
+
| 2.4 - 2.5 | 4.2.8 - 5.1 |
|
858
|
+
|
849
859
|
### Rake
|
850
860
|
|
851
861
|
You can add instrumentation around your Rake tasks by activating the `rake` integration. Each task and its subsequent subtasks will be traced.
|
data/lib/ddtrace/sampler.rb
CHANGED
@@ -98,14 +98,32 @@ module Datadog
|
|
98
98
|
end
|
99
99
|
|
100
100
|
def sample(span)
|
101
|
-
span
|
102
|
-
return
|
103
|
-
|
104
|
-
span.
|
105
|
-
|
106
|
-
|
101
|
+
return perform_sampling(span) unless span.context
|
102
|
+
return sampled_by_upstream(span) if span.context.sampling_priority
|
103
|
+
|
104
|
+
perform_sampling(span).tap do |sampled|
|
105
|
+
span.context.sampling_priority = if sampled
|
106
|
+
Datadog::Ext::Priority::AUTO_KEEP
|
107
|
+
else
|
108
|
+
Datadog::Ext::Priority::AUTO_REJECT
|
109
|
+
end
|
110
|
+
end
|
107
111
|
end
|
108
112
|
|
109
113
|
def_delegators :@post_sampler, :update
|
114
|
+
|
115
|
+
private
|
116
|
+
|
117
|
+
def sampled_by_upstream(span)
|
118
|
+
span.sampled = priority_keep?(span.context.sampling_priority)
|
119
|
+
end
|
120
|
+
|
121
|
+
def priority_keep?(sampling_priority)
|
122
|
+
sampling_priority == Datadog::Ext::Priority::USER_KEEP || sampling_priority == Datadog::Ext::Priority::AUTO_KEEP
|
123
|
+
end
|
124
|
+
|
125
|
+
def perform_sampling(span)
|
126
|
+
@base_sampler.sample(span) && @post_sampler.sample(span)
|
127
|
+
end
|
110
128
|
end
|
111
129
|
end
|
data/lib/ddtrace/version.rb
CHANGED
data/lib/ddtrace/writer.rb
CHANGED
@@ -18,7 +18,7 @@ module Datadog
|
|
18
18
|
# priority sampling
|
19
19
|
if options[:priority_sampler]
|
20
20
|
@priority_sampler = options[:priority_sampler]
|
21
|
-
transport_options[:api_version] ||= HTTPTransport::
|
21
|
+
transport_options[:api_version] ||= HTTPTransport::V3
|
22
22
|
transport_options[:response_callback] ||= method(:sampling_updater)
|
23
23
|
end
|
24
24
|
|
@@ -120,8 +120,8 @@ module Datadog
|
|
120
120
|
return unless action == :traces && response.is_a?(Net::HTTPOK)
|
121
121
|
|
122
122
|
if api[:version] == HTTPTransport::V4
|
123
|
-
service_rates = JSON.parse(response.body)
|
124
|
-
@priority_sampler.update(service_rates)
|
123
|
+
# service_rates = JSON.parse(response.body)
|
124
|
+
# @priority_sampler.update(service_rates)
|
125
125
|
true
|
126
126
|
else
|
127
127
|
false
|
@@ -0,0 +1,36 @@
|
|
1
|
+
def ruby_version(version, java_required = false, &block)
|
2
|
+
return if java_required && RUBY_PLATFORM != 'java'
|
3
|
+
|
4
|
+
version = Gem::Version.new(version)
|
5
|
+
current_version = Gem::Version.new(RUBY_VERSION)
|
6
|
+
|
7
|
+
yield if current_version >= version && current_version < version.bump
|
8
|
+
end
|
9
|
+
|
10
|
+
def do_appraise(name, *closures, &block)
|
11
|
+
@common_appraisals ||= {}
|
12
|
+
@versions ||= {}
|
13
|
+
@versions[name] ||= {}
|
14
|
+
versions = @versions[name].dup
|
15
|
+
common_appraisal = @common_appraisals[name]
|
16
|
+
|
17
|
+
appraise(name) do
|
18
|
+
closures.each do |closure|
|
19
|
+
instance_exec(versions, &closure)
|
20
|
+
end
|
21
|
+
|
22
|
+
instance_exec(versions, &common_appraisal) if common_appraisal
|
23
|
+
instance_exec(versions, &block) if block_given?
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
def common_appraisal(name, &block)
|
28
|
+
@common_appraisals ||= {}
|
29
|
+
@common_appraisals[name] = block
|
30
|
+
end
|
31
|
+
|
32
|
+
def version(versions = {})
|
33
|
+
proc do |appraisal_version|
|
34
|
+
appraisal_version.merge!(versions)
|
35
|
+
end
|
36
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ddtrace
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.14.
|
4
|
+
version: 0.14.2.disableprotocolversion4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Datadog, Inc.
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-09-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: msgpack
|
@@ -419,6 +419,7 @@ files:
|
|
419
419
|
- lib/ddtrace/version.rb
|
420
420
|
- lib/ddtrace/workers.rb
|
421
421
|
- lib/ddtrace/writer.rb
|
422
|
+
- tools/appraisal_helper.rb
|
422
423
|
homepage: https://github.com/DataDog/dd-trace-rb
|
423
424
|
licenses:
|
424
425
|
- BSD-3-Clause
|
@@ -435,12 +436,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
435
436
|
version: 1.9.1
|
436
437
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
437
438
|
requirements:
|
438
|
-
- - "
|
439
|
+
- - ">"
|
439
440
|
- !ruby/object:Gem::Version
|
440
|
-
version:
|
441
|
+
version: 1.3.1
|
441
442
|
requirements: []
|
442
443
|
rubyforge_project:
|
443
|
-
rubygems_version: 2.
|
444
|
+
rubygems_version: 2.6.14
|
444
445
|
signing_key:
|
445
446
|
specification_version: 4
|
446
447
|
summary: Datadog tracing code for your Ruby applications
|