From 1f1cd6c0ec327d5e77877a7847a4a70dc69794e9 Mon Sep 17 00:00:00 2001 From: Nat Lasseter Date: Mon, 16 Nov 2020 12:22:24 +0000 Subject: Fix typo and improve error reporting --- lib/longboat/raiders.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/longboat/raiders.rb b/lib/longboat/raiders.rb index eb30612..de0b274 100644 --- a/lib/longboat/raiders.rb +++ b/lib/longboat/raiders.rb @@ -34,7 +34,7 @@ module Longboat "longboat_meta_raider_runtime", (time_taken.to_f * 1000).to_i, help: "Time taken by a raider whilst raiding in ms", - type: "guage", + type: "gauge", labels: {raider: name} ) @@ -43,6 +43,7 @@ module Longboat @collector.abort! $stderr.puts "[ERROR] Caught exception from raider: #{name}" + $stderr.puts "[ERROR] Exception reads: #{e.message}" $stderr.puts "[ERROR] Aborted collector transaction" $stderr.puts "[ERROR] Backtrace reads: \"#{e.backtrace}\"" end -- cgit v1.2.1