fix(telemetry): correct close-time legend label key to resource.service.instance.id

The Raw Proposals and Effective/Quantized panels rendered nameless
series: their legendFormat used {{service.instance.id}}, but the
TraceQL metrics query groups by resource.service.instance.id and Tempo
returns that full key as the series label. The legend token did not
match any label, so each series showed blank. Use the matching
{{resource.service.instance.id}} token.

Verified via the Grafana datasource proxy that all six close-time panels
now return correctly-labelled series.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
Pratik Mankawde
2026-06-05 18:59:57 +01:00
parent 283218896b
commit cfb2d87cab

View File

@@ -430,7 +430,7 @@
},
"queryType": "traceql",
"query": "{name=\"consensus.accept.apply\" && resource.service.instance.id=~\"$node\"} | avg_over_time(span.close_time_self) by (resource.service.instance.id)",
"legendFormat": "{{service.instance.id}}",
"legendFormat": "{{resource.service.instance.id}}",
"refId": "A"
}
]
@@ -475,7 +475,7 @@
},
"queryType": "traceql",
"query": "{name=\"consensus.accept.apply\" && resource.service.instance.id=~\"$node\"} | avg_over_time(span.close_time) by (resource.service.instance.id)",
"legendFormat": "{{service.instance.id}}",
"legendFormat": "{{resource.service.instance.id}}",
"refId": "A"
}
]