if enable_logs = true in Ruby, we need to enable Rails logging automatically
Sentry.init do |config|
# ... your setup ...
# Make sure structured logging is enabled
config.enable_logs = true
# Enable default Rails log subscribers (ActionController and ActiveRecord)
config.rails.structured_logging.enabled = true
end