-
Notifications
You must be signed in to change notification settings - Fork 179
Improve symfony response times when tracing is enabled #465
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
Improve symfony response times when tracing is enabled #465
Conversation
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.
Test are failing, but change is good! Thank you for spotting this!
Yes, I'm waiting for a patch release from Symfony to update all pending PRs which are all failing to pass the CI
This PR should include the changes discussed in the referenced issue. @rjd22 let me know if you want to work on them, being the PR's author 😉 |
@rjd22 can you please rebase this PR and let me know if you're willing to work on the rest of the changes 🙏? |
@ste93cry I will see if I can make some time later this week to revise it and add some spans. Would |
I'll mark this as a bug because I consider this a blocker for releasing the tracing instrumentation: this is not an acceptable performance degradation for the user; thanks for spotting it. |
Although I don't like it because it isn't really meaningful, I would leave |
@ste93cry Then |
Ok, I don't have any better suggestion by the way 😄 |
@rjd22 Since I see no activity here and I would like to release at the beginning of the next week the new version, do you mind if I take care of finishing the work? I'm asking this to avoid both of us working on the same thing without the other knowing 😄 |
@ste93cry I'm extremely sorry that I didn't make time to pick this up as promised. I would be really grateful if you would finish this one up. Feel free to take it over ❤️ |
No problem, I don't feel good at keeping pinging people to finish the work when I'm the first one taking ages to review the PRs and I don't feel good at always taking over the work of other people, but I really wanna push the release out asap, that's all 😃 I will work on this PR in the next days, in the meanwhile thank you for the contribution so far which as always is much appreciated |
5114595
to
6f46bdd
Compare
Improve symfony response times when tracing is enabled by sending the tracing results on kernel terminate. Kernel terminate happens after rendering and sending the response to the client so clients won't notice any delay.
a37d1ed
to
8287218
Compare
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.
After thinking again at the changes I requested, I changed my mind mainly because in the context of a traditional Symfony application the master request is the transaction and lasts for the entire application's lifecycle, so it doesn't really makes sense to represent it as a child span of the transaction. In the future though, we may want to take inspiration from the Symfony profiler to create child spans for certain pieces of the application lifecycle, e.g. the execution of the controller or the sending of the response back to the client
Improve symfony response times when tracing is enabled by sending
the tracing results on kernel terminate. Kernel terminate happens
after rendering and sending the response to the client so clients
won't notice any delay.
Fixes: #464
Before change:

After change:
