-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1.16 docker: query's JAEGER_AGENT_PORT #1986
Comments
Note that this happens only when the Jaeger instance is called
One possible solution is to ignore the env var value if the value is not an integer, without breaking the agent because of it. Question: do we want to address this in the Jaeger Go Client, or in the Jaeger Query, which consumes the Jaeger Client? I'd vote for the Jaeger Go Client, as it would prevent the same issue from happening in other projects (like the case with Loki linked above). |
Sounds good, will query eventually use opentelemetry client? If so I imagine the fix would be propagated. |
It might, but we haven't talked about it yet. |
Do you have any news about that? |
@JuniorCtba are you facing this problem with a specific client (Java, Go)? If so, a workaround is to explicitly set the env var for the process, as mentioned in the issue description. But to answer your question: we haven't moved yet but your contribution would be most welcome! For the Go client, here's the relevant code: IMO, we should just skip the For the Java client, it would be around here: |
Thanks @jpkrohling i am using as docker. |
First, let me mention the other workaround of setting Now I would like to nit-pick:
It happens when you have a Kubernetes Service named |
I am running into the same issue right now. Renaming seems very much like a temporary solution. Any other ideas? |
The naming clash will happen given the "right'' conditions. I don't think we ever received a PR to simply ignore the value of the env var in case it's not a valid number. If you are open to sending this PR, we can certainly consider incorporating it in the next minor version. That said, the workaround is to override the env var with your own value, like |
There is no option for |
You should then really open an issue in that repository, hopefully followed by a PR ;-) |
That is a good idea! I will do so, but I opened PRs there that never got merged reviewed 😢 |
@jpkrohling PR added, now we wait 🤞 |
This shouldn't happen. Ping me if it get stuck again, no matter the PR.
Helm charts aren't my specialty, but I can bug people to review your PR :-) |
Requirement - what kind of business use case are you trying to solve?
Query outputs:
"error":"cannot obtain reporter config from env: cannot parse env var JAEGER_AGENT_PORT=udp://10.90.32.41:5775
Problem - what in Jaeger blocks you from solving the requirement?
on a docker environment, or Kubernetes
there's an unfortunate clash in the names: Kubernetes/Docker populates some env vars automatically, such as JAEGER_AGENT_PORT, and the tracer client in the jaeger-query is now configure automatically via env vars, one of which is JAEGER_AGENT_PORT, which expects an integer with the agent's port
Proposal - what do you suggest to solve the problem or improve the existing situation?
a workaround is to explicitly set JAEGER_AGENT_PORT to 6831
The text was updated successfully, but these errors were encountered: