Fix metrics middleware metric name construction. (@justinvdm)