ddtrace 0.14.0.rc1 → 0.14.0

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: 4577cdbdd06aac09ea0083d53eb9770be92e4731477c79b75486b31f020668d7
4
- data.tar.gz: 523b5f41156dbef1e860ddb209109af347bfd9af8b9d949edb1ea9638e16a670
3
+ metadata.gz: d52481c7b3f82c6d647612b13d8512436619bfb3b09c914c89b217c0e709e93a
4
+ data.tar.gz: 79fa3196d6d4f002450b5318f3defa51abab40641c05b4cfbb87a70560492375
5
5
  SHA512:
6
- metadata.gz: 0c389d698936501fd887a41d2e2dbe524abcb44ffd84d81147372914c96040e8964a0888d51731cbfb6538c25f556c2b9d56cea16d6de8591cd99724a3386b61
7
- data.tar.gz: 8b0b647de877011b9fe16e1db64f8e42c98807e40f64dd629ee6be360ef9da9992446d44e7ff5f8a87e1f6fb0f8f903d4bb5bbd4dc5770ea2f26e898765d7be0
6
+ metadata.gz: 77a2fd2b76346a130b29c081bf5cb927e3df61d1fe1a606fbe0e89eb486edd0a77c6d64b366afc86b272c779fe26f0988e6f25fcd3a1713ee4ae052ea10964ca
7
+ data.tar.gz: 79204974341c3b42b4ebe9130b3ca121a1a4980b291cc04a075a7bbd32bbdb88df280b50a75c8f43537aea55c4d8febebf56d00bb0079dad1b2997b7ec76c3f5
@@ -4,6 +4,31 @@
4
4
 
5
5
  ## [Unreleased (beta)]
6
6
 
