use of com.navercorp.pinpoint.profiler.context.monitor.metric.CustomMetricWrapper in project pinpoint by naver.
the class AgentCustomMetricCollector method collect.
public AgentCustomMetricSnapshot collect() {
Map<String, CustomMetricWrapper> customMetricMap = customMetricRegistryService.getCustomMetricMap();
int size = customMetricMap.size();
AgentCustomMetricSnapshot agentCustomMetricSnapshot = new AgentCustomMetricSnapshot(size);
for (CustomMetricWrapper metricWrapper : customMetricMap.values()) {
agentCustomMetricSnapshot.add(metricWrapper.snapshot());
}
return agentCustomMetricSnapshot;
}
Aggregations