Substitution of environment / system properties for microprofile-opentracing-smallrye extension

101 views
Skip to first unread message

Joe Pullen

unread,
Mar 30, 2020, 5:02:22 AM3/30/20
to WildFly
Hi,

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

<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>

results in:

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)

is this supported ?

Thanks,
Joe

Tomaž Cerar

unread,
Mar 30, 2020, 5:27:35 AM3/30/20
to Joe Pullen, WildFly
Hey,

this attribute doesn't support expressions.

But it could probably be changed to support it, best to create jira issue for that.

--
tomaz


--
You received this message because you are subscribed to the Google Groups "WildFly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wildfly+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wildfly/c92df3fb-ab4b-497b-bebe-43c3e0a8d7c6%40googlegroups.com.

Yeray Borges Santana

unread,
Apr 7, 2020, 6:00:57 AM4/7/20
to WildFly
Just in case, anyone can vote for it here: https://issues.redhat.com/browse/WFLY-13341


On Monday, March 30, 2020 at 10:27:35 AM UTC+1, Tomaž Cerar wrote:
Hey,

this attribute doesn't support expressions.

But it could probably be changed to support it, best to create jira issue for that.

--
tomaz


To unsubscribe from this group and stop receiving emails from it, send an email to wil...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages