Code Monkey home page Code Monkey logo

Comments (7)

qiwzhang avatar qiwzhang commented on June 10, 2024

check.error_code and error_message were added to the global dictionary. Waiting for istio/istio to pick up the changes from istio/api

from old_mixerclient_repo.

qiwzhang avatar qiwzhang commented on June 10, 2024

These attributes are trying to capture why requests rejected by Envoy. Mixer check is just one of reasons. There could be many other reasons (https://github.com/envoyproxy/envoy/blob/master/include/envoy/request_info/request_info.h#L16)

We should not call these attributes as "check.*". we should call them as followings:

  • request.proxy_error: string to display proxy error message, Mixer check error will be here too

  • request.proxy_error_code: as int32, to category the errors, error message may contain detail error.
    how to define error code? rpc.status_code?

  • request.proxy_error_by, as string, such as by_mixer_check, or by_auth, or by_fault_injection, or by_envoy_internal?

@geeknoid @kyessenov @douglas-reid @mandarjog What do you think?

from old_mixerclient_repo.

geeknoid avatar geeknoid commented on June 10, 2024

I don't think we want to specify "proxy" vs "mixer" in the attributes. This would imply that policies can be evaluated in Mixer in the report path which depend on who rejected a request, and that doesn't feel right to me.

from old_mixerclient_repo.

qiwzhang avatar qiwzhang commented on June 10, 2024

Wouldn't it be useful to use different tables or graphs to display number of requests rejected "by_mixer" or "by_auth", or "by_envoy_internal (due to upstream connection time out, etc)"?

from old_mixerclient_repo.

geeknoid avatar geeknoid commented on June 10, 2024

from old_mixerclient_repo.

kyessenov avatar kyessenov commented on June 10, 2024

from old_mixerclient_repo.

qiwzhang avatar qiwzhang commented on June 10, 2024

OK, we will keep the original plan to use following attributes:

check.error_message: a string for error message from mixer check. Also generate meaningful error for envoy internal errors.

check.error_code: rpc.status_code if from mixer_check. INTERNAL for other envoy internal errors.

from old_mixerclient_repo.

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.