Sha256: 508db4d1d45e2560488811e94519435200dd299120f6cbe301b2cfba12136618
Contents?: true
Size: 701 Bytes
Versions: 73
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. # Extend the controller with extra behavior from web transactions # This is just temporary until we switchover to WebTransaction from Controller. NewRelic::MetricParser::Controller.class_eval do def initialize(name) super if %w[Sinatra Rack Task].include?(segment_1) self.extend NewRelic::MetricParser::WebTransaction.const_get(segment_1) end end # default to v2 Web Transactions tab def drilldown_url(metric_id) {:controller => '/v2/transactions', :action => 'index', :anchor => "id=#{metric_id}"} end end
Version data entries
73 entries across 73 versions & 2 rubygems