-
Notifications
You must be signed in to change notification settings - Fork 17
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
Allow enabling franz-go
logging from kafka
package
#540
Comments
The current `metricsHook` struct that collects metrics based on Kafka hooks is not equipped to also report details of _why_ connection errors are caused. --- Details We provide a new struct that implements a (single, for now) kgo Hook dedicated to logging errors during the broker connection phase. The struct can be iterated in the future to implement other monitoring hooks, providing logging utilities where the metrics would have too high cardinality. The proposed design adds the new logger hook behind the `CommonConfig.DisableTelemetry` flag (similarly to the metrics hook). This can be improved and it is not a perfect solution, but it has to be done this way until a bigger refactor is done to expose the `CommonConfig.hook` fieldin some way. The more idiomatic, but also more expensive, solution would be to allow exporting franz-go logs into the Logger. This is mentioned in #540 --------- Signed-off-by: inge4pres <[email protected]> Co-authored-by: Edoardo Tenani <[email protected]>
Clarification: when we decide to pursue logging the entirety of messages from franz-go, we can remove what's been added in #541.
The previous note is assuming that we want to reduce the amount of data stored in our logging infrastructure, or at least limit to what's actually useful. |
moving this from it105 to 109 |
The
kafka
package does not initializefranz-go
logging nor exposes a way to do this. This means there is no way for callers to enablefranz-go
logging.Goal
Allow enabling
franz-go
logging fromkafka
package callers.The text was updated successfully, but these errors were encountered: