have new relic trace flex methods
This commit is contained in:
parent
36b216a6e8
commit
9efd2fe83a
1 changed files with 14 additions and 0 deletions
14
config/initializers/flex_metrics.rb
Normal file
14
config/initializers/flex_metrics.rb
Normal 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
|
Loading…
Reference in a new issue