rack-instruments 0.3.2 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rack/instruments.rb +3 -3
- metadata +2 -2
data/lib/rack/instruments.rb
CHANGED
@@ -74,9 +74,9 @@ module Rack
|
|
74
74
|
|
75
75
|
# uses Heroku-Request-Id or falls back to a generator
|
76
76
|
def current_request_id(env)
|
77
|
-
if @heroku_request_id && env["
|
78
|
-
env["
|
79
|
-
env["
|
77
|
+
if @heroku_request_id && env["HTTP_X_REQUEST_ID"] &&
|
78
|
+
env["HTTP_X_REQUEST_ID"] =~ @request_id_pattern
|
79
|
+
env["HTTP_X_REQUEST_ID"]
|
80
80
|
else
|
81
81
|
@request_id_generator.call
|
82
82
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack-instruments
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2014-03-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: slides
|