davsclaus commented on code in PR #21730:
URL: https://github.com/apache/camel/pull/21730#discussion_r2909829962
##########
core/camel-api/src/main/java/org/apache/camel/spi/ErrorRegistryEntry.java:
##########
@@ -66,4 +66,11 @@ public interface ErrorRegistryEntry {
* Each element represents one line of the stack trace.
*/
String[] stackTrace();
+
+ /**
+ * The message history trace, or {@code null} if message history is not
enabled.
+ * <p/>
+ * Each element represents one step in the routing history (e.g.
"routeId[nodeId]").
+ */
+ String[] messageHistory();
Review Comment:
Camel has `MessageHistory` as type. So instead of a string array with
unstructured data. Then you have a List<MessageHistory> which gives you access
to all data.
Also we can update the MessageHelper to have a new
dumpMessageHistoryStacktrace that takes information not from an Exchange but so
you can pass on details from this error registry in case you want to dump this
in the same way that Camel does it.
And there I can also see we need to capture - the original route id and
endpoint uri that the exchange was originating from, so you know where it all
started. Also the exchange id.
--
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]