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

Node.js agent release notesRSS

May 20, 2019
Node.js agent v5.9.0

New Features

  • serverless_mode feature flag is now enabled by default.
  • Added instrumentLoadedModule method to the API, allowing end-users to manually apply an instrumentation to a loaded module. Useful for cases where some module needs to be loaded before newrelic

Improvements

  • Removed older versions of Cassandra from versioned tests
  • For debug/test runs, shimmer will now cleanup the __NR_shim property on instrumented methods. This leftover property did not result in any negative behaviors but cleaning up for thoroughness and to prevent potential confusion.
  • Fixes recordMiddleware promise parenting for certain cases where child segments are created within resolving middleware next() promises.

May 6, 2019
Node.js agent v5.8.0

New Features

  • Modifies MiddlewareSpec route property to allow functions. Defers route processing and segment naming until just before needed (each middleware invocation).

Improvements

  • Fixed outdated license ref in package.json.
  • Middleware instrumentation now honors spec.appendPath for more cases and will not pop paths when it has not appended a path.

April 24, 2019
Node.js agent v5.7.0

New Features

  • Added getStatusName to NameState.

    Now web transactions will be named after known status code messages (404, 405, and 501).

  • Added appendPath option to MiddlewareSpec.

Improvements

  • Broke apart integration script test globs.

April 23, 2019
Node.js agent v4.13.1

Fixes

  • Fixed bug where agent would stop sending data to New Relic servers when a connectivity issue was encountered.
  • The agent will no longer crash the process in the event of unexpected calls to the harvest callback.

April 16, 2019
Node.js agent v5.6.4

Bug fixes

  • Refactored config to log warning and disable distributed tracing if enabled in serverless mode, but missing required config setting.
  • Serverless mode no longer sets different data collection limits.
  • The agent will no longer crash the process in the event of unexpected calls to the harvest callback.
  • Updated required config values when using distributed tracing in serverless_mode to only include account_id.

April 1, 2019
Node.js agent v5.6.3

Bug fixes

  • The agent will now accurately filter out request parameters while operating under CSP or HSM.

    You can find more information about this change in the Security Bulletin.

March 25, 2019
Node.js agent v5.6.2

Improvements

  • Agent now respects attribute type restrictions on trace/segment attributes, as well as error event/trace attributes.

Bug fixes

  • Fixes potential for RangeError: Maximum call stack size exceeded error on Transaction/Trace end.

  • Custom events no longer accept attributes with invalid types.

    The only attribute types accepted by the backend are boolean, string, and number; any attribute assigned to a custom event outside these types would be dropped on ingest. The agent now filters these attributes out, and logs out a helpful message detailing the issue.

March 11, 2019
Node.js agent v5.6.1

Fixes

  • Updated log message for not adding attributes and change the log level to debug.
  • Fixed an issue where exclusive time would be improperly calculated in some cases.

March 4, 2019
Node.js agent v5.6.0

New features

  • Added product attribute to existing datastore instrumentations.
  • Added db.collection to datastore span event attributes.

Improvements

  • trusted_account_key, account_id, and primary_application_id may now be configured via a configuration file while in serverless mode.
  • Optimized exclusive time duration calculator.

Previously, the agent would spend a lot of time sorting redundant arrays while calculating the exclusive time for the segments of a trace. This has been refactored into a single postorder traversal over the tree which will calculate the exclusive time for all segments in the subtree rooted at a given segment.

Fixes

  • Fixed a bug where data belonging to distributed traces starting in the Node.js agent would be prioritized over data produced from traces starting in other language agents. Previously, the agent would use the same random number for both the transaction priority (used for data sampling) and the distributed tracing trace sampling decision (whether to create DT data for a given transaction). This random number reuse resulted in a bias that caused data from distributed traces started in the Node.js agent to be prioritized above data that belongs to distributed traces started in other language agents. The agent now makes individual rolls for each of these quantities (i.e. the transaction priority and trace sampling decision), eliminating the bias.
  • Prevent a split on undefined location under certain conditions in Memcached.

February 19, 2019
Node.js agent v5.5.0

New features

  • Added SNS to message shim library names.

  • Added check for collect_span_events in config sent from the server on connect.

    Collection of span events can be disabled from the server configuration, but not enabled.

Improvements

  • Refactored Segment#toJSON to be more readable.

  • Added a try/catch to config initialization to safely handle invalid setting combinations.

    When an error is caught the agent is marked as disabled, which ultimately returns a stub API and keeps the process running.

  • String truncation is now done using a binary search over the byte length of the string.

    Previously this truncation was done using a linear search for the proper byte length.

  • Optimized segment and span attribute filtering.

Fixes

  • Fixed issue where shim.createSegment() could result in modifying the parent when opaque.

  • Fixed issue where http-outbound would modify parent segments when parent is opaque.

  • Moved processing of exclusive time attribute out of toJSON and into finalize to only be calculated once.

    Previously, serializing a segment would result in calculating and caching exclusive time which could result in issues if serialized prior to ending.

Copyright © 2025 New Relic Inc.

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