From 0c5586ddfb35e301f441c34309e2d0cc9c480dbd Mon Sep 17 00:00:00 2001 From: Kunihiko Toumura Date: Tue, 18 Aug 2020 09:28:50 +0900 Subject: [PATCH] Add 'done' metric log for message tracing --- packages/node_modules/@node-red/runtime/lib/nodes/Node.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/node_modules/@node-red/runtime/lib/nodes/Node.js b/packages/node_modules/@node-red/runtime/lib/nodes/Node.js index a834c8c34..a93d7c52d 100644 --- a/packages/node_modules/@node-red/runtime/lib/nodes/Node.js +++ b/packages/node_modules/@node-red/runtime/lib/nodes/Node.js @@ -124,6 +124,7 @@ Node.prototype.context = function() { * @param {error} error (optional) an error hit whilst handling the message */ Node.prototype._complete = function(msg,error) { + this.metric("done",msg); if (error) { // For now, delegate this to this.error // But at some point, the timeout handling will need to know about