Component(s)
exporter/kafka
Describe the issue you're reporting
Hello 🖖
I wanted to export metrics, traces, and logs from my OpenTelemetry Collector to a Kafka Topic. And during my research, I found this kafkaexporter. And it works very well. But I have some questions regarding the encoding for metrics.
I am using "otlp_json" but it mentions that it is EXPERIMENTAL. It works perfectly fine, but since I want to use it in a productive environment EXPERIMENTAL is not something I am looking for. But when I use "otlp_proto" (where nothing states to be experimental), the content of the Kafka-Topic is in binary and completely unreadable.

Encoding: "otlp_json" - Readable, and when I open it with VSCode it can be formatted into JSON format

Encoding: "otlp_proto" - Completely unreadable
This is the OpenTelemetry Collector
apiVersion: opentelemetry.io/v1alpha1
kind: OpenTelemetryCollector
metadata:
name: otel
spec:
config: |
receivers:
otlp:
protocols:
grpc:
http:
processors:
memory_limiter:
check_interval: 1s
limit_percentage: 75
spike_limit_percentage: 15
batch:
exporters:
kafka/metrics:
protocol_version: 6.1.0
brokers: kafka.kafka:9092
topic: otelcol-metrics
encoding: otlp_json
kafka/traces:
protocol_version: 6.1.0
brokers: kafka.kafka:9092
topic: otelcol-traces
encoding: jaeger_json
kafka/logs:
protocol_version: 6.1.0
brokers: kafka.kafka:9092
topic: otelcol-logs
encoding: raw
service:
pipelines:
traces:
receivers: [otlp]
processors: [batch]
exporters: [kafka/traces, logging]
metrics:
receivers: [otlp]
processors: [batch]
exporters: [kafka/metrics, logging]
logs:
receivers: [otlp]
processors: [batch]
exporters: [kafka/logs, logging]
So here to my questions:
- Is it a known issue that "otlp_proto" does not work as encoding, or is the README maybe not up to date?
- Will the development of the "otlp_json" encoding be continued so it can be used in a productive environment?
- If it is planned to finish "otlp_json" will it be very different to the current version? Or what will be the biggest differences?
Thank you very much in advance!
Component(s)
exporter/kafka
Describe the issue you're reporting
Hello 🖖
I wanted to export metrics, traces, and logs from my OpenTelemetry Collector to a Kafka Topic. And during my research, I found this kafkaexporter. And it works very well. But I have some questions regarding the encoding for metrics.
I am using "otlp_json" but it mentions that it is EXPERIMENTAL. It works perfectly fine, but since I want to use it in a productive environment EXPERIMENTAL is not something I am looking for. But when I use "otlp_proto" (where nothing states to be experimental), the content of the Kafka-Topic is in binary and completely unreadable.


Encoding: "otlp_json" - Readable, and when I open it with VSCode it can be formatted into JSON format
Encoding: "otlp_proto" - Completely unreadable
This is the OpenTelemetry Collector
So here to my questions:
Thank you very much in advance!