Skip to content

Commit

Permalink
fix MethodProfiler
Browse files Browse the repository at this point in the history
  • Loading branch information
hooopo committed Nov 20, 2019
1 parent 2b39508 commit cc338dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/method_profiler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ def self.stop

def self.ensure_discourse_instrumentation!
@@instrumentation_setup ||= begin
MethodProfiler.patch(PG::Connection, [
:exec, :async_exec, :exec_prepared, :send_query_prepared, :query, :exec_params
MethodProfiler.patch(Mysql2::Client, [
:query, :async_result, :affected_rows, :next_result, :prepare
], :sql)

MethodProfiler.patch(Redis::Client, [
Expand Down

0 comments on commit cc338dc

Please sign in to comment.