Skip to content
This repository has been archived by the owner on Sep 14, 2018. It is now read-only.

Add DataCollector #5

Open
Seldaek opened this issue Apr 17, 2012 · 12 comments
Open

Add DataCollector #5

Seldaek opened this issue Apr 17, 2012 · 12 comments

Comments

@Seldaek
Copy link

Seldaek commented Apr 17, 2012

Adding the DataCollector stuff from https://github.com/juliendidier/BuzzProfilerBundle to see it all in the profiler would be great.

/cc @juliendidier

@juliendidier
Copy link

I think this is not the job of SensioBuzzBundle.
Same as BuzzProfileBundle, which is not his job to generate default buzz service definitions.

@Seldaek
Copy link
Author

Seldaek commented Apr 17, 2012

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?

@juliendidier
Copy link

BuzzProfilerBundle is for dev environments. I think SensioBuzzBundle must be used in prod or whatever.

@Seldaek
Copy link
Author

Seldaek commented Apr 17, 2012

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.

@juliendidier
Copy link

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.
That's why SensioBuzzBundle was made.

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?

@Seldaek
Copy link
Author

Seldaek commented Apr 17, 2012

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.

@Seldaek Seldaek closed this as completed Apr 17, 2012
@juliendidier
Copy link

You're not the first to ask for this issue ;)

@Seldaek
Copy link
Author

Seldaek commented Apr 17, 2012

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.

@stof
Copy link

stof commented Apr 17, 2012

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

@marcw
Copy link
Contributor

marcw commented Apr 19, 2012

I currently have no time to work on that but I'd appreciate that the SensioBuzzBundle includes a profiler.

@marcw marcw reopened this Apr 19, 2012
@lsmith77
Copy link

+1

@juliendidier
Copy link

Profiling buzz calls from BuzzProfilerBundle is not well developed.
It deals with clients. It was not a good idea.

See https://github.com/juliendidier/BuzzBundle/blob/master/DataCollector/BuzzDataCollector.php for a better profiling implementation.

peterhorne pushed a commit to musicglue/SensioBuzzBundle that referenced this issue Dec 18, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants