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;
}
Aggregations