OPA SDK features #269
-
Hi everyone, I am testing the OPA SDK, and I would like to know if is it possible to use the following parameters as we use with the OPA server when we run a query?
Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 7 replies
-
I don't think it's possible to get these as a result of calling However, it allows setting up plugins for decision logs and status reports -- I suppose some of what you're asking for here could be dealt with in that manner? The decision logs should have information about each and every evaluation, including provenance and metrics. I don't think anything related to strict-builtin-errors, instrumentation, or explain (traces) is supported, though. Feel free to open an issue if you need a concrete enhancement here. |
Beta Was this translation helpful? Give feedback.
-
@srenatus I filled a new issue related to this discussion and I would like to help implement it if the issue is accepted. |
Beta Was this translation helpful? Give feedback.
-
This functionality is now available in the SDK following the merging of: open-policy-agent/opa#5438, open-policy-agent/opa#5447, open-policy-agent/opa#5459 and open-policy-agent/opa#5460 The functionality is used by configuring parameters to opa.Decision/opa.Partial calls. |
Beta Was this translation helpful? Give feedback.
I don't think it's possible to get these as a result of calling
Decision()
. The SDK doesn't expose the same API as the HTTP APIs, which let you set those things; but instead deals with setting up a runtime that is exactly the same as what the HTTP APIs use.However, it allows setting up plugins for decision logs and status reports -- I suppose some of what you're asking for here could be dealt with in that manner? The decision logs should have information about each and every evaluation, including provenance and metrics.
I don't think anything related to strict-builtin-errors, instrumentation, or explain (traces) is supported, though. Feel free to open an issue if you need a concrete enha…