clavitor/clavis/clavis-telemetry
James b4aced5c03 telemetry: fix CRITICAL silent failures (Cardinal Rule #1)
Fixes #2, #3, #4

Issue #2 - Silent database errors in updateSpan():
- Add error handling for telemetry INSERT (ERR-TELEMETRY-004)
- Add error handling for all table/index creation (ERR-TELEMETRY-005 to -010)
- Return HTTP 500 to client on insert failure

Issue #3 - Silent failure in Kuma push:
- Return early on non-OK status from Kuma
- Proper error logging with body close handling

Issue #4 - Unchecked flush error in tarpit:
- Verify http.Flusher available before tarpit
- Log ERR-TELEMETRY-040 and abort if flusher unavailable
- Remove redundant flusher checks in loop

All changes: security failures are now LOUD (Cardinal Rule #1)

Author: Hans <hans-20250409-001>
2026-04-09 01:20:08 -04:00
..
CLAUDE.md Address Hans' workflow feedback - make it actionable 2026-04-09 01:10:39 -04:00
clavis-telemetry Update all CLAUDE.md files to reference CLAVITOR-AGENT-HANDBOOK.md 2026-04-08 15:24:51 -04:00
go.mod Update all CLAUDE.md files to reference CLAVITOR-AGENT-HANDBOOK.md 2026-04-08 15:24:51 -04:00
go.sum Update all CLAUDE.md files to reference CLAVITOR-AGENT-HANDBOOK.md 2026-04-08 15:24:51 -04:00
kuma.go telemetry: fix CRITICAL silent failures (Cardinal Rule #1) 2026-04-09 01:20:08 -04:00
main.go telemetry: fix CRITICAL silent failures (Cardinal Rule #1) 2026-04-09 01:20:08 -04:00
main_test.go Update all CLAUDE.md files to reference CLAVITOR-AGENT-HANDBOOK.md 2026-04-08 15:24:51 -04:00