lib/sentry/redis.rb in sentry-ruby-5.9.0 vs lib/sentry/redis.rb in sentry-ruby-5.10.0
- old
+ new
@@ -28,9 +28,10 @@
private
attr_reader :commands, :host, :port, :db
def record_breadcrumb
+ return unless Sentry.initialized?
return unless Sentry.configuration.breadcrumbs_logger.include?(LOGGER_NAME)
Sentry.add_breadcrumb(
Sentry::Breadcrumb.new(
level: :info,