Coder Social home page Coder Social logo

Comments (7)

james-callahan avatar james-callahan commented on July 17, 2024 1

I would think the DNS library would treat localhost resolution as ip 127.0.0.1

It didn't until recently. See Kong/lua-resty-dns-client#50

Good idea on the request termination short circuiting, will investigate there...

from kong-plugin-zipkin.

james-callahan avatar james-callahan commented on July 17, 2024

Looks like it's failing from the call-site for the load balancer data.

proxy_span:set_tag(ip_tag(balancer_data.ip), balancer_data.ip)

My guess is that a DNS lookup failed, so the ip is nil and it went to the next balancer candidate? Could you check if that was the case by seeing if you have a DNS failure earlier in your logs?

Either way it's a bug that needs fixing in this plugin, thankyou for the report!

from kong-plugin-zipkin.

jeremyjpj0916 avatar jeremyjpj0916 commented on July 17, 2024

@james-callahan the service this plugin errors on is set to proxy to http://localhost:8001/status (Kong admin api status endpoint), but it will never do so anyways because the request termination plugin is enabled on this particular kong route. I would think the DNS library would treat localhost resolution as ip 127.0.0.1 but somehow it must be nil(most likely because request termination short circuits everything so balancer was never involved, just a guess).

from kong-plugin-zipkin.

jeremyjpj0916 avatar jeremyjpj0916 commented on July 17, 2024

@james-callahan I did test that PR just now too on 1.0 and the lua nil pointer exceptions are gone so that did do the trick for short circuit tx's(and also validated no further places needed it I missed 😄 )

from kong-plugin-zipkin.

jeremyjpj0916 avatar jeremyjpj0916 commented on July 17, 2024

https://luarocks.org/modules/kong/kong-plugin-zipkin does not seem updated yet after the PR was merged. Guess yall are running that manually?

from kong-plugin-zipkin.

james-callahan avatar james-callahan commented on July 17, 2024

It's merged but not released.
The next plugin release will be done in sync with the next kong patch release.

from kong-plugin-zipkin.

jeremyjpj0916 avatar jeremyjpj0916 commented on July 17, 2024

All righty, sounds good to me I will just drop in the zipkin code manually for now as opposed to luarocks installing until the next official Kong release(hopefully this month to address some problems I see on 1.0 :P ).

from kong-plugin-zipkin.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.