Closed LeBW closed 4 years ago
Hi,
I would suggest using opentracing.jaeger.enabled=false
when you know backend
won't be available
Hi,
I would suggest using
opentracing.jaeger.enabled=false
when you knowbackend
won't be available
Yes but the code needs to be modified in this way and it’s not friendly to users. And we need to do it for every microservice( we have more than 40 microservices in the application) and it’s a little inconvenient.
In fact I noticed that under the default configuration( the host is ‘localhost’), it works well whether there is a backend or not. Is it possible to behave like this when the host is not ‘localhost’?
I might be missing something, but with what I proposed above you don't need to change anything in the code. You can just set the property in any way Spring Boot allows without making any code changes
I might be missing something, but with what I proposed above you don't need to change anything in the code. You can just set the property in any way Spring Boot allows without making any code changes
Thank you. I finally noticed that I can set environment variable
to set the host. And I use ConfigMap to achieve the goal finally.
Cool
I develop an application with K8s and I want to add Jaeger to it. I set the
opentracing.jaeger.udp-sender.host
tojaeger
because I created a backend service namedjaeger
, and the application works normally. But I want to leave the backend service to users rather than start it by default. And then I found that when there is no backend service, the application will fail because it can't resolve the addressjaeger
. The error is like this:My goal is that the application can run normally whether there is a backend service or not. How can I reach that? Thank you.