rack-request-tracker 0.2.0 → 0.3.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 455849cab3a268870c9ef15e6dda0f8e1489b0eccd8fa498817540f49893df7e
|
4
|
+
data.tar.gz: 12f1cd895b0b6a250b486f7c3ea68fbd8c77cbcfe163cc0c9aa44584c42cea31
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f7d768b153e35e6fdfa54e9e37147453237a817c306cfedb55b29c3f41f69acccba3ab4d1ca1990311c8642d255fda53117e1747d5bb92dcaf8fa9fd32709b57
|
7
|
+
data.tar.gz: ca0b2de23fe812979a790cce7bc78fed61b994dc7b6fb1e544b85d4859d66c113bc28d1d5d0689b090b984acbab9496381ba0071188ec82b51c391a418afa16b
|
data/lib/rack/request_tracker.rb
CHANGED
@@ -2,7 +2,7 @@ require 'request_store'
|
|
2
2
|
require 'mumukit/core'
|
3
3
|
|
4
4
|
module Rack::RequestTracker
|
5
|
-
LOG_TAGS = %i(request_id forwarded_for request_uid organization)
|
5
|
+
LOG_TAGS = %i(request_id forwarded_for request_uid organization user_agent)
|
6
6
|
|
7
7
|
class << self
|
8
8
|
def transaction_headers
|
@@ -11,6 +11,7 @@ module Rack::RequestTracker::Middleware
|
|
11
11
|
Rack::RequestTracker.forwarded_for = first_forward(request.x_forwarded_for) || request.remote_ip
|
12
12
|
Rack::RequestTracker.request_uid = request.headers['X-REQUEST-UID']
|
13
13
|
Rack::RequestTracker.organization = request.headers['X-ORGANIZATION']
|
14
|
+
Rack::RequestTracker.user_agent = request.headers['X-USER-AGENT']
|
14
15
|
|
15
16
|
@app.call(env)
|
16
17
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack-request-tracker
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Julián Berbel Alt
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2020-
|
12
|
+
date: 2020-10-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: actionpack
|