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

LLM Custom Attributes Context Manager API #1214

Closed umaannamalai closed 1 month ago

umaannamalai commented 1 month ago

Add new WithLlmCustomAttributes context manager API

github-actions[bot] commented 1 month ago

🦙 MegaLinter status: ✅ SUCCESS

Descriptor Linter Files Fixed Errors Elapsed time
✅ PYTHON bandit 5 0 6.63s
✅ PYTHON black 20 0 0 3.11s
✅ PYTHON flake8 20 0 1.66s
✅ PYTHON isort 20 0 0 0.29s
✅ PYTHON pylint 20 0 11.3s

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 1 month ago

Codecov Report

Attention: Patch coverage is 88.23529% with 4 lines in your changes missing coverage. Please review.

Project coverage is 81.24%. Comparing base (2d17237) to head (182cc71).

Files with missing lines Patch % Lines
newrelic/api/llm_custom_attributes.py 80.00% 2 Missing and 2 partials :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #1214 +/- ## ========================================== + Coverage 81.20% 81.24% +0.03% ========================================== Files 197 198 +1 Lines 21644 21675 +31 Branches 3428 3434 +6 ========================================== + Hits 17576 17609 +33 + Misses 2937 2935 -2 Partials 1131 1131 ```

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