Class OrphanOptions
Namespace: Couchbase.Core.Diagnostics.Tracing.OrphanResponseReporting
Assembly: Couchbase.NetClient.dll
Syntax
public sealed class OrphanOptions : object
Properties
| Improve this Doc View SourceEmitInterval
The interval after which the aggregated information is logged.
Declaration
public TimeSpan EmitInterval { get; set; }
Property Value
Type | Description |
---|---|
TimeSpan |
Enabled
Enables orphaned response tracing. Defaults to enabled.
Declaration
public bool Enabled { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
OrphanListener
Provides the means of registering a custom TraceListener implementation.
Declaration
public TraceListener OrphanListener { get; set; }
Property Value
Type | Description |
---|---|
TraceListener |
Remarks
It is suggested that the default OrphanListener be used instead of a custom implementation.
SampleSize
How many entries to sample per service in each emit interval.
Declaration
public uint SampleSize { get; set; }
Property Value
Type | Description |
---|---|
UInt32 |
Methods
| Improve this Doc View SourceWithEmitInterval(TimeSpan)
The interval after which the aggregated information is logged.
Declaration
public OrphanOptions WithEmitInterval(TimeSpan emitInterval)
Parameters
Type | Name | Description |
---|---|---|
TimeSpan | emitInterval | A |
Returns
Type | Description |
---|---|
OrphanOptions | A OrphanOptions object for chaining. |
WithEnabled(Boolean)
Enables orphaned response tracing.
Declaration
public OrphanOptions WithEnabled(bool enabled)
Parameters
Type | Name | Description |
---|---|---|
Boolean | enabled | A |
Returns
Type | Description |
---|---|
OrphanOptions | A OrphanOptions object for chaining. |
Remarks
Default is true.
WithSampleSize(UInt32)
How many entries to sample per service in each emit interval.
Declaration
public OrphanOptions WithSampleSize(uint sampleSize)
Parameters
Type | Name | Description |
---|---|---|
UInt32 | sampleSize | A |
Returns
Type | Description |
---|---|
OrphanOptions |