newrelic.js 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. 'use strict'
  2. /**
  3. * New Relic agent configuration.
  4. *
  5. * See lib/config/default.js in the agent distribution for a more complete
  6. * description of configuration variables and their potential values.
  7. */
  8. exports.config = {
  9. /**
  10. * Array of application names.
  11. */
  12. app_name: ['Farhang 3'],
  13. /**
  14. * Your New Relic license key.
  15. */
  16. license_key: 'e202034cea46b17dc69b1ca39f47e2c24f8020ee',
  17. logging: {
  18. /**
  19. * Level at which to log. 'trace' is most useful to New Relic when diagnosing
  20. * issues with the agent, 'info' and higher will impose the least overhead on
  21. * production applications.
  22. */
  23. level: 'info'
  24. },
  25. /**
  26. * When true, all request headers except for those listed in attributes.exclude
  27. * will be captured for all traces, unless otherwise specified in a destination's
  28. * attributes include/exclude lists.
  29. */
  30. allow_all_headers: true,
  31. attributes: {
  32. /**
  33. * Prefix of attributes to exclude from all destinations. Allows * as wildcard
  34. * at end.
  35. *
  36. * NOTE: If excluding headers, they must be in camelCase form to be filtered.
  37. *
  38. * @env NEW_RELIC_ATTRIBUTES_EXCLUDE
  39. */
  40. exclude: [
  41. 'request.headers.cookie',
  42. 'request.headers.authorization',
  43. 'request.headers.proxyAuthorization',
  44. 'request.headers.setCookie*',
  45. 'request.headers.x*',
  46. 'response.headers.cookie',
  47. 'response.headers.authorization',
  48. 'response.headers.proxyAuthorization',
  49. 'response.headers.setCookie*',
  50. 'response.headers.x*'
  51. ]
  52. }
  53. }