Couchbase .NET SDK __CB_SDK_VERSION__

Show / Hide Table of Contents

Class TracingOptions

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

Constructors

View Source

TracingOptions()

Declaration
public TracingOptions()

Properties

View Source

Enabled

Enables request tracing. Defaults to enabled.

Declaration
public bool Enabled { get; set; }
Property Value
Type Description
bool
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

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.

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.

  • View Source
In this article
Back to top Copyright © 2020 Couchbase, Inc. All rights reserved.