From c42c13927cc667ac8183fc14508d4b266e4106fb Mon Sep 17 00:00:00 2001 From: Darren VanBuren Date: Fri, 21 Nov 2014 18:33:08 -0800 Subject: [PATCH] Add New Relic monitoring --- Gemfile | 3 ++- stargaterando.rb | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Gemfile b/Gemfile index 5e5eaf6..1d47e2f 100644 --- a/Gemfile +++ b/Gemfile @@ -1,2 +1,3 @@ source 'https://rubygems.org' -gem 'camping' \ No newline at end of file +gem 'camping' +gem 'newrelic_rpm' \ No newline at end of file diff --git a/stargaterando.rb b/stargaterando.rb index aa2fce5..b929cad 100644 --- a/stargaterando.rb +++ b/stargaterando.rb @@ -1,4 +1,5 @@ require 'camping' +require 'newrelic_rpm' # Camping is a great small framework. Camping.goes :StargateRando @@ -82,3 +83,7 @@ module StargateRando::Views end end + +module StargateRando + include NewRelic::Agent::Instrumentation::Camping +end \ No newline at end of file