From 68caf0e26e8400c2c033f651626535b4949f5d6d Mon Sep 17 00:00:00 2001 From: Sven Fuchs Date: Tue, 25 Sep 2012 17:54:13 +0200 Subject: [PATCH] add newrelic --- config/newrelic.yml | 39 +++++++++++++++++++++++++++++++++++++++ lib/travis/api/app.rb | 1 + 2 files changed, 40 insertions(+) create mode 100644 config/newrelic.yml diff --git a/config/newrelic.yml b/config/newrelic.yml new file mode 100644 index 00000000..d1ab9cd0 --- /dev/null +++ b/config/newrelic.yml @@ -0,0 +1,39 @@ +--- +staging: + error_collector: + capture_source: true + enabled: true + ignore_errors: ActionController::RoutingError + apdex_t: 0.5 + ssl: false + monitor_mode: true + license_key: <%= ENV["NEW_RELIC_LICENSE_KEY"] %> + developer_mode: false + app_name: <%= ENV["NEW_RELIC_APP_NAME"] %> + transaction_tracer: + record_sql: obfuscated + enabled: true + stack_trace_threshold: 0.5 + transaction_threshold: apdex_f + capture_params: false + log_level: info + +production: + error_collector: + capture_source: true + enabled: true + ignore_errors: ActionController::RoutingError + apdex_t: 0.5 + ssl: false + monitor_mode: true + license_key: <%= ENV["NEW_RELIC_LICENSE_KEY"] %> + developer_mode: false + app_name: <%= ENV["NEW_RELIC_APP_NAME"] %> + transaction_tracer: + record_sql: obfuscated + enabled: true + stack_trace_threshold: 0.5 + transaction_threshold: apdex_f + capture_params: false + log_level: info + diff --git a/lib/travis/api/app.rb b/lib/travis/api/app.rb index f242ce93..8be6e2ee 100644 --- a/lib/travis/api/app.rb +++ b/lib/travis/api/app.rb @@ -12,6 +12,7 @@ require 'redis' require 'gh' require 'hubble' require 'hubble/middleware' +require 'newrelic_rpm' # Rack class implementing the HTTP API. # Instances respond to #call.