• /
  • EnglishEspañolFrançais日本語한국어Português
  • EntrarComeçar agora

Node.js agent distributed tracing settings

|View as Markdown (English)

This page covers the Node.js agent settings for distributed tracing, including W3C trace context headers, sampling controls, span events, Infinite Tracing, and gRPC server instrumentation.

Dica

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

Cross application tracing (DEPRECATED)

The Node.js agent variables that control cross application tracing typically appear in the cross_application_tracer section of your app's newrelic.js configuration file:

Importante

Cross application tracing has been deprecated in favor of Distributed tracing and will be removed in a future agent version.

Importante

Cross application tracing (CAT) has been deprecated and will be removed in a future major release. For cross-service visibility, we recommend using distributed tracing, which is enabled by default as of agent version 8.3.0. Before enabling, read the transition guide.

Distributed tracing

Distributed tracing lets you see the path that a request takes as it travels through a distributed system. When configuring via the config file, place the following option in the distributed_tracing section. It is turned on by default in Node.js agents 8.3.0 and higher.

Importante

Enabling distributed tracing disables cross application tracing, and has effects on other APM features. Before enabling, read the transition guide. Requires Node.js agent version 4.7.0 or higher.

For more information about setting up distributed tracing, see Enable distributed tracing for your Node.js applications.

gRPC server instrumentation

The grpc section controls the behavior of how the gRPC server is instrumented.

Span events

Span data is reported for distributed tracing. Distributed tracing must be enabled to report spans. Set span configuration in the span_events section. Options include:

Infinite Tracing

To turn on Infinite Tracing, add the settings below. Set Infinite Tracing configuration in the infinite_tracing section. Additionally, distributed tracing must be enabled. Note that distributed tracing is enabled by default for Node.js APM agent versions 8.3.0 and greater.

Copyright © 2026 New Relic Inc.

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