Sha256: 9912afb33141b4b3284d0eb885500c165b5368cedb460261a15b38e57b8d5a2f
Contents?: true
Size: 402 Bytes
Versions: 4
Compression:
Stored size: 402 Bytes
Contents
module Speedup module Collectors class QueriesCollector < Collector def setup_subscribes register('sql.active_record') end def filter_event?(evt) super || evt.payload[:name] =~ /schema/i end def event_to_data(evt) {time: evt.time, duration: evt.duration, name: evt.payload[:name], query: evt.payload[:sql]} end end end end
Version data entries
4 entries across 4 versions & 1 rubygems