Files
releases/server
Patrick East 2699974c55 rego: Stop counting metrics for "no-op" steps
We had a number of helper methods that would start a timer, defer
stopping it, and then do something to setup a Rego object for doing
its thing.

Many of these would have a check and then skip the step, but the timer
would get a little bit of time accounted for it anyway for the `if`
check and handling the deferred stop function.

This refactors as many of these as I could find to do the if check
and shortcut out before starting the timer. This will prevent any of
the "no-op" steps from showing up in metrics.

Signed-off-by: Patrick East <east.patrick@gmail.com>
2019-12-18 11:07:14 -08:00
..
2016-08-08 09:20:24 -07:00