zendesk / ruby-kafka

A Ruby client library for Apache Kafka
http://www.rubydoc.info/gems/ruby-kafka
Apache License 2.0
1.28k stars 337 forks source link

unable to specify message content Type (ex:- application/json) when delivering message to kafka topic #413

Closed ilikecodingg closed 7 years ago

ilikecodingg commented 7 years ago

If this is a bug report, please fill out the following:

Please verify that the problem you're seeing hasn't been fixed by the current master of ruby-kafka.

Steps to reproduce

Please write an example that reproduces the problem you're describing.


kafka.deliver_message("Hello, World!", topic: "greetings")

###### Expected outcome

kafka.deliver_message("Hello, World!", topic: "greetings", content-Type:"application/json")
expected option like content-Type

###### Actual outcome

What actually happened.

but, has no option to specify content type of the message that is put in Kafka topic
Elyahou commented 7 years ago

https://github.com/zendesk/ruby-kafka#serialization

dasch commented 7 years ago

@ilikecodingg that is not a Kafka feature.