public static class ThresholdLogReporter.Builder extends Object
The builder used to configure the ThresholdLogReporter
.
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
ThresholdLogReporter.Builder |
analyticsThreshold(long analyticsThreshold,
TimeUnit timeUnit)
Allows to customize the analyticsThreshold.
|
ThresholdLogReporter |
build() |
ThresholdLogReporter.Builder |
ftsThreshold(long ftsThreshold,
TimeUnit timeUnit)
Allows to customize the ftsThreshold.
|
ThresholdLogReporter.Builder |
kvThreshold(long kvThreshold,
TimeUnit timeUnit)
Allows to customize the kvThreshold.
|
ThresholdLogReporter.Builder |
logInterval(long interval,
TimeUnit unit)
Allows to customize the log interval.
|
ThresholdLogReporter.Builder |
n1qlThreshold(long n1qlThreshold,
TimeUnit timeUnit)
Allows to customize the n1qlThreshold.
|
ThresholdLogReporter.Builder |
pretty(boolean pretty)
Allows to set the JSON output to pretty, making it more readable but also more verbose.
|
ThresholdLogReporter.Builder |
sampleSize(int sampleSize)
Allows to customize the sample size per service.
|
ThresholdLogReporter.Builder |
spanQueueSize(int spanQueueSize)
Allows to configure the queue size for the individual span queues used to track the spans over threshold.
|
ThresholdLogReporter.Builder |
viewThreshold(long viewThreshold,
TimeUnit timeUnit)
Allows to customize the viewThreshold.
|
public ThresholdLogReporter build()
public ThresholdLogReporter.Builder logInterval(long interval, TimeUnit unit)
Allows to customize the log interval. if set to 0, disables it.
interval
- the interval to use.unit
- the time unit for the interval.public ThresholdLogReporter.Builder spanQueueSize(int spanQueueSize)
Allows to configure the queue size for the individual span queues used to track the spans over threshold.
spanQueueSize
- the queue size to use.public ThresholdLogReporter.Builder kvThreshold(long kvThreshold, TimeUnit timeUnit)
Allows to customize the kvThreshold.
kvThreshold
- the threshold to set.public ThresholdLogReporter.Builder n1qlThreshold(long n1qlThreshold, TimeUnit timeUnit)
Allows to customize the n1qlThreshold.
n1qlThreshold
- the threshold to set.public ThresholdLogReporter.Builder viewThreshold(long viewThreshold, TimeUnit timeUnit)
Allows to customize the viewThreshold.
viewThreshold
- the threshold to set.public ThresholdLogReporter.Builder ftsThreshold(long ftsThreshold, TimeUnit timeUnit)
Allows to customize the ftsThreshold.
ftsThreshold
- the threshold to set.public ThresholdLogReporter.Builder analyticsThreshold(long analyticsThreshold, TimeUnit timeUnit)
Allows to customize the analyticsThreshold.
analyticsThreshold
- the threshold to set.public ThresholdLogReporter.Builder sampleSize(int sampleSize)
Allows to customize the sample size per service.
sampleSize
- the sample size to set.public ThresholdLogReporter.Builder pretty(boolean pretty)
Allows to set the JSON output to pretty, making it more readable but also more verbose. Helpful during debugging.
pretty
- set to true, false by defaultCopyright © 2018 Couchbase, Inc.. All rights reserved.