Search in sources :

Example 6 with SofaTracerStatisticReporterManager

use of com.alipay.common.tracer.core.reporter.stat.manager.SofaTracerStatisticReporterManager in project sofa-rpc by sofastack.

the class AbstractTracerBase method removeRpcDigestStatLogType.

protected void removeRpcDigestStatLogType() throws Exception {
    System.setProperty("stat_log_interval", "5");
    AsyncCommonDigestAppenderManager asyncDigestManager = SofaTracerDigestReporterAsyncManager.getSofaTracerDigestReporterAsyncManager();
    // stat
    Map<Long, SofaTracerStatisticReporterManager> cycleTimesManager = SofaTracerStatisticReporterCycleTimesManager.getCycleTimesManager();
    for (Map.Entry<Long, SofaTracerStatisticReporterManager> entry : cycleTimesManager.entrySet()) {
        SofaTracerStatisticReporterManager manager = entry.getValue();
        manager.getStatReporters().clear();
    }
}
Also used : SofaTracerStatisticReporterManager(com.alipay.common.tracer.core.reporter.stat.manager.SofaTracerStatisticReporterManager) AsyncCommonDigestAppenderManager(com.alipay.common.tracer.core.appender.manager.AsyncCommonDigestAppenderManager) Map(java.util.Map)

Aggregations

SofaTracerStatisticReporterManager (com.alipay.common.tracer.core.reporter.stat.manager.SofaTracerStatisticReporterManager)6 AsyncCommonDigestAppenderManager (com.alipay.common.tracer.core.appender.manager.AsyncCommonDigestAppenderManager)2 SampleRestController (com.alipay.sofa.tracer.boot.base.controller.SampleRestController)2 Field (java.lang.reflect.Field)2 Map (java.util.Map)2 Ignore (org.junit.Ignore)2 Test (org.junit.Test)2 SpringBootTest (org.springframework.boot.test.context.SpringBootTest)2