[BindServiceMethod(typeof(TraceService), "BindService")]
public abstract class TraceService.TraceServiceBaseReference documentation and code samples for the Google Cloud Trace v2 API class TraceService.TraceServiceBase.
Base class for server-side implementations of TraceService
Namespace
Google.Cloud.Trace.V2Assembly
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 |
BatchWriteSpansRequestThe request received from the client. |
context |
ServerCallContextThe 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 |
SpanThe request received from the client. |
context |
ServerCallContextThe 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). |