Package codes.grow.packages.skywalking
Class QueryTracesOptions
java.lang.Object
codes.grow.packages.skywalking.QueryTracesOptions
Filter of
SkyWalkingQueryClient.queryTraces(codes.grow.packages.skywalking.QueryTracesOptions) (native traces). Services, instances and
endpoints are given by name; the SDK derives the ids.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic QueryTracesOptions.Builderbuilder()Returns a builder.static QueryTracesOptionsdefaults()No filter: the last hour, first page.endpoint()Endpoint name (needs a service).instance()Instance name (needs a service).Maximum trace duration in ms.Minimum trace duration in ms.order()Result order (defaultTraceOrder.BY_START_TIME).paging()Page selection (defaultPaging.DEFAULT).range()Window (default the last hour; not sent when only a trace id is given).service()Service name.tags()Tag matches; only keys in the server'sSW_SEARCHABLE_TAG_KEYScan match.traceId()Native trace id.Trace state (defaultTraceState.ALL).
-
Method Details
-
builder
Returns a builder.- Returns:
- builder with every field unset
-
defaults
No filter: the last hour, first page.- Returns:
- options
-
service
Service name.- Returns:
- the service, or empty
-
instance
Instance name (needs a service).- Returns:
- the instance, or empty
-
endpoint
Endpoint name (needs a service).- Returns:
- the endpoint, or empty
-
traceId
Native trace id.- Returns:
- the id, or empty
-
traceState
Trace state (defaultTraceState.ALL).- Returns:
- the state
-
minDurationMs
Minimum trace duration in ms.- Returns:
- the duration, or empty
-
maxDurationMs
Maximum trace duration in ms.- Returns:
- the duration, or empty
-
tags
Tag matches; only keys in the server'sSW_SEARCHABLE_TAG_KEYScan match.- Returns:
- immutable map
-
range
Window (default the last hour; not sent when only a trace id is given).- Returns:
- the range, or empty
-
paging
Page selection (defaultPaging.DEFAULT).- Returns:
- the paging
-
order
Result order (defaultTraceOrder.BY_START_TIME).- Returns:
- the order
-