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