Yeray Borges Santana created WFLY-13341:
-------------------------------------------
Summary: Substitution of environment / system properties for
microprofile-opentracing-smallrye extension
Key: WFLY-13341
URL:
https://issues.redhat.com/browse/WFLY-13341
Project: WildFly
Issue Type: Feature Request
Components: MP OpenTracing
Affects Versions: 19.0.0.Final
Reporter: Yeray Borges Santana
Assignee: Emmanuel Hugonnet
I would like to able to configure the microprofile-opentracing-smallrye extension in
wildfly 19 with substituted variables (environment or system).
When I try this it seems the values are not resolved, for example
{code:xml}
<subsystem xmlns="urn:wildfly:microprofile-opentracing-smallrye:2.0"
default-tracer="jaeger">
<jaeger-tracer name="jaeger">
<tags>
<property name="env" value="${env.ENV}"/>
<property name="user" value="joe"/>
</tags>
<sampler-configuration sampler-type="ratelimiting"
sampler-param="1.0"/>
<sender-configuration
sender-endpoint="http://${JAEGER_AGENT_HOST}:14268/api/traces"/>
</jaeger-tracer>
</subsystem>
{code}
results in:
{noformat}
2020-03-29 15:17:49,448 ERROR [jaeger.RemoteReporter-QueueProcessor] [] [] [] [] []
(io.jaegertracing.internal.reporters
.RemoteReporter) QueueProcessor error:: java.lang.RuntimeException:
java.net.URISyntaxException: Illegal character in au
thority at index 7: http://${jaeger_agent_host}:14268/
at com.squareup.okhttp3//okhttp3.HttpUrl.uri(HttpUrl.java:385)
at
com.squareup.okhttp3//okhttp3.internal.connection.RouteSelector.resetNextProxy(RouteSelector.java:129)
at
com.squareup.okhttp3//okhttp3.internal.connection.RouteSelector.<init>(RouteSelector.java:63)
at
com.squareup.okhttp3//okhttp3.internal.connection.StreamAllocation.<init>(StreamAllocation.java:101)
{noformat}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)