mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: exec_params needs instrumentation
the method no longer routes to "exec" or "async_exec" in latest PG so we need to explicitly intercept
This commit is contained in:
parent
7f361a546e
commit
955cdad649
@ -18,7 +18,7 @@ class Middleware::RequestTracker
|
|||||||
|
|
||||||
unless @patched_instrumentation
|
unless @patched_instrumentation
|
||||||
MethodProfiler.patch(PG::Connection, [
|
MethodProfiler.patch(PG::Connection, [
|
||||||
:exec, :async_exec, :exec_prepared, :send_query_prepared, :query
|
:exec, :async_exec, :exec_prepared, :send_query_prepared, :query, :exec_params
|
||||||
], :sql)
|
], :sql)
|
||||||
|
|
||||||
MethodProfiler.patch(Redis::Client, [
|
MethodProfiler.patch(Redis::Client, [
|
||||||
|
Loading…
Reference in New Issue
Block a user