Class TraceOptions
Options to be used when initializing tracing.
Inheritance
System.Object
TraceOptions
Inherited Members
System.Object.ToString()
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Google.Cloud.Diagnostics.Common
Assembly: Google.Cloud.Diagnostics.Common.dll
Syntax
public sealed class TraceOptions
Properties
BufferOptions
The buffer options for the tracer.
Declaration
public BufferOptions BufferOptions { get; }
Property Value
| Type | Description |
|---|---|
| BufferOptions |
QpsSampleRate
Gets the number of queries traced per second.
Declaration
public double QpsSampleRate { get; }
Property Value
| Type | Description |
|---|---|
| System.Double |
RetryOptions
The retry options for the tracer.
Declaration
public RetryOptions RetryOptions { get; }
Property Value
| Type | Description |
|---|---|
| RetryOptions |
Methods
Create(Double, BufferOptions, RetryOptions)
Creates a TraceOptions.
Declaration
public static TraceOptions Create(double qpsSampleRate = 1, BufferOptions bufferOptions = null, RetryOptions retryOptions = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Double | qpsSampleRate | 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. |
| BufferOptions | bufferOptions | Optional, the buffer options. Defaults to a Timed. |
| RetryOptions | retryOptions | Optional, the retry options. Defaults to a None. |
Returns
| Type | Description |
|---|---|
| TraceOptions |