Skip to content

Commit

Permalink
sentry exception only takes one param, Raven->Sentry
Browse files Browse the repository at this point in the history
  • Loading branch information
mwvolo committed Jan 26, 2024
1 parent 7baf600 commit ef219c0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
6 changes: 1 addition & 5 deletions config/initializers/delayed_job_heartbeat.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@
configuration.heartbeat_interval_seconds = 30
configuration.heartbeat_timeout_seconds = 60
configuration.on_worker_termination = ->(worker_model, exception) do
Raven.capture_exception(
exception,
logger: 'delayed_job_heartbeat_plugin',
extra: { delayed_worker: worker_model.attributes }
)
Sentry.capture_exception(exception)
end
configuration.worker_version = Rails.application.secrets.release_version
end
Expand Down
4 changes: 2 additions & 2 deletions config/initializers/rescue_from.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
}
extra.merge!(proxy.extras) if proxy.extras.is_a? Hash

Sentry.capture_exception(proxy.exception, extra: extra)
Sentry.capture_exception(proxy.exception)
end
config.notify_background_proc = ->(proxy) do
extra = {
Expand All @@ -34,7 +34,7 @@
}
extra.merge!(proxy.extras) if proxy.extras.is_a? Hash

Sentry.capture_exception(proxy.exception, extra: extra)
Sentry.capture_exception(proxy.exception)
end

config.html_error_template_path = 'errors/any'
Expand Down

0 comments on commit ef219c0

Please sign in to comment.