|
| 1 | +# |
| 2 | +# OneApm RubyAgent Configuration |
| 3 | +# |
| 4 | + |
| 5 | +# Here are the settings that are common to all environments |
| 6 | +common: &default_settings |
| 7 | + # ============================== LICENSE KEY =============================== |
| 8 | + |
| 9 | + # |
| 10 | + # Get your license key from oneapm.com |
| 11 | + # |
| 12 | + license_key: 'VwIDBU4MRe231VoOHlhBVVbb06RIB1UDBhxb264SVB0HVR4E98d5BQgNSQVQHwEF' |
| 13 | + |
| 14 | + # Agent Enabled (Ruby/Rails Only) |
| 15 | + # Valid values are true, false and auto. |
| 16 | + # |
| 17 | + # agent_enabled: auto |
| 18 | + |
| 19 | + # This app_name will be the application name in oneapm.com in your account. |
| 20 | + # |
| 21 | + # Caution: If you change this name, a new application will appear in the OneApm |
| 22 | + # user interface with the new name, and data will stop reporting to the |
| 23 | + # app with the old name. |
| 24 | + # |
| 25 | + app_name: Ruby China |
| 26 | + |
| 27 | + # When "true", the agent collects performance data about your |
| 28 | + # application and reports this data to the OneApm service at |
| 29 | + # oneapm.com. This global switch is normally overridden for each |
| 30 | + # environment below. (formerly called 'enabled') |
| 31 | + monitor_mode: true |
| 32 | + |
| 33 | + # Specify its log level here. |
| 34 | + log_level: info |
| 35 | + |
| 36 | + # log_file_path: 'log' |
| 37 | + # log_file_name: 'oneapm_agent.log' |
| 38 | + |
| 39 | + # The oneapm agent communicates with the service via https by default. |
| 40 | + # ssl: true |
| 41 | + |
| 42 | + # ======================== Browser Monitoring ============================= |
| 43 | + browser_monitoring: |
| 44 | + # By default the agent automatically injects the monitoring JavaScript |
| 45 | + # into web pages. Set this attribute to false to turn off this behavior. |
| 46 | + auto_instrument: true |
| 47 | + |
| 48 | + # Proxy settings for connecting to the OneApm server. |
| 49 | + # |
| 50 | + # proxy_host: hostname |
| 51 | + # proxy_port: 8080 |
| 52 | + # proxy_user: |
| 53 | + # proxy_pass: |
| 54 | + |
| 55 | + # Tells transaction tracer and error collector (when enabled) |
| 56 | + # whether or not to capture HTTP params. When true, frameworks can |
| 57 | + # exclude HTTP parameters from being captured. |
| 58 | + # Rails: the RoR filter_parameter_logging excludes parameters |
| 59 | + capture_params: false |
| 60 | + |
| 61 | + # Transaction tracer captures deep information about slow |
| 62 | + # transactions and sends this to the OneApm service once a |
| 63 | + # minute. Included in the transaction is the exact call sequence of |
| 64 | + # the transactions including any SQL statements issued. |
| 65 | + transaction_tracer: |
| 66 | + |
| 67 | + # Transaction tracer is enabled by default. |
| 68 | + enabled: true |
| 69 | + |
| 70 | + # Threshold in seconds for when to collect a transaction |
| 71 | + # trace. When the response time of a controller action exceeds |
| 72 | + # this threshold, a transaction trace will be recorded and sent to |
| 73 | + # OneApm. Valid values are any float value, or (default) "apdex_f", |
| 74 | + # which will use the threshold for an dissatisfying Apdex |
| 75 | + # controller action - four times the Apdex T value. |
| 76 | + transaction_threshold: apdex_f |
| 77 | + |
| 78 | + # When transaction tracer is on, SQL statements can optionally be |
| 79 | + # recorded. The recorder has three modes, "off" which sends no |
| 80 | + # SQL, "raw" which sends the SQL statement in its original form, |
| 81 | + # and "obfuscated", which strips out numeric and string literals. |
| 82 | + record_sql: obfuscated |
| 83 | + |
| 84 | + # Threshold in seconds for when to collect stack trace for a SQL |
| 85 | + # call. In other words, when SQL statements exceed this threshold, |
| 86 | + # then capture and send to OneApm the current stack trace. This is |
| 87 | + # helpful for pinpointing where long SQL calls originate from. |
| 88 | + stack_trace_threshold: 0.200 |
| 89 | + |
| 90 | + # Determines whether the agent will capture query plans for slow |
| 91 | + # SQL queries. Only supported in mysql and postgres. Should be |
| 92 | + # set to false when using other adapters. |
| 93 | + # explain_enabled: true |
| 94 | + |
| 95 | + # Threshold for query execution time below which query plans will |
| 96 | + # not be captured. Relevant only when `explain_enabled` is true. |
| 97 | + # explain_threshold: 0.5 |
| 98 | + |
| 99 | + # Error collector captures information about uncaught exceptions and |
| 100 | + # sends them to OneApm for viewing |
| 101 | + error_collector: |
| 102 | + |
| 103 | + # Error collector is enabled by default. |
| 104 | + enabled: true |
| 105 | + |
| 106 | + # Ignore the following errors, add your own. |
| 107 | + ignore_errors: "ActionController::RoutingError,Sinatra::NotFound,Mongoid::Errors::DocumentNotFound,ActionController::BadRequest,ActionView::MissingTemplate,ActionController::UnknownFormat" |
| 108 | + |
| 109 | +# ===================== Application Environments ======================== |
| 110 | +# Environment-specific settings are in this section. |
| 111 | +# For Rails applications, RAILS_ENV is used to determine the environment. |
| 112 | + |
| 113 | +# NOTE if your application has other named environments, you should |
| 114 | +# provide oneapm configuration settings for these environments here. |
| 115 | + |
| 116 | +development: |
| 117 | + <<: *default_settings |
| 118 | + # Turn on communication to OneApm service in development mode |
| 119 | + monitor_mode: true |
| 120 | + app_name: Ruby China (Development) |
| 121 | + |
| 122 | +test: |
| 123 | + <<: *default_settings |
| 124 | + monitor_mode: false |
| 125 | + |
| 126 | +# Turn on the agent in production for 24x7 monitoring. |
| 127 | +production: |
| 128 | + <<: *default_settings |
| 129 | + monitor_mode: true |
| 130 | + |
| 131 | +# Staging environment which behaves identically to production. |
| 132 | +staging: |
| 133 | + <<: *default_settings |
| 134 | + monitor_mode: true |
| 135 | + app_name: Ruby China (Staging) |
0 commit comments