public interface Metric extends Message
Metric is used to log business data point happens at a specific time. Such as an exception thrown, a
review added by user, a new user registered, an user logged into the system etc.
However, if it could be failure, or last for a long time, such as a remote API call, database call or search engine
call etc. It should be logged as a Transaction
All CAT message will be constructed as a message tree and send to back-end for further analysis, and for monitoring.
Only Transaction can be a tree node, all other message will be the tree leaf. The transaction without
other messages nested is an atomic transaction.
addData, addData, complete, getData, getName, getStatus, getTimestamp, getType, isCompleted, isSuccess, setStatus, setStatus, setSuccessStatus, setTimestampCopyright © 2022. All rights reserved.