Package brave.rpc
Class RpcRequest
java.lang.Object
brave.Request
brave.rpc.RpcRequest
- Direct Known Subclasses:
RpcClientRequest,RpcServerRequest
public abstract class RpcRequest extends Request
Abstract request type used for parsing and sampling of rpc clients and servers.
- Since:
- 5.8
- See Also:
RpcClientRequest,RpcServerRequest
-
Method Details
-
method
The unqualified, case-sensitive method name. Prefer the name defined in IDL to any mappedJava method name.Examples
- gRPC - full method "grpc.health.v1.Health/Check" returns "Check"
- Apache Dubbo - "demo.service.DemoService#sayHello()" command returns "sayHello"
- Apache Thrift - full method "scribe.Log" returns "Log"
Note: For IDL based services, such as Protocol Buffers, this may be different than the
Java method name, or in a different case format.- Returns:
- the RPC method name or null if unreadable.
-
service
The fully-qualified, case-sensitive service path. Prefer the name defined in IDL to any mappedJava package name.Examples
- gRPC - full method "grpc.health.v1.Health/Check" returns "grpc.health.v1.Health"
- Apache Dubbo - "demo.service.DemoService#sayHello()" command returns "demo.service.DemoService"
- Apache Thrift - full method "scribe.Log" returns "scribe"
Note: For IDL based services, such as Protocol Buffers, this may be different than the
Java package name, or in a different case format. Also, this is the definition of the service, not its deploymentservice name.- Returns:
- the RPC namespace or null if unreadable.
-