diff --git a/2.2.x/reference/html/appendix.html b/2.2.x/reference/html/appendix.html index 166ec4e6e..162b3508c 100644 --- a/2.2.x/reference/html/appendix.html +++ b/2.2.x/reference/html/appendix.html @@ -297,7 +297,7 @@ Also, you can define your own properties.

spring.sleuth.propagation.tag.enabled

true

-

Enables a {@link TagPropagationFinishedSpanHandler} that adds extra propagated fields to span tags.

+

Enables a {@link TagPropagationSpanHandler} that adds extra propagated fields to span tags.

spring.sleuth.propagation.tag.whitelisted-keys

diff --git a/2.2.x/reference/html/index.html b/2.2.x/reference/html/index.html index dc130cf34..8a57ab74a 100644 --- a/2.2.x/reference/html/index.html +++ b/2.2.x/reference/html/index.html @@ -2735,23 +2735,24 @@ To achieve that, you can pass the following property to your application to over

12.7. Customization of Reported Spans

Before reporting spans (for example, to Zipkin) you may want to modify that span in some way. -You can do so by using the FinishedSpanHandler interface.

+You can do so by implementing a SpanHandler.

In Sleuth, we generate spans with a fixed name. Some users want to modify the name depending on values of tags. -You can implement the FinishedSpanHandler interface to alter that name.

+You can implement the SpanHandler interface to alter that name.

-

The following example shows how to register two beans that implement FinishedSpanHandler:

+

The following example shows how to register two beans that implement SpanHandler:

@Bean
-FinishedSpanHandler handlerOne() {
-    return new FinishedSpanHandler() {
+SpanHandler handlerOne() {
+    return new SpanHandler() {
         @Override
-        public boolean handle(TraceContext traceContext, MutableSpan span) {
+        public boolean end(TraceContext traceContext, MutableSpan span,
+                Cause cause) {
             span.name("foo");
             return true; // keep this span
         }
@@ -2759,10 +2760,11 @@ FinishedSpanHandler handlerOne() {
 }
 
 @Bean
-FinishedSpanHandler handlerTwo() {
-    return new FinishedSpanHandler() {
+SpanHandler handlerTwo() {
+    return new SpanHandler() {
         @Override
-        public boolean handle(TraceContext traceContext, MutableSpan span) {
+        public boolean end(TraceContext traceContext, MutableSpan span,
+                Cause cause) {
             span.name(span.name() + " bar");
             return true; // keep this span
         }
diff --git a/2.2.x/reference/html/spring-cloud-sleuth.html b/2.2.x/reference/html/spring-cloud-sleuth.html
index dc130cf34..8a57ab74a 100644
--- a/2.2.x/reference/html/spring-cloud-sleuth.html
+++ b/2.2.x/reference/html/spring-cloud-sleuth.html
@@ -2735,23 +2735,24 @@ To achieve that, you can pass the following property to your application to over
 

12.7. Customization of Reported Spans

Before reporting spans (for example, to Zipkin) you may want to modify that span in some way. -You can do so by using the FinishedSpanHandler interface.

+You can do so by implementing a SpanHandler.

In Sleuth, we generate spans with a fixed name. Some users want to modify the name depending on values of tags. -You can implement the FinishedSpanHandler interface to alter that name.

+You can implement the SpanHandler interface to alter that name.

-

The following example shows how to register two beans that implement FinishedSpanHandler:

+

The following example shows how to register two beans that implement SpanHandler:

@Bean
-FinishedSpanHandler handlerOne() {
-    return new FinishedSpanHandler() {
+SpanHandler handlerOne() {
+    return new SpanHandler() {
         @Override
-        public boolean handle(TraceContext traceContext, MutableSpan span) {
+        public boolean end(TraceContext traceContext, MutableSpan span,
+                Cause cause) {
             span.name("foo");
             return true; // keep this span
         }
@@ -2759,10 +2760,11 @@ FinishedSpanHandler handlerOne() {
 }
 
 @Bean
-FinishedSpanHandler handlerTwo() {
-    return new FinishedSpanHandler() {
+SpanHandler handlerTwo() {
+    return new SpanHandler() {
         @Override
-        public boolean handle(TraceContext traceContext, MutableSpan span) {
+        public boolean end(TraceContext traceContext, MutableSpan span,
+                Cause cause) {
             span.name(span.name() + " bar");
             return true; // keep this span
         }