public sealed class TraceServiceSettings : ServiceSettingsBase
Reference documentation and code samples for the Google Cloud Trace v2 API class TraceServiceSettings.
Settings for TraceServiceClient instances.
Namespace
Google.Cloud.Trace.V2Assembly
Google.Cloud.Trace.V2.dll
Constructors
TraceServiceSettings()
public TraceServiceSettings()
Constructs a new TraceServiceSettings object with default settings.
Properties
BatchWriteSpansSettings
public CallSettings BatchWriteSpansSettings { get; set; }
CallSettings for synchronous and asynchronous calls to
TraceServiceClient.BatchWriteSpans
and TraceServiceClient.BatchWriteSpansAsync
.
Property Value | |
---|---|
Type | Description |
CallSettings |
- Initial retry delay: 100 milliseconds.
- Retry delay multiplier: 2
- Retry maximum delay: 30000 milliseconds.
- Maximum attempts: Unlimited
- Retriable status codes: Unavailable, DeadlineExceeded.
- Timeout: 120 seconds.
CreateSpanSettings
public CallSettings CreateSpanSettings { get; set; }
CallSettings for synchronous and asynchronous calls to
TraceServiceClient.CreateSpan
and TraceServiceClient.CreateSpanAsync
.
Property Value | |
---|---|
Type | Description |
CallSettings |
- Initial retry delay: 100 milliseconds.
- Retry delay multiplier: 1.2
- Retry maximum delay: 1000 milliseconds.
- Maximum attempts: Unlimited
- Retriable status codes: Unavailable, DeadlineExceeded.
- Timeout: 120 seconds.
Methods
Clone()
public TraceServiceSettings Clone()
Creates a deep clone of this object, with all the same property values.
Returns | |
---|---|
Type | Description |
TraceServiceSettings |
A deep clone of this TraceServiceSettings object. |
GetDefault()
public static TraceServiceSettings GetDefault()
Get a new instance of the default TraceServiceSettings.
Returns | |
---|---|
Type | Description |
TraceServiceSettings |
A new instance of the default TraceServiceSettings. |