Package codes.grow.packages.skywalking
Class QueryLogsOptions
java.lang.Object
codes.grow.packages.skywalking.QueryLogsOptions
Filter of
SkyWalkingQueryClient.queryLogs(codes.grow.packages.skywalking.QueryLogsOptions). Either a window (default the last hour) or a
trace id is sent.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic QueryLogsOptions.Builderbuilder()Returns a builder.static QueryLogsOptionsdefaults()No filter: the last hour, newest first, first page.endpoint()Endpoint name (needs a service).Words the content must not contain (same rules askeywords()).instance()Instance name (needs a service).keywords()Words the content must contain: sent to the server when it supports keyword search (Elasticsearch storage); on BanyanDB the page is filtered client side (case-insensitive substring).order()Order (defaultSortOrder.DESC, newest first).paging()Page selection (defaultPaging.DEFAULT; OAP accepts up to 1000 per page).range()Window (default the last hour; not sent when only a trace id is given).Segment of the related trace.service()Service name.spanId()Span of the related segment.tags()Tag matches; only keys inSW_SEARCHABLE_LOGS_TAG_KEYScan match.Returns a builder holding these values.traceId()Related trace id (native or hex).
-
Method Details
-
builder
Returns a builder.- Returns:
- builder with every field unset
-
defaults
No filter: the last hour, newest first, first page.- Returns:
- options
-
toBuilder
Returns a builder holding these values.- Returns:
- builder copy
-
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
Related trace id (native or hex). OTLP logs keep their trace id only in thetrace_idtag.- Returns:
- the id, or empty
-
segmentId
Segment of the related trace.- Returns:
- the segment id, or empty
-
spanId
Span of the related segment.- Returns:
- the span id, or empty
-
keywords
Words the content must contain: sent to the server when it supports keyword search (Elasticsearch storage); on BanyanDB the page is filtered client side (case-insensitive substring).- Returns:
- the words
-
excludingKeywords
Words the content must not contain (same rules askeywords()).- Returns:
- the words
-
tags
Tag matches; only keys inSW_SEARCHABLE_LOGS_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; OAP accepts up to 1000 per page).- Returns:
- the paging
-
order
Order (defaultSortOrder.DESC, newest first).- Returns:
- the order
-