Class TracingOptions
Inherited Members
Namespace: Couchbase.Core.Diagnostics.Tracing
Assembly: Couchbase.NetClient.dll
Syntax
public class TracingOptions
Properties
| Edit this page View SourceEnabled
Enables request tracing. Defaults to enabled.
Declaration
public bool Enabled { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
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 SourceWithEnabled(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.
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.