mirror of
https://github.com/danbee/tube-status-server
synced 2025-03-04 08:39:12 +00:00
Add New Relic.
This commit is contained in:
parent
d248c8e1dd
commit
87968a533a
2
Gemfile
2
Gemfile
@ -5,6 +5,8 @@ gem 'faraday'
|
|||||||
gem 'xml-simple'
|
gem 'xml-simple'
|
||||||
gem 'foreman'
|
gem 'foreman'
|
||||||
|
|
||||||
|
gem 'newrelic_rpm'
|
||||||
|
|
||||||
group :development do
|
group :development do
|
||||||
gem 'shotgun'
|
gem 'shotgun'
|
||||||
end
|
end
|
||||||
|
|||||||
@ -8,6 +8,7 @@ GEM
|
|||||||
foreman (0.61.0)
|
foreman (0.61.0)
|
||||||
thor (>= 0.13.6)
|
thor (>= 0.13.6)
|
||||||
multipart-post (1.1.5)
|
multipart-post (1.1.5)
|
||||||
|
newrelic_rpm (3.5.4.34)
|
||||||
rack (1.5.0)
|
rack (1.5.0)
|
||||||
rack-protection (1.3.2)
|
rack-protection (1.3.2)
|
||||||
rack
|
rack
|
||||||
@ -31,6 +32,7 @@ PLATFORMS
|
|||||||
DEPENDENCIES
|
DEPENDENCIES
|
||||||
faraday
|
faraday
|
||||||
foreman
|
foreman
|
||||||
|
newrelic_rpm
|
||||||
shotgun
|
shotgun
|
||||||
sinatra
|
sinatra
|
||||||
thin
|
thin
|
||||||
|
|||||||
@ -3,6 +3,10 @@ require 'json'
|
|||||||
require 'xmlsimple'
|
require 'xmlsimple'
|
||||||
require 'faraday'
|
require 'faraday'
|
||||||
|
|
||||||
|
configure :production do
|
||||||
|
require 'newrelic_rpm'
|
||||||
|
end
|
||||||
|
|
||||||
class Tubestatus < Sinatra::Base
|
class Tubestatus < Sinatra::Base
|
||||||
def parse_xml_feed(feed_url)
|
def parse_xml_feed(feed_url)
|
||||||
uri = URI(feed_url)
|
uri = URI(feed_url)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user