mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-26 12:21:36 +03:00
e6ef88fc68
refs https://github.com/TryGhost/DevOps/issues/66 - this allows us to enable New Relic within Ghost by providing some sane defaults
54 lines
1.6 KiB
JavaScript
54 lines
1.6 KiB
JavaScript
const config = require('./core/shared/config');
|
|
|
|
exports.config = {
|
|
app_name: ['Ghost'],
|
|
license_key: config.get('newRelic:licenseKey'),
|
|
labels: {
|
|
env: process.env.PRO_ENV || 'unknown',
|
|
site: config.get('hostSettings:siteId')
|
|
},
|
|
// Agent only imported when enabled, but this will further cement that
|
|
agent_enabled: config.get('newRelic:enabled'),
|
|
distributed_tracing: {
|
|
enabled: true
|
|
},
|
|
logging: {
|
|
level: 'info'
|
|
},
|
|
slow_sql: {
|
|
// Default is false.
|
|
enabled: true,
|
|
// Default is 10. Increasing this limit increases memory usage
|
|
// Defines the maximum number of slow queries the agent collects per minute.
|
|
// The agent discards additional queries after the limit is reached.
|
|
max_samples: 10
|
|
},
|
|
error_collector: {
|
|
ignore_classes: [
|
|
// @NOTE: add more error classes to ignore here
|
|
'ValidationError',
|
|
'NoPermissionError'
|
|
]
|
|
},
|
|
transaction_tracer: {
|
|
enabled: true,
|
|
record_sql: 'obfuscated'
|
|
},
|
|
allow_all_headers: true,
|
|
attributes: {
|
|
exclude: [
|
|
// Default exclusions (TODO: add more!):
|
|
'request.headers.cookie',
|
|
'request.headers.authorization',
|
|
'request.headers.proxyAuthorization',
|
|
'request.headers.setCookie*',
|
|
'request.headers.x*',
|
|
'response.headers.cookie',
|
|
'response.headers.authorization',
|
|
'response.headers.proxyAuthorization',
|
|
'response.headers.setCookie*',
|
|
'response.headers.x*'
|
|
]
|
|
}
|
|
};
|