Class: SimpleApm::Setting
- Inherits:
-
Object
- Object
- SimpleApm::Setting
- Defined in:
- lib/simple_apm/setting.rb
Constant Summary collapse
- ApmSettings =
YAML.load(IO.read("config/simple_apm.yml")) rescue {}
- REDIS_URL =
ApmSettings['redis_url'].presence || 'redis://localhost:6379/0'
- REDIS_DRIVER =
nil , hiredis …
ApmSettings['redis_driver']
- SLOW_ACTIONS_LIMIT =
最慢的请求数存储量
ApmSettings['slow_actions_limit'].presence || 500
- ACTION_SLOW_REQUEST_LIMIT =
每个action存最慢的请求量
ApmSettings['action_slow_request_limit'].presence || 20
- APP_NAME =
区分项目显示
ApmSettings['app_name'].presence || 'app'
- SQL_CRITICAL_TIME =
SQL临界值
ApmSettings['sql_critical_time'].to_f
- EXCLUDE_ACTIONS =
t.is_a?(Array) ? t : [t]