Google Cloud Trace v2 API - Class TraceServiceClientImpl (3.5.0)

public sealed class TraceServiceClientImpl : TraceServiceClient

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

TraceService client wrapper implementation, for convenient use.

Inheritance

object > TraceServiceClient > TraceServiceClientImpl

Namespace

Google.Cloud.Trace.V2

Assembly

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 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

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 BatchWriteSpansRequest

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

callSettings CallSettings

If not null, applies overrides to this RPC call.

Overrides

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 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.

Overrides

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.

Overrides

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
TaskSpan

A Task containing the RPC response.

Overrides