-
Notifications
You must be signed in to change notification settings - Fork 38
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
KafkaConsumerObservable and its subclasses use KafkaConsumer (implementation) instead of Consumer (interface) #244
Comments
How would that work? I think none of the Consumer interface methods are actually implemented by There is a constructor that allows to pass def apply[K, V](
cfg: KafkaConsumerConfig,
consumer: Task[KafkaConsumer[K, V]]): KafkaConsumerObservable[K, V, ConsumerRecord[K, V]] I didn't use these tracing libraries but if they wrap Kafka Consumer, couldn't we pass this wrapped tracing consumer to the |
The zipkin tracing library has a tracing consumer that decorates a Consumer[K, V]. So if the apply method in the KafkaConsumerObservable accepted the interface, the integration would be seemless |
Ahh, sorry, I misunderstood. Yes, in this case, the change would be very useful! Not binary compatible but we don't provide a guarantee here so it's fine |
I've released a SNAPSHOT with your changes: Let me know if that works out for you, or if you need anything more to be included in a proper release. Thank you for the PR! |
Use of the implementation instead of the interface as follows
would make integration with tracing libraries like zipkin more difficult. Using the Consumer interface instead would allow for easy integration with tracing libraries
The text was updated successfully, but these errors were encountered: