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 attribute value limit exceptions for LLM input/content #1087

Closed lrafeei closed 6 months ago

lrafeei commented 6 months ago

Overview

This PR removes the attribute character limitation for specific LLMs' inputs/content

Event name Attribute name
LlmChatCompletionMessage content
LlmEmbedding input
github-actions[bot] commented 6 months ago

🦙 MegaLinter status: ✅ SUCCESS

Descriptor Linter Files Fixed Errors Elapsed time
✅ PYTHON bandit 1 0 4.56s
✅ PYTHON black 2 0 0 0.89s
✅ PYTHON flake8 2 0 0.44s
✅ PYTHON isort 2 0 0 0.26s
✅ PYTHON pylint 2 0 2.64s

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

Codecov Report

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

Project coverage is 81.87%. Comparing base (b200fb0) to head (264dc3b). Report is 10 commits behind head on develop-ai-limited-preview-3.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## develop-ai-limited-preview-3 #1087 +/- ## ============================================================= Coverage 81.87% 81.87% ============================================================= Files 192 192 Lines 21151 21152 +1 Branches 3710 3710 ============================================================= + Hits 17317 17319 +2 Misses 2773 2773 + Partials 1061 1060 -1 ```

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