Switch from `sentry-raven` to `sentry-ruby`

Fixes skroutz/rspecq#68
This commit is contained in:
Isaac Moore 2021-11-19 11:43:21 -06:00
parent 8e8fef4f56
commit 0e3e8c7ce7
6 changed files with 7 additions and 6 deletions

View File

@ -109,8 +109,7 @@ $ RSPECQ_BUILD=123 RSPECQ_WORKDER=foo1 rspecq spec/
RSpecQ can optionally emit build events to a
[Sentry](https://sentry.io) project by setting the
[`SENTRY_DSN`](https://github.com/getsentry/raven-ruby#raven-only-runs-when-sentry_dsn-is-set)
environment variable.
`SENTRY_DSN` environment variable.
This is convenient for monitoring important warnings/errors that may impact
build times, such as the fact that no previous timings were found and

View File

@ -3,6 +3,8 @@ require "rspecq"
config = RSpecQ::Configuration.new(ARGV)
Sentry.init if ENV['SENTRY_DSN']
if config.report?
reporter = RSpecQ::Reporter.new(
build_id: config.build,

View File

@ -1,5 +1,5 @@
require "rspec/core"
require "sentry-raven"
require "sentry-ruby"
module RSpecQ
# If a worker haven't executed an example for more than WORKER_LIVENESS_SEC

View File

@ -150,7 +150,7 @@ module RSpecQ
spec_file: filename
}
Raven.capture_message(
Sentry.capture_message(
"Flaky test in #{filename}",
level: "warning",
extra: extra,

View File

@ -296,7 +296,7 @@ module RSpecQ
def log_event(msg, level, additional = {})
puts msg
Raven.capture_message(msg, level: level, extra: {
Sentry.capture_message(msg, level: level, extra: {
build: @build_id,
worker: @worker_id,
queue: queue.inspect,

View File

@ -19,7 +19,7 @@ Gem::Specification.new do |s|
end
s.add_dependency "redis"
s.add_dependency "sentry-raven"
s.add_dependency "sentry-ruby"
s.add_dependency "rspec_junit_formatter"
s.add_development_dependency "minitest"