Monitoring
Monitor SHIELD production for issues and performance.Vercel Analytics
Enable in Dashboard:- Web Vitals
- Traffic insights
- Error tracking
Database Monitoring
Neon Dashboard
Monitor:- Query performance
- Connection count
- Storage usage
Alerts
Set up alerts for:- High latency (> 500ms)
- Connection limit
- Storage threshold
Smart Contract Monitoring
Tenderly
Set up Tenderly for:- Transaction monitoring
- Alert rules
- Gas usage tracking
Custom Alerts
Watch for:- Failed
createPolicycalls - Failed
logAttemptcalls - Unusual activity patterns
Error Tracking
Sentry
Logging
Structured logging in API routes:Health Checks
Create/api/health:
Alert Thresholds
| Metric | Warning | Critical |
|---|---|---|
| API errors | > 1% | > 5% |
| Avg response time | > 500ms | > 1000ms |
| DB connections | > 80% | > 95% |
| Failed txs | > 5% | > 10% |
Runbooks
Document responses to common issues:- High error rate
- Database connection issues
- Contract call failures
- IPFS upload failures

