Package brave.grpc
Class GrpcClientRequest
- java.lang.Object
-
- brave.Request
-
- brave.rpc.RpcRequest
-
- brave.rpc.RpcClientRequest
-
- brave.grpc.GrpcClientRequest
-
- All Implemented Interfaces:
GrpcRequest
public final class GrpcClientRequest extends RpcClientRequest implements GrpcRequest
Allows access gRPC specific aspects of a client request during sampling and parsing.- Since:
- 5.12
- See Also:
GrpcClientResponse,for a parsing example
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.grpc.ClientCall<?,?>call()Returns the client call generated byChannel.newCall(io.grpc.MethodDescriptor<RequestT, ResponseT>, io.grpc.CallOptions)duringClientInterceptor.interceptCall(io.grpc.MethodDescriptor<ReqT, RespT>, io.grpc.CallOptions, io.grpc.Channel).io.grpc.CallOptionscallOptions()Returns the call options passed toClientInterceptor.interceptCall(io.grpc.MethodDescriptor<ReqT, RespT>, io.grpc.CallOptions, io.grpc.Channel).io.grpc.Metadataheaders()Returns the headers passed toClientCall.start(ClientCall.Listener, Metadata).Stringmethod()io.grpc.MethodDescriptor<?,?>methodDescriptor()Returns the method descriptor passed toClientInterceptor.interceptCall(io.grpc.MethodDescriptor<ReqT, RespT>, io.grpc.CallOptions, io.grpc.Channel).protected voidpropagationField(String keyName, String value)Stringservice()Objectunwrap()Returns thecall()-
Methods inherited from class brave.rpc.RpcClientRequest
spanKind
-
Methods inherited from class brave.rpc.RpcRequest
parseRemoteIpAndPort, startTimestamp
-
-
-
-
Method Detail
-
method
public String method()
- Specified by:
methodin classRpcRequest
-
service
public String service()
- Specified by:
servicein classRpcRequest
-
methodDescriptor
public io.grpc.MethodDescriptor<?,?> methodDescriptor()
Returns the method descriptor passed toClientInterceptor.interceptCall(io.grpc.MethodDescriptor<ReqT, RespT>, io.grpc.CallOptions, io.grpc.Channel).- Specified by:
methodDescriptorin interfaceGrpcRequest- Since:
- 5.12
-
callOptions
public io.grpc.CallOptions callOptions()
Returns the call options passed toClientInterceptor.interceptCall(io.grpc.MethodDescriptor<ReqT, RespT>, io.grpc.CallOptions, io.grpc.Channel).- Since:
- 5.12
-
call
public io.grpc.ClientCall<?,?> call()
Returns the client call generated byChannel.newCall(io.grpc.MethodDescriptor<RequestT, ResponseT>, io.grpc.CallOptions)duringClientInterceptor.interceptCall(io.grpc.MethodDescriptor<ReqT, RespT>, io.grpc.CallOptions, io.grpc.Channel).- Since:
- 5.12
-
headers
public io.grpc.Metadata headers()
Returns the headers passed toClientCall.start(ClientCall.Listener, Metadata).- Specified by:
headersin interfaceGrpcRequest- Since:
- 5.12
-
propagationField
protected void propagationField(String keyName, String value)
- Overrides:
propagationFieldin classRpcClientRequest
-
-