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
cd8049d8
Unverified
Commit
cd8049d8
authored
Jul 22, 2020
by
Zoltán Bedi
Committed by
GitHub
Jul 22, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add errorIconColor prop to TraceSpanData (#26509)
parent
d0e15561
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
packages/grafana-data/src/types/trace.ts
+1
-0
packages/jaeger-ui-components/src/TraceTimelineViewer/SpanBarRow.tsx
+10
-2
No files found.
packages/grafana-data/src/types/trace.ts
View file @
cd8049d8
...
...
@@ -59,6 +59,7 @@ export type TraceSpanData = {
warnings
?:
string
[]
|
null
;
stackTraces
?:
string
[];
flags
:
number
;
errorIconColor
?:
string
;
};
export
type
TraceSpan
=
TraceSpanData
&
{
...
...
packages/jaeger-ui-components/src/TraceTimelineViewer/SpanBarRow.tsx
View file @
cd8049d8
...
...
@@ -252,7 +252,6 @@ const getStyles = createStyle((theme: Theme) => {
`
,
errorIcon
:
css
`
label: errorIcon;
background:
${
autoColor
(
theme
,
'#db2828'
)}
;
border-radius: 6.5px;
color:
${
autoColor
(
theme
,
'#fff'
)}
;
font-size: 0.85em;
...
...
@@ -418,7 +417,16 @@ export class UnthemedSpanBarRow extends React.PureComponent<SpanBarRowProps> {
[
styles
.
svcNameChildrenCollapsed
]:
isParent
&&
!
isChildrenExpanded
,
})
}
>
{
showErrorIcon
&&
<
IoAlert
className=
{
styles
.
errorIcon
}
/>
}
{
showErrorIcon
&&
(
<
IoAlert
style=
{
{
backgroundColor
:
span
.
errorIconColor
?
autoColor
(
theme
,
span
.
errorIconColor
)
:
autoColor
(
theme
,
'#db2828'
),
}
}
className=
{
styles
.
errorIcon
}
/>
)
}
{
serviceName
}{
' '
}
{
rpc
&&
(
<
span
>
...
...
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