How to use NewRelic to monitor Rails exceptions - ruby-on-rails

Is it possible to use NewRelic to monitor exceptions in Rails app (like Airbrake)
Bonus: Get notified of other custom errors (e.g. Users getting form validation errors)
Thanks

New Relic does indeed track exceptions, with a free subscription. It will also let you call an API to report custom errors.

Zapier provides a connector to New Relic, that in theory would allow you to send emails when a new relic alert occurs.
Haven't tested myself but it probably let you use New Relic as airbrake.
Here is the link: https://zapier.com/app/explore

Related

AWS redrive to source queue in Java

AWs recently added a feature that allows you to send messages from a DLQ back to source queue via a lick of a button "redrive to source". I wanted to know is this possible via an API call.
I know how to extract a message from dlq queue and re send it, But with this new function i was hoping i wouldnt need to handle the messages, but rather just call a method perhaps on the queue and if its configured it would do the redelivery.
Anyone know if this is possible, as im searching in the net.
I believe currently this feature is only available via the management console UI and not as an API

Inform all kind of errors on production environment through mail same as newrelic does

I want a robust solution for my app in Production environment which would catch all kind of exception and errors and notify me through emails.
Same as Newrelic, but i dont want use new relic instead i want to do same stuff through coding.
Seems you are looking for this gem exception_notification.

Reporting exceptions into New Relic for non-IIS .NET apps

I've got a windows service application that I would like to push errors from into New Relic, since we use it for all our other (web application) error monitoring. The New Relic Agent API docs say that this can be done with the NoticeError(System.Exception) method. And according to this doco, I just need to set an environment variable named COR_ENABLE_PROFILING and put two appSetting values in which I've done, but still nothing is showing up in New Relic.
What have I missed?
The NoticeError() API method can send errors from background processes to New Relic, but there are a few configuration settings that can prevent data being sent or recorded correctly. To find the problem I'd need to see your configuration file, the code that's using NoticeError(), some logs from your agent when that code is firing, and preferably your New Relic account. To get all that privately, I'd like to ask you send us a support ticket with us at https://support.newrelic.com/
If you link to this question in the ticket, we can post the fix if it's not specific to your code.

How to exclude NewRelic RPM pinger from creating useless sessions in database

I'm using Newrelic for monitoring my rails app status. They ping (GET request I think) our app every 5 minutes. Do you know how to prevent rails from spawning new user session for every request they are making?
Have it ping something that exists in the public directory.
This won't check to make sure that your app is running, but just that the server is up. Assuming the server is up, then your app should be able to create exceptions and New Relic will catch those.
On a new Rails app, for instance, you could have it ping http://rooturl/images/rails.png as that png is in public/images/ by default.
I seem to recall some recent work for specifically this use case -- you might contact New Relic support and see if this has been addressed recently.
Other good answers are already here, but the pinger is documented in full here: https://newrelic.com/docs/alerts/availability-monitoring

Pushing updates to the view in (close to) real-time

Say my user is viewing messages/index, and someone else sends him a message. I'd like the user's view to update in real-time to reflect the new message, kind of like how Twitter lets me know there are more messages on my timeline. Are there any examples of this being done in Rails?
You can either use AJAX to poll the server for updates on a regular basis (pull model), or use the Juggernaut plugin or similar to enable the server to send updates to the client (push model). Note that this requires Flash to be installed on the client.
DUI.stream from digg might be the solution you are looking for. It keeps an open xhr stream that you can keep on adding objects to to send to the user. It has a ruby client example

Resources