Update bd-1048 with investigation findings

This commit is contained in:
Steve Yegge
2025-11-02 22:12:21 -08:00
parent 7fe7d4d50a
commit 63ff9b93bc
3 changed files with 26 additions and 10 deletions

View File

@@ -103,6 +103,8 @@ func (s *Server) validateDatabaseBinding(req *Request) error {
}
func (s *Server) handleRequest(req *Request) Response {
fmt.Fprintf(os.Stderr, "Debug: handleRequest called for operation: %s (bd-1048)\n", req.Operation)
// Track request timing
start := time.Now()
@@ -110,6 +112,7 @@ func (s *Server) handleRequest(req *Request) Response {
defer func() {
latency := time.Since(start)
s.metrics.RecordRequest(req.Operation, latency)
fmt.Fprintf(os.Stderr, "Debug: handleRequest completed for operation: %s in %v (bd-1048)\n", req.Operation, latency)
}()
// Validate database binding (skip for health/metrics to allow diagnostics)