diff --git a/multi/multi__managing_spans_with_annotations.html b/multi/multi__managing_spans_with_annotations.html index 5358b0a17..2b8601f0a 100644 --- a/multi/multi__managing_spans_with_annotations.html +++ b/multi/multi__managing_spans_with_annotations.html @@ -29,8 +29,7 @@ concrete one wins (in this case customNameOnTestMethod3
  1. Try with a bean of TagValueResolver type and a provided name.
  2. If the bean name has not been provided, try to evaluate an expression. We search for a TagValueExpressionResolver bean. The default implementation uses SPEL expression resolution. -IMPORTANT from Sleuth 2.0.0 you can only reference properties -from the SPEL expression. Method execution is not allowed due to security constraints.
  3. If we do not find any expression to evaluate, return the toString() value of the parameter.

11.4.1 Custom extractor

The value of the tag for the following method is computed by an implementation of TagValueResolver interface. +IMPORTANT You can only reference properties from the SPEL expression. Method execution is not allowed due to security constraints.

  • If we do not find any expression to evaluate, return the toString() value of the parameter.
  • 11.4.1 Custom extractor

    The value of the tag for the following method is computed by an implementation of TagValueResolver interface. Its class name has to be passed as the value of the resolver attribute.

    Consider the following annotated method:

    @NewSpan
     public void getAnnotationForTagValueResolver(@SpanTag(key = "test", resolver = TagValueResolver.class) String test) {
     }

    Now further consider the following TagValueResolver bean implementation:

    @Bean(name = "myCustomTagValueResolver")
    diff --git a/single/spring-cloud-sleuth.html b/single/spring-cloud-sleuth.html
    index 40140f49c..2f4406ec0 100644
    --- a/single/spring-cloud-sleuth.html
    +++ b/single/spring-cloud-sleuth.html
    @@ -585,8 +585,7 @@ concrete one wins (in this case customNameOnTestMethod3
    1. Try with a bean of TagValueResolver type and a provided name.
    2. If the bean name has not been provided, try to evaluate an expression. We search for a TagValueExpressionResolver bean. The default implementation uses SPEL expression resolution. -IMPORTANT from Sleuth 2.0.0 you can only reference properties -from the SPEL expression. Method execution is not allowed due to security constraints.
    3. If we do not find any expression to evaluate, return the toString() value of the parameter.

    11.4.1 Custom extractor

    The value of the tag for the following method is computed by an implementation of TagValueResolver interface. +IMPORTANT You can only reference properties from the SPEL expression. Method execution is not allowed due to security constraints.

  • If we do not find any expression to evaluate, return the toString() value of the parameter.
  • 11.4.1 Custom extractor

    The value of the tag for the following method is computed by an implementation of TagValueResolver interface. Its class name has to be passed as the value of the resolver attribute.

    Consider the following annotated method:

    @NewSpan
     public void getAnnotationForTagValueResolver(@SpanTag(key = "test", resolver = TagValueResolver.class) String test) {
     }

    Now further consider the following TagValueResolver bean implementation:

    @Bean(name = "myCustomTagValueResolver")
    diff --git a/spring-cloud-sleuth.xml b/spring-cloud-sleuth.xml
    index bd4de8b32..1e4cffe29 100644
    --- a/spring-cloud-sleuth.xml
    +++ b/spring-cloud-sleuth.xml
    @@ -1339,8 +1339,7 @@ The precedence is as follows:
     If the bean name has not been provided, try to evaluate an expression.
     We search for a TagValueExpressionResolver bean.
     The default implementation uses SPEL expression resolution.
    -IMPORTANT from Sleuth 2.0.0 you can only reference properties
    -from the SPEL expression. Method execution is not allowed due to security constraints.
    +IMPORTANT You can only reference properties from the SPEL expression. Method execution is not allowed due to security constraints.
     
     
     If we do not find any expression to evaluate, return the toString() value of the parameter.