File tree 2 files changed +5
-6
lines changed
2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ class ApplicationController < ActionController::Base
11
11
protect_from_forgery with : :exception
12
12
before_action :configure_permitted_parameters , if : :devise_controller?
13
13
before_action :if_not_signed_in , unless : :devise_controller?
14
- before_action :set_raven_context , if : proc { Rails . env . production? }
14
+ before_action :set_sentry_context , if : proc { Rails . env . production? }
15
15
before_action :set_locale
16
16
around_action :with_timezone
17
17
@@ -35,9 +35,9 @@ def configure_permitted_parameters
35
35
configure_for_accept_invitation
36
36
end
37
37
38
- def set_raven_context
39
- Raven . user_context ( id : current_user . id ) if user_signed_in?
40
- Raven . extra_context ( params : params . to_unsafe_h , url : request . url )
38
+ def set_sentry_context
39
+ Sentry . set_user ( id : current_user . id ) if user_signed_in?
40
+ Sentry . set_extras ( params : params . to_unsafe_h , url : request . url )
41
41
end
42
42
43
43
def locale
Original file line number Diff line number Diff line change 127
127
config . action_controller . default_url_options = { host : primary_domain }
128
128
config . action_controller . asset_host = primary_domain
129
129
130
- Raven . configure do |config |
130
+ Sentry . init do |config |
131
131
config . dsn = ENV [ 'SENTRY_DSN' ]
132
- config . sanitize_fields = Rails . application . config . filter_parameters . map ( &:to_s )
133
132
end
134
133
135
134
# Inserts middleware to perform automatic connection switching.
You can’t perform that action at this time.
0 commit comments