Couchbase .NET SDK | 3.7.2
Search Results for

    Show / Hide Table of Contents

    Class TracingOptions

    Inheritance
    object
    TracingOptions
    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 TracingOptions

    Properties

    | Edit this page View Source

    Enabled

    Enables request tracing. Defaults to enabled.

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

    RequestTracer

    A custom IRequestTracer implementation; the default is the RequestTracer class.

    Declaration
    public IRequestTracer RequestTracer { get; set; }
    Property Value
    Type Description
    IRequestTracer

    Methods

    | Edit this page View Source

    WithEnabled(bool)

    Enables request tracing

    Declaration
    public TracingOptions WithEnabled(bool enabled)
    Parameters
    Type Name Description
    bool enabled

    A bool true if enabled.

    Returns
    Type Description
    TracingOptions

    A TracingOptions object for chaining.

    Remarks

    Default is true.

    | Edit this page View Source

    WithTracer(IRequestTracer)

    A custom RequestTracer implementation.

    Declaration
    public TracingOptions WithTracer(IRequestTracer requestTracer)
    Parameters
    Type Name Description
    IRequestTracer requestTracer

    The custom IRequestTracer to override the default RequestTracer

    Returns
    Type Description
    TracingOptions

    A TracingOptions object for chaining.

    Remarks

    In most all cases the default RequestTracer is sufficient and should be used.

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