rack-metrics 0.2.5 → 0.2.6

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: 5002109a08160a5d0f55171e8f799832ab8dbd9b
4
- data.tar.gz: 6d2568ad6598c233a70e95a1d8e20468babf3549
3
+ metadata.gz: ebeffdd1f5bd3c0eb9558629fb48c55bd16a5c13
4
+ data.tar.gz: f962d9ddb66a3376d32dfaff192cba08c30705e1
5
5
  SHA512:
6
- metadata.gz: 6603ddd20836e68491f8db407a53a3929ab4ac5f6efdee24c7d4e8ece461f43649bb18957ada7307fee084c0ef0cae44f3ed4d3c80cd89b0ee74a5b4416ddca0
7
- data.tar.gz: 6378d97c264e2af57121959ad37c995c2f0975c40798b38df73918a2e1f7eb8f909a7177b25ad79d10a05280adfd6b09a9477301b6086d939e8862cf0bf3fa25
6
+ metadata.gz: 816990de8d1a6c5e38c543397aee54abf3897a525fe1024f90d9ca762ea1a1a60cec36d07c17c2f41df420ed995c0559c54d3432d96c51106215e5d168a0f00a
7
+ data.tar.gz: 91d97b32fccbbde4cb6bf5c51d9bd00292da85fac09babb0917a9fdc8964cdd8f5e81ab589fb168bd32bce557af364a64759647480fdfe1fcfdb5ad4c88c9f5e
@@ -38,12 +38,16 @@ module Rack
38
38
  end
39
39
 
40
40
  ActiveSupport::Notifications.subscribe "render_template.action_view" do |name, time, finished, transaction_id, payload|
41
- Metrics.current.template.name = name
42
- Metrics.current.template.time = time
43
- Metrics.current.template.end = finished
44
- Metrics.current.template.transaction_id = transaction_id
45
- Metrics.current.template.payload = payload
46
- Metrics.current.template.payload[:identifier] = Metrics.current.template.payload[:identifier].gsub("#{Rails.root}/", '') unless Metrics.current.template.payload[:identifier].nil?
41
+ begin
42
+ Metrics.current.template.name = name
43
+ Metrics.current.template.time = time
44
+ Metrics.current.template.end = finished
45
+ Metrics.current.template.transaction_id = transaction_id
46
+ Metrics.current.template.payload = payload
47
+ Metrics.current.template.payload[:identifier] = Metrics.current.template.payload[:identifier].gsub("#{Rails.root}/", '') unless Metrics.current.template.payload[:identifier].nil?
48
+ rescue Exception => e
49
+ Metrics.log("[Rack-Metrics] exception raised: #{e.inspect}")
50
+ end
47
51
  end
48
52
 
49
53
  ActiveSupport::Notifications.subscribe "start_render_partial.action_view" do |*args|
@@ -1,5 +1,5 @@
1
1
  module Rack
2
2
  module Metrics
3
- VERSION = "0.2.5"
3
+ VERSION = "0.2.6"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-metrics
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Greg Molnar