Skip to content

Commit 84afac9

Browse files
committed
fix constant
1 parent 978f34c commit 84afac9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/reindex/src/main/java/org/elasticsearch/reindex/ReindexMetrics.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public void recordFailure(boolean remote, Throwable e) {
7575

7676
private Map<String, Object> getAttributes(boolean remote) {
7777
Map<String, Object> attributes = new HashMap<>();
78-
attributes.put(ATTRIBUTE_NAME_SOURCE, remote ? "remote" : "local");
78+
attributes.put(ATTRIBUTE_NAME_SOURCE, remote ? ATTRIBUTE_VALUE_SOURCE_REMOTE : ATTRIBUTE_VALUE_SOURCE_LOCAL);
7979

8080
return attributes;
8181
}

0 commit comments

Comments
 (0)