YahooArchive / boomerang

End user oriented web performance testing and beaconing
http://lognormal.github.com/boomerang/doc/
Other
1.18k stars 448 forks source link

Adapting sendBeacon function for customizing output format of the request #20

Closed ninodafonte closed 13 years ago

ninodafonte commented 13 years ago

Refactoring sendBeacon function for having the option for customizing formatResponse inside plugins. This open the posibilities for modifying the output format and adapt it to the required response.

My goal is to insert the data in one step in some noSql engine or hadoop framework, for post-procesing in batchs.

Nginx+empty_gif+redis give me the ability for doing that, but the url from boomerang has to be slightly modified. That's the reason of this little change. I hope this can be useful for other purposes too.

Thank you very much.

pd: Sorry for the bunch of lines modified, my editor kills blank spaces and it makes a lot of noise in space-limited files. I just wrote a comment for a better understanding of the changes.

pd: My pull request was only about the first commit. I'm working on this project and now we have 4 commits in this request. Please ignore it.

ninodafonte commented 13 years ago

I will prepare one clean request with one commit. Sorry for the inconvenients.