diff --git a/docs/src/main/asciidoc/spring-cloud-sleuth.adoc b/docs/src/main/asciidoc/spring-cloud-sleuth.adoc index 08b7da2a0..1f59207b8 100644 --- a/docs/src/main/asciidoc/spring-cloud-sleuth.adoc +++ b/docs/src/main/asciidoc/spring-cloud-sleuth.adoc @@ -73,7 +73,7 @@ This approach may change in the future towards being lazy on this matter. == Span lifecycle -You can do the following operations on the Span by means of *Tracer* interface: +You can do the following operations on the Span by means of *org.springframework.cloud.sleuth.Tracer* interface: - <> - when you start a span its name is assigned and start timestamp is recorded. - <> - the span gets finished (the end time of the span is recorded) and if @@ -84,6 +84,8 @@ one that it continues. - <> - the span doesn't get stopped or closed. It only gets removed from the current thread. - <> - you can create a new span and set an explicit parent to it +TIP: Spring creates the instance of `Tracer` for you. In order to use it all you need is to just autowire it. + === Creating and closing spans [[creating-and-closing-spans]] You can manually create spans by using the *Tracer* interface.