lib/sequel/plugins/oneapm_instrumentation.rb in oneapm_rpm-1.1.1 vs lib/sequel/plugins/oneapm_instrumentation.rb in oneapm_rpm-1.1.2

- old
+ new

@@ -10,11 +10,11 @@ module MethodTracer def make_tracer_method( opname, options ) body = Proc.new do |*args, &block| classname = self.is_a?( Class ) ? self.name : self.class.name - metric = "ActiveRecord/%s/%s" % [ classname, opname ] + metric = "Database/%s/%s" % [ classname, opname ] trace_execution_scoped( metric, options ) do super( *args, &block ) end end @@ -39,16 +39,16 @@ module InstanceMethods include OneApm::Support::MethodTracer extend Sequel::Plugins::OneapmInstrumentation::MethodTracer add_method_tracer :delete - add_method_tracer :destroy + add_method_tracer :destroy, :delete add_method_tracer :update - add_method_tracer :update_all - add_method_tracer :update_except - add_method_tracer :update_fields - add_method_tracer :update_only - add_method_tracer :save + add_method_tracer :update_all, :update + add_method_tracer :update_except, :update + add_method_tracer :update_fields, :update + add_method_tracer :update_only, :update + add_method_tracer :save, :insert end module ClassMethods include OneApm::Support::MethodTracer