wildsight 0.1.9 → 0.1.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/wildsight/rails/railtie.rb +6 -2
- data/lib/wildsight/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: c4ebce21cab0b49ddd1374d0a89fbc62f7836ccd
|
4
|
+
data.tar.gz: 36921441105a13ca94c978892252307f0245eed9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 307afe32cf1f09fdaca53be7247f6039ac51eab8eb5fcb613d290a0598cbc5452df72b5dc8762d8e5dd5ca9b27cbf04a75a045d551c5178a4867db3a46139fd1
|
7
|
+
data.tar.gz: dc4d1ac0f3db627471159cf6b855b0e45176afb25914622aacd026e04a011608c7ac5d99a0c167025a33ee7b676e0183f75e42a6fb7e0ce5d1521899530ee73a
|
@@ -25,10 +25,12 @@ module Wildsight
|
|
25
25
|
|
26
26
|
context.request[:request_target] = args[4][:controller_class] + '#' + request.params['action']
|
27
27
|
|
28
|
-
puts args[4].inspect
|
29
28
|
context.request[:metrics][:rails] = (args[2] - args[1]) * 1000
|
30
29
|
context.request[:metrics][:view] = args[4][:view_runtime] || 0
|
31
|
-
|
30
|
+
|
31
|
+
if context.request[:metrics][:database] == nil || context.request[:metrics][:database] == 0
|
32
|
+
context.request[:metrics][:database] = args[4][:db_runtime] || 0
|
33
|
+
end
|
32
34
|
|
33
35
|
context.request[:method] = args[4][:method]
|
34
36
|
context.request[:path] = args[4][:path]
|
@@ -65,6 +67,8 @@ module Wildsight
|
|
65
67
|
:duration => (args[2] - args[1]) * 1000
|
66
68
|
}
|
67
69
|
context = Wildsight::Context.detect
|
70
|
+
context.request[:metrics][:database] ||= 0
|
71
|
+
context.request[:metrics][:database] += (args[2] - args[1]) * 1000
|
68
72
|
context.report_sql_query(event)
|
69
73
|
end
|
70
74
|
|
data/lib/wildsight/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wildsight
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marek Jelen
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-06-
|
12
|
+
date: 2016-06-17 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: multi_json
|