We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4eafe5f commit 870a4fdCopy full SHA for 870a4fd
apm-agent-core/src/main/java/co/elastic/apm/agent/impl/transaction/Span.java
@@ -270,7 +270,7 @@ public void beforeEnd(long epochMicros) {
270
protected void afterEnd() {
271
if (transaction != null && transaction.isSpanCompressionEnabled() && parent != null) {
272
Span buffered = parent.bufferedSpan.get();
273
- if (!isCompressionEligible()) {
+ if (parent.isFinished() || !isCompressionEligible()) {
274
if (buffered != null) {
275
if (parent.bufferedSpan.compareAndSet(buffered, null)) {
276
this.tracer.endSpan(buffered);
0 commit comments