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
dolores_rpm-3.3.4.fork vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/controller_ext.rb
newrelic_rpm-3.3.4.1 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/controller_ext.rb
newrelic_rpm-3.3.4 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/controller_ext.rb
newrelic_rpm-3.3.4.beta1 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/controller_ext.rb
newrelic_rpm-3.3.3 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/controller_ext.rb
newrelic_rpm-3.3.3.beta2 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/controller_ext.rb
newrelic_rpm-3.3.2.1 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/controller_ext.rb
newrelic_rpm-3.3.3.beta1 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/controller_ext.rb
newrelic_rpm-3.3.2 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/controller_ext.rb
newrelic_rpm-3.3.2.beta2 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/controller_ext.rb
newrelic_rpm-3.3.2.beta1 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/controller_ext.rb
newrelic_rpm-3.3.1 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/controller_ext.rb
newrelic_rpm-3.3.1.beta2 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/controller_ext.rb
newrelic_rpm-3.3.1.beta1 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/controller_ext.rb
newrelic_rpm-3.3.0 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/controller_ext.rb
newrelic_rpm-3.3.0.beta1 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/controller_ext.rb
newrelic_rpm-3.2.0.1 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/controller_ext.rb
newrelic_rpm-3.2.0 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/controller_ext.rb
newrelic_rpm-3.2.0.beta2 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/controller_ext.rb
newrelic_rpm-3.2.0.beta1 vendor/gems/metric_parser-0.1.0.pre1/lib/new_relic/metric_parser/controller_ext.rb