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 LLM attribute to transactions. #1050

Closed umaannamalai closed 8 months ago

umaannamalai commented 8 months ago

This PR adds an llm: True attribute to transactions that contain LLM spans.

github-actions[bot] commented 8 months ago

🦙 MegaLinter status: ❌ ERROR

Descriptor Linter Files Fixed Errors Elapsed time
✅ PYTHON bandit 3 0 5.17s
✅ PYTHON black 9 0 0 1.46s
✅ PYTHON flake8 9 0 0.67s
✅ PYTHON isort 9 6 0 0.32s
❌ PYTHON pylint 9 5 4.91s

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

All modified and coverable lines are covered by tests :white_check_mark:

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

Additional details and impacted files ```diff @@ Coverage Diff @@ ## develop-ai-limited-preview #1050 +/- ## ============================================================= Coverage ? 80.80% ============================================================= Files ? 191 Lines ? 20195 Branches ? 3507 ============================================================= Hits ? 16319 Misses ? 2837 Partials ? 1039 ```

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