Package codes.grow.packages.loki
Class LokiLogClientOptions.Builder
java.lang.Object
codes.grow.packages.loki.LokiLogClientOptions.Builder
- Enclosing class:
LokiLogClientOptions
Builder of
LokiLogClientOptions.-
Method Summary
Modifier and TypeMethodDescriptionallowedLabels(List<String> names) Overrides the cardinality guard allowlist of the client configuration.batchOptions(BatchOptions options) Sets the batch options.build()Builds the options.protocol(LogProtocol protocol) Sets the protocol (defaultLogProtocol.JSON).redaction(RedactionProcessor redaction) Sets the redaction processor (nulldisables redaction).Sets the resource added to every record.
-
Method Details
-
protocol
Sets the protocol (defaultLogProtocol.JSON).- Parameters:
protocol- protocol- Returns:
- this builder
-
batchOptions
Sets the batch options.- Parameters:
options- options- Returns:
- this builder
-
resource
Sets the resource added to every record.- Parameters:
resource- resource attributes- Returns:
- this builder
-
redaction
Sets the redaction processor (nulldisables redaction).- Parameters:
redaction- processor- Returns:
- this builder
-
allowedLabels
Overrides the cardinality guard allowlist of the client configuration.- Parameters:
names- label names- Returns:
- this builder
-
build
Builds the options.- Returns:
- the options
-