Commit b02db1f4 authored by Pawel Chojnacki's avatar Pawel Chojnacki

Fix gitaly_call_histogram to observe times in seconds correctly

parent e391fe1d
......@@ -132,7 +132,7 @@ module Gitlab
self.query_time += duration
gitaly_call_histogram.observe(
current_transaction_labels.merge(gitaly_service: service.to_s, rpc: rpc.to_s),
duration)
duration / 1000.0)
end
def self.current_transaction_labels
......
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