-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Closed
Labels
Description
Component(s)
exporter/kafka
What happened?
Description
When using topic auto-creation with franz-go enabled topics are not created on-demand. When using the current default sarama lib the topics are created without any issue. I am running this against warpstream, i'm not sure if the same behavior is exhibited in kafka oss.
Steps to Reproduce
- Enable topic auto creation
- Run collector with
--feature-gates exporter.kafkaexporter.UseFranzGo
Expected Result
Topics are automatically created
Actual Result
Example error:
issue exporting from topic \"otlp_logs\": UNKNOWN_TOPIC_OR_PARTITION: This server does not host this topic-partition
stacktrace:
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/kafkaexporter.(*kafkaExporter[...]).exportData
github.com/open-telemetry/opentelemetry-collector-contrib/exporter/[email protected]/kafka_exporter.go:184
go.opentelemetry.io/collector/consumer.ConsumeLogsFunc.ConsumeLogs
go.opentelemetry.io/collector/[email protected]/logs.go:27
Collector version
0.134.0
Environment information
Environment
OS: OSX
Compiler: go 1.24.2 darwin/arm64
Kafka: warpstream
OpenTelemetry Collector configuration
receivers:
otlp:
protocols:
grpc:
endpoint: 0.0.0.0:4317
http:
endpoint: 0.0.0.0:4318
processors:
batch: {}
exporters:
kafka:
brokers: ["localhost:9092"]
client_id: "otel-collector"
service:
pipelines:
traces:
receivers: [otlp]
processors: [batch]
exporters: [kafka]
metrics:
receivers: [otlp]
processors: [batch]
exporters: [kafka]
logs:
receivers: [otlp]
processors: [batch]
exporters: [kafka]Log output
issue exporting from topic \"otlp_logs\": UNKNOWN_TOPIC_OR_PARTITION: This server does not host this topic-partitionAdditional context
No response
Tip
React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it. Learn more here.