public sealed class TraceOptionsOptions to be used when initializing tracing.
Namespace
Google.Cloud.Diagnostics.CommonAssembly
Google.Cloud.Diagnostics.Common.dll
Properties
BufferOptions
public BufferOptions BufferOptions { get; }The buffer options for the tracer.
| Property Value | |
|---|---|
| Type | Description | 
| BufferOptions | |
QpsSampleRate
public double QpsSampleRate { get; }Gets the number of queries traced per second.
| Property Value | |
|---|---|
| Type | Description | 
| Double | |
RetryOptions
public RetryOptions RetryOptions { get; }The retry options for the tracer.
| Property Value | |
|---|---|
| Type | Description | 
| RetryOptions | |
Methods
Create(Double, BufferOptions, RetryOptions)
public static TraceOptions Create(double qpsSampleRate = 1, BufferOptions bufferOptions = null, RetryOptions retryOptions = null)Creates a TraceOptions.
| Parameters | |
|---|---|
| Name | Description | 
| qpsSampleRate | DoubleOptional, 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. | 
| bufferOptions | BufferOptionsOptional, the buffer options. Defaults to a Timed. | 
| retryOptions | RetryOptionsOptional, the retry options. Defaults to a None. | 
| Returns | |
|---|---|
| Type | Description | 
| TraceOptions | |