Skip to content

Commit 40b709f

Browse files
committed
Report "compressed spans" as dropped
1 parent 891dc23 commit 40b709f

File tree

1 file changed

+5
-1
lines changed
  • apm-agent-core/src/main/java/co/elastic/apm/agent/impl/transaction

1 file changed

+5
-1
lines changed

apm-agent-core/src/main/java/co/elastic/apm/agent/impl/transaction/Span.java

+5-1
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,11 @@ protected void afterEnd() {
327327
} else {
328328
this.tracer.endSpan(buffered);
329329
}
330-
} else {
330+
} else if (isSampled()) {
331+
Transaction transaction = getTransaction();
332+
if (transaction != null) {
333+
transaction.getSpanCount().getDropped().incrementAndGet();
334+
}
331335
decrementReferences();
332336
}
333337
} else {

0 commit comments

Comments
 (0)