Skip to content
This repository has been archived by the owner on Nov 14, 2023. It is now read-only.

Commit

Permalink
test case fix
Browse files Browse the repository at this point in the history
  • Loading branch information
TriptiTripathi1234 committed Sep 21, 2022
1 parent 0af04af commit 272e8a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ private Event buildEvent(
jaegerSpan.getDuration().getSeconds()
+ (long) jaegerSpan.getDuration().getNanos() / 1000.0)
.build();
metricMap.put("Duration", durationMetric);
metricMap.put("Duration-micro", durationMetric);

eventBuilder.setMetrics(fastNewBuilder(Metrics.Builder.class).setMetricMap(metricMap).build());

Expand Down

0 comments on commit 272e8a3

Please sign in to comment.