mirror of
https://github.com/simstudioai/sim.git
synced 2026-01-27 15:58:11 -05:00
Fix trace spans
This commit is contained in:
@@ -233,7 +233,9 @@ export class DAGExecutor {
|
||||
userId: this.contextExtensions.userId,
|
||||
isDeployedContext: this.contextExtensions.isDeployedContext,
|
||||
blockStates: state.getBlockStates(),
|
||||
blockLogs: snapshotState?.blockLogs ?? [],
|
||||
// For run-from-block, start with empty logs - we only want fresh execution logs for trace spans
|
||||
// The snapshot's blockLogs are preserved separately for history
|
||||
blockLogs: overrides?.runFromBlockContext ? [] : (snapshotState?.blockLogs ?? []),
|
||||
metadata: {
|
||||
...this.contextExtensions.metadata,
|
||||
startTime: new Date().toISOString(),
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { RdsExecuteParams, RdsExecuteResponse } from '@/tools/rds/types'
|
||||
import type { RdsExecuteParams, RdsExecuteResponse } from '@/tools/rds/types'
|
||||
import type { ToolConfig } from '@/tools/types'
|
||||
|
||||
export const executeTool: ToolConfig<RdsExecuteParams, RdsExecuteResponse> = {
|
||||
|
||||
Reference in New Issue
Block a user