The zipkin-kafka
testing image runs both Kafka+ZooKeeper for the Kafka collector
and the upcoming Kafka storage.
To build openzipkin/zipkin-kafka
, from the top level of the repository, run:
$ docker build -t openzipkin/zipkin-kafka:test -f docker/collector/kafka/Dockerfile .
Then configure the Kafka sender using a bootstrapServers
value of host.docker.internal:9092
if your application is inside the same docker network or localhost:19092
if not, but running on the same host.
In other words, if you are running a sample application on your laptop, you would use localhost:19092
bootstrap server to send spans to the Kafka broker running in Docker.