Upgrading to WaterDrop 2.5
Please note, this is a breaking release, hence 2.5.0
.
- If you used to catch
WaterDrop::Errors::FlushFailureError
now you need to catchWaterDrop::Errors::ProduceError
.WaterDrop::Errors::ProduceManyError
is based on theProduceError
, hence it should be enough. - Prior to
2.5.0
there was always a chance of partial dispatches viaproduce_many_
methods. Now you can get the info on all the errors viaerror.occurred
. - Inline
Rdkafka::RdkafkaError
are now re-raised viaWaterDrop::Errors::ProduceError
and available under#cause
. AsyncRdkafka::RdkafkaError
errors 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