Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
SigNoz
Commits
3789e25a
Unverified
Commit
3789e25a
authored
3 years ago
by
palash-signoz
Committed by
GitHub
3 years ago
Browse files
Options
Download
Email Patches
Plain Diff
feat: stack trace is show in monaco editor (#1091)
parent
10ab057e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
frontend/src/container/TraceDetail/SelectedSpanDetails/ErrorTag.tsx
+13
-5
...rc/container/TraceDetail/SelectedSpanDetails/ErrorTag.tsx
with
13 additions
and
5 deletions
+13
-5
frontend/src/container/TraceDetail/SelectedSpanDetails/ErrorTag.tsx
+
13
-
5
View file @
3789e25a
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 {
</
Collapse
>
);
})
}
<
Modal
onCancel
=
{
():
void
=>
onToggleHandler
(
false
)
}
title
=
"Log Message"
visible
=
{
isOpen
}
destroyOnClose
footer
=
{
[]
}
width
=
"70vw"
>
<
CustomSubTitle
>
{
text
.
text
}
</
CustomSubTitle
>
<
CustomSubText
ellipsis
=
{
false
}
isDarkMode
=
{
isDarkMode
}
>
{
text
.
subText
}
</
CustomSubText
>
{
text
.
text
===
'
exception.stacktrace
'
?
(
<
Editor
onChange
=
{
():
void
=>
{}
}
readOnly
value
=
{
text
.
subText
}
/>
)
:
(
<
CustomSubText
ellipsis
=
{
false
}
isDarkMode
=
{
isDarkMode
}
>
{
text
.
subText
}
</
CustomSubText
>
)
}
</
Modal
>
</>
);
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help