summary.html 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <table style="border-spacing: 0">
  2. <tr>
  3. <td colspan=1 align=left><b>Span Name</b></td>
  4. <td>&nbsp;&nbsp;|&nbsp;&nbsp;</td><td colspan=1 align="center"><b>Running</b></td>
  5. <td>&nbsp;&nbsp;|&nbsp;&nbsp;</td>
  6. <td colspan=9 align="center"><b>Latency Samples</b></td>
  7. <td>&nbsp;&nbsp;|&nbsp;&nbsp;</td>
  8. <td colspan=1 align="center"><b>Error Samples</b></td>
  9. </tr>
  10. <tr>
  11. <td colspan=1></td>
  12. <td>&nbsp;&nbsp;|&nbsp;&nbsp;</td>
  13. <td colspan=1></td>
  14. <td>&nbsp;&nbsp;|&nbsp;&nbsp;</td>
  15. {{range .LatencyBucketNames}}<th colspan=1 align="center"><b>[{{.}}]</b></th>{{end}}
  16. <td>&nbsp;&nbsp;|&nbsp;&nbsp;</td>
  17. <td colspan=1></td>
  18. </tr>
  19. {{$a := .TracesEndpoint}}
  20. {{$links := .Links}}
  21. {{range $rowindex, $row := .Rows}}
  22. {{- $name := .Name}}
  23. {{- if even $rowindex}}<tr style="background: #eee">{{else}}<tr>{{end -}}
  24. <td>{{.Name}}</td><td>&nbsp;&nbsp;|&nbsp;&nbsp;</td>
  25. {{- if $links -}}
  26. <td align="center"><a href="{{$a}}?zspanname={{$name}}&ztype=0">{{.Active}}</a></td>
  27. {{- else -}}
  28. <td>{{.Active}}</td>
  29. {{- end -}}
  30. <td>&nbsp;&nbsp;|&nbsp;&nbsp;</td>
  31. {{- if $links -}}
  32. {{range $index, $value := .Latency}}<td align="center"><a href="{{$a}}?zspanname={{$name}}&ztype=1&zsubtype={{$index}}">{{$value}}</a></td>{{end}}
  33. {{- else -}}
  34. {{range .Latency}}<td>{{.}}</td>{{end}}
  35. {{- end -}}
  36. <td>&nbsp;&nbsp;|&nbsp;&nbsp;</td>
  37. {{- if $links -}}
  38. <td align="center"><a href="{{$a}}?zspanname={{$name}}&ztype=2&zsubtype=0">{{.Errors}}</td>
  39. {{- else -}}
  40. <td>{{.Errors}}</td>
  41. {{- end -}}
  42. </tr>
  43. {{end}}</table>