Exposing rd_kafka_conf_dump
? How?
#469
aesteve
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, not sure that's the right place to ask, but it's not really an issue, and not (yet?? hopefully) a PR.
rdkafka_sys
has a method calledrd_kafka_conf_dump
that's handy to log the client configuration for investigations.I haven't found it in
rust-rdkafka
so I came up with this implementation:I'm not a lot experienced in Rust, so that's still probably not a good candidate for a PR, but:
(note: especially, maybe there's an already existing way to deal with pointers over a string iterator that doesn't involve all the
ptr.add(i)
? I draw inspiration from CreateTopicResult iirc, but since that's the very 1st time I'm writing FFI-related code, huge chances are missed the point entirely)Thanks!
Beta Was this translation helpful? Give feedback.
All reactions