File tree Expand file tree Collapse file tree 2 files changed +6
-5
lines changed
insights/agentMonitoring/utils
performance/newTraceDetails/traceDrawer/details/span/eapSections Expand file tree Collapse file tree 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -147,15 +147,16 @@ export function getTraceNodeAttribute(
147
147
}
148
148
149
149
if ( isEAPSpanNode ( node ) && attributes ) {
150
- return attributes . find ( attribute => attribute . name === name ) ?. value ;
150
+ const attributeObject = ensureAttributeObject ( attributes ) ;
151
+ return getAttribute ( attributeObject , name ) ;
151
152
}
152
153
153
154
if ( isTransactionNode ( node ) && event ) {
154
- return event . contexts . trace ?. data ?. [ name ] ;
155
+ return getAttribute ( event . contexts . trace ?. data || { } , name ) ;
155
156
}
156
157
157
158
if ( isSpanNode ( node ) ) {
158
- return node . value . data ?. [ name ] ;
159
+ return getAttribute ( node . value . data || { } , name ) ;
159
160
}
160
161
161
162
return undefined ;
Original file line number Diff line number Diff line change @@ -143,10 +143,10 @@ export function AIInputSection({
143
143
event ,
144
144
attributes
145
145
) ;
146
- promptMessages = transformInputMessages ( inputMessages ) ;
146
+ promptMessages = inputMessages && transformInputMessages ( inputMessages ) ;
147
147
}
148
148
149
- const aiInput = defined ( promptMessages ) && parseAIMessages ( promptMessages as string ) ;
149
+ const aiInput = defined ( promptMessages ) && parseAIMessages ( promptMessages ) ;
150
150
151
151
if ( ! aiInput ) {
152
152
return null ;
You can’t perform that action at this time.
0 commit comments