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 Detail

      • invoker

        com.alibaba.dubbo.rpc.Invoker<?> invoker()
      • invocation

        com.alibaba.dubbo.rpc.Invocation invocation()