Class TraceSearchQuery.Builder
java.lang.Object
codes.grow.packages.skywalking.tracing.query.TraceSearchQuery.Builder
- Enclosing class:
TraceSearchQuery
Builder for
TraceSearchQuery.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the query.Sets the range end.limit(int limit) Sets the result limit.maxDurationMicros(Long micros) Sets the maximum duration.minDurationMicros(Long micros) Sets the minimum duration.Sets the operation filter.Sets the service filter.Sets the range start.Adds a tag filter.Adds tag filters.
-
Method Details
-
service
Sets the service filter.- Parameters:
service- service ornull- Returns:
- this builder
-
operation
Sets the operation filter.- Parameters:
operation- span name ornull- Returns:
- this builder
-
tag
Adds a tag filter.- Parameters:
key- attribute namevalue- attribute value- Returns:
- this builder
-
tags
Adds tag filters.- Parameters:
tags- attributes- Returns:
- this builder
-
minDurationMicros
Sets the minimum duration.- Parameters:
micros- microseconds ornull- Returns:
- this builder
-
maxDurationMicros
Sets the maximum duration.- Parameters:
micros- microseconds ornull- Returns:
- this builder
-
start
Sets the range start.- Parameters:
start- start ornull- Returns:
- this builder
-
end
Sets the range end.- Parameters:
end- end ornull- Returns:
- this builder
-
limit
Sets the result limit.- Parameters:
limit- at least 1- Returns:
- this builder
-
build
Builds the query.- Returns:
- query
- Throws:
ValidationException- when the limit, durations or range are invalid
-