lib/sentry/rails/railtie.rb in sentry-rails-4.6.5 vs lib/sentry/rails/railtie.rb in sentry-rails-4.7.0
- old
+ new
@@ -67,9 +67,16 @@
def inject_breadcrumbs_logger
if Sentry.configuration.breadcrumbs_logger.include?(:active_support_logger)
require 'sentry/rails/breadcrumb/active_support_logger'
Sentry::Rails::Breadcrumb::ActiveSupportLogger.inject
end
+
+ if Sentry.configuration.breadcrumbs_logger.include?(:monotonic_active_support_logger)
+ return warn "Usage of `monotonic_active_support_logger` require a version of Rails >= 6.1, please upgrade your Rails version or use another logger" if ::Rails.version.to_f < 6.1
+
+ require 'sentry/rails/breadcrumb/monotonic_active_support_logger'
+ Sentry::Rails::Breadcrumb::MonotonicActiveSupportLogger.inject
+ end
end
def setup_backtrace_cleanup_callback
backtrace_cleaner = Sentry::Rails::BacktraceCleaner.new