Skip to content

Commit

Permalink
fix(metrics): Status code tag
Browse files Browse the repository at this point in the history
  • Loading branch information
dbousamra committed Jul 27, 2017
1 parent 6566913 commit 3a994d1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ object MetricsMiddleware {

def statusCodeToTag(code: Int): String = {
val flooredCode = (code / 100) * 100
s"status:${flooredCode.toString}"
s"status:_${flooredCode.toString}"
}

def generalMetrics(method: Method, code: Int, elapsed: FiniteDuration): Unit = {
Expand Down

0 comments on commit 3a994d1

Please sign in to comment.