Method Ast_MessageHistory(object?, IExchange)
Evaluates messageHistory(kind) — the trail the exchange left through the route, as a value.
table (the default) is the dump Camel prints on failure, compact one line, json an
array; count, totalMs and slowestMs are numbers, so markup can branch on cost, and
slowest / lastNode name a step.
public static object? Ast_MessageHistory(object? kind, IExchange exchange)
Remarks
Message history is opt-in (RouteEngineOptions.EnableMessageHistory, .MessageHistory()), so an
exchange that recorded none reads as an empty string and zero — the one place this language answers a
missing measurement instead of failing. An unknown kind is still an authoring error.