Sha256: ea0e39d601beca760b1d5aa3936f41f7ccc791d61fa85fa33ab59a72faabe6e9
Contents?: true
Size: 620 Bytes
Versions: 2
Compression:
Stored size: 620 Bytes
Contents
require "influxdb/rails/middleware/simple_subscriber" module InfluxDB module Rails module Middleware class RenderSubscriber < SimpleSubscriber # :nodoc: private def values(started, finished, payload) super(started, finished, payload).merge( count: payload[:count], cache_hits: payload[:cache_hits] ).reject { |_, value| value.nil? } end def tags(payload) tags = { location: location, filename: payload[:identifier], } super(tags) end end end end end
Version data entries
2 entries across 2 versions & 2 rubygems
Version | Path |
---|---|
experimental-influxdb-rails-1.0.0.beta5 | lib/influxdb/rails/middleware/render_subscriber.rb |
influxdb-rails-1.0.0.beta3 | lib/influxdb/rails/middleware/render_subscriber.rb |