use of org.apache.camel.spi.TracedRouteNodes in project camel by apache.
the class DefaultTraceEventMessage method extractToNode.
private static String extractToNode(Exchange exchange) {
if (exchange.getUnitOfWork() != null) {
TracedRouteNodes traced = exchange.getUnitOfWork().getTracedRouteNodes();
RouteNode last = traced.getLastNode();
return last != null ? last.getLabel(exchange) : null;
}
return null;
}
Aggregations