Skip to content

Consider providing custom KafkaSender to ReactiveKafkaProducerTemplate #2190

@MisterRnobe

Description

@MisterRnobe

Context

My application uses spring-cloud-sleuth for tracing so I want it to be propagated through kafka. I am using ReactiveKafkaProducerTemplate to send events but it does not support tracing propagation. Although, spring-cloud-sleuth-instrumentation contains TracingKafkaProducerFactory that creates required KafkaSender. I tried to copy-paste ReactiveKafkaProducerTemplate implementation with setting this KafkaSender and it works fine as expected.

I guess ReactiveKafkaConsumerTemplate needs the same mechanism

Expected Behavior

I think constructor with KafkaSender would be fine

Current Behavior

There is no way to provide custom KafkaSender for now

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions