Skip to content
This repository was archived by the owner on Apr 11, 2023. It is now read-only.
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 18 additions & 2 deletions src/pages/ServiceDetails/ServiceDetailsPage.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import * as React from 'react';
import { RouteComponentProps } from 'react-router-dom';
import { Nav, NavItem, TabContainer, TabContent, TabPane, Icon } from 'patternfly-react';
import { Nav, NavItem, TabContainer, TabContent, TabPane, Icon, OverlayTrigger, Tooltip } from 'patternfly-react';
import ServiceId from '../../types/ServiceId';
import * as API from '../../services/Api';
import * as MessageCenter from '../../utils/MessageCenter';
Expand Down Expand Up @@ -177,7 +177,23 @@ class ServiceDetails extends React.Component<ServiceDetailsProps, ServiceDetails
<div>
Error Traces{' '}
<span>
({errorTraces}
(
{errorTraces !== -1 ? (
errorTraces
) : (
<OverlayTrigger
overlay={
<Tooltip id="error-trace-unknown-tooltip">
There was a problem loading the <b>Error Trace</b> count from the server
</Tooltip>
}
placement="top"
trigger={['hover', 'focus']}
rootClose={false}
>
<span>n/a</span>
</OverlayTrigger>
)}
{errorTraces > 0 && (
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @josejulio , I was working in another PR to fix this that I forgot. when the value is -1 the Error traces tab should be a tab with name "Traces" ans show all the traces of this service. -1 means that there is a problem getting traces in Jaeger this could mean a timeout. When there is not JaegerURL configured the traces tab is hide.

<Icon type={'fa'} name={'exclamation-circle'} style={{ color: 'red', marginLeft: '2px' }} />
)}
Expand Down