Class TraceServiceClientImpl (2.2.0)

public sealed class TraceServiceClientImpl : TraceServiceClient

TraceService client wrapper implementation, for convenient use.

Inheritance

Object > TraceServiceClient > TraceServiceClientImpl

Namespace

Google.Cloud.Trace.V2

Assembly

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)

public TraceServiceClientImpl(TraceService.TraceServiceClient grpcClient, TraceServiceSettings settings)

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.

Properties

GrpcClient

public override TraceService.TraceServiceClient GrpcClient { get; }

The underlying gRPC TraceService client

Property Value
Type Description
TraceService.TraceServiceClient
Overrides

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.

Overrides

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.

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

A Task containing the RPC response.

Overrides