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.