envoy icon indicating copy to clipboard operation
envoy copied to clipboard

Access Log Command Operator: REQUEST_TX_DURATION

Open WeavingGao opened this issue 5 years ago • 3 comments

Envoy already has four access log command operators of duration, i.e., DURATION, REQUEST_DURATION, RESPONSE_DURATION, RESPONSE_TX_DURATION, but it seems impossible to calculate the duration from the start time to the last byte of the request sent to the upstream with these commands.

The duration might be named REQUEST_TX_DURATION which could be used to observe Envoy's own delay in the downstream to upstream direction.

The existing StreamInfo interface can get or calculate REQUEST_TX_DURATION directly, we only need to add a field extractor in the StreamInfoFormatter.

WeavingGao avatar Apr 27 '21 02:04 WeavingGao

Feel free to submit a PR with this change.

yanavlasov avatar Apr 27 '21 17:04 yanavlasov

@yanavlasov I submit a PR

WeavingGao avatar Apr 29 '21 01:04 WeavingGao

Feel free to submit a PR with this change.

WeavingGao avatar Apr 29 '21 01:04 WeavingGao