MCPcopy Index your code
hub / github.com/simstudioai/sim / main

Function main

apps/sim/scripts/backfill-trace-spans.ts:170–179  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

168}
169
170async function main(): Promise<void> {
171 const options = parseArgs(process.argv.slice(2))
172 const startedAt = Date.now()
173
174 console.log('Backfilling trace storage (externalizing execution_data)…')
175 const { migrated, failed } = await backfillTraceStorage(options.maxBatches)
176 console.log(`Trace storage done: ${migrated} migrated, ${failed} skipped/failed.`)
177
178 console.log(`Backfill complete in ${((Date.now() - startedAt) / 1000).toFixed(1)}s.`)
179}
180
181main()
182 .catch((err) => {

Callers 1

Calls 3

parseArgsFunction · 0.85
backfillTraceStorageFunction · 0.85
logMethod · 0.80

Tested by

no test coverage detected