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

Remove response usage tokens from summary events. #1107

Closed umaannamalai closed 8 months ago

umaannamalai commented 8 months ago

This PR removes the legacy attributes response.usage.completion_tokens, response.usage.total_tokens, and response.usage.prompt_tokens from openai and bedrock.

github-actions[bot] commented 8 months ago

🦙 MegaLinter status: ✅ SUCCESS

Descriptor Linter Files Fixed Errors Elapsed time
✅ PYTHON bandit 2 0 5.38s
✅ PYTHON black 8 0 0 1.52s
✅ PYTHON flake8 8 0 0.71s
✅ PYTHON isort 8 0 0 0.2s
✅ PYTHON pylint 8 0 5.52s

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_