Skip to content

Commit 8c8943c

Browse files
authored
fix shared trace events query (#1026)
1 parent f20c480 commit 8c8943c

File tree

1 file changed

+2
-2
lines changed
  • frontend/lib/actions/shared/spans

1 file changed

+2
-2
lines changed

frontend/lib/actions/shared/spans/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@ export const getSharedSpans = async (input: z.infer<typeof GetSharedTraceSchema>
6363
query: `
6464
SELECT id, formatDateTime(timestamp , '%Y-%m-%dT%H:%i:%S.%fZ') as timestamp, span_id spanId, name, attributes
6565
FROM events
66-
WHERE span_id IN {spanIds: Array(UUID)}
66+
WHERE trace_id = {traceId: UUID}
6767
`,
6868
parameters: {
69-
spanIds: spans.map((span) => span.spanId),
69+
traceId,
7070
},
7171
projectId: sharedTrace.projectId,
7272
});

0 commit comments

Comments
 (0)