diff --git a/Gemfile b/Gemfile index b4be1be..22d7634 100644 --- a/Gemfile +++ b/Gemfile @@ -5,6 +5,8 @@ gem 'faraday' gem 'xml-simple' gem 'foreman' +gem 'newrelic_rpm' + group :development do gem 'shotgun' end diff --git a/Gemfile.lock b/Gemfile.lock index e28a72a..0b03431 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -8,6 +8,7 @@ GEM foreman (0.61.0) thor (>= 0.13.6) multipart-post (1.1.5) + newrelic_rpm (3.5.4.34) rack (1.5.0) rack-protection (1.3.2) rack @@ -31,6 +32,7 @@ PLATFORMS DEPENDENCIES faraday foreman + newrelic_rpm shotgun sinatra thin diff --git a/tubestatus.rb b/tubestatus.rb index b61554c..876e77c 100644 --- a/tubestatus.rb +++ b/tubestatus.rb @@ -3,6 +3,10 @@ require 'json' require 'xmlsimple' require 'faraday' +configure :production do + require 'newrelic_rpm' +end + class Tubestatus < Sinatra::Base def parse_xml_feed(feed_url) uri = URI(feed_url)