public sealed class TraceServiceClientImpl : TraceServiceClientReference documentation and code samples for the Google Cloud Trace v2 API class TraceServiceClientImpl.
TraceService client wrapper implementation, for convenient use.
Namespace
Google.Cloud.Trace.V2Assembly
Google.Cloud.Trace.V2.dll
Remarks
Service for collecting and viewing traces and spans within a trace.
A trace is a collection of spans corresponding to a single operation or a set of operations in an application.
A span is an individual timed event which forms a node of the trace tree. A single trace can contain spans from 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 | 
        TraceServiceTraceServiceClientThe underlying gRPC client.  | 
      
settings | 
        TraceServiceSettingsThe base TraceServiceSettings used within this client.  | 
      
logger | 
        ILoggerOptional ILogger to use within this client.  | 
      
Properties
GrpcClient
public override TraceService.TraceServiceClient GrpcClient { get; }The underlying gRPC TraceService client
| Property Value | |
|---|---|
| Type | Description | 
TraceServiceTraceServiceClient | 
        |
Methods
BatchWriteSpans(BatchWriteSpansRequest, CallSettings)
public override void BatchWriteSpans(BatchWriteSpansRequest request, CallSettings callSettings = null)Batch writes new spans to new or existing traces. You cannot update existing spans.
| Parameters | |
|---|---|
| Name | Description | 
request | 
        BatchWriteSpansRequestThe request object containing all of the parameters for the API call.  | 
      
callSettings | 
        CallSettingsIf not null, applies overrides to this RPC call.  | 
      
BatchWriteSpansAsync(BatchWriteSpansRequest, CallSettings)
public override Task BatchWriteSpansAsync(BatchWriteSpansRequest request, CallSettings callSettings = null)Batch writes new spans to new or existing traces. You cannot update existing spans.
| Parameters | |
|---|---|
| Name | Description | 
request | 
        BatchWriteSpansRequestThe request object containing all of the parameters for the API call.  | 
      
callSettings | 
        CallSettingsIf 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 | 
        SpanThe request object containing all of the parameters for the API call.  | 
      
callSettings | 
        CallSettingsIf 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 | 
        SpanThe request object containing all of the parameters for the API call.  | 
      
callSettings | 
        CallSettingsIf not null, applies overrides to this RPC call.  | 
      
| Returns | |
|---|---|
| Type | Description | 
TaskSpan | 
        A Task containing the RPC response.  |