public sealed class TraceServiceClientImpl : TraceServiceClient
TraceService client wrapper implementation, for convenient use.
Namespace
Google.Cloud.Trace.V1Assembly
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(TraceService.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 | TraceService.TraceServiceClient 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 |
TraceService.TraceServiceClient |
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. |
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 |
Task<Trace> | A Task containing the RPC response. |
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 |
PagedEnumerable<ListTracesResponse, Trace> | A pageable sequence of Trace resources. |
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 |
PagedAsyncEnumerable<ListTracesResponse, Trace> | A pageable asynchronous sequence of Trace resources. |
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. |
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. |