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 +4 -4
- data/app/views/rails_performance/layouts/rails_performance.html.erb +23 -11
- data/app/views/rails_performance/rails_performance/requests.html.erb +1 -1
- data/app/views/rails_performance/rails_performance/trace.js.erb +1 -1
- data/app/views/rails_performance/shared/_header.html.erb +1 -1
- data/app/views/rails_performance/stylesheets/style.css +17 -2
- data/lib/rails_performance/version.rb +1 -1
- data/lib/rails_performance.rb +4 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ce8db107a23bdd7c902fa8edcc2ebe260998e1cf7712f0a710131983b28c3fa9
|
4
|
+
data.tar.gz: 82e818c24db06fb74d6d477aba06f0841174894c23f45fab785dd6dd0f808aa8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
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
|
-
</
|
33
|
+
</footer>
|
34
|
+
|
26
35
|
<%= render '/rails_performance/panel' %>
|
27
|
-
|
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>
|
@@ -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:
|
75
|
+
height: 300px;
|
76
76
|
}
|
77
77
|
|
78
78
|
.chart_mini {
|
79
|
-
height:
|
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
|
+
}
|
data/lib/rails_performance.rb
CHANGED
@@ -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
|