reverse_tunnels: Add EventReporter for reverse tunnel connection reporting#44342
Open
aakugan wants to merge 2 commits intoenvoyproxy:mainfrom
Open
reverse_tunnels: Add EventReporter for reverse tunnel connection reporting#44342aakugan wants to merge 2 commits intoenvoyproxy:mainfrom
aakugan wants to merge 2 commits intoenvoyproxy:mainfrom
Conversation
Signed-off-by: aakugan <aakashganapathy2@gmail.com>
e36b38c to
66d9466
Compare
Signed-off-by: aakugan <aakashganapathy2@gmail.com>
66d9466 to
e9ef353
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
BUILDS ON #44327, depends on the protos introduced there.
Incremental DIFFS
Commit Message
Add EventReporter for reverse tunnel connection reporting
Additional Description:
Adds the EventReporter contrib extension, which aggregates reverse tunnel connection/disconnection events and fans them out to pluggable clients.
Key components:
ReverseTunnelReporterWithState/ReverseTunnelReporterClient: interfaces allowing multiple transport clients to share connection state from a single reporter. Clients receive incremental diffs and can request a full state snapshot so they dont have to be "stateful" other than the protocol they manage.EventReporter: A basic implementation which does refcounting of connections by the name and stores in a map for interfacing with the clients.Risk Level: Low, opt in extension.
Testing
Unit tests.