davsclaus opened a new pull request, #30029: URL: https://github.com/apache/camel/pull/30029
JIRA: [CAMEL-26929](https://issues.apache.org/jira/browse/CAMEL-26929), item 5 (last bullet: `cmd send` and the trace dump have no `--json`). - **`camel cmd send --json`** prints the integration's answer as one JSON object instead of the status line and the message table: status, exchange id, elapsed, endpoint, pid and, with `--reply`, the reply message. `--show-headers`, `--show-body`, `--show-exception` and the other `--show` options apply, and `--pretty` pretty-prints it. A repeat or a folder of messages gives its counts and errors. The exit code is the same as without `--json` (1 for a failed exchange, 124 for a timeout), and a CLI error is the JSON of an error. - **`camel trace --action=dump --json`** prints each trace as a JSON object of its own line (JSON Lines), also when following. Each object has pid, name, uid, exchange id, route, node, location, timestamp, elapsed, first/last/done/failed, and the endpoint, message and exception. `--json` used to apply to the status of tracing only. Tests: `CamelSendActionResultTest.theOutcomeAsJson` and `aFailedSendAsJsonIsAFailure`, and `CamelTraceActionTest.dumpAsJsonLines`. The action command tests, the golden help (updated) and the JSON and exit-code contract tests are green: 563 tests. Commands metadata and the doc pages of the two commands are regenerated. Left of item 5: the `name` of an integration is its file name in the action commands and its short name in the listings. _Claude Code on behalf of davsclaus_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- 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]
