Interface TraceServiceGrpc.AsyncService (2.54.0)

public static interface TraceServiceGrpc.AsyncService

This file describes an API for collecting and viewing traces and spans within a trace. A Trace is a collection of spans corresponding to a single operation or set of operations for an application. A span is an individual timed event which forms a node of the trace tree. Spans for a single trace may span multiple services.

Methods

getTrace(GetTraceRequest request, StreamObserver<Trace> responseObserver)

public default void getTrace(GetTraceRequest request, StreamObserver<Trace> responseObserver)

Gets a single trace by its ID.

Parameters
Name Description
request GetTraceRequest
responseObserver io.grpc.stub.StreamObserver<Trace>

listTraces(ListTracesRequest request, StreamObserver<ListTracesResponse> responseObserver)

public default void listTraces(ListTracesRequest request, StreamObserver<ListTracesResponse> responseObserver)

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

Parameters
Name Description
request ListTracesRequest
responseObserver io.grpc.stub.StreamObserver<ListTracesResponse>

patchTraces(PatchTracesRequest request, StreamObserver<Empty> responseObserver)

public default void patchTraces(PatchTracesRequest request, StreamObserver<Empty> responseObserver)

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
Name Description
request PatchTracesRequest
responseObserver io.grpc.stub.StreamObserver<Empty>