Python Agent 5.22.0.151

Released on: 
Thursday, October 22, 2020 - 13:00

Notes

This release of the Python agent adds instrumentation for Starlette and FastAPI.

The agent can be installed using easy_install/pip/distribute via the Python Package Index or can be downloaded directly from the New Relic download site.

Deprecations

  • Python 3.5 has been deprecated

    Python 3.5 has reached end of life and support will be dropped in a future release. Using the agent with Python 3.5 will generate a deprecation warning. Updating Python versions is recommended.

New Features

  • Adds Starlette framework instrumentation

    Starlette applications will now be automatically instrumented. Transaction data will be collected and recorded for application routes, background tasks, exception handlers, and installed middleware. Exception logging has also been added.

  • Adds FastAPI framework instrumentation

    FASTAPI applications will also now be automatically instrumented. See above for instrumentation details.

Bug Fixes

  • Fix deprecation warning for find_loader in python 3

    Using the agent no longer generates a deprecation warning for find_loader. The call to find_loader has been replaced with find_spec.