Class TraceServiceSettings (2.3.0)

public sealed class TraceServiceSettings : ServiceSettingsBase

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
  • 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.