Skip to content

dydeve/statistics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

statistics

  • 引入alibaba 的ttl,重新定义了ThreadLocal,支持 父线程到子线程, 以及线程池 之间的threadlocal
    使ttl生效 需开启java angent 或 包装 [java.lang.Runnable] Callable Executor.
    详见alibaba-ttl
  • BizLog
    避免到处LoggerFactory.getLogger()
    //using  
    BizLog.info(...);
    //instead of 
    Logger logger = LoggerFactory.getLogger();
    logger.info(...);  
  • MDC:MDC使用自定义的TtlMDCAdapter, 内部用ttl代替 InheritableThreadLocal

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages