Skip to content

Commit 134ff6f

Browse files
jdconradalbertzaharovits
authored andcommitted
Rename search response metric attribute (#110842)
This change renames the search response metric attribute status to response_status. This is more descriptive for an attribute that falls under the global labels namespace. This also fixes a typo with succes to success.
1 parent cc5d979 commit 134ff6f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/src/main/java/org/elasticsearch/rest/action/search/SearchResponseMetrics.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
public class SearchResponseMetrics {
2121

2222
public enum ResponseCountTotalStatus {
23-
SUCCESS("succes"),
23+
SUCCESS("success"),
2424
PARTIAL_FAILURE("partial_failure"),
2525
FAILURE("failure");
2626

@@ -35,7 +35,7 @@ public String getDisplayName() {
3535
}
3636
}
3737

38-
public static final String RESPONSE_COUNT_TOTAL_STATUS_ATTRIBUTE_NAME = "status";
38+
public static final String RESPONSE_COUNT_TOTAL_STATUS_ATTRIBUTE_NAME = "response_status";
3939

4040
public static final String TOOK_DURATION_TOTAL_HISTOGRAM_NAME = "es.search_response.took_durations.histogram";
4141
public static final String RESPONSE_COUNT_TOTAL_COUNTER_NAME = "es.search_response.response_count.total";

0 commit comments

Comments
 (0)