Skip to content

Commit

Permalink
Fix cli analyse block dedicated text output (grafana#4055)
Browse files Browse the repository at this point in the history
  • Loading branch information
zalegrala authored Sep 5, 2024
1 parent 64cddff commit 2db5412
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/tempo-cli/cmd-analyse-block.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ func processBlock(r backend.Reader, tenantID, blockID string, maxStartTime, minS
// merge dedicated with span attributes
for k, v := range resourceDedicatedSummary.attributes {
resourceAttrsSummary.attributes[k] = v
resourceAttrsSummary.dedicated[k] = struct{}{}
}
resourceAttrsSummary.totalBytes += spanDedicatedSummary.totalBytes

Expand Down Expand Up @@ -336,7 +337,7 @@ func printSummary(scope string, max int, summary genericAttrSummary) error {
for _, a := range attrList {

name := a.name
if _, ok := summary.dedicated[a.name]; !ok {
if _, ok := summary.dedicated[a.name]; ok {
name = a.name + " (dedicated)"
}

Expand Down

0 comments on commit 2db5412

Please sign in to comment.