@@ -121,36 +121,36 @@ export const getObservabilityColumns = ({evaluatorSlugs}: ObservabilityColumnsPr
121121 width : 400 ,
122122 maxWidth : 400 ,
123123 render : ( _ , record ) => {
124- const outputs = getTraceOutputs ( record )
125- const exception = record . events ?. find ( ( event ) => event . name === "exception" )
126- const { data : sanitizedOutputs } = sanitizeDataWithBlobUrls ( outputs )
124+ const outputs = getTraceOutputs ( record )
125+ const exception = record . events ?. find ( ( event ) => event . name === "exception" )
126+ const { data : sanitizedOutputs } = sanitizeDataWithBlobUrls ( outputs )
127127
128- if ( ! outputs && exception ) {
129- const exceptionMessage =
130- ( exception . attributes ?. [ "exception.message" ] as string ) ||
131- ( exception . attributes ?. [ "exception.type" ] as string ) ||
132- "Exception"
133- return (
134- < SmartCellContent
135- value = { exceptionMessage }
136- keyPrefix = { `trace-output-${ record . span_id } ` }
137- maxLines = { 4 }
138- chatPreference = "output"
139- className = "h-[112px] overflow-hidden text-red-500"
140- />
141- )
142- }
128+ if ( ! outputs && exception ) {
129+ const exceptionMessage =
130+ ( exception . attributes ?. [ "exception.message" ] as string ) ||
131+ ( exception . attributes ?. [ "exception.type" ] as string ) ||
132+ "Exception"
133+ return (
134+ < SmartCellContent
135+ value = { exceptionMessage }
136+ keyPrefix = { `trace-output-${ record . span_id } ` }
137+ maxLines = { 4 }
138+ chatPreference = "output"
139+ className = "h-[112px] overflow-hidden text-red-500"
140+ />
141+ )
142+ }
143143
144- return (
145- < SmartCellContent
146- value = { sanitizedOutputs }
147- keyPrefix = { `trace-output-${ record . span_id } ` }
148- maxLines = { 4 }
149- chatPreference = "output"
150- className = "h-[112px] overflow-hidden"
151- />
152- )
153- } ,
144+ return (
145+ < SmartCellContent
146+ value = { sanitizedOutputs }
147+ keyPrefix = { `trace-output-${ record . span_id } ` }
148+ maxLines = { 4 }
149+ chatPreference = "output"
150+ className = "h-[112px] overflow-hidden"
151+ />
152+ )
153+ } ,
154154 } ,
155155 ...( evaluatorSlugs . length > 0
156156 ? [
0 commit comments