You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: expose cluster ID via getClusterId() and describeCluster()
librdkafka provides rd_kafka_clusterid() to retrieve the cluster ID
from broker metadata, but the Node.js binding never exposed it.
This change:
- Adds NodeGetClusterId NAN_METHOD to Connection (src/connection.cc)
which calls RdKafka::Handle::clusterid()
- Registers getClusterId on Producer, KafkaConsumer, and AdminClient
native prototypes
- Adds Client.prototype.getClusterId() JS wrapper (lib/client.js)
- Adds admin.describeCluster() to the KafkaJS-compatible admin API
(lib/kafkajs/_admin.js), matching the KafkaJS interface
- Adds test for describeCluster
Closes#28 (partially - adds describeCluster admin operation)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
0 commit comments