Skip to content

Commit

Permalink
chore(ilc): revert file
Browse files Browse the repository at this point in the history
  • Loading branch information
Volodymyr Malyhin committed Oct 3, 2024
1 parent 9a5c593 commit 1c47500
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions ilc/newrelic.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
'use strict';

// See: https://docs.newrelic.com/docs/agents/nodejs-agent/installation-configuration/nodejs-agent-configuration

const config = require('config');

exports.config = {
agent_enabled: config.get('newrelic.licenseKey') !== null || config.get('newrelic.standardLicenseKey') !== null,
app_name: [
config.get('newrelic.appName') !== null
? config.get('newrelic.appName')
: `ILC${process.env.NODE_ENV ? '@' + process.env.NODE_ENV : ''}`,
],
license_key: config.get('newrelic.licenseKey') || config.get('newrelic.standardLicenseKey'),
logging: {
level: 'info',
logging: true,
filepath: 'stdout',
},
allow_all_headers: true,
attributes: {
/**
* Prefix of attributes to exclude from all destinations. Allows * as wildcard
* at end.
*
* NOTE: If excluding headers, they must be in camelCase form to be filtered.
*
* @env NEW_RELIC_ATTRIBUTES_EXCLUDE
*/
exclude: [
'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*',
],
},
error_collector: {
ignore_status_codes: [400, 404, 405],
},
rules: {
ignore: ['^/ping$', '^/api/v1/monitor/ping/.*$'],
},
};

0 comments on commit 1c47500

Please sign in to comment.