Package brave.rpc
Class RpcResponseParser.Default
java.lang.Object
brave.rpc.RpcResponseParser.Default
- All Implemented Interfaces:
RpcResponseParser
- Enclosing interface:
- RpcResponseParser
public static class RpcResponseParser.Default extends Object implements RpcResponseParser
The default data policy sets
RpcTags.ERROR_CODE tag, and also "error", if there is no
exception.
Note:The exception will be tagged by default in Zipkin, but if you are using a
SpanHandler to another destination, you should process accordingly.
- Since:
- 5.12
-
Nested Class Summary
Nested classes/interfaces inherited from interface brave.rpc.RpcResponseParser
RpcResponseParser.Default -
Field Summary
-
Constructor Summary
Constructors Constructor Description Default() -
Method Summary
Modifier and Type Method Description voidparse(RpcResponse response, TraceContext context, SpanCustomizer span)Implement to choose what data from the RPC response are parsed into the span representing it.
-
Constructor Details
-
Default
public Default()
-
-
Method Details
-
parse
Description copied from interface:RpcResponseParserImplement to choose what data from the RPC response are parsed into the span representing it.Note: This is called after
Span.error(Throwable), which means any "error" tag set here will overwrite what the error parser set.- Specified by:
parsein interfaceRpcResponseParser- See Also:
RpcResponseParser.Default
-