예제 #1
0
 /**
  * @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));
 }
예제 #2
0
 public void filterTrace(boolean decision) {
   tracer
       .getHandler()
       .markTraceFlags(0, decision ? TraceMarker.SUBMIT_TRACE : TraceMarker.DROP_TRACE);
 }
예제 #3
0
 public void newFlags(int flags) {
   tracer.getHandler().markTraceFlags(0, flags);
 }
예제 #4
0
 /**
  * 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);
 }
예제 #5
0
 public boolean isInTrace(String traceName) {
   return tracer.getHandler().isInTrace(symbolRegistry.symbolId(traceName));
 }
예제 #6
0
 public void traceBegin(String name, long minimumTraceTime, int flags) {
   TraceBuilder traceBuilder = tracer.getHandler();
   traceBuilder.traceBegin(symbolRegistry.symbolId(name), System.currentTimeMillis(), flags);
   traceBuilder.setMinimumTraceTime(minimumTraceTime);
 }