public sealed class TraceServiceClientImpl : TraceServiceClient
TraceService client wrapper implementation, for convenient use.
Namespace
Google.Cloud.Trace.V2Assembly
Google.Cloud.Trace.V2.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. A single trace may contain span(s) from 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
BatchWriteSpans(BatchWriteSpansRequest, CallSettings)
public override void BatchWriteSpans(BatchWriteSpansRequest request, CallSettings callSettings = null)
Sends new spans to new or existing traces. You cannot update existing spans.
Parameters | |
---|---|
Name | Description |
request | BatchWriteSpansRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
BatchWriteSpansAsync(BatchWriteSpansRequest, CallSettings)
public override Task BatchWriteSpansAsync(BatchWriteSpansRequest request, CallSettings callSettings = null)
Sends new spans to new or existing traces. You cannot update existing spans.
Parameters | |
---|---|
Name | Description |
request | BatchWriteSpansRequest 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. |
CreateSpan(Span, CallSettings)
public override Span CreateSpan(Span request, CallSettings callSettings = null)
Creates a new span.
Parameters | |
---|---|
Name | Description |
request | Span 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 |
Span | The RPC response. |
CreateSpanAsync(Span, CallSettings)
public override Task<Span> CreateSpanAsync(Span request, CallSettings callSettings = null)
Creates a new span.
Parameters | |
---|---|
Name | Description |
request | Span 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<Span> | A Task containing the RPC response. |