File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed
static/app/views/insights/agentMonitoring/components Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -173,6 +173,8 @@ function useEAPSpanAttributes(nodes: Array<TraceTreeNode<TraceTree.NodeValue>>)
173
173
const spans = useMemo ( ( ) => {
174
174
return nodes . filter ( node => isEAPSpanNode ( node ) ) ;
175
175
} , [ nodes ] ) ;
176
+ const projectIds = spans . map ( span => span . value . project_id ) ;
177
+
176
178
const spanAttributesRequest = useEAPSpans (
177
179
{
178
180
search : `span_id:[${ spans . map ( span => span . value . event_id ) . join ( ',' ) } ]` ,
@@ -181,9 +183,19 @@ function useEAPSpanAttributes(nodes: Array<TraceTreeNode<TraceTree.NodeValue>>)
181
183
keyToTag ( AI_MODEL_ID_ATTRIBUTE , 'string' ) ,
182
184
keyToTag ( AI_TOTAL_TOKENS_ATTRIBUTE , 'number' ) ,
183
185
keyToTag ( AI_TOOL_NAME_ATTRIBUTE , 'string' ) ,
184
- keyToTag ( AI_AGENT_NAME_ATTRIBUTE , 'string' ) ,
185
186
] as EAPSpanProperty [ ] ,
186
187
limit : 100 ,
188
+ // Pass custom values as the page filters are not available in the trace view
189
+ pageFilters : {
190
+ projects : projectIds ,
191
+ environments : [ ] ,
192
+ datetime : {
193
+ period : '90d' ,
194
+ start : null ,
195
+ end : null ,
196
+ utc : true ,
197
+ } ,
198
+ } ,
187
199
} ,
188
200
Referrer . TRACE_DRAWER
189
201
) ;
You can’t perform that action at this time.
0 commit comments