instedd / cdx

Connected Diagnostics Platform
https://cdx.io
9 stars 7 forks source link

If transferring a Sample fails, create a log in Sentry #1449

Open diegoliberman opened 2 years ago

diegoliberman commented 2 years ago

If transferring a Sample fails, create a log in Sentry with the IDs that failed and whatever useful data we can get

ysbaddaden commented 2 years ago

We are using the old Raven library, which is available here: https://github.com/getsentry/sentry-ruby/tree/master/sentry-raven

(We must upgrade Rails to upgrade to the new Sentry library).

You can record an event in Sentry, with:

Raven.capture_exception(exception)

If you don't have an exception, you can always initialize one :)