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

    [BindServiceMethod(typeof(TraceService), "BindService")]
    public abstract class TraceService.TraceServiceBase

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

Base class for server-side implementations of TraceService

## Inheritance

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

## 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

### BatchWriteSpans(BatchWriteSpansRequest, ServerCallContext)

    public virtual Task<Empty> BatchWriteSpans(BatchWriteSpansRequest request, ServerCallContext context)

Batch writes new spans to new or existing traces. You cannot update
existing spans.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `BatchWriteSpansRequest` The request received from the client. |
| `context` | `ServerCallContext` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskEmpty` | The response to send back to the client (wrapped by a task). |

### CreateSpan(Span, ServerCallContext)

    public virtual Task<Span> CreateSpan(Span request, ServerCallContext context)

Creates a new span.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `Span` The request received from the client. |
| `context` | `ServerCallContext` The context of the server-side call handler being invoked. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `TaskSpan` | The response to send back to the client (wrapped by a task). |