Skip to content

Instantly share code, notes, and snippets.

@samg
Created December 15, 2011 23:39
Show Gist options
  • Save samg/1483512 to your computer and use it in GitHub Desktop.
Save samg/1483512 to your computer and use it in GitHub Desktop.
class SteelController < ActionController::Metal
include ActionController::Rendering
def show
render :text => { :data => 1 }.to_json
end
include NewRelic::Agent::Instrumentation::ControllerInstrumentation
add_transaction_tracer :show
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment