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
Initial implementation of sentry tracing with tests #423
Conversation
Thank you for the willingness of contributing! May I ask you to split each feature (the request tracing listener, the Twig tracing listener, etc) into its own PR? This way, it will be both easier to review the code and we can develop them independently without necessarily having to rush for the release of all of them at the same time |
@ste93cry Thank you for your feedback. This is a really good idea. I will split them up later. |
a269147
to
7922374
Compare
3c95a85
to
9978c35
Compare
@ste93cry I splitted off the dbal and twig tracing support and added tests. Testing was quite complex and took me too much time. I'm not planning to invest more of my time into this except for small changes. |
I'll let @ste93cry and @Jean85 actually comment on the code but looking as a non-symfony dev this looks pretty nice already! I wanted to at least have thanked you for taking the time to get this started, this is a huge help and very much appreciated. I'm sure Stefano and Alessandro will be able to get this in with this head-start, thanks! |
I also made an PR for dbal tracing: |
Closing and reopened to trigger build |
Are you willing to rebase this PR so that we can proceed with reviewing it? |
@ste93cry yep I will do so later. |
@Jean85 did you mean to merge master into this branch? Since it was based on develop. |
354c4a6
to
99baa06
Compare
Crap, that's what I was doing wrong! |
354c4a6
to
a4b5fb3
Compare
Ok I force pushed reverting back to a4b5fb3 which was the last commit before my screw up. |
a4b5fb3
to
167c35c
Compare
167c35c
to
eeb9cd4
Compare
Nope, the right one was 9978c35, and it correctly didn't have any conflicts 😓 that was messy! |
@Jean85 @ste93cry Thanks for your work. I've moved the classes to be ordered similar to the other tracing classes. And added the changes to the Changelog. I think this one is good to go. When this is merged I will start testing this on a acceptance environment to test the stability and report back the results :). |
Here is a good integration from Jaeger. Thanks for the integration! I am already waiting for it! |
Thank you. I'm taking inspiration from the Opentelemetry project because I heard about it in the past, but looking at the package you linked it should be on the same wavelength 😃
Thank you for contributing to the project. I had no time to leave a code review before you made more changes, I feel sorry for this, but I moved the classes back to the
Because as of now I mainly used the tests (both unit and e2e) to simulate requests and console commands to check that at least the basics work, this would be really cool! |
This reverts commit 39891a4.
Btw @ste93cry I've been checking your improvements on my implementation and wanted to thank you personally for how much better this implementation has become. Thank you! |
FYI, I reverted some of your changes, for example the one that was creating a span for the response and the controller, because I'm not sure we need to go so deep at this moment with tracing and because I'm not sure the events you used were as precise as we would expect. Since I didn't want to postpone merging this PR for too much time, we can go back to the table and improve these aspects further in the next iterations |
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.
Great work everybody!
This is my initial experimental implementation of tracing. It is unfinished because it connects quite directly to the dependencies of the project.
How does it look now
I've run it on my personal pet project. Enjoy!