Couchbase .NET SDK __CB_SDK_VERSION__

Show / Hide Table of Contents

Class OrphanOptions

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

Constructors

View Source

OrphanOptions()

Declaration
public OrphanOptions()

Properties

View Source

EmitInterval

The interval after which the aggregated information is logged.

Declaration
public TimeSpan EmitInterval { get; set; }
Property Value
Type Description
TimeSpan
View Source

Enabled

Enables orphaned response tracing. Defaults to enabled.

Declaration
public bool Enabled { get; set; }
Property Value
Type Description
bool
View Source

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.

View Source

SampleSize

How many entries to sample per service in each emit interval.

Declaration
public uint SampleSize { get; set; }
Property Value
Type Description
uint

Methods

View Source

WithEmitInterval(TimeSpan)

The interval after which the aggregated information is logged.

Declaration
public OrphanOptions WithEmitInterval(TimeSpan emitInterval)
Parameters
Type Name Description
TimeSpan emitInterval

A TimeSpan which is the interval.

Returns
Type Description
OrphanOptions

A OrphanOptions object for chaining.

View Source

WithEnabled(bool)

Enables orphaned response tracing.

Declaration
public OrphanOptions WithEnabled(bool enabled)
Parameters
Type Name Description
bool enabled

A bool true if enabled.

Returns
Type Description
OrphanOptions

A OrphanOptions object for chaining.

Remarks

Default is true.

View Source

WithSampleSize(uint)

How many entries to sample per service in each emit interval.

Declaration
public OrphanOptions WithSampleSize(uint sampleSize)
Parameters
Type Name Description
uint sampleSize

A uint which is the sample size to emit.

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