Package codes.grow.packages.betterstack
Class BetterStackLogClientOptions.Builder
java.lang.Object
codes.grow.packages.betterstack.BetterStackLogClientOptions.Builder
- Enclosing class:
BetterStackLogClientOptions
Builder of
BetterStackLogClientOptions.-
Method Summary
Modifier and TypeMethodDescriptionbatchOptions(BatchOptions batchOptions) Sets the batching options.build()Builds the options.exporter(BetterStackLogExporterOptions exporter) Sets the HTTP exporter options (encoding, limits).Sets the OTLP exporter options.protocol(LogProtocol protocol) Sets the wire protocol.redaction(RedactionProcessor redaction) Sets the redaction processor;nulldisables redaction (not recommended).Sets the resource attributes.
-
Method Details
-
protocol
Sets the wire protocol.- Parameters:
protocol- protocol- Returns:
- this builder
-
exporter
Sets the HTTP exporter options (encoding, limits).- Parameters:
exporter- options- Returns:
- this builder
-
otlp
Sets the OTLP exporter options.- Parameters:
otlp- options- Returns:
- this builder
-
batchOptions
Sets the batching options.- Parameters:
batchOptions- options- Returns:
- this builder
-
resource
Sets the resource attributes.- Parameters:
resource- attributes- Returns:
- this builder
-
redaction
Sets the redaction processor;nulldisables redaction (not recommended).- Parameters:
redaction- processor ornull- Returns:
- this builder
-
build
Builds the options.- Returns:
- options
-