Skip to content

Target Protocol header is incorrect for non-Kafka or Rabbit binders #2222

@Mrc0113

Description

@Mrc0113

Each message produced from Spring Cloud Stream includes a "target-protocol" header. This header seems to be hard coded per the line of code below.

A few questions:

  1. Is there some significance of this header? I don't see it documented in the reference guide
  2. Is there a way for a binder to override that?

This header seems to be hard coded here:

String targetProtocol = binder.getClass().getSimpleName().startsWith("Rabbit") ? "amqp" : "kafka";

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions