-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
access log: add support for %UPSTREAM_CONNECTION_ID% #31920
Merged
wbpcode
merged 12 commits into
envoyproxy:main
from
deveshkandpal1224:devesh24/access-log-upstream-cx-id
Jan 24, 2024
Merged
Changes from 3 commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
a9992b2
access log: support %UPSTREAM_CONNECTION_ID%
deveshkandpal1224 7380568
update docs
deveshkandpal1224 773e7d4
fix formatter
deveshkandpal1224 a1aee96
refactor code
deveshkandpal1224 ce45bec
minor change
deveshkandpal1224 e887f8a
switch from UL to uint64_t
deveshkandpal1224 8c563a0
dummy change
deveshkandpal1224 759db7f
Merge branch 'main' into devesh24/access-log-upstream-cx-id
deveshkandpal1224 66a8842
fix formatting
deveshkandpal1224 2153911
Merge branch 'main' into devesh24/access-log-upstream-cx-id
deveshkandpal1224 ee29a36
fix conflict
deveshkandpal1224 87cad0a
update usage.rst
deveshkandpal1224 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -884,6 +884,14 @@ const StreamInfoFormatterProviderLookupTable& getKnownStreamInfoFormatterProvide | |
return nullptr; | ||
}); | ||
}}}, | ||
{"UPSTREAM_CONNECTION_ID", | ||
{CommandSyntaxChecker::COMMAND_ONLY, | ||
[](const std::string&, absl::optional<size_t>) { | ||
return std::make_unique<StreamInfoUInt64FormatterProvider>( | ||
[](const StreamInfo::StreamInfo& stream_info) { | ||
return stream_info.upstreamInfo()->upstreamConnectionId().value_or(0); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
}); | ||
}}}, | ||
{"UPSTREAM_CLUSTER", | ||
{CommandSyntaxChecker::COMMAND_ONLY, | ||
[](const std::string&, absl::optional<size_t>) { | ||
|
This file contains 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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for you in timely update 😄 . This LGTM overall. Please supplement more context about the new command in the docs. I think this description should almost same with the
CONNECTION_ID
except it's used to tell the upstream connection id.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done :)