Class ThresholdRequestTracer.Builder
- java.lang.Object
-
- com.couchbase.client.core.cnc.tracing.ThresholdRequestTracer.Builder
-
- Enclosing class:
- ThresholdRequestTracer
public static class ThresholdRequestTracer.Builder extends Object
The builder used to configure theThresholdRequestTracer.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ThresholdRequestTracer.BuilderanalyticsThreshold(Duration analyticsThreshold)Allows to customize the analyticsThreshold.ThresholdRequestTracerbuild()ThresholdRequestTracer.BuilderemitInterval(Duration emitInterval)Allows to customize the emit intervalThresholdRequestTracer.BuilderkvThreshold(Duration kvThreshold)Allows to customize the kvThreshold.ThresholdRequestTracer.BuilderqueryThreshold(Duration queryThreshold)Allows to customize the n1qlThreshold.ThresholdRequestTracer.BuilderqueueLength(int queueLength)Allows to configure the queue size for the individual span queues used to track the spans over threshold.ThresholdRequestTracer.BuildersampleSize(int sampleSize)Allows to customize the sample size per service.ThresholdRequestTracer.BuildersearchThreshold(Duration searchThreshold)Allows to customize the ftsThreshold.ThresholdRequestTracer.BuilderviewThreshold(Duration viewThreshold)Allows to customize the viewThreshold.
-
-
-
Method Detail
-
build
public ThresholdRequestTracer build()
-
emitInterval
public ThresholdRequestTracer.Builder emitInterval(Duration emitInterval)
Allows to customize the emit interval- Parameters:
emitInterval- the interval to use.- Returns:
- this builder for chaining.
-
queueLength
public ThresholdRequestTracer.Builder queueLength(int 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
public ThresholdRequestTracer.Builder kvThreshold(Duration kvThreshold)
Allows to customize the kvThreshold.- Parameters:
kvThreshold- the threshold to set.- Returns:
- this builder for chaining.
-
queryThreshold
public ThresholdRequestTracer.Builder queryThreshold(Duration queryThreshold)
Allows to customize the n1qlThreshold.- Parameters:
queryThreshold- the threshold to set.- Returns:
- this builder for chaining.
-
viewThreshold
public ThresholdRequestTracer.Builder viewThreshold(Duration viewThreshold)
Allows to customize the viewThreshold.- Parameters:
viewThreshold- the threshold to set.- Returns:
- this builder for chaining.
-
searchThreshold
public ThresholdRequestTracer.Builder searchThreshold(Duration searchThreshold)
Allows to customize the ftsThreshold.- Parameters:
searchThreshold- the threshold to set.- Returns:
- this builder for chaining.
-
analyticsThreshold
public ThresholdRequestTracer.Builder analyticsThreshold(Duration analyticsThreshold)
Allows to customize the analyticsThreshold.- Parameters:
analyticsThreshold- the threshold to set.- Returns:
- this builder for chaining.
-
sampleSize
public ThresholdRequestTracer.Builder sampleSize(int sampleSize)
Allows to customize the sample size per service.- Parameters:
sampleSize- the sample size to set.- Returns:
- this builder for chaining.
-
-