Skip to content

tcp_proxy: add log on start#43140

Merged
kyessenov merged 5 commits intoenvoyproxy:mainfrom
kyessenov:tcp_log_on_start
Jan 25, 2026
Merged

tcp_proxy: add log on start#43140
kyessenov merged 5 commits intoenvoyproxy:mainfrom
kyessenov:tcp_log_on_start

Conversation

@kyessenov
Copy link
Copy Markdown
Contributor

Change-Id: Ib8485b0d970f05dc9e4f93b01f8dfd81c54662dd

Commit Message: Add ability to log connection starts in TCP proxy. This coupled with #42226 should provide "almost" exact active connection gauge. (The problematic edge case is when a prior filter stops iteration in onNewConnection or a disconnect happens prior to reaching tcp_proxy - that requires unusual config).
Risk Level: low
Testing: added
Docs Changes: yes
Release Notes: yes

Change-Id: Ib8485b0d970f05dc9e4f93b01f8dfd81c54662dd
Signed-off-by: Kuat Yessenov <kuat@google.com>
@repokitteh-read-only
Copy link
Copy Markdown

CC @envoyproxy/api-shepherds: Your approval is needed for changes made to (api/envoy/|docs/root/api-docs/).
envoyproxy/api-shepherds assignee is @mattklein123
CC @envoyproxy/api-watchers: FYI only for changes made to (api/envoy/|docs/root/api-docs/).

🐱

Caused by: #43140 was opened by kyessenov.

see: more, trace.

Change-Id: I064939e1c6c455385a9fe3b4a34dff30e56a4598
Signed-off-by: Kuat Yessenov <kuat@google.com>
@kyessenov kyessenov requested a review from TAOXUY January 24, 2026 00:19
agrawroh
agrawroh previously approved these changes Jan 24, 2026
Copy link
Copy Markdown
Member

@agrawroh agrawroh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, Thanks!

// connection with the upstream. If the connection fails, the access log is not flushed.
bool flush_access_log_on_connected = 2;

// If set to true, the access log is flushed when the TCP proxy accepts a connection.
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// If set to true, the access log is flushed when the TCP proxy accepts a connection.
// If set to ``true``, the access log is flushed when the TCP proxy accepts a connection.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I copied from above - probably need to revise the whole proto.

@agrawroh
Copy link
Copy Markdown
Member

/assign-from @envoyproxy/senior-maintainers

@repokitteh-read-only
Copy link
Copy Markdown

@envoyproxy/senior-maintainers assignee is @mattklein123

🐱

Caused by: a #43140 (comment) was created by @agrawroh.

see: more, trace.

mattklein123
mattklein123 previously approved these changes Jan 24, 2026
Change-Id: I55a2a3c7d7c2475866396717996882e3d88244af
Change-Id: I6707365009f06fb503c4fbd7018013c188c925d7
Signed-off-by: Kuat Yessenov <kuat@google.com>
@kyessenov kyessenov dismissed stale reviews from mattklein123 and agrawroh via 8b95f9d January 24, 2026 04:16
Change-Id: I4643d98f4c3d75f2fa89061ac3f242f9c0f75e13
@kyessenov kyessenov merged commit b9521c6 into envoyproxy:main Jan 25, 2026
25 of 26 checks passed
shane-yuan pushed a commit to shane-yuan/envoy that referenced this pull request Feb 11, 2026
Change-Id: Ib8485b0d970f05dc9e4f93b01f8dfd81c54662dd

Commit Message: Add ability to log connection starts in TCP proxy. This
coupled with envoyproxy#42226 should
provide "almost" exact active connection gauge. (The problematic edge
case is when a prior filter stops iteration in `onNewConnection` or a
disconnect happens prior to reaching `tcp_proxy` - that requires unusual
config).
Risk Level: low
Testing: added
Docs Changes: yes
Release Notes: yes

---------

Signed-off-by: Kuat Yessenov <kuat@google.com>
grnmeira pushed a commit to grnmeira/envoy that referenced this pull request Mar 20, 2026
Change-Id: Ib8485b0d970f05dc9e4f93b01f8dfd81c54662dd

Commit Message: Add ability to log connection starts in TCP proxy. This
coupled with envoyproxy#42226 should
provide "almost" exact active connection gauge. (The problematic edge
case is when a prior filter stops iteration in `onNewConnection` or a
disconnect happens prior to reaching `tcp_proxy` - that requires unusual
config).
Risk Level: low
Testing: added
Docs Changes: yes
Release Notes: yes

---------

Signed-off-by: Kuat Yessenov <kuat@google.com>
Signed-off-by: Gustavo <grnmeira@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants