Package brave.dubbo

Interface DubboRequest


public interface DubboRequest
Used to access Dubbo specific aspects of a client or server request.

Here's an example that adds default tags, and if Dubbo, Java arguments:


 rpcTracing = rpcTracingBuilder
   .clientRequestParser((req, context, span) -> {
      RpcRequestParser.DEFAULT.parse(req, context, span);
      if (req instanceof DubboRequest) {
        tagArguments(((DubboRequest) req).invocation().getArguments());
      }
   }).build();
 

Note: Do not implement this type directly. An implementation will be either as RpcClientRequest or an RpcServerRequest.

Since:
5.12
See Also:
RpcTracing.clientRequestParser(), RpcTracing.serverRequestParser(), DubboResponse
  • Method Summary

    Modifier and Type Method Description
    org.apache.dubbo.rpc.Invocation invocation()  
    org.apache.dubbo.rpc.Invoker<?> invoker()  
  • Method Details

    • invoker

      org.apache.dubbo.rpc.Invoker<?> invoker()
    • invocation

      org.apache.dubbo.rpc.Invocation invocation()