-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace
sentry-raven
with sentry-ruby
No need to capture exceptions manually in the low-level error handler since getsentry/sentry-ruby#2026 Close #242
- Loading branch information
Showing
8 changed files
with
21 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,18 @@ | ||
# frozen_string_literal: true | ||
|
||
require "raven" | ||
require "sentry-ruby" | ||
require "logger" | ||
|
||
require_relative "../lib/app" | ||
|
||
Raven.configure do |config| | ||
Sentry.init do |config| | ||
config.logger = App.null_logger if App.test? | ||
config.logger.level = Logger::DEBUG | ||
config.processors -= [Raven::Processor::PostData] # send POST data | ||
config.processors -= [Raven::Processor::Cookies] # send cookies | ||
|
||
# https://docs.sentry.io/platforms/ruby/configuration/releases/#release-health | ||
config.auto_session_tracking = false | ||
|
||
# send POST data send cookies | ||
# https://docs.sentry.io/platforms/ruby/migration/#removed-processors | ||
config.send_default_pii = true | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.