improve method names on annotations

This commit is contained in:
Jonathan Shook
2023-09-15 16:48:43 -05:00
parent 5e52ff2031
commit e4a566cedd
9 changed files with 32 additions and 32 deletions

View File

@@ -58,8 +58,8 @@ public class GrafanaMetricsAnnotator implements Annotator, NBConfigurable {
try {
GAnnotation ga = new GAnnotation();
ga.setTime(annotation.getStart());
ga.setTimeEnd(annotation.getEnd());
ga.setTime(annotation.getStartMillis());
ga.setTimeEnd(annotation.getEndMillis());
annotation.getLabels().asMap().forEach((k, v) -> {
ga.getTags().add(k + ":" + v);
@@ -69,7 +69,7 @@ public class GrafanaMetricsAnnotator implements Annotator, NBConfigurable {
});
ga.getTags().add("layer:" + annotation.getLayer().toString());
if (annotation.getStart() == annotation.getEnd()) {
if (annotation.getStartMillis() == annotation.getEndMillis()) {
ga.getTags().add("span:instant");
} else {
ga.getTags().add("span:interval");