Couchbase .NET SDK __CB_SDK_VERSION__

Show / Hide Table of Contents

Class TracingConfiguration

A configuration class for tracing.

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

Constructors

View Source

TracingConfiguration()

Declaration
public TracingConfiguration()

Properties

View Source

EmitInterval

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

Methods

View Source

WithEmitInterval(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.

View Source

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.

View Source

WithService(string)

The service name

Declaration
public TracingConfiguration WithService(string service)
Parameters
Type Name Description
string service
Returns
Type Description
TracingConfiguration
View Source

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.

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