Files
releases/server
jkbschmid 81b7428d3e server: add metrics timer for CompilePost (#3097)
This change adds a server_handler timer to the metrics for any POSTs to /v1/compile.

So `curl -X POST localhost:8181/v1/compile?metrics ...` will result in:

    "metrics": {
        "timer_rego_partial_eval_ns": 145020,
        "timer_rego_query_compile_ns": 86415,
        "timer_rego_query_parse_ns": 56104,
        "timer_server_handler_ns": 377557  #this line is new
      }

Fixes #3096.

Signed-off-by: Jakob Schmid <jakob.schmid@sap.com>
2021-01-26 14:24:28 +01:00
..
2016-08-08 09:20:24 -07:00