Skip to content

Instantly share code, notes, and snippets.

class Job
def self.perform_with_newrelic(*args)
NewRelic::Control.instance['forked_job'] = true
perform(*args)
NewRelic::Agent.shutdown
end
end