• /
  • EnglishEspañolFrançais日本語한국어Português
  • ログイン今すぐ開始

Python agent release notesRSS

October 6
Python agent v11.0.1

Notes

This release of the Python agent provides fixes for early activation in Django instrumentation, server side overrides for max_samples_stored being ignored, and guards against crashes from trace_cache.pop().

Install the agent using easy_install/pip/distribute via the Python Package Index or download it directly from the New Relic download site.

Bug fixes

  • Prevents early activation in Django instrumentation

    • Remove calls to application_settings() in Django instrumentation to prevent issues with early activations in pre-fork applications.
  • Fix server configuration to local configuration sync issues

    • This fixes a bug created when event_harvest_config.harvest_limits.* settings were deprecated in favor of *.max_samples_stored settings. Some server side configurations were not overriding the client side configurations, resulting in data being sent to the collector despite the user disabling this.
  • Guard against crashes from trace_cache.pop()

    • In the ContextOf class, there was an unsafe access of the trace_cache via pop(key) without a default value. This caused crashes when the weakref in the dictionary was already garbage collected.

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.

September 25
Python agent v11.0.0

Notes

注意

This version of the agent has been withdrawn.

This release of the Python agent makes the following changes:

  • Removes support for Python 3.7
  • Removes and or deprecates various APIs and settings
  • Deprecates aioredis instrumentation
  • Raises the minimum supported version of setuptools and setuptools_scm
  • Adds new instrumentation for AutoGen
  • Adds new instrumentation for Pyzeebe
  • Adds new MCP (Model Context Protocol) named spans
  • Fixes a crash in psycopg
  • Ensures MCP spans are only recorded when AI monitoring is enabled

Install the agent using easy_install/pip/distribute via the Python Package Index or download it directly from the New Relic download site.

Removed features

  • Removes support for Python 3.7

    • Python 3.7 was EOL'd June 27, 2023. The Python agent has dropped support for it.
  • Removes various deprecated APIs

    • The following APIs have been removed:

      Legacy APIReplacement API
      accept_distributed_trace_payloadaccept_distributed_trace_headers
      add_custom_parameteradd_custom_attribute
      add_custom_parametersadd_custom_attributes
      create_distributed_trace_payloadinsert_distributed_trace_headers
      get_browser_timing_footerThe functionality of this has been wrapped into get_browser_timing_header()
      record_exceptionnotice_error()
      NewRelicLogHandlerNewRelicLogForwardingHandler
      lambda_handler & LambdaHandlerWrapperThese APIs have moved to the newrelic-lambda package.
  • Removes various deprecated settings

Deprecated features

  • Instrumentation for aioredis has been deprecated

    • The aioredis package has been deprecated in favor of redis which now includes the submodule redis.asyncio. As a result, the instrumentation for aioredis has also been deprecated. Please use the redis library instead. This instrumentation will be removed in a future release.
  • Deprecates some existing harvest settings to match other language agents

    • In order to be more consistent with the conventions of the other language agents, the following harvest settings are now deprecated:

      Legacy SettingReplacement Setting
      event_harvest_config.harvest_limits.analytic_event_datatransaction_events.max_samples_stored
      event_harvest_config.harvest_limits.span_event_dataspan_events.max_samples_stored
      event_harvest_config.harvest_limits.error_event_dataerror_collector.max_event_samples_stored
      event_harvest_config.harvest_limits.custom_event_datacustom_insights_events.max_samples_stored
      event_harvest_config.harvest_limits.log_event_dataapplication_logging.forwarding.max_samples_stored

      This is a revert of a previous change that renamed these settings from *.max_samples_stored to the event_harvest_config.harvest_limits.* form. This decision has been reversed, and the original settings named have been restored to match the other language agents who did not change these settings names. The deprecated settings will continue to work for now, but they will be removed in a future release.

  • Deprecates configuration of the agent through the WSGI environ dictionary

    • The following settings which were previously possible to configure through the WSGI environ dictionary are now deprecated. Please configure these settings through environment variables or the config file.

      • newrelic.set_background_task
      • newrelic.suppress_apdex_metric
      • newrelic.suppress_transaction_trace
      • newrelic.capture_request_params
      • newrelic.disable_browser_autorum
  • Deprecates support for building the agent with setuptools<61.2 or setuptools_scm<6.4

    • The minimum supported versions of setuptools and setuptools_scm have been increased to 61.2 and 6.4 respectively. This is to support the use of pyproject.toml for configuring the package metadata and building instructions. The agent can now be built with more modern build tools which will no longer log warnings about the lack of a pyproject.toml file.
    • This change adds new version attributes to the packages, newrelic.__version__ and newrelic.__version_tuple__, which can be used to programmatically check the version of the agent at runtime.

