Added support for distributed tracing.
Distributed tracing lets you see the path that a request takes as it travels through your distributed system. By showing the distributed activity through a unified view, you can troubleshoot and understand a complex system better than ever before.
Distributed tracing is available with an APM Pro or equivalent subscription. To see a complete distributed trace, you need to enable the feature on a set of neighboring services. Enabling distributed tracing changes the behavior of some New Relic features, so carefully consult the transition guide before you enable this feature.
To enable distributed tracing, set
newrelic.jsfile, or set
NEW_RELIC_DISTRIBUTED_TRACING_ENABLEDin your environment.
Added a warning for too-new versions of Node.js during agent startup.
Appropriately obfuscated SQL statements will now be included in all transaction traces.
Previously, the agent would only include the SQL statements if the corresponding query was sufficiently slow.
Added ability to execute instrumentation functions in the context of the segment the segment descriptor is describing.
record*methods supplied by all instrumentation shim classes now allow for a function to be executed under the context of the segment the record call will produce. This may be done by supplying a function in the
inContextkey for the segment descriptor passed to the record method.
Reservoirs will now respect setting their size to 0.
Node.js agent v4.7.0
July 31, 2018