public class TraceServiceClient : ClientBase<TraceService.TraceServiceClient>
Client for TraceService
Inheritance
Object > ClientBase > ClientBase<TraceService.TraceServiceClient> > TraceService.TraceServiceClientNamespace
Google.Cloud.Trace.V2Assembly
Google.Cloud.Trace.V2.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(Channel)
[Obsolete("This constructor overload is present for compatibility only, and will be removed in the next major version")]
public TraceServiceClient(Channel channel)
Creates a new client using a channel.
Parameter | |
---|---|
Name | Description |
channel | Grpc.Core.Channel The channel 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(ClientBase.ClientBaseConfiguration)
protected TraceServiceClient(ClientBase.ClientBaseConfiguration configuration)
Protected constructor to allow creation of configured clients.
Parameter | |
---|---|
Name | Description |
configuration | ClientBase.ClientBaseConfiguration The client configuration. |
Methods
BatchWriteSpans(BatchWriteSpansRequest, CallOptions)
public virtual Empty BatchWriteSpans(BatchWriteSpansRequest request, CallOptions options)
Sends new spans to new or existing traces. You cannot update existing spans.
Parameters | |
---|---|
Name | Description |
request | BatchWriteSpansRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
Empty | The response received from the server. |
BatchWriteSpans(BatchWriteSpansRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual Empty BatchWriteSpans(BatchWriteSpansRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))
Sends new spans to new or existing traces. You cannot update existing spans.
Parameters | |
---|---|
Name | Description |
request | BatchWriteSpansRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<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. |
BatchWriteSpansAsync(BatchWriteSpansRequest, CallOptions)
public virtual AsyncUnaryCall<Empty> BatchWriteSpansAsync(BatchWriteSpansRequest request, CallOptions options)
Sends new spans to new or existing traces. You cannot update existing spans.
Parameters | |
---|---|
Name | Description |
request | BatchWriteSpansRequest The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<Empty> | The call object. |
BatchWriteSpansAsync(BatchWriteSpansRequest, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<Empty> BatchWriteSpansAsync(BatchWriteSpansRequest request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))
Sends new spans to new or existing traces. You cannot update existing spans.
Parameters | |
---|---|
Name | Description |
request | BatchWriteSpansRequest The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<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 |
AsyncUnaryCall<Empty> | The call object. |
CreateSpan(Span, CallOptions)
public virtual Span CreateSpan(Span request, CallOptions options)
Creates a new span.
Parameters | |
---|---|
Name | Description |
request | Span The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
Span | The response received from the server. |
CreateSpan(Span, Metadata, Nullable<DateTime>, CancellationToken)
public virtual Span CreateSpan(Span request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))
Creates a new span.
Parameters | |
---|---|
Name | Description |
request | Span The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<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 |
Span | The response received from the server. |
CreateSpanAsync(Span, CallOptions)
public virtual AsyncUnaryCall<Span> CreateSpanAsync(Span request, CallOptions options)
Creates a new span.
Parameters | |
---|---|
Name | Description |
request | Span The request to send to the server. |
options | CallOptions The options for the call. |
Returns | |
---|---|
Type | Description |
AsyncUnaryCall<Span> | The call object. |
CreateSpanAsync(Span, Metadata, Nullable<DateTime>, CancellationToken)
public virtual AsyncUnaryCall<Span> CreateSpanAsync(Span request, Metadata headers = null, DateTime? deadline = default(DateTime? ), CancellationToken cancellationToken = default(CancellationToken))
Creates a new span.
Parameters | |
---|---|
Name | Description |
request | Span The request to send to the server. |
headers | Metadata The initial metadata to send with the call. This parameter is optional. |
deadline | Nullable<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 |
AsyncUnaryCall<Span> | The call object. |
NewInstance(ClientBase.ClientBaseConfiguration)
protected override TraceService.TraceServiceClient NewInstance(ClientBase.ClientBaseConfiguration configuration)
Creates a new instance of client from given ClientBaseConfiguration
.
Parameter | |
---|---|
Name | Description |
configuration | ClientBase.ClientBaseConfiguration |
Returns | |
---|---|
Type | Description |
TraceService.TraceServiceClient |