-
Notifications
You must be signed in to change notification settings - Fork 226
Spring Metrics doesn't support Spring Expression Lanuage #81
Comments
I don't see any reason why this shouldn't work. I'll give it a shot and get back to you. |
@ryantenney |
Yea, I understood that part of it. What I meant was I don't see any reason why it wouldn't be possible to enable SpEL. Sorry for the misunderstanding. |
@ryantenney Sorry I am not sure I understood your question:) During the initialization of application, metrics-spring will first validate the port number by using regex pattern |
I think SpEl should be also be implemented for metric's name |
I attempted to fix this by changing the regex to |
SpEL has proven to be exceptionally difficult to support. I don't forsee being able to support this at any point in the near future. If anyone can help with this issue I would welcome the assistance. |
this problem can be fix it ? |
Just added
port="#{appProperties['graphite.port']}"
inapplicationContext-metrics.xml
. However, themetrics-spring
will first validateport
field and then throw an exception about failure validation. I checked the code in line 220 ofAbstractReporterElementParser
, it turns out theSpEL
is not supported, since"^\\$\\{.*\\}$"
is just a placeholder regex. It could be nice ifSpEl
is supported.The text was updated successfully, but these errors were encountered: