Package codes.grow.packages.signoz
Class LogClientOptions.Builder
java.lang.Object
codes.grow.packages.signoz.LogClientOptions.Builder
- Enclosing class:
LogClientOptions
Builder of
LogClientOptions.-
Method Summary
Modifier and TypeMethodDescriptionbatchOptions(BatchOptions batchOptions) Sets the batching options.build()Builds the options.Overrides the config's collector endpoint.environment(String environment) Setsdeployment.environment.Adds an export header (merged over the config headers).protocol(OtlpProtocol protocol) Overrides the config's OTLP protocol.redaction(RedactionProcessor redaction) Sets the redaction processor (defaultRedactionProcessor.defaults()).Adds resource attributes (they win over serviceName, serviceVersion and environment).serviceName(String serviceName) Setsservice.name(defaultunknown_service).serviceVersion(String serviceVersion) Setsservice.version.
-
Method Details
-
serviceName
Setsservice.name(defaultunknown_service).- Parameters:
serviceName- name- Returns:
- this builder
-
serviceVersion
Setsservice.version.- Parameters:
serviceVersion- version- Returns:
- this builder
-
environment
Setsdeployment.environment.- Parameters:
environment- environment- Returns:
- this builder
-
protocol
Overrides the config's OTLP protocol.- Parameters:
protocol- protocol- Returns:
- this builder
-
endpoint
Overrides the config's collector endpoint.- Parameters:
endpoint- endpoint- Returns:
- this builder
-
header
Adds an export header (merged over the config headers).- Parameters:
name- namevalue- value- Returns:
- this builder
-
batchOptions
Sets the batching options.- Parameters:
batchOptions- options- Returns:
- this builder
-
resource
Adds resource attributes (they win over serviceName, serviceVersion and environment).- Parameters:
resource- attributes- Returns:
- this builder
-
redaction
Sets the redaction processor (defaultRedactionProcessor.defaults()).- Parameters:
redaction- processor- Returns:
- this builder
-
build
Builds the options.- Returns:
- the options
-