Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
0fe3b78a
Unverified
Commit
0fe3b78a
authored
Sep 22, 2020
by
Andrej Ocenas
Committed by
GitHub
Sep 22, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show full traceID and better discern multiple stackTraces (#27710)
parent
9e3def42
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
11 deletions
+25
-11
packages/jaeger-ui-components/src/TracePageHeader/TracePageHeader.tsx
+5
-1
packages/jaeger-ui-components/src/TraceTimelineViewer/SpanDetail/index.tsx
+20
-10
No files found.
packages/jaeger-ui-components/src/TracePageHeader/TracePageHeader.tsx
View file @
0fe3b78a
...
@@ -130,6 +130,10 @@ const getStyles = createStyle((theme: Theme) => {
...
@@ -130,6 +130,10 @@ const getStyles = createStyle((theme: Theme) => {
font-size: 1.78em;
font-size: 1.78em;
margin-right: 0.15em;
margin-right: 0.15em;
`
,
`
,
TracePageHeaderTraceId
:
css
`
label: TracePageHeaderTraceId;
white-space: nowrap;
`
,
};
};
});
});
...
@@ -238,7 +242,7 @@ export default function TracePageHeader(props: TracePageHeaderEmbedProps) {
...
@@ -238,7 +242,7 @@ export default function TracePageHeader(props: TracePageHeaderEmbedProps) {
const
title
=
(
const
title
=
(
<
h1
className=
{
cx
(
styles
.
TracePageHeaderTitle
,
canCollapse
&&
styles
.
TracePageHeaderTitleCollapsible
)
}
>
<
h1
className=
{
cx
(
styles
.
TracePageHeaderTitle
,
canCollapse
&&
styles
.
TracePageHeaderTitleCollapsible
)
}
>
<
TraceName
traceName=
{
getTraceName
(
trace
.
spans
)
}
/>
{
' '
}
<
TraceName
traceName=
{
getTraceName
(
trace
.
spans
)
}
/>
{
' '
}
<
small
className=
{
uTxMuted
}
>
{
trace
.
traceID
.
slice
(
0
,
7
)
}
</
small
>
<
small
className=
{
cx
(
styles
.
TracePageHeaderTraceId
,
uTxMuted
)
}
>
{
trace
.
traceID
}
</
small
>
</
h1
>
</
h1
>
);
);
...
...
packages/jaeger-ui-components/src/TraceTimelineViewer/SpanDetail/index.tsx
View file @
0fe3b78a
...
@@ -225,16 +225,26 @@ export default function SpanDetail(props: SpanDetailProps) {
...
@@ -225,16 +225,26 @@ export default function SpanDetail(props: SpanDetailProps) {
label=
"Stack trace"
label=
"Stack trace"
data=
{
stackTraces
}
data=
{
stackTraces
}
isOpen=
{
isStackTracesOpen
}
isOpen=
{
isStackTracesOpen
}
TextComponent=
{
textComponentProps
=>
(
TextComponent=
{
textComponentProps
=>
{
<
TextArea
let
text
;
className=
{
styles
.
Textarea
}
if
(
textComponentProps
.
data
?.
length
>
1
)
{
style=
{
{
cursor
:
'unset'
}
}
text
=
textComponentProps
.
data
readOnly
.
map
((
stackTrace
,
index
)
=>
`StackTrace ${index + 1}:\n${stackTrace}`
)
cols=
{
10
}
.
join
(
'
\
n'
);
rows=
{
10
}
}
else
{
value=
{
textComponentProps
.
data
}
text
=
textComponentProps
.
data
?.[
0
];
/>
}
)
}
return
(
<
TextArea
className=
{
styles
.
Textarea
}
style=
{
{
cursor
:
'unset'
}
}
readOnly
cols=
{
10
}
rows=
{
10
}
value=
{
text
}
/>
);
}
}
onToggle=
{
()
=>
stackTracesToggle
(
spanID
)
}
onToggle=
{
()
=>
stackTracesToggle
(
spanID
)
}
/>
/>
)
}
)
}
...
...
Write
Preview
Markdown
is supported
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