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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 437c85fdb48db55caa5da3b41a7b0344d05e27094637cca6f3e8f28f8a15d284
4
- data.tar.gz: c4bf8df35605e2cef8de589be79cde872d1a5d5210883140855eb0cf877562d7
3
+ metadata.gz: ea4ad2cf70bd1a77a745bb88a435280cbd8eb900fb2744eb1a968c4892b526e3
4
+ data.tar.gz: a51363668bf96e043bd09fff2c20921982aabbcd04b5e94f506ed717b2812a0a
5
5
  SHA512:
6
- metadata.gz: e54cd14676bde4b86de76a1cc73b482f51dfa9cd7529a658b70bec638e7f0d7eae1af22d60d00e959fbfbd4f3912cce2f6a5c545e8358c949bd0ba0c844e633e
7
- data.tar.gz: 7c459ccf377434021fc0d2a4348e95e49ea9ef4e741cc7d768e8f9185121bf7fe36c0cd0b6475aa03fd208cb518f764467880542eb38d994baa8484810e5074f
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
@@ -1,4 +1,4 @@
1
1
  module RailsPerformance
2
- VERSION = '1.0.5'
2
+ VERSION = '1.0.5.1'
3
3
  SCHEMA = '1.0.1'
4
4
  end
@@ -79,7 +79,7 @@ module RailsPerformance
79
79
 
80
80
  # add custom payload to the request
81
81
  mattr_accessor :custom_data_proc
82
- @@custom_data_proc = []
82
+ @@custom_data_proc = nil
83
83
 
84
84
  def RailsPerformance.setup
85
85
  yield(self)
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.0.5
4
+ version: 1.0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Igor Kasyanchuk