Add support for in browser sentry
This commit is contained in:
parent
65ca41ff8d
commit
541df2d961
8 changed files with 79 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue