Package brave.dubbo
Interface DubboResponse
public interface DubboResponse
Used to access Dubbo specific aspects of a client or server response.
Here's an example that adds default tags, and if Dubbo, the Java result:
rpcTracing = rpcTracingBuilder
.clientResponseParser((res, context, span) -> {
RpcResponseParser.DEFAULT.parse(res, context, span);
if (res instanceof DubboResponse) {
DubboResponse dubboResponse = (DubboResponse) res;
if (res.result() != null) {
tagJavaResult(res.result().value());
}
}
}).build();
Note: Do not implement this type directly. An implementation will be
either as RpcClientResponse
or an RpcServerResponse
.
- Since:
- 5.12
- See Also:
RpcTracing.clientResponseParser()
,RpcTracing.serverResponseParser()
,DubboResponse
-
Method Summary
Modifier and Type Method Description DubboRequest
request()
org.apache.dubbo.rpc.Result
result()
-
Method Details
-
request
DubboRequest request() -
result
@Nullable org.apache.dubbo.rpc.Result result()
-