diff --git a/zipkin-server/src/main/scala/com/twitter/zipkin/query/QueryService.scala b/zipkin-server/src/main/scala/com/twitter/zipkin/query/QueryService.scala index 0bf96083a2c..4d40fd1f1d0 100644 --- a/zipkin-server/src/main/scala/com/twitter/zipkin/query/QueryService.scala +++ b/zipkin-server/src/main/scala/com/twitter/zipkin/query/QueryService.scala @@ -126,7 +126,7 @@ class QueryService(storage: Storage, index: Index, aggregates: Aggregates, adjus annotation, value, endTs, limit, order)) call(method) { if (annotation == null || "".equals(annotation)) { - errorStats.counter("%s_no_annotation").incr() + errorStats.counter("%s_no_annotation".format(method)).incr() return Future.exception(gen.QueryException("No annotation provided")) }