have new relic trace flex methods

This commit is contained in:
Emi Matchu 2013-01-31 18:39:51 -06:00
parent 36b216a6e8
commit 9efd2fe83a

View file

@ -0,0 +1,14 @@
Flex.class_eval do
class << self
include ::NewRelic::Agent::MethodTracer
verbs = %w(bulk count create_index delete_by_query delete_index
delete_mapping exist get get_mapping get_settings indices_exists
multi_get post_index post_store put_index put_mapping put_store
remove stats store)
verbs.each do |method|
add_method_tracer(method)
end
end
end