Sha256: bf1d3ee7a030c560df07c5d9561485d28089624d8e8369f979ba4380f45be0a4

Contents?: true

Size: 624 Bytes

Versions: 16

Compression:

Stored size: 624 Bytes

Contents

require 'new_relic/control/frameworks/ruby'
module NewRelic
  class Control
    module Frameworks
      class Sinatra < NewRelic::Control::Frameworks::Ruby

        def env
          @env ||= ENV['RACK_ENV'] || ENV['RAILS_ENV'] || 'development'
        end

        # This is the control used when starting up in the context of
        # The New Relic Infrastructure Agent.  We want to call this
        # out specifically because in this context we are not monitoring
        # the running process, but actually external things.
        def init_config(options={})
          super
        end

      end
    end
  end
end

Version data entries

16 entries across 16 versions & 2 rubygems

Version Path
ghazel-newrelic_rpm-3.1.0.1 lib/new_relic/control/frameworks/sinatra.rb
newrelic_rpm-3.1.0 lib/new_relic/control/frameworks/sinatra.rb
newrelic_rpm-3.1.0.beta5 lib/new_relic/control/frameworks/sinatra.rb
newrelic_rpm-3.1.0.beta4 lib/new_relic/control/frameworks/sinatra.rb
newrelic_rpm-3.1.0.djlogging2 lib/new_relic/control/frameworks/sinatra.rb
newrelic_rpm-3.1.0.djlogging lib/new_relic/control/frameworks/sinatra.rb
newrelic_rpm-3.1.0.beta3 lib/new_relic/control/frameworks/sinatra.rb
newrelic_rpm-3.1.0.beta2 lib/new_relic/control/frameworks/sinatra.rb
newrelic_rpm-3.0.1 lib/new_relic/control/frameworks/sinatra.rb
newrelic_rpm-3.1.0.beta1 lib/new_relic/control/frameworks/sinatra.rb
newrelic_rpm-3.0.0 lib/new_relic/control/frameworks/sinatra.rb
newrelic_rpm-3.0.0.beta2 lib/new_relic/control/frameworks/sinatra.rb
newrelic_rpm-3.0.0.beta1 lib/new_relic/control/frameworks/sinatra.rb
newrelic_rpm-2.14.1.logging1 lib/new_relic/control/frameworks/sinatra.rb
newrelic_rpm-2.14.1 lib/new_relic/control/frameworks/sinatra.rb
newrelic_rpm-2.14.0 lib/new_relic/control/frameworks/sinatra.rb