use of com.netflix.spectator.api.Tag in project iep by Netflix.
the class SpectatorEndpoint method toMap.
private Map<String, String> toMap(Id id) {
Map<String, String> tags = new HashMap<>();
tags.put("name", id.name());
for (Tag t : id.tags()) {
tags.put(t.key(), t.value());
}
return tags;
}