Skip to content

Commit

Permalink
Add exec_params to profiled pg methods (#317)
Browse files Browse the repository at this point in the history
  • Loading branch information
codez authored May 30, 2024
1 parent 3de69ad commit 99760a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/prometheus_exporter/middleware.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def initialize(app, config = { instrument: :alias_method, client: nil })
end
if defined? PG::Connection
MethodProfiler.patch(PG::Connection, [
:exec, :async_exec, :exec_prepared, :send_query_prepared, :query
:exec, :async_exec, :exec_prepared, :exec_params, :send_query_prepared, :query
], :sql, instrument: config[:instrument])
end
if defined? Mysql2::Client
Expand Down

0 comments on commit 99760a7

Please sign in to comment.