3.7.0 (latest) 3.6.0 3.5.0 3.4.0 3.3.0 3.2.0 3.1.0 3.0.0 2.3.0 2.2.0

    public sealed class TraceServiceSettings : ServiceSettingsBase

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

Settings for [TraceServiceClient](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Trace.V2/latest/Google.Cloud.Trace.V2.TraceServiceClient.md.txt) instances.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> [ServiceSettingsBase](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.ServiceSettingsBase.md.txt) \> TraceServiceSettings

## Inherited Members

[ServiceSettingsBase.VersionHeaderBuilder](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.ServiceSettingsBase.md.txt#Google_Api_Gax_Grpc_ServiceSettingsBase_VersionHeaderBuilder) [ServiceSettingsBase.CallSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.ServiceSettingsBase.md.txt#Google_Api_Gax_Grpc_ServiceSettingsBase_CallSettings) [ServiceSettingsBase.Clock](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.ServiceSettingsBase.md.txt#Google_Api_Gax_Grpc_ServiceSettingsBase_Clock) [ServiceSettingsBase.Scheduler](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.ServiceSettingsBase.md.txt#Google_Api_Gax_Grpc_ServiceSettingsBase_Scheduler) [ServiceSettingsBase.Interceptor](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.ServiceSettingsBase.md.txt#Google_Api_Gax_Grpc_ServiceSettingsBase_Interceptor) [object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Trace.V2](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Trace.V2/latest/Google.Cloud.Trace.V2.md.txt)

## Assembly

Google.Cloud.Trace.V2.dll

## Constructors

### TraceServiceSettings()

    public TraceServiceSettings()

Constructs a new [TraceServiceSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Trace.V2/latest/Google.Cloud.Trace.V2.TraceServiceSettings.md.txt) object with default settings.

## Properties

### BatchWriteSpansSettings

    public CallSettings BatchWriteSpansSettings { get; set; }

[CallSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.md.txt) for synchronous and asynchronous calls to
`TraceServiceClient.BatchWriteSpans` and `TraceServiceClient.BatchWriteSpansAsync`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `CallSettings` |   |

**Remarks**
- Initial retry delay: 100 milliseconds.
- Retry delay multiplier: 2
- Retry maximum delay: 30000 milliseconds.
- Maximum attempts: Unlimited
- Retriable status codes: [Unavailable](https://docs.cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.StatusCode.md.txt#Grpc_Core_StatusCode_Unavailable), [DeadlineExceeded](https://docs.cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.StatusCode.md.txt#Grpc_Core_StatusCode_DeadlineExceeded).
- Timeout: 120 seconds.

### CreateSpanSettings

    public CallSettings CreateSpanSettings { get; set; }

[CallSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.CallSettings.md.txt) for synchronous and asynchronous calls to
`TraceServiceClient.CreateSpan` and `TraceServiceClient.CreateSpanAsync`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `CallSettings` |   |

**Remarks**
- Initial retry delay: 100 milliseconds.
- Retry delay multiplier: 1.2
- Retry maximum delay: 1000 milliseconds.
- Maximum attempts: Unlimited
- Retriable status codes: [Unavailable](https://docs.cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.StatusCode.md.txt#Grpc_Core_StatusCode_Unavailable), [DeadlineExceeded](https://docs.cloud.google.com/dotnet/docs/reference/Grpc.Core/latest/Grpc.Core.StatusCode.md.txt#Grpc_Core_StatusCode_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](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Trace.V2/latest/Google.Cloud.Trace.V2.TraceServiceSettings.md.txt) object. |

### GetDefault()

    public static TraceServiceSettings GetDefault()

Get a new instance of the default [TraceServiceSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Trace.V2/latest/Google.Cloud.Trace.V2.TraceServiceSettings.md.txt).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TraceServiceSettings` | A new instance of the default [TraceServiceSettings](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Trace.V2/latest/Google.Cloud.Trace.V2.TraceServiceSettings.md.txt). |