Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (17 sloc) 521 Bytes
require 'new_relic/agent/method_tracer'
Drop.instance_eval do
class << self
include NewRelic::Agent::MethodTracer
add_method_tracer :find, 'Custom/Drop/find'
add_method_tracer :fetch_drop_content, 'Custom/Drop/fetch_drop_content'
end
end
Thumbnail.class_eval do
include NewRelic::Agent::MethodTracer
add_method_tracer :file
add_method_tracer :data
add_method_tracer :image
add_method_tracer :resize_image
add_method_tracer :image_too_large?
add_method_tracer :tempfile
end
Jump to Line
Something went wrong with that request. Please try again.