From f00585a7d4abbcbd492d968a909eec65c24e0674 Mon Sep 17 00:00:00 2001 From: Marcin Grzejszczak Date: Tue, 13 Sep 2016 14:34:48 +0200 Subject: [PATCH] Added more explicit Tracer explanation without this change it could be nonclear where Tracer comes from and how you can use it. With this change hopefully it get properly explained fixes #402 --- docs/src/main/asciidoc/spring-cloud-sleuth.adoc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/src/main/asciidoc/spring-cloud-sleuth.adoc b/docs/src/main/asciidoc/spring-cloud-sleuth.adoc index 174b71115..716cea27d 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.