Package brave.rpc
Class RpcRequestParser.Default
java.lang.Object
brave.rpc.RpcRequestParser.Default
- All Implemented Interfaces:
RpcRequestParser
- Enclosing interface:
- RpcRequestParser
public static class RpcRequestParser.Default extends Object implements RpcRequestParser
The default data policy sets the span name to
${rpc.service}/${rpc.method}
or only the
method or service. This also tags "rpc.service" and "rpc.method" when present.-
Nested Class Summary
Nested classes/interfaces inherited from interface brave.rpc.RpcRequestParser
RpcRequestParser.Default
-
Field Summary
-
Constructor Summary
Constructors Constructor Description Default()
-
Method Summary
Modifier and Type Method Description void
parse(RpcRequest req, TraceContext context, SpanCustomizer span)
Implement to choose what data from the RPC request are parsed into the span representing it.
-
Constructor Details
-
Default
public Default()
-
-
Method Details
-
parse
Description copied from interface:RpcRequestParser
Implement to choose what data from the RPC request are parsed into the span representing it.- Specified by:
parse
in interfaceRpcRequestParser
- See Also:
RpcRequestParser.Default
-