Skip to content
Merged
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 @@ -35,6 +35,8 @@ public class JaegerSpanPreProcessor
new ConcurrentHashMap<>();
private static final ConcurrentMap<String, Counter> tenantToSpansDroppedCount =
new ConcurrentHashMap<>();
private static final ConcurrentMap<String, Counter> tenantToLateArrivalSpansDroppedCount =
new ConcurrentHashMap<>();
private static final Duration minArrivalThreshold = Duration.of(30, ChronoUnit.SECONDS);
private TenantIdHandler tenantIdHandler;
private SpanFilter spanFilter;
Expand Down Expand Up @@ -138,7 +140,7 @@ PreProcessedSpan preProcessSpan(Span span) {
Duration.of(Math.abs(spanProcessedTime - spanStartTime), ChronoUnit.MILLIS);

if (spanStartTime > 0 && spanArrivalDelay.compareTo(lateArrivalThresholdDuration) > 0) {
tenantToSpansDroppedCount
tenantToLateArrivalSpansDroppedCount
.computeIfAbsent(
tenantId,
tenant ->
Expand Down