https://github.com/schultyy/kafka-tracing-blog-post-example-code
Example code for Kafka Tracing with OpenTelemetry
https://github.com/schultyy/kafka-tracing-blog-post-example-code
kafka opentelemetry rust
Last synced: 29 days ago
JSON representation
Example code for Kafka Tracing with OpenTelemetry
- Host: GitHub
- URL: https://github.com/schultyy/kafka-tracing-blog-post-example-code
- Owner: schultyy
- Created: 2023-03-10T23:55:24.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-11T00:02:21.000Z (over 3 years ago)
- Last Synced: 2025-08-02T04:35:22.262Z (11 months ago)
- Topics: kafka, opentelemetry, rust
- Language: Rust
- Homepage:
- Size: 22.5 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# kafka-tracing-blog-post-example-code
Example code for Kafka Tracing with OpenTelemetry
## Usage
Start all containers
```bash
$ docker-compose up -d
```
Create a Kafka Topic:
```bash
$ docker exec broker \
kafka-topics --bootstrap-server broker:9092 \
--create \
--topic hnstories
Created topic hnstories.
```
Run the consumer:
```
$ cargo run -p consumer
Subscribed
Pre rebalance Assign(TPL {hnstories/0: offset=Invalid metadata=""})
Post rebalance Assign(TPL {hnstories/0: offset=Invalid metadata=""})
```
(Wait until you see the output above - might take 15-20sec)
In a second terminal window, run the producer:
```bash
$ cargo run -p producer
```
[Open Jaeger](http://localhost:16686)