* Dependency the toolkit, such as using maven or gradle ```xml org.apache.skywalking apm-toolkit-trace ${skywalking.version} ``` * Use `TraceContext.traceId()` API to obtain traceId. ```java import TraceContext; ... 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"); ```