pub fn inc_error(stage: &str, err_type: &str)
Increment the error counter for a pipeline stage and error type.
No-op if metrics have not been initialised.
This function never panics.