Search in sources :

Example 1 with PActiveTraceHistogram

use of com.navercorp.pinpoint.grpc.trace.PActiveTraceHistogram in project pinpoint by naver.

the class GrpcActiveTraceBoMapper method map.

public ActiveTraceBo map(final PActiveTrace activeTrace) {
    final PActiveTraceHistogram histogram = activeTrace.getHistogram();
    final ActiveTraceHistogram activeTraceHistogram = createActiveTraceCountMap(histogram.getActiveTraceCountList());
    final ActiveTraceBo activeTraceBo = new ActiveTraceBo();
    activeTraceBo.setVersion((short) histogram.getVersion());
    activeTraceBo.setHistogramSchemaType(histogram.getHistogramSchemaType());
    activeTraceBo.setActiveTraceHistogram(activeTraceHistogram);
    return activeTraceBo;
}
Also used : ActiveTraceHistogram(com.navercorp.pinpoint.common.server.bo.stat.ActiveTraceHistogram) PActiveTraceHistogram(com.navercorp.pinpoint.grpc.trace.PActiveTraceHistogram) PActiveTraceHistogram(com.navercorp.pinpoint.grpc.trace.PActiveTraceHistogram) ActiveTraceBo(com.navercorp.pinpoint.common.server.bo.stat.ActiveTraceBo)

Aggregations

ActiveTraceBo (com.navercorp.pinpoint.common.server.bo.stat.ActiveTraceBo)1 ActiveTraceHistogram (com.navercorp.pinpoint.common.server.bo.stat.ActiveTraceHistogram)1 PActiveTraceHistogram (com.navercorp.pinpoint.grpc.trace.PActiveTraceHistogram)1