Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
neha-ellur committed Jan 10, 2025
1 parent 6dba948 commit 89b1cc3
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -664,10 +664,9 @@ public void run()
}

// Emit the processed bytes metric
IndexTaskUtils.setTaskDimensions(new ServiceMetricEvent.Builder(), task);
toolbox.getEmitter().emit(
ServiceMetricEvent.builder().setMetric("ingest/processed/bytes", bytesProcessed)
);
final ServiceMetricEvent.Builder metricBuilder = new ServiceMetricEvent.Builder();
IndexTaskUtils.setTaskDimensions(metricBuilder, task);
toolbox.getEmitter().emit(metricBuilder.setMetric("ingest/processed/bytes", bytesProcessed));

if (shouldProcess) {
final List<InputRow> rows = parser.parse(record.getData(), isEndOfShard(record.getSequenceNumber()));
Expand Down

0 comments on commit 89b1cc3

Please sign in to comment.