diff --git a/frontend/src/container/TraceDetail/SelectedSpanDetails/ErrorTag.tsx b/frontend/src/container/TraceDetail/SelectedSpanDetails/ErrorTag.tsx index d2c3cfb988..2a663387a5 100644 --- a/frontend/src/container/TraceDetail/SelectedSpanDetails/ErrorTag.tsx +++ b/frontend/src/container/TraceDetail/SelectedSpanDetails/ErrorTag.tsx @@ -1,12 +1,13 @@ import { Collapse, Modal } from 'antd'; +import Editor from 'components/Editor'; import { StyledButton } from 'components/Styled'; import useThemeMode from 'hooks/useThemeMode'; -import { keys, map } from 'lodash-es'; +import keys from 'lodash-es/keys'; +import map from 'lodash-es/map'; import React, { useState } from 'react'; import { ITraceTree } from 'types/api/trace/getTraceItem'; import { CustomSubText, CustomSubTitle, styles } from './styles'; -// import Editor from 'components/Editor'; const { Panel } = Collapse; @@ -70,17 +71,24 @@ function ErrorTag({ event }: ErrorTagProps): JSX.Element { ); })} + onToggleHandler(false)} title="Log Message" visible={isOpen} destroyOnClose footer={[]} + width="70vw" > {text.text} - - {text.subText} - + + {text.text === 'exception.stacktrace' ? ( + {}} readOnly value={text.subText} /> + ) : ( + + {text.subText} + + )} );