summaryrefslogtreecommitdiff
path: root/lib/peek
diff options
context:
space:
mode:
authorSean McGivern <sean@gitlab.com>2018-10-09 12:13:28 +0100
committerSean McGivern <sean@gitlab.com>2018-10-12 12:37:18 +0100
commit22d6ad7550a897e5a60249f3a5944883f1386fc1 (patch)
treee784d9727fcd5ca57031a5580cddf4730536a6a2 /lib/peek
parent0c9a6c348b86bcebe72047b93bf46f4a49f998f8 (diff)
downloadgitlab-ce-22d6ad7550a897e5a60249f3a5944883f1386fc1.tar.gz
Show if the host is a canary host in the perf bar
If the request came from a canary host, show this in the performance bar by: 1. Adding a bird emoji. 2. Colouring the hostname yellow.
Diffstat (limited to 'lib/peek')
-rw-r--r--lib/peek/views/host.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/peek/views/host.rb b/lib/peek/views/host.rb
index 43c8a35c7ea..4fc70fbcebc 100644
--- a/lib/peek/views/host.rb
+++ b/lib/peek/views/host.rb
@@ -2,7 +2,10 @@ module Peek
module Views
class Host < View
def results
- { hostname: Gitlab::Environment.hostname }
+ {
+ hostname: Gitlab::Environment.hostname,
+ canary: Gitlab::Utils.to_boolean(ENV['CANARY'])
+ }
end
end
end