You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Inspired by #32735 because it is a related problem:
When the setting "topic" is not specified, the same kafka exporter config can be used in all three pipelines if the topic names match the default values:
What happens in this case is that the three exporters will send to the same topic. This is a race condition that will succeed in 1/3 of scenarios at the receiving end (see #32735).
To avoid this problem, the user must create three different exporters for each pipeline to set custom topic names. This is error prone and inconsistent with the default behavior that allows having one exporter for all three pipelines with the default topic names.
Describe the solution you'd like
Having three different topic names by default but being able to override it with only a single one is a strange feature.
Just create three topic properties of the kafka exporter:
The documentation gives some hints about determining the actual topic:
The client application sending telemetry data to OpenTelemetry should not be concerned with setting topic names in attributes that are used internally to transport OpenTelemetry information using Kafka.
The context could be configured with topic names.
found no example how to configure that
need to have some logic to determine from telemetry data to configure the topic to use
evaluated for every message
more complex setup than simply defining three static properties
Feature enhancement of this ticket.
Current workaround: define three exporters with all properties redundant except the topic property and use them individually in three pipelines.
Additional context
No response
The text was updated successfully, but these errors were encountered:
Component(s)
exporter/kafka
Is your feature request related to a problem? Please describe.
Inspired by #32735 because it is a related problem:
When the setting "topic" is not specified, the same kafka exporter config can be used in all three pipelines if the topic names match the default values:
If the topic is set to any value, this structure will work in exporter perspective.
What happens in this case is that the three exporters will send to the same topic. This is a race condition that will succeed in 1/3 of scenarios at the receiving end (see #32735).
To avoid this problem, the user must create three different exporters for each pipeline to set custom topic names. This is error prone and inconsistent with the default behavior that allows having one exporter for all three pipelines with the default topic names.
Describe the solution you'd like
Having three different topic names by default but being able to override it with only a single one is a strange feature.
Just create three topic properties of the kafka exporter:
Alternative definition (solution should match for exporter and receiver):
Describe alternatives you've considered
The documentation gives some hints about determining the actual topic:
Current workaround: define three exporters with all properties redundant except the
topic
property and use them individually in three pipelines.Additional context
No response
The text was updated successfully, but these errors were encountered: