-
I am setting up a Vector pipeline that receives Traces from datadog-agent and puts them into a Kafka queue, then another Vector pipeline picks up Traces and send them to Datadog. However the Kafka sink only supports Logs and Metrics (https://github.com/vectordotdev/vector/blob/master/src/sinks/kafka/config.rs#L279) and the Kafka source only supports Logs. Is there any plan to add Trace support for Kafka source/sink? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Hi @hvtuananh , I think it would just be a matter of loosening the restriction you linked there to:
and adding a test. We'd be happy to review a PR doing so if you feel inclined. We'd originally restricted the data types beyond what the codec supports because there were sinks that made assumptions about the data. I don't think the |
Beta Was this translation helpful? Give feedback.
-
@jszwedko Thank you for the response! I'll make a PR for the Kafka sink per your suggestion. I assume the appropriate place for loosening the restriction in the Kafka source would be https://github.com/vectordotdev/vector/blob/master/src/sources/kafka.rs#L365-L367 |
Beta Was this translation helpful? Give feedback.
-
You're right! I tested Kafka source with |
Beta Was this translation helpful? Give feedback.
Hi @hvtuananh ,
I think it would just be a matter of loosening the restriction you linked there to:
Input::new(self.encoding.config().input_type())
and adding a test. We'd be happy to review a PR doing so if you feel inclined.
We'd originally restricted the data types beyond what the codec supports because there were sinks that made assumptions about the data. I don't think the
kafka
sink is one of those.