Couchbase .NET SDK | 3.7.2
Search Results for

    Show / Hide Table of Contents

    Class ThresholdOptions

    Inheritance
    object
    ThresholdOptions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Couchbase.Core.Diagnostics.Tracing.ThresholdTracing
    Assembly: Couchbase.NetClient.dll
    Syntax
    public class ThresholdOptions

    Fields

    | Edit this page View Source

    DefaultSampleSize

    Declaration
    public static readonly int DefaultSampleSize
    Field Value
    Type Description
    int

    Properties

    | Edit this page View Source

    EmitInterval

    Declaration
    public TimeSpan EmitInterval { get; set; }
    Property Value
    Type Description
    TimeSpan
    | Edit this page View Source

    Enabled

    Enables threshold tracing. Defaults to enabled.

    Declaration
    public bool Enabled { get; set; }
    Property Value
    Type Description
    bool
    | Edit this page View Source

    ThresholdListener

    Provides the means of registering a custom TraceListener implementation.

    Declaration
    public TraceListener ThresholdListener { get; set; }
    Property Value
    Type Description
    TraceListener
    Remarks

    It is suggested that the default ThresholdListener be used instead of a custom implementation.

    Methods

    | Edit this page View Source

    GetServiceThresholds()

    Declaration
    public IReadOnlyDictionary<string, TimeSpan> GetServiceThresholds()
    Returns
    Type Description
    IReadOnlyDictionary<string, TimeSpan>
    | Edit this page View Source

    WithAnalyticsThreshold(TimeSpan)

    The threshold over which the request is taken into account for the search service

    Declaration
    public ThresholdOptions WithAnalyticsThreshold(TimeSpan analyticsThreshold)
    Parameters
    Type Name Description
    TimeSpan analyticsThreshold

    A TimeSpan interval.

    Returns
    Type Description
    ThresholdOptions

    A ThresholdOptions for chaining.

    Remarks

    The default is 1 second.

    | Edit this page View Source

    WithEmitInterval(TimeSpan)

    The interval after which the aggregated trace information is logged.

    Declaration
    public ThresholdOptions WithEmitInterval(TimeSpan emitInterval)
    Parameters
    Type Name Description
    TimeSpan emitInterval

    A TimeSpan interval.

    Returns
    Type Description
    ThresholdOptions

    A ThresholdOptions for chaining.

    Remarks

    The default is 10 seconds.

    | Edit this page View Source

    WithKvThreshold(TimeSpan)

    The interval after which the aggregated trace information is logged.

    Declaration
    public ThresholdOptions WithKvThreshold(TimeSpan kvThreshold)
    Parameters
    Type Name Description
    TimeSpan kvThreshold

    A TimeSpan interval.

    Returns
    Type Description
    ThresholdOptions

    A ThresholdOptions for chaining.

    Remarks

    The default is 500 Milliseconds.

    | Edit this page View Source

    WithQueryThreshold(TimeSpan)

    The threshold over which the request is taken into account for the query service

    Declaration
    public ThresholdOptions WithQueryThreshold(TimeSpan queryThreshold)
    Parameters
    Type Name Description
    TimeSpan queryThreshold

    A TimeSpan interval.

    Returns
    Type Description
    ThresholdOptions

    A ThresholdOptions for chaining.

    Remarks

    The default is 1 second.

    | Edit this page View Source

    WithSampleSize(uint)

    How many entries to sample per service in each emit interval

    Declaration
    public ThresholdOptions WithSampleSize(uint sampleSize)
    Parameters
    Type Name Description
    uint sampleSize

    A uint indicating the sample size.

    Returns
    Type Description
    ThresholdOptions

    A ThresholdOptions for chaining.

    Remarks

    The default is 10 samples.

    | Edit this page View Source

    WithSearchThreshold(TimeSpan)

    The threshold over which the request is taken into account for the search service

    Declaration
    public ThresholdOptions WithSearchThreshold(TimeSpan searchThreshold)
    Parameters
    Type Name Description
    TimeSpan searchThreshold

    A TimeSpan interval.

    Returns
    Type Description
    ThresholdOptions

    A ThresholdOptions for chaining.

    Remarks

    The default is 1 second.

    | Edit this page View Source

    WithViewsThreshold(TimeSpan)

    The threshold over which the request is taken into account for the views service

    Declaration
    public ThresholdOptions WithViewsThreshold(TimeSpan viewsThreshold)
    Parameters
    Type Name Description
    TimeSpan viewsThreshold

    A TimeSpan interval.

    Returns
    Type Description
    ThresholdOptions

    A ThresholdOptions for chaining.

    Remarks

    The default is 1 second.

    • Edit this page
    • View Source
    In this article
    Back to top © 2025 Couchbase, Inc.