This release of the Python agent adds instrumentation for aiomcache, support for an internally set collect_ai serverside configuration setting, formatting stack traces in NewRelicContextFormatter, fixes a crash in package catpuring in Python 2.7, an attribute check in OpenAI instrumentation, and casing on LangChain metric and span names.
Add instrumentation support for aiomcache. Thank you Jair Henrique for the contribution!
Add support for collect_ai serverside config
Add support for an internally set collect_ai serverside configuration setting. Note this is returned in the connect response when a particular feature flag is set on an account.
Adds support for formatting stack traces in NewRelicContextFormatter
NewRelicContextFormatter now implements the format_exc_info class method that formats stack traces. Thank you Daniel Fritz for the contribution!
Bug fixes
Fix crash in package capture in Python 2.7
Previously, when capturing packages on Python 2.7 an UnboundLocalError would be raised. This has been fixed.
Fix attribute check in OpenAI
Fix a typo in an attribute check inside the OpenAI instrumentation. Thank you Liam Niehus-Staab for the contribution!
Fix casing on LangChain metric and span names
Previously, if LangChain was being used in combination with an unsupported Large Language Model library (aka not Bedrock or OpenAI) then the AI dashboard tab would not appear in the UI because the metric name was not cased correctly. This has been fixed and the Span names have been updated to match the casing of the metric name.
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.
Commits
47581e9 NewRelicContextFormatter update to support adding a stack trace (#1168)
5469c4a Add support for account level AIM disable. (#1175)
9b6b2e5 Change Langhchain->LangChain per agent spec (#1176)
f7efc7d Merge pull request #1174 from niehusst/main
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore major version` will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
- `@dependabot ignore minor version` will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
- `@dependabot ignore ` will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
- `@dependabot unignore ` will remove all of the ignore conditions of the specified dependency
- `@dependabot unignore ` will remove the ignore condition of the specified dependency and ignore conditions
Bumps the minor-patch group with 3 updates: newrelic, ruff and sphinx.
Updates
newrelic
from 9.11.0 to 9.12.0Release notes
Sourced from newrelic's releases.
Commits
47581e9
NewRelicContextFormatter update to support adding a stack trace (#1168)5469c4a
Add support for account level AIM disable. (#1175)9b6b2e5
Change Langhchain->LangChain per agent spec (#1176)f7efc7d
Merge pull request #1174 from niehusst/main61c6fea
Merge branch 'main' into main5a3431f
Adds instrumentation for aiomcache (#1173)60d1669
fix: typo bug8890cde
Merge pull request #1172 from newrelic/fix-verison-check861f91c
Merge branch 'main' into fix-verison-check541d126
Enable GraphQL master tests (#1167)Updates
ruff
from 0.5.1 to 0.5.2Release notes
Sourced from ruff's releases.
... (truncated)
Changelog
Sourced from ruff's changelog.
Commits
dc8db1a
Make some amendments to the v0.5.2 changelog (#12319)18c364d
[flake8-bandit
] Support explicit string concatenations in S310 HTTP detecti...7a7c601
Bump version to v0.5.2 (#12316)3bfbbbc
Avoid allocation when validating HTTP and HTTPS prefixes (#12313)1a3ee45
[flake8-bandit
] AvoidS310
violations for HTTP-safe f-strings (#12305)6584886
[refurb
] Makelist-reverse-copy
an unsafe fix (#12303)456d6a2
Considerwith
blocks as single-item branches (#12311)940df67
Omit code frames for fixes with empty ranges (#12304)e58713e
Make cache-write failures non-fatal (#12302)aa5c53b
Remove 'non-obvious' allowance for E721 (#12300)Updates
sphinx
from 7.3.7 to 7.4.4Release notes
Sourced from sphinx's releases.
Changelog
Sourced from sphinx's changelog.
... (truncated)
Commits
1e13565
Bump to 7.4.4 final12064e0
Add CHANGES entry for GH-12586cfd3645
intersphinx: Don't warn about pure-duplicate ambiguous definitions when loadi...afaddd3
Update LaTeX docs with new admonition colours (#12588)6699a89
Bump versionc4a7f5b
Bump to 7.4.3 final4bdef1b
Remove old-styledsource_suffix
values in tests55c8953
Restore support for list-stylesource_suffix
with third-party parsers (#1...a874246
Bump version1afa344
Bump to 7.4.2 finalDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show