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 |
---|---|
Time |
Methods
| Edit this page View SourceWithEmitInterval(TimeSpan)
The interval after which the aggregated trace information is logged.
Declaration
public TracingConfiguration WithEmitInterval(TimeSpan emitInterval)
Parameters
Returns
Type | Description |
---|---|
Tracing |
A Tracing |
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
Returns
Type | Description |
---|---|
Tracing |
A Tracing |
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 |
---|---|
Tracing |
WithThreshold(TimeSpan)
The interval after which the aggregated trace information is logged.
Declaration
public TracingConfiguration WithThreshold(TimeSpan threshold)
Parameters
Returns
Type | Description |
---|---|
Tracing |
A Tracing |
Remarks
The default is 500 Milliseconds.