Module: NewRelic::Agent::Instrumentation::RackURLMap

Defined in:
lib/new_relic/agent/instrumentation/rack/instrumentation.rb

Class Method Summary collapse

Class Method Details

.generate_traced_map(map) ⇒ Object



75
76
77
78
79
80
# File 'lib/new_relic/agent/instrumentation/rack/instrumentation.rb', line 75

def self.generate_traced_map(map)
  map.inject({}) do |traced_map, (url, handler)|
    traced_map[url] = NewRelic::Agent::Instrumentation::MiddlewareProxy.wrap(handler, true)
    traced_map
  end
end