Sha256: 51494e1d0c2350e1e83700b27ccfac144874a98306458e5d5d2806a61f4215af
Contents?: true
Size: 521 Bytes
Versions: 6
Compression:
Stored size: 521 Bytes
Contents
require "influxdb/rails/middleware/subscriber" require "influxdb/rails/sql/query" module InfluxDB module Rails module Middleware class ActiveRecordSubscriber < Subscriber # :nodoc: private def values { value: duration, record_count: payload[:record_count], } end def tags { hook: "instantiation", class_name: payload[:class_name], } end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems