Skip to content

Commit 4003ba2

Browse files
authored
feat(ai-monitoring): Show table even if there is no cost data (#70555)
If costs or token usage fail to load, still show the table with zero values.
1 parent 1e5349e commit 4003ba2

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

static/app/views/aiMonitoring/PipelinesTable.tsx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -119,11 +119,7 @@ export function PipelinesTable() {
119119
referrer: 'api.ai-pipelines.view',
120120
});
121121

122-
const {
123-
data: tokensUsedData,
124-
error: tokensUsedError,
125-
isLoading: tokensUsedLoading,
126-
} = useSpanMetrics({
122+
const {data: tokensUsedData, isLoading: tokensUsedLoading} = useSpanMetrics({
127123
search: new MutableSearch(
128124
`span.category:ai span.ai.pipeline.group:[${(data as Row[])?.map(x => x['span.group']).join(',')}]`
129125
),
@@ -185,7 +181,7 @@ export function PipelinesTable() {
185181
/>
186182
<GridEditable
187183
isLoading={isLoading}
188-
error={error ?? tokensUsedError}
184+
error={error}
189185
data={rows}
190186
columnOrder={COLUMN_ORDER}
191187
columnSortBy={[

0 commit comments

Comments
 (0)