From 90ba503e067e7c7ed47ef66bc35a6f55d2ab26e6 Mon Sep 17 00:00:00 2001 From: Roger Yang <80478925+RogerHYang@users.noreply.github.com> Date: Tue, 19 Mar 2024 18:16:58 -0700 Subject: [PATCH] fix(ui): increase pagination size for TracePage (#2642) --- app/src/pages/trace/TracePage.tsx | 6 +++++- .../trace/__generated__/TracePageQuery.graphql.ts | 13 +++++++++---- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/app/src/pages/trace/TracePage.tsx b/app/src/pages/trace/TracePage.tsx index 04e7821dcde..f9b9bf32f53 100644 --- a/app/src/pages/trace/TracePage.tsx +++ b/app/src/pages/trace/TracePage.tsx @@ -181,7 +181,11 @@ export function TracePage() { query TracePageQuery($traceId: ID!, $id: GlobalID!) { project: node(id: $id) { ... on Project { - spans(traceIds: [$traceId], sort: { col: startTime, dir: asc }) { + spans( + traceIds: [$traceId] + sort: { col: startTime, dir: asc } + first: 1000 + ) { edges { span: node { context { diff --git a/app/src/pages/trace/__generated__/TracePageQuery.graphql.ts b/app/src/pages/trace/__generated__/TracePageQuery.graphql.ts index f25f91e7300..9a6336e9e70 100644 --- a/app/src/pages/trace/__generated__/TracePageQuery.graphql.ts +++ b/app/src/pages/trace/__generated__/TracePageQuery.graphql.ts @@ -1,5 +1,5 @@ /** - * @generated SignedSource<> + * @generated SignedSource<> * @lightSyntaxTransform * @nogrep */ @@ -97,6 +97,11 @@ v2 = [ } ], v3 = [ + { + "kind": "Literal", + "name": "first", + "value": 1000 + }, { "kind": "Literal", "name": "sort", @@ -570,16 +575,16 @@ return { ] }, "params": { - "cacheID": "11ad30bf928240a129bf81d6fc1601f2", + "cacheID": "21ef83105845ac504ea473ee46fafe2a", "id": null, "metadata": {}, "name": "TracePageQuery", "operationKind": "query", - "text": "query TracePageQuery(\n $traceId: ID!\n $id: GlobalID!\n) {\n project: node(id: $id) {\n __typename\n ... on Project {\n spans(traceIds: [$traceId], sort: {col: startTime, dir: asc}) {\n edges {\n span: node {\n context {\n spanId\n }\n name\n spanKind\n statusCode: propagatedStatusCode\n statusMessage\n startTime\n parentId\n latencyMs\n tokenCountTotal\n tokenCountPrompt\n tokenCountCompletion\n input {\n value\n mimeType\n }\n output {\n value\n mimeType\n }\n attributes\n events {\n name\n message\n timestamp\n }\n spanEvaluations {\n name\n label\n score\n }\n documentRetrievalMetrics {\n evaluationName\n ndcg\n precision\n hit\n }\n documentEvaluations {\n documentPosition\n name\n label\n score\n explanation\n }\n ...SpanEvaluationsTable_evals\n }\n }\n }\n }\n __isNode: __typename\n id\n }\n}\n\nfragment SpanEvaluationsTable_evals on Span {\n spanEvaluations {\n name\n label\n score\n explanation\n }\n}\n" + "text": "query TracePageQuery(\n $traceId: ID!\n $id: GlobalID!\n) {\n project: node(id: $id) {\n __typename\n ... on Project {\n spans(traceIds: [$traceId], sort: {col: startTime, dir: asc}, first: 1000) {\n edges {\n span: node {\n context {\n spanId\n }\n name\n spanKind\n statusCode: propagatedStatusCode\n statusMessage\n startTime\n parentId\n latencyMs\n tokenCountTotal\n tokenCountPrompt\n tokenCountCompletion\n input {\n value\n mimeType\n }\n output {\n value\n mimeType\n }\n attributes\n events {\n name\n message\n timestamp\n }\n spanEvaluations {\n name\n label\n score\n }\n documentRetrievalMetrics {\n evaluationName\n ndcg\n precision\n hit\n }\n documentEvaluations {\n documentPosition\n name\n label\n score\n explanation\n }\n ...SpanEvaluationsTable_evals\n }\n }\n }\n }\n __isNode: __typename\n id\n }\n}\n\nfragment SpanEvaluationsTable_evals on Span {\n spanEvaluations {\n name\n label\n score\n explanation\n }\n}\n" } }; })(); -(node as any).hash = "3eb9c41d3a890088db7da7443f143960"; +(node as any).hash = "89241948b75d8d017caaa59858e4a77b"; export default node;