Philippe Monnet
2009-Dec-31 02:32 UTC
Created a small instrumentation NewRelic plugin for Camping controllers
After a bit over a day of both looking at the way NewRelic implemented their plugin for Rack and Sinatra, as well as digging deep in the core Camping code of the service and M methods, I managed to get something working. See http://github.com/techarch/rpm/blob/master/lib/new_relic/agent/instrumentation/camping.rb It took me many tests to understand that the M method actually include some of the Camping modules in the controller classes. I have been reading the entire framework back to back a bunch of times and I keep being amazed at the overall design. There are so many Rubyisms to be learned from the code. Let me know if you end up using the plugin and if there are ways to improve it. If you are using Heroku you should definitely give NewRelic a try since the Bronze edition comes for free. Philippe -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/camping-list/attachments/20091230/04d5e6af/attachment.html>
Magnus Holm
2010-Jan-02 21:48 UTC
Created a small instrumentation NewRelic plugin for Camping controllers
Excellent, I''ll definitely check it out when I come home (writing this on a crappy Sony Ericsson while it''s -20C outside). Yes, there are more cool things about Camping then the 4k (or 3k at the moment). Hit me up at #camping @ irc.freenode.net if there still is something that''s unclear. I think I understand the code, but hey, with camping.rb you never know. -- Happy new year to all of you! 2009/12/31, Philippe Monnet <ruby at monnet-usa.com>:> After a bit over a day of both looking at the way NewRelic implemented > their plugin for Rack and Sinatra, as well as digging deep in the core > Camping code of the service and M methods, I managed to get something > working. See > http://github.com/techarch/rpm/blob/master/lib/new_relic/agent/instrumentation/camping.rb > > It took me many tests to understand that the M method actually include > some of the Camping modules in the controller classes. I have been > reading the entire framework back to back a bunch of times and I keep > being amazed at the overall design. There are so many Rubyisms to be > learned from the code. > > Let me know if you end up using the plugin and if there are ways to > improve it. > If you are using Heroku you should definitely give NewRelic a try since > the Bronze edition comes for free. > > Philippe >-- //Magnus Holm
Magnus Holm
2010-Jan-03 17:27 UTC
Created a small instrumentation NewRelic plugin for Camping controllers
Wouldn''t it be possible to simply use http://pastie.textmate.org/private/8bnszgdfkkgdlorzncgnww? //Magnus Holm On Thu, Dec 31, 2009 at 03:32, Philippe Monnet <ruby at monnet-usa.com> wrote:> After a bit over a day of both looking at the way NewRelic implemented their > plugin for Rack and Sinatra, as well as digging deep in the core Camping > code of the service and M methods, I managed to get something working. See > http://github.com/techarch/rpm/blob/master/lib/new_relic/agent/instrumentation/camping.rb > > It took me many tests to understand that the M method actually include some > of the Camping modules in the controller classes. I have been reading the > entire framework back to back a bunch of times and I keep being amazed at > the overall design. There are so many Rubyisms to be learned from the code. > > Let me know if you end up using the plugin and if there are ways to improve > it. > If you are using Heroku you should definitely give NewRelic a try since the > Bronze edition comes for free. > > Philippe > > _______________________________________________ > Camping-list mailing list > Camping-list at rubyforge.org > http://rubyforge.org/mailman/listinfo/camping-list >