Last active
December 16, 2015 08:29
-
-
Save cschiewek/5406033 to your computer and use it in GitHub Desktop.
Send a handled error to newrelic in ruby
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
begin | |
raise 'example' | |
rescue Exception => exception | |
::NewRelic::Agent.notice_error(exception) if defined?(::NewRelic) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment