ddtrace 0.9.1 → 0.9.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ddtrace/contrib/rails/core_extensions.rb +12 -12
- data/lib/ddtrace/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c67b70da15b11329601d55d07a79c4a9ce28173a
|
4
|
+
data.tar.gz: 5758cdd918f573731673bd41c05a7f2e2d5d1fe2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ee13f333805a8cfadf6e6bd6a125f636f29ce8e26e5bc71be9abacedf15a81af3dfbafc724c97dad4694899272bf5bfd152ae2eefa533cf70093ab1c2b20566
|
7
|
+
data.tar.gz: 256cb5ae9b387ba0fbb02b091cb044de139e561e524f895433a16a4e27659a5962966cd3c65495bbe3d073c28d520c685f5f093c809f2f439c9929dde9ebdb7f
|
@@ -190,7 +190,7 @@ module Datadog
|
|
190
190
|
cache_store_class(:read).class_eval do
|
191
191
|
alias_method :read_without_datadog, :read
|
192
192
|
def read(*args, &block)
|
193
|
-
|
193
|
+
payload = {
|
194
194
|
action: 'GET',
|
195
195
|
key: args[0],
|
196
196
|
tracing_context: {}
|
@@ -198,7 +198,7 @@ module Datadog
|
|
198
198
|
|
199
199
|
begin
|
200
200
|
# process and catch cache exceptions
|
201
|
-
Datadog::Contrib::Rails::ActiveSupport.start_trace_cache(
|
201
|
+
Datadog::Contrib::Rails::ActiveSupport.start_trace_cache(payload)
|
202
202
|
read_without_datadog(*args, &block)
|
203
203
|
rescue Exception => e
|
204
204
|
payload[:exception] = [e.class.name, e.message]
|
@@ -206,7 +206,7 @@ module Datadog
|
|
206
206
|
raise e
|
207
207
|
end
|
208
208
|
ensure
|
209
|
-
Datadog::Contrib::Rails::ActiveSupport.finish_trace_cache(
|
209
|
+
Datadog::Contrib::Rails::ActiveSupport.finish_trace_cache(payload)
|
210
210
|
end
|
211
211
|
end
|
212
212
|
end
|
@@ -215,7 +215,7 @@ module Datadog
|
|
215
215
|
cache_store_class(:fetch).class_eval do
|
216
216
|
alias_method :fetch_without_datadog, :fetch
|
217
217
|
def fetch(*args, &block)
|
218
|
-
|
218
|
+
payload = {
|
219
219
|
action: 'GET',
|
220
220
|
key: args[0],
|
221
221
|
tracing_context: {}
|
@@ -223,7 +223,7 @@ module Datadog
|
|
223
223
|
|
224
224
|
begin
|
225
225
|
# process and catch cache exceptions
|
226
|
-
Datadog::Contrib::Rails::ActiveSupport.start_trace_cache(
|
226
|
+
Datadog::Contrib::Rails::ActiveSupport.start_trace_cache(payload)
|
227
227
|
fetch_without_datadog(*args, &block)
|
228
228
|
rescue Exception => e
|
229
229
|
payload[:exception] = [e.class.name, e.message]
|
@@ -231,7 +231,7 @@ module Datadog
|
|
231
231
|
raise e
|
232
232
|
end
|
233
233
|
ensure
|
234
|
-
Datadog::Contrib::Rails::ActiveSupport.finish_trace_cache(
|
234
|
+
Datadog::Contrib::Rails::ActiveSupport.finish_trace_cache(payload)
|
235
235
|
end
|
236
236
|
end
|
237
237
|
end
|
@@ -240,7 +240,7 @@ module Datadog
|
|
240
240
|
cache_store_class(:write).class_eval do
|
241
241
|
alias_method :write_without_datadog, :write
|
242
242
|
def write(*args, &block)
|
243
|
-
|
243
|
+
payload = {
|
244
244
|
action: 'SET',
|
245
245
|
key: args[0],
|
246
246
|
tracing_context: {}
|
@@ -248,7 +248,7 @@ module Datadog
|
|
248
248
|
|
249
249
|
begin
|
250
250
|
# process and catch cache exceptions
|
251
|
-
Datadog::Contrib::Rails::ActiveSupport.start_trace_cache(
|
251
|
+
Datadog::Contrib::Rails::ActiveSupport.start_trace_cache(payload)
|
252
252
|
write_without_datadog(*args, &block)
|
253
253
|
rescue Exception => e
|
254
254
|
payload[:exception] = [e.class.name, e.message]
|
@@ -256,7 +256,7 @@ module Datadog
|
|
256
256
|
raise e
|
257
257
|
end
|
258
258
|
ensure
|
259
|
-
Datadog::Contrib::Rails::ActiveSupport.finish_trace_cache(
|
259
|
+
Datadog::Contrib::Rails::ActiveSupport.finish_trace_cache(payload)
|
260
260
|
end
|
261
261
|
end
|
262
262
|
end
|
@@ -265,7 +265,7 @@ module Datadog
|
|
265
265
|
cache_store_class(:delete).class_eval do
|
266
266
|
alias_method :delete_without_datadog, :delete
|
267
267
|
def delete(*args, &block)
|
268
|
-
|
268
|
+
payload = {
|
269
269
|
action: 'DELETE',
|
270
270
|
key: args[0],
|
271
271
|
tracing_context: {}
|
@@ -273,7 +273,7 @@ module Datadog
|
|
273
273
|
|
274
274
|
begin
|
275
275
|
# process and catch cache exceptions
|
276
|
-
Datadog::Contrib::Rails::ActiveSupport.start_trace_cache(
|
276
|
+
Datadog::Contrib::Rails::ActiveSupport.start_trace_cache(payload)
|
277
277
|
delete_without_datadog(*args, &block)
|
278
278
|
rescue Exception => e
|
279
279
|
payload[:exception] = [e.class.name, e.message]
|
@@ -281,7 +281,7 @@ module Datadog
|
|
281
281
|
raise e
|
282
282
|
end
|
283
283
|
ensure
|
284
|
-
Datadog::Contrib::Rails::ActiveSupport.finish_trace_cache(
|
284
|
+
Datadog::Contrib::Rails::ActiveSupport.finish_trace_cache(payload)
|
285
285
|
end
|
286
286
|
end
|
287
287
|
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.9.
|
4
|
+
version: 0.9.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: 2017-11-
|
11
|
+
date: 2017-11-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: msgpack
|