Skip to content

Commit 7c6cb14

Browse files
committed
fix: span events are optional, as logs don't have them
1 parent f086626 commit 7c6cb14

File tree

1 file changed

+1
-1
lines changed
  • packages/core/src/v3/schemas

1 file changed

+1
-1
lines changed

packages/core/src/v3/schemas/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1233,7 +1233,7 @@ export const RetrieveRunTraceSpanSchema = z.object({
12331233
runId: z.string(),
12341234
taskSlug: z.string().optional(),
12351235
taskPath: z.string().optional(),
1236-
events: z.array(z.any()),
1236+
events: z.array(z.any()).optional(),
12371237
startTime: z.coerce.date(),
12381238
duration: z.number(),
12391239
isError: z.boolean(),

0 commit comments

Comments
 (0)