Skip to content

Commit

Permalink
Bug fix for invalid service map
Browse files Browse the repository at this point in the history
Signed-off-by: Joshua Li <[email protected]>
  • Loading branch information
joshuali925 committed Apr 7, 2022
1 parent 69b6193 commit e78f475
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ export function TraceView(props: TraceViewProps) {
});
const filteredServiceMap: ServiceObject = {};
Object.entries(services).forEach(([serviceName, service]: [string, any]) => {
if (!serviceMap[serviceName]) return;
filteredServiceMap[serviceName] = serviceMap[serviceName];
filteredServiceMap[serviceName].latency = _.round(service.latency / service.throughput, 2);
filteredServiceMap[serviceName].error_rate = _.round(
Expand Down

0 comments on commit e78f475

Please sign in to comment.