Google Cloud Trace v1 API - Class TraceService.TraceServiceClient (3.3.0)

public class TraceService.TraceServiceClient : ClientBase<TraceService.TraceServiceClient>

Reference documentation and code samples for the Google Cloud Trace v1 API class TraceService.TraceServiceClient.

Client for TraceService

Inheritance

object > ClientBase > ClientBaseTraceServiceTraceServiceClient > TraceService.TraceServiceClient

Namespace

Google.Cloud.Trace.V1

Assembly

Google.Cloud.Trace.V1.dll

Constructors

TraceServiceClient()

protected TraceServiceClient()

Protected parameterless constructor to allow creation of test doubles.

TraceServiceClient(CallInvoker)

public TraceServiceClient(CallInvoker callInvoker)

Creates a new client for TraceService that uses a custom CallInvoker.

Parameter
NameDescription
callInvokerCallInvoker

The callInvoker to use to make remote calls.

TraceServiceClient(ChannelBase)

public TraceServiceClient(ChannelBase channel)

Creates a new client for TraceService

Parameter
NameDescription
channelChannelBase

The channel to use to make remote calls.

TraceServiceClient(ClientBaseConfiguration)

protected TraceServiceClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration

The client configuration.

Methods

GetTrace(GetTraceRequest, CallOptions)

public virtual Trace GetTrace(GetTraceRequest request, CallOptions options)

Gets a single trace by its ID.

Parameters
NameDescription
requestGetTraceRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Trace

The response received from the server.

GetTrace(GetTraceRequest, Metadata, DateTime?, CancellationToken)

public virtual Trace GetTrace(GetTraceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Gets a single trace by its ID.

Parameters
NameDescription
requestGetTraceRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Trace

The response received from the server.

GetTraceAsync(GetTraceRequest, CallOptions)

public virtual AsyncUnaryCall<Trace> GetTraceAsync(GetTraceRequest request, CallOptions options)

Gets a single trace by its ID.

Parameters
NameDescription
requestGetTraceRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallTrace

The call object.

GetTraceAsync(GetTraceRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Trace> GetTraceAsync(GetTraceRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Gets a single trace by its ID.

Parameters
NameDescription
requestGetTraceRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallTrace

The call object.

ListTraces(ListTracesRequest, CallOptions)

public virtual ListTracesResponse ListTraces(ListTracesRequest request, CallOptions options)

Returns of a list of traces that match the specified filter conditions.

Parameters
NameDescription
requestListTracesRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
ListTracesResponse

The response received from the server.

ListTraces(ListTracesRequest, Metadata, DateTime?, CancellationToken)

public virtual ListTracesResponse ListTraces(ListTracesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Returns of a list of traces that match the specified filter conditions.

Parameters
NameDescription
requestListTracesRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
ListTracesResponse

The response received from the server.

ListTracesAsync(ListTracesRequest, CallOptions)

public virtual AsyncUnaryCall<ListTracesResponse> ListTracesAsync(ListTracesRequest request, CallOptions options)

Returns of a list of traces that match the specified filter conditions.

Parameters
NameDescription
requestListTracesRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallListTracesResponse

The call object.

ListTracesAsync(ListTracesRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<ListTracesResponse> ListTracesAsync(ListTracesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Returns of a list of traces that match the specified filter conditions.

Parameters
NameDescription
requestListTracesRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallListTracesResponse

The call object.

NewInstance(ClientBaseConfiguration)

protected override TraceService.TraceServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration
Returns
TypeDescription
TraceServiceTraceServiceClient
Overrides

PatchTraces(PatchTracesRequest, CallOptions)

public virtual Empty PatchTraces(PatchTracesRequest request, CallOptions options)

Sends new traces to Stackdriver Trace or updates existing traces. If the ID of a trace that you send matches that of an existing trace, any fields in the existing trace and its spans are overwritten by the provided values, and any new fields provided are merged with the existing trace data. If the ID does not match, a new trace is created.

Parameters
NameDescription
requestPatchTracesRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Empty

The response received from the server.

PatchTraces(PatchTracesRequest, Metadata, DateTime?, CancellationToken)

public virtual Empty PatchTraces(PatchTracesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Sends new traces to Stackdriver Trace or updates existing traces. If the ID of a trace that you send matches that of an existing trace, any fields in the existing trace and its spans are overwritten by the provided values, and any new fields provided are merged with the existing trace data. If the ID does not match, a new trace is created.

Parameters
NameDescription
requestPatchTracesRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Empty

The response received from the server.

PatchTracesAsync(PatchTracesRequest, CallOptions)

public virtual AsyncUnaryCall<Empty> PatchTracesAsync(PatchTracesRequest request, CallOptions options)

Sends new traces to Stackdriver Trace or updates existing traces. If the ID of a trace that you send matches that of an existing trace, any fields in the existing trace and its spans are overwritten by the provided values, and any new fields provided are merged with the existing trace data. If the ID does not match, a new trace is created.

Parameters
NameDescription
requestPatchTracesRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallEmpty

The call object.

PatchTracesAsync(PatchTracesRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Empty> PatchTracesAsync(PatchTracesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Sends new traces to Stackdriver Trace or updates existing traces. If the ID of a trace that you send matches that of an existing trace, any fields in the existing trace and its spans are overwritten by the provided values, and any new fields provided are merged with the existing trace data. If the ID does not match, a new trace is created.

Parameters
NameDescription
requestPatchTracesRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallEmpty

The call object.