Class NetAttributesExtractor<REQUEST,​RESPONSE>

    • Constructor Detail

      • NetAttributesExtractor

        public NetAttributesExtractor()
    • Method Detail

      • transport

        public abstract @Nullable String transport​(REQUEST request)
      • peerName

        public abstract @Nullable String peerName​(REQUEST request,
                                                  @Nullable RESPONSE response)
        This method will be called twice: both when the request starts (response is always null then) and when the response ends. This way it is possible to capture net attributes in both phases of processing.
      • peerPort

        public abstract @Nullable Integer peerPort​(REQUEST request,
                                                   @Nullable RESPONSE response)
        This method will be called twice: both when the request starts (response is always null then) and when the response ends. This way it is possible to capture net attributes in both phases of processing.
      • peerIp

        public abstract @Nullable String peerIp​(REQUEST request,
                                                @Nullable RESPONSE response)
        This method will be called twice: both when the request starts (response is always null then) and when the response ends. This way it is possible to capture net attributes in both phases of processing.