newrelic / newrelic-python-agent

New Relic Python Agent
https://docs.newrelic.com/docs/agents/python-agent
Apache License 2.0
178 stars 102 forks source link

Add LLM metadata support. #1075

Closed umaannamalai closed 8 months ago

umaannamalai commented 8 months ago

_Before contributing, please read our contributing guidelines and code of conduct._

Overview

Describe the changes present in the pull request

Related Github Issue

Include a link to the related GitHub issue, if applicable

Testing

The agent includes a suite of tests which should be used to verify your changes don't break existing functionality. These tests will run with Github Actions when a pull request is made. More details on running the tests locally can be found here, For most contributions it is strongly recommended to add additional tests which exercise your changes.

github-actions[bot] commented 8 months ago

🦙 MegaLinter status: ✅ SUCCESS

Descriptor Linter Files Fixed Errors Elapsed time
✅ PYTHON bandit 3 0 6.2s
✅ PYTHON black 19 0 0 2.64s
✅ PYTHON flake8 19 0 1.39s
✅ PYTHON isort 19 0 0 0.34s
✅ PYTHON pylint 19 0 10.52s

See detailed report in MegaLinter reports _Set VALIDATE_ALL_CODEBASE: true in mega-linter.yml to validate all sources, not only the diff_

_MegaLinter is graciously provided by OX Security_

codecov-commenter commented 8 months ago

Codecov Report

Attention: Patch coverage is 98.14815% with 1 lines in your changes are missing coverage. Please review.

:exclamation: No coverage uploaded for pull request base (develop-ai-limited-preview-3@3d0a4bb). Click here to learn what that means.

Files Patch % Lines
newrelic/hooks/mlmodel_langchain.py 96.00% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## develop-ai-limited-preview-3 #1075 +/- ## =============================================================== Coverage ? 81.64% =============================================================== Files ? 192 Lines ? 21155 Branches ? 3702 =============================================================== Hits ? 17272 Misses ? 2821 Partials ? 1062 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.