New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[#21090] Added the improved code for loggingResponsetime and added the link in the docs #21118
Conversation
…d the link in the docs
Can one of the repo owners verify this patch? |
@ktoso @johanandren : Can we merge this ? Please assign it in testing ! |
I think the counterpart of Java DSL needs this example too. You can look into the |
@Hawstein : I have added the javadocs and code too . Please take a look |
if(response.status().isSuccess()) | ||
{ | ||
Long elapsedTime=(requestTime - System.nanoTime()) / 1000; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you wanted it in microseconds, one microsecond is 1 000 000 nanoseconds
OK TO TEST |
Test FAILed. |
Test FAILed. |
LGTM! |
Test PASSed. |
|
||
// handle request to optionally generate a log entry | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove empty line?
LGTM after last round of comments addressed, thanks |
Test PASSed. |
@@ -30,3 +30,13 @@ Example | |||
|
|||
.. includecode2:: ../../../../code/docs/http/scaladsl/server/directives/DebuggingDirectivesExamplesSpec.scala | |||
:snippet: logRequestResult | |||
|
|||
|
|||
Building Advanced Directives |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good
LGTM, thanks for your work on this. |
Test PASSed. |
Resolves #21090 |
Added the improved code as per the comments on #21110 .