rails_performance 0.9.3 → 0.9.4

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
  SHA256:
3
- metadata.gz: 7083cafce2bc5cd518d4569636fbf29b6f3b9d6988b29934f9b20fd78409ab2b
4
- data.tar.gz: afa5ae508905a5ecd70a61502aae297f7b54e9657055e04de5aae3175a670fef
3
+ metadata.gz: d6532a46e577225137d7fbd9baae88b245157d75c4091690f73209886b6c6c15
4
+ data.tar.gz: 7946da511a5e589a854af1bef20c642de207004c4f860353657c92c895e2c485
5
5
  SHA512:
6
- metadata.gz: 2a3e8737e2dcf02ee5816e26c518d160b76e4eeb24ba029be79a2a8070df327cd1f18051ce2310a6d2888de17f2b8b1e6186664994217d13c87ccfce8b6d5b58
7
- data.tar.gz: 761c2d6f4f4be425f7c59acb5eed4b7df31d42c0deebf6320e9893b4b97fbfba3f46405ad21e04591896503809ce998d5042e2ce6a8f9302141e30517c264c39
6
+ metadata.gz: 7c5a8d54bb4670dfe84cd720410dc30cab1facadcbac0f6457a41c2954d8ab66726728ebff333f1778ebdbcb3525806b01594619a0bf054a9e9c8eb3dfd9ab72
7
+ data.tar.gz: b7c6cda16e208941173e3aeaa7d3f5cc282a79d9b4077645364e341b0b30ad169133db769744abb24eefb34b7357145492047cf4a7041b505544df758783836e
data/README.md CHANGED
@@ -17,6 +17,7 @@ It allows you to track:
17
17
  - SQL queries, rendering logs in "Recent Requests" section
18
18
  - simple 500-crashes reports
19
19
  - track Sidekiq jobs performance
20
+ - works with Rails 4.2+ (and probably 4.1, 4.0 too)
20
21
 
21
22
  All data are stored in `local` Redis and not sent to any 3rd party servers.
22
23
 
@@ -5,6 +5,7 @@
5
5
  <table class="table is-fullwidth is-hoverable is-narrow">
6
6
  <thead>
7
7
  <tr>
8
+ <th data-sort="string"></th>
8
9
  <th data-sort="string">Datetime</th>
9
10
  <th data-sort="string">Controller#action</th>
10
11
  <th data-sort="string">Method</th>
@@ -25,6 +26,13 @@
25
26
  <% end %>
26
27
  <% @data.each do |e| %>
27
28
  <tr>
29
+ <td>
30
+ <% if e[:request_id].present? %>
31
+ <%= link_to rails_performance.rails_performance_trace_path(id: e[:request_id]), remote: true do %>
32
+ <span class="stats_icon_max"><%= icon 'activity' %></span>
33
+ <% end %>
34
+ <% end %>
35
+ </td>
28
36
  <td><%= format_datetime e[:datetime] %></td>
29
37
  <td><%= link_to e[:controller] + '#' + e[:action], rails_performance.rails_performance_summary_path({controller_eq: e[:controller], action_eq: e[:action]}), remote: true %></td>
30
38
  <td><%= e[:method] %></td>
@@ -6,6 +6,10 @@ module RailsPerformance
6
6
  end
7
7
 
8
8
  def call(env)
9
+ dup.call!(env)
10
+ end
11
+
12
+ def call!(env)
9
13
  @status, @headers, @response = @app.call(env)
10
14
 
11
15
  #t = Time.now
@@ -1,3 +1,3 @@
1
1
  module RailsPerformance
2
- VERSION = '0.9.3'
2
+ VERSION = '0.9.4'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_performance
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.3
4
+ version: 0.9.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Igor Kasyanchuk
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-06-03 00:00:00.000000000 Z
11
+ date: 2020-08-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails