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 static class TraceService

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

Service for collecting and viewing traces and spans within a trace.

A trace is a collection of spans corresponding to a single
operation or a set of operations in an application.

A span is an individual timed event which forms a node of the trace tree.
A single trace can contain spans from multiple services.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> TraceService

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) [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

## Methods

### BindService(TraceServiceBase)

    public static ServerServiceDefinition BindService(TraceService.TraceServiceBase serviceImpl)

Creates service definition that can be registered with a server

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `serviceImpl` | `TraceServiceTraceServiceBase` An object implementing the server-side handling logic. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `ServerServiceDefinition` |   |

### BindService(ServiceBinderBase, TraceServiceBase)

    public static void BindService(ServiceBinderBase serviceBinder, TraceService.TraceServiceBase serviceImpl)

Register service method with a service binder with or without implementation. Useful when customizing the service binding logic.
Note: this method is part of an experimental API that can change or be removed without any prior notice.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `serviceBinder` | `ServiceBinderBase` Service methods will be bound by calling `AddMethod` on this object. |
| `serviceImpl` | `TraceServiceTraceServiceBase` An object implementing the server-side handling logic. |