Couchbase .NET SDK | 3.7.2
Search Results for

    Show / Hide Table of Contents

    Class TracingConfiguration

    A configuration class for tracing.

    Inheritance
    object
    TracingConfiguration
    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
    Assembly: Couchbase.NetClient.dll
    Syntax
    public class TracingConfiguration

    Properties

    | Edit this page View Source

    EmitInterval

    Declaration
    public TimeSpan EmitInterval { get; set; }
    Property Value
    Type Description
    TimeSpan

    Methods

    | Edit this page View Source

    WithEmitInterval(TimeSpan)

    The interval after which the aggregated trace information is logged.

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

    A TimeSpan interval.

    Returns
    Type Description
    TracingConfiguration

    A TracingConfiguration for chaining.

    Remarks

    The default is 10 seconds.

    | Edit this page View Source

    WithSampleSize(uint)

    How many entries to sample per service in each emit interval

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

    A uint indicating the sample size.

    Returns
    Type Description
    TracingConfiguration

    A TracingConfiguration for chaining.

    Remarks

    The default is 10 samples.

    | Edit this page View Source

    WithService(string)

    The service name

    Declaration
    public TracingConfiguration WithService(string service)
    Parameters
    Type Name Description
    string service
    Returns
    Type Description
    TracingConfiguration
    | Edit this page View Source

    WithThreshold(TimeSpan)

    The interval after which the aggregated trace information is logged.

    Declaration
    public TracingConfiguration WithThreshold(TimeSpan threshold)
    Parameters
    Type Name Description
    TimeSpan threshold

    A TimeSpan interval.

    Returns
    Type Description
    TracingConfiguration

    A TracingConfiguration for chaining.

    Remarks

    The default is 500 Milliseconds.

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