signalfx-tracing 2.2.1 → 2.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/signalfx/tracing/instrumentation/rails.rb +7 -3
- data/lib/signalfx/tracing/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fcb1b588a820b7e0b27f44345660f1f57d65f58a4302a0242c726c59802bf440
|
4
|
+
data.tar.gz: 75a8f68e01770b3cbf8643809deabfc562b498ba2e218b4ce5342e39f3780420
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1f7300553567c11fd5a0279501a51905f0139e0d0789da6574c2505dfe070363667019a344d51197f16498001a680215ad72f836d836314f52e7bb41c8c8afb9
|
7
|
+
data.tar.gz: b74608ad7358467df7e1d41c4d457e409e083f07270a29ba24ef0e0cbae6d6f61ae03f7c84362b080518235c6ceb46e29b3f4fcc461ae02a70c00c33eb7a18ff
|
@@ -20,15 +20,19 @@ module SignalFx
|
|
20
20
|
|
21
21
|
begin
|
22
22
|
require 'rails/instrumentation'
|
23
|
-
require 'rack/tracer'
|
24
23
|
rescue LoadError => e
|
25
24
|
puts e.message
|
26
25
|
return
|
27
26
|
end
|
28
27
|
|
29
28
|
if opts.fetch(:rack_tracer, true)
|
30
|
-
|
31
|
-
|
29
|
+
begin
|
30
|
+
# add rack middlewares
|
31
|
+
require 'rack/tracer'
|
32
|
+
::Rails.configuration.middleware.insert(0, ::Rack::Tracer)
|
33
|
+
rescue LoadError => e
|
34
|
+
puts e.message
|
35
|
+
end
|
32
36
|
end
|
33
37
|
|
34
38
|
exclude_events = opts.fetch(:exclude_events, [])
|