nil] # nil goes for inserts and updates unless blacklist.include?(event.payload[:name]) QueryMetric.create!(name: event.payload[:name], duration: event.duration) end end
|*args| Metriks.meter('iqvoc.concepts.published').mark end ActiveSupport::Notifications.subscribe 'costly_operation' do |*args| event = ActiveSupport::Notifications::Event.new(*args) Metriks.timer('costly_operation').update(event.duration) end