You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ActiveRecordSubscriber fails even sooner on queries using unnamed binds #2786
Attempt to run a query with an unnamed bound parameter, e.g., Account.where("email = ?", "foo@example.com").first
Expected Behavior
Sentry logs the query (though very understandable if it couldn't safely provide the bound value)
Actual Behavior
Sentry logs its own failure to log the query
Ruby Version
3.3.2
SDK Version
sentry-rails 6.1.0 (not sure what this is asking)
Integration and Its Version
Rails 8.0.3
Sentry Config
# config/initializers/sentry.rbSentry.initdo |config|
config.dsn=ENV["SENTRY_EU_DSN"]config.breadcrumbs_logger=[:active_support_logger,:http_logger]ifENV["SENTRY_LOGGING_ENABLED"]config.enable_logs=trueconfig.enabled_patches=[:logger]config.rails.structured_logging.enabled=trueconfig.send_default_pii=trueconfig.rails.structured_logging.subscribers={action_controller: Sentry::Rails::LogSubscribers::ActionControllerSubscriber,active_record: Class.new(Sentry::Rails::LogSubscribers::ActiveRecordSubscriber)dodefsql(event)# SolidQueue database queries are too noisyreturnifevent.payload[:name]&.starts_with?("SolidQueue::")superendend}end# TODO: If/when `sentry-rails` adds solid_queue or ActiveJob support for not# reporting exceptions from retried jobs (as it does for Sidekiq and DelayedJob),# use that and stop excluding `CompletedDocument::MissingFolder`config.excluded_exceptions += ["CompletedDocument::MissingFolder"]config.traces_sample_rate=1.0config.traces_sampler=lambdado |context|
trueendconfig.profiles_sample_rate=1.0config.release=ENV.fetch("HEROKU_RELEASE_VERSION","")end
Thanks for reporting the issue and I'm sorry it didn't work for you. We run tests only against SQLite and I have to admit it crossed my mind that we need to start running against more db types 😅 I'll take care of this ASAP and we'll push a release Monday/Tuesday.
Activity
linear commentedon Nov 21, 2025
RUBY-116
solnic commentedon Nov 22, 2025
Thanks for reporting the issue and I'm sorry it didn't work for you. We run tests only against SQLite and I have to admit it crossed my mind that we need to start running against more db types 😅 I'll take care of this ASAP and we'll push a release Monday/Tuesday.
fix(rails): handle positioned binds in logging
fix(rails): handle positioned binds in logging
fix(rails): handle positioned binds in logging
fix(rails): handle positioned binds in logging (#2787)
solnic commentedon Nov 25, 2025
@midnightmonster both issues have been fixed in 6.1.2!