Notes
Features
- Added support for
@langchain/aws(#3563) (56c4a78) - Additional support for partial granularity traces (Not available for production use)
Code refactoring
- Converted AWS Bedrock's
LlmErrorto useLlmErrorMessage(#3567) (8b2bb42) - Updated
@google/genaiinstrumentation to subscribe to events emitted (#3467) (e8d9ba1) - Updated
bunyaninstrumentation to subscribe to events emitted (#3589) (f1e5f12)
Documentation
Miscellaneous chores
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/)
メモ
特徴
@koa/router@15.0.0+ (#3550) (f1e08ad) を使用するときにRouter適切にラップするようにkoa計装を更新しました。比率ベースのサンプラーを構成する機能を追加しました (#3501) (f300bd5)
- 比率ベースのサンプラーを割り当てるには、
config.distributed_tracing.sampler.root、config.distributed_tracing.sampler.remote_parent_sampled、またはconfig.distributed_tracing.sampler.remote_parent_not_sampledを{ trace_id_ratio_based: { ratio: <float between 0 and 1> }} - 環境変数で割り当てるには、
NEW_RELIC_DISTRIBUTED_TRACING_SAMPLER_<TYPE>='trace_id_ratio_based'とNEW_RELIC_DISTRIBUTED_TRACING_SAMPLER_<TYPE>_RATIO=<float between 0 and 1>を設定します。<TYPE>はROOT、REMOTE_PARENT_SAMPLED、またはREMOTE_PARENT_NOT_SAMPLED
- 比率ベースのサンプラーを割り当てるには、
config.distributed_tracing.sampler.root、config.distributed_tracing.sampler.remote_parent_sampled、config.distributed_tracing.sampler.remote_parent_not_sampledにadaptive.sampling_targetを設定できるように構成を更新しました( #3532 )(44f51dd )部分粒度トレースの予備サポート(本番環境では使用できません)
- 部分粒度トレースに
essentialタイプを追加しました (#3547) (3d85fb5) - 部分粒度トレースに
reducedタイプを追加しました。( #3540 ) (cfa8f41 ) - 部分粒度サンプラーを追加し、部分粒度サンプリングの決定が行われた場合にトランザクションを
isPartialTraceに割り当てます (#3544) (1535a82) - サンプラーをクラスにリファクタリングし、
agent.sampler.*に保存しました (#3527) (ad63441) - ロガーメッセージを正規化し、該当する場合はショートサーキットを行い、オプションのチェーンチェックを削除するために
Samplersクラスを更新しました (#3546) (4f7684c) - DT が無効になっている場合、または完全な粒度と部分的な粒度の両方が無効になっている場合に、0 ~ 1 の優先度を割り当てるようにサンプラーを更新しました (#3559) (7a1c37e)
- 部分的な粒度インジケータを
.partialTypeとして保存するようにトランザクションを更新しました (#3561) (a7f20d8) - 部分的な粒度ルールが適用されたときに更新されます (#3553) (a4bdf4f)
- デフォルトの Sampler クラスに
toStringとget [Symbol.toStringTag]()を追加しました (#3562) (771168d)
- 部分粒度トレースに
バグ修正
ドキュメント
雑用
サポートステートメント:
最新のエージェント バージョンが利用可能になったらすぐに更新することをお勧めします。最新バージョンにアップグレードできない場合は、エージェントを 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/ )
メモ
バグ修正
nextハンドラーがrouteまたはrouterを渡すときに、express 計装を無視されたエラーに更新しました ( #3513 ) (724b218 )- Promise の場合に消費者のコールバックが終了するまで待機するように MessageConsumerSubscriber を更新しました ( #3510 ) (45667a0 )
ドキュメント
テスト
サポートステートメント:
最新のエージェント バージョンが利用可能になったらすぐに更新することをお勧めします。最新バージョンにアップグレードできない場合は、エージェントを 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/ )
メモ
バグ修正
- 特定のメッセージ消費に対して作成されたトランザクションを終了するために
MessageConsumerSubscriberを更新しました ( #3503 ) (ba30818 ) MessageProducerSubscriberを更新して、traceparentサンプリング フラグを適切に設定しました ( #3505 ) (0b1a9a8 )- ペイロードが適切にデシリアライズされるように、bedrock ミドルウェアを
high優先度で登録するように更新しました ( #3500 ) (63e531b )
サポートステートメント:
最新のエージェント バージョンが利用可能になったらすぐに更新することをお勧めします。最新バージョンにアップグレードできない場合は、エージェントを 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
Bug fixes
- Updated
@google/genaito properly handle assigning token counts to LlmCompletionSummary message (#3495) (f805d38) - Updated AWS Bedrock instrumentation to properly assign token counts (#3491) (b1687f6)
- Updated openai instrumentation to properly handle streaming when
stream_options.include_usageis set (#3494) (37c43f5)
Code refactoring
Documentation
- Cleaned up README links and outdated verbiage (#3484) (51e6d7a)
- Updated compatibility report (#3477) (859f27f)
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/)