Class ThresholdLoggingTracerConfig.Builder

java.lang.Object
com.couchbase.client.core.env.ThresholdLoggingTracerConfig.Builder
Enclosing class:
ThresholdLoggingTracerConfig

public static class ThresholdLoggingTracerConfig.Builder extends Object
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • enabled

      public ThresholdLoggingTracerConfig.Builder enabled(boolean enabled)
    • emitInterval

      public ThresholdLoggingTracerConfig.Builder emitInterval(Duration emitInterval)
      Allows to customize the emit interval
      Parameters:
      emitInterval - the interval to use.
      Returns:
      this builder for chaining.
    • queueLength

      public 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 ThresholdLoggingTracerConfig.Builder kvThreshold(Duration kvThreshold)
      Allows to customize the kvThreshold.
      Parameters:
      kvThreshold - the threshold to set.
      Returns:
      this builder for chaining.
    • queryThreshold

      public ThresholdLoggingTracerConfig.Builder queryThreshold(Duration queryThreshold)
      Allows to customize the n1qlThreshold.
      Parameters:
      queryThreshold - the threshold to set.
      Returns:
      this builder for chaining.
    • viewThreshold

      public ThresholdLoggingTracerConfig.Builder viewThreshold(Duration viewThreshold)
      Allows to customize the viewThreshold.
      Parameters:
      viewThreshold - the threshold to set.
      Returns:
      this builder for chaining.
    • searchThreshold

      public ThresholdLoggingTracerConfig.Builder searchThreshold(Duration searchThreshold)
      Allows to customize the ftsThreshold.
      Parameters:
      searchThreshold - the threshold to set.
      Returns:
      this builder for chaining.
    • analyticsThreshold

      public ThresholdLoggingTracerConfig.Builder analyticsThreshold(Duration analyticsThreshold)
      Allows to customize the analyticsThreshold.
      Parameters:
      analyticsThreshold - the threshold to set.
      Returns:
      this builder for chaining.
    • transactionsThreshold

      public ThresholdLoggingTracerConfig.Builder transactionsThreshold(Duration transactionsThreshold)
      Allows customizing the threshold above which transactions are regarded as slow.
      Parameters:
      transactionsThreshold - the threshold to set.
      Returns:
      this builder for chaining.
    • sampleSize

      public 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.
    • build