lrhkobe opened a new issue, #4551:
URL: https://github.com/apache/eventmesh/issues/4551

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/eventmesh/issues?q=is%3Aissue) and found no 
similar issues.
   
   
   ### Enhancement Request
   
   Time-consuming statistics are more reasonable in posthandler.
   
   Code in `HandlerService.java`:
   [
   
![企业微信截图_16995834577905](https://github.com/apache/eventmesh/assets/34571087/eb13bba6-6791-4953-bd8e-41e77de5fccd)
   ](url)
   
   Code in the method of `preHandler`:
   ```
          private void preHandler() {
               
metrics.getSummaryMetrics().recordHTTPReqResTimeCost(System.currentTimeMillis() 
- requestTime);
               LogUtils.debug(httpLogger, "{}", response);
           }
   ```
   
   ### Describe the solution you'd like
   
   Optimize the logic in prehandler and posthandler.
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [ ] I agree to follow this project's [Code of 
Conduct](https://www.apache.org/foundation/policies/conduct) *


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to