Pure Ruby AOP (for collecting analytics about user interactions)

84 views Asked by At

Hi my application is already way too complicated to add some analytics code in it.

I really want to design special classes that will allow me to insert some AOP pointcuts (that will trigger some mixpanel).

I do not want to use a gem, only pure ruby. With modules, concerns, metaprogramming and whatnot.

Using just the callback before, around, after is not enough I would like to cut in a conditional for instance.

Any idea? Thanks

0

There are 0 answers