rorvswild 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rorvswild/version.rb +1 -1
- data/lib/rorvswild.rb +3 -2
- 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: 70d2e0a1c6c2b85f064696e0b987652e107c2036
|
4
|
+
data.tar.gz: a4bdebdd5d69f383d7c52015bc3cd36c1eef7424
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4caea6d24fbc53037c269b6926ff0aca89c7b0ed96aac7f0ee377144edfcc0d40a2e5f1f731a137c862e3e39eec5a2be6201afbaec0ae49def13782a63feeb41
|
7
|
+
data.tar.gz: 9d9aa424ecb40ff187fd8ea26f28787845567bcdefe4efcb453e8c136790d9f424e47c13f794d947b63d03f13222cdc6037cd6ff0c7b49d4052b3c1a3e18c89f
|
data/lib/rorvswild/version.rb
CHANGED
data/lib/rorvswild.rb
CHANGED
@@ -80,6 +80,7 @@ module RorVsWild
|
|
80
80
|
request[:view_runtime] = (payload[:view_runtime] || 0).round
|
81
81
|
request[:other_runtime] = compute_duration(start, finish) - request[:db_runtime] - request[:view_runtime]
|
82
82
|
error[:parameters] = filter_sensitive_data(payload[:params]) if error
|
83
|
+
attributes = request.merge(queries: slowest_queries, views: slowest_views, error: error)
|
83
84
|
Thread.new { post_request }
|
84
85
|
rescue => exception
|
85
86
|
log_error(exception)
|
@@ -211,8 +212,8 @@ module RorVsWild
|
|
211
212
|
rescue => ex
|
212
213
|
end
|
213
214
|
|
214
|
-
def post_request
|
215
|
-
post("/requests", request:
|
215
|
+
def post_request(attributes)
|
216
|
+
post("/requests", request: attributes)
|
216
217
|
rescue => exception
|
217
218
|
log_error(exception)
|
218
219
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rorvswild
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alexis Bernard
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-03-
|
11
|
+
date: 2015-03-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|