Package Name
kafka
Package Version(s)
No response
Describe the goal of the feature
The current implementation is activating the first trace from the first message in a given batch, see
|
first_message = messages[0] if len(messages) else None |
Is it possible to change this behaviour in order to activate each trace individually from a given batch? Currently we have a lot of spans attached to a trace that does not correspond to the correct source Kafka record, hence causing confusion. In Java SDK, the trace is activated for each Kafka record.
Or at least, what's the recommendation in order to achieve this behaviour?
Is your feature request related to a problem?
No response
Describe alternatives you've considered
No response
Additional context
No response
Package Name
kafka
Package Version(s)
No response
Describe the goal of the feature
The current implementation is activating the first trace from the first message in a given batch, see
dd-trace-py/ddtrace/contrib/internal/kafka/patch.py
Line 247 in 73764dc
Is it possible to change this behaviour in order to activate each trace individually from a given batch? Currently we have a lot of spans attached to a trace that does not correspond to the correct source Kafka record, hence causing confusion. In Java SDK, the trace is activated for each Kafka record.
Or at least, what's the recommendation in order to achieve this behaviour?
Is your feature request related to a problem?
No response
Describe alternatives you've considered
No response
Additional context
No response