Exemplo n.º 1
0
 /** Gets a context assocaited with current thread */
 public static TraceCtx ctx() {
   TraceCtx context = CtxAssociator.getCtx();
   if (context == null) {
     context = new TraceCtx();
     setCtx(context);
   }
   return context;
 }
Exemplo n.º 2
0
 /** Gets a context associated with current thread */
 public static DapCtx ctx() {
   DapCtx context = CtxAssociator.getCtx();
   if (context == null) {
     context = create();
     setCtx(context);
   }
   return context;
 }