Module: Jellyfish::NewRelic
- Includes:
- NewRelic::Agent::Instrumentation::ControllerInstrumentation
- Defined in:
- lib/jellyfish/newrelic.rb
Instance Method Summary collapse
Instance Method Details
#block_call(argument, block) ⇒ Object
10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/jellyfish/newrelic.rb', line 10 def block_call argument, block path = if argument.respond_to?(:regexp) argument.regexp else argument end.to_s[1..-1] name = "#{env['REQUEST_METHOD']} #{path}" # magic category: NewRelic::MetricParser::WebTransaction::Jellyfish perform_action_with_newrelic_trace(:category => 'Controller/Jellyfish', :path => path , :name => name , :request => request , :params => request.params){super} end |