Google.Cloud.Diagnostics.Common - Class TraceOptions (5.1.0)

public sealed class TraceOptions

Reference documentation and code samples for the Google.Cloud.Diagnostics.Common class TraceOptions.

Options to be used when initializing tracing.

Inheritance

object > TraceOptions

Namespace

GoogleCloudGoogle.Cloud.DiagnosticsCommon

Assembly

Google.Cloud.Diagnostics.Common.dll

Properties

BufferOptions

public BufferOptions BufferOptions { get; }

The buffer options for the tracer.

Property Value
TypeDescription
BufferOptions

QpsSampleRate

public double QpsSampleRate { get; }

Gets the number of queries traced per second.

Property Value
TypeDescription
double

RetryOptions

public RetryOptions RetryOptions { get; }

The retry options for the tracer.

Property Value
TypeDescription
RetryOptions

Methods

Create(double, BufferOptions, RetryOptions)

public static TraceOptions Create(double qpsSampleRate = 1, BufferOptions bufferOptions = null, RetryOptions retryOptions = null)

Creates a TraceOptions.

Parameters
NameDescription
qpsSampleRatedouble

Optional, the number of queries traced per second. The sample rate determines how often requests are automatically traced. Defaults to Google.Cloud.Diagnostics.Common.TraceOptions.DefaultQpsSampleRate.

bufferOptionsBufferOptions

Optional, the buffer options. Defaults to a Timed.

retryOptionsRetryOptions

Optional, the retry options. Defaults to a None.

Returns
TypeDescription
TraceOptions