/** * Track and Trace a given event and associate it with this activity * * @param severity * severity level of the reported message * @param type * operation type * @param opName * operation name associated with the event message * @param cid * event correlator * @param tag * message tag * @param elapsed * elapsed time of the event in microseconds. * @param msg * event binary message * @param args * argument list, exception passed along side given message * @see OpLevel */ public void tnt(OpLevel severity, OpType type, String opName, String cid, String tag, long elapsed, byte[] msg, Object... args) { TrackingEvent event = tracker.newEvent(severity, type, opName, cid, tag, msg, args); Throwable ex = Utils.getThrowable(args); long elapsedUsec = elapsed > 0 ? elapsed : getLastElapsedUsec(); event.stop(ex != null ? OpCompCode.WARNING : OpCompCode.SUCCESS, 0, ex, Useconds.CURRENT.get(), elapsedUsec); tnt(event); }
/** * Track and Trace a given event and associate it with this activity * * @param severity * severity level of the reported message * @param type * operation type * @param opName * operation name associated with the event message * @param cid * event correlator * @param tag * message tag * @param elapsed * elapsed time of the event in microseconds. * @param msg * event string message * @param args * argument list, exception passed along side given message * @see OpLevel */ public void tnt(OpLevel severity, OpType type, String opName, String cid, String tag, long elapsed, String msg, Object... args) { TrackingEvent event = tracker.newEvent(severity, type, opName, cid, tag, msg, args); Throwable ex = Utils.getThrowable(args); long elapsedUsec = elapsed > 0 ? elapsed : getLastElapsedUsec(); event.stop(ex != null ? OpCompCode.WARNING : OpCompCode.SUCCESS, 0, ex, Useconds.CURRENT.get(), elapsedUsec); tnt(event); }