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: 827a7829337053744028ad86912540d8206f0799
4
- data.tar.gz: 4299a493da2c76dc4a3b64a5ab554516d307c830
3
+ metadata.gz: 4398a69bca51143842a23fb69c077ecf7693d811
4
+ data.tar.gz: b8c0f572fb4a08a0c499930818ad7980dc108650
5
5
  SHA512:
6
- metadata.gz: 9d8d6e5953cc59819c130dbb76fb2590127857632c4dcb10c30b08c793cac231a466aff6faf64f22c01b2588fa4ac674a7cd88e8e299cc9d5624ee010ee7a776
7
- data.tar.gz: 93a6661b8c65733873cfcf585538933b8ea939c6fc84a9d674ae483cb30f2f6be81913afb68ad25f3945270bf25524d4f71966b0a4ee4f1a15b8c8ea3ef45963
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, :framework_elapsed
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.framework_elapsed = absolute_time(finished_at.to_datetime) - absolute_time(started_at.to_datetime)
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
- framework_elapsed: framework_elapsed,
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,
@@ -1,3 +1,3 @@
1
1
  module AlacrityRails
2
- VERSION = '0.0.4'
2
+ VERSION = '0.0.5'
3
3
  end
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
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-26 00:00:00.000000000 Z
11
+ date: 2017-01-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails