Class TraceService.TraceServiceBase (2.2.0)

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

Base class for server-side implementations of TraceService

Inheritance

Object > TraceService.TraceServiceBase

Namespace

Google.Cloud.Trace.V2

Assembly

Google.Cloud.Trace.V2.dll

Methods

BatchWriteSpans(BatchWriteSpansRequest, ServerCallContext)

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

Sends new spans to new or existing traces. You cannot update existing spans.

Parameters
NameDescription
requestBatchWriteSpansRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Empty>

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
NameDescription
requestSpan

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Span>

The response to send back to the client (wrapped by a task).