-
Notifications
You must be signed in to change notification settings - Fork 5.1k
grpc access logger: refactor common gRPC ALS out #7879
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
Conversation
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>
Note to reviewers: despite of overall large PR, I kept each commit easier to review. |
@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); |
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.
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).
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.
Yes, thanks for the reminder, added a TODO here and will add the types when I implement TCP logger.
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.
Nice, LGTM post security release.
Description:
In preparation to implement TCP gRPC Access Logger.
Risk Level: Low (refactoring only)
Testing: CI
Docs Changes: N/A
Release Notes: N/A