segmentio / kafka-go

Kafka library in Go
MIT License
7.3k stars 760 forks source link

Observability : Kafka Consumer/Producer metrics and tracing. #1265

Open surenw-serenade opened 4 months ago

surenw-serenade commented 4 months ago

Describe the solution you would like

Is there a recommended approach to instrumenting the kafka-go library with OpenTelemetry?

Standard consumer and producer metrics with support for standard prometheus or otel export capability would be useful.

Supporting documentation

https://kafka.apache.org/20/generated/producer_metrics.html https://kafka.apache.org/20/generated/consumer_metrics.html