Add 'done' metric log for message tracing

This commit is contained in:
Kunihiko Toumura 2020-08-18 09:28:50 +09:00
parent bcd85b11a1
commit 0c5586ddfb
1 changed files with 1 additions and 0 deletions

View File

@ -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