rails_performance 1.3.1 → 1.3.2

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
  SHA256:
3
- metadata.gz: 3252836acfb4bfe1d62ace64e6c49633df64761b41f8aedf7286f41d9f11e889
4
- data.tar.gz: 234011eabad7794de9d5fc6c367a3cd74d6db14db48907e8f0552f67229b4160
3
+ metadata.gz: ce8db107a23bdd7c902fa8edcc2ebe260998e1cf7712f0a710131983b28c3fa9
4
+ data.tar.gz: 82e818c24db06fb74d6d477aba06f0841174894c23f45fab785dd6dd0f808aa8
5
5
  SHA512:
6
- metadata.gz: c6b3e38a15d53cf1518542972fb5d5dfcaffff218ef325d97b6bb776d987c699936fa6237de1b0f191370185dad2ecbcc52821e0d13bd0fb21b0200c063e3f51
7
- data.tar.gz: e7e77fb6229377c2550e70813f7276041c542b2bf0fa2c2c0ef00edca95d6ab82cc9802dfde0a995f4374559f0159c5224c4b21452e74fd392d9c91e9552ae69
6
+ metadata.gz: 49d48df321943a17cd226f68ace96bbebca96ab6b47dde70e6cc95fd21276338562d3e0dbe365d1133aa6cd93981d2dd0980790cac8f52512ac2fbdb3558263d
7
+ data.tar.gz: 6c3ec9d24045abc760cba57d2f3d12fe6c3ea0e35a49a138bad3bfec06ae9c8a0ebc11721c5a3c92a9f3dcad6dc80ac98d1b0d6e3fd0a2a8063b11a715dfb5e8
@@ -9,24 +9,36 @@
9
9
  <%= render '/rails_performance/stylesheets/stylesheets' %>
10
10
  <link rel="shortcut icon" href="/favicon.ico">
11
11
  </head>
12
- <body>
12
+
13
+ <body class="has-sticky-footer">
13
14
  <div class="loader-wrapper">
14
15
  <div class="loader is-loading"></div>
15
16
  </div>
16
- <section class="section">
17
- <div class="container is-fluid is-size-7">
18
- <%= render '/rails_performance/shared/header' %>
19
- <%= yield %>
20
- <div class="footer-box">
21
- © Rails Performance <span class='red'><i class="fas fa-heart"></i></span> <%= link_to 'https://github.com/igorkasyanchuk/rails_performance', 'https://github.com/igorkasyanchuk/rails_performance', target: '_blank' %>
22
- <div class="is-pulled-right">v.<%= RailsPerformance::VERSION %></div>
17
+
18
+ <div class="main-content">
19
+ <section class="section">
20
+ <div class="container is-fluid is-size-7">
21
+ <%= render '/rails_performance/shared/header' %>
22
+ <%= yield %>
23
23
  </div>
24
+ </section>
25
+ </div>
26
+
27
+ <footer class="footer footer-box">
28
+ <div class="container is-fluid is-size-7">
29
+ © Rails Performance <span class='red'><i class="fas fa-heart"></i></span>
30
+ <%= link_to 'https://github.com/igorkasyanchuk/rails_performance', 'https://github.com/igorkasyanchuk/rails_performance', target: '_blank' %>
31
+ <div class="is-pulled-right">v.<%= RailsPerformance::VERSION %></div>
24
32
  </div>
25
- </section>
33
+ </footer>
34
+
26
35
  <%= render '/rails_performance/panel' %>
27
- <div class="panel-overlay">
36
+
37
+ <div class="panel-overlay"></div>
38
+
28
39
  <%= render '/rails_performance/javascripts/javascripts' %>
29
- <%= yield :on_load %>
30
40
 
41
+ <%= yield :on_load %>
31
42
  </body>
43
+
32
44
  </html>
@@ -8,7 +8,7 @@
8
8
  <%= render "export" %>
9
9
  </div>
10
10
  </div>
11
- <table class="table is-fullwidth is-hoverable is-narrow">
11
+ <table class="table is-fullwidth is-hoverable">
12
12
  <thead>
13
13
  <tr>
14
14
  <th colspan='3'>Name</th>
@@ -1,5 +1,5 @@
1
1
  <% if @record %>
2
- window.panel.header.html(window.panel.close + "<%= j report_name(@record.record_hash) %>");
2
+ window.panel.header.html(window.panel.close + "<%= j report_name(@record.record_hash.with_indifferent_access.except(*RailsPerformance.ignore_trace_headers)) %>");
3
3
  <% else %>
4
4
  window.panel.header.html(window.panel.close);
5
5
  <% end %>
@@ -16,9 +16,9 @@
16
16
  <div class="navbar-start">
17
17
  <%= link_to 'Dashboard', rails_performance.rails_performance_url, class: "navbar-item #{active?(:dashboard)}" %>
18
18
  <%= link_to 'Requests Analysis', rails_performance.rails_performance_requests_url, class: "navbar-item #{active?(:requests)}" %>
19
- <%= link_to '500 Errors', rails_performance.rails_performance_crashes_url, class: "navbar-item #{active?(:crashes)}" %>
20
19
  <%= link_to 'Recent Requests', rails_performance.rails_performance_recent_url, class: "navbar-item #{active?(:recent)}" %>
21
20
  <%= link_to 'Slow Requests', rails_performance.rails_performance_slow_url, class: "navbar-item #{active?(:slow)}" %>
21
+ <%= link_to '500 Errors', rails_performance.rails_performance_crashes_url, class: "navbar-item #{active?(:crashes)}" %>
22
22
  <% if defined?(Sidekiq) %>
23
23
  <%= link_to 'Sidekiq', rails_performance.rails_performance_sidekiq_url, class: "navbar-item #{active?(:sidekiq)}" %>
24
24
  <% end %>
@@ -72,11 +72,11 @@
72
72
  }
73
73
 
74
74
  .chart {
75
- height: 245px;
75
+ height: 300px;
76
76
  }
77
77
 
78
78
  .chart_mini {
79
- height: 150px;
79
+ height: 200px;
80
80
  width: 720px;
81
81
  }
82
82
 
@@ -125,3 +125,18 @@ table th[data-sort] {
125
125
  .attention {
126
126
  background-color: #f6f5f5;
127
127
  }
128
+
129
+ body.has-sticky-footer {
130
+ display: flex;
131
+ min-height: 100vh;
132
+ flex-direction: column;
133
+ }
134
+
135
+ .main-content {
136
+ flex: 1;
137
+ }
138
+
139
+ .footer-box {
140
+ background-color: #f5f5f5;
141
+ padding: 1rem 0;
142
+ }
@@ -1,4 +1,4 @@
1
1
  module RailsPerformance
2
- VERSION = "1.3.1"
2
+ VERSION = "1.3.2"
3
3
  SCHEMA = "1.0.1"
4
4
  end
@@ -113,6 +113,10 @@ module RailsPerformance
113
113
  mattr_accessor :include_custom_events
114
114
  @@include_custom_events = true
115
115
 
116
+ # Trace details view configuration
117
+ mattr_accessor :ignore_trace_headers
118
+ @@ignore_trace_headers = ["datetimei"]
119
+
116
120
  def self.setup
117
121
  yield(self)
118
122
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_performance
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Igor Kasyanchuk