Skip to content
This repository has been archived by the owner on Nov 5, 2021. It is now read-only.

Keep track of connections done for keep_alive HTTP probes. #421

Merged
merged 1 commit into from
Jun 28, 2020

Conversation

manugarg
Copy link
Contributor

If keep_alive is enabled, use net/http/httptrace to get notified when new connections are done. On ConnectDone, update a new counter "connect_event" and log when connection takes place.

With this we'll see new connections in logs like this:
"Established a new connection to: 172.217.9.164:80"

PiperOrigin-RevId: 318599259

If keep_alive is enabled, use net/http/httptrace to get notified when new connections are done. On ConnectDone, update a new counter "connect_event" and log when connection takes place.

With this we'll see new connections in logs like this:
"Established a new connection to: 172.217.9.164:80"

PiperOrigin-RevId: 318599259
@manugarg manugarg merged commit 382659d into master Jun 28, 2020
@manugarg manugarg deleted the 63729A23134379909BFCA3AC3C378B48 branch June 28, 2020 02:55
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant