rack_set_request_id 0.1.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -2
- data/lib/rack/set_request_id/middleware.rb +3 -1
- data/lib/rack/set_request_id/version.rb +1 -1
- data/rack_set_request_id.gemspec +0 -1
- metadata +1 -15
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9bd380d943b315c19442cbb1f3a7fb6049dc46be
|
4
|
+
data.tar.gz: f5e12fe66604f887b3fa6ae5d860a857bb6c4139
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2903d37cd443a7dd4c03f7a70422d6c5f09338cf6de462e6cc5159f742edb05f4653dd077a43772b3af545771e6ee745bbe4a83f2665e09cbeb82cbac0d7cb3d
|
7
|
+
data.tar.gz: 370689d86535061fab46d793a2b77038c772a35ece3d017ac6cebebf06f9ec595b7a712a9f476042ac83d28616d4d9993f660e71c826512645092511dec8820b
|
data/README.md
CHANGED
@@ -1,7 +1,10 @@
|
|
1
1
|
# Rack::SetRequestId
|
2
2
|
|
3
|
-
For use with
|
4
|
-
|
3
|
+
For use with rails to set the request id for various logging purposes.
|
4
|
+
Supports:
|
5
|
+
|
6
|
+
* RequestId
|
7
|
+
* Honeybadger
|
5
8
|
|
6
9
|
## Installation
|
7
10
|
|
@@ -6,7 +6,9 @@ module Rack
|
|
6
6
|
end
|
7
7
|
|
8
8
|
def call(env)
|
9
|
-
::RequestId
|
9
|
+
if defined?(::RequestId)
|
10
|
+
::RequestId.set(:request_id, env['action_dispatch.request_id'])
|
11
|
+
end
|
10
12
|
|
11
13
|
if defined?(Honeybadger)
|
12
14
|
Honeybadger.context(request_id: env['action_dispatch.request_id'])
|
data/rack_set_request_id.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack_set_request_id
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Donald Plummer
|
@@ -24,20 +24,6 @@ dependencies:
|
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: request_id
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - "~>"
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: 0.4.1
|
34
|
-
type: :runtime
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - "~>"
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: 0.4.1
|
41
27
|
- !ruby/object:Gem::Dependency
|
42
28
|
name: bundler
|
43
29
|
requirement: !ruby/object:Gem::Requirement
|