You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2019/01/15 02:33:02 UTC

[servicecomb-java-chassis] Diff for: [GitHub] zenlinTechnofreak merged pull request #1061: Add "import package" message in README.

diff --git a/tracing/README.md b/tracing/README.md
index fdb82a491..7ffbb400b 100644
--- a/tracing/README.md
+++ b/tracing/README.md
@@ -11,6 +11,14 @@ interest.
     </dependency>
 ```
 2. Enable tracing with annotation `@EnableZipkinTracing` on your application entry or configuration
+
+Import `tracing.zipkin.EnableZipkinTracing` package
+
+```
+import org.apache.servicecomb.tracing.zipkin.EnableZipkinTracing;
+```
+Add annotation `@EnableZipkinTracing`
+
 ```
 @SpringBootApplication
 @EnableZipkinTracing
@@ -21,6 +29,14 @@ public class ZipkinSpanTestApplication {
 }
 ```
 3. Add new span to the point of interest with annotation `@Span`
+
+Import `tracing.Span` package
+
+```
+import org.apache.servicecomb.tracing.Span;
+```
+Add annotation `@Span`
+
 ```
 @Component
 public class SlowRepoImpl implements SlowRepo {


With regards,
Apache Git Services