New features

  • Adds new instrumentation for AutoGen

    • Adds instrumentation (named spans and custom Llm events) for agents and tools in AutoGen
  • Adds new instrumentation for Pyzeebe

    • Adds automatic instrumentation and framework-specific agent attributes for Pyzeebe
  • Adds new MCP (Model Context Protocol) named spans

    • Adds new named spans for MCP (Model Context Protocol) tool calls made via tool manager to support Streamable HTTP

Bug fixes

  • Fixes a crash in psycopg>=3.2.0 when calling as_string()

    • Fixes an issue in psycopg>=3.2.0 where the as_string() method no longer required arguments, causing a potential crash. This has been fixed, and both signatures of this method are supported.
  • Ensures MCP (Model Context Protocol) spans are only recorded when AI monitoring is enabled

    • Ensures MCP (Model Context Protocol) spans are only recorded when the setting ai_monitoring.enabled is enabled.

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.

September 4
Python agent v10.17.0

メモ

このリリースの Python エージェントでは、以下のサポートが追加されました。

このリリースでは、次の修正も提供されています。

  • GraphQL における最も深いユニークパスの保護
  • ウェブ URL リクエスト解析の安全策
  • ElasticSearchとGraphQLのフォールバック trace.settings==None
  • 非同期 ElasticSearch クライアント リストからoptionsメソッドを削除します

Python パッケージ インデックス経由でeasy_install/pip/distributeを使用してエージェントをインストールするか、 New Relic ダウンロード サイトから直接ダウンロードします。

新機能

  • Celeryのカスタムタスクのサポートを追加

    • Celeryのカスタム タスク クラスの監視サポートを追加します。以前は、デフォルトのタスク クラスを使用するタスクのみをモニターできました。 注意: このバージョンの Python エージェントは、 Celery バージョンv5.2.0未満をサポートしなくなります。
  • Graphene-Djangoのサポートを追加

    • Graphene-Djangoで作成された同期スキーマの監視サポートを追加します。以前は、Graphene-Django で作成されたスキーマは部分的にしかモニターされず、 GraphQL関連の属性が欠落していました。
  • Django のミドルウェアフィルタリングのサポートを追加

    • ユーザーは、どのDjangoミドルウェアを監視するかをフィルタリングできるようになりました。 追加設定が 3 つあります。

      • instrumentation.middleware.django.enabled (デフォルトはtrueです)
      • instrumentation.middleware.django.exclude
      • instrumentation.middleware.django.include

    詳細と例については、 Django ミドルウェア フィルタリング ページを参照してください。

  • AWS Bedrock Converse APIのサポートを追加

    • 非ストリーミングConverse API の監視サポートを追加します。これにはboto3およびaioboto3クライアントを使用して行われたconverseチャット完了呼び出しのサポートが含まれます。
  • W3CTraceParent ヘッダーのサンプリングフラグのサポートを追加

    • アップストリーム サービスがサンプリング フラグを設定した W3CTraceParent ヘッダーを送信すると、New Relic は現在のトランザクションをサンプリングするかどうかを決定する際にそのサンプリング決定を考慮します。
  • リモート親がサンプリングされるかどうかに基づくサンプリング決定のサポートを追加しました

    • 2 つの新しい設定オプションのサポートが追加されました。

      • distributed_tracing.sampler.remote_parent_sampled
      • distributed_tracing.sampler.remote_parent_not_sampled
    • default これはデフォルトの動作であり、この変更前と同じように動作します (サンプリングの決定を適応サンプリング アルゴリズムに渡して、トランザクションをサンプリングするかどうかを決定します)。

    • always_on リモート親がサンプリングされたトレースとリモート親がサンプリングされていないトレースが常にサンプリングされることを意味します。

    • always_off リモート親がサンプリングされたトレース、またはリモート親がサンプリングされていないトレースはサンプリングされないことを意味します。

バグ修正

  • GraphQL の最も深いユニークパスに安全策を追加する

    • 一部のユーザーは、フィールド名がNoneを返すため、 GraphQLの最も深い一意のパスが生成されないという問題を経験していました。この問題は修正されました。
  • Webリクエスト解析の安全策を追加する

    • request_uriが不正な形式であったり無効な文字が含まれていたりした場合に、一部のユーザーに解析エラーが発生しました。この時点で、リクエスト ヘッダーのrequest_uriが無効であり、最初に指定された (有効な) URL と一致しない場合にこれが発生する可能性があります。この安全対策は現在 New Relic に導入されていますが、 urllib 2025 年 1 月 31 日以降にリリースされた Python のバージョンに対してこの問題を解決しました。
  • ElasticSearchとGraphQLのクラッシュを修正 trace.settings==None

    • trace.settingsNoneの場合、ElasticSearch の計装によりアプリケーションがクラッシュしました。 global_settingsフォールバックが設定されました。これにより、GraphQL で見つかった同じ問題も解決されます。
  • 非同期 ElasticSearch クライアント リストからoptionsメソッドを削除します

    • ElasticSearch の以前の計画では、 options非同期メソッドのリストにあったためクラッシュが発生しました。 このメソッドは、データストアの操作やrequestsを実行するものではないため、 DatastoreTraceにラップされなくなりました。

