alacrity-rails 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4398a69bca51143842a23fb69c077ecf7693d811
|
4
|
+
data.tar.gz: b8c0f572fb4a08a0c499930818ad7980dc108650
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 446f14f308304152184c8008ca9e14da728b142a80f1a2f4c6b6d595e3e0822cf54c67594f82ca2e35bdd6744f4c52d365bc14c3b89ea0dd1e52df1e96ee9bbc
|
7
|
+
data.tar.gz: fb33c4ed3af30deac38dfabd97a319e65e2b60c6691fa0e7a83c2aafd85b765f06afba3ec3ab6175b76e25167403fbfb869dd1cc9061a8bd3b3f70668cdcd29f
|
@@ -1,7 +1,8 @@
|
|
1
1
|
module AlacrityRails::Transaction
|
2
2
|
class WebTransaction < Base
|
3
3
|
attr_accessor :url, :middleware_started_at, :controller, :action, :format,
|
4
|
-
:method, :status, :view_runtime, :db_runtime, :
|
4
|
+
:method, :status, :view_runtime, :db_runtime, :framework_started_at,
|
5
|
+
:framework_finished_at
|
5
6
|
|
6
7
|
def initialize(env={})
|
7
8
|
self.middleware_started_at = absolute_time(DateTime.now)
|
@@ -19,7 +20,8 @@ module AlacrityRails::Transaction
|
|
19
20
|
end
|
20
21
|
|
21
22
|
def store_request_metrics(started_at, finished_at, data)
|
22
|
-
self.
|
23
|
+
self.framework_started_at = absolute_time(started_at.to_datetime)
|
24
|
+
self.framework_finished_at = absolute_time(finished_at.to_datetime)
|
23
25
|
self.controller = data[:controller]
|
24
26
|
self.action = data[:action]
|
25
27
|
self.format = data[:format]
|
@@ -38,7 +40,8 @@ module AlacrityRails::Transaction
|
|
38
40
|
middleware_elapsed: middleware_finished_at - middleware_started_at,
|
39
41
|
middleware_started_at: middleware_started_at,
|
40
42
|
middleware_finished_at: middleware_finished_at,
|
41
|
-
|
43
|
+
framework_started_at: framework_started_at,
|
44
|
+
framework_finished_at: framework_finished_at,
|
42
45
|
format: format,
|
43
46
|
method: method,
|
44
47
|
status: status,
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: alacrity-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alacrity, LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-01-
|
11
|
+
date: 2017-01-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|