wildsight 0.1.9 → 0.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d7d5b0c2a3577d5d798e4eb5443d1d87ba8a9007
4
- data.tar.gz: f38059892f4402249b575a647b48f91c39b92b5b
3
+ metadata.gz: c4ebce21cab0b49ddd1374d0a89fbc62f7836ccd
4
+ data.tar.gz: 36921441105a13ca94c978892252307f0245eed9
5
5
  SHA512:
6
- metadata.gz: 7cfb38035446e1419b26784416e74cf583f671ffc2c8f2794bb16d958b1cbf1157f64a0fdeac1c47f936a31333d44cf5e6d4cf16f73addc967b3449cf84f3f9a
7
- data.tar.gz: ea8caec4d8591166532f66d08f1fef586010d0e8e242037f02f96aa8a4ba9dc5c9b543a4f0d3020f20f6e5a160a3f4055f5413a95354d8d1ebd33b67c734ab03
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
- context.request[:metrics][:database] = args[4][:db_runtime] || 0
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
 
@@ -1,3 +1,3 @@
1
1
  module Wildsight
2
- VERSION = '0.1.9'
2
+ VERSION = '0.1.10'
3
3
  end
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.9
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-09 00:00:00.000000000 Z
12
+ date: 2016-06-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: multi_json