Google Cloud Trace v2 API - Class TraceServiceClientImpl (3.1.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

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
NameDescription
grpcClientTraceService.TraceServiceClient

The underlying gRPC client.

settingsTraceServiceSettings

The base TraceServiceSettings used within this client.

loggerILogger

Optional ILogger to use within this client.

Properties

GrpcClient

public override TraceService.TraceServiceClient GrpcClient { get; }

The underlying gRPC TraceService client

Property Value
TypeDescription
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
NameDescription
requestBatchWriteSpansRequest

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

callSettingsCallSettings

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

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
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
NameDescription
requestSpan

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Span

The RPC response.

Overrides

CreateSpanAsync(Span, CallSettings)

public override Task<Span> CreateSpanAsync(Span request, CallSettings callSettings = null)

Creates a new span.

Parameters
NameDescription
requestSpan

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Span>

A Task containing the RPC response.

Overrides