From: Mars Date: Fri, 19 Oct 2018 13:36:15 +0000 (-0400) Subject: Count the number and type of phabbugz query timeouts X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6c5e41da5b2e1d3ad03f72c79be712ccc150655f;p=thirdparty%2Fbugzilla.git Count the number and type of phabbugz query timeouts --- diff --git a/extensions/PhabBugz/lib/Feed.pm b/extensions/PhabBugz/lib/Feed.pm index 48171652f..184da3910 100644 --- a/extensions/PhabBugz/lib/Feed.pm +++ b/extensions/PhabBugz/lib/Feed.pm @@ -79,6 +79,12 @@ sub start { name => 'ALRM', on_receipt => sub { FATAL("Timeout reached while executing $CURRENT_QUERY query"); + + if (my $dd = Bugzilla->datadog) { + my $lcname = lc $CURRENT_QUERY; + $dd->increment("bugzilla.phabbugz.${lcname}_query_timeouts"); + } + exit 1; }, );