From 22d6ad7550a897e5a60249f3a5944883f1386fc1 Mon Sep 17 00:00:00 2001 From: Sean McGivern Date: Tue, 9 Oct 2018 12:13:28 +0100 Subject: 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. --- lib/peek/views/host.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/peek/views') 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 -- cgit v1.2.3