gnodet-bot commented on code in PR #29493:
URL: https://github.com/apache/camel/pull/29493#discussion_r4514350004
##########
dsl/camel-jbang/camel-jbang-plugin-tui/src/main/java/org/apache/camel/dsl/jbang/core/commands/tui/ProducersTab.java:
##########
@@ -183,6 +250,19 @@ public JsonObject getTableDataAsJson() {
if (pi.stepId != null) {
row.put("stepId", pi.stepId);
}
+ Stats st = stats(info, pi);
+ if (st != null) {
+ row.put("total", st.total());
+ row.put("failed", st.failed());
+ ProcessorInfo b = st.busiest();
+ if (b.p50Time >= 0) {
+ row.put("p50Time", b.p50Time);
+ row.put("p95Time", b.p95Time);
+ row.put("p99Time", b.p99Time);
+ } else {
+ row.put("meanTime", b.meanTime);
Review Comment:
The visual display renders `MIN/MAX/MEAN` when `p50Time < 0`, but the JSON
table data only includes `meanTime` — `minTime` and `maxTime` are silently
dropped. MCP clients or scripts consuming `tui_get_table` will see incomplete
timing data for integrations without percentile support.
```suggestion
} else {
row.put("minTime", b.minTime);
row.put("maxTime", b.maxTime);
row.put("meanTime", b.meanTime);
}
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]