-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kafka Receiver and Exporter: use same default value for topic setting #27292
Comments
Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
Hi @andreasgerstmayr, @MovieStoreGuy! Decided to take up this issue on a Thursday since I was bored and it seemed fairly trivial. Note sure if there are concerns about breaking users pipelines, but I would assume if they are using the Kafka receiver for metrics/logs already, they likely must have configured the topic name to not be "otlp_spans" already. |
+1 |
Awesome, thanks @jwafle! |
…s, and logs (#30163) **Description:** Updates the default topics for metrics and logs consumers to be the same as the `kafkaexporter` default topics for metrics and logs exporters. **Link to tracking Issue:** #27292 **Testing:** Added testing in `factory_test.go` to test that topics are set correctly for spans, metrics, and logs consumers. **Documentation:** Updated the comments in `config.go` and `README.md` to match the updates.
This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping Pinging code owners:
See Adding Labels via Comments if you do not have permissions to add labels yourself. |
This issue was resolved in #30163 |
Component(s)
exporter/kafka, receiver/kafka
Describe the issue you're reporting
For the Kafka receiver, the default topic is always
otlp_spans
:opentelemetry-collector-contrib/receiver/kafkareceiver/factory.go
Line 20 in c506b4e
opentelemetry-collector-contrib/receiver/kafkareceiver/factory.go
Line 93 in c506b4e
For the Kafka exporter, the default topic is
otlp_spans
for traces,otlp_metrics
for metrics,otlp_logs
for logs:opentelemetry-collector-contrib/exporter/kafkaexporter/factory.go
Line 96 in c506b4e
opentelemetry-collector-contrib/exporter/kafkaexporter/factory.go
Line 158 in c506b4e
The default values should be identical for the Kafka receiver and exporter.
The text was updated successfully, but these errors were encountered: