diff options
author | Jacob Vosmaer <jacob@gitlab.com> | 2016-05-26 18:53:21 +0300 |
---|---|---|
committer | Jacob Vosmaer <jacob@gitlab.com> | 2016-05-26 18:53:21 +0300 |
commit | 5771114f9b5dba9c17b273a5dec0ef6900f6da9d (patch) | |
tree | 9843861e9e98ea40ce33a2e0f02b5b28b3fffcf4 /lib/gitlab | |
parent | 6ec2730fb371dbfdf84f98e2061431367c3927d1 (diff) |
Rename metric to 'rails queue duration'
Diffstat (limited to 'lib/gitlab')
-rw-r--r-- | lib/gitlab/middleware/rails_queue_duration.rb (renamed from lib/gitlab/middleware/proxy_flight_time.rb) | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab/middleware/proxy_flight_time.rb b/lib/gitlab/middleware/rails_queue_duration.rb index 042bcdacf8b..56608b1b276 100644 --- a/lib/gitlab/middleware/proxy_flight_time.rb +++ b/lib/gitlab/middleware/rails_queue_duration.rb @@ -4,7 +4,7 @@ module Gitlab module Middleware - class ProxyFlightTime + class RailsQueueDuration def initialize(app) @app = app end @@ -14,7 +14,7 @@ module Gitlab proxy_start = env['HTTP_GITLAB_WORHORSE_PROXY_START'].presence if trans && proxy_start # Time in milliseconds since gitlab-workhorse started the request - trans.set(:proxy_flight_time, Time.now.to_f * 1_000 - proxy_start.to_f / 1_000_000) + trans.set(:rails_queue_duration, Time.now.to_f * 1_000 - proxy_start.to_f / 1_000_000) end @app.call(env) |