Skip to content

[FEATURE]: Activate each trace from a Kafka batch #17980

@PlugaruT

Description

@PlugaruT

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions