Package com.couchbase.client.core.env
Class ThresholdRequestTracerConfig
- java.lang.Object
-
- com.couchbase.client.core.env.ThresholdRequestTracerConfig
-
public class ThresholdRequestTracerConfig extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ThresholdRequestTracerConfig.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Duration
analyticsThreshold()
static ThresholdRequestTracerConfig.Builder
analyticsThreshold(Duration analyticsThreshold)
Allows to customize the analyticsThreshold.static ThresholdRequestTracerConfig.Builder
builder()
static ThresholdRequestTracerConfig
create()
Duration
emitInterval()
static ThresholdRequestTracerConfig.Builder
emitInterval(Duration emitInterval)
Allows to customize the emit intervalDuration
kvThreshold()
static ThresholdRequestTracerConfig.Builder
kvThreshold(Duration kvThreshold)
Allows to customize the kvThreshold.Duration
queryThreshold()
static ThresholdRequestTracerConfig.Builder
queryThreshold(Duration queryThreshold)
Allows to customize the n1qlThreshold.int
queueLength()
static ThresholdRequestTracerConfig.Builder
queueLength(int queueLength)
Allows to configure the queue size for the individual span queues used to track the spans over threshold.int
sampleSize()
static ThresholdRequestTracerConfig.Builder
sampleSize(int sampleSize)
Allows to customize the sample size per service.Duration
searchThreshold()
static ThresholdRequestTracerConfig.Builder
searchThreshold(Duration searchThreshold)
Allows to customize the ftsThreshold.Duration
viewThreshold()
static ThresholdRequestTracerConfig.Builder
viewThreshold(Duration viewThreshold)
Allows to customize the viewThreshold.
-
-
-
Method Detail
-
builder
public static ThresholdRequestTracerConfig.Builder builder()
-
create
public static ThresholdRequestTracerConfig create()
-
sampleSize
public static ThresholdRequestTracerConfig.Builder sampleSize(int sampleSize)
Allows to customize the sample size per service.- Parameters:
sampleSize
- the sample size to set.- Returns:
- this builder for chaining.
-
emitInterval
public static ThresholdRequestTracerConfig.Builder emitInterval(Duration emitInterval)
Allows to customize the emit interval- Parameters:
emitInterval
- the interval to use.- Returns:
- this builder for chaining.
-
queueLength
public static ThresholdRequestTracerConfig.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 static ThresholdRequestTracerConfig.Builder kvThreshold(Duration kvThreshold)
Allows to customize the kvThreshold.- Parameters:
kvThreshold
- the threshold to set.- Returns:
- this builder for chaining.
-
analyticsThreshold
public static ThresholdRequestTracerConfig.Builder analyticsThreshold(Duration analyticsThreshold)
Allows to customize the analyticsThreshold.- Parameters:
analyticsThreshold
- the threshold to set.- Returns:
- this builder for chaining.
-
queryThreshold
public static ThresholdRequestTracerConfig.Builder queryThreshold(Duration queryThreshold)
Allows to customize the n1qlThreshold.- Parameters:
queryThreshold
- the threshold to set.- Returns:
- this builder for chaining.
-
searchThreshold
public static ThresholdRequestTracerConfig.Builder searchThreshold(Duration searchThreshold)
Allows to customize the ftsThreshold.- Parameters:
searchThreshold
- the threshold to set.- Returns:
- this builder for chaining.
-
viewThreshold
public static ThresholdRequestTracerConfig.Builder viewThreshold(Duration viewThreshold)
Allows to customize the viewThreshold.- Parameters:
viewThreshold
- the threshold to set.- Returns:
- this builder for chaining.
-
emitInterval
public Duration emitInterval()
-
queueLength
public int queueLength()
-
sampleSize
public int sampleSize()
-
kvThreshold
public Duration kvThreshold()
-
queryThreshold
public Duration queryThreshold()
-
viewThreshold
public Duration viewThreshold()
-
searchThreshold
public Duration searchThreshold()
-
analyticsThreshold
public Duration analyticsThreshold()
-
-