tracing a specific block of code in NewRelic

Developer from somewhere

Info available here. Make sure you extend the NewRelic tracer in your class:

extend ::NewRelic::Agent::MethodTracer

self.class.trace_execution_scoped("Custom/Some/TransactionName") do
  # traced code
end