Skip to content
This repository has been archived by the owner on Apr 1, 2020. It is now read-only.

Commit

Permalink
Merge pull request #4 from basho/riak-ripple-support
Browse files Browse the repository at this point in the history
instrument Ripple finders, persistence methods
  • Loading branch information
Bryce "BonzoESC" Kerley committed Oct 26, 2011
2 parents 44fc256 + 467777b commit 1a3f05f
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions lib/rpm_contrib/instrumentation/ripple.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,23 @@
add_method_tracer :valid?, 'Database/Riak/Ripple/valid?'
end

::Ripple::Document::Persistence::ClassMethods.class_eval do
add_method_tracer :create, 'Database/Riak/Ripple/create'
add_method_tracer :destroy_all, 'Database/Riak/Ripple/destroy_all'
end

::Ripple::Document::Persistence::InstanceMethods.class_eval do
add_method_tracer :really_save, 'Database/Riak/Ripple/really_save'
add_method_tracer :reload, 'Database/Riak/Ripple/reload'
add_method_tracer :delete, 'Database/Riak/Ripple/delete'
add_method_tracer :destroy, 'Database/Riak/Ripple/destroy'
add_method_tracer :update_attribute, 'Database/Riak/Ripple/update_attribute'
add_method_tracer :update_attributes, 'Database/Riak/Ripple/update_attributes'
end

::Ripple::Document::Finders::ClassMethods.class_eval do
add_method_tracer :find, 'Database/Riak/Ripple/find'
add_method_tracer :list, 'Database/Riak/Ripple/list'
end
end
end

0 comments on commit 1a3f05f

Please sign in to comment.