Google Cloud Trace v2 API - Class TraceServiceSettings (3.2.0)

public sealed class TraceServiceSettings : ServiceSettingsBase

Reference documentation and code samples for the Google Cloud Trace v2 API class TraceServiceSettings.

Settings for TraceServiceClient instances.

Inheritance

Object > ServiceSettingsBase > TraceServiceSettings

Namespace

Google.Cloud.Trace.V2

Assembly

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
TypeDescription
CallSettings
Remarks
  • This call will not be retried.
  • Timeout: 120 seconds.

CreateSpanSettings

public CallSettings CreateSpanSettings { get; set; }

CallSettings for synchronous and asynchronous calls to TraceServiceClient.CreateSpan and TraceServiceClient.CreateSpanAsync.

Property Value
TypeDescription
CallSettings
Remarks
  • 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
TypeDescription
TraceServiceSettings

A deep clone of this TraceServiceSettings object.

GetDefault()

public static TraceServiceSettings GetDefault()

Get a new instance of the default TraceServiceSettings.

Returns
TypeDescription
TraceServiceSettings

A new instance of the default TraceServiceSettings.