use of com.netflix.servo.tag.TagList in project incubator-servicecomb-java-chassis by apache.
the class MonitorManager method getMonitorKey.
private String getMonitorKey(MonitorConfig config) {
TagList tagList = config.getTags();
List<String> tags = new ArrayList<>();
for (Tag tag : tagList) {
if (!"type".equals(tag.getKey())) {
tags.add(tag.getKey());
tags.add(tag.getValue());
}
}
return getMonitorKey(config.getName(), tags.toArray(new String[0]));
}