add newrelic

This commit is contained in:
Sven Fuchs 2012-09-25 17:54:13 +02:00
parent 97e06c556f
commit 68caf0e26e
2 changed files with 40 additions and 0 deletions

39
config/newrelic.yml Normal file
View File

@ -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

View File

@ -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.