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: d84dd1925da9acbe4403d97daedafc691e22261c58bdb92d0ad85097a9e23eb6
4
- data.tar.gz: 0db9f1df0bbd03dda244e771cbaf0dacd309e1b2e5b87f5480b01f2bc4eba8e6
3
+ metadata.gz: 455849cab3a268870c9ef15e6dda0f8e1489b0eccd8fa498817540f49893df7e
4
+ data.tar.gz: 12f1cd895b0b6a250b486f7c3ea68fbd8c77cbcfe163cc0c9aa44584c42cea31
5
5
  SHA512:
6
- metadata.gz: f1788c0fc6426b9f2c38e93ff2abdd7e95fe2a4f1a0b1f8ae0bcf13171c787057d09269edc5d6b7927b05d2e9e8e5e42ba68d600808767dd0f7b0244bddd609f
7
- data.tar.gz: 79c91a1dab8e2a33f7a4175f2b9e546fa97e19f7a9e69368c989896225b9971c7f9b046c5b68090eac0dfb59de608311bd1174f2566e02657d4583fba06d55f3
6
+ metadata.gz: f7d768b153e35e6fdfa54e9e37147453237a817c306cfedb55b29c3f41f69acccba3ab4d1ca1990311c8642d255fda53117e1747d5bb92dcaf8fa9fd32709b57
7
+ data.tar.gz: ca0b2de23fe812979a790cce7bc78fed61b994dc7b6fb1e544b85d4859d66c113bc28d1d5d0689b090b984acbab9496381ba0071188ec82b51c391a418afa16b
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Rack
2
2
  module RequestTracker
3
- VERSION = '0.2.0'
3
+ VERSION = '0.3.0'
4
4
  end
5
5
  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.2.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-09-11 00:00:00.000000000 Z
12
+ date: 2020-10-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionpack