add some doc (#1100)

This commit is contained in:
lican 2018-04-21 20:29:53 +08:00 committed by 吴晟 Wu Sheng
parent fc322e1aad
commit bc44fa3647
3 changed files with 13 additions and 5 deletions

View File

@ -17,3 +17,7 @@ modelAndView.addObject("traceId", TraceContext.traceId());
_示例代码仅供参考_
* 对任何需要追踪的方法,使用 `@Trace` 标注,则此方法会被加入到追踪链中。
* 在被追踪的方法中自定义 tag.
```java
ActiveSpan.tag("my_tag", "my_value");
```

View File

@ -1,10 +1,10 @@
* Dependency the toolkit, such as using maven or gradle
```xml
<dependency>
<groupId>org.apache.skywalking</groupId>
<artifactId>skywalking-toolkit-logback-1.x</artifactId>
<version>{project.release.version}</version>
</dependency>
<dependency>
<groupId>org.apache.skywalking</groupId>
<artifactId>apm-toolkit-logback-1.x</artifactId>
<version>{project.release.version}</version>
</dependency>
```
* set `%tid` in `Pattern` section of logback.xml

View File

@ -17,3 +17,7 @@ modelAndView.addObject("traceId", TraceContext.traceId());
_Sample codes only_
* Add `@Trace` to any method you want to trace. After that, you can see the span in the Stack.
* Add custom tag in the context of traced method .
```java
ActiveSpan.tag("my_tag", "my_value");
```