diff --git a/hypertrace-view-generator/hypertrace-view-generator/src/main/java/org/hypertrace/viewgenerator/generators/BaseViewGenerator.java b/hypertrace-view-generator/hypertrace-view-generator/src/main/java/org/hypertrace/viewgenerator/generators/BaseViewGenerator.java index d61c4858d..c7c36f64e 100644 --- a/hypertrace-view-generator/hypertrace-view-generator/src/main/java/org/hypertrace/viewgenerator/generators/BaseViewGenerator.java +++ b/hypertrace-view-generator/hypertrace-view-generator/src/main/java/org/hypertrace/viewgenerator/generators/BaseViewGenerator.java @@ -51,8 +51,7 @@ static double getDurationMetricValue(Event event) { } static double getDurationMetricValueTrace(StructuredTrace structuredTrace) { - MetricValue value = - structuredTrace.getEventList().get(0).getMetrics().getMetricMap().get("Duration-micro"); + MetricValue value = structuredTrace.getMetrics().getMetricMap().get("Duration-micro"); return value.getValue(); }