サポートステートメント

最新のエージェント バージョンが利用可能になったらすぐに更新することをお勧めします。最新バージョンにアップグレードできない場合は、エージェントを 90 日以内のバージョンに更新してください。エージェントを最新の状態に保つ方法の詳細については、こちらをご覧ください。

エージェントのリリースとサポート日については、New Relic Python エージェントのEOL ポリシーを参照してください。

August 14
Python agent v10.16.0

メモ

このリリースの Python エージェントでは、新しいRedis関数のサポートが追加され、すべての内部パスがos.pathからpathlib.Pathに変換され、JSON エンコード PosixPaths に関する問題が修正されました。

Python パッケージ インデックス経由でeasy_install/pip/distributeを使用してエージェントをインストールするか、 New Relic ダウンロード サイトから直接ダウンロードします。

新機能

  • 新しいRedis関数のサポートを追加

    • 新しいRedis関数の計装を追加します。
  • すべての内部パスをos.pathから pathlib.Path

    • Windows パスをサポートするための準備として、文字列ベースのパスとos.pathのすべての内部使用をpathlib.Pathに変換します。

バグ修正

  • JSON エンコード PosixPath の問題を修正

    • 一部のユーザーで JSON エンコードPosixPath構成設定に関する問題が発生していました。この問題は修正されました。

サポートステートメント

最新のエージェント バージョンが利用可能になったらすぐに更新することをお勧めします。最新バージョンにアップグレードできない場合は、エージェントを 90 日以内のバージョンに更新してください。エージェントを最新の状態に保つ方法の詳細については、こちらをご覧ください。

エージェントのリリースとサポート日については、New Relic Python エージェントのEOL ポリシーを参照してください。

July 24
Python agent v10.15.0

メモ

このリリースの Python エージェントでは、 oracledbのサポートが追加され、Kombu および Kafka でMessageTransactionオブジェクトに属性destination_nameがないバグが修正され、AWS での使用率メタデータの消失が修正されました。

Python パッケージ インデックス経由でeasy_install/pip/distributeを使用してエージェントをインストールするか、 New Relic ダウンロード サイトから直接ダウンロードします。

新機能

  • oracledbのサポートを追加

バグ修正

  • MessageTransactionオブジェクトに属性destination_nameがありません」というバグを修正しました

    • MessageBroker モジュールの、シリアル化メソッドがMessageTransactiondestination_nameプロパティを検索していたが、それが存在しないというバグを修正しました。
  • AWS と K8s を一緒に実行する際における AWS 使用率メタデータの問題を修正

    • AWS EC2インスタンス上で動作するK8s Podの権限設定により、初めて使用状況メタデータを取得できるようになります。 ただし、アプリケーションが継続的に実行されたままになっていると、エージェントは再接続され、使用率メタデータの読み込みに失敗します。このような場合、使用率メタデータはエージェント インスタンスごとにキャッシュされ、取得できるようになります。

サポートステートメント

最新のエージェント バージョンが利用可能になったらすぐに更新することをお勧めします。最新バージョンにアップグレードできない場合は、エージェントを 90 日以内のバージョンに更新してください。エージェントを最新の状態に保つ方法の詳細については、こちらをご覧ください。

エージェントのリリースとサポート日については、New Relic Python エージェントのEOL ポリシーを参照してください。

June 18
Python agent v10.14.0

メモ

このリリースの Python エージェントでは、Azure Function Appsprotobuf v6 のサポートが追加されました。

Python パッケージ インデックス経由でeasy_install/pip/distributeを使用してエージェントをインストールするか、 New Relic ダウンロード サイトから直接ダウンロードします。

新機能

  • Azure Function Apps のサポートを追加

バグ修正

  • protobuf v6 サポートを有効にするために pb2 ファイルを追加します

    • 以前は、 protobuf v6 のサポートが不足していたため、いくつかの Google パッケージは New Relic と互換性がありませんでした。これは解決されました。

サポートステートメント

最新のエージェント バージョンが利用可能になったらすぐに更新することをお勧めします。最新バージョンにアップグレードできない場合は、エージェントを 90 日以内のバージョンに更新してください。エージェントを最新の状態に保つ方法の詳細については、こちらをご覧ください。

エージェントのリリースとサポート日については、New Relic Python エージェントのEOL ポリシーを参照してください。

Copyright © 2025 New Relic株式会社。

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.