Commit Graph

4 Commits

Author SHA1 Message Date
Torin Sandall b31412dc8e Update server to include revision in decision logs
Signed-off-by: Torin Sandall <torinsandall@gmail.com>
2018-04-10 13:58:36 -07:00
Torin Sandall 05e9eb601c Refactor diagnostics support in server and runtime
- These changes update the server to always report performance metrics
  and the remote client address. The metrics are cheap to compute and
  there is no significant reason to require more complex configuration
  at this point.

- These changes update the runtime to allow callers to supply the
  diagnostics buffer implementation. This way callers can hook up their
  own sinks to the server's diagnostics.
2017-09-19 15:54:26 -07:00
Torin Sandall 2ec6770956 Add optional decision_id to server
Include an optional decision_id field in Data API responses. The
decision_id can be used for correlating application transactions with
policy decisions. The decision_id field is intended to be separate from
any kind of application tracing that OPA may eventually support.
2017-09-19 15:54:26 -07:00
Matthew Mussomele fa23597c04 Implement diagnostic utilities for the server
The package includes a few simple utilities, including a storage struct
for diagnostic info, a way to configure them and a ring buffer to store
them.
2017-08-08 15:45:12 -07:00