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
-
Fields inherited from interface brave.rpc.RpcRequestParser
DEFAULT
-
-
Constructor Summary
Constructors Constructor Description Default()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
parse(RpcRequest req, brave.propagation.TraceContext context, brave.SpanCustomizer span)
Implement to choose what data from the RPC request are parsed into the span representing it.
-
-
-
Method Detail
-
parse
public void parse(RpcRequest req, brave.propagation.TraceContext context, brave.SpanCustomizer span)
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
-
-