When security is given, judgment may, on motion, be rendered against the surety for costs, as well as against the principal. Judgment against an attorney as surety, for security taken or recorded after July 1, 1999, shall extend only to amounts required by law or included in the clerk's bill of costs, and shall not include discretionary costs.
T.C.A. § 20-12-135