public final class QueryRequest extends Object
endTs, subject to limit and lookback. For example, if endTs is 10:20 today, limit is 10, and lookback is 7 days, traces
returned should be those nearest to 10:20 today, not 10:20 a week ago.
Time units of endTs and lookback are milliseconds as opposed to
microseconds, the grain of Span.timestamp. Milliseconds is a more familiar and supported
granularity for query, index and windowing functions.| Modifier and Type | Class and Description |
|---|---|
static class |
QueryRequest.Builder |
| Modifier and Type | Field and Description |
|---|---|
List<String> |
annotations
Include traces whose
Span.annotations include a value in this set. |
Map<String,String> |
binaryAnnotations
Include traces whose
Span.binaryAnnotations include a String whose key and
value are an entry in this set. |
long |
endTs
Only return traces where all
Span.timestamp are at or before this time in
epoch milliseconds. |
int |
limit
Maximum number of traces to return.
|
long |
lookback
Only return traces where all
Span.timestamp are at or after (endTs -
lookback) in milliseconds. |
Long |
maxDuration
Only return traces whose
Span.duration is less than or equal to maxDuration
microseconds. |
Long |
minDuration
Only return traces whose
Span.duration is greater than or equal to
minDuration microseconds. |
String |
serviceName
Mandatory
Endpoint.serviceName and constrains all other parameters. |
String |
spanName
When present, only include traces with this
Span.name |
public final String serviceName
Endpoint.serviceName and constrains all other parameters.@Nullable public final String spanName
Span.namepublic final List<String> annotations
Span.annotations include a value in this set.
This is an AND condition against the set, as well against binaryAnnotationspublic final Map<String,String> binaryAnnotations
Span.binaryAnnotations include a String whose key and
value are an entry in this set.
This is an AND condition against the set, as well against annotations@Nullable public final Long minDuration
Span.duration is greater than or equal to
minDuration microseconds.@Nullable public final Long maxDuration
Span.duration is less than or equal to maxDuration
microseconds. Only valid with minDuration.public final long endTs
Span.timestamp are at or before this time in
epoch milliseconds. Defaults to current time.public final long lookback
Span.timestamp are at or after (endTs -
lookback) in milliseconds. Defaults to endTs.public final int limit
Copyright © 2015–2016 OpenZipkin. All rights reserved.