Sha256: 3c5b673e541074d55e30e26e8e473b47030838e43f8401d93bee6b05123f832f

Contents?: true

Size: 542 Bytes

Versions: 100

Compression:

Stored size: 542 Bytes

Contents

# 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

100 entries across 100 versions & 5 rubygems

Version Path
wd_newrelic_rpm-3.5.8 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/controller_ext.rb
sundawg_newrelic_rpm-3.5.8.2 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/controller_ext.rb
sundawg_newrelic_rpm-3.5.8.1 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/controller_ext.rb
newrelic_rpm-3.5.8.72 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/controller_ext.rb
newrelic_rpm-3.5.8.70 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/controller_ext.rb
newrelic_rpm-3.5.8.64.beta vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/controller_ext.rb
newrelic_rpm-3.5.7.59 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/controller_ext.rb
newrelic_rpm-3.5.7.59.beta vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/controller_ext.rb
newrelic_rpm-3.5.7.58.beta vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/controller_ext.rb
wd_newrelic_rpm-3.5.6 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/controller_ext.rb
newrelic_rpm-3.5.7.57.beta vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/controller_ext.rb
newrelic_rpm-3.5.6.55 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/controller_ext.rb
newrelic_rpm-3.5.6.48.beta vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/controller_ext.rb
newrelic_rpm-3.5.6.46.beta vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/controller_ext.rb
newrelic_rpm-3.5.6.42.beta vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/controller_ext.rb
newrelic_rpm-3.5.5.39.beta vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/controller_ext.rb
wd_newrelic_rpm-3.5.5 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/controller_ext.rb
newrelic_rpm-3.5.5.38 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/controller_ext.rb
newrelic_rpm-3.5.5.540.dev vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/controller_ext.rb
newrelic_rpm-3.5.4.35.beta vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/controller_ext.rb