7
+ ## [0.14.0] - 2018-08-14
8
+
9
+ Release notes: https://github.com/DataDog/dd-trace-rb/releases/tag/v0.14.0
10
+
11
+ Git diff: https://github.com/DataDog/dd-trace-rb/compare/v0.13.2...v0.14.0
12
+
13
+ ### Added
14
+
15
+ - RestClient integration (#422, #460)
16
+ - DelayedJob integration (#393 #444)
17
+ - Version information to integrations (#483)
18
+ - Tracer#active_root_span helper (#503)
19
+
20
+ ### Changed
21
+
22
+ - Resque to flush traces when Job finishes instead of using SyncWriter (#474)
23
+ - ActiveRecord to allow configuring multiple databases (#451)
24
+ - Integrations configuration settings (#450, #452, #451)
25
+
26
+ ### Fixed
27
+
28
+ - Context propagation for distributed traces when context is full (#502)
29
+ - Rake shutdown tracer after execution (#487) (@kissrobber)
30
+ - Deprecation warnings fired using Unicorn (#508)
31
+
7
32
  ## [0.14.0.rc1] - 2018-08-08
8
33
 
9
34
  Release notes: https://github.com/DataDog/dd-trace-rb/releases/tag/v0.14.0.rc1
@@ -435,11 +460,12 @@ Release notes: https://github.com/DataDog/dd-trace-rb/releases/tag/v0.3.1
435
460
 
436
461
  Git diff: https://github.com/DataDog/dd-trace-rb/compare/v0.3.0...v0.3.1
437
462
 
438
- [Unreleased (stable)]: https://github.com/DataDog/dd-trace-rb/compare/v0.13.2...master
439
- [Unreleased (beta)]: https://github.com/DataDog/dd-trace-rb/compare/v0.14.rc1...0.14-dev
440
- [0.14.0.rc1]: https://github.com/DataDog/dd-trace-rb/compare/v0.14.0.beta2...v0.14.rc1
441
- [0.14.0.beta2]: https://github.com/DataDog/dd-trace-rb/compare/v0.14.0.beta1...v0.14.beta2
442
- [0.14.0.beta1]: https://github.com/DataDog/dd-trace-rb/compare/v0.13.0...v0.14.beta1
463
+ [Unreleased (stable)]: https://github.com/DataDog/dd-trace-rb/compare/v0.14.0...master
464
+ [Unreleased (beta)]: https://github.com/DataDog/dd-trace-rb/compare/v0.14.0...0.15-dev
465
+ [0.14.0]: https://github.com/DataDog/dd-trace-rb/compare/v0.13.2...v0.14.0
466
+ [0.14.0.rc1]: https://github.com/DataDog/dd-trace-rb/compare/v0.14.0.beta2...v0.14.0.rc1
467
+ [0.14.0.beta2]: https://github.com/DataDog/dd-trace-rb/compare/v0.14.0.beta1...v0.14.0.beta2
468
+ [0.14.0.beta1]: https://github.com/DataDog/dd-trace-rb/compare/v0.13.0...v0.14.0.beta1
443
469
  [0.13.2]: https://github.com/DataDog/dd-trace-rb/compare/v0.13.1...v0.13.2
444
470
  [0.13.1]: https://github.com/DataDog/dd-trace-rb/compare/v0.13.0...v0.13.1
445
471
  [0.13.0]: https://github.com/DataDog/dd-trace-rb/compare/v0.12.1...v0.13.0
@@ -13,6 +13,7 @@ module Datadog
13
13
  # in the Rack environment so that it can be retrieved by the underlying
14
14
  # application. If request tags are not set by the app, they will be set using
15
15
  # information available at the Rack level.
16
+ # rubocop:disable Metrics/ClassLength
16
17
  class TraceMiddleware
17
18
  RACK_REQUEST_SPAN = 'datadog.rack_request_span'.freeze
18
19
 
@@ -58,11 +59,12 @@ module Datadog
58
59
  request_span = tracer.trace('rack.request', trace_options)
59
60
  env[RACK_REQUEST_SPAN] = request_span
60
61
 
61
- # TODO: For backwards compatibility; this attribute is deprecated.
62
- env[:datadog_rack_request_span] = env[RACK_REQUEST_SPAN]
63
-
64
62
  # Add deprecation warnings
65
63
  add_deprecation_warnings(env)
64
+ env.without_datadog_warnings do
65
+ # TODO: For backwards compatibility; this attribute is deprecated.
66
+ env[:datadog_rack_request_span] = env[RACK_REQUEST_SPAN]
67
+ end
66
68
 
67
69
  # Copy the original env, before the rest of the stack executes.
68
70
  # Values may change; we want values before that happens.
@@ -179,20 +181,37 @@ module Datadog
179
181
 
180
182
  def add_deprecation_warnings(env)
181
183
  env.instance_eval do
182
- def [](key)
183
- if key == :datadog_rack_request_span && !@request_span_warning_issued
184
- Datadog::Tracer.log.warn(REQUEST_SPAN_DEPRECATION_WARNING)
185
- @request_span_warning_issued = true
184
+ unless instance_variable_defined?(:@patched_with_datadog_warnings)
185
+ @patched_with_datadog_warnings = true
186
+ @datadog_deprecation_warnings = true
187
+ @datadog_span_warning = true
188
+
189
+ def [](key)
190
+ if key == :datadog_rack_request_span \
191
+ && @datadog_span_warning \
192
+ && @datadog_deprecation_warnings
193
+ Datadog::Tracer.log.warn(REQUEST_SPAN_DEPRECATION_WARNING)
194
+ @datadog_span_warning = true
195
+ end
196
+ super
197
+ end
198
+
199
+ def []=(key, value)
200
+ if key == :datadog_rack_request_span \
201
+ && @datadog_span_warning \
202
+ && @datadog_deprecation_warnings
203
+ Datadog::Tracer.log.warn(REQUEST_SPAN_DEPRECATION_WARNING)
204
+ @datadog_span_warning = true
205
+ end
206
+ super
186
207
  end
187
- super
188
- end
189
208
 
190
- def []=(key, value)
191
- if key == :datadog_rack_request_span && !@request_span_warning_issued
192
- Datadog::Tracer.log.warn(REQUEST_SPAN_DEPRECATION_WARNING)
193
- @request_span_warning_issued = true
209
+ def without_datadog_warnings
210
+ @datadog_deprecation_warnings = false
211
+ yield
212
+ ensure
213
+ @datadog_deprecation_warnings = true
194
214
  end
195
- super
196
215
  end
197
216
  end
198
217
  end
@@ -3,7 +3,7 @@ module Datadog
3
3
  MAJOR = 0
4
4
  MINOR = 14
5
5
  PATCH = 0
6
- PRE = 'rc1'.freeze
6
+ PRE = nil
7
7
 
8
8
  STRING = [MAJOR, MINOR, PATCH, PRE].compact.join('.')
9
9
  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.0.rc1
4
+ version: 0.14.0
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-08-08 00:00:00.000000000 Z
11
+ date: 2018-08-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: msgpack
@@ -435,9 +435,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
435
435
  version: 1.9.1
436
436
  required_rubygems_version: !ruby/object:Gem::Requirement
437
437
  requirements:
438
- - - ">"
438
+ - - ">="
439
439
  - !ruby/object:Gem::Version
440
- version: 1.3.1
440
+ version: '0'
441
441
  requirements: []
442
442
  rubyforge_project:
443
443
  rubygems_version: 2.7.7