Sha256: 86e4af966c82e3cede96b7d49b9f386047223709498326c6b204d23e2e920f8c

Contents?: true

Size: 553 Bytes

Versions: 9

Compression:

Stored size: 553 Bytes

Contents

if defined?(NewRelic)
  if RACK_ENV == 'development'
    require 'new_relic/rack/developer_mode'
    use NewRelic::Rack::DeveloperMode
  end
  if NewRelic::Control.instance.agent_enabled?
    LOGGER.info "New Relic monitoring enabled App name: '#{NewRelic::Control.instance['app_name']}', Mode: '#{NewRelic::Control.instance.app}'"
  end
end

# Use this middleware with AR to avoid threading issues.
# require 'active_record'
# use ActiveRecord::ConnectionAdapters::ConnectionManagement

use Airbrake::Rack if defined?(Airbrake)
use Rack::ContentLength

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
wd_sinatra-1.0.4 templates/config/middleware.rb
wd_sinatra-1.0.3 templates/config/middleware.rb
wd_sinatra-1.0.2 templates/config/middleware.rb
wd_sinatra-1.0.1 templates/config/middleware.rb
wd_sinatra-1.0.0 templates/config/middleware.rb
wd_sinatra-0.3.2 templates/config/middleware.rb
wd_sinatra-0.3.1 templates/config/middleware.rb
wd_sinatra-0.3.0 templates/config/middleware.rb
wd_sinatra-0.2.6 templates/config/middleware.rb