Class: Promenade::Client::Rack::RequestLabeler

Inherits:
Object
  • Object
show all
Extended by:
SingletonCaller
Defined in:
lib/promenade/client/rack/request_labeler.rb

Direct Known Subclasses

RequestControllerActionLabeler

Instance Method Summary collapse

Methods included from SingletonCaller

initialize_singleton, singleton

Instance Method Details

#call(env) ⇒ Object



12
13
14
15
16
# File 'lib/promenade/client/rack/request_labeler.rb', line 12

def call(env)
  {
    host: env[HTTP_HOST].to_s,
  }
end