Notes
This release of the Python agent enables AI monitoring by default with the new ai_monitoring.basic_telemetry.enabled setting, deprecates the ai_monitoring.enabled setting, and fixes a crash in LangChain tool instrumentation.
Install the agent using easy_install/pip/distribute via the Python Package Index, using conda via the Conda-Forge Package Index, or download it directly from the New Relic download site.
Changes
AI monitoring is now enabled by default
- LLM instrumentation is now enabled by default and the agent sends
Llm*custom events, spans, and metrics (without message content) unless configured otherwise. - To record prompt and response content, set
ai_monitoring.record_content.enabledtotrue. - To opt out, set
ai_monitoring.basic_telemetry.enabledtofalsein newrelic.ini, or set the environment variableNEW_RELIC_AI_MONITORING_BASIC_TELEMETRY_ENABLED=false. - The
ai_monitoring.enabledsetting and theNEW_RELIC_AI_MONITORING_ENABLEDenvironment variable are deprecated, but setting either one tofalsealso opts out of AI Monitoring.
- LLM instrumentation is now enabled by default and the agent sends
Bug fixes
- Fixed a crash in LangChain
StructuredTool.invokeandStructuredTool.ainvokeinstrumentation whenconfigor itsmetadatawasNone.
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 Python agent EOL policy for information about agent releases and support dates.
メモ
このリリースのPythonエージェントでは、Microsoft エージェント・フレームワークおよびCrewAIの計装を追加し、LaunchDarklyの機能フラグの計装とスパン転送サポートを改善し、いくつかのクラッシュを修正しました。
Python パッケージ インデックス経由でeasy_install/pip/distributeを使用するか、 Conda-Forge パッケージ インデックス経由でcondaを使用してエージェントをインストールするか、 New Relic ダウンロード サイトから直接ダウンロードします。
新機能
Microsoft エージェント・フレームワークの新しい計装
agent-frameworkパッケージのツールとエージェントに計装が追加されました。- マルチエージェントの設定はまだインストゥルメントされていません。
CrewAIの新しい計装
crewaiパッケージのエージェント、クルー、およびツールに計装が追加されました。
機能の拡充
LaunchDarklyの機能フラグのインテグレーションを改善しました。
LaunchDarklyとのパブリックプレビューのインテグレーションにオプトインするには、設定ファイルで
launch_darkly_integration.enabledおよびopentelemetry.enabledの設定を有効にしてください。ldclientにおける機能フラグの計装を改善しました。
- UIのディープリンクを有効にするため、新しい
feature_flag.url.full属性を追加しました。 - LaunchDarklyに合わせて、
inExperimentキーの大文字と小文字を変更しました。 - 機能フラグの属性におけるfalsyな値のサポートを追加しました。
- すべてのLaunchDarklyインテグレーションの警告を、1回だけ表示されるように削減しました。
- UIのディープリンクを有効にするため、新しい
ldobserveのスパン転送を改善しました。
- ディープUIリンクを有効にするために、
nr.entity.guidおよびnr.entity.urlのスパン属性を追加しました。 - UIで適切にネストできるように、スパンの親子関係を修正しました。
- ディープUIリンクを有効にするために、
バグ修正
_add_span_event_eventで属性がNoneだった場合にTimeTraceで発生するクラッシュを修正しました。- デフォルト値にフォールバックする際に、LaunchDarklyの
Configラッパーで発生するクラッシュを修正しました。
サポートステートメント
最新のエージェント バージョンが利用可能になったらすぐに更新することをお勧めします。最新バージョンにアップグレードできない場合は、エージェントを 90 日以内のバージョンに更新してください。エージェントを最新の状態に保つ方法の詳細については、こちらをご覧ください。
エージェントのリリースとサポート日については、New Relic Python エージェントのEOL ポリシーを参照してください。
メモ
Pythonエージェントの今回のリリースでは、OpenAI Responsesの計装と、Valkeyの新しいhsetexコマンドが追加されました。
Python パッケージ インデックス経由でeasy_install/pip/distributeを使用するか、 Conda-Forge パッケージ インデックス経由でcondaを使用してエージェントをインストールするか、 New Relic ダウンロード サイトから直接ダウンロードします。
新機能
OpenAI Responsesの新しい計装
- Responses APIをターゲットとする、
openaiSDKのclient.responsesメソッドに計装が追加されました。 - これは、引き続きサポートされている古い
client.chat.completionsメソッドおよびChat Completions APIの既存の計装に対する追加です。
- Responses APIをターゲットとする、
機能の拡充
新しいValkeyコマンドのサポートを追加しました:
hsetexコマンドがサポートされるようになりました。
サポートステートメント
最新のエージェント バージョンが利用可能になったらすぐに更新することをお勧めします。最新バージョンにアップグレードできない場合は、エージェントを 90 日以内のバージョンに更新してください。エージェントを最新の状態に保つ方法の詳細については、こちらをご覧ください。
エージェントのリリースとサポート日については、New Relic Python エージェントのEOL ポリシーを参照してください。
メモ
このPythonエージェントのリリースでは、Azure App Servicesの利用状況、Azure Service Busの計装、新しいKinesisメソッドのサポート、およびv2.10.0以降のGoogle ADKのサポートが追加されています。また、このリリースでは、httplibでディストリビューティッド(分散)トレーシングのトレースヘッダーが重複する問題、およびsetup.pyインストレーションファイルを修正しています。
Python パッケージ インデックス経由でeasy_install/pip/distributeを使用するか、 Conda-Forge パッケージ インデックス経由でcondaを使用してエージェントをインストールするか、 New Relic ダウンロード サイトから直接ダウンロードします。
削除された機能
Python 3.9のサポートを削除しました。
- Python 3.9は2025年10月31日にEnd-of-Lifeを迎え、エージェントではサポートされなくなりました。Pythonエージェントのアップデートを引き続き受け取るには、アプリケーションをサポートされているバージョンのPythonにアップグレードすることをご検討ください。
新機能
Azureアプリサービスの利用率
- エンティティ関係のマッピングを有効にするため、Azure App Serviceの使用率が追加されました。
- また、新しい設定も追加されます、
utilization.detect_azureappservice
Azure Service Bus向けの新しい計装
- Microsoft Azure Service Busの計装が追加されました。
新しいKinesisメソッド向けの新しい計装
- Kinesisで
update_stream_record_distribution_strategyメソッドがサポートされるようになりました。
- Kinesisで
パブリックプレビュー版のLaunchDarklyインテグレーションを追加しました。
- LaunchDarklyとのパブリックプレビューのインテグレーションにオプトインするには、設定ファイルで
launch_darkly_integration.enabledおよびopentelemetry.enabledの設定を有効にしてください。
- LaunchDarklyとのパブリックプレビューのインテグレーションにオプトインするには、設定ファイルで
セキュリティアップデート
urllib3の現在のすべてのCVEを解決するために、内部のurllib3パッケージが2.8.0に更新されました。- これにより、現時点までのエージェントにおけるすべての既知のCVEが解決されます。
機能の拡充
Google ADK v2.10.0以降をサポートしています。
- バージョン2.10.0以上のGoogle ADK向けに計装が更新されました。
バグ
httplibにおける重複したディストリビューティッド(分散)トレーシングヘッダー
httplibの計装がtraceparentに対して重複するヘッダーを生成し、不正な値になる問題を修正しました。
setup.pyサポートされているすべてのPythonバージョンでインストールファイルが動作するようになりました。- ユーザーが
setup.pyファイルを直接使用してPython 3.12以上にPythonエージェントをインストールしようとすると、ImportErrorが発生します。これは、distutilsがPython 3.10以降非推奨となり、Python 3.12の標準ライブラリから完全に削除されたためです。
- ユーザーが
サポートステートメント
最新のエージェント バージョンが利用可能になったらすぐに更新することをお勧めします。最新バージョンにアップグレードできない場合は、エージェントを 90 日以内のバージョンに更新してください。エージェントを最新の状態に保つ方法の詳細については、こちらをご覧ください。
エージェントのリリースとサポート日については、New Relic Python エージェントのEOL ポリシーを参照してください。
メモ
Pythonエージェントの今回のリリースでは、botocore(SigV4)の署名付きヘッダーに関する問題が修正されています。
Python パッケージ インデックス経由でeasy_install/pip/distributeを使用するか、 Conda-Forge パッケージ インデックス経由でcondaを使用してエージェントをインストールするか、 New Relic ダウンロード サイトから直接ダウンロードします。
バグ
botocore(SigV4)の署名付きヘッダーに関する問題を修正しました。
- ヘッダーが重複して送信されるのを防ぐため、botocoreのディストリビューティッド(分散)トレーシングヘッダーに対する以前の変更は元に戻されました。
- 以前は、他のトレーシングライブラリによって生成されたディストリビューティッド(分散)トレーシングヘッダーが、ヘッダーの署名によりbotocoreの計装に問題を引き起こす可能性がありました。この問題は、botocore内でこれらのヘッダーの署名を無効にすることで修正されました。
サポートステートメント
最新のエージェント バージョンが利用可能になったらすぐに更新することをお勧めします。最新バージョンにアップグレードできない場合は、エージェントを 90 日以内のバージョンに更新してください。エージェントを最新の状態に保つ方法の詳細については、こちらをご覧ください。
エージェントのリリースとサポート日については、New Relic Python エージェントのEOL ポリシーを参照してください。
Notes
This release of the Python agent adds support for OpenSearch, Microsoft Azure SQL, new Kinesis methods, and a new browser_monitoring.version setting. Additionally, improvements have been made to Anthropic, MCP, and Google ADK instrumentation. Issues with signed headers in botocore (SigV4) and Gemini tools parsing have also been fixed for this release.
Install the agent using easy_install/pip/distribute via the Python Package Index, using conda via the Conda-Forge Package Index, or download it directly from the New Relic download site.
New Features
New instrumentation for opensearch-py
- Instrumentation was added for the official OpenSearch database connector.
New instrumentation for mssql-python
- Instrumentation was added for Microsoft Azure SQL.
New instrumentation for new Kinesis methods
- The following methods are now supported in Kinesis:
create_channeldelete_channeldescribe_channellist_channelsupdate_channel
- The following methods are now supported in Kinesis:
New setting for
browser_monitoring.version- The new setting
browser_monitoring.versionenables users to specify specific versions of our Browser Monitoring Agent to be injected. - See the list of Supported Browser Agent Versions to choose from.
- The new setting
Improved Features
Improved support for anthropic.
- Improved parsing of request parameters for the Anthropic SDK on versions 1.0.0 and above.
- New parsing for responses via
Messages.with_raw_response.createenabling improved compatibility with LangChain.
Support for mcp v2.0.0 and above.
- Instrumentation has been updated following the major refactor done in
mcpv2.0.0 and should once again work as expected.
- Instrumentation has been updated following the major refactor done in
Support for Google ADK v2.9.0 and above.
- Instrumentation has been updated for Google ADK on versions 2.9.0 and above.
Bugs
Fix issues with signed headers in botocore (SigV4)
- Previously any distributed tracing headers that were generated by other tracing libraries could cause issues with instrumentation in botocore due to header signing. This has been fixed, and distributed tracing headers are now mutated before signing.
Fix Gemini tools parsing
- Previously, some instances of tools created with Gemini would fail to parse and would silently fail, resulting in no response for that specific request. This has been fixed.
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 Python agent EOL policy for information about agent releases and support dates.