Notes
⚠ BREAKING CHANGES
This version of the Node.js agent is a SemVer MAJOR update and contains the following breaking changes. MAJOR versions may drop support for language runtimes that have reached End-of-Life according to the maintainer. Additionally, MAJOR versions may drop support for and remove certain instrumentation. For more details on these changes please see the migration guide.
- Dropped support for Node.js 20
- Migrated
@apollo/severinstrumentation from a plugin(@newrelic/apollo-server-plugin) to traditional instrumentation - Removed Cross Application Tracing(CAT) functionality
- Removed support for License, Application, and Security Policies(LASP)
- Removed instrumentation for
koa-route - Removed instrumentation for
koa-router - Removed
shim.prefixRouteParametersas the logic was previously moved to when a transaction ends - Removed creating
MySQL Pool#querysegments - Removed
shim.argsToArray - Updated minimum supported version of
@nestjs/cliand@nestjs/coreto10.0.0 - Updated minimum supported version of
nextto 14 - Updated minimum supported version of
bluebirdto3.0.0 - Updated minimum supported version of
mysql2to3.0.0 - Updated minimum supported version for
cassandra-driverto4.0.0 - Dropped support for
fastify3.x - Updated
config.distributed_tracing.exclude_newrelic_headerto be set totrueby default
Features
- Dropped support for
fastify3.x (#3980) (720979b) - Dropped support for Node.js 20 (#3980) (5306223)
- Migrated
@apollo/severinstrumentation from a plugin(@newrelic/apollo-server-plugin) to traditional instrumentation (#3980) (736e0a4) - Removed
shim.argsToArray(#3980) (9183d29) - Removed
shim.prefixRouteParametersas the logic was previously moved to when a transaction ends (#3980) (9f1408e) - Removed creating
MySQL Pool#querysegments (#3980) (1d5a6dd) - Removed Cross Application Tracing(CAT) functionality (#3980) (a87ed4d)
- Removed instrumentation for
koa-route(#3980) (40c10d9) - Removed instrumentation for
koa-router(#3980) (038ecc7) - Removed support for License, Application, and Security Policies(LASP) (#3980) (bc09485)
- Updated
config.distributed_tracing.exclude_newrelic_headerto be set totrueby default (#3980) (774ce08) - Updated minimum supported version for
cassandra-driverto4.0.0(#3980) (419337a) - Updated minimum supported version of
@nestjs/cliand@nestjs/coreto10.0.0(#3980) (120e6de) - Updated minimum supported version of
bluebirdto3.0.0(#3980) (369f920) - Updated minimum supported version of
mysql2to3.0.0(#3980) (2861406) - Updated minimum supported version of
nextto 14 (#3980) (80c5c0c)
Code refactoring
- Updated how exclusive time and trace total time is calculated (#3980) (b227ed6)
- Updated instances of
tracer.bindFunctionwithtracer.runInContextto improve performance in hot paths (#3811) (5d77085)
Documentation
Miscellaneous chores
- Removed
huskyin lieu of git hooks, added security hardened options tonpm install(#3988) (e3a7dda) - Updated production dependencies to the latest (#3996) (b710bac)
Tests
- Added
minSupportedto the nest js versioned tests package.json to ensure the compatibility report will show we support@nestjs/core(#3982) (bfa4aa1) - Added prisma 7 tests (#3980) (116ee9c)
- Moved versioned test runner code from
@newrelic/test-utiltiesto agent (#3980) (d4f9a0c) - Removed
@newrelic/test-utilities(#3980) (1751147) - Decrease smoke-like esm tests' sample size (#3986) (40669fb)
- Fixed
test/lib/get-package-version.js(#3993) (5d31f08) - Fixed version lookup issue in aws-sdk-v3 tests (#3992) (7be3f4a)
- Restructure
aws-sdk-v3test runner to usegroupedDependencies(#3984) (fc67490) - Updated a few versioned test stanzas to reduce the number of combinations it runs (#3991) (d606305)
Continuous integration
- Added
contents: writetopost-releaseto allow commit/push of api docs (#3978) (90c4e61) - Updated remaining actions so they are running on Node 24 (#3980) (ea21934)
- Updated version of
actions/download-artifactto v8 (#3980) (54a58b9) - Updated versions of actions to ensure they are running on node 24 (#3980) (6302002)
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/)
Notes
Features
- Added instrumentation for Google ADK
BaseAgent.runAsync(#3905) (c6c51d5) - Instrument Google ADK
FunctionTool.runAsync(#3935) (57f9ed7) - Updated
@azure/functionsinstrumentation to subscriber type (#3915) (227e779) - Updated how license keys are redacted in logs (#3945) (6289502)
Bug fixes
- Updated
connectinstrumentation queries to handle file restructure in<3.4.0(#3923) (00b615c) - Updated
tracer.bindFunctionto touch segment if a promise is fulfilled or rejected (#3967) (712db61) - Updated aws sdk v3 instrumentation to handle using
@smithy/smithy-client4.13.0+ (#3965) (5e0fe24)
Code refactoring
- Removed reliance on
AsyncLocalStorage.enterWithfor undici, domain andprocess._fatalExceptioninstrumentation (#3894) (612b449)
Documentation
Miscellaneous chores
- Added log line when
max_trace_segmentsis hit (#3933) (46b9238) - Comment out
assertSegmentDurationforclient-dynamodbtest (#3972) (590cd3e) - Fix issue with amqplib tests (#3969) (a770000)
- Refactored Connect instrumentation to subscriber type (#3912) (e5d87b7)
- Refactored kafkajs instrumentation to subscriber type (#3958) (72e383c)
- Remove
actualTimevssegmentDurationassertion inmemcachedtests (#3932) (98c50e0) - Updated
@apm-js-collab/tracing-hooksto0.7.0(#3949) (5c99cd1)
Tests
Continuous integration
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/)
Notes
Bug fixes
- Fixed
child_processinstrumentation to avoid leaking event handlers subscribed toonce(#3907) (ad0b1f6)
Documentation
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/)
Notes
Bug fixes
Tests
- Updated
minAgentVersionfor Anthropic versioned tests (#3900) (e1f6c32) - Reorganized the test utilities in AWS versioned tests (#3895) (3025571)
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/)
Notes
Features
- Added instrumentation support for
@anthropic-ai/sdk(#3881) (e8713bb) - Updated OTel DB attributes to stable names from semantic conventions 1.40.0 (#3826) (6d3000d)
- Added distributed tracing propagation to SNS (#3893) (8fc1144)
Code refactoring
- Refactor
@aws-sdkv3 instrumentation to subscribe to events emitted- Added
@aws-sdk/smithy-clientsubscriber (#3877) (0e350fc) - Added
@smithy/smithy-clientsendsubscriber with AWS Bedrock Middleware (#3864) (5e0a6d1) - Moved generic AWS
Clientmiddleware to subscriber (#3889) (3cb1e1b) - Updated
aws-sdk/dynamodbinstrumentation to a subscriber middleware (#3891) (ff677a2) - Updated aws sdk v3 instrumentation to split out bedrock utilities from actual wrapped middleware (#3883) (eed340e)
- Updated Lambda instrumentation to a subscriber middleware (#3890) (12f8284)
- Refactored SNS instrumentation to subscriber type (#3876) (b9f3326)
- Refactored SQS instrumentation to subscriber type (#3880) (de46dee)
- Added
- Refactored
LlmErrorMessageto use vendor-specific subclasses (#3882) (5b0fd2b) - Refactored
amqplibto use message broker constants (#3879) (77621fb)
Documentation
Miscellaneous chores
- Updated
@apm-js-collab/tracing-hooksto0.6.0(#3884) (f6ef470) - Updated Undici tests to cover version 8 (#3896) (f27e75f)
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/)
Notes
Features
Code refactoring
- Refactored
wheninstrumentation to subscribe to events emitted (#3866) (1b55c5a) - Refactored
memcachedinstrumentation to subscribe to events emitted (#3849) (915b320) - Refactored
bluebirdinstrumentation to subscribe to events emitted (#3858) (e3d84c2) - Refactored
qinstrumentation to subscribe to events emitted (#3853) (9fdb0b8) - Refactored
grpc-jsclient instrumentation to subscriber type (#3856) (057fca2) - Refactored
grpc-jsserver instrumentation to subscriber type (#3805) (ca3010a) - Updated
@langchain/coresubscribers to properly instrument the tool class methods (#3850) (2d17eed)
Documentation
Miscellaneous chores
Tests
- Removed unused context manager feature flag for running versioned tests (#3851) (15c9757)
- Updated core tracing cross agent tests (#3860) (08e4570)
- Fixed issue with span links test (#3863) (23a8594)
- Removed segment duration timing threshold in
memcachedtests (#3869) (bd24410)
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/)
Notes
Features
- Added support for Continuous Profiling (#3834) (6d8d5b5)
- Added server-side configuration for
profiling.enabled(#3790) (0d44e5b) (#3847) (e57223c) - Added delay + duration to
ProfilingAggregator(#3815) (8000665) - Added supportability metrics for profiling (#3801) (19bbb7e)
- Prevented ProfilingAggregator from running in serverless mode (#3806) (e4db0f4)
- Disabled
profiling.enabledwhen high security mode is enabled (#3803) (9d4eebb) - Added Heap profiler (#3751) (8262f6b)
- Added Cpu Profiler (#3747) (2c2097f)
- Added server-side configuration for
Note: Continuous Profiling UI is coming soon! While the Node.js agent now supports Continuous Profiling data collection, the visualization experience will debut in Limited Preview starting next week. If you would like to get early access to the profiling dashboards and UI features, please reach out to your Account Executive (AE) about how to opt-in to the preview.
Code refactoring
Documentation
Tests
- Added segment duration tests for
ioredis/iovalkey(#3825) (9738bc8) - Added segment duration timing tests for
mysql2(#3820) (bb424ff) - Changed structure of bedrock tests to avoid getting instrumented core libraries from first test (#3838) (886a36c)
- Changed structure of lambda and sns tests to avoid getting instrumented core libraries from first test (#3836) (414044d)
- Updated
@aws-sdk/lib-dynamodbversion range (#3829) (d28c938)
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/)
Notes
Bug fixes
- Updated
@apm-js-collab/tracing-hooksto0.5.0, to allow instrumentation on windows environments. (#3819) (d8f6d0f)- This version of
@apm-js-collab/tracing-hooksincludes the windows path fix for@apm-js-collab/code-transformer, see.
- This version of
Code refactoring
Documentation
Tests
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/)
Notes
Features
- Added
time_to_first_tokenforLlmChatCompletionSummary(#3781) (737f374) - Added
time_to_first_tokenfor AWS Bedrock (#3804) (a993b00) - Added
time_to_first_tokenfor Google Gen AI (#3785) (d90ee70) - Added
time_to_first_tokenfor OpenAI (#3782) (07cfd57)
Code refactoring
Documentation
- Updated compatibility report (#3800) (5228cdc) (#3795) (1d6fe52) (#3791) (e79db5b) (#3777) (12fe4c6)
Miscellaneous chores
- Added version comment for agent-metadata.yml (#3779) (1267293)
- Refactored nestjs instrumentation to subscriber type (#3792) (f7feb25)
- Removed
@langchain/corepeer dep from langchain openai and aws tests (#3788) (e670bb1) - Removed unneccessary
generic-poolcontext propagation (#3786) (bdd35fb) - Removed unnecessary
superagentcontext propagation (#3798) (81650e1) - Updated
@apm-js-collab/tracing-hooksto0.4.0(#3787) (d85fb2b) - Updated version format in agent-metadata.yml (#3778) (61759e9)
Tests
- Updated langchain vectorstore tests to use a custom vectorstore to simplify the testing process (#3793) (0fd9b54)
- Updated version range for langgraph tests (#3794) (e02ce99)
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/)
Notes
Features
- Added ability to delay the start of the Profiler and run for n milliseconds before shutting down. (#3758) (8503d25)
- Added functionality to ingest logs from Azure Functions App automatically (#3772) (0c70ba2)
- Added support for error causes (#3769) (7c5aae3)
Bug fixes
- Updated
@google/genaisubscriber to handle the newembedContentInternalmethod in 1.42.0 (#3771) (e96c974)
Code refactoring
- AWS Bedrock llm events refactor (#3759) (7ff953d)
- Google Gen AI LLM event refactor (#3748) (f1e3a0e)
- LangGraph LlmAgent event, remove old LlmEvent base (#3761) (39d1d9a)
- Updated the reparenting logic for compact mode of partial traces to assign parent id to entry span (#3768) (5196318)
Documentation
Miscellaneous chores
- Added API key to enable support for GH action (#3760) (a521e80)
- Added call to agent metadata workflow - step 1 (#3750) (90eeaec)
- Added span id to all debug/trace level logs in
span.applyPartialTraceRules(#3766) (8c57230) - Renamed file and fix cache output (#3757) (1ac00ea)
- Set up metadata action to run with releases (#3762) (66efb13)
- Updated
@langchain/coreversion for langchain-openai tests (#3763) (c27213e)
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/)