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.CallOptions
callOptions()
Returns the call options passed toClientInterceptor.interceptCall(io.grpc.MethodDescriptor<ReqT, RespT>, io.grpc.CallOptions, io.grpc.Channel)
.io.grpc.Metadata
headers()
Returns the headers passed toClientCall.start(ClientCall.Listener, Metadata)
.String
method()
io.grpc.MethodDescriptor<?,?>
methodDescriptor()
Returns the method descriptor passed toClientInterceptor.interceptCall(io.grpc.MethodDescriptor<ReqT, RespT>, io.grpc.CallOptions, io.grpc.Channel)
.protected void
propagationField(String keyName, String value)
String
service()
Object
unwrap()
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:
method
in classRpcRequest
-
service
public String service()
- Specified by:
service
in 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:
methodDescriptor
in 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:
headers
in interfaceGrpcRequest
- Since:
- 5.12
-
propagationField
protected void propagationField(String keyName, String value)
- Overrides:
propagationField
in classRpcClientRequest
-
-