-
Notifications
You must be signed in to change notification settings - Fork 351
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
Added PHC-related logs #3036
Added PHC-related logs #3036
Conversation
f8ffbe8
to
84e4872
Compare
84e4872
to
17f2584
Compare
proxy/healthy_endpoints.go
Outdated
@@ -21,7 +21,8 @@ func (h *healthyEndpoints) filterHealthyEndpoints(endpoints []routing.LBEndpoint | |||
filtered := make([]routing.LBEndpoint, 0, len(endpoints)) | |||
for _, e := range endpoints { | |||
if p < e.Metrics.HealthCheckDropProbability() { | |||
/* drop */ | |||
ctx.Logger().Infof("dropping endpoint %q due to passive health check: p=%0.2f, dropProbability=%0.2f", |
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.
maybe use normal logrus? No need to pass it I mean
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.
I still would like to have ctx.Logger()
here: after #2269 it has useful feature, it adds traceId inside log entry. It may be very helpful to see the relation between trace and log entry during debugging.
My concern is that we can flood logs with this. Lets try but we need to keep an eye and may need to disable/move to debug level these logs. |
17f2584
to
1edb92b
Compare
We discussed this topic in the meeting:
|
Signed-off-by: Roman Zavodskikh <[email protected]>
1edb92b
to
f5f2c6d
Compare
👍 |
1 similar comment
👍 |
Signed-off-by: Roman Zavodskikh [email protected]