Releases: ricardo-ch/go-kafka
Releases · ricardo-ch/go-kafka
v3.1.0
Propagate the consumergroup context into the handler
What's Changed
- Propagate the consumergroup context into the handler by @EtienneGuerlais in #44
Full Changelog: v3.0.3...v3.0.4
Minor fix
Error Log Improvement
What's Changed
- log error when there is an infinite retry pattern by @EdouardBavoux in #36
Full Changelog: v3.0.1...v3.0.2
Security update from protobuf
Go Kafka v3
Go-kafka V3 allows configuration at topic level, and relies on IBM saram (change of ownership).
What's Changed
- The library now relies on the IBM/sarama library instead of Shopify/sarama, which is no longer maintained.
- The
kafka.Handler
type has been changed to a struct containing both the function to execute and the handler's optional configuration. - The global variable
PushConsumerErrorsToTopic
has been replaced by thePushConsumerErrorsToRetryTopic
andPushConsumerErrorsToDeadletterTopic
properties on the handler.
These changes should be the only breaking changes in the v3 release. The rest of the library should be compatible with the previous version.
Full Changelog: v2.2.0...v3.0.0
Introduce blocking retries
What's Changed
- Introduce infinite retries by @EtienneGuerlais in #33
Full Changelog: v2.1.2...v2.2.0
Add kafka_consumergroup_current_message_timestamp
- Add
kafka_consumergroup_current_message_timestamp
in accordance with ricardoarchive/ricardo-architecture#119
Corrected metric names
2 errors in metric names were corrected:
kafka_consumer_records_consumed_total
->kafka_consumer_record_consumed_total
kafka_consumer_record_consumed_latency_seconds
->kafka_consumer_record_latency_seconds
Improved error handling
- Removed all references to the deprecated pkg/errors library
- Improved the error comparison logic now that our internal errors package allows for it
- Fixed the errors stack trace, which was overridden before being logged
- Build using go 1.20