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

Python agent v9.9.0

April 18, 2024Download

Notes

This release of the Python agent updates Celery instrumentation, adds new Langchain vectorstores, adds configuration to capture memory usage runtime metrics per process, fixes a content reporting issue in Anthropic Claude, and upgrades internal version of urllib3 to v1.26.18.

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

Security

  • Upgrade internal version of urllib3 to v1.26.18

    • Upgrade the internal version of urllib3 used in the Python Agent to v1.26.18 to resolve security warnings.

New features

  • Update Celery instrumentation

    • Add support for distributed tracing in Celery over AMQP headers.
    • Remove duplicate function traces for some methods of running tasks.
      • All tasks should now only be instrumented once, and will report either an OtherTransaction, or a FunctionTrace if run under an existing transaction.
    • Fix instrumentation for grouped celery tasks APIs, such as task.map(), celery.group(), and celery.chunks().
      • Tasks run using task.map() or task.starmap() will now name tasks in the format Celery/celery.map/my_task to allow you to differentiate between map tasks.
      • Individual task runs created by the map() and starmap() tasks will be traced with a FunctionTrace to capture individual timings.
  • Add new Langchain vectorstores

    • Support for the following Langchain vectorstores: DuckDB, EcloudESVectorStore, InMemoryVectorStore, PathwayVectorClient, VDMS
  • Add configuration setting to enable capturing of memory usage runtime metrics per process

    • Add memory_runtime_pid_metrics.enabled configuration setting to toggle capturing of memory usage metrics (per process ID only) to reduce Metric Grouping Issues (MGI).

Bug fixes

  • Report only raw content dictionary for Anthropic Claude

    • Previously, AWS Bedrock's Anthropic Claude model would report a list of dictionaries of message content. Now it reports a single dictionary of message content.

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.

Copyright © 2024 New Relic株式会社。

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