Class SkyWalkingLogClientOptions

java.lang.Object
codes.grow.packages.skywalking.SkyWalkingLogClientOptions

public final class SkyWalkingLogClientOptions extends Object
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.
  • Method Details

    • builder

      public static SkyWalkingLogClientOptions.Builder builder()
      Returns a builder.
      Returns:
      builder
    • forService

      public static SkyWalkingLogClientOptions forService(String serviceName)
      Options with a service name and default batching.
      Parameters:
      serviceName - service.name of the records
      Returns:
      options
    • serviceName

      public Optional<String> serviceName()
      service.name of the records (default "unknown_service").
      Returns:
      the name, or empty
    • serviceInstance

      public Optional<String> serviceInstance()
      service.instance.id of the records.
      Returns:
      the instance, or empty
    • resource

      public Map<String,Object> resource()
      The resource attributes added to every record (including service name and instance).
      Returns:
      immutable map
    • batchOptions

      public BatchOptions batchOptions()
      Batch settings.
      Returns:
      the options