Investigate user session logging failures
📥 Pull Request
📘 Description
Addresses issues where AgentOps sessions fail to log silently by enhancing error visibility. This PR adds detailed logging for authentication and HTTP request failures, exposes client authentication status methods, and introduces a new debug_agentops.py script to help users diagnose connectivity and authentication problems.
🧪 Testing
The changes primarily improve error reporting and provide debugging tools. The new debug_agentops.py script was created to validate the improved error visibility and authentication checks. Manual testing involved simulating network issues and invalid API keys to confirm errors are now logged and reported correctly.
Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents
Codecov Report
:x: Patch coverage is 31.03448% with 20 lines in your changes missing coverage. Please review.
| Files with missing lines | Patch % | Lines |
|---|---|---|
| agentops/client/http/http_client.py | 25.00% | 9 Missing :warning: |
| agentops/client/client.py | 36.36% | 7 Missing :warning: |
| agentops/__init__.py | 33.33% | 4 Missing :warning: |
:loudspeaker: Thoughts on this report? Let us know!
This pull request has been automatically marked as stale because it has not had any activity in the last 14 days.
If no updates are made within 7 days, this PR will be automatically closed.