Added SPEL support; fixes gh-917

This commit is contained in:
Marcin Grzejszczak
2018-04-05 16:36:59 +02:00
parent 13ff16e2a5
commit 76739a5b6b
3 changed files with 15 additions and 3 deletions

View File

@@ -710,6 +710,8 @@ 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.
. If we do not find any expression to evaluate, return the `toString()` value of the parameter.
==== Custom extractor