lib/timber/integrations/rack/http_context.rb in timber-2.3.4 vs lib/timber/integrations/rack/http_context.rb in timber-2.4.0
- old
+ new
@@ -9,9 +9,10 @@
# A Rack middleware that is reponsible for adding the HTTP context {Timber::Contexts::HTTP}.
class HTTPContext < Middleware
def call(env)
request = Util::Request.new(env)
context = Contexts::HTTP.new(
+ host: request.host,
method: request.request_method,
path: request.path,
remote_addr: request.ip,
request_id: request.request_id
)
\ No newline at end of file