ddtrace 0.11.1 → 0.11.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
  SHA1:
3
- metadata.gz: edcd0745f2ad784016b18e4b7e4694e4af12223a
4
- data.tar.gz: '0952683e8798ee961851a881d0ea4343a121572a'
3
+ metadata.gz: 2a0e90e018358af2cb537b354048969bf86a76f1
4
+ data.tar.gz: f17a4d0365fdafbba126aeb6de307e170d1222b9
5
5
  SHA512:
6
- metadata.gz: 5cae4b99e2e0170f5a7da8a320ae7235ec7cc3431c8dee355a84e921b2f7933bbc2e32058547a8bea6dcbabfe94a4b1aff3bb293d7d059f480fca84f8ca5eb62
7
- data.tar.gz: b74edf57aeee710af1024f68eee73e804f3bff2cb0ee4426c384b6fc8626f36db85ea7fa95e698d4b3cc32f33ffc78d2e6fdc49368a11a4122cf2a847ebaf9f8
6
+ metadata.gz: f6c16fde60a09ddc98783925152d0d5b39fb0f015fac2663d611a68168c0e8b876fa75ba404cdf1d6ab2f63a1b692f727541673c84e4fb6614e51822d99eae5d
7
+ data.tar.gz: 638ce93e361b1dd3817664a93aa54c05ecbae8f369e218bca3e2aead7ef9fc5bed01fd6987cbdd54b1214bad6cd8721788288f97fa1146ffcd8f3810d7c67efd
data/Rakefile CHANGED
@@ -65,14 +65,15 @@ end
65
65
  namespace :test do
66
66
  task all: [:main,
67
67
  :rails, :railsredis, :railssidekiq, :railsactivejob,
68
- :elasticsearch, :http, :redis, :sidekiq, :sinatra]
68
+ :elasticsearch, :http, :redis, :sidekiq, :sinatra, :monkey]
69
69
 
70
70
  Rake::TestTask.new(:main) do |t|
71
71
  t.libs << %w[test lib]
72
72
  t.test_files = FileList['test/**/*_test.rb'].reject do |path|
73
73
  path.include?('contrib') ||
74
74
  path.include?('benchmark') ||
75
- path.include?('redis')
75
+ path.include?('redis') ||
76
+ path.include?('monkey_test.rb')
76
77
  end
77
78
  end
78
79
 
@@ -125,6 +126,11 @@ namespace :test do
125
126
  t.test_files = FileList["test/contrib/#{contrib}/*_test.rb"]
126
127
  end
127
128
  end
129
+
130
+ Rake::TestTask.new(:monkey) do |t|
131
+ t.libs << %w[test lib]
132
+ t.test_files = FileList['test/monkey_test.rb']
133
+ end
128
134
  end
129
135
 
130
136
  Rake::TestTask.new(:benchmark) do |t|
@@ -210,6 +216,7 @@ task :ci do
210
216
  sh 'rvm $MRI_VERSIONS --verbose do appraisal contrib rake test:mongodb'
211
217
  sh 'rvm $MRI_VERSIONS --verbose do appraisal contrib rake test:sucker_punch'
212
218
  sh 'rvm $MRI_VERSIONS --verbose do appraisal contrib rake test:resque'
219
+ sh 'rvm $MRI_OLD_VERSIONS --verbose do appraisal contrib-old rake test:monkey'
213
220
  sh 'rvm $MRI_OLD_VERSIONS --verbose do appraisal contrib-old rake test:elasticsearch'
214
221
  sh 'rvm $MRI_OLD_VERSIONS --verbose do appraisal contrib-old rake test:http'
215
222
  sh 'rvm $MRI_OLD_VERSIONS --verbose do appraisal contrib-old rake test:redis'
@@ -68,3 +68,4 @@ require 'ddtrace/contrib/dalli/patcher'
68
68
  require 'ddtrace/contrib/resque/patcher'
69
69
  require 'ddtrace/contrib/racecar/patcher'
70
70
  require 'ddtrace/contrib/sidekiq/patcher'
71
+ require 'ddtrace/monkey'
@@ -0,0 +1,65 @@
1
+ module Datadog
2
+ # TODO: Remove me!
3
+ # Monkey was used for monkey-patching 3rd party libs.
4
+ # It is now DEPRECATED. This API is no-op, and serves only to warn
5
+ # of its deactivation.
6
+ module Monkey
7
+ @registry = Datadog.registry
8
+
9
+ DEPRECATION_WARNING = %(
10
+ Datadog::Monkey has been REMOVED as of version 0.11.1.
11
+ All calls to Datadog::Monkey are no-ops.
12
+ *Implementations using Monkey will no longer function*.
13
+ Upgrade to the new configuration API using the migration guide here:
14
+ https://github.com/DataDog/dd-trace-rb/releases/tag/v0.11.0).freeze
15
+
16
+ module_function
17
+
18
+ attr_writer :registry
19
+
20
+ def registry
21
+ log_deprecation_warning('Monkey#registry')
22
+ @registry
23
+ end
24
+
25
+ def autopatch_modules
26
+ log_deprecation_warning('Monkey#autopatch_modules')
27
+ {}
28
+ end
29
+
30
+ def patch_all
31
+ log_deprecation_warning('Monkey#patch_all')
32
+ end
33
+
34
+ def patch_module(m)
35
+ log_deprecation_warning('Monkey#patch_module')
36
+ end
37
+
38
+ def patch(modules)
39
+ log_deprecation_warning('Monkey#patch')
40
+ end
41
+
42
+ def get_patched_modules
43
+ log_deprecation_warning('Monkey#get_patched_modules')
44
+ {}
45
+ end
46
+
47
+ def without_warnings(&block)
48
+ log_deprecation_warning('Monkey#without_warnings')
49
+ Datadog::Patcher.without_warnings(&block)
50
+ end
51
+
52
+ def log_deprecation_warning(method)
53
+ Datadog::Tracer.log.warn("#{method}:#{DEPRECATION_WARNING}")
54
+ end
55
+
56
+ class << self
57
+ def registry
58
+ log_deprecation_warning('Monkey#registry')
59
+ @registry
60
+ end
61
+
62
+ attr_writer :registry
63
+ end
64
+ end
65
+ end
@@ -2,7 +2,7 @@ module Datadog
2
2
  module VERSION
3
3
  MAJOR = 0
4
4
  MINOR = 11
5
- PATCH = 1
5
+ PATCH = 2
6
6
 
7
7
  STRING = [MAJOR, MINOR, PATCH].compact.join('.')
8
8
  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.11.1
4
+ version: 0.11.2
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-01-29 00:00:00.000000000 Z
11
+ date: 2018-02-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: msgpack
@@ -310,6 +310,7 @@ files:
310
310
  - lib/ddtrace/ext/redis.rb
311
311
  - lib/ddtrace/ext/sql.rb
312
312
  - lib/ddtrace/logger.rb
313
+ - lib/ddtrace/monkey.rb
313
314
  - lib/ddtrace/patcher.rb
314
315
  - lib/ddtrace/pin.rb
315
316
  - lib/ddtrace/pipeline.rb