Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LLM Custom Attributes Context Manager API #1214

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

umaannamalai
Copy link
Contributor

Add new WithLlmCustomAttributes context manager API

Copy link

github-actions bot commented Sep 20, 2024

🦙 MegaLinter status: ❌ ERROR

Descriptor Linter Files Fixed Errors Elapsed time
✅ PYTHON bandit 5 0 6.84s
✅ PYTHON black 20 2 0 3.61s
❌ PYTHON flake8 20 14 1.52s
✅ PYTHON isort 20 14 0 0.3s
✅ PYTHON pylint 20 0 12.23s

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
Copy link

codecov-commenter commented Sep 20, 2024

Codecov Report

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

Project coverage is 81.49%. Comparing base (844558d) to head (4f82456).

Files with missing lines Patch % Lines
newrelic/hooks/mlmodel_openai.py 73.68% 2 Missing and 3 partials ⚠️
newrelic/api/llm_custom_attributes.py 87.09% 2 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1214      +/-   ##
==========================================
+ Coverage   81.47%   81.49%   +0.01%     
==========================================
  Files         197      198       +1     
  Lines       21859    21911      +52     
  Branches     3827     3838      +11     
==========================================
+ Hits        17810    17856      +46     
+ Misses       2922     2918       -4     
- Partials     1127     1137      +10     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@hmstepanek hmstepanek self-requested a review September 20, 2024 23:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants