Class: Rester::Client::Middleware::RequestHandler

Inherits:
Base
  • Object
show all
Defined in:
lib/rester/client/middleware/request_handler.rb

Instance Attribute Summary

Attributes inherited from Base

#app

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Rester::Client::Middleware::Base

Instance Method Details

#call(env) ⇒ Object



4
5
6
7
8
9
10
# File 'lib/rester/client/middleware/request_handler.rb', line 4

def call(env)
  Rester.wrap_request do
    Rester.correlation_id = SecureRandom.uuid
    Rester.request_info[:consumer_name] = Rester.service_name
    super
  end
end