agentops
agentops copied to clipboard
Fix agentops unauthorized errors and deprecated call
📥 Pull Request
📘 Description Resolves AgentOps integration issues by:
- Updating deprecated
agentops.end_session()to the newagentops.start_trace()andagentops.end_trace()API. - Enhancing API key handling to prevent
401 Unauthorizederrors. Includes updated examples, comprehensive documentation, and a migration helper script for existing codebases.
🧪 Testing
Validated fixes by running the test_fix.py demonstration script and ensuring the crewai_agentops_fixed.py example is correctly configured for execution with proper API keys.
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
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.