• /
  • EnglishEspañolFrançais日本語한국어Português
  • 로그인지금 시작하기

Python agent v12.1.0

March 26, 2026Download

Notes

This release of the Python agent adds support for time to first token and fixes an incompatible Flask add_url_rule function signature.

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

  • Added time to first token for LLM response streams:

    • The agent records a new attribute,time_to_first_token on LlmChatCompletionSummary events for OpenAI and Bedrock response streams. This attribute measures the duration between the initial request and the first token received in the response.

Bugs fixes

  • Resolved Flask add_url_rule function signature mismatch

    • Updated the instrumentation for Flask's to align its add_url_rule function signature with the native Flask implementation. This fix prevents potential application crashes caused by the previous signature mismatch.

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 © 2026 New Relic Inc.

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