Notes
Features
- Added ability to store a list of OpenTelemetry Gen AI attributes from being truncated (#4505) (0e7d01d)
- Added support for some OpenTelemetry configuration options when
opentelemetry.enabledis true (#4501) (a0874ab)- If
config.opentelemetry.enabledistrue, the following OpenTelemetry environment variables will be applied to config:OTEL_SERVICE_NAME->config.app_nameOTEL_LOG_LEVEL->config.logging.levelOTEL_SDK_DISABLED->config.agent_enabled
- The OpenTelemetry environment variables have the same precedence level as New Relic environment variables. If the same value is set by both a New Relic environment variable (ex. NEW_RELIC_APP_NAME), the New Relic variable will take precedence.
- If
Bug fixes
- Added support for header tuples in
outgoingResponse.writeHead(#4504) (ed90b3d) - Handled an
apollo-serverrequest where a fragment does not return an operation (#4525) (bd866aa) - Reported unhandled outbound
httprequest errors once on the external span (#4484) (e76cacc) - Restored Redis MULTI/pipeline datastore instrumentation for @redis/client 6.4.0 (#4510) (2446f75)
- Used the bundled undici version for
SubscriberUsedmetrics instead of the Node.js major (#4512) (6561d6b) - Used the correct AWS partition when building ARNs for DynamoDB and Lambda (#4491) (f644a09)
Performance improvements
- Reduced per-request CPU in middleware done handler wrapping billouboq (#4516) (1b4f6c0)
- Skipped
Buffer.byteLengthinisValidLengthwhen the string length decides billouboq (#4523) (d819521) - Stopped
mongodbrecorders from retaining cursors until the transaction ends billouboq (#4517) (77d8d23)
Documentation
- Removed 'External Modules' section in README (#4522) (57b855c)
- Updated
virtual-machineandworker-threadsconfig schema descriptions (#4521) (6e8272e) - Updated
agent_controlandapiconfig schema descriptions (#4513) (460e87f) - Updated compatibility report (#4493) (0a663b8)
Miscellaneous chores
- Aligned
ai_monitoring.enableddeprecation notice withplugins.native_metrics.enabled(#4495) (f083b00) - Cleanup
qandelasticsearchsubscriber configs to accurately reflect instrumented range (#4514) (b8d0bd9)- Also fixed lint issues.
- Deprecated
NEW_RELIC_NATIVE_METRICS_ENABLEDfor new setting (#4490) (210118f)
Tests
- Added a script that checks for circular deps. It will run weekly as a Github action (#4515) (7272bd8)
- Changed configuration to disable virtual machine metrics for 2 suites (#4498) (2504cae)
- Fixed test reporter totals to use the run-wide summary (#4506) (5288d35)
- Moved
lib/configunit tests totest/unit/lib/config(#4500) (823fa59) - Reduced benchmark suite wall time (#4494) (2352751)
- Reduced response handling integration test time by sharing a certificate (#4497) (d9f925b)
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/)
メモ
特徴
バグ修正
- アウトバウンドの
http/httpsrequestsのプロトコルとポートを修正しました (#4473) (ab1b4b8) - writeHeadのレスポンス ヘッダーのキャプチャを修正しました (#4477) (fab8012)
- kafkajs eachMessageラッパーからアプリケーション ハンドラーのプロミスを返しました (#4488) (3263f9a)
コードリファクタリング
httpクライアント(http-outboundを含む)の計装をサブスクライバー ベースに移行しました (#4472) (191a052)- httpサーバーの計装をサブスクライバー ベースに移行しました (#4472) (04a3101)
ドキュメント
雑用
- ローカルのhttpモック サーバー呼び出しを使用するため、nockを削除しました (#4478) (4e0b963)
- 未使用のコア計装コードを削除しました (#4472) (b371b0c)
@newrelic/security-agentをv4に更新しました (#4471) (4234f4f)
テスト
- ローカルのhttpモック サーバーを統合しました (#4479) (ede2b19)
- https URLを想定するようにclient-s3スモーク テストを更新しました (#4482) (e8d039d)
- 一致しないconverseプロンプトでフェイル ファストするようにBedrockモック サーバーを更新しました (#4485) (5a69ac7)
サポートステートメント:
最新のエージェント バージョンが利用可能になったらすぐに更新することをお勧めします。最新バージョンにアップグレードできない場合は、エージェントを 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/ )
メモ
特徴
ai_monitoring.basic_telemetry.enabledを追加し、デフォルトで基本的なAIモニタリングを有効にしました(#4330)(c126335)。- LLM計装はデフォルトで有効になり、別の設定が行われない限り、
Llm*のカスタムイベント、スパン、およびメトリクス(メッセージコンテンツなし)を送信します。オプトアウトするには、newrelic.jsでai_monitoring.basic_telemetry.enabledをfalseに設定するか、NEW_RELIC_AI_MONITORING_BASIC_TELEMETRY_ENABLED環境変数をfalseに設定してください。 ai_monitoring.enabledおよびNEW_RELIC_AI_MONITORING_ENABLED環境変数は非推奨であり、将来のメジャーバージョンで削除される予定ですが、どちらかをfalseに設定することでもオプトアウトできます。
- LLM計装はデフォルトで有効になり、別の設定が行われない限り、
バグ修正
パフォーマンスの改善
ドキュメント
雑用
- deps-dev: @opentelemetry/exporter-metrics-otlp-proto を 0.300.0 から 0.301.0 に更新しました(#4464) (498dc4c)
- deps: @apm-js-collab/tracing-hooks を 0.13.3 から 0.14.0 に更新しました (#4455) (7fa16f2)
- deps: @opentelemetry/exporter-metrics-otlp-http を 0.300.0 から 0.301.0 に更新しました(#4462) (6f7bc29)
- deps: @opentelemetry/otlp-exporter-baseを0.300.0から0.301.0に更新しました。(#4463)(bd28555)。
- deps: @opentelemetry/otlp-transformerを0.300.0から0.301.0に更新しました。(#4461)(0518ca1)。
テスト
- 外部セグメントアサーションでgoogle-生成AIのAPIバージョンを導出しました(#4445)(7234378)。
- bluebird shapeテストのsecurity-agentスキップパスでリークしたエージェントを修正しました(#4456)(4ea68a6)。
- CPU競合下でVMメトリクスサンプラーのテストを決定論的にしました (#4446) (649d1bc)
サポートステートメント:
最新のエージェント バージョンが利用可能になったらすぐに更新することをお勧めします。最新バージョンにアップグレードできない場合は、エージェントを 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/ )
特徴
バグ修正
コードリファクタリング
ドキュメント
テスト
サポートステートメント:
最新のエージェント バージョンが利用可能になったらすぐに更新することをお勧めします。最新バージョンにアップグレードできない場合は、エージェントを 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/ )
特徴
@opentelemetry/api@1.10.0サポートを追加しました (#4392) (504490d)@opentelemetry/api-logsを直接使用している顧客は、これを削除し、@opentelemetry/api1.10.0以降を使用するように更新する必要があります。詳細については、OpenTelemetry APIの変更履歴を参照してください。- ロギングライブラリ向けのサードパーティ計装を登録する顧客は、以下に更新する必要があります:
@opentelemetry/instrumentation-pinoを0.70.0+に、@opentelemetry/instrumentation-bunyanを0.69.0+に、@opentelemetry/instrumentation-consoleを0.6.0+に、または@opentelemetry/instrumentation-winstonを0.69.0+に
バグ修正
- Apollo Serverの引数配列メトリクスを集約しました(#4350)(baf35fd)。
- この機能を利用するには、
config.apollo_server.field_metricsとconfig.apollo_server.collapse_field_metricsの両方をtrueに設定する必要があります。貢献してくださった @cpruijsen に感謝します!
- この機能を利用するには、
- net.jsが終了したトランザクションを長寿命のソケットに固定する処理を停止しました(#4411)(471e7df)。
パフォーマンスの改善
- executeに直接一致するように、mongodbのbulk計装を簡素化しました (#4406) (af4efdb)
- プロトタイプレベルでmongodbドライバーのメソッドをラップしました(#4399)(9074abc)。
ドキュメント
雑用
テスト
サポートステートメント
最新のエージェント バージョンが利用可能になったらすぐに更新することをお勧めします。最新バージョンにアップグレードできない場合は、エージェントを 90 日以内のバージョンに更新してください。エージェントを最新の状態に保つ方法の詳細については、こちらをご覧ください。
エージェントのリリースとサポート日に関する情報については、New Relic Node.jsエージェントのEOLポリシーを参照してください。
Features
- Added
--dumpto validate-config to emit the effective configuration (#4390) (fe3e684) - Added a validate-config CLI command (#4341) (821848d)
- Flagged a missing OpenTelemetry bridge as a validate-config startup blocker (#4396) (75397be)
- Reduced instances of the schema file to be just one instance in
schema.json(#4379) (a870c3b) - Shared startup-blocker checks between the agent and validate-config CLI (#4378) (06e6596)
Bug fixes
- Bounded module version resolution at filesystem root (#4393) (71c90b6)
- Fixed
http2client handling of missing headers, default ports, IPv6 hosts, and unparseable URLs (#4362) (0eef6a6) - Loaded the code-level metrics function inspector once instead of on every call (#4391) (01d2797)
Performance improvements
- Reduced CPU per SQL query by skipping slow query processing below
explain_threshold(#4376) (047e2cd)
Code refactoring
Documentation
Miscellaneous chores
- Fixed
MAXIMUM_TIMEOUT_TIMEinlib/otel/metrics/index.jsto be the correct expected value (#4365) (39b037c) - Updated linter to latest version (#4351) (a1a30f5)
- Added CLI tool help note about derived settings (#4398) (7c8b36d)
Tests
- Attempted to fix flaky tests (#4383) (01ddfd8)
- Pinned version of
@opentelemetry/apito 1.9.0 (#4387) (525b81c) - Updated
gotto latest to ensure it is up to date (#4364) (b586275)
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.
See the New Relic Node.js agent EOL policy for information about agent releases and support dates.