newrelic / newrelic-python-agent

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

Add `ai.monitoring.enabled` config setting #1069

Closed umaannamalai closed 7 months ago

umaannamalai commented 7 months ago

This PR adds the ai.monitoring.enabled config setting

github-actions[bot] commented 7 months ago

🦙 MegaLinter status: ❌ ERROR

Descriptor Linter Files Fixed Errors Elapsed time
❌ PYTHON bandit 10 1 7.91s
✅ PYTHON black 30 6 0 4.54s
❌ PYTHON flake8 30 9 1.8s
✅ PYTHON isort 30 19 0 0.32s
❌ PYTHON pylint 30 48 18.48s

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

Codecov Report

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

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

Files Patch % Lines
newrelic/hooks/mlmodel_langchain.py 81.25% 3 Missing and 3 partials :warning:
newrelic/common/utilization.py 98.52% 1 Missing :warning:
newrelic/hooks/external_feedparser.py 88.88% 0 Missing and 1 partial :warning:
newrelic/hooks/template_genshi.py 66.66% 0 Missing and 1 partial :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## develop-ai-limited-preview-3 #1069 +/- ## =============================================================== Coverage ? 81.86% =============================================================== Files ? 192 Lines ? 21102 Branches ? 3690 =============================================================== Hits ? 17275 Misses ? 2763 Partials ? 1064 ```

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