/** * @param traceName * @param attrName * @param tag * @param value */ public void newTraceAttr(String traceName, String attrName, String tag, Object value) { tracer .getHandler() .newAttr( symbolRegistry.symbolId(traceName), symbolRegistry.symbolId(attrName), new TaggedValue(symbolRegistry.symbolId(tag), value)); }
public void filterTrace(boolean decision) { tracer .getHandler() .markTraceFlags(0, decision ? TraceMarker.SUBMIT_TRACE : TraceMarker.DROP_TRACE); }
public void newFlags(int flags) { tracer.getHandler().markTraceFlags(0, flags); }
/** * Adds trace attribute to trace record immediately. This is useful for programmatic attribute * setting. * * @param attrName attribute name * @param value attribute value */ public void newAttr(String attrName, Object value) { tracer.getHandler().newAttr(-1, symbolRegistry.symbolId(attrName), value); }
public boolean isInTrace(String traceName) { return tracer.getHandler().isInTrace(symbolRegistry.symbolId(traceName)); }
public void traceBegin(String name, long minimumTraceTime, int flags) { TraceBuilder traceBuilder = tracer.getHandler(); traceBuilder.traceBegin(symbolRegistry.symbolId(name), System.currentTimeMillis(), flags); traceBuilder.setMinimumTraceTime(minimumTraceTime); }