You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OPA automatically records parse, compile, and evaluation latency for all decisions and the decision log events internal to the server currently have the metrics object on them--however, we don't copy the metrics onto the event struct that's eventually serialized and uploaded.
We need to update the plugins/logs/plugin.go#EventV1 struct to include a Metrics field of type map[string]interface{} (omitempty) and populate in the plugins/logs/plugin.go#Plugin.Log function.
We should add a test case as well that verifies the metrics show up in the batched events.
It would be a nice addition to get the query logs that you can get via the http query in the decision logs instead or in addition.
The text was updated successfully, but these errors were encountered: