-
Notifications
You must be signed in to change notification settings - Fork 36
Add DataCollector #5
Comments
I think this is not the job of SensioBuzzBundle. |
Yeah but having to add two bundles just for an http client is kind of annoying. Why not just have it all in one and make the profiler optional? |
BuzzProfilerBundle is for dev environments. I think SensioBuzzBundle must be used in prod or whatever. |
Yeah but you can have just one bundle with some features only enabled in dev. I think the added complexity of having two bundles is not really justified for such a small amount of code. It's also confusing when you are looking for a bundle, if you need to figure out you need to use the two together. This is not very common. |
IMHO, if you can't write yourself this file https://github.com/sensio/SensioBuzzBundle/blob/master/Resources/config/buzz.xml in your projects, you are very lazy. With Symfony2, you can find a plethora of bundles for anything. But everyday, I use Buzz for several projects, and I never searched a bundle to declare buzz as service. Because a bundle for that is really useless. Isn't it? |
Well yeah, I'm not saying there is a huge need for a buzz bundle to define the services, but if you're gonna add a bundle for the profiler, it might as well define the service too I would say. Anyway, I guess I'll drop this. |
You're not the first to ask for this issue ;) |
Well then maybe that should tell you that the way it is now is confusing. If you don't want to fix the problem, at least adding a note in the README would be nice. |
There was once a discussion about merging both bundles. But nobody took some time to do it. Btw, BuzzProfilerBundle was written at the time of Buzz 0.4. Buzz 0.5 offers a better way to manage the profiling |
I currently have no time to work on that but I'd appreciate that the SensioBuzzBundle includes a profiler. |
+1 |
Profiling buzz calls from BuzzProfilerBundle is not well developed. See https://github.com/juliendidier/BuzzBundle/blob/master/DataCollector/BuzzDataCollector.php for a better profiling implementation. |
Add "proxy" config key
Adding the DataCollector stuff from https://github.com/juliendidier/BuzzProfilerBundle to see it all in the profiler would be great.
/cc @juliendidier
The text was updated successfully, but these errors were encountered: