Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1230,9 +1230,10 @@ void write(final List<DDSpan> trace) {

// run early tag postprocessors before publishing to the metrics writer since peer / base
// service are needed
for (DDSpan span : writtenTrace) {
span.processServiceTags();
}

// DQH - Using forEach avoids ArrayList$Iter allocation
writtenTrace.forEach(DDSpan::processServiceTags);

boolean forceKeep = metricsAggregator.publish(writtenTrace);

TraceCollector traceCollector = writtenTrace.get(0).context().getTraceCollector();
Expand Down
Loading