File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
static/app/views/insights/agents/components Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -386,9 +386,12 @@ function hasError(node: AITraceSpanNode) {
386
386
return true ;
387
387
}
388
388
389
- // spans with status unknown are errors
390
389
if ( isEAPSpanNode ( node ) ) {
391
- return node . value . additional_attributes ?. [ SpanFields . SPAN_STATUS ] === 'unknown' ;
390
+ const status = node . value . additional_attributes ?. [ SpanFields . SPAN_STATUS ] ;
391
+ if ( typeof status === 'string' ) {
392
+ return status . includes ( 'error' ) ;
393
+ }
394
+ return false ;
392
395
}
393
396
394
397
return false ;
Original file line number Diff line number Diff line change @@ -127,7 +127,7 @@ export function TracesTable() {
127
127
const traceErrorRequest = useSpans (
128
128
{
129
129
// Get all generations and tool calls with status unknown
130
- search : `has:span.status ! span.status:ok trace:[${ tracesRequest . data ?. data . map ( span => span . trace ) . join ( ',' ) } ]` ,
130
+ search : `has:span.status span.status:*error trace:[${ tracesRequest . data ?. data . map ( span => span . trace ) . join ( ',' ) } ]` ,
131
131
fields : [ 'trace' , ...AI_AGENT_SUB_OPS ] ,
132
132
limit : tracesRequest . data ?. data . length ?? 0 ,
133
133
enabled : Boolean ( tracesRequest . data && tracesRequest . data . data . length > 0 ) ,
You can’t perform that action at this time.
0 commit comments