You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 24, 2025. It is now read-only.
Repository navigation
This repository was archived by the owner on Nov 24, 2025. It is now read-only.
Looks like both logging events are created in CreateStats(...), once in the beginning of the function under addAvailableData(...) and again at the end of the function within addPerSecStats(...) -> addDSPerSecStats(...). They do look awfully similar, but I don’t know if they have different intentions or it’s more by happenstance.
After doing some further research, I've found that the health.Event{} is not quite consistent in the 5 spots it's created. Additionally, there appears to be an assumption that the name/xmlid is the same as the hostname in all declarations. For example, the 2 Delivery Service events are:
It would be worthwhile to further investigate the name/hostname. If the hostname information is indeed part of the ingress, then it should be used appropriately. Also, it is my opinion that the Type field should be a typedef of sorts to ensure consistency. Something like the type definition example found at: https://programming.guide/go/define-enumeration-string.html. Lastly, even if the consistency were applied and the name addressed for the logs, the same log message would appear twice. It is also worth evaluating both Delivery Service events and assuring they are indeed logging separate logic.
Activity
tcfdev commentedon Dec 14, 2020
Looks like both logging events are created in
CreateStats(...), once in the beginning of the function underaddAvailableData(...)and again at the end of the function withinaddPerSecStats(...)->addDSPerSecStats(...). They do look awfully similar, but I don’t know if they have different intentions or it’s more by happenstance.tcfdev commentedon Jan 20, 2021
After doing some further research, I've found that the
health.Event{}is not quite consistent in the 5 spots it's created. Additionally, there appears to be an assumption that the name/xmlid is the same as the hostname in all declarations. For example, the 2 Delivery Service events are:package ds
stat.go, 116:
stat.go, 328:
It would be worthwhile to further investigate the name/hostname. If the hostname information is indeed part of the ingress, then it should be used appropriately. Also, it is my opinion that the
Typefield should be a typedef of sorts to ensure consistency. Something like the type definition example found at: https://programming.guide/go/define-enumeration-string.html. Lastly, even if the consistency were applied and the name addressed for the logs, the same log message would appear twice. It is also worth evaluating both Delivery Service events and assuring they are indeed logging separate logic.