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 73a4d3c Update Java-Plugin-Development-Guide.md (#3067)
73a4d3c is described below
commit 73a4d3c1de1163897010087df7442abc4b326459
Author: 吴晟 Wu Sheng <[email protected]>
AuthorDate: Sat Jul 13 19:34:19 2019 +0800
Update Java-Plugin-Development-Guide.md (#3067)
---
docs/en/guides/Java-Plugin-Development-Guide.md | 1 +
1 file changed, 1 insertion(+)
diff --git a/docs/en/guides/Java-Plugin-Development-Guide.md
b/docs/en/guides/Java-Plugin-Development-Guide.md
index 12b817d..f24ffd6 100644
--- a/docs/en/guides/Java-Plugin-Development-Guide.md
+++ b/docs/en/guides/Java-Plugin-Development-Guide.md
@@ -192,6 +192,7 @@ needs to set in another thread, you should use these APIs.
AbstractSpan asyncFinish();
```
1. Call `#prepareForAsync` in original context.
+1. Do `ContextManager#stopSpan` in original context when your job in current
thread is done.
1. Propagate the span to any other thread.
1. After all set, call `#asyncFinish` in any thread.
1. Tracing context will be finished and report to backend when all spans's
`#prepareForAsync` finished(Judged by count of API execution).