diff options
author | Jon Bratseth <jonbratseth@yahoo.com> | 2016-11-10 12:28:45 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-10 12:28:45 +0100 |
commit | 2230950f0cb48062d36a43e9edfc1aa9a59e98f2 (patch) | |
tree | c7a951ac0411abe7a53bd9e61913e05221e06087 /container-search | |
parent | c76c6c19a7cb97c3cf55d36ba98f9bdead1c8a67 (diff) | |
parent | 9006e4b7f896adeed6946d53ffb6c028474ddc4b (diff) |
Merge pull request #1057 from yahoo/arnej/remove-internal-reference
do not refer to Yahoo-internal technology
Diffstat (limited to 'container-search')
-rw-r--r-- | container-search/src/main/java/com/yahoo/prelude/statistics/StatisticsSearcher.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/container-search/src/main/java/com/yahoo/prelude/statistics/StatisticsSearcher.java b/container-search/src/main/java/com/yahoo/prelude/statistics/StatisticsSearcher.java index bc1f21b3b62..eae3b436b6a 100644 --- a/container-search/src/main/java/com/yahoo/prelude/statistics/StatisticsSearcher.java +++ b/container-search/src/main/java/com/yahoo/prelude/statistics/StatisticsSearcher.java @@ -72,7 +72,7 @@ public class StatisticsSearcher extends Searcher { private Metric metric; private Map<String, Metric.Context> chainContexts = new CopyOnWriteHashMap<>(); - private Map<String, Metric.Context> yamasOnlyContexts = new CopyOnWriteHashMap<>(); + private Map<String, Metric.Context> statePageOnlyContexts = new CopyOnWriteHashMap<>(); private void initEvents(com.yahoo.statistics.Statistics manager, MetricReceiver metricReceiver) { @@ -186,7 +186,7 @@ public class StatisticsSearcher extends Searcher { } if (result.hits().getError() != null) { incrErrorCount(result, metricContext); - incrementYamasOnlyErrors(result, execution); + incrementStatePageOnlyErrors(result, execution); } int hitCount = result.getConcreteHitCount(); hitsPerQuery.put((double) hitCount); @@ -239,12 +239,12 @@ public class StatisticsSearcher extends Searcher { } /** - * Creates error metric for Yamas only. These metrics are only logged to state health page + * Creates error metric for StateHandler only. These metrics are only exposed on /state/v1/metrics page * and not forwarded to the log file. * * @param result The result to check for errors */ - private void incrementYamasOnlyErrors(Result result, Execution execution) { + private void incrementStatePageOnlyErrors(Result result, Execution execution) { if (result == null) return; ErrorHit error = result.hits().getErrorHit(); @@ -282,14 +282,14 @@ public class StatisticsSearcher extends Searcher { } private Metric.Context getDimensions(String source, Result r, Execution execution) { - Metric.Context context = yamasOnlyContexts.get(source == null ? "" : source); + Metric.Context context = statePageOnlyContexts.get(source == null ? "" : source); if (context == null) { Map<String, String> dims = new HashMap<>(); if (source != null) { dims.put("source", source); } context = this.metric.createContext(dims); - yamasOnlyContexts.put(source == null ? "" : source, context); + statePageOnlyContexts.put(source == null ? "" : source, context); } // TODO add other relevant metric dimensions // Would be nice to have chain as a dimension as |