Conversation
nadilas
commented
Jun 11, 2020
``` func NewEndpoint(serviceName string, hostPort string) (*Endpoint, error) ```
|
Hi there, I'm not sure this is a typo? this is setting the name and hostname of the service which would be "accounts" and in normal k8s DNS, also be "accounts". This PR would set the accounts service to be at "https://zipkin:9411" or similar? |
|
Yes yes... Sorry too early today 😆 ... was looking for something else and didn't think this through. Forget it 🤦 You are using this as a local representative, it's fine. I am trying to smuggle in some global tags and also add the |
|
@arbarlow sorry, but I have to double check here. I just tested this version (v1.4.0) in our test system. The line gives me: It still works, but sends everything The only way I can get it to work if I use something like this: Also I would appreciate a second parameter: |
|
I'm guessing you're not on kubernetes? Or you're using non standard DNS naming? |
|
I think Zipkin tracer will try to do a DNS lookup to confirm the hostname |
I am on kubernetes, but the exposing service is headless and named different than the hardcoded lile service name. I could change that, but I don’t know zipkin that well, to know what binding to a headless service with 1+ IPs as a new Endpoint would do. Do you have experience with that? |