ddtrace 0.11.2 → 0.11.3

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: 2a0e90e018358af2cb537b354048969bf86a76f1
4
- data.tar.gz: f17a4d0365fdafbba126aeb6de307e170d1222b9
3
+ metadata.gz: f346610fe35749be53eaf03db7fc190790e39e7a
4
+ data.tar.gz: c4ec02969569dd14ddde32e0018e870872efd491
5
5
  SHA512:
6
- metadata.gz: f6c16fde60a09ddc98783925152d0d5b39fb0f015fac2663d611a68168c0e8b876fa75ba404cdf1d6ab2f63a1b692f727541673c84e4fb6614e51822d99eae5d
7
- data.tar.gz: 638ce93e361b1dd3817664a93aa54c05ecbae8f369e218bca3e2aead7ef9fc5bed01fd6987cbdd54b1214bad6cd8721788288f97fa1146ffcd8f3810d7c67efd
6
+ metadata.gz: 7ef4b64aca16574394a2cb94b2c601a69e01f81563b2ca3db981714e19635dbfba3457827747a1f88ccba2b215ef3c891172f6e12a1d4f0075288401a460018e
7
+ data.tar.gz: 232e89d0f09f137fbdef9ee286526a73d92bb2294cb0909d705cae20eddeaa0da1e04b2ae6cc6f4db8f22949e5d263c6972149bedcb2fca3171409ce830a674b
data/Appraisals CHANGED
@@ -122,7 +122,7 @@ if RUBY_VERSION >= '2.2.2' && RUBY_PLATFORM != 'java'
122
122
  gem 'hiredis'
123
123
  gem 'sinatra'
124
124
  gem 'sqlite3'
125
- gem 'activerecord'
125
+ gem 'activerecord', '< 5.1.5'
126
126
  gem 'sidekiq'
127
127
  gem 'aws-sdk'
128
128
  gem 'sucker_punch'
@@ -0,0 +1,248 @@
1
+ # Changelog
2
+
3
+ ## [Unreleased (stable)]
4
+
5
+ ## [Unreleased (beta)]
6
+
7
+ ## [0.12.0.beta2] - 2018-02-28
8
+
9
+ Release notes: https://github.com/DataDog/dd-trace-rb/releases/tag/v0.12.0.beta2
10
+
11
+ Git diff: https://github.com/DataDog/dd-trace-rb/compare/v0.12.0.beta1...v0.12.0.beta2
12
+
13
+ ### Fixed
14
+ - Loading the ddtrace library after Rails has fully initialized can result in load errors. (#357)
15
+
16
+ ## [0.12.0.beta1] - 2018-02-09
17
+
18
+ Release notes: https://github.com/DataDog/dd-trace-rb/releases/tag/v0.12.0.beta1
19
+
20
+ Git diff: https://github.com/DataDog/dd-trace-rb/compare/v0.11.2...v0.12.0.beta1
21
+
22
+ ### Added
23
+ - GraphQL integration (supporting graphql 1.7.9+) (#295)
24
+ - ActiveRecord object instantiation tracing (#311, #334)
25
+ - `http.request_id` tag to Rack spans (#335)
26
+
27
+ ## [0.11.3] - 2018-03-06
28
+
29
+ Release notes: https://github.com/DataDog/dd-trace-rb/releases/tag/v0.11.3
30
+
31
+ Git diff: https://github.com/DataDog/dd-trace-rb/compare/v0.11.2...v0.11.3
32
+
33
+ ### Added
34
+ - CHANGELOG.md (#350, #363) (@awendt)
35
+ - `http.request_id` tag to Rack spans (#335)
36
+ - Tracer configuration to README.md (#332) (@noma4i)
37
+
38
+ ### Fixed
39
+ - Extra indentation in README.md (#349) (@ck3g)
40
+ - `http.url` when Rails raises exceptions (#351, #353)
41
+ - Rails from being patched twice (#352)
42
+ - 4XX responses from middleware being marked as errors (#345)
43
+ - Rails exception middleware sometimes not being inserted at correct position (#345)
44
+ - Processing pipeline documentation typo (#355) (@MMartyn)
45
+ - Loading the ddtrace library after Rails has fully initialized can result in load errors. (#357)
46
+ - Use of block syntax with Rails `render` not working (#359, #360) (@dorner)
47
+
48
+ ## [0.11.2] - 2018-02-02
49
+
50
+ **Critical update**: `Datadog::Monkey` removed in version 0.11.1. Adds `Datadog::Monkey` back as no-op, deprecated module.
51
+
52
+ Release notes: https://github.com/DataDog/dd-trace-rb/releases/tag/v0.11.2
53
+
54
+ Git diff: https://github.com/DataDog/dd-trace-rb/compare/v0.11.1...v0.11.2
55
+
56
+ ### Deprecated
57
+ - `Datadog::Monkey` to be no-op and print deprecation warnings.
58
+
59
+ ## [0.11.1] - 2018-01-29
60
+
61
+ Release notes: https://github.com/DataDog/dd-trace-rb/releases/tag/v0.11.1
62
+
63
+ Git diff: https://github.com/DataDog/dd-trace-rb/compare/v0.11.0...v0.11.1
64
+
65
+ ### Added
66
+ - `http.base_url` tag for Rack applications (#301, #327)
67
+ - `distributed_tracing` option to Sinatra (#325)
68
+ - `exception_controller` option to Rails (#320)
69
+
70
+ ### Changed
71
+ - Decoupled Sinatra and ActiveRecord integrations (#328, #330) (@hawknewton)
72
+ - Racecar uses preferred ActiveSupport::Notifications strategy (#323)
73
+
74
+ ### Removed
75
+ - `Datadog::Monkey` in favor of newer configuration API (#322)
76
+
77
+ ### Fixed
78
+ - Custom resource names from Rails controllers being overridden (#321)
79
+ - Custom Rails exception controllers reporting as the resource (#320)
80
+
81
+ ## [0.11.0] - 2018-01-17
82
+
83
+ Release notes: https://github.com/DataDog/dd-trace-rb/releases/tag/v0.11.0
84
+
85
+ Git diff: https://github.com/DataDog/dd-trace-rb/compare/v0.10.0...v0.11.0
86
+
87
+ ## [0.11.0.beta2] - 2017-12-27
88
+
89
+ Release notes: https://github.com/DataDog/dd-trace-rb/releases/tag/v0.11.0.beta2
90
+
91
+ Git diff: https://github.com/DataDog/dd-trace-rb/compare/v0.11.0.beta1...v0.11.0.beta2
92
+
93
+ ## [0.11.0.beta1] - 2017-12-04
94
+
95
+ Release notes: https://github.com/DataDog/dd-trace-rb/releases/tag/v0.11.0.beta1
96
+
97
+ Git diff: https://github.com/DataDog/dd-trace-rb/compare/v0.10.0...v0.11.0.beta1
98
+
99
+ ## [0.10.0] - 2017-11-30
100
+
101
+ Release notes: https://github.com/DataDog/dd-trace-rb/releases/tag/v0.10.0
102
+
103
+ Git diff: https://github.com/DataDog/dd-trace-rb/compare/v0.9.2...v0.10.0
104
+
105
+ ## [0.9.2] - 2017-11-03
106
+
107
+ Release notes: https://github.com/DataDog/dd-trace-rb/releases/tag/v0.9.2
108
+
109
+ Git diff: https://github.com/DataDog/dd-trace-rb/compare/v0.9.1...v0.9.2
110
+
111
+ ## [0.9.1] - 2017-11-02
112
+
113
+ Release notes: https://github.com/DataDog/dd-trace-rb/releases/tag/v0.9.1
114
+
115
+ Git diff: https://github.com/DataDog/dd-trace-rb/compare/v0.9.0...v0.9.1
116
+
117
+ ## [0.9.0] - 2017-10-06
118
+
119
+ Release notes: https://github.com/DataDog/dd-trace-rb/releases/tag/v0.9.0
120
+
121
+ Git diff: https://github.com/DataDog/dd-trace-rb/compare/v0.8.2...v0.9.0
122
+
123
+ ## [0.8.2] - 2017-09-08
124
+
125
+ Release notes: https://github.com/DataDog/dd-trace-rb/releases/tag/v0.8.2
126
+
127
+ Git diff: https://github.com/DataDog/dd-trace-rb/compare/v0.8.1...v0.8.2
128
+
129
+ ## [0.8.1] - 2017-08-10
130
+
131
+ Release notes: https://github.com/DataDog/dd-trace-rb/releases/tag/v0.8.1
132
+
133
+ Git diff: https://github.com/DataDog/dd-trace-rb/compare/v0.8.0...v0.8.1
134
+
135
+ ## [0.8.0] - 2017-07-24
136
+
137
+ Release notes: https://github.com/DataDog/dd-trace-rb/releases/tag/v0.8.0
138
+
139
+ Git diff: https://github.com/DataDog/dd-trace-rb/compare/v0.7.2...v0.8.0
140
+
141
+ ## [0.7.2] - 2017-05-24
142
+
143
+ Release notes: https://github.com/DataDog/dd-trace-rb/releases/tag/v0.7.2
144
+
145
+ Git diff: https://github.com/DataDog/dd-trace-rb/compare/v0.7.1...v0.7.2
146
+
147
+ ## [0.7.1] - 2017-05-10
148
+
149
+ Release notes: https://github.com/DataDog/dd-trace-rb/releases/tag/v0.7.1
150
+
151
+ Git diff: https://github.com/DataDog/dd-trace-rb/compare/v0.7.0...v0.7.1
152
+
153
+ ## [0.7.0] - 2017-04-24
154
+
155
+ Release notes: https://github.com/DataDog/dd-trace-rb/releases/tag/v0.7.0
156
+
157
+ Git diff: https://github.com/DataDog/dd-trace-rb/compare/v0.6.2...v0.7.0
158
+
159
+ ## [0.6.2] - 2017-04-07
160
+
161
+ Release notes: https://github.com/DataDog/dd-trace-rb/releases/tag/v0.6.2
162
+
163
+ Git diff: https://github.com/DataDog/dd-trace-rb/compare/v0.6.1...v0.6.2
164
+
165
+ ## [0.6.1] - 2017-04-05
166
+
167
+ Release notes: https://github.com/DataDog/dd-trace-rb/releases/tag/v0.6.1
168
+
169
+ Git diff: https://github.com/DataDog/dd-trace-rb/compare/v0.6.0...v0.6.1
170
+
171
+ ## [0.6.0] - 2017-03-28
172
+
173
+ Release notes: https://github.com/DataDog/dd-trace-rb/releases/tag/v0.6.0
174
+
175
+ Git diff: https://github.com/DataDog/dd-trace-rb/compare/v0.5.0...v0.6.0
176
+
177
+ ## [0.5.0] - 2017-03-08
178
+
179
+ Release notes: https://github.com/DataDog/dd-trace-rb/releases/tag/v0.5.0
180
+
181
+ Git diff: https://github.com/DataDog/dd-trace-rb/compare/v0.4.3...v0.5.0
182
+
183
+ ## [0.4.3] - 2017-02-17
184
+
185
+ Release notes: https://github.com/DataDog/dd-trace-rb/releases/tag/v0.4.3
186
+
187
+ Git diff: https://github.com/DataDog/dd-trace-rb/compare/v0.4.2...v0.4.3
188
+
189
+ ## [0.4.2] - 2017-02-14
190
+
191
+ Release notes: https://github.com/DataDog/dd-trace-rb/releases/tag/v0.4.2
192
+
193
+ Git diff: https://github.com/DataDog/dd-trace-rb/compare/v0.4.1...v0.4.2
194
+
195
+ ## [0.4.1] - 2017-02-14
196
+
197
+ Release notes: https://github.com/DataDog/dd-trace-rb/releases/tag/v0.4.1
198
+
199
+ Git diff: https://github.com/DataDog/dd-trace-rb/compare/v0.4.0...v0.4.1
200
+
201
+ ## [0.4.0] - 2017-01-24
202
+
203
+ Release notes: https://github.com/DataDog/dd-trace-rb/releases/tag/v0.4.0
204
+
205
+ Git diff: https://github.com/DataDog/dd-trace-rb/compare/v0.3.1...v0.4.0
206
+
207
+ ## [0.3.1] - 2017-01-23
208
+
209
+ Release notes: https://github.com/DataDog/dd-trace-rb/releases/tag/v0.3.1
210
+
211
+ Git diff: https://github.com/DataDog/dd-trace-rb/compare/v0.3.0...v0.3.1
212
+
213
+ [Unreleased (stable)]: https://github.com/DataDog/dd-trace-rb/compare/v0.11.3...master
214
+ [Unreleased (beta)]: https://github.com/DataDog/dd-trace-rb/compare/v0.12.0.beta2...0.12-dev
215
+ [0.12.0.beta2]: https://github.com/DataDog/dd-trace-rb/compare/v0.12.0.beta1...v0.12.0.beta2
216
+ [0.12.0.beta1]: https://github.com/DataDog/dd-trace-rb/compare/v0.11.2...v0.12.0.beta1
217
+ [0.11.3]: https://github.com/DataDog/dd-trace-rb/compare/v0.11.2...v0.11.3
218
+ [0.11.2]: https://github.com/DataDog/dd-trace-rb/compare/v0.11.1...v0.11.2
219
+ [0.11.1]: https://github.com/DataDog/dd-trace-rb/compare/v0.11.0...v0.11.1
220
+ [0.11.0]: https://github.com/DataDog/dd-trace-rb/compare/v0.10.0...v0.11.0
221
+ [0.11.0.beta2]: https://github.com/DataDog/dd-trace-rb/compare/v0.11.0.beta1...v0.11.0.beta2
222
+ [0.11.0.beta1]: https://github.com/DataDog/dd-trace-rb/compare/v0.10.0...v0.11.0.beta1
223
+ [0.10.0]: https://github.com/DataDog/dd-trace-rb/compare/v0.9.2...v0.10.0
224
+ [0.9.2]: https://github.com/DataDog/dd-trace-rb/compare/v0.9.1...v0.9.2
225
+ [0.9.1]: https://github.com/DataDog/dd-trace-rb/compare/v0.9.0...v0.9.1
226
+ [0.9.0]: https://github.com/DataDog/dd-trace-rb/compare/v0.8.2...v0.9.0
227
+ [0.8.2]: https://github.com/DataDog/dd-trace-rb/compare/v0.8.1...v0.8.2
228
+ [0.8.1]: https://github.com/DataDog/dd-trace-rb/compare/v0.8.0...v0.8.1
229
+ [0.8.0]: https://github.com/DataDog/dd-trace-rb/compare/v0.7.2...v0.8.0
230
+ [0.7.2]: https://github.com/DataDog/dd-trace-rb/compare/v0.7.1...v0.7.2
231
+ [0.7.1]: https://github.com/DataDog/dd-trace-rb/compare/v0.7.0...v0.7.1
232
+ [0.7.0]: https://github.com/DataDog/dd-trace-rb/compare/v0.6.2...v0.7.0
233
+ [0.6.2]: https://github.com/DataDog/dd-trace-rb/compare/v0.6.1...v0.6.2
234
+ [0.6.1]: https://github.com/DataDog/dd-trace-rb/compare/v0.6.0...v0.6.1
235
+ [0.6.0]: https://github.com/DataDog/dd-trace-rb/compare/v0.5.0...v0.6.0
236
+ [0.5.0]: https://github.com/DataDog/dd-trace-rb/compare/v0.4.3...v0.5.0
237
+ [0.4.3]: https://github.com/DataDog/dd-trace-rb/compare/v0.4.2...v0.4.3
238
+ [0.4.2]: https://github.com/DataDog/dd-trace-rb/compare/v0.4.1...v0.4.2
239
+ [0.4.1]: https://github.com/DataDog/dd-trace-rb/compare/v0.4.0...v0.4.1
240
+ [0.4.0]: https://github.com/DataDog/dd-trace-rb/compare/v0.3.1...v0.4.0
241
+ [0.3.1]: https://github.com/DataDog/dd-trace-rb/compare/v0.3.0...v0.3.1
242
+ [0.3.0]: https://github.com/DataDog/dd-trace-rb/compare/v0.2.0...v0.3.0
243
+ [0.2.0]: https://github.com/DataDog/dd-trace-rb/compare/v0.1.5...v0.2.0
244
+ [0.1.5]: https://github.com/DataDog/dd-trace-rb/compare/v0.1.4...v0.1.5
245
+ [0.1.4]: https://github.com/DataDog/dd-trace-rb/compare/v0.1.3...v0.1.4
246
+ [0.1.3]: https://github.com/DataDog/dd-trace-rb/compare/v0.1.2...v0.1.3
247
+ [0.1.2]: https://github.com/DataDog/dd-trace-rb/compare/v0.1.1...v0.1.2
248
+ [0.1.1]: https://github.com/DataDog/dd-trace-rb/compare/v0.1.0...v0.1.1
data/README.md CHANGED
@@ -14,21 +14,23 @@ You can find the latest documentation on [rubydoc.info][docs]
14
14
 
15
15
  Install the Ruby client with the ``gem`` command:
16
16
 
17
- gem install ddtrace
17
+ ```
18
+ gem install ddtrace
19
+ ```
18
20
 
19
21
  If you're using ``Bundler``, just update your ``Gemfile`` as follows:
20
22
 
21
23
  ```ruby
22
- source 'https://rubygems.org'
24
+ source 'https://rubygems.org'
23
25
 
24
- # tracing gem
25
- gem 'ddtrace'
26
+ # tracing gem
27
+ gem 'ddtrace'
26
28
  ```
27
29
 
28
30
  To use a development/preview version, use:
29
31
 
30
32
  ```ruby
31
- gem 'ddtrace', :github => 'DataDog/dd-trace-rb', :branch => 'me/my-feature-branch'
33
+ gem 'ddtrace', :github => 'DataDog/dd-trace-rb', :branch => 'me/my-feature-branch'
32
34
  ```
33
35
 
34
36
  ### Quickstart (manual instrumentation)
@@ -38,31 +40,31 @@ Adding tracing to your code is very simple. As an example, let’s imagine we ha
38
40
  to trace requests to the home page:
39
41
 
40
42
  ```ruby
41
- require 'ddtrace'
42
- require 'sinatra'
43
- require 'active_record'
44
-
45
- # a generic tracer that you can use across your application
46
- tracer = Datadog.tracer
47
-
48
- get '/' do
49
- tracer.trace('web.request') do |span|
50
- # set some span metadata
51
- span.service = 'my-web-site'
52
- span.resource = '/'
53
- span.set_tag('http.method', request.request_method)
54
-
55
- # trace the activerecord call
56
- tracer.trace('posts.fetch') do
57
- @posts = Posts.order(created_at: :desc).limit(10)
58
- end
59
-
60
- # trace the template rendering
61
- tracer.trace('template.render') do
62
- erb :index
63
- end
64
- end
43
+ require 'ddtrace'
44
+ require 'sinatra'
45
+ require 'active_record'
46
+
47
+ # a generic tracer that you can use across your application
48
+ tracer = Datadog.tracer
49
+
50
+ get '/' do
51
+ tracer.trace('web.request') do |span|
52
+ # set some span metadata
53
+ span.service = 'my-web-site'
54
+ span.resource = '/'
55
+ span.set_tag('http.method', request.request_method)
56
+
57
+ # trace the activerecord call
58
+ tracer.trace('posts.fetch') do
59
+ @posts = Posts.order(created_at: :desc).limit(10)
60
+ end
61
+
62
+ # trace the template rendering
63
+ tracer.trace('template.render') do
64
+ erb :index
65
65
  end
66
+ end
67
+ end
66
68
  ```
67
69
 
68
70
  ### Quickstart (integration)
@@ -71,20 +73,20 @@ Instead of doing the above manually, whenever an integration is available,
71
73
  you can activate it. The example above would become:
72
74
 
73
75
  ```ruby
74
- require 'ddtrace'
75
- require 'sinatra'
76
- require 'active_record'
77
-
78
- Datadog.configure do |c|
79
- c.use :sinatra
80
- c.use :active_record
81
- end
82
-
83
- # now write your code naturally, it's traced automatically
84
- get '/' do
85
- @posts = Posts.order(created_at: :desc).limit(10)
86
- erb :index
87
- end
76
+ require 'ddtrace'
77
+ require 'sinatra'
78
+ require 'active_record'
79
+
80
+ Datadog.configure do |c|
81
+ c.use :sinatra
82
+ c.use :active_record
83
+ end
84
+
85
+ # now write your code naturally, it's traced automatically
86
+ get '/' do
87
+ @posts = Posts.order(created_at: :desc).limit(10)
88
+ erb :index
89
+ end
88
90
  ```
89
91
 
90
92
  This will automatically trace any app inherited from `Sinatra::Application`.
@@ -92,14 +94,26 @@ To trace apps inherited from `Sinatra::Base`, you should manually register
92
94
  the tracer inside your class.
93
95
 
94
96
  ```ruby
95
- require "ddtrace"
96
- require "ddtrace/contrib/sinatra/tracer"
97
+ require "ddtrace"
98
+ require "ddtrace/contrib/sinatra/tracer"
97
99
 
98
- class App < Sinatra::Base
99
- register Datadog::Contrib::Sinatra::Tracer
100
- end
100
+ class App < Sinatra::Base
101
+ register Datadog::Contrib::Sinatra::Tracer
102
+ end
101
103
  ```
102
104
 
105
+ To configure the Datadog Tracer, you can define the `configure` block as follows:
106
+
107
+ ```ruby
108
+ Datadog.configure do |c|
109
+ c.tracer enabled: false, hostname: 'trace-agent.local'
110
+ # [...]
111
+ end
112
+ ```
113
+
114
+ For a list of available options, check the [Tracer documentation](http://gems.datadoghq.com/trace/docs/#Configure_the_tracer).
115
+
116
+
103
117
  To know if a given framework or lib is supported by our client,
104
118
  please consult our [integrations][contrib] list.
105
119
 
data/Rakefile CHANGED
@@ -258,6 +258,13 @@ task :ci do
258
258
  sh 'rvm $RAILS5_VERSIONS --verbose do appraisal rails5-postgres rake test:railsdisableenv'
259
259
  # RSpec
260
260
  sh 'rvm $LAST_STABLE --verbose do rake benchmark'
261
+ sh 'rvm $RAILS3_VERSIONS --verbose do appraisal rails30-postgres rake spec:rails'
262
+ sh 'rvm $RAILS3_VERSIONS --verbose do appraisal rails32-mysql2 rake spec:rails'
263
+ sh 'rvm $RAILS3_VERSIONS --verbose do appraisal rails32-postgres rake spec:rails'
264
+ sh 'rvm $RAILS4_VERSIONS --verbose do appraisal rails4-mysql2 rake spec:rails'
265
+ sh 'rvm $RAILS4_VERSIONS --verbose do appraisal rails4-postgres rake spec:rails'
266
+ sh 'rvm $RAILS5_VERSIONS --verbose do appraisal rails5-mysql2 rake spec:rails'
267
+ sh 'rvm $RAILS5_VERSIONS --verbose do appraisal rails5-postgres rake spec:rails'
261
268
  else
262
269
  puts 'Too many workers than parallel tasks'
263
270
  end
@@ -657,7 +657,7 @@ pipeline using the method `Datadog::Pipeline.before_flush`:
657
657
  Datadog::Pipeline.before_flush(
658
658
  # filter the Span if the given block evaluates true
659
659
  Datadog::Pipeline::SpanFilter.new { |span| span.resource =~ /PingController/ },
660
- Datadog::Pipeline::SpanFilter.new { |span| span.get_tag('host') == 'localhost' }
660
+ Datadog::Pipeline::SpanFilter.new { |span| span.get_tag('host') == 'localhost' },
661
661
 
662
662
  # alter the Span updating fields or tags
663
663
  Datadog::Pipeline::SpanProcessor.new { |span| span.resource.gsub!(/password=.*/, '') }
@@ -12,7 +12,7 @@ gem "redis", "< 4.0"
12
12
  gem "hiredis"
13
13
  gem "sinatra"
14
14
  gem "sqlite3"
15
- gem "activerecord"
15
+ gem "activerecord", "< 5.1.5"
16
16
  gem "sidekiq"
17
17
  gem "aws-sdk"
18
18
  gem "sucker_punch"