Sub Spans - aggregate traces showing sub-span names only.
All Spans - aggregate traces showing all trace span names.
The httptrace package by default names root spans based on the request's
host field (i.e. the host server). This means that Root Spans will show
you the hosts taking up the most time in your system:
Sub-spans are typically sub-operations in your system, for example SQL
queries or outbound server-side HTTP requests, so Sub Spans view will
show you which sub-operations in your system took the most time:
If you're interested in which sub-operations took the most time in each
of your hosts (root traces), then All Spans is a good viewing mode:
Each mode (as shown above) will trim out sections of the pie chart taking up less than 1% of the time -- depending on the near-equality of your time-spans that may be a lot (as shown above) -- but doesn't affect the primary use: identifying which take the most time.
When in doubt for which viewing mode to use, try each to see which one produces the best
result for your use case.
This change adds three different viewing modes to the new Aggregate View:
The httptrace package by default names root spans based on the request's host field (i.e. the host server). This means that Root Spans will show you the hosts taking up the most time in your system:
Sub-spans are typically sub-operations in your system, for example SQL queries or outbound server-side HTTP requests, so Sub Spans view will show you which sub-operations in your system took the most time:
If you're interested in which sub-operations took the most time in each of your hosts (root traces), then All Spans is a good viewing mode:
Each mode (as shown above) will trim out sections of the pie chart taking up less than 1% of the time -- depending on the near-equality of your time-spans that may be a lot (as shown above) -- but doesn't affect the primary use: identifying which take the most time.
When in doubt for which viewing mode to use, try each to see which one produces the best result for your use case.