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
ํน์ง
- Google ADK
BaseAgent.runAsync์ ๋ํ ๊ณ์ธก์ ์ถ๊ฐํ์ต๋๋ค (#3905) (c6c51d5) - Google ADK
FunctionTool.runAsync๊ณ์ธกํ๋ค (#3935) (57f9ed7) @azure/functions๊ณ์ธก์ ๊ตฌ๋ ์ ์ ํ์ผ๋ก ์ ๋ฐ์ดํธํ์ต๋๋ค (#3915) (227e779)- ๋ก๊ทธ์์ ๋ผ์ด์ ์ค ํค๊ฐ ๋ง์คํน๋๋ ๋ฐฉ์์ ์ ๋ฐ์ดํธํ์ต๋๋ค (#3945) (6289502)
๋ฒ๊ทธ ์์
<3.4.0์ ํ์ผ ์ฌ๊ตฌ์ฑ์ ์ฒ๋ฆฌํ๋๋กconnect๊ณ์ธก ์ฟผ๋ฆฌ๋ฅผ ์ ๋ฐ์ดํธํ์ต๋๋ค (#3923) (00b615c)- ํ๋ก๋ฏธ์ค๊ฐ ์ดํ๋๊ฑฐ๋ ๊ฑฐ๋ถ๋ ๋ ์ธ๊ทธ๋จผํธ๋ฅผ ํฐ์นํ๋๋ก
tracer.bindFunction์(๋ฅผ) ์ ๋ฐ์ดํธํ์ต๋๋ค (#3967) (712db61) @smithy/smithy-client4.13.0+ ์ฌ์ฉ์ ์ฒ๋ฆฌํ๋๋ก AWS SDK v3 ๊ณ์ธก์ ์ ๋ฐ์ดํธํ์ต๋๋ค. (#3965) (5e0fe24)
์ฝ๋ ๋ฆฌํฉํ ๋ง
- undici, ๋๋ฉ์ธ ๋ฐ
process._fatalException๊ณ์ธก์ ๋ํAsyncLocalStorage.enterWith์์กด์ฑ์ ์ ๊ฑฐํ์ต๋๋ค (#3894) (612b449)
์ ์ ์๋ฅ ๋น์น
์ก์ผ
max_trace_segments์ ๋๋ฌํ ๋ ๋ก๊ทธ ์ค ์ถ๊ฐ (#3933) (46b9238)client-dynamodbํ ์คํธ๋ฅผ ์ํดassertSegmentDuration์ฃผ์ํ (#3972) (590cd3e)- amqplib ํ ์คํธ ๊ด๋ จ ๋ฌธ์ ์์ (#3969) (a770000)
- Connect ๊ณ์ธก์ ๊ตฌ๋ ์ ์ ํ์ผ๋ก ๋ฆฌํฉํฐ๋งํ์ต๋๋ค (#3912) (e5d87b7)
- kafkajs ๊ณ์ธก์ ๊ตฌ๋ ์ ์ ํ์ผ๋ก ๋ฆฌํฉํฐ๋งํ์ต๋๋ค (#3958) (72e383c)
memcachedํ ์คํธ์์actualTimevssegmentDuration์ด์์ ์ ๊ฑฐ (#3932) (98c50e0)@apm-js-collab/tracing-hooks์(๋ฅผ)0.7.0(์ผ)๋ก ์ ๋ฐ์ดํธํ์ต๋๋ค (#3949) (5c99cd1)
ํ ์คํธ
assertSegmentDuration์ปค์คํ ์ด์ค์ ์ ์ถ๊ฐํ๊ณmemcachedํ ์คํธ์ ์ถ๊ฐํ์ต๋๋ค (#3875) (b28d866)
ํตํฉ ์ฐ๊ฒฐ
- CodeQL์ ์ถฉ์กฑํ๊ธฐ ์ํด ๋ชจ๋ ์ํฌํ๋ก์ฐ์ ์ต์ ๊ถํ ๋ชจ๋ธ์ ์ ์ฉํ์ต๋๋ค (#3961) (237d5b9)
์ง์ง ์ฑ๋ช :
์ต์ ์์ด์ ํธ ๋ฒ์ ์ด ์ถ์๋๋ฉด ์ฆ์ ์ ๋ฐ์ดํธํ๋ ๊ฒ์ด ์ข์ต๋๋ค. ์ต์ ๋ฒ์ ์ผ๋ก ์ ๊ทธ๋ ์ด๋ํ ์ ์๋ ๊ฒฝ์ฐ, ์์ด์ ํธ๋ฅผ 90์ผ ์ด๋ด ๋ฒ์ ์ผ๋ก ์ ๋ฐ์ดํธํ์ธ์. ์์ด์ ํธ์๊ฒ ์ต์ ์ ๋ณด๋ฅผ ์ ๊ณตํ๋ ๋ฐฉ๋ฒ์ ๋ํด ์์ธํ ์์๋ณด์ธ์. (https://docs.newrelic.com/docs/new-relic-solutions/new-relic-one/install-configure/update-new-relic-agent/)
์์ด์ ํธ ๋ฆด๋ฆฌ์ค ๋ฐ ์ง์ ๋ ์ง์ ๋ํ ์ ๋ณด๋ ๋ด๋ ๋ฆญ Node.js ์์ด์ ํธ EOL ์ ์ฑ ์ ์ฐธ์กฐํ์ธ์. (https://docs.newrelic.com/docs/apm/agents/nodejs-agent/getting-started/nodejs-agent-eol-policy/)
Notes
๋ฒ๊ทธ ์์
once์(๋ฅผ) ๊ตฌ๋ ํ๋ ์ด๋ฒคํธ ํธ๋ค๋ฌ ๋์๋ฅผ ๋ฐฉ์งํ๋๋กchild_process๊ณ์ธก์ ์์ ํ์ต๋๋ค (#3907) (ad0b1f6)
์ ์ ์๋ฅ ๋น์น
์ง์ง ์ฑ๋ช :
์ต์ ์์ด์ ํธ ๋ฒ์ ์ด ์ถ์๋๋ฉด ์ฆ์ ์ ๋ฐ์ดํธํ๋ ๊ฒ์ด ์ข์ต๋๋ค. ์ต์ ๋ฒ์ ์ผ๋ก ์ ๊ทธ๋ ์ด๋ํ ์ ์๋ ๊ฒฝ์ฐ, ์์ด์ ํธ๋ฅผ 90์ผ ์ด๋ด ๋ฒ์ ์ผ๋ก ์ ๋ฐ์ดํธํ์ธ์. ์์ด์ ํธ์๊ฒ ์ต์ ์ ๋ณด๋ฅผ ์ ๊ณตํ๋ ๋ฐฉ๋ฒ์ ๋ํด ์์ธํ ์์๋ณด์ธ์. (https://docs.newrelic.com/docs/new-relic-solutions/new-relic-one/install-configure/update-new-relic-agent/)
์์ด์ ํธ ๋ฆด๋ฆฌ์ค ๋ฐ ์ง์ ๋ ์ง์ ๋ํ ์ ๋ณด๋ ๋ด๋ ๋ฆญ Node.js ์์ด์ ํธ EOL ์ ์ฑ ์ ์ฐธ์กฐํ์ธ์. (https://docs.newrelic.com/docs/apm/agents/nodejs-agent/getting-started/nodejs-agent-eol-policy/)
Notes
๋ฒ๊ทธ ์์
ํ ์คํธ
- Anthropic ๋ฒ์ ๋ณ ํ
์คํธ๋ฅผ ์ํด
minAgentVersion์ ๋ฐ์ดํธ (#3900) (e1f6c32) - AWS ๋ฒ์ ์ง์ ํ ์คํธ์์ ํ ์คํธ ์ ํธ๋ฆฌํฐ๋ฅผ ์ฌ๊ตฌ์ฑํ์ต๋๋ค(#3895)(3025571)
์ง์ง ์ฑ๋ช :
์ต์ ์์ด์ ํธ ๋ฒ์ ์ด ์ถ์๋๋ฉด ์ฆ์ ์ ๋ฐ์ดํธํ๋ ๊ฒ์ด ์ข์ต๋๋ค. ์ต์ ๋ฒ์ ์ผ๋ก ์ ๊ทธ๋ ์ด๋ํ ์ ์๋ ๊ฒฝ์ฐ, ์์ด์ ํธ๋ฅผ 90์ผ ์ด๋ด ๋ฒ์ ์ผ๋ก ์ ๋ฐ์ดํธํ์ธ์. ์์ด์ ํธ์๊ฒ ์ต์ ์ ๋ณด๋ฅผ ์ ๊ณตํ๋ ๋ฐฉ๋ฒ์ ๋ํด ์์ธํ ์์๋ณด์ธ์. (https://docs.newrelic.com/docs/new-relic-solutions/new-relic-one/install-configure/update-new-relic-agent/)
์์ด์ ํธ ๋ฆด๋ฆฌ์ค ๋ฐ ์ง์ ๋ ์ง์ ๋ํ ์ ๋ณด๋ ๋ด๋ ๋ฆญ Node.js ์์ด์ ํธ EOL ์ ์ฑ ์ ์ฐธ์กฐํ์ธ์. (https://docs.newrelic.com/docs/apm/agents/nodejs-agent/getting-started/nodejs-agent-eol-policy/)
Notes
ํน์ง
@anthropic-ai/sdk์ ๋ํ ๊ณ์ธก ์ง์ ์ถ๊ฐ (#3881) (e8713bb)- OTel DB ์์ฑ์ ์๋ฏธ ์ฒด๊ณ ๊ท์น 1.40.0์ ์์ ์ ์ธ ์ด๋ฆ์ผ๋ก ์ ๋ฐ์ดํธํ์ต๋๋ค (#3826) (6d3000d)
- SNS์ ๋ถ์ฐ ์ถ์ ์ ํ ์ถ๊ฐ (#3893) (8fc1144)
์ฝ๋ ๋ฆฌํฉํ ๋ง
๋ฐ์ํ ์ด๋ฒคํธ๋ฅผ ๊ตฌ๋ ํ๋๋ก
@aws-sdkv3 ๊ณ์ธก์ ๋ฆฌํฉํฐ๋งํฉ๋๋ค.@aws-sdk/smithy-client๊ตฌ๋ ์ ์ถ๊ฐ(#3877) (0e350fc)- AWS Bedrock ๋ฏธ๋ค์จ์ด์ ํจ๊ป
@smithy/smithy-clientsend๊ตฌ๋ ์๋ฅผ ์ถ๊ฐํ์ต๋๋ค (#3864) (5e0a6d1) - ์ผ๋ฐ AWS
Client๋ฏธ๋ค์จ์ด๋ฅผ ๊ตฌ๋ ์๋ก ์ด๋ํ์ต๋๋ค (#3889) (3cb1e1b) aws-sdk/dynamodb๊ณ์ธก์ ๊ตฌ๋ ์ ๋ฏธ๋ค์จ์ด๋ก ์ ๋ฐ์ดํธํ์ต๋๋ค (#3891) (ff677a2)- ์ค์ ๋ํ๋ ๋ฏธ๋ค์จ์ด์์ bedrock ์ ํธ๋ฆฌํฐ๋ฅผ ๋ถ๋ฆฌํ๋๋ก AWS SDK v3 ๊ณ์ธก์ ์ ๋ฐ์ดํธํ์ต๋๋ค(#3883) (eed340e)
- Lambda ๊ณ์ธก์ ๊ตฌ๋ ์ ๋ฏธ๋ค์จ์ด๋ก ์ ๋ฐ์ดํธํ์ต๋๋ค(#3890) (12f8284)
- SNS ๊ณ์ธก์ ๊ตฌ๋ ์ ์ ํ์ผ๋ก ๋ฆฌํฉํฐ๋ง(#3876) (b9f3326)
- SQS ๊ณ์ธก์ ๊ตฌ๋ ์ ์ ํ์ผ๋ก ๋ฆฌํฉํฐ๋ง (#3880) (de46dee)
๊ณต๊ธ์ ์ฒด๋ณ ์๋ธํด๋์ค๋ฅผ ์ฌ์ฉํ๋๋ก
LlmErrorMessage์(๋ฅผ) ๋ฆฌํฉํฐ๋งํ์ต๋๋ค(#3882) (5b0fd2b)๋ฉ์์ง ๋ธ๋ก์ปค ์์๋ฅผ ์ฌ์ฉํ๋๋ก
amqplib๋ฆฌํฉํฐ๋ง(#3879) (77621fb)
์ ์ ์๋ฅ ๋น์น
์ก์ผ
@apm-js-collab/tracing-hooks์(๋ฅผ)0.6.0(์ผ)๋ก ์ ๋ฐ์ดํธํ์ต๋๋ค (#3884) (f6ef470)- ๋ฒ์ 8์ ๋ค๋ฃจ๋๋ก Undici ํ ์คํธ ์ ๋ฐ์ดํธ (#3896) (f27e75f)
์ง์ง ์ฑ๋ช :
์ต์ ์์ด์ ํธ ๋ฒ์ ์ด ์ถ์๋๋ฉด ์ฆ์ ์ ๋ฐ์ดํธํ๋ ๊ฒ์ด ์ข์ต๋๋ค. ์ต์ ๋ฒ์ ์ผ๋ก ์ ๊ทธ๋ ์ด๋ํ ์ ์๋ ๊ฒฝ์ฐ, ์์ด์ ํธ๋ฅผ 90์ผ ์ด๋ด ๋ฒ์ ์ผ๋ก ์ ๋ฐ์ดํธํ์ธ์. ์์ด์ ํธ์๊ฒ ์ต์ ์ ๋ณด๋ฅผ ์ ๊ณตํ๋ ๋ฐฉ๋ฒ์ ๋ํด ์์ธํ ์์๋ณด์ธ์. (https://docs.newrelic.com/docs/new-relic-solutions/new-relic-one/install-configure/update-new-relic-agent/)
์์ด์ ํธ ๋ฆด๋ฆฌ์ค ๋ฐ ์ง์ ๋ ์ง์ ๋ํ ์ ๋ณด๋ ๋ด๋ ๋ฆญ Node.js ์์ด์ ํธ EOL ์ ์ฑ ์ ์ฐธ์กฐํ์ธ์. (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/)