Phil Skentelbery
1e2135a49a
fix: Resolve v1.1.2-rc.1 production issues - Static files and metrics
This release candidate fixes two critical production issues discovered in v1.1.2-rc.1:
1. CRITICAL: Static files returning 500 errors
- HTTP monitoring middleware was accessing response.data on streaming responses
- Fixed by checking direct_passthrough flag before accessing response data
- Static files (CSS, JS, images) now load correctly
- File: starpunk/monitoring/http.py
2. HIGH: Database metrics showing zero
- Configuration key mismatch: config set METRICS_SAMPLING_RATE (singular),
buffer read METRICS_SAMPLING_RATES (plural)
- Fixed by standardizing on singular key name
- Modified MetricsBuffer to accept both float and dict for flexibility
- Changed default sampling from 10% to 100% for better visibility
- Files: starpunk/monitoring/metrics.py, starpunk/config.py
Version: 1.1.2-rc.2
Documentation:
- Investigation report: docs/reports/2025-11-28-v1.1.2-rc.1-production-issues.md
- Architect review: docs/reviews/2025-11-28-v1.1.2-rc.1-architect-review.md
- Implementation report: docs/reports/2025-11-28-v1.1.2-rc.2-fixes.md
Testing: All monitoring tests pass (28/28)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-28 09:46:31 -07:00
..
2025-11-26 14:13:44 -07:00
2025-11-26 14:54:52 -07:00
2025-11-25 13:28:56 -07:00
2025-11-27 20:46:49 -07:00
2025-11-25 13:28:56 -07:00
2025-11-25 13:28:56 -07:00
2025-11-28 02:12:24 -07:00
2025-11-27 21:42:37 -07:00
2025-11-25 13:28:56 -07:00
2025-11-28 09:46:31 -07:00
2025-11-28 09:46:31 -07:00
2025-11-25 13:28:56 -07:00
2025-11-25 13:28:56 -07:00