rails_performance 1.0.5 → 1.0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +7 -0
- data/lib/rails_performance/version.rb +1 -1
- data/lib/rails_performance.rb +1 -1
- 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: ea4ad2cf70bd1a77a745bb88a435280cbd8eb900fb2744eb1a968c4892b526e3
|
4
|
+
data.tar.gz: a51363668bf96e043bd09fff2c20921982aabbcd04b5e94f506ed717b2812a0a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c6323e3c518c12473f4f67c9cc30fb986e6391613b066901f156090a6917a085cf561931d33e0d8e4d6538beee538962b1fd9d48a02883a028178e1598d1b9e
|
7
|
+
data.tar.gz: b098bd3cfd4375250eb7acb4492a486ef1ce5a676df778e9a0bcd25a421ff860a4d2355f8704c3260b02d36e66d11e67a2767dbfb80b3bfbf9497b43116f93b6
|
data/README.md
CHANGED
@@ -135,6 +135,13 @@ Rails.application.routes.draw do
|
|
135
135
|
end
|
136
136
|
```
|
137
137
|
|
138
|
+
### Custom data
|
139
|
+
|
140
|
+
You need to configure `config.custom_data_proc`. And you can capture current_user, HTTP User Agent, etc. This proc is executed inside middleware, and you have access to Rack "env".
|
141
|
+
|
142
|
+
![Custom Data](docs/custom_data.png)
|
143
|
+
|
144
|
+
|
138
145
|
### Custom events
|
139
146
|
|
140
147
|
```ruby
|
data/lib/rails_performance.rb
CHANGED