Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Browse files

ui: respect limit field

Can't look up traces by span.

respects the "limit" field.

changed the spec to expect proper "limit" field. I don't know why it
didn't in the first place. Seems like the test was incorrect too.

Author: @mosesn
Fixes #176
URL: #176
  • Loading branch information...
commit 954c8acf3d07003efaa1473c9126a6498f37bae0 1 parent b49ec2d
@mosesn mosesn authored Franklin Hu committed
5 zipkin-query-core/src/main/scala/com/twitter/zipkin/query/QueryService.scala
@@ -125,7 +125,10 @@ class QueryService(storage: Storage, index: Index, aggregates: Aggregates, adjus
case head :: Nil => {
/* One query: just run it */
- head.execute(index).map {
+ (head match {
+ case s: SpanSliceQuery => s.copy(limit = limit)
+ case a: AnnotationSliceQuery => a.copy(limit = limit)
+ }).execute(index).map {
constructQueryResponse(_, limit, order)
Please sign in to comment.
Something went wrong with that request. Please try again.