Package brave.rpc
Class RpcRequestMatchers
- java.lang.Object
-
- brave.rpc.RpcRequestMatchers
-
public final class RpcRequestMatchers extends Object
Null safe matchers for use inRpcRuleSampler
.- Since:
- 5.8
- See Also:
Matchers
-
-
Constructor Summary
Constructors Constructor Description RpcRequestMatchers()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <Req extends RpcRequest>
brave.sampler.Matcher<Req>methodEquals(String method)
Matcher for case-sensitive RPC method names, such as "Report" or "EXISTS"static <Req extends RpcRequest>
brave.sampler.Matcher<Req>serviceEquals(String service)
Matcher for case-sensitive RPC service names, such as "grpc.health.v1.Health" or "scribe"
-
-
-
Method Detail
-
methodEquals
public static <Req extends RpcRequest> brave.sampler.Matcher<Req> methodEquals(String method)
Matcher for case-sensitive RPC method names, such as "Report" or "EXISTS"- Since:
- 5.8
- See Also:
RpcRequest.method()
-
serviceEquals
public static <Req extends RpcRequest> brave.sampler.Matcher<Req> serviceEquals(String service)
Matcher for case-sensitive RPC service names, such as "grpc.health.v1.Health" or "scribe"- Since:
- 5.8
- See Also:
RpcRequest.service()
-
-