![]() If there is still space, you receive all the logs for transaction 2, and so on. ![]() If transaction 1 has less than 10,000 logs you receive all logs for transaction 1. ![]() For example, if logging max_samples_stored is set to 10,000 and transaction 1 has 10,000 log entries, only log entries for transaction 1 will be recorded. Some logs may not be included because they are limited by max_samples_stored. Logs that occur outside of a transaction will receive a random priority. Set this to a higher value to send more log lines.Įach log receives the same priority as its associated transaction. Set this to a lower value to reduce the amount of log lines sent (may cause log sampling). ![]() Controls the overall memory consumption when using log forwarding. Number of log records to send per minute to New Relic. NEW_RELIC_APPLICATION_LOGGING_FORWARDING_MAX_SAMPLES_STORED Here are detailed descriptions of each configuration method: The config file overrides the agent defaults. Environment variables override the agent config file. Node.js configuration hierarchy: Server-side configuration settings override environment variables. The Node.js agent uses this order of precedence for configuration methods: You can also adjust some settings with server-side configuration. You can also configure most settings with environment variables. The primary method to configure the Node.js agent is the agent configuration file ( newrelic.js). Also, we highly recommend setting the app_name so that your app has a meaningful name instead of the default My Application. You'll be able to configure our Node.js agent to suit your environment after you create a New Relic account (it's free, forever) and install the Node.js agent. You can also configure a few options from New Relic, or use the Node.js agent API. The config file resides in the root directory of your app. You can tailor the Node.js agent to your app's requirements by editing your newrelic.js config file or by setting an environment variable.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
February 2023
Categories |