Package codes.grow.packages.skywalking
Class QueryTracesOptions.Builder
java.lang.Object
codes.grow.packages.skywalking.QueryTracesOptions.Builder
- Enclosing class:
QueryTracesOptions
Builder of
QueryTracesOptions.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the options (validated when the query runs).Sets the endpoint name (needs a service).Sets the instance name (needs a service).maxDurationMs(Long ms) Sets the maximum trace duration in ms.minDurationMs(Long ms) Sets the minimum trace duration in ms.order(TraceOrder order) Sets the order.Sets the page.Sets the window.Sets the service name.Adds a tag match.Adds tag matches.Sets the native trace id.traceState(TraceState traceState) Sets the trace state.
-
Method Details
-
service
Sets the service name.- Parameters:
service- name- Returns:
- this builder
-
instance
Sets the instance name (needs a service).- Parameters:
instance- name- Returns:
- this builder
-
endpoint
Sets the endpoint name (needs a service).- Parameters:
endpoint- name- Returns:
- this builder
-
traceId
Sets the native trace id.- Parameters:
traceId- id- Returns:
- this builder
-
traceState
Sets the trace state.- Parameters:
traceState- state- Returns:
- this builder
-
minDurationMs
Sets the minimum trace duration in ms.- Parameters:
ms- milliseconds or null- Returns:
- this builder
-
maxDurationMs
Sets the maximum trace duration in ms.- Parameters:
ms- milliseconds or null- Returns:
- this builder
-
tag
Adds a tag match.- Parameters:
key- keyvalue- value- Returns:
- this builder
-
tags
Adds tag matches.- Parameters:
tags- tags- Returns:
- this builder
-
range
Sets the window.- Parameters:
range- range or null- Returns:
- this builder
-
paging
Sets the page.- Parameters:
paging- paging- Returns:
- this builder
-
order
Sets the order.- Parameters:
order- order- Returns:
- this builder
-
build
Builds the options (validated when the query runs).- Returns:
- options
-