Google Cloud Trace v1 API - Class TraceServiceClientImpl (3.4.0)

public sealed class TraceServiceClientImpl : TraceServiceClient

Reference documentation and code samples for the Google Cloud Trace v1 API class TraceServiceClientImpl.

TraceService client wrapper implementation, for convenient use.

Inheritance

object > TraceServiceClient > TraceServiceClientImpl

Namespace

Google.Cloud.Trace.V1

Assembly

Google.Cloud.Trace.V1.dll

Remarks

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.

Constructors

TraceServiceClientImpl(TraceServiceClient, TraceServiceSettings, ILogger)

public TraceServiceClientImpl(TraceService.TraceServiceClient grpcClient, TraceServiceSettings settings, ILogger logger)

Constructs a client wrapper for the TraceService service, with the specified gRPC client and settings.

Parameters
Name Description
grpcClient TraceServiceTraceServiceClient

The underlying gRPC client.

settings TraceServiceSettings

The base TraceServiceSettings used within this client.

logger ILogger

Optional ILogger to use within this client.

Properties

GrpcClient

public override TraceService.TraceServiceClient GrpcClient { get; }

The underlying gRPC TraceService client

Property Value
Type Description
TraceServiceTraceServiceClient
Overrides

Methods

GetTrace(GetTraceRequest, CallSettings)

public override Trace GetTrace(GetTraceRequest request, CallSettings callSettings = null)

Gets a single trace by its ID.

Parameters
Name Description
request GetTraceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Trace

The RPC response.

Overrides

GetTraceAsync(GetTraceRequest, CallSettings)

public override Task<Trace> GetTraceAsync(GetTraceRequest request, CallSettings callSettings = null)

Gets a single trace by its ID.

Parameters
Name Description
request GetTraceRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
TaskTrace

A Task containing the RPC response.

Overrides

ListTraces(ListTracesRequest, CallSettings)

public override PagedEnumerable<ListTracesResponse, Trace> ListTraces(ListTracesRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request ListTracesRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedEnumerableListTracesResponseTrace

A pageable sequence of Trace resources.

Overrides

ListTracesAsync(ListTracesRequest, CallSettings)

public override PagedAsyncEnumerable<ListTracesResponse, Trace> ListTracesAsync(ListTracesRequest request, CallSettings callSettings = null)

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

Parameters
Name Description
request ListTracesRequest

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
PagedAsyncEnumerableListTracesResponseTrace

A pageable asynchronous sequence of Trace resources.

Overrides

PatchTraces(PatchTracesRequest, CallSettings)

public override void PatchTraces(PatchTracesRequest request, CallSettings callSettings = null)

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

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Overrides

PatchTracesAsync(PatchTracesRequest, CallSettings)

public override Task PatchTracesAsync(PatchTracesRequest request, CallSettings callSettings = null)

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

The request object containing all of the parameters for the API call.

callSettings CallSettings

If not null, applies overrides to this RPC call.

Returns
Type Description
Task

A Task containing the RPC response.

Overrides