Class TracingConfiguration
A configuration class for tracing.
Inherited Members
Namespace: Couchbase.Core.Diagnostics.Tracing
Assembly: Couchbase.NetClient.dll
Syntax
public class TracingConfiguration
Properties
| Edit this page View SourceEmitInterval
Declaration
public TimeSpan EmitInterval { get; set; }
Property Value
Type | Description |
---|---|
TimeSpan |
Methods
| Edit this page View SourceWithEmitInterval(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.
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.
WithService(string)
The service name
Declaration
public TracingConfiguration WithService(string service)
Parameters
Type | Name | Description |
---|---|---|
string | service |
Returns
Type | Description |
---|---|
TracingConfiguration |
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.