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.V1

Assembly

Google.Cloud.Trace.V1.dll

Methods

GetTrace(GetTraceRequest, ServerCallContext)

public virtual Task<Trace> GetTrace(GetTraceRequest request, ServerCallContext context)

Gets a single trace by its ID.

Parameters
NameDescription
requestGetTraceRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<Trace>

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

ListTraces(ListTracesRequest, ServerCallContext)

public virtual Task<ListTracesResponse> ListTraces(ListTracesRequest request, ServerCallContext context)

Returns of a list of traces that match the specified filter conditions.

Parameters
NameDescription
requestListTracesRequest

The request received from the client.

contextServerCallContext

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

Returns
TypeDescription
Task<ListTracesResponse>

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

PatchTraces(PatchTracesRequest, ServerCallContext)

public virtual Task<Empty> PatchTraces(PatchTracesRequest request, ServerCallContext context)

Sends new traces to Stackdriver Trace or updates existing traces. If the ID of a trace that you send matches that of an existing trace, any fields in the existing trace and its spans are overwritten by the provided values, and any new fields provided are merged with the existing trace data. If the ID does not match, a new trace is created.

Parameters
NameDescription
requestPatchTracesRequest

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).