Skip to content

Conversation

lizan
Copy link
Member

@lizan lizan commented Aug 9, 2019

Description:
In preparation to implement TCP gRPC Access Logger.

Risk Level: Low (refactoring only)
Testing: CI
Docs Changes: N/A
Release Notes: N/A

lizan added 4 commits August 9, 2019 07:40
Signed-off-by: Lizan Zhou <lizan@tetrate.io>
Signed-off-by: Lizan Zhou <lizan@tetrate.io>
Signed-off-by: Lizan Zhou <lizan@tetrate.io>
Signed-off-by: Lizan Zhou <lizan@tetrate.io>
@lizan lizan requested review from snowp and mattklein123 August 9, 2019 08:27
@lizan
Copy link
Member Author

lizan commented Aug 9, 2019

Note to reviewers: despite of overall large PR, I kept each commit easier to review.

@mattklein123
Copy link
Member

@euroelessar would you be interested in taking a first review pass since you have been working on this code recently?

const envoy::config::accesslog::v2::CommonGrpcAccessLogConfig& config) {
// TODO(euroelessar): Consider cleaning up loggers.
auto& cache = tls_slot_->getTyped<ThreadLocalCache>();
const std::size_t cache_key = MessageUtil::hash(config);
Copy link
Contributor

@euroelessar euroelessar Aug 9, 2019

Choose a reason for hiding this comment

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

With the separation in place key should include a notion if it's http or tcp logger. Otherwise Envoy can not ensure API promise anymore (that each logging stream is always either http or tcp).

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, thanks for the reminder, added a TODO here and will add the types when I implement TCP logger.

Signed-off-by: Lizan Zhou <lizan@tetrate.io>
Copy link
Member

@mattklein123 mattklein123 left a comment

Choose a reason for hiding this comment

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

Nice, LGTM post security release.

@lizan lizan merged commit 261d443 into envoyproxy:master Aug 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants