Upgrading to WaterDrop 2.5¶
Please note, this is a breaking release, hence 2.5.0.
- If you used to catch
WaterDrop::Errors::FlushFailureErrornow you need to catchWaterDrop::Errors::ProduceError.WaterDrop::Errors::ProduceManyErroris based on theProduceError, hence it should be enough. - Prior to
2.5.0there was always a chance of partial dispatches viaproduce_many_methods. Now you can get the info on all the errors viaerror.occurred. - Inline
Rdkafka::RdkafkaErrorare now re-raised viaWaterDrop::Errors::ProduceErrorand available under#cause. AsyncRdkafka::RdkafkaErrorerrors are still directly available and you can differentiate between errors using the eventtype. - If you are using the Datadog listener, you need to:
# Replace require:
require 'waterdrop/instrumentation/vendors/datadog/listener'
# With
require 'waterdrop/instrumentation/vendors/datadog/metrics_listener'
# Replace references of
::WaterDrop::Instrumentation::Vendors::Datadog::Listener.new
# With
::WaterDrop::Instrumentation::Vendors::Datadog::MetricsListener.new
Last modified: 2025-04-29 12:37:29