Skip to content

[Enhancement] The logical operations in prehandler and posthandler are not reasonable #4551

Closed
@lrhkobe

Description

@lrhkobe

Search before asking

  • I had searched in the issues and found no similar issues.

Enhancement Request

Time-consuming statistics are more reasonable in posthandler.

Code in HandlerService.java:

企业微信截图_16995834577905

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

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestgood first issueIssues for first-time contributorshelp wantedExtra attention is needed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions