mirror of
https://github.com/open-policy-agent/opa.git
synced 2026-08-13 03:42:35 -06:00
d8bdd3b830
This deals with the first two bullets of #4128: 1. tracing for remaining handlers 2. decisions IDs are added to the server spans I'm not sure if that's the convention, but I've put the decision ID into the server spans: the client spans we get from http.send usage in policies will not carry them, but they do refer to their parents, and they'll have the `opa.decision_id` attribute. Also includes some general cleanup: * server/writer: use switch for ErrorAuto() * server: replace http statuses with their constants Signed-off-by: Stephan Renatus <stephan.renatus@gmail.com>