apiserver/pkg/endpoints/request
Abu Kashem 50cce843c9 Take into account latency incurred in server filters
apiserver_request_duration_seconds does not take into account the
time a request spends in the server filters. If a filter takes longer
then the latency incurred will not be reflected in the apiserver
latency metrics.

For example, the amount of time a request spends in priority and
fairness machineries or in shuffle queues will not be accounted for.

- Add a server filter that attaches request received timestamp to the
request context very early in in the handler chain (as soon as
net/http hands over control to us).
- Use the above received timestamp in the apiserver latency metrics
apiserver_request_duration_seconds.
- Use the above received timestamp in the audit layer to set
RequestReceivedTimestamp.

Kubernetes-commit: d74ab9e1a4929be208d4529fd12b76d3fcd5d546
2020-09-18 16:46:07 -04:00
..
OWNERS Updated OWNERS files to include link to docs 2019-01-30 20:05:00 +01:00
context.go Revert nested trace PR#88936 2020-07-20 09:55:05 -07:00
context_test.go fix some ineffassigns 2019-09-09 18:52:17 +08:00
doc.go genericapiserver: fix imports 2017-01-19 10:27:27 -05:00
received_time.go Take into account latency incurred in server filters 2020-09-18 16:46:07 -04:00
received_time_test.go Take into account latency incurred in server filters 2020-09-18 16:46:07 -04:00
requestinfo.go fix a few missed references 2020-09-02 11:45:10 -07:00
requestinfo_test.go Requires single name for list and watch 2018-05-06 15:15:32 +02:00