You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@skywalking.apache.org by wu...@apache.org on 2019/06/08 13:07:37 UTC

[skywalking] branch master updated: Remove current RUNTIME_CONTEXT when the lastSpan will be stop (#2827)

This is an automated email from the ASF dual-hosted git repository.

wusheng pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/skywalking.git


The following commit(s) were added to refs/heads/master by this push:
     new 3831c5e  Remove current RUNTIME_CONTEXT when the lastSpan will be stop (#2827)
3831c5e is described below

commit 3831c5eeb5b6d3f4a8a2e5f63da5a3df59d01855
Author: 小水怪 <45...@users.noreply.github.com>
AuthorDate: Sat Jun 8 21:07:31 2019 +0800

    Remove current RUNTIME_CONTEXT when the lastSpan will be stop (#2827)
---
 .../org/apache/skywalking/apm/agent/core/context/ContextManager.java     | 1 +
 1 file changed, 1 insertion(+)

diff --git a/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/context/ContextManager.java b/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/context/ContextManager.java
index 1537bbc..9c1c615 100644
--- a/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/context/ContextManager.java
+++ b/apm-sniffer/apm-agent-core/src/main/java/org/apache/skywalking/apm/agent/core/context/ContextManager.java
@@ -168,6 +168,7 @@ public class ContextManager implements BootService {
     public static void stopSpan(AbstractSpan span) {
         if (get().stopSpan(span)) {
             CONTEXT.remove();
+            RUNTIME_CONTEXT.remove();
         }
     }