Update Java-Plugin-Development-Guide.md (#3067)

This commit is contained in:
吴晟 Wu Sheng 2019-07-13 19:34:19 +08:00 committed by GitHub
parent 8f76ff2fe6
commit 73a4d3c1de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -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).