Google Cloud Trace v1 API - Class TraceService.TraceServiceBase (3.2.0)

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

Reference documentation and code samples for the Google Cloud Trace v1 API class TraceService.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
TaskTrace

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
TaskListTracesResponse

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
TaskEmpty

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