diff --git a/packages/grafana-data/src/types/trace.ts b/packages/grafana-data/src/types/trace.ts index af43724bc18..5b63a86505b 100644 --- a/packages/grafana-data/src/types/trace.ts +++ b/packages/grafana-data/src/types/trace.ts @@ -59,6 +59,7 @@ export type TraceSpanData = { warnings?: string[] | null; stackTraces?: string[]; flags: number; + errorIconColor?: string; }; export type TraceSpan = TraceSpanData & { diff --git a/packages/jaeger-ui-components/src/TraceTimelineViewer/SpanBarRow.tsx b/packages/jaeger-ui-components/src/TraceTimelineViewer/SpanBarRow.tsx index 8a4eb7c70bc..34b2ad3362b 100644 --- a/packages/jaeger-ui-components/src/TraceTimelineViewer/SpanBarRow.tsx +++ b/packages/jaeger-ui-components/src/TraceTimelineViewer/SpanBarRow.tsx @@ -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 { [styles.svcNameChildrenCollapsed]: isParent && !isChildrenExpanded, })} > - {showErrorIcon && } + {showErrorIcon && ( + + )} {serviceName}{' '} {rpc && (