falcon 0.47.9 → 0.47.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/lib/falcon/environment/proxy.rb +0 -2
- data/lib/falcon/middleware/proxy.rb +9 -1
- data/lib/falcon/middleware/redirect.rb +8 -0
- data/lib/falcon/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b825e49f536d3fa8bb0bc337cfcc68f0b73edbf9687ff2dad5679dfa4a0b397e
|
4
|
+
data.tar.gz: f1442f53f2a5dc95f9370dc40b8680f4623a9c1c4efffe03700dcc013b731a5b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1d41bfb63b77bff804672b092dd6df9c4c2e4fd2f0dc26bc3f5358d54d909454bb2fdae7d1b1945ac57e6f39f7cb7fe35e5527d81baf49a845b46879ba55a783
|
7
|
+
data.tar.gz: 84d7853de0b47391bf15e2fc5c7ff294bb4b2c3b1d5f873a517d682cc30b9b5a487cbb8c5191e061cc88ceb80f0f57b32aa9a9e69aa77ca7d70779fe5ea531b7
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
@@ -8,6 +8,7 @@ require 'protocol/http/headers'
|
|
8
8
|
require 'protocol/http/middleware'
|
9
9
|
|
10
10
|
require 'console/event/failure'
|
11
|
+
require 'traces/provider'
|
11
12
|
|
12
13
|
module Falcon
|
13
14
|
module Middleware
|
@@ -138,7 +139,6 @@ module Falcon
|
|
138
139
|
|
139
140
|
client = connect(host.endpoint)
|
140
141
|
|
141
|
-
Console.debug(self, "Sending request...", host: host, request: request, count: @count)
|
142
142
|
client.call(request)
|
143
143
|
else
|
144
144
|
super
|
@@ -147,6 +147,14 @@ module Falcon
|
|
147
147
|
Console::Event::Failure.for(error).emit(self)
|
148
148
|
return Protocol::HTTP::Response[502, {'content-type' => 'text/plain'}, [error.class.name]]
|
149
149
|
end
|
150
|
+
|
151
|
+
Traces::Provider(self) do
|
152
|
+
def call(request)
|
153
|
+
Traces.trace('falcon.middleware.proxy.call', attributes: {authority: request.authority}) do
|
154
|
+
super
|
155
|
+
end
|
156
|
+
end
|
157
|
+
end
|
150
158
|
end
|
151
159
|
end
|
152
160
|
end
|
data/lib/falcon/version.rb
CHANGED
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
metadata.gz.sig
CHANGED
Binary file
|