Commit e17cf0f
committed
fix: pass block argument in ActiveRecord
`find_by_sql` takes a block as its final argument, which is neither a
positional nor a keyword argument, hence we need to pass it explicitly;
before this commit, the block was not passed to the `super()` call and
hence not executed, thus altering application behavior.
Fixes #1258find_by_sql patch1 parent bf6394d commit e17cf0f
File tree
1 file changed
+2
-2
lines changed- instrumentation/active_record/lib/opentelemetry/instrumentation/active_record/patches
1 file changed
+2
-2
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
0 commit comments