Quick Start
1
Install Package
Install PraisonAI Agents:Note: Telemetry is included by default and automatically enabled unless disabled.
2
Simple Example
Create
simple_agent_example.py
:3
Check Telemetry (Optional)
Access telemetry metrics programmatically:
4
Disable Telemetry (Optional)
To disable telemetry, set any of these environment variables before running:
What is Tracked
PraisonAI telemetry collects only minimal, anonymous metrics:Usage Metrics
- Number of agent executions
- Number of task completions
- Tool usage (names only)
- Error types (no messages)
Environment Info
- Framework version
- Python version
- Operating system type
- Anonymous session ID
Privacy Guarantee: No personal data, prompts, responses, or user content is ever collected. Only anonymous usage metrics are tracked.
Disabling Telemetry
Telemetry can be disabled in multiple ways:Environment Variables (Recommended)
Programmatically
How Telemetry Works
Telemetry in PraisonAI is automatic and minimal:- Automatic Integration: When you create agents and run workflows, telemetry is automatically integrated
- Anonymous Tracking: Only counts and types are tracked, never content
- Memory Storage: Currently metrics are only stored in memory (no network calls)
- Session-based: Each run gets a unique anonymous session ID
- Privacy-first: Respects DO_NOT_TRACK standard and multiple opt-out methods
Advanced Usage
Accessing Telemetry Data
Manual Tracking (Advanced)
Integration with External Services
PostHog Integration (Coming Soon)
PraisonAI telemetry includes built-in PostHog support for anonymous analytics:AgentOps Integration
For more advanced monitoring, you can use AgentOps alongside the built-in telemetry:Backward Compatibility
The telemetry module maintains compatibility with the previous interface:Best Practices
Privacy First
Privacy First
- Telemetry is designed to be minimal and privacy-focused
- No personal data, prompts, or responses are ever collected
- Always respect user preferences for tracking
- Use environment variables for easy opt-out
Performance Impact
Performance Impact
- Telemetry has minimal overhead
- Metrics are stored in memory only (no network calls in current version)
- Automatic integration means no extra code needed
- PostHog integration (when available) uses async mode to prevent blocking
Development vs Production
Development vs Production
Troubleshooting
Telemetry Not Working
If telemetry isn’t tracking:
- Check environment variables aren’t disabling it
- Verify telemetry.enabled is True
- Check debug logs with LOGLEVEL=DEBUG
- Ensure you’re using the latest version
Privacy Concerns
If you have privacy concerns:
- Review what’s tracked (only anonymous metrics)
- Disable telemetry via environment variables
- Check the source code for transparency
- No network calls in current implementation
Next Steps
Monitoring
Explore AgentOps integration for advanced monitoring
Cost Tracking
Learn about detailed latency and cost tracking
PraisonAI telemetry is designed to be minimal, privacy-focused, and helpful. It collects only anonymous usage metrics to help improve the framework while respecting user privacy. Telemetry can be easily disabled at any time.