MCPcopy Create free account
hub / github.com/ShipSecAI/studio / collectTraces

Function collectTraces

worker/scripts/run-long-lived-workflow.ts:106–116  ·  view source on GitHub ↗
(pool: Pool, runId: string)

Source from the content-addressed store, hash-verified

104}
105
106async function collectTraces(pool: Pool, runId: string): Promise<TraceRow[]> {
107 const result = await pool.query<TraceRow>(
108 `SELECT sequence, node_ref, type, timestamp, level, message, error
109 FROM workflow_traces
110 WHERE run_id = $1
111 ORDER BY sequence ASC`,
112 [runId],
113 );
114
115 return result.rows;
116}
117
118async function main() {
119 const pool = new Pool({ connectionString: DATABASE_URL });

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected