#1878 - Remove metric type from metric json output

This commit is contained in:
rob bygrave
2019-12-03 21:06:13 +13:00
parent 5d93c44475
commit e274a4c512
2 changed files with 1 additions and 3 deletions
@@ -183,8 +183,6 @@ class DumpMetricsJson implements ServerMetricsAsJson {
objStart();
key("name");
val(metric.getName());
key("type");
val(metric.getMetricType().name());
}
private void metricEnd() throws IOException {
@@ -213,7 +213,7 @@ public class TestCustomerFinder extends BaseTestCase {
.withSort(SortMetric.TOTAL)
.json();
assertThat(metricsJson).contains("\"name\":\"txn.main\", \"type\":\"TXN\"");
assertThat(metricsJson).contains("\"name\":\"txn.main\"");
assertThat(metricsJson).contains("\"name\":\"orm.Customer.findList\"");
assertThat(metricsJson).contains("\"loc\":\"CustomerFinder.byNameStatus(CustomerFinder.java:44)\"");
assertThat(metricsJson).contains("\"hash\":\"cc20eb930403cfd418db2d0475c6e26a\"");