diff options
author | Sean McGivern <sean@gitlab.com> | 2018-10-09 12:13:28 +0100 |
---|---|---|
committer | Sean McGivern <sean@gitlab.com> | 2018-10-12 12:37:18 +0100 |
commit | 22d6ad7550a897e5a60249f3a5944883f1386fc1 (patch) | |
tree | e784d9727fcd5ca57031a5580cddf4730536a6a2 /lib/peek | |
parent | 0c9a6c348b86bcebe72047b93bf46f4a49f998f8 (diff) | |
download | gitlab-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.rb | 5 |
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 |