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.TraceServiceClientNamespace
Google.Cloud.Trace.V1Assembly
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 | |
---|---|
Name | Description |
callInvoker |
CallInvoker The callInvoker to use to make remote calls. |
TraceServiceClient(ChannelBase)
public TraceServiceClient(ChannelBase channel)
Creates a new client for TraceService
Parameter | |
---|---|
Name | Description |
channel |
ChannelBase The channel to use to make remote calls. |
TraceServiceClient(ClientBaseConfiguration)
protected TraceServiceClient(ClientBase.ClientBaseConfiguration configuration)
Protected constructor to allow creation of configured clients.
Parameter | |
---|---|
Name | Description |
configuration |
ClientBaseClientBaseConfiguration The client configuration. |
Methods
GetTrace(GetTraceRequest, CallOptions)
public virtual Trace GetTrace(GetTraceRequest request, CallOptions options)
Gets a single trace by its ID.
Parameters | |
---|---|
Name | Description |
request |
GetTraceRequest The request to send to the server. |
options |
CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request |
GetTraceRequest The request to send to the server. |
headers |
Metadata The initial metadata to send with the call. This parameter is optional. |
deadline |
DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request |
GetTraceRequest The request to send to the server. |
options |
CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request |
GetTraceRequest The request to send to the server. |
headers |
Metadata The initial metadata to send with the call. This parameter is optional. |
deadline |
DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request |
ListTracesRequest The request to send to the server. |
options |
CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request |
ListTracesRequest The request to send to the server. |
headers |
Metadata The initial metadata to send with the call. This parameter is optional. |
deadline |
DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request |
ListTracesRequest The request to send to the server. |
options |
CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request |
ListTracesRequest The request to send to the server. |
headers |
Metadata The initial metadata to send with the call. This parameter is optional. |
deadline |
DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallListTracesResponse |
The call object. |
NewInstance(ClientBaseConfiguration)
protected override TraceService.TraceServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)
Creates a new instance of client from given ClientBaseConfiguration
.
Parameter | |
---|---|
Name | Description |
configuration |
ClientBaseClientBaseConfiguration |
Returns | |
---|---|
Type | Description |
TraceServiceTraceServiceClient |
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 | |
---|---|
Name | Description |
request |
PatchTracesRequest The request to send to the server. |
options |
CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request |
PatchTracesRequest The request to send to the server. |
headers |
Metadata The initial metadata to send with the call. This parameter is optional. |
deadline |
DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request |
PatchTracesRequest The request to send to the server. |
options |
CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request |
PatchTracesRequest The request to send to the server. |
headers |
Metadata The initial metadata to send with the call. This parameter is optional. |
deadline |
DateTime An optional deadline for the call. The call will be cancelled if deadline is hit. |
cancellationToken |
CancellationToken An optional token for canceling the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCallEmpty |
The call object. |