Unbreak metrics middleware. (@hodgestar)