-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Fix telemetry manager health report #11397
Conversation
I see that you haven't updated any CHANGELOG files. Would it make sense to do so? |
I see that you haven't updated any README files. Would it make sense to do so? |
@george-dorin Can you describe the problem in more detail please? |
@cedric-cordenier updated the description with more details |
@@ -77,7 +77,7 @@ func NewTelemetryIngressBatchClient(url *url.URL, serverPubKeyHex string, ks key | |||
serverPubKeyHex: serverPubKeyHex, | |||
globalLogger: lggr, | |||
logging: logging, | |||
lggr: lggr.Named("TelemetryIngressBatchClient"), | |||
lggr: lggr.Named(fmt.Sprintf("TelemetryIngressBatchClient.%s.%s", network, chainID)), |
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.
Can we chain these calls in order to avoid assuming the separator is .
?
lggr: lggr.Named(fmt.Sprintf("TelemetryIngressBatchClient.%s.%s", network, chainID)), | |
lggr: lggr.Named("TelemetryIngressBatchClient").Named(network).Named(chainID), |
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.
Fixed in 2fecf65
chTelemetry: make(chan TelemPayload, telemBufferSize), | ||
chDone: make(services.StopChan), | ||
} | ||
} | ||
|
||
// Start connects the wsrpc client to the telemetry ingress server | ||
func (tc *telemetryIngressClient) Start(ctx context.Context) error { | ||
return tc.StartOnce("TelemetryIngressClient", func() error { | ||
return tc.StartOnce(tc.lggr.Name(), func() error { |
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.
These were actually OK as the short name. IIRC they are only used for the error, which ends up being logged through a named logger anyways.
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.
Fixed in 2fecf65
SonarQube Quality Gate Maintainability Rating on New Code (is worse than A) See analysis details on SonarQube Fix issues before they fail your Quality Gate with SonarLint in your IDE. |
* Fix incorrect health report * Add network and chainID to logger and service names * Update helpers_test * Update services name * Remove unused * Add changelog * Implement feedback
Telemetry Manager's health report was checking the health of the endpoint instead of the telemetry client of the endpoint.