MCPcopy
hub / github.com/grafana/tempo / printSimpleSummary

Function printSimpleSummary

cmd/tempo-cli/cmd-analyse-block.go:820–832  ·  view source on GitHub ↗
(scope string, maxAttr int, summary attributeSummary)

Source from the content-addressed store, hash-verified

818}
819
820func printSimpleSummary(scope string, maxAttr int, summary attributeSummary) {
821 if maxAttr > len(summary.attributes) {
822 maxAttr = len(summary.attributes)
823 }
824
825 fmt.Println("")
826 attrList := topN(maxAttr, summary.attributes)
827 fmt.Printf("%s attributes: ", scope)
828 for _, a := range attrList {
829 fmt.Printf("\"%s\", ", a.name)
830 }
831 fmt.Println("")
832}
833
834func printFullSummary(scope string, settings heuristicSettings, summary attributeSummary, numRowGroups int) error {
835 var (

Callers 1

printMethod · 0.85

Calls 1

topNFunction · 0.70

Tested by

no test coverage detected