Skip to content

Instantly share code, notes, and snippets.

@c2k
Last active March 7, 2016 10:38
Show Gist options
  • Save c2k/628919aa5e9842c031d2 to your computer and use it in GitHub Desktop.
Save c2k/628919aa5e9842c031d2 to your computer and use it in GitHub Desktop.
New Relic Agent in Rails Console

#New Relic

To enable the New Relic agent within Rails console

NEWRELIC_AGENT_ENABLED=true rails c

And then you can send errors

irb(main):001:0> NewRelic::Agent.notice_error(StandardError.new("Test error"))
=> nil
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment