Add support for in browser sentry

This commit is contained in:
Paul Chavard 2018-08-09 16:45:56 +02:00 committed by Pierre de La Morinerie
parent 65ca41ff8d
commit 541df2d961
8 changed files with 79 additions and 2 deletions

View file

@ -67,4 +67,17 @@ module ApplicationHelper
Raven.capture_exception(e)
{}
end
def sentry_config
sentry = Rails.application.secrets.sentry
if sentry
{
dsn: sentry[:browser],
id: current_user&.id,
email: current_email
}.to_json
else
{}
end
end
end