diff --git a/apm-sniffer/apm-agent-core/src/main/java/org/skywalking/apm/agent/core/context/ContextManager.java b/apm-sniffer/apm-agent-core/src/main/java/org/skywalking/apm/agent/core/context/ContextManager.java index fbe727ab0..d950ce90f 100644 --- a/apm-sniffer/apm-agent-core/src/main/java/org/skywalking/apm/agent/core/context/ContextManager.java +++ b/apm-sniffer/apm-agent-core/src/main/java/org/skywalking/apm/agent/core/context/ContextManager.java @@ -123,11 +123,11 @@ public class ContextManager implements TracingContextListener, BootService, Igno } } - public ContextSnapshot capture() { + public static ContextSnapshot capture() { return get().capture(); } - public void continued(ContextSnapshot snapshot) { + public static void continued(ContextSnapshot snapshot) { if (snapshot == null) { throw new IllegalArgumentException("ContextSnapshot can't be null."); }