(traceId: string | undefined)
| 126 | } |
| 127 | |
| 128 | export function useTrace(traceId: string | undefined) { |
| 129 | return useQuery<TraceDetail>({ |
| 130 | queryKey: traceKeys.detail(traceId ?? ''), |
| 131 | queryFn: () => apiClient.get(`/api/traces/${traceId}?lint=1`), |
| 132 | enabled: !!traceId, |
| 133 | staleTime: 10_000, |
| 134 | }) |
| 135 | } |
| 136 | |
| 137 | export interface RunSummary { |
| 138 | run_id: string |
no outgoing calls
no test coverage detected
searching dependent graphs…