Package com.couchbase.client.core.env
Class ThresholdLoggingTracerConfig
- java.lang.Object
-
- com.couchbase.client.core.env.ThresholdLoggingTracerConfig
-
public class ThresholdLoggingTracerConfig extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ThresholdLoggingTracerConfig.Builder
static class
ThresholdLoggingTracerConfig.Defaults
-
Method Summary
-
-
-
Method Detail
-
builder
public static ThresholdLoggingTracerConfig.Builder builder()
-
create
public static ThresholdLoggingTracerConfig create()
-
disabled
public static ThresholdLoggingTracerConfig disabled()
-
enabled
public static ThresholdLoggingTracerConfig.Builder enabled(boolean enabled)
-
sampleSize
public static ThresholdLoggingTracerConfig.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 ThresholdLoggingTracerConfig.Builder emitInterval(Duration emitInterval)
Allows to customize the emit interval- Parameters:
emitInterval
- the interval to use.- Returns:
- this builder for chaining.
-
queueLength
public static ThresholdLoggingTracerConfig.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 ThresholdLoggingTracerConfig.Builder kvThreshold(Duration kvThreshold)
Allows to customize the kvThreshold.- Parameters:
kvThreshold
- the threshold to set.- Returns:
- this builder for chaining.
-
analyticsThreshold
public static ThresholdLoggingTracerConfig.Builder analyticsThreshold(Duration analyticsThreshold)
Allows to customize the analyticsThreshold.- Parameters:
analyticsThreshold
- the threshold to set.- Returns:
- this builder for chaining.
-
queryThreshold
public static ThresholdLoggingTracerConfig.Builder queryThreshold(Duration queryThreshold)
Allows to customize the n1qlThreshold.- Parameters:
queryThreshold
- the threshold to set.- Returns:
- this builder for chaining.
-
searchThreshold
public static ThresholdLoggingTracerConfig.Builder searchThreshold(Duration searchThreshold)
Allows to customize the ftsThreshold.- Parameters:
searchThreshold
- the threshold to set.- Returns:
- this builder for chaining.
-
viewThreshold
public static ThresholdLoggingTracerConfig.Builder viewThreshold(Duration viewThreshold)
Allows to customize the viewThreshold.- Parameters:
viewThreshold
- the threshold to set.- Returns:
- this builder for chaining.
-
enabled
public boolean enabled()
-
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()
-
transactionsThreshold
public Duration transactionsThreshold()
-
-