-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Client request tracing. Allow to get the request body in the trace. #2755
Comments
Please go ahead! |
Saving response body would be interesting as well. |
Ok, great! Thanks for encouragement. Before I get into coding I would like to discuss an idea around this.
The idea would be that this method is called from Also this means, that if user code chooses not to read the response body it will not be available for tracing. I mean getting 400 status when the code looks like:
What do you think ? |
Umm ... once the strings are allocated in memory I would say that internally the only thing that is given as a parameter is just a String object that points to that region. So, passing the request or the response as a parameter won't affect the memory, and only if the signal handle mutates the string a new copy will be made. am I missing something? |
Sorry for not being clear. |
We should call signal as many times as we call |
We might thing on rename the signals as |
Fixed by #2767 |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a [new issue] for related bugs. |
Long story short
I would like to get the
request_body
in the tracing events. Obviously it cannot be included inon_request_start
because body can come from generator.I would be happy to contribute another event, say
on_body_sent
which would fire after the body is written after the body is finished.The text was updated successfully, but these errors were encountered: