We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 891dc23 commit 40b709fCopy full SHA for 40b709f
apm-agent-core/src/main/java/co/elastic/apm/agent/impl/transaction/Span.java
@@ -327,7 +327,11 @@ protected void afterEnd() {
327
} else {
328
this.tracer.endSpan(buffered);
329
}
330
- } else {
+ } else if (isSampled()) {
331
+ Transaction transaction = getTransaction();
332
+ if (transaction != null) {
333
+ transaction.getSpanCount().getDropped().incrementAndGet();
334
+ }
335
decrementReferences();
336
337
0 commit comments