Package codes.grow.packages.skywalking
Class SkyWalkingLogClientOptions
java.lang.Object
codes.grow.packages.skywalking.SkyWalkingLogClientOptions
Options of
SkyWalkingClient.logClient(codes.grow.packages.skywalking.core.HttpTransport, codes.grow.packages.skywalking.SkyWalkingLogClientOptions, boolean) and SkyWalkingClient.createLogClient(codes.grow.packages.skywalking.SkyWalkingConfig, codes.grow.packages.skywalking.SkyWalkingLogClientOptions): the
resource of the records (service.name, service.instance.id, more attributes) and
the batch settings.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionBatch settings.builder()Returns a builder.static SkyWalkingLogClientOptionsforService(String serviceName) Options with a service name and default batching.resource()The resource attributes added to every record (including service name and instance).service.instance.idof the records.service.nameof the records (default "unknown_service").
-
Method Details
-
builder
Returns a builder.- Returns:
- builder
-
forService
Options with a service name and default batching.- Parameters:
serviceName-service.nameof the records- Returns:
- options
-
serviceName
service.nameof the records (default "unknown_service").- Returns:
- the name, or empty
-
serviceInstance
service.instance.idof the records.- Returns:
- the instance, or empty
-
resource
The resource attributes added to every record (including service name and instance).- Returns:
- immutable map
-
batchOptions
Batch settings.- Returns:
- the options
-