|
42 | 42 | -type info() :: starting |
43 | 43 | | {running, proplists:proplist()} |
44 | 44 | | {terminated, term()}. |
| 45 | +-type info_with_node() :: starting |
| 46 | + | {running, proplists:proplist()} |
| 47 | + | {terminated, proplists:proplist(), term()}. |
45 | 48 | -type blocked_status() :: running | flow | blocked. |
46 | 49 | -type shovel_status() :: blocked_status() | ignore. |
47 | 50 |
|
|
52 | 55 | pending := rabbit_types:option(non_neg_integer()), |
53 | 56 | forwarded := rabbit_types:option(non_neg_integer()) |
54 | 57 | } | #{}. |
55 | | --type status_tuple_41x() :: {name(), type(), info(), metrics(), calendar:datetime()}. |
| 58 | +-type status_tuple_41x() :: {name(), type(), info() | info_with_node(), metrics(), calendar:datetime()}. |
56 | 59 | -type status_tuple_40x_and_older() :: {name(), type(), info(), calendar:datetime()}. |
57 | 60 | -type status_tuple() :: status_tuple_41x() | status_tuple_40x_and_older(). |
58 | 61 |
|
@@ -216,7 +219,7 @@ inject_node_info(Node, Shovels) -> |
216 | 219 | {Name, Type, {State, Opts}, Metrics, Timestamp}; |
217 | 220 | %% terminated |
218 | 221 | ({Name, Type, {terminated, Reason}, Metrics, Timestamp}) -> |
219 | | - {Name, Type, {terminated, Reason}, Metrics, Timestamp}; |
| 222 | + {Name, Type, {terminated, [{node, Node}], Reason}, Metrics, Timestamp}; |
220 | 223 | %% running |
221 | 224 | ({Name, Type, {State, Opts}, Metrics, Timestamp}) -> |
222 | 225 | Opts1 = Opts ++ [{node, Node}], |
|
0 commit comments