Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-13341

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

    XMLWordPrintable

Details

    Description

      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)
      

      Attachments

        Activity

          People

            ehugonne1@redhat.com Emmanuel Hugonnet
            yborgess1@redhat.com Yeray Borges Santana
            Votes:
            3 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: