rails_performance 0.9.0 → 0.9.0.1

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: fe073c7658af65303c6efc61dbaa973edba22d21c2991e715d523b6f4c96dc5f
4
- data.tar.gz: bf7780ef55eab59d2974b990eba4e2afad26b78683f685fb8383b4df4d8ada30
3
+ metadata.gz: f448780915ccb27d02015c9b9b4d011ae318175c5564ae33643fcf0c0a3ecd2f
4
+ data.tar.gz: cd3f09c47e39ab49a35df35ff83f0f604e76758ebea92a424e5a817e6eef7294
5
5
  SHA512:
6
- metadata.gz: b223eb60dc1dc48c64a577d39d2bf34073ff916d0b73ad5f507a74bedc0f9a2aa5af5cc33ec9bc063b12cc441a572f99d4e8c68362935f74f2f9084c6d8b6ca0
7
- data.tar.gz: 7b030743ca075f02c38b4448ec0c1ad369a09d094dc381aba5c834c40ee245ccfe9511c939fa7d08e0e42d253c9b06817d4b6bc7d80c6b9d5f8bab7835472e7e
6
+ metadata.gz: '0891876b6e5aa7826da42d1a58800b574c5d0d987c286ae836c31a493adea505cd5d407f833b681f72e66526dbbfa6da05a16b7562002f328c150c1070beee4a'
7
+ data.tar.gz: eab4c06078ef53261b90f7063c54859d39157e1999f27674db5f7f7dab3c30fe2fb87fa1013502f0910a0ea36e24e46ec2d22251e3c4707220d58fb5c61370c4
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Self-hosted tool to monitor the performance of your Ruby on Rails application.
4
4
 
5
- This is **simple and free alternative** to New Relic, Datadog or other similar services.
5
+ This is **simple and free alternative** to the New Relic APM, Datadog or other similar services.
6
6
 
7
7
  It allows you to track:
8
8
 
@@ -13,14 +13,16 @@ It allows you to track:
13
13
  - SQL queries, rendering log in recent requests
14
14
  - simple 500-crashes reports
15
15
 
16
- All data is stored in local Redis and not sent to 3rd party servers.
16
+ All data are stored in `local` Redis and not sent to any 3rd party servers.
17
17
 
18
18
  ## Production
19
19
 
20
- Gem is production-ready. At least on my applications with ~800 unique users per day it works well.
20
+ Gem is production-ready. At least on my 2 applications with ~800 unique users per day it works perfect.
21
21
 
22
22
  ## Usage
23
23
 
24
+ Default configulation is listed below. But you can overide it.
25
+
24
26
  Create `config/initializers/rails_performance.rb`
25
27
 
26
28
  ```ruby
@@ -62,7 +64,6 @@ After installation and configuration, start your Rails application, make a few r
62
64
  ## Limitations
63
65
 
64
66
  - it doesn't track params of POST/PUT requests
65
- - it doesn't track SQL queries (at least for now)
66
67
  - it doesn't track Redis/ElasticSearch or other apps
67
68
  - it can't compare historical data
68
69
  - depending on your load you may need to reduce time of for how long you store data, because all calculations are done in memory and it could take some time for high-load apps
@@ -93,6 +94,7 @@ The idea of this gem grew from curriosity how many RPM my app receiving per day.
93
94
  ## TODO
94
95
 
95
96
  - documentation in Readme
97
+ - capture stacktrace of 500 errors and show in side panel
96
98
  - generator for initial config
97
99
  - CI for tests
98
100
  - time/zone config?
@@ -108,10 +110,11 @@ The idea of this gem grew from curriosity how many RPM my app receiving per day.
108
110
  - number of requests last 24 hours, hour, etc.
109
111
  - collect deprecation.rails
110
112
  - fix misspellings?
113
+ - show "loading banner" until jquery is loaded?
111
114
 
112
115
  ## Contributing
113
116
 
114
- You are welcome to contribute.
117
+ You are welcome to contribute. I've a big list of TODO.
115
118
 
116
119
  ## License
117
120
 
@@ -29,7 +29,7 @@ class RailsPerformanceController < BaseController
29
29
 
30
30
  respond_to do |format|
31
31
  format.js {}
32
- format.any { render plain: "Doesn't open in new window" }
32
+ format.any { render plain: "Doesn't open in new window. Wait until full page load." }
33
33
  end
34
34
  end
35
35
 
@@ -39,7 +39,7 @@ class RailsPerformanceController < BaseController
39
39
  @data = @report.data
40
40
  respond_to do |format|
41
41
  format.js {}
42
- format.any { render plain: "Doesn't open in new window" }
42
+ format.any { render plain: "Doesn't open in new window. Wait until full page load." }
43
43
  end
44
44
  end
45
45
 
@@ -9,7 +9,7 @@ module RailsPerformanceHelper
9
9
  def duraction_alert_class(duration_str)
10
10
  if duration_str.to_s =~ /(\d+.?\d+?)/
11
11
  duration = $1.to_f
12
- if duration >= 100
12
+ if duration >= 500
13
13
  'has-background-danger has-text-white-bis'
14
14
  elsif duration >= 200
15
15
  'has-background-warning has-text-black-ter'
@@ -20,6 +20,4 @@
20
20
  </tr>
21
21
  <% end %>
22
22
  </tbody>
23
- </table>
24
-
25
- <br/>
23
+ </table>
@@ -1,3 +1,3 @@
1
1
  module RailsPerformance
2
- VERSION = '0.9.0'
2
+ VERSION = '0.9.0.1'
3
3
  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: 0.9.0
4
+ version: 0.9.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Igor Kasyanchuk
@@ -80,7 +80,8 @@ dependencies:
80
80
  - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
- description: Track number of requests to your app
83
+ description: 3rd party dependency-free solution how to monitor performance of your
84
+ Rails applications.
84
85
  email:
85
86
  - igorkasyanchuk@gmail.com
86
87
  executables: []
@@ -168,5 +169,6 @@ requirements: []
168
169
  rubygems_version: 3.0.6
169
170
  signing_key:
170
171
  specification_version: 4
171
- summary: Track number of requests to your app
172
+ summary: Simple Rails Performance tracker. Alternative to the NewRelic, Datadog or
173
+ other services.
172
174
  test_files: []