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

Fixes for langchain & openai #1199

Closed hmstepanek closed 2 months ago

hmstepanek commented 2 months ago

Overview

github-actions[bot] commented 2 months ago

🦙 MegaLinter status: ❌ ERROR

Descriptor Linter Files Fixed Errors Elapsed time
✅ PYTHON bandit 3 0 6.18s
✅ PYTHON black 6 0 0 2.71s
✅ PYTHON flake8 6 0 1.34s
✅ PYTHON isort 6 0 0 0.28s
❌ PYTHON pylint 6 33 9.99s

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 2 months ago

Codecov Report

Attention: Patch coverage is 85.41667% with 7 lines in your changes missing coverage. Please review.

Project coverage is 81.62%. Comparing base (ec59999) to head (f7719a3).

Files with missing lines Patch % Lines
newrelic/hooks/mlmodel_langchain.py 81.57% 2 Missing and 5 partials :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1199 +/- ## ========================================== - Coverage 81.64% 81.62% -0.03% ========================================== Files 197 197 Lines 21773 21803 +30 Branches 3802 3807 +5 ========================================== + Hits 17777 17797 +20 - Misses 2890 2893 +3 - Partials 1106 1113 +7 ```

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