• /
  • EnglishEspañolFrançais日本語한국어Português
  • Inicia sesiónComenzar ahora

Node.js agent other settings

|View as Markdown (English)

These settings cover additional Node.js agent configuration options including cloud provider variables, API configuration, event sampling, custom parameters, URL obfuscation, security, hosting services, and more.

Sugerencia

Back to the full settings index: Node.js agent configuration

Cloud variables

This section defines the Node.js agent variables to create a relationship between cloud providers and APM applications.

Audit logging

This section defines the Node.js agent variables in the order they typically appear in the audit_log: { section of your app's newrelic.js configuration file.

API configuration

This section allows you to choose which API methods are enabled. Each configuration option allows you to modularly enable API methods that are responsible for sending custom information to New Relic.

Importante

All of these are set to false when the agent is in high-security mode.

Rules variables

This section defines the Node.js agent variables in the order they typically appear in the rules: { section of your app's newrelic.js configuration file.

Transaction events variables

This section defines the Node.js agent variables in the order they typically appear in the transaction_events: { section of your app's newrelic.js configuration file.

Custom events variables

This section defines the Node.js agent variables in the order they typically appear in the custom_insights_events: { section of your app's newrelic.js configuration file.

Custom hostname variables

This section defines the Node.js agent variables in the order they typically appear in the process_host: { section of your app's newrelic.js configuration file. These options control behavior regarding the host display name in the APM UI.

Error message redaction variables

The Node.js agent variables that control error message redaction appear in the strip_exception_messages section of your app's newrelic.js configuration file:

Code level metrics

The code-level metrics configuration settings require Node.JS agent version 9.7.5 or higher.

For more details, see our code-level metrics docs.

Errors inbox configuration

Setting one of the following tags will help you identify which versions of your software are producing the errors.

  • NEW_RELIC_METADATA_SERVICE_VERSION will create tags.service.version on event data containing the version of your code that is deployed, in many cases a semantic version such as 1.2.3, but not always.
  • NEW_RELIC_METADATA_RELEASE_TAG will create tags.releaseTag on event data containing the release tag (such as v0.1.209 or release-209).
  • NEW_RELIC_METADATA_COMMIT will create tags.commit on event data containing the commit sha. The entire sha can be used or just the first seven characters (e.g., 734713b).

Url obfuscation

The url obfuscation configuration settings require Node.js agent version 9.9.0 or higher.

For a configuration example, see our documentation for the node agent url obfuscation.

Security Agent

New Relic Security agent interactive applications security testing(IAST) tests your applications for any exploitable vulnerability by replaying the generated HTTP request with vulnerable payloads.

Advertencia

Run IAST with non-production deployments only to avoid exposing vulnerabilities on your production software.

Importante

The security agent configuration settings require Node.js agent version 10.3.0 or higher.

Heroku

Worker Threads

In agent versions prior to 11.0.0, the agent ran in both main and worker threads. In version 11.0.0 the agent stopped running in worker threads due to its incompatibility with our async context propagation. The ability to run in worker threads was restored in version 11.3.0 but you must set worker_threads.enabled to true. The behavior of running in the worker threads varies and we do not officially support it. Some things like metrics generation, and self contained transaction traces may work but this is a use at your own risk capability.

Utilization

Configure how the agent detects host and cloud environment information to accurately calculate your utilization-based pricing. These settings appear in the utilization section of your app's newrelic.js configuration file.

OpenTelemetry

These settings govern the various OpenTelemetry-based features provided by the agent. They appear in the opentelemetry section of your app's newrelic.js configuration file.

Importante

This configuration is subject to change while the OpenTelemetry feature set is in development.

Apollo Server instrumentation

These settings customize the behavior of the agent's Apollo Server (GraphQL) instrumentation. They appear in the apollo_server section of your app's newrelic.js configuration file.

Environment variable overrides

This section defines two configuration options only available with environment variables. These overrides are not used in most configurations.

Environment variable type reference guide

This section describes how to properly format the complex data types.

Copyright © 2026 New Relic Inc.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.