Notes
Features
- Added source mapping support to heap profiler (#4122) (dcee39f)
- Added source mapping support to CPU (wall time) profiler (#4095) (f6123bc)
- Added
otlp_resource_attributesto all outgoing OpenTelemetry metrics calls (#4128) (a0c1c5b) - Added support for
ai_monitoring.enabled,ai_monitoring.streaming.enabled, andai_monitoring.record_content.enabledto be assigned via server-side config (#4123) (c4d8032)
Bug fixes
- Fixed
bunyanlog forwarding multiple duplicate lines (#4132) (b0f4242) - Fixed OTEL crash when adding exceptions to spans (#4130) (508542e)
Documentation
Miscellaneous chores
- Changed
notify-release.ymlschedule with our bot user (#4135) (a9318ae) - Changed
versioned-security-agent.ymlschedule with our bot user (#4134) (d7c6f64) - Changed smoke-test schedule with our bot user (#4133) (400268e)
- Sharded the versioned tests w/ security agent workflow (#4119) (fe200c4)
- Updated test runner to accept suites as positional parameters (#4117) (ac0985d)
Tests
- Added more scenarios to winston for constructing loggers (#4120) (ea90fc3)
- Added skip for winston test for ranges that do not support it (#4121) (e75e15e)
- Applied sampling to
pg-nativetests to reduce the matrix under test (#4124) (b1ad2da) - Fixed flaky amqplib async-work duration assertions (#4118) (3544237)
- Removed timing race from common.request unit tests (#4113) (b22c25b)
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
winstoninstrumenting to assignhandleExceptionsto the first NrTransport to avoid registering duplicateuncaughtExceptionhandlers (#4108) (d60a48d)- This would create a linear memory leak because the
NrTransportobjects for loggers no longer in use, would not be freed because of the globalprocess.on('uncaughtException')handler
- This would create a linear memory leak because the
Documentation
Continuous integration
- Pinned CI npm to 11 so native versioned suites build on Node 22 (#4114) (b844e94)
- Removed the 8 minute versioned shard timeout (#4111) (0ef6374)
- Attempted to fix memcached CI issue again (#4098) (f67fef5)
- Shard versioned tests across CI runners (#4101) (1471734)
Tests
- Added
samplesto prisma and next to cut down on versions under test on packages we recommend using hybrid ageninstrumentation (#4112) (7d8bd7c) - Resolved
grpcproto-loaderfrom the running suite'snode_modules(#4110) (5b5a9f8)
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 Node.js 26 support (#4084) (4a7f777)
- Added
span_idandtrace_idlabels toCpuProfilersample data (#4049) (c2b1737) - Added new GCP Cloud Run hostname logic to include
K_REVISION(#4069) (02855dc) - Added
profiling.source_mapping.enabledconfig option (#4090) (43add80) - Removed
spanIdin outgoingtracestateheader (#4091) (40a8bf1)
Code refactoring
Documentation
Miscellaneous chores
- Addressed long standing CI flakes (#4093) (ae973a0)
- Fixed package version resolution on Node 26 (#4094) (73d14a9)
Continuous integration
- Updated
release-creationto uselts/*for node-version (#4080) (7eaed22) - Updated
setup-nodejob to includecheck-latestto ensure we are getting the latest version of node (#4079) (4a425f6)
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/)
バグ修正
応答ヘッダーが含まれている場合にAzure Functionsがクラッシュする問題を修正(#4070)(c88d2b7)
ドキュメント
互換性レポートを更新しました (#4067) (0ae24b8)
サポートステートメント
最新のエージェント バージョンが利用可能になったらすぐに更新することをお勧めします。最新バージョンにアップグレードできない場合は、エージェントを 90 日以内のバージョンに更新してください。エージェントを最新の状態に保つ方法の詳細については、こちらをご覧ください。
エージェントのリリースとサポート日に関する情報については、New Relic Node.jsエージェントのEOLポリシーを参照してください。
メモ
ドキュメント
雑用
- OTELメトリクスにプロキシ設定サポートを追加 (#4041) (6c04b8a)
- OTELメトリクスのエクスポートにサポート機能メトリクスを追加 (#4051) (db6e4e3)
@opentelemetry0.xパッケージの最小バージョンを^0.219.0に更新しました(#4065)(3f58ad0)
サポートステートメント:
最新のエージェント バージョンが利用可能になったらすぐに更新することをお勧めします。最新バージョンにアップグレードできない場合は、エージェントを 90 日以内のバージョンに更新してください。エージェントを最新の状態に保つ方法の詳細については、こちらをご覧ください。( https://docs.newrelic.com/docs/new-relic-solutions/new-relic-one/install-configure/update-new-relic-agent/ )
エージェントのリリースとサポート日については、New Relic Node.js エージェントの EOL ポリシーを参照してください。( https://docs.newrelic.com/docs/apm/agents/nodejs-agent/getting-started/nodejs-agent-eol-policy/ )
メモ
特徴
バグ修正
コードリファクタリング
@hapi/hapiと@hapi/visionをサブスクライバーベースに移行 (#3995) (54c60a8)- 発行されたイベントをサブスクライブするために
koa計装をリファクタリングしました (#4016) (e1f6c27) - 以前に保存されたエラーがあった場合にのみエラーを処理済みとしてマークするようにMiddlewareWrapper
maybeHandleErrorを更新しました(#4032)(1b21cc8)
ドキュメント
- 計装がエージェントにマージされたため、
@newrelic/apollo-server-pluginへのリンクを削除しました (#4003) (9afd9cb) apollo-serverのドキュメントをドキュメントサイトに移動しました (#3994) (11ca2ae)- 互換性レポートを更新 (#4028) (b16ad6e) (#4014) (3efa1ff) (#4002) (33a8236)
雑用
更新された依存関係
テスト
- AWSテストエージェントのセットアップがsmithy >=4.7.3で機能するように、安定した
http.requestシムを追加 (#4010) (c5fd80a) - 自己署名証明書と
undici.Agentを使用した場合の動作をアサートするundiciのバージョン別テストを追加しました (#4026) (27507bc) >=4.1.4をテストするためにmongodb-esmテストをリファクタリング (#4023) (d85767f)globへの依存を排除し、代わりにfs.globを使用(#4019)(204f124)- サポートされていなかったため、バージョン<5.2.0ではカスタムディスパッチャーの使用をスキップするように、undici.Agent(エージェント)のバージョン別テストを更新しました(#4029) (08cd079)
サポートステートメント:
最新のエージェント バージョンが利用可能になったらすぐに更新することをお勧めします。最新バージョンにアップグレードできない場合は、エージェントを 90 日以内のバージョンに更新してください。エージェントを最新の状態に保つ方法の詳細については、こちらをご覧ください。( https://docs.newrelic.com/docs/new-relic-solutions/new-relic-one/install-configure/update-new-relic-agent/ )
エージェントのリリースとサポート日については、New Relic Node.js エージェントの EOL ポリシーを参照してください。( https://docs.newrelic.com/docs/apm/agents/nodejs-agent/getting-started/nodejs-agent-eol-policy/ )
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/)