Sha256: b426629f34515e0e5a28141a9f5fe17d4e8973a24a08d793acad9f11bfee837f
Contents?: true
Size: 701 Bytes
Versions: 7
Compression:
Stored size: 701 Bytes
Contents
# encoding: utf-8 # This file is distributed under New Relic's license terms. # See https://github.com/newrelic/rpm/blob/master/LICENSE for complete details. module NewRelic autoload :MetricParser, 'new_relic/metric_parser' module MetricParser class Middleware < MetricParser ALL = 'Middleware/all'.freeze RACK = 'Rack'.freeze def ui_name(value_fn=nil,options={}) if metric_name == ALL "Middleware" else "#{segments[2]}\##{segments[3]}" end end def is_middleware? true end def controller_name segments[2] end def action_name segments[3] end end end end
Version data entries
7 entries across 7 versions & 1 rubygems