Skip to content

Releases: newrelic/newrelic-python-agent

v9.11.0

13 Jun 22:53
16838fb
Compare
Choose a tag to compare

Notes

This release of the Python agent adds agent_language to lambda metadata, support for injecting the agent into Kubernetes, support for psycopg 3.0+, optimizes plugins list capturing, fixes the Large Language Model event duration units, a crash in ASGI when the Content-Length header is missing, a crash when using OpenAI's .with_raw_response. and .with_streaming_response..

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

New features

  • Add agent_language to lambda metadata

    • Add agent_language to collected lambda metadata.
  • Optimize plugins list capturing

    • Skip checking for a package version on newrelic hooks that we know do not have versions.
  • Add support for injecting the agent into Kubernetes

    • Updates the bootstrap sitecustomize file to support injecting the agent into a Kubernetes cluster.
    • A full product for agent injection in Kubernetes will be coming soon in public preview.
    • A new informational only setting called k8s_operator.enabled (with NEW_RELIC_K8S_OPERATOR_ENABLED as an environment variable) was added, which is used to report when the agent is injected into a Kubernetes cluster. This setting does not enable/disable this function of the agent.
  • Add support for psycopg 3.0+

    • New instrumentation for psycopg 3.0+ has been added, providing database tracing for both the Connection and AsyncConnection classes.

Bug fixes

  • Fix Large Language Model event duration units

    • Previously, durations on LLM events were recorded in seconds which did not match some of the other language agents. This has been changed to be milliseconds.
  • Fix crash when using OpenAI's .with_raw_response.

    • Previously, an exception would be raised inside the instrumentation when .with_raw_response. was used. This no longer happens, the instrumentation successfuly records LLM data when .with_raw_response. is used.
  • Fix crash when using OpenAI's .with_streaming_response.

    • Previously, an exception would be raised inside the instrumentation when .with_streaming_response. was used. This no longer happens, the instrumentation is just skipped.
  • Fix a crash in ASGI when the Content-Length header is missing

    • Previously, an exception would be raised inside the instrumentation that injects the browser agent when an ASGI response was missing the Content-Length header. This issue 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.

v9.10.0

23 May 21:41
b75ea43
Compare
Choose a tag to compare

v9.9.1

13 May 21:39
3e5be52
Compare
Choose a tag to compare

v9.9.0

18 Apr 22:50
d9dcfaa
Compare
Choose a tag to compare

v9.8.0

27 Mar 23:08
9f9751d
Compare
Choose a tag to compare

v9.7.1

11 Mar 21:08
5f4b843
Compare
Choose a tag to compare

v9.7.0

22 Feb 23:07
56fbda1
Compare
Choose a tag to compare

v9.6.0

25 Jan 23:13
d6c1a91
Compare
Choose a tag to compare

v9.5.0

12 Jan 00:34
072eba8
Compare
Choose a tag to compare

v9.4.0

08 Jan 22:38
8399022
Compare
Choose a tag to compare