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 ```
Activity
linear commentedon Sep 23, 2025
RUBY-98 Remove double opt-in for Logs in Rails
feat(logging): auto-enable structured_logging
feat(logging): auto-enable structured_logging
feat(logging): auto-enable structured_logging
feat(logging): auto-enable structured_logging
feat(logging): auto-enable structured_logging
feat(logging): auto-enable structured_logging
feat(logging): auto-enable structured_logging in Rails (#2721)