Notes
This release of the Python agent enables AI monitoring by default with the new ai_monitoring.basic_telemetry.enabled setting, deprecates the ai_monitoring.enabled setting, and fixes a crash in LangChain tool instrumentation.
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.
Changes
-
AI monitoring is now enabled by default
- LLM instrumentation is now enabled by default and the agent sends
Llm*custom events, spans, and metrics (without message content) unless configured otherwise. - To record prompt and response content, set
ai_monitoring.record_content.enabledtotrue. - To opt out, set
ai_monitoring.basic_telemetry.enabledtofalsein newrelic.ini, or set the environment variableNEW_RELIC_AI_MONITORING_BASIC_TELEMETRY_ENABLED=false. - The
ai_monitoring.enabledsetting and theNEW_RELIC_AI_MONITORING_ENABLEDenvironment variable are deprecated, but setting either one tofalsealso opts out of AI Monitoring.
- LLM instrumentation is now enabled by default and the agent sends
Bug fixes
- Fixed a crash in LangChain
StructuredTool.invokeandStructuredTool.ainvokeinstrumentation whenconfigor itsmetadatawasNone.
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.