resurrect broker event (#26)

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2020-08-27 11:18:02 +03:00
committed by GitHub
parent 36c53b4917
commit b4ccde2228
6 changed files with 56 additions and 23 deletions

View File

@@ -38,9 +38,9 @@ func (w *Wrapper) HandlerFunc(handlerFunction server.HandlerFunc) server.Handler
// Add a result tag:
if err != nil {
tags["result"] = "failure"
tags["status"] = "failure"
} else {
tags["result"] = "failure"
tags["status"] = "success"
}
// Instrument the result (if the DefaultClient has been configured):