【发布时间】:2019-03-18 08:09:05
【问题描述】:
根据https://quarkus.io/guides/opentracing-guide,所有 Jeager 配置都是通过 JVM args (-DJAEGER_ENDPOINT...),但我想使用 application.properties 或 microprofile-config.properties 来配置跟踪。我尝试了以下方法,但 Quarkus 似乎选择的唯一配置是服务名称,所有其他属性都被忽略。
quarkus.jaeger.service-name=my-service <-this one is working quarkus.jaeger.endpoint=http://localhost:14268/api/traces <- seems to be ignored quarkus.jaeger.reporter-log-spans=true quarkus.jaeger.sampler.type=const quarkus.jaeger.sampler.parameter=1
那么,问题是是否可以通过配置文件进行配置,或者目前不支持?
【问题讨论】:
-
绝对可以在
application.properties或microprofile-config.properties中配置Jaeger 属性。您有更多可以分享的细节或我们可以查看的复制器项目吗? -
基本上,当我使用 'mvn compile quarkus:dev -Djvm.args="-DJAEGER_SAMPLER_TYPE=const -DJAEGER_SAMPLER_PARAM=1 -DJAEGER_ENDPOINT=localhost:14268/api/traces" 启动应用程序时,它可以工作。请注意,我在 jvm-args 中没有服务名称,该属性似乎是按预期从 application.properties 读取的(但所有其他属性似乎都被忽略了)。
-
谢谢安德烈亚斯,我会尽快查看
标签: opentracing jaeger quarkus