Skip to content

Commit

Permalink
fix: instrumentation/active_record add :allow_retry option to find_by…
Browse files Browse the repository at this point in the history
…_sql patch

Rails 7.2 (rails/rails@eabcff2) introduces the :allow_retry option for this method, so we need to add it to this patch to maintain compatibility.
  • Loading branch information
andrewn617 committed Mar 27, 2024
1 parent d206c11 commit 8869502
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class << base

# Contains ActiveRecord::Querying to be patched
module ClassMethods
def find_by_sql(sql, binds = [], preparable: nil, &block)
def find_by_sql(...)
tracer.in_span("#{self}.find_by_sql") do
super
end
Expand Down

0 comments on commit 8869502

Please sign in to comment.