Configuring Sentry as error handling service to provide additional request context

13 views
Skip to first unread message

krfg

unread,
Mar 10, 2017, 4:20:05 AM3/10/17
to Ruby on Rails: Talk
I would like to add an error handling service to my Ruby on Rails application and decided to give Sentry a try because, unlikely many other services, it has a free tier.
I am wondering if there is any of you who is experienced with Sentry configuration.
Basic configuration looks simple.
However, as the documentation in the docs.sentry.io says, "much of the usefulness of Sentry comes from additional context data with the events".
So I would like to add to my Ruby on Rails application the code to create additional request context in Sentry's events.
In particular I am interested in getting as much information as possible about the user experiencing the event (details, browser etc).
Where is the suggested place to put the necessary code like the Raven.user_context and Raven.tags_context methods?
I found in the documentation no more than a hint that would suggest to use a private method inside the application controller to be called with a before action filter.
Reply all
Reply to author
Forward
0 new messages