newrelic-config

Newrelic configurator

newrelic-config

newrelic-config is a newrelic configurator, wrapping node-newrelic. It simplifies the default configuration scheme into a chainable API

Minimal required:

require('newrelic-config')
  .key('<your api key>')
  .name('<your app name>')
  .profile();

Complete example:

require('newrelic-config')
  .key('<your api key>')
  .name('<your app name>')
  .log('/dev/null', 'trace')
  .proxy('localhost', 8080)
  .errors([404, 401])
  .profile();

Set new relic app name

Set new relic license key

Set new relic logging options

  • dest - log destination (file, stderr or stdout)

Set proxy options

  • host - proxy hostname
  • port - proxy port

Enable error tracing

  • ignored - error codes to ignore