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



72
73
74
75
76
77
# File 'lib/new_relic/agent/instrumentation/rack/instrumentation.rb', line 72

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