Skip to content

Instantly share code, notes, and snippets.

@bayleedev
Created June 18, 2016 03:11
Show Gist options
  • Save bayleedev/d92b217b4438622a650f8edbec7b05ac to your computer and use it in GitHub Desktop.
Save bayleedev/d92b217b4438622a650f8edbec7b05ac to your computer and use it in GitHub Desktop.
require 'newrelic_rpm'
include NewRelic::Agent::Instrumentation::ControllerInstrumentation
def run
perform_action_with_newrelic_trace(name: "etl_provider", category: :task) do
run_task!
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment