{"ok":true,"data":{"trace":{"id":"10533978-c754-464f-ba30-f50e51f8c66b","trace_id":"Pgqg80ia8l6KbBSb","name":"SQL Query: SELECT COUNT(*) as total FROM traces...","description":"Database Query Execution","session_id":"X-ewNwdQvNW4nPbS","source_domain":null,"source_site_id":null,"agent_name":null,"model_name":null,"status":"completed","start_time":"2026-05-22T21:35:32.110Z","end_time":"2026-05-22T21:35:37.559Z","duration_ms":5449,"total_spans":1,"total_tool_calls":0,"total_tokens_used":0,"error_count":0,"retry_count":0,"ai_summary":null,"ai_health_score":null,"ai_anomalies":[],"ai_suggestions":[],"ai_analyzed_at":null,"network_percentile":null,"similar_trace_ids":null,"is_public":true,"share_token":"req_mphfv2pn_2wrq2in","annotations_count":0,"metadata":{"query":"\n      SELECT COUNT(*) as total FROM traces\n      WHERE is_public = true\n        AND (?::text IS NULL OR status = ?)\n        AND (?::text IS NULL OR agent_name ILIKE ?)\n        AND (?::text IS NULL OR source_domain = ?)\n        AND (?::text IS NULL OR name ILIKE ? OR description ILIKE ?)\n        AND (ai_health_score IS NULL OR ai_health_score >= ?)\n        AND (ai_health_score IS NULL OR ai_health_score <= ?)\n    ","durationMs":5449},"tags":[],"fingerprint_hash":"c221ef976936f390ef02f7901cba6e9d4ee1b289fb386018e80309a11351a60f","created_at":"2026-05-22T21:35:37.599Z","updated_at":"2026-05-22T21:35:37.599Z"},"completion":{"completionStatus":"completed","reason":"All required spans are complete or explicitly optional/not applicable.","algorithmVersion":"trace-completion-v2.5.0","computedAt":"2026-05-26T02:40:24.831Z","expectedSpans":["zlCeDQS_"],"completedSpans":["zlCeDQS_"],"missingSpans":[],"pendingSpans":[],"lateSpans":[],"orphanSpans":[],"failedSpans":[],"optionalSpans":[],"notApplicableSpans":[],"counts":{"expected":1,"completed":1,"pending":0,"missing":0,"failed":0,"late":0,"orphan":0,"optional":0,"notApplicable":0}},"storage":"database"}}