{"ok":true,"data":{"trace":{"id":"59b937e3-c0d7-4bbb-a5e2-6ac739b961b5","trace_id":"It22Xa12ABGrxPSP","name":"SQL Query: INSERT INTO spans (\n      span_id, trace_id,...","description":"Database Query Execution","session_id":"DcIEsetXrg0z7Vio","source_domain":null,"source_site_id":null,"agent_name":null,"model_name":null,"status":"completed","start_time":"2026-05-22T21:35:41.209Z","end_time":"2026-05-22T21:35:41.251Z","duration_ms":42,"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_mphfv5k6_hlm2i29","annotations_count":0,"metadata":{"query":"\n    INSERT INTO spans (\n      span_id, trace_id, parent_span_id, name, kind, depth, sequence_number,\n      mcp_method_name, mcp_protocol_version, mcp_session_id, mcp_resource_uri,\n      gen_ai_system, gen_ai_operation_name, gen_ai_request_model,\n      gen_ai_tool_name, gen_ai_tool_call_id, gen_ai_tool_call_arguments, gen_ai_tool_call_result,\n      gen_ai_tokens_input, gen_ai_tokens_output,\n      start_time, end_time, duration_ms, status,\n      error_type, error_message, attributes\n    )\n    SELECT * FROM UNNEST(\n      ?::text[],\n      ?::text[],\n      ?::text[],\n      ?::text[],\n      ?::text[],\n      ?::integer[],\n      ?::integer[],\n      ?::text[],\n      ?::text[],\n      ?::text[],\n      ?::text[],\n      ?::text[],\n      ?::text[],\n      ?::text[],\n      ?::text[],\n      ?::text[],\n      ?::jsonb[],\n      ?::jsonb[],\n      ?::integer[],\n      ?::integer[],\n      ?::timestamptz[],\n      ?::timestamptz[],\n      ?::numeric[],\n      ?::text[],\n      ?::text[],\n      ?::text[],\n      ?::jsonb[]\n    )\n  ","durationMs":42},"tags":[],"fingerprint_hash":"8ee05382c1d0c7c3c871f13140bed7b3f74902c4b9087d99b41528a1488caf0b","created_at":"2026-05-22T21:35:41.346Z","updated_at":"2026-05-22T21:35:41.346Z"},"completion":{"completionStatus":"completed","reason":"All required spans are complete or explicitly optional/not applicable.","algorithmVersion":"trace-completion-v2.5.0","computedAt":"2026-05-26T01:50:19.175Z","expectedSpans":["XMlc3JZA"],"completedSpans":["XMlc3JZA"],"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"}}