Skip to content

Commit

Permalink
Display service name for endpoint in Binary Annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuri Shkuro committed May 13, 2016
1 parent adfca77 commit 8341bfb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion zipkin-ui/js/component_ui/traceToMustache.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,10 @@ function toSpanDepths(spans) {
return treeDepths(entry, 1);
}

export function formatEndpoint({ipv4, port = 0}) {
export function formatEndpoint({ipv4, port = 0, serviceName = ''}) {
if (serviceName) {
return `${ipv4}:${port} (${serviceName})`;
}
return `${ipv4}:${port}`;
}

Expand Down

0 comments on commit 8341bfb

Please sign in to comment.