Package com.couchbase.client.core.env
Class ThresholdRequestTracerConfig.Builder
java.lang.Object
com.couchbase.client.core.env.ThresholdRequestTracerConfig.Builder
- Enclosing class:
- ThresholdRequestTracerConfig
public static class ThresholdRequestTracerConfig.Builder extends Object
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description ThresholdRequestTracerConfig.Builder
analyticsThreshold(Duration analyticsThreshold)
Allows to customize the analyticsThreshold.ThresholdRequestTracerConfig
build()
ThresholdRequestTracerConfig.Builder
emitInterval(Duration emitInterval)
Allows to customize the emit intervalThresholdRequestTracerConfig.Builder
kvThreshold(Duration kvThreshold)
Allows to customize the kvThreshold.ThresholdRequestTracerConfig.Builder
queryThreshold(Duration queryThreshold)
Allows to customize the n1qlThreshold.ThresholdRequestTracerConfig.Builder
queueLength(int queueLength)
Allows to configure the queue size for the individual span queues used to track the spans over threshold.ThresholdRequestTracerConfig.Builder
sampleSize(int sampleSize)
Allows to customize the sample size per service.ThresholdRequestTracerConfig.Builder
searchThreshold(Duration searchThreshold)
Allows to customize the ftsThreshold.ThresholdRequestTracerConfig.Builder
viewThreshold(Duration viewThreshold)
Allows to customize the viewThreshold.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
emitInterval
Allows to customize the emit interval- Parameters:
emitInterval
- the interval to use.- Returns:
- this builder for chaining.
-
queueLength
Allows to configure the queue size for the individual span queues used to track the spans over threshold.- Parameters:
queueLength
- the queue size to use.- Returns:
- this builder for chaining.
-
kvThreshold
Allows to customize the kvThreshold.- Parameters:
kvThreshold
- the threshold to set.- Returns:
- this builder for chaining.
-
queryThreshold
Allows to customize the n1qlThreshold.- Parameters:
queryThreshold
- the threshold to set.- Returns:
- this builder for chaining.
-
viewThreshold
Allows to customize the viewThreshold.- Parameters:
viewThreshold
- the threshold to set.- Returns:
- this builder for chaining.
-
searchThreshold
Allows to customize the ftsThreshold.- Parameters:
searchThreshold
- the threshold to set.- Returns:
- this builder for chaining.
-
analyticsThreshold
Allows to customize the analyticsThreshold.- Parameters:
analyticsThreshold
- the threshold to set.- Returns:
- this builder for chaining.
-
sampleSize
Allows to customize the sample size per service.- Parameters:
sampleSize
- the sample size to set.- Returns:
- this builder for chaining.
-
build
-