• /
  • EnglishEspañolFrançais日本語한국어Português
  • Log inStart now

Node.js agent v13.7.0

December 8, 2025Download

Notes

Features

  • Updated koa instrumentation to properly wrap Router when using @koa/router@15.0.0+ (#3550) (f1e08ad)
  • Added ability to configure a ratio based sampler (#3501) (f300bd5)
    • To assign a ratio based sampler, set config.distributed_tracing.sampler.root, config.distributed_tracing.sampler.remote_parent_sampled, or config.distributed_tracing.sampler.remote_parent_not_sampled to { trace_id_ratio_based: { ratio: <float between 0 and 1> }}
    • To assign via environment variables set NEW_RELIC_DISTRIBUTED_TRACING_SAMPLER_<TYPE>='trace_id_ratio_based' and NEW_RELIC_DISTRIBUTED_TRACING_SAMPLER_<TYPE>_RATIO=<float between 0 and 1> where <TYPE> is one of ROOT, REMOTE_PARENT_SAMPLED, or REMOTE_PARENT_NOT_SAMPLED
  • Updated configuration to allow adaptive.sampling_target to be set for config.distributed_tracing.sampler.root, config.distributed_tracing.sampler.remote_parent_sampled, and config.distributed_tracing.sampler.remote_parent_not_sampled (#3532) (44f51dd)
  • Added support for OTEL span links (#3528) (e840690)
  • Replaced default with adaptive as the default for samplers (#3543) (3f03162)
  • Preliminary support for partial granularity traces (Not available for production use)
    • Added essential type for partial granularity traces (#3547) (3d85fb5)
    • Added reduced type for partial granularity traces. (#3540) (cfa8f41)
    • Added partial granularity samplers and assign transactions with isPartialTrace when partial granularity sampling decisions have been made (#3544) (1535a82)
    • Refactored samplers into classes and store them on agent.sampler.* (#3527) (ad63441)
    • Updated Samplers class to normalize logger messages, short circuit when applicable and remove optional chaining checks (#3546) (4f7684c)
    • Updated samplers to assign priority between 0-1 when DT is disabled or both full and partial granularity are disabled (#3559) (7a1c37e)
    • Updated transaction to store partial granularity indicator as .partialType (#3561) (a7f20d8)
    • Updated when partial granularity rules are applied (#3553) (a4bdf4f)
    • Added toString and get [Symbol.toStringTag]() to default Sampler class (#3562) (771168d)

Bug fixes

Documentation

Miscellaneous chores

  • Improved logging around preconnect payload
    • Added more logging around assigning hostname during preconnect (#3568) (3ee4d38)
    • Improved GCP utilization logging (#3552) (e6c4141)
  • Utilization resolution is now done concurrently (#3556) (8386360)
  • Collected OTEL instrumentation scope metadata on all OTEL spans. (#3554) (75703c4)
  • Improved OTEL hrtime processing (#3557) (8f187b1)
  • Renamed config opentelemetry_bridge to opentelemetry (#3565) (c9d156f)

Support statement:

We recommend updating to the latest agent version as soon as it's available. If you can't upgrade to the latest version, update your agents to a version no more than 90 days old. Read more about keeping agents up to date. (https://docs.newrelic.com/docs/new-relic-solutions/new-relic-one/install-configure/update-new-relic-agent/)

See the New Relic Node.js agent EOL policy for information about agent releases and support dates. (https://docs.newrelic.com/docs/apm/agents/nodejs-agent/getting-started/nodejs-agent-eol-policy/)

Copyright © 2025 New Relic Inc.

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