-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Panic in opa-envoy-plugin error metrics #6410
Panic in opa-envoy-plugin error metrics #6410
Comments
@ashutosh-narkar Ah I see the issue here. Both performance and error metric objects are initialised here only if performance metrics are enabled in config. But we are emitting error metrics regardless of this configuration. @tilgovi can probably confirm this by checking if they have not enabled performance metrics. I would suggest moving error metric initialisation out of this condition or emit error metric only if performance metrics are enabled (but I think error metric should be emitted regardless since it's not performance related). Let me know which one sounds good, you can assign this to me and I will push a quick fix. PS: Also will be useful add a debug log for the |
That's correct. I had not enabled performance metrics. |
Thanks for looking into this @rudrakhp.
This sounds like a good approach. If someone wants these metrics they can opt-in. |
@ashutosh-narkar above fix should suffice. Please review. |
Thanks for the quick resolution! |
I think I'm seeing a panic in an openpolicyagent/opa:envoy-0.58.0-3-rootless container (I think that's opa-envoy-plugin @ 23923671159a15044e4f0e9989e1dca56ca59d80) that points at this line, recently introduced in open-policy-agent/opa-envoy-plugin#477.
Here's the traceback:
I don't know what original error is trying to be unwrapped and logged here, because I never get a chance to see it.
The text was updated successfully, but these errors were encountered: