Commit 057c81b1 authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'performance-bar-sql' into 'master'

Remove Sherlock usage from the performance bar

Closes #39351

See merge request gitlab-org/gitlab-ce!15000
parents e16add22 189b5c3c
......@@ -36,8 +36,8 @@ module Gitlab
end
def track_query(raw_query, bindings, start, finish)
query = Gitlab::Sherlock::Query.new(raw_query, start, finish)
query_info = { duration: query.duration.round(3), sql: query.formatted_query }
duration = finish - start
query_info = { duration: duration.round(3), sql: raw_query }
PEEK_DB_CLIENT.query_details << query_info
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment