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 +4 -4
- data/CHANGELOG.md +31 -5
- data/lib/ddtrace/contrib/rack/middlewares.rb +33 -14
- data/lib/ddtrace/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d52481c7b3f82c6d647612b13d8512436619bfb3b09c914c89b217c0e709e93a
|
4
|
+
data.tar.gz: 79fa3196d6d4f002450b5318f3defa51abab40641c05b4cfbb87a70560492375
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 77a2fd2b76346a130b29c081bf5cb927e3df61d1fe1a606fbe0e89eb486edd0a77c6d64b366afc86b272c779fe26f0988e6f25fcd3a1713ee4ae052ea10964ca
|
7
|
+
data.tar.gz: 79204974341c3b42b4ebe9130b3ca121a1a4980b291cc04a075a7bbd32bbdb88df280b50a75c8f43537aea55c4d8febebf56d00bb0079dad1b2997b7ec76c3f5
|
data/CHANGELOG.md
CHANGED
@@ -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.
|
439
|
-
[Unreleased (beta)]: https://github.com/DataDog/dd-trace-rb/compare/v0.14.
|
440
|
-
[0.14.0
|
441
|
-
[0.14.0.
|
442
|
-
[0.14.0.
|
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
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
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
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
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
|
data/lib/ddtrace/version.rb
CHANGED
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
|
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-
|
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:
|
440
|
+
version: '0'
|
441
441
|
requirements: []
|
442
442
|
rubyforge_project:
|
443
443
|
rubygems_version: 2.7.7
|