Skip to content

HTTP CONNECT latency measurements #39146

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
sfc-gh-jrewerts opened this issue Apr 16, 2025 · 5 comments
Open

HTTP CONNECT latency measurements #39146

sfc-gh-jrewerts opened this issue Apr 16, 2025 · 5 comments
Labels
area/http area/stats question Questions that are neither investigations, bugs, nor enhancements

Comments

@sfc-gh-jrewerts
Copy link

Title: HTTP CONNECT latency measurements

Description:
I'm using Envoy to act as a proxy server for long lived TCP connections. The way this works is our client sends an HTTP CONNECT to our proxy. When the response is returned, we keep the connection open. From what I can see, our downstream_rq_time metric measures the life of the connection, not when the request is received by the client. Is this expected? Are there any recommendations for measuring latency in cases where connections live for hours or days like this?

[optional Relevant Links:]

@sfc-gh-jrewerts sfc-gh-jrewerts added the triage Issue requires triage label Apr 16, 2025
@phlax phlax added question Questions that are neither investigations, bugs, nor enhancements area/http area/stats and removed triage Issue requires triage labels Apr 17, 2025
@phlax
Copy link
Member

phlax commented Apr 17, 2025

cc @mattklein123 @jmarantz

@jmarantz
Copy link
Contributor

Same issue as TCP latency. How would Envoy know what the request boundaries are?

@sfc-gh-jrewerts
Copy link
Author

Yeah thinking about it a bit more, it definitely makes sense. Are there any recommendations on measuring latency in these strange edge cases? We still have packets flowing through Envoy, it'd be great to get some insight into how long it takes for the upstream and the downstream to respond.

@sfc-gh-jrewerts
Copy link
Author

Feel free to close this issue if nothing exists today, I can focus on using tcp_info to provide the telemetry if needed.

@yanavlasov
Copy link
Contributor

The best you can do is to report TCP RTT values, which are not currently exposed to access log. So unfortunately there are no values that Envoy can log for your case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/http area/stats question Questions that are neither investigations, bugs, nor enhancements
Projects
None yet
Development

No branches or pull requests

4